| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
|  | 2 | # Guess values for system-dependent variables and create Makefiles. | 
| Benjamin Kramer | fbb9f48 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for LLVM 3.2svn. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 5 | # Report bugs to <http://llvm.org/bugs/>. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6 | # | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation | 
|  | 10 | # gives unlimited permission to copy, distribute and modify it. | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11 | # | 
| NAKAMURA Takumi | e9d3d219 | 2012-01-01 08:16:56 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13 | ## --------------------- ## | 
|  | 14 | ## M4sh Initialization.  ## | 
|  | 15 | ## --------------------- ## | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16 |  | 
| Daniel Dunbar | 4e06a5b | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 17 | # Be Bourne compatible | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19 | emulate sh | 
|  | 20 | NULLCMD=: | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22 | # is contrary to our usage.  Disable this feature. | 
|  | 23 | alias -g '${1+"$@"}'='"$@"' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST | 
|  | 25 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 28 | BIN_SH=xpg4; export BIN_SH # for Tru64 | 
|  | 29 | DUALCASE=1; export DUALCASE # for MKS sh | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 32 | # PATH needs CR | 
|  | 33 | # Avoid depending upon Character Ranges. | 
|  | 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 37 | as_cr_digits='0123456789' | 
|  | 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 39 |  | 
|  | 40 | # The user is always right. | 
|  | 41 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 42 | echo "#! /bin/sh" >conf$$.sh | 
|  | 43 | echo  "exit 0"   >>conf$$.sh | 
|  | 44 | chmod +x conf$$.sh | 
|  | 45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
|  | 46 | PATH_SEPARATOR=';' | 
|  | 47 | else | 
|  | 48 | PATH_SEPARATOR=: | 
|  | 49 | fi | 
|  | 50 | rm -f conf$$.sh | 
|  | 51 | fi | 
|  | 52 |  | 
|  | 53 | # Support unset when possible. | 
|  | 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
|  | 55 | as_unset=unset | 
|  | 56 | else | 
|  | 57 | as_unset=false | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 58 | fi | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 59 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 60 |  | 
|  | 61 | # IFS | 
|  | 62 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 63 | # there to prevent editors from complaining about space-tab. | 
|  | 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 65 | # splitting by setting IFS to empty value.) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 66 | as_nl=' | 
|  | 67 | ' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 68 | IFS=" ""	$as_nl" | 
|  | 69 |  | 
|  | 70 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 71 | case $0 in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 72 | *[\\/]* ) as_myself=$0 ;; | 
|  | 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 74 | for as_dir in $PATH | 
|  | 75 | do | 
|  | 76 | IFS=$as_save_IFS | 
|  | 77 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 79 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 80 | IFS=$as_save_IFS | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 81 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 82 | ;; | 
|  | 83 | esac | 
|  | 84 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 85 | # in which case we are not to be found in the path. | 
|  | 86 | if test "x$as_myself" = x; then | 
|  | 87 | as_myself=$0 | 
|  | 88 | fi | 
|  | 89 | if test ! -f "$as_myself"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
|  | 91 | { (exit 1); exit 1; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 92 | fi | 
|  | 93 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 94 | # Work around bugs in pre-3.0 UWIN ksh. | 
|  | 95 | for as_var in ENV MAIL MAILPATH | 
|  | 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 97 | done | 
|  | 98 | PS1='$ ' | 
|  | 99 | PS2='> ' | 
|  | 100 | PS4='+ ' | 
|  | 101 |  | 
|  | 102 | # NLS nuisances. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 103 | for as_var in \ | 
|  | 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
|  | 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
|  | 106 | LC_TELEPHONE LC_TIME | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 107 | do | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | 
|  | 109 | eval $as_var=C; export $as_var | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 110 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 112 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 113 | done | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 114 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 115 | # Required to use basename. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 116 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 118 | as_expr=expr | 
|  | 119 | else | 
|  | 120 | as_expr=false | 
|  | 121 | fi | 
|  | 122 |  | 
|  | 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 124 | as_basename=basename | 
|  | 125 | else | 
|  | 126 | as_basename=false | 
|  | 127 | fi | 
|  | 128 |  | 
|  | 129 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 130 | # Name of the executable. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 131 | as_me=`$as_basename -- "$0" || | 
|  | 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 133 | X"$0" : 'X\(//\)$' \| \ | 
|  | 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 135 | echo X/"$0" | | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 137 | s//\1/ | 
|  | 138 | q | 
|  | 139 | } | 
|  | 140 | /^X\/\(\/\/\)$/{ | 
|  | 141 | s//\1/ | 
|  | 142 | q | 
|  | 143 | } | 
|  | 144 | /^X\/\(\/\).*/{ | 
|  | 145 | s//\1/ | 
|  | 146 | q | 
|  | 147 | } | 
|  | 148 | s/.*/./; q'` | 
|  | 149 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 150 | # CDPATH. | 
|  | 151 | $as_unset CDPATH | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 152 |  | 
|  | 153 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 154 | if test "x$CONFIG_SHELL" = x; then | 
|  | 155 | if (eval ":") 2>/dev/null; then | 
|  | 156 | as_have_required=yes | 
|  | 157 | else | 
|  | 158 | as_have_required=no | 
|  | 159 | fi | 
|  | 160 |  | 
|  | 161 | if test $as_have_required = yes && 	 (eval ": | 
|  | 162 | (as_func_return () { | 
|  | 163 | (exit \$1) | 
|  | 164 | } | 
|  | 165 | as_func_success () { | 
|  | 166 | as_func_return 0 | 
|  | 167 | } | 
|  | 168 | as_func_failure () { | 
|  | 169 | as_func_return 1 | 
|  | 170 | } | 
|  | 171 | as_func_ret_success () { | 
|  | 172 | return 0 | 
|  | 173 | } | 
|  | 174 | as_func_ret_failure () { | 
|  | 175 | return 1 | 
|  | 176 | } | 
|  | 177 |  | 
|  | 178 | exitcode=0 | 
|  | 179 | if as_func_success; then | 
|  | 180 | : | 
|  | 181 | else | 
|  | 182 | exitcode=1 | 
|  | 183 | echo as_func_success failed. | 
|  | 184 | fi | 
|  | 185 |  | 
|  | 186 | if as_func_failure; then | 
|  | 187 | exitcode=1 | 
|  | 188 | echo as_func_failure succeeded. | 
|  | 189 | fi | 
|  | 190 |  | 
|  | 191 | if as_func_ret_success; then | 
|  | 192 | : | 
|  | 193 | else | 
|  | 194 | exitcode=1 | 
|  | 195 | echo as_func_ret_success failed. | 
|  | 196 | fi | 
|  | 197 |  | 
|  | 198 | if as_func_ret_failure; then | 
|  | 199 | exitcode=1 | 
|  | 200 | echo as_func_ret_failure succeeded. | 
|  | 201 | fi | 
|  | 202 |  | 
|  | 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | 
|  | 204 | : | 
|  | 205 | else | 
|  | 206 | exitcode=1 | 
|  | 207 | echo positional parameters were not saved. | 
|  | 208 | fi | 
|  | 209 |  | 
|  | 210 | test \$exitcode = 0) || { (exit 1); exit 1; } | 
|  | 211 |  | 
|  | 212 | ( | 
|  | 213 | as_lineno_1=\$LINENO | 
|  | 214 | as_lineno_2=\$LINENO | 
|  | 215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | 
|  | 216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | 
|  | 217 | ") 2> /dev/null; then | 
|  | 218 | : | 
|  | 219 | else | 
|  | 220 | as_candidate_shells= | 
|  | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 222 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
|  | 223 | do | 
|  | 224 | IFS=$as_save_IFS | 
|  | 225 | test -z "$as_dir" && as_dir=. | 
|  | 226 | case $as_dir in | 
|  | 227 | /*) | 
|  | 228 | for as_base in sh bash ksh sh5; do | 
|  | 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | 
|  | 230 | done;; | 
|  | 231 | esac | 
|  | 232 | done | 
|  | 233 | IFS=$as_save_IFS | 
|  | 234 |  | 
|  | 235 |  | 
|  | 236 | for as_shell in $as_candidate_shells $SHELL; do | 
|  | 237 | # Try only shells that exist, to save several forks. | 
|  | 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | 
|  | 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF | 
|  | 240 | # Be Bourne compatible | 
|  | 241 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
|  | 242 | emulate sh | 
|  | 243 | NULLCMD=: | 
|  | 244 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
|  | 245 | # is contrary to our usage.  Disable this feature. | 
|  | 246 | alias -g '${1+"$@"}'='"$@"' | 
|  | 247 | setopt NO_GLOB_SUBST | 
|  | 248 | else | 
|  | 249 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | 
|  | 250 | fi | 
|  | 251 | BIN_SH=xpg4; export BIN_SH # for Tru64 | 
|  | 252 | DUALCASE=1; export DUALCASE # for MKS sh | 
|  | 253 |  | 
|  | 254 | : | 
|  | 255 | _ASEOF | 
|  | 256 | }; then | 
|  | 257 | CONFIG_SHELL=$as_shell | 
|  | 258 | as_have_required=yes | 
|  | 259 | if { "$as_shell" 2> /dev/null <<\_ASEOF | 
|  | 260 | # Be Bourne compatible | 
|  | 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
|  | 262 | emulate sh | 
|  | 263 | NULLCMD=: | 
|  | 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
|  | 265 | # is contrary to our usage.  Disable this feature. | 
|  | 266 | alias -g '${1+"$@"}'='"$@"' | 
|  | 267 | setopt NO_GLOB_SUBST | 
|  | 268 | else | 
|  | 269 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | 
|  | 270 | fi | 
|  | 271 | BIN_SH=xpg4; export BIN_SH # for Tru64 | 
|  | 272 | DUALCASE=1; export DUALCASE # for MKS sh | 
|  | 273 |  | 
|  | 274 | : | 
|  | 275 | (as_func_return () { | 
|  | 276 | (exit $1) | 
|  | 277 | } | 
|  | 278 | as_func_success () { | 
|  | 279 | as_func_return 0 | 
|  | 280 | } | 
|  | 281 | as_func_failure () { | 
|  | 282 | as_func_return 1 | 
|  | 283 | } | 
|  | 284 | as_func_ret_success () { | 
|  | 285 | return 0 | 
|  | 286 | } | 
|  | 287 | as_func_ret_failure () { | 
|  | 288 | return 1 | 
|  | 289 | } | 
|  | 290 |  | 
|  | 291 | exitcode=0 | 
|  | 292 | if as_func_success; then | 
|  | 293 | : | 
|  | 294 | else | 
|  | 295 | exitcode=1 | 
|  | 296 | echo as_func_success failed. | 
|  | 297 | fi | 
|  | 298 |  | 
|  | 299 | if as_func_failure; then | 
|  | 300 | exitcode=1 | 
|  | 301 | echo as_func_failure succeeded. | 
|  | 302 | fi | 
|  | 303 |  | 
|  | 304 | if as_func_ret_success; then | 
|  | 305 | : | 
|  | 306 | else | 
|  | 307 | exitcode=1 | 
|  | 308 | echo as_func_ret_success failed. | 
|  | 309 | fi | 
|  | 310 |  | 
|  | 311 | if as_func_ret_failure; then | 
|  | 312 | exitcode=1 | 
|  | 313 | echo as_func_ret_failure succeeded. | 
|  | 314 | fi | 
|  | 315 |  | 
|  | 316 | if ( set x; as_func_ret_success y && test x = "$1" ); then | 
|  | 317 | : | 
|  | 318 | else | 
|  | 319 | exitcode=1 | 
|  | 320 | echo positional parameters were not saved. | 
|  | 321 | fi | 
|  | 322 |  | 
|  | 323 | test $exitcode = 0) || { (exit 1); exit 1; } | 
|  | 324 |  | 
|  | 325 | ( | 
|  | 326 | as_lineno_1=$LINENO | 
|  | 327 | as_lineno_2=$LINENO | 
|  | 328 | test "x$as_lineno_1" != "x$as_lineno_2" && | 
|  | 329 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | 
|  | 330 |  | 
|  | 331 | _ASEOF | 
|  | 332 | }; then | 
|  | 333 | break | 
|  | 334 | fi | 
|  | 335 |  | 
|  | 336 | fi | 
|  | 337 |  | 
|  | 338 | done | 
|  | 339 |  | 
|  | 340 | if test "x$CONFIG_SHELL" != x; then | 
|  | 341 | for as_var in BASH_ENV ENV | 
|  | 342 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | 
|  | 343 | done | 
|  | 344 | export CONFIG_SHELL | 
|  | 345 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | 
|  | 346 | fi | 
|  | 347 |  | 
|  | 348 |  | 
|  | 349 | if test $as_have_required = no; then | 
|  | 350 | echo This script requires a shell more modern than all the | 
|  | 351 | echo shells that I found on your system.  Please install a | 
|  | 352 | echo modern shell, or manually run the script under such a | 
|  | 353 | echo shell if you do have one. | 
|  | 354 | { (exit 1); exit 1; } | 
|  | 355 | fi | 
|  | 356 |  | 
|  | 357 |  | 
|  | 358 | fi | 
|  | 359 |  | 
|  | 360 | fi | 
|  | 361 |  | 
|  | 362 |  | 
|  | 363 |  | 
|  | 364 | (eval "as_func_return () { | 
|  | 365 | (exit \$1) | 
|  | 366 | } | 
|  | 367 | as_func_success () { | 
|  | 368 | as_func_return 0 | 
|  | 369 | } | 
|  | 370 | as_func_failure () { | 
|  | 371 | as_func_return 1 | 
|  | 372 | } | 
|  | 373 | as_func_ret_success () { | 
|  | 374 | return 0 | 
|  | 375 | } | 
|  | 376 | as_func_ret_failure () { | 
|  | 377 | return 1 | 
|  | 378 | } | 
|  | 379 |  | 
|  | 380 | exitcode=0 | 
|  | 381 | if as_func_success; then | 
|  | 382 | : | 
|  | 383 | else | 
|  | 384 | exitcode=1 | 
|  | 385 | echo as_func_success failed. | 
|  | 386 | fi | 
|  | 387 |  | 
|  | 388 | if as_func_failure; then | 
|  | 389 | exitcode=1 | 
|  | 390 | echo as_func_failure succeeded. | 
|  | 391 | fi | 
|  | 392 |  | 
|  | 393 | if as_func_ret_success; then | 
|  | 394 | : | 
|  | 395 | else | 
|  | 396 | exitcode=1 | 
|  | 397 | echo as_func_ret_success failed. | 
|  | 398 | fi | 
|  | 399 |  | 
|  | 400 | if as_func_ret_failure; then | 
|  | 401 | exitcode=1 | 
|  | 402 | echo as_func_ret_failure succeeded. | 
|  | 403 | fi | 
|  | 404 |  | 
|  | 405 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | 
|  | 406 | : | 
|  | 407 | else | 
|  | 408 | exitcode=1 | 
|  | 409 | echo positional parameters were not saved. | 
|  | 410 | fi | 
|  | 411 |  | 
|  | 412 | test \$exitcode = 0") || { | 
|  | 413 | echo No shell found that supports shell functions. | 
|  | 414 | echo Please tell autoconf@gnu.org about your system, | 
|  | 415 | echo including any error possibly output before this | 
|  | 416 | echo message | 
|  | 417 | } | 
|  | 418 |  | 
|  | 419 |  | 
|  | 420 |  | 
|  | 421 | as_lineno_1=$LINENO | 
|  | 422 | as_lineno_2=$LINENO | 
|  | 423 | test "x$as_lineno_1" != "x$as_lineno_2" && | 
|  | 424 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | 
|  | 425 |  | 
|  | 426 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
|  | 427 | # uniformly replaced by the line number.  The first 'sed' inserts a | 
|  | 428 | # line-number line after each line using $LINENO; the second 'sed' | 
|  | 429 | # does the real work.  The second script uses 'N' to pair each | 
|  | 430 | # line-number line with the line containing $LINENO, and appends | 
|  | 431 | # trailing '-' during substitution so that $LINENO is not a special | 
|  | 432 | # case at line end. | 
|  | 433 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
|  | 434 | # scripts with optimization help from Paolo Bonzini.  Blame Lee | 
|  | 435 | # E. McMahon (1931-1989) for sed's syntax.  :-) | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 436 | sed -n ' | 
|  | 437 | p | 
|  | 438 | /[$]LINENO/= | 
|  | 439 | ' <$as_myself | | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 440 | sed ' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 441 | s/[$]LINENO.*/&-/ | 
|  | 442 | t lineno | 
|  | 443 | b | 
|  | 444 | :lineno | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 445 | N | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 446 | :loop | 
|  | 447 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 448 | t loop | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 449 | s/-\n.*// | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 450 | ' >$as_me.lineno && | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 451 | chmod +x "$as_me.lineno" || | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 452 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | 
|  | 453 | { (exit 1); exit 1; }; } | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 454 |  | 
|  | 455 | # Don't try to exec as it changes $[0], causing all sort of problems | 
|  | 456 | # (the dirname of $[0] is not the place where we might find the | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 457 | # original and so on.  Autoconf is especially sensitive to this). | 
|  | 458 | . "./$as_me.lineno" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 459 | # Exit status is that of the last command. | 
|  | 460 | exit | 
|  | 461 | } | 
|  | 462 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 463 |  | 
|  | 464 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 465 | as_dirname=dirname | 
|  | 466 | else | 
|  | 467 | as_dirname=false | 
|  | 468 | fi | 
|  | 469 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 470 | ECHO_C= ECHO_N= ECHO_T= | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 471 | case `echo -n x` in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 472 | -n*) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 473 | case `echo 'x\c'` in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 474 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 475 | *)   ECHO_C='\c';; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 476 | esac;; | 
|  | 477 | *) | 
|  | 478 | ECHO_N='-n';; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 479 | esac | 
|  | 480 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 481 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 482 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 483 | as_expr=expr | 
|  | 484 | else | 
|  | 485 | as_expr=false | 
|  | 486 | fi | 
|  | 487 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 488 | rm -f conf$$ conf$$.exe conf$$.file | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 489 | if test -d conf$$.dir; then | 
|  | 490 | rm -f conf$$.dir/conf$$.file | 
|  | 491 | else | 
|  | 492 | rm -f conf$$.dir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 493 | mkdir conf$$.dir | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 494 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 495 | echo >conf$$.file | 
|  | 496 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 497 | as_ln_s='ln -s' | 
|  | 498 | # ... but there are two gotchas: | 
|  | 499 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 500 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
|  | 501 | # In both cases, we have to default to `cp -p'. | 
|  | 502 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 503 | as_ln_s='cp -p' | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 504 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 505 | as_ln_s=ln | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 506 | else | 
|  | 507 | as_ln_s='cp -p' | 
|  | 508 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 509 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 510 | rmdir conf$$.dir 2>/dev/null | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 511 |  | 
|  | 512 | if mkdir -p . 2>/dev/null; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 513 | as_mkdir_p=: | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 514 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 515 | test -d ./-p && rmdir ./-p | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 516 | as_mkdir_p=false | 
|  | 517 | fi | 
|  | 518 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 519 | # Find out whether ``test -x'' works.  Don't use a zero-byte file, as | 
|  | 520 | # systems may use methods other than mode bits to determine executability. | 
|  | 521 | cat >conf$$.file <<_ASEOF | 
|  | 522 | #! /bin/sh | 
|  | 523 | exit 0 | 
|  | 524 | _ASEOF | 
|  | 525 | chmod +x conf$$.file | 
|  | 526 | if test -x conf$$.file >/dev/null 2>&1; then | 
|  | 527 | as_executable_p="test -x" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 528 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 529 | as_executable_p=: | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 530 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 531 | rm -f conf$$.file | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 532 |  | 
|  | 533 | # Sed expression to map a string onto a valid CPP name. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 535 |  | 
|  | 536 | # Sed expression to map a string onto a valid variable name. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 538 |  | 
|  | 539 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 540 |  | 
|  | 541 | exec 7<&0 </dev/null 6>&1 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 542 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 543 | # Name of the host. | 
|  | 544 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | 
|  | 545 | # so uname gets run too. | 
|  | 546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 547 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 548 | # | 
|  | 549 | # Initializations. | 
|  | 550 | # | 
|  | 551 | ac_default_prefix=/usr/local | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 552 | ac_clean_files= | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 553 | ac_config_libobj_dir=. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 554 | LIBOBJS= | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 555 | cross_compiling=no | 
|  | 556 | subdirs= | 
|  | 557 | MFLAGS= | 
|  | 558 | MAKEFLAGS= | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 559 | SHELL=${CONFIG_SHELL-/bin/sh} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 560 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 561 | # Identity of this package. | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 562 | PACKAGE_NAME='LLVM' | 
|  | 563 | PACKAGE_TARNAME='llvm' | 
| Benjamin Kramer | fbb9f48 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='3.2svn' | 
|  | 565 | PACKAGE_STRING='LLVM 3.2svn' | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 566 | PACKAGE_BUGREPORT='http://llvm.org/bugs/' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 567 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 568 | ac_unique_file="lib/VMCore/Module.cpp" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 569 | # Factoring default headers for most tests. | 
|  | 570 | ac_includes_default="\ | 
|  | 571 | #include <stdio.h> | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 572 | #if HAVE_SYS_TYPES_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 573 | # include <sys/types.h> | 
|  | 574 | #endif | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 575 | #if HAVE_SYS_STAT_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 576 | # include <sys/stat.h> | 
|  | 577 | #endif | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 578 | #if STDC_HEADERS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 579 | # include <stdlib.h> | 
|  | 580 | # include <stddef.h> | 
|  | 581 | #else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 582 | # if HAVE_STDLIB_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 583 | #  include <stdlib.h> | 
|  | 584 | # endif | 
|  | 585 | #endif | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 586 | #if HAVE_STRING_H | 
|  | 587 | # if !STDC_HEADERS && HAVE_MEMORY_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 588 | #  include <memory.h> | 
|  | 589 | # endif | 
|  | 590 | # include <string.h> | 
|  | 591 | #endif | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 592 | #if HAVE_STRINGS_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 593 | # include <strings.h> | 
|  | 594 | #endif | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 595 | #if HAVE_INTTYPES_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 596 | # include <inttypes.h> | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 597 | #endif | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 598 | #if HAVE_STDINT_H | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 599 | # include <stdint.h> | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 600 | #endif | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 601 | #if HAVE_UNISTD_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 602 | # include <unistd.h> | 
|  | 603 | #endif" | 
|  | 604 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 605 | ac_subst_vars='SHELL | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 606 | PATH_SEPARATOR | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 607 | PACKAGE_NAME | 
|  | 608 | PACKAGE_TARNAME | 
|  | 609 | PACKAGE_VERSION | 
|  | 610 | PACKAGE_STRING | 
|  | 611 | PACKAGE_BUGREPORT | 
|  | 612 | exec_prefix | 
|  | 613 | prefix | 
|  | 614 | program_transform_name | 
|  | 615 | bindir | 
|  | 616 | sbindir | 
|  | 617 | libexecdir | 
|  | 618 | datarootdir | 
|  | 619 | datadir | 
|  | 620 | sysconfdir | 
|  | 621 | sharedstatedir | 
|  | 622 | localstatedir | 
|  | 623 | includedir | 
|  | 624 | oldincludedir | 
|  | 625 | docdir | 
|  | 626 | infodir | 
|  | 627 | htmldir | 
|  | 628 | dvidir | 
|  | 629 | pdfdir | 
|  | 630 | psdir | 
|  | 631 | libdir | 
|  | 632 | localedir | 
|  | 633 | mandir | 
|  | 634 | DEFS | 
|  | 635 | ECHO_C | 
|  | 636 | ECHO_N | 
|  | 637 | ECHO_T | 
|  | 638 | LIBS | 
|  | 639 | build_alias | 
|  | 640 | host_alias | 
|  | 641 | target_alias | 
|  | 642 | LLVM_COPYRIGHT | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 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 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 654 | subdirs | 
| Tobias Grosser | ea9dca4 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 655 | ENABLE_POLLY | 
|  | 656 | LLVM_HAS_POLLY | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 678 | GREP | 
|  | 679 | EGREP | 
|  | 680 | LLVM_CROSS_COMPILING | 
|  | 681 | BUILD_CC | 
|  | 682 | BUILD_EXEEXT | 
|  | 683 | BUILD_CXX | 
|  | 684 | CVSBUILD | 
| Eric Christopher | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 685 | ENABLE_LIBCPP | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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 | 
| Rafael Espindola | 7ac506d | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 695 | ENABLE_DOCS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 696 | ENABLE_DOXYGEN | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 697 | LLVM_ENABLE_THREADS | 
| NAKAMURA Takumi | c6fce17 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 698 | ENABLE_PTHREADS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 699 | ENABLE_PIC | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 700 | ENABLE_SHARED | 
| NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 701 | ENABLE_EMBED_STDCXX | 
| Daniel Dunbar | dac1824 | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 702 | ENABLE_TIMESTAMPS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 703 | TARGETS_TO_BUILD | 
|  | 704 | LLVM_ENUM_TARGETS | 
|  | 705 | LLVM_ENUM_ASM_PRINTERS | 
|  | 706 | LLVM_ENUM_ASM_PARSERS | 
|  | 707 | LLVM_ENUM_DISASSEMBLERS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 708 | OPTIMIZE_OPTION | 
|  | 709 | EXTRA_OPTIONS | 
| Daniel Dunbar | 3b95df8 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 710 | EXTRA_LD_OPTIONS | 
| NAKAMURA Takumi | 914f192 | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 711 | CLANG_SRC_ROOT | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 712 | BINUTILS_INCDIR | 
| Bob Wilson | 3f35470 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 713 | INTERNAL_PREFIX | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 714 | NM | 
|  | 715 | ifGNUmake | 
|  | 716 | LN_S | 
|  | 717 | CMP | 
|  | 718 | CP | 
|  | 719 | DATE | 
|  | 720 | FIND | 
|  | 721 | MKDIR | 
|  | 722 | MV | 
|  | 723 | RANLIB | 
|  | 724 | AR | 
|  | 725 | RM | 
|  | 726 | SED | 
|  | 727 | TAR | 
|  | 728 | BINPWD | 
|  | 729 | GRAPHVIZ | 
|  | 730 | DOT | 
|  | 731 | FDP | 
|  | 732 | NEATO | 
|  | 733 | TWOPI | 
|  | 734 | CIRCO | 
|  | 735 | GV | 
|  | 736 | DOTTY | 
| Dan Gohman | a0da889 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 737 | XDOT_PY | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 738 | INSTALL_PROGRAM | 
|  | 739 | INSTALL_SCRIPT | 
|  | 740 | INSTALL_DATA | 
|  | 741 | BZIP2 | 
| mike-m | e08af30 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 742 | CAT | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 743 | DOXYGEN | 
|  | 744 | GROFF | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 745 | GZIPBIN | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 746 | POD2HTML | 
|  | 747 | POD2MAN | 
| mike-m | e08af30 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 748 | PDFROFF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 749 | RUNTEST | 
|  | 750 | TCLSH | 
|  | 751 | ZIP | 
|  | 752 | OCAMLC | 
|  | 753 | OCAMLOPT | 
|  | 754 | OCAMLDEP | 
|  | 755 | OCAMLDOC | 
|  | 756 | GAS | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 757 | HAVE_LINK_VERSION_SCRIPT | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 758 | INSTALL_LTDL_TRUE | 
|  | 759 | INSTALL_LTDL_FALSE | 
|  | 760 | CONVENIENCE_LTDL_TRUE | 
|  | 761 | CONVENIENCE_LTDL_FALSE | 
|  | 762 | LIBADD_DL | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 763 | NO_VARIADIC_MACROS | 
|  | 764 | NO_MISSING_FIELD_INITIALIZERS | 
| Rafael Espindola | 42e94d1 | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 765 | COVERED_SWITCH_DEFAULT | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 766 | USE_UDIS86 | 
|  | 767 | USE_OPROFILE | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 768 | USE_INTEL_JITEVENTS | 
|  | 769 | INTEL_JITEVENTS_INCDIR | 
|  | 770 | INTEL_JITEVENTS_LIBDIR | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 771 | HAVE_PTHREAD | 
|  | 772 | HUGE_VAL_SANITY | 
|  | 773 | MMAP_FILE | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 774 | SHLIBEXT | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 775 | SHLIBPATH_VAR | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 776 | LLVM_PREFIX | 
|  | 777 | LLVM_BINDIR | 
|  | 778 | LLVM_LIBDIR | 
|  | 779 | LLVM_DATADIR | 
|  | 780 | LLVM_DOCSDIR | 
|  | 781 | LLVM_ETCDIR | 
|  | 782 | LLVM_INCLUDEDIR | 
|  | 783 | LLVM_INFODIR | 
|  | 784 | LLVM_MANDIR | 
|  | 785 | LLVM_CONFIGTIME | 
|  | 786 | BINDINGS_TO_BUILD | 
|  | 787 | ALL_BINDINGS | 
|  | 788 | OCAML_LIBDIR | 
|  | 789 | ENABLE_VISIBILITY_INLINES_HIDDEN | 
|  | 790 | RPATH | 
|  | 791 | RDYNAMIC | 
|  | 792 | LIBOBJS | 
|  | 793 | LTLIBOBJS' | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 794 | ac_subst_files='' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 795 | ac_precious_vars='build_alias | 
|  | 796 | host_alias | 
|  | 797 | target_alias | 
|  | 798 | CC | 
|  | 799 | CFLAGS | 
|  | 800 | LDFLAGS | 
|  | 801 | CPPFLAGS | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 802 | CXX | 
|  | 803 | CXXFLAGS | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 804 | CCC | 
|  | 805 | CPP' | 
| John Criswell | f369e77 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 806 | ac_subdirs_all='projects/llvm-gcc | 
|  | 807 | projects/test-suite | 
|  | 808 | projects/llvm-test | 
|  | 809 | projects/poolalloc | 
|  | 810 | projects/llvm-poolalloc | 
|  | 811 | projects/sample | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 812 | projects/privbracket | 
| Reid Spencer | b4e0f9b | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 813 | projects/llvm-stacker | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 814 | projects/llvm-reopt | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 815 | projects/llvm-java | 
|  | 816 | projects/llvm-tv | 
| John Criswell | 4d377d8 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 817 | projects/safecode | 
| Tobias Grosser | ea9dca4 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 818 | projects/llvm-kernel | 
|  | 819 | tools/polly' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 820 |  | 
|  | 821 | # Initialize some variables set by options. | 
|  | 822 | ac_init_help= | 
|  | 823 | ac_init_version=false | 
|  | 824 | # The variables have the same names as the options, with | 
|  | 825 | # dashes changed to underlines. | 
|  | 826 | cache_file=/dev/null | 
|  | 827 | exec_prefix=NONE | 
|  | 828 | no_create= | 
|  | 829 | no_recursion= | 
|  | 830 | prefix=NONE | 
|  | 831 | program_prefix=NONE | 
|  | 832 | program_suffix=NONE | 
|  | 833 | program_transform_name=s,x,x, | 
|  | 834 | silent= | 
|  | 835 | site= | 
|  | 836 | srcdir= | 
|  | 837 | verbose= | 
|  | 838 | x_includes=NONE | 
|  | 839 | x_libraries=NONE | 
|  | 840 |  | 
|  | 841 | # Installation directory options. | 
|  | 842 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
|  | 843 | # and all the variables that are supposed to be based on exec_prefix | 
|  | 844 | # by default will actually change. | 
|  | 845 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 846 | # (The list follows the same order as the GNU Coding Standards.) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 847 | bindir='${exec_prefix}/bin' | 
|  | 848 | sbindir='${exec_prefix}/sbin' | 
|  | 849 | libexecdir='${exec_prefix}/libexec' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 850 | datarootdir='${prefix}/share' | 
|  | 851 | datadir='${datarootdir}' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 852 | sysconfdir='${prefix}/etc' | 
|  | 853 | sharedstatedir='${prefix}/com' | 
|  | 854 | localstatedir='${prefix}/var' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 855 | includedir='${prefix}/include' | 
|  | 856 | oldincludedir='/usr/include' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 857 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
|  | 858 | infodir='${datarootdir}/info' | 
|  | 859 | htmldir='${docdir}' | 
|  | 860 | dvidir='${docdir}' | 
|  | 861 | pdfdir='${docdir}' | 
|  | 862 | psdir='${docdir}' | 
|  | 863 | libdir='${exec_prefix}/lib' | 
|  | 864 | localedir='${datarootdir}/locale' | 
|  | 865 | mandir='${datarootdir}/man' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 866 |  | 
|  | 867 | ac_prev= | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 868 | ac_dashdash= | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 869 | for ac_option | 
|  | 870 | do | 
|  | 871 | # If the previous option needs an argument, assign it. | 
|  | 872 | if test -n "$ac_prev"; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 873 | eval $ac_prev=\$ac_option | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 874 | ac_prev= | 
|  | 875 | continue | 
|  | 876 | fi | 
|  | 877 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 878 | case $ac_option in | 
|  | 879 | *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
|  | 880 | *)	ac_optarg=yes ;; | 
|  | 881 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 882 |  | 
|  | 883 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|  | 884 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 885 | case $ac_dashdash$ac_option in | 
|  | 886 | --) | 
|  | 887 | ac_dashdash=yes ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 888 |  | 
|  | 889 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
|  | 890 | ac_prev=bindir ;; | 
|  | 891 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
|  | 892 | bindir=$ac_optarg ;; | 
|  | 893 |  | 
|  | 894 | -build | --build | --buil | --bui | --bu) | 
|  | 895 | ac_prev=build_alias ;; | 
|  | 896 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
|  | 897 | build_alias=$ac_optarg ;; | 
|  | 898 |  | 
|  | 899 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 900 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 901 | ac_prev=cache_file ;; | 
|  | 902 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 903 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
|  | 904 | cache_file=$ac_optarg ;; | 
|  | 905 |  | 
|  | 906 | --config-cache | -C) | 
|  | 907 | cache_file=config.cache ;; | 
|  | 908 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 909 | -datadir | --datadir | --datadi | --datad) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 910 | ac_prev=datadir ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 911 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 912 | datadir=$ac_optarg ;; | 
|  | 913 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 914 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
|  | 915 | | --dataroo | --dataro | --datar) | 
|  | 916 | ac_prev=datarootdir ;; | 
|  | 917 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
|  | 918 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
|  | 919 | datarootdir=$ac_optarg ;; | 
|  | 920 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 921 | -disable-* | --disable-*) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 922 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 923 | # Reject names that are not valid shell variable names. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 924 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
|  | 925 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
|  | 926 | { (exit 1); exit 1; }; } | 
|  | 927 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
|  | 928 | eval enable_$ac_feature=no ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 929 |  | 
|  | 930 | -docdir | --docdir | --docdi | --doc | --do) | 
|  | 931 | ac_prev=docdir ;; | 
|  | 932 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
|  | 933 | docdir=$ac_optarg ;; | 
|  | 934 |  | 
|  | 935 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
|  | 936 | ac_prev=dvidir ;; | 
|  | 937 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
|  | 938 | dvidir=$ac_optarg ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 939 |  | 
|  | 940 | -enable-* | --enable-*) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 941 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 942 | # Reject names that are not valid shell variable names. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 943 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
|  | 944 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
|  | 945 | { (exit 1); exit 1; }; } | 
|  | 946 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
|  | 947 | eval enable_$ac_feature=\$ac_optarg ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 948 |  | 
|  | 949 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
|  | 950 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
|  | 951 | | --exec | --exe | --ex) | 
|  | 952 | ac_prev=exec_prefix ;; | 
|  | 953 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
|  | 954 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
|  | 955 | | --exec=* | --exe=* | --ex=*) | 
|  | 956 | exec_prefix=$ac_optarg ;; | 
|  | 957 |  | 
|  | 958 | -gas | --gas | --ga | --g) | 
|  | 959 | # Obsolete; use --with-gas. | 
|  | 960 | with_gas=yes ;; | 
|  | 961 |  | 
|  | 962 | -help | --help | --hel | --he | -h) | 
|  | 963 | ac_init_help=long ;; | 
|  | 964 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
|  | 965 | ac_init_help=recursive ;; | 
|  | 966 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
|  | 967 | ac_init_help=short ;; | 
|  | 968 |  | 
|  | 969 | -host | --host | --hos | --ho) | 
|  | 970 | ac_prev=host_alias ;; | 
|  | 971 | -host=* | --host=* | --hos=* | --ho=*) | 
|  | 972 | host_alias=$ac_optarg ;; | 
|  | 973 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 974 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
|  | 975 | ac_prev=htmldir ;; | 
|  | 976 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
|  | 977 | | --ht=*) | 
|  | 978 | htmldir=$ac_optarg ;; | 
|  | 979 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 980 | -includedir | --includedir | --includedi | --included | --include \ | 
|  | 981 | | --includ | --inclu | --incl | --inc) | 
|  | 982 | ac_prev=includedir ;; | 
|  | 983 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
|  | 984 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
|  | 985 | includedir=$ac_optarg ;; | 
|  | 986 |  | 
|  | 987 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
|  | 988 | ac_prev=infodir ;; | 
|  | 989 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
|  | 990 | infodir=$ac_optarg ;; | 
|  | 991 |  | 
|  | 992 | -libdir | --libdir | --libdi | --libd) | 
|  | 993 | ac_prev=libdir ;; | 
|  | 994 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
|  | 995 | libdir=$ac_optarg ;; | 
|  | 996 |  | 
|  | 997 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
|  | 998 | | --libexe | --libex | --libe) | 
|  | 999 | ac_prev=libexecdir ;; | 
|  | 1000 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
|  | 1001 | | --libexe=* | --libex=* | --libe=*) | 
|  | 1002 | libexecdir=$ac_optarg ;; | 
|  | 1003 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1004 | -localedir | --localedir | --localedi | --localed | --locale) | 
|  | 1005 | ac_prev=localedir ;; | 
|  | 1006 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
|  | 1007 | localedir=$ac_optarg ;; | 
|  | 1008 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1009 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1010 | | --localstate | --localstat | --localsta | --localst | --locals) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1011 | ac_prev=localstatedir ;; | 
|  | 1012 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1013 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1014 | localstatedir=$ac_optarg ;; | 
|  | 1015 |  | 
|  | 1016 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
|  | 1017 | ac_prev=mandir ;; | 
|  | 1018 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
|  | 1019 | mandir=$ac_optarg ;; | 
|  | 1020 |  | 
|  | 1021 | -nfp | --nfp | --nf) | 
|  | 1022 | # Obsolete; use --without-fp. | 
|  | 1023 | with_fp=no ;; | 
|  | 1024 |  | 
|  | 1025 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
|  | 1026 | | --no-cr | --no-c | -n) | 
|  | 1027 | no_create=yes ;; | 
|  | 1028 |  | 
|  | 1029 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|  | 1030 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
|  | 1031 | no_recursion=yes ;; | 
|  | 1032 |  | 
|  | 1033 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
|  | 1034 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
|  | 1035 | | --oldin | --oldi | --old | --ol | --o) | 
|  | 1036 | ac_prev=oldincludedir ;; | 
|  | 1037 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
|  | 1038 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
|  | 1039 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
|  | 1040 | oldincludedir=$ac_optarg ;; | 
|  | 1041 |  | 
|  | 1042 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 1043 | ac_prev=prefix ;; | 
|  | 1044 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
|  | 1045 | prefix=$ac_optarg ;; | 
|  | 1046 |  | 
|  | 1047 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
|  | 1048 | | --program-pre | --program-pr | --program-p) | 
|  | 1049 | ac_prev=program_prefix ;; | 
|  | 1050 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
|  | 1051 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
|  | 1052 | program_prefix=$ac_optarg ;; | 
|  | 1053 |  | 
|  | 1054 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
|  | 1055 | | --program-suf | --program-su | --program-s) | 
|  | 1056 | ac_prev=program_suffix ;; | 
|  | 1057 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
|  | 1058 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
|  | 1059 | program_suffix=$ac_optarg ;; | 
|  | 1060 |  | 
|  | 1061 | -program-transform-name | --program-transform-name \ | 
|  | 1062 | | --program-transform-nam | --program-transform-na \ | 
|  | 1063 | | --program-transform-n | --program-transform- \ | 
|  | 1064 | | --program-transform | --program-transfor \ | 
|  | 1065 | | --program-transfo | --program-transf \ | 
|  | 1066 | | --program-trans | --program-tran \ | 
|  | 1067 | | --progr-tra | --program-tr | --program-t) | 
|  | 1068 | ac_prev=program_transform_name ;; | 
|  | 1069 | -program-transform-name=* | --program-transform-name=* \ | 
|  | 1070 | | --program-transform-nam=* | --program-transform-na=* \ | 
|  | 1071 | | --program-transform-n=* | --program-transform-=* \ | 
|  | 1072 | | --program-transform=* | --program-transfor=* \ | 
|  | 1073 | | --program-transfo=* | --program-transf=* \ | 
|  | 1074 | | --program-trans=* | --program-tran=* \ | 
|  | 1075 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
|  | 1076 | program_transform_name=$ac_optarg ;; | 
|  | 1077 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1078 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
|  | 1079 | ac_prev=pdfdir ;; | 
|  | 1080 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
|  | 1081 | pdfdir=$ac_optarg ;; | 
|  | 1082 |  | 
|  | 1083 | -psdir | --psdir | --psdi | --psd | --ps) | 
|  | 1084 | ac_prev=psdir ;; | 
|  | 1085 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
|  | 1086 | psdir=$ac_optarg ;; | 
|  | 1087 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1088 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 1089 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 1090 | silent=yes ;; | 
|  | 1091 |  | 
|  | 1092 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
|  | 1093 | ac_prev=sbindir ;; | 
|  | 1094 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
|  | 1095 | | --sbi=* | --sb=*) | 
|  | 1096 | sbindir=$ac_optarg ;; | 
|  | 1097 |  | 
|  | 1098 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
|  | 1099 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
|  | 1100 | | --sharedst | --shareds | --shared | --share | --shar \ | 
|  | 1101 | | --sha | --sh) | 
|  | 1102 | ac_prev=sharedstatedir ;; | 
|  | 1103 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
|  | 1104 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
|  | 1105 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
|  | 1106 | | --sha=* | --sh=*) | 
|  | 1107 | sharedstatedir=$ac_optarg ;; | 
|  | 1108 |  | 
|  | 1109 | -site | --site | --sit) | 
|  | 1110 | ac_prev=site ;; | 
|  | 1111 | -site=* | --site=* | --sit=*) | 
|  | 1112 | site=$ac_optarg ;; | 
|  | 1113 |  | 
|  | 1114 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 1115 | ac_prev=srcdir ;; | 
|  | 1116 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
|  | 1117 | srcdir=$ac_optarg ;; | 
|  | 1118 |  | 
|  | 1119 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
|  | 1120 | | --syscon | --sysco | --sysc | --sys | --sy) | 
|  | 1121 | ac_prev=sysconfdir ;; | 
|  | 1122 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
|  | 1123 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
|  | 1124 | sysconfdir=$ac_optarg ;; | 
|  | 1125 |  | 
|  | 1126 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
|  | 1127 | ac_prev=target_alias ;; | 
|  | 1128 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
|  | 1129 | target_alias=$ac_optarg ;; | 
|  | 1130 |  | 
|  | 1131 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
|  | 1132 | verbose=yes ;; | 
|  | 1133 |  | 
|  | 1134 | -version | --version | --versio | --versi | --vers | -V) | 
|  | 1135 | ac_init_version=: ;; | 
|  | 1136 |  | 
|  | 1137 | -with-* | --with-*) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1138 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1139 | # Reject names that are not valid shell variable names. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1140 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
|  | 1141 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
|  | 1142 | { (exit 1); exit 1; }; } | 
|  | 1143 | ac_package=`echo $ac_package| sed 's/-/_/g'` | 
|  | 1144 | eval with_$ac_package=\$ac_optarg ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1145 |  | 
|  | 1146 | -without-* | --without-*) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1147 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1148 | # Reject names that are not valid shell variable names. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1149 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
|  | 1150 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
|  | 1151 | { (exit 1); exit 1; }; } | 
|  | 1152 | ac_package=`echo $ac_package | sed 's/-/_/g'` | 
|  | 1153 | eval with_$ac_package=no ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1154 |  | 
|  | 1155 | --x) | 
|  | 1156 | # Obsolete; use --with-x. | 
|  | 1157 | with_x=yes ;; | 
|  | 1158 |  | 
|  | 1159 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
|  | 1160 | | --x-incl | --x-inc | --x-in | --x-i) | 
|  | 1161 | ac_prev=x_includes ;; | 
|  | 1162 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
|  | 1163 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
|  | 1164 | x_includes=$ac_optarg ;; | 
|  | 1165 |  | 
|  | 1166 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
|  | 1167 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
|  | 1168 | ac_prev=x_libraries ;; | 
|  | 1169 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
|  | 1170 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
|  | 1171 | x_libraries=$ac_optarg ;; | 
|  | 1172 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1173 | -*) { echo "$as_me: error: unrecognized option: $ac_option | 
|  | 1174 | Try \`$0 --help' for more information." >&2 | 
|  | 1175 | { (exit 1); exit 1; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1176 | ;; | 
|  | 1177 |  | 
|  | 1178 | *=*) | 
|  | 1179 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
|  | 1180 | # Reject names that are not valid shell variable names. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1181 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | 
|  | 1182 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | 
|  | 1183 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1184 | eval $ac_envvar=\$ac_optarg | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1185 | export $ac_envvar ;; | 
|  | 1186 |  | 
|  | 1187 | *) | 
|  | 1188 | # FIXME: should be removed in autoconf 3.0. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1189 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1190 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1191 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1192 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | 
|  | 1193 | ;; | 
|  | 1194 |  | 
|  | 1195 | esac | 
|  | 1196 | done | 
|  | 1197 |  | 
|  | 1198 | if test -n "$ac_prev"; then | 
|  | 1199 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1200 | { echo "$as_me: error: missing argument to $ac_option" >&2 | 
|  | 1201 | { (exit 1); exit 1; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1202 | fi | 
|  | 1203 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1204 | # Be sure to have absolute directory names. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1205 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
|  | 1206 | datadir sysconfdir sharedstatedir localstatedir includedir \ | 
|  | 1207 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
|  | 1208 | libdir localedir mandir | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1209 | do | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1210 | eval ac_val=\$$ac_var | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1211 | case $ac_val in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1212 | [\\/$]* | ?:[\\/]* )  continue;; | 
|  | 1213 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1214 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1215 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
|  | 1216 | { (exit 1); exit 1; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1217 | done | 
|  | 1218 |  | 
|  | 1219 | # There might be people who depend on the old broken behavior: `$host' | 
|  | 1220 | # used to hold the argument of --host etc. | 
|  | 1221 | # FIXME: To remove some day. | 
|  | 1222 | build=$build_alias | 
|  | 1223 | host=$host_alias | 
|  | 1224 | target=$target_alias | 
|  | 1225 |  | 
|  | 1226 | # FIXME: To remove some day. | 
|  | 1227 | if test "x$host_alias" != x; then | 
|  | 1228 | if test "x$build_alias" = x; then | 
|  | 1229 | cross_compiling=maybe | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1230 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1231 | If a cross compiler is detected then cross compile mode will be used." >&2 | 
|  | 1232 | elif test "x$build_alias" != "x$host_alias"; then | 
|  | 1233 | cross_compiling=yes | 
|  | 1234 | fi | 
|  | 1235 | fi | 
|  | 1236 |  | 
|  | 1237 | ac_tool_prefix= | 
|  | 1238 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
|  | 1239 |  | 
|  | 1240 | test "$silent" = yes && exec 6>/dev/null | 
|  | 1241 |  | 
|  | 1242 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1243 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
|  | 1244 | ac_ls_di=`ls -di .` && | 
|  | 1245 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1246 | { echo "$as_me: error: Working directory cannot be determined" >&2 | 
|  | 1247 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1248 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1249 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | 
|  | 1250 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1251 |  | 
|  | 1252 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1253 | # Find the source files, if location was not specified. | 
|  | 1254 | if test -z "$srcdir"; then | 
|  | 1255 | ac_srcdir_defaulted=yes | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1256 | # Try the directory containing this script, then the parent directory. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1257 | ac_confdir=`$as_dirname -- "$0" || | 
|  | 1258 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 1259 | X"$0" : 'X\(//\)[^/]' \| \ | 
|  | 1260 | X"$0" : 'X\(//\)$' \| \ | 
|  | 1261 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 1262 | echo X"$0" | | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1263 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 1264 | s//\1/ | 
|  | 1265 | q | 
|  | 1266 | } | 
|  | 1267 | /^X\(\/\/\)[^/].*/{ | 
|  | 1268 | s//\1/ | 
|  | 1269 | q | 
|  | 1270 | } | 
|  | 1271 | /^X\(\/\/\)$/{ | 
|  | 1272 | s//\1/ | 
|  | 1273 | q | 
|  | 1274 | } | 
|  | 1275 | /^X\(\/\).*/{ | 
|  | 1276 | s//\1/ | 
|  | 1277 | q | 
|  | 1278 | } | 
|  | 1279 | s/.*/./; q'` | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1280 | srcdir=$ac_confdir | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1281 | if test ! -r "$srcdir/$ac_unique_file"; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1282 | srcdir=.. | 
|  | 1283 | fi | 
|  | 1284 | else | 
|  | 1285 | ac_srcdir_defaulted=no | 
|  | 1286 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1287 | if test ! -r "$srcdir/$ac_unique_file"; then | 
|  | 1288 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1289 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | 
|  | 1290 | { (exit 1); exit 1; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1291 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1292 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
|  | 1293 | ac_abs_confdir=`( | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1294 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | 
|  | 1295 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1296 | pwd)` | 
|  | 1297 | # When building in place, set srcdir=. | 
|  | 1298 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
|  | 1299 | srcdir=. | 
|  | 1300 | fi | 
|  | 1301 | # Remove unnecessary trailing slashes from srcdir. | 
|  | 1302 | # Double slashes in file names in object file debugging info | 
|  | 1303 | # mess up M-x gdb in Emacs. | 
|  | 1304 | case $srcdir in | 
|  | 1305 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
|  | 1306 | esac | 
|  | 1307 | for ac_var in $ac_precious_vars; do | 
|  | 1308 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1309 | eval ac_env_${ac_var}_value=\$${ac_var} | 
|  | 1310 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1311 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
|  | 1312 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1313 |  | 
|  | 1314 | # | 
|  | 1315 | # Report the --help message. | 
|  | 1316 | # | 
|  | 1317 | if test "$ac_init_help" = "long"; then | 
|  | 1318 | # Omit some internal or obsolete options to make the list less imposing. | 
|  | 1319 | # This message is too long to be a string in the A/UX 3.1 sh. | 
|  | 1320 | cat <<_ACEOF | 
| Benjamin Kramer | fbb9f48 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 1321 | \`configure' configures LLVM 3.2svn to adapt to many kinds of systems. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1322 |  | 
|  | 1323 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
|  | 1324 |  | 
|  | 1325 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
|  | 1326 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
|  | 1327 |  | 
|  | 1328 | Defaults for the options are specified in brackets. | 
|  | 1329 |  | 
|  | 1330 | Configuration: | 
|  | 1331 | -h, --help              display this help and exit | 
|  | 1332 | --help=short        display options specific to this package | 
|  | 1333 | --help=recursive    display the short help of all the included packages | 
|  | 1334 | -V, --version           display version information and exit | 
|  | 1335 | -q, --quiet, --silent   do not print \`checking...' messages | 
|  | 1336 | --cache-file=FILE   cache test results in FILE [disabled] | 
|  | 1337 | -C, --config-cache      alias for \`--cache-file=config.cache' | 
|  | 1338 | -n, --no-create         do not create output files | 
|  | 1339 | --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
|  | 1340 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1341 | Installation directories: | 
|  | 1342 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1343 | [$ac_default_prefix] | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1344 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1345 | [PREFIX] | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1346 |  | 
|  | 1347 | By default, \`make install' will install all the files in | 
|  | 1348 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
|  | 1349 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
|  | 1350 | for instance \`--prefix=\$HOME'. | 
|  | 1351 |  | 
|  | 1352 | For better control, use the options below. | 
|  | 1353 |  | 
|  | 1354 | Fine tuning of the installation directories: | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1355 | --bindir=DIR           user executables [EPREFIX/bin] | 
|  | 1356 | --sbindir=DIR          system admin executables [EPREFIX/sbin] | 
|  | 1357 | --libexecdir=DIR       program executables [EPREFIX/libexec] | 
|  | 1358 | --sysconfdir=DIR       read-only single-machine data [PREFIX/etc] | 
|  | 1359 | --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com] | 
|  | 1360 | --localstatedir=DIR    modifiable single-machine data [PREFIX/var] | 
|  | 1361 | --libdir=DIR           object code libraries [EPREFIX/lib] | 
|  | 1362 | --includedir=DIR       C header files [PREFIX/include] | 
|  | 1363 | --oldincludedir=DIR    C header files for non-gcc [/usr/include] | 
|  | 1364 | --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share] | 
|  | 1365 | --datadir=DIR          read-only architecture-independent data [DATAROOTDIR] | 
|  | 1366 | --infodir=DIR          info documentation [DATAROOTDIR/info] | 
|  | 1367 | --localedir=DIR        locale-dependent data [DATAROOTDIR/locale] | 
|  | 1368 | --mandir=DIR           man documentation [DATAROOTDIR/man] | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1369 | --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm] | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1370 | --htmldir=DIR          html documentation [DOCDIR] | 
|  | 1371 | --dvidir=DIR           dvi documentation [DOCDIR] | 
|  | 1372 | --pdfdir=DIR           pdf documentation [DOCDIR] | 
|  | 1373 | --psdir=DIR            ps documentation [DOCDIR] | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1374 | _ACEOF | 
|  | 1375 |  | 
|  | 1376 | cat <<\_ACEOF | 
|  | 1377 |  | 
|  | 1378 | System types: | 
|  | 1379 | --build=BUILD     configure for building on BUILD [guessed] | 
|  | 1380 | --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
|  | 1381 | --target=TARGET   configure for building compilers for TARGET [HOST] | 
|  | 1382 | _ACEOF | 
|  | 1383 | fi | 
|  | 1384 |  | 
|  | 1385 | if test -n "$ac_init_help"; then | 
|  | 1386 | case $ac_init_help in | 
| Benjamin Kramer | fbb9f48 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 1387 | short | recursive ) echo "Configuration of LLVM 3.2svn:";; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1388 | esac | 
|  | 1389 | cat <<\_ACEOF | 
|  | 1390 |  | 
|  | 1391 | Optional Features: | 
|  | 1392 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|  | 1393 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Tobias Grosser | ea9dca4 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 1394 | --enable-polly          Use polly if available (default is YES) | 
| Eric Christopher | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 1395 | --enable-libcpp         Use libc++ if available (default is NO) | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1396 | --enable-optimized      Compile with optimizations enabled (default is NO) | 
|  | 1397 | --enable-profiling      Compile with profiling enabled (default is NO) | 
|  | 1398 | --enable-assertions     Compile with assertion checks enabled (default is | 
|  | 1399 | YES) | 
| David Greene | cbc8ddf | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1400 | --enable-expensive-checks | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1401 | Compile with expensive debug checks enabled (default | 
|  | 1402 | is NO) | 
|  | 1403 | --enable-debug-runtime  Build runtime libs with debug symbols (default is | 
|  | 1404 | NO) | 
| Jeffrey Yasskin | c3273dc | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1405 | --enable-debug-symbols  Build compiler with debug symbols (default is NO if | 
|  | 1406 | optimization is on and YES if it's off) | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1407 | --enable-jit            Enable Just In Time Compiling (default is YES) | 
| Rafael Espindola | 7ac506d | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 1408 | --enable-docs           Build documents (default is YES) | 
| Reid Spencer | 0194c9a | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1409 | --enable-doxygen        Build doxygen documentation (default is NO) | 
| Reid Spencer | f85fabeb | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1410 | --enable-threads        Use threads if available (default is YES) | 
| NAKAMURA Takumi | c6fce17 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 1411 | --enable-pthreads       Use pthreads if available (default is YES) | 
| Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1412 | --enable-pic            Build LLVM with Position Independent Code (default | 
| Nick Lewycky | 3852519 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1413 | is YES) | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 1414 | --enable-shared         Build a shared library and link tools against it | 
|  | 1415 | (default is NO) | 
| NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 1416 | --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for | 
| NAKAMURA Takumi | d5a9a3a | 2011-10-13 18:04:52 +0000 | [diff] [blame] | 1417 | Win32 DLL (default is NO) | 
| Daniel Dunbar | dac1824 | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 1418 | --enable-timestamps     Enable embedding timestamp information in build | 
|  | 1419 | (default is YES) | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1420 | --enable-targets        Build specific host targets: all or | 
|  | 1421 | target1,target2,... Valid targets are: host, x86, | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1422 | x86_64, sparc, powerpc, arm, mips, spu, hexagon, | 
| Jean-Daniel Dupas | 1332038 | 2012-04-12 12:02:39 +0000 | [diff] [blame] | 1423 | xcore, msp430, ptx, and cpp (default=all) | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1424 | --enable-bindings       Build specific language bindings: | 
|  | 1425 | all,auto,none,{binding-name} (default=auto) | 
| Jeffrey Yasskin | 914050b | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1426 | --enable-libffi         Check for the presence of libffi (default is NO) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1427 | --enable-ltdl-install   install libltdl | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1428 |  | 
|  | 1429 | Optional Packages: | 
|  | 1430 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|  | 1431 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1432 | --with-optimize-option  Select the compiler options to use for optimized | 
|  | 1433 | builds | 
| Duncan Sands | ef8c8ec | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1434 | --with-extra-options    Specify additional options to compile LLVM with | 
| Daniel Dunbar | 3b95df8 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 1435 | --with-extra-ld-options Specify additional options to link LLVM with | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1436 | --with-ocaml-libdir     Specify install location for ocaml bindings (default | 
|  | 1437 | is stdlib) | 
| NAKAMURA Takumi | 914f192 | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 1438 | --with-clang-srcdir     Directory to the out-of-tree Clang source | 
| Chandler Carruth | ffae4a6 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 1439 | --with-clang-resource-dir | 
|  | 1440 | Relative directory from the Clang binary for | 
|  | 1441 | resource files | 
| Rafael Espindola | d95960b | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1442 | --with-c-include-dirs   Colon separated list of directories clang will | 
|  | 1443 | search for headers | 
| Rafael Espindola | ec217f6 | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 1444 | --with-gcc-toolchain    Directory where gcc is installed. | 
| Sebastian Pop | 5c9e184 | 2012-04-16 04:11:45 +0000 | [diff] [blame] | 1445 | --with-default-sysroot  Add --sysroot=<path> to all compiler invocations. | 
| Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1446 | --with-binutils-include Specify path to binutils/include/ containing | 
|  | 1447 | plugin-api.h file for gold plugin. | 
| Eric Christopher | 65080cc | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 1448 | --with-bug-report-url   Specify the URL where bug reports should be | 
| NAKAMURA Takumi | 818a22b | 2011-08-12 01:50:43 +0000 | [diff] [blame] | 1449 | submitted (default=http://llvm.org/bugs/) | 
| Bob Wilson | 3f35470 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 1450 | --with-internal-prefix  Installation directory for internal files | 
| Reid Spencer | 105d415 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1451 | --with-tclinclude       directory where tcl headers are | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1452 | --with-udis86=<path>    Use udis86 external x86 disassembler library | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1453 | --with-oprofile=<prefix> | 
|  | 1454 | Tell OProfile >= 0.9.4 how to symbolize JIT output | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 1455 | --with-intel-jitevents=<vtune-amplifier-dir> | 
|  | 1456 | Specify location of run-time support library for | 
|  | 1457 | Intel JIT API | 
|  | 1458 | (default=/opt/intel/vtune_amplifier_xe_2011) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1459 |  | 
|  | 1460 | Some influential environment variables: | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1461 | CC          C compiler command | 
|  | 1462 | CFLAGS      C compiler flags | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1463 | LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
|  | 1464 | nonstandard directory <lib dir> | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1465 | CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1466 | you have headers in a nonstandard directory <include dir> | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1467 | CXX         C++ compiler command | 
|  | 1468 | CXXFLAGS    C++ compiler flags | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1469 | CPP         C preprocessor | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1470 |  | 
|  | 1471 | Use these variables to override the choices made by `configure' or to help | 
|  | 1472 | it to find libraries and programs with nonstandard names/locations. | 
|  | 1473 |  | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1474 | Report bugs to <http://llvm.org/bugs/>. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1475 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1476 | ac_status=$? | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1477 | fi | 
|  | 1478 |  | 
|  | 1479 | if test "$ac_init_help" = "recursive"; then | 
|  | 1480 | # If there are subdirs, report their specific --help. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1481 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1482 | test -d "$ac_dir" || continue | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1483 | ac_builddir=. | 
|  | 1484 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1485 | case "$ac_dir" in | 
|  | 1486 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1487 | *) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1488 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1489 | # A ".." for each directory in $ac_dir_suffix. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1490 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1491 | case $ac_top_builddir_sub in | 
|  | 1492 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1493 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 1494 | esac ;; | 
|  | 1495 | esac | 
|  | 1496 | ac_abs_top_builddir=$ac_pwd | 
|  | 1497 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 1498 | # for backward compatibility: | 
|  | 1499 | ac_top_builddir=$ac_top_build_prefix | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1500 |  | 
|  | 1501 | case $srcdir in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1502 | .)  # We are building in place. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1503 | ac_srcdir=. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1504 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 1505 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 1506 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1507 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1508 | ac_top_srcdir=$srcdir | 
|  | 1509 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 1510 | *) # Relative name. | 
|  | 1511 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 1512 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 1513 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1514 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1515 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1516 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1517 | cd "$ac_dir" || { ac_status=$?; continue; } | 
|  | 1518 | # Check for guested configure. | 
|  | 1519 | if test -f "$ac_srcdir/configure.gnu"; then | 
|  | 1520 | echo && | 
|  | 1521 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
|  | 1522 | elif test -f "$ac_srcdir/configure"; then | 
|  | 1523 | echo && | 
|  | 1524 | $SHELL "$ac_srcdir/configure" --help=recursive | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1525 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1526 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1527 | fi || ac_status=$? | 
|  | 1528 | cd "$ac_pwd" || { ac_status=$?; break; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1529 | done | 
|  | 1530 | fi | 
|  | 1531 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1532 | test -n "$ac_init_help" && exit $ac_status | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1533 | if $ac_init_version; then | 
|  | 1534 | cat <<\_ACEOF | 
| Benjamin Kramer | fbb9f48 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 1535 | LLVM configure 3.2svn | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1536 | generated by GNU Autoconf 2.60 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1537 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1538 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 
|  | 1539 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1540 | This configure script is free software; the Free Software Foundation | 
|  | 1541 | gives unlimited permission to copy, distribute and modify it. | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1542 |  | 
| NAKAMURA Takumi | e9d3d219 | 2012-01-01 08:16:56 +0000 | [diff] [blame] | 1543 | Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1544 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1545 | exit | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1546 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1547 | cat >config.log <<_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1548 | This file contains any messages produced by compilers while | 
|  | 1549 | running configure, to aid debugging if configure makes a mistake. | 
|  | 1550 |  | 
| Benjamin Kramer | fbb9f48 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 1551 | It was created by LLVM $as_me 3.2svn, which was | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1552 | generated by GNU Autoconf 2.60.  Invocation command line was | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1553 |  | 
|  | 1554 | $ $0 $@ | 
|  | 1555 |  | 
|  | 1556 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1557 | exec 5>>config.log | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1558 | { | 
|  | 1559 | cat <<_ASUNAME | 
|  | 1560 | ## --------- ## | 
|  | 1561 | ## Platform. ## | 
|  | 1562 | ## --------- ## | 
|  | 1563 |  | 
|  | 1564 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 1565 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
|  | 1566 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
|  | 1567 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
|  | 1568 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
|  | 1569 |  | 
|  | 1570 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
|  | 1571 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
|  | 1572 |  | 
|  | 1573 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
|  | 1574 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
|  | 1575 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1576 | /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown` | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1577 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
|  | 1578 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
|  | 1579 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
|  | 1580 |  | 
|  | 1581 | _ASUNAME | 
|  | 1582 |  | 
|  | 1583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1584 | for as_dir in $PATH | 
|  | 1585 | do | 
|  | 1586 | IFS=$as_save_IFS | 
|  | 1587 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1588 | echo "PATH: $as_dir" | 
|  | 1589 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1590 | IFS=$as_save_IFS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1591 |  | 
|  | 1592 | } >&5 | 
|  | 1593 |  | 
|  | 1594 | cat >&5 <<_ACEOF | 
|  | 1595 |  | 
|  | 1596 |  | 
|  | 1597 | ## ----------- ## | 
|  | 1598 | ## Core tests. ## | 
|  | 1599 | ## ----------- ## | 
|  | 1600 |  | 
|  | 1601 | _ACEOF | 
|  | 1602 |  | 
|  | 1603 |  | 
|  | 1604 | # Keep a trace of the command line. | 
|  | 1605 | # Strip out --no-create and --no-recursion so they do not pile up. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1606 | # Strip out --silent because we don't want to record it for future runs. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1607 | # Also quote any args containing shell meta-characters. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1608 | # Make two passes to allow for proper duplicate-argument suppression. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1609 | ac_configure_args= | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1610 | ac_configure_args0= | 
|  | 1611 | ac_configure_args1= | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1612 | ac_must_keep_next=false | 
|  | 1613 | for ac_pass in 1 2 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1614 | do | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1615 | for ac_arg | 
|  | 1616 | do | 
|  | 1617 | case $ac_arg in | 
|  | 1618 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
|  | 1619 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 1620 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 1621 | continue ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1622 | *\'*) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1623 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1624 | esac | 
|  | 1625 | case $ac_pass in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1626 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1627 | 2) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1628 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1629 | if test $ac_must_keep_next = true; then | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1630 | ac_must_keep_next=false # Got value, back to normal. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1631 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1632 | case $ac_arg in | 
|  | 1633 | *=* | --config-cache | -C | -disable-* | --disable-* \ | 
|  | 1634 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
|  | 1635 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
|  | 1636 | | -with-* | --with-* | -without-* | --without-* | --x) | 
|  | 1637 | case "$ac_configure_args0 " in | 
|  | 1638 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
|  | 1639 | esac | 
|  | 1640 | ;; | 
|  | 1641 | -* ) ac_must_keep_next=true ;; | 
|  | 1642 | esac | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1643 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1644 | ac_configure_args="$ac_configure_args '$ac_arg'" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1645 | ;; | 
|  | 1646 | esac | 
|  | 1647 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1648 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1649 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | 
|  | 1650 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1651 |  | 
|  | 1652 | # When interrupted or exit'd, cleanup temporary files, and complete | 
|  | 1653 | # config.log.  We remove comments because anyway the quotes in there | 
|  | 1654 | # would cause problems or look ugly. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1655 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
|  | 1656 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1657 | trap 'exit_status=$? | 
|  | 1658 | # Save into config.log some information that might help in debugging. | 
|  | 1659 | { | 
|  | 1660 | echo | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1661 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1662 | cat <<\_ASBOX | 
|  | 1663 | ## ---------------- ## | 
|  | 1664 | ## Cache variables. ## | 
|  | 1665 | ## ---------------- ## | 
|  | 1666 | _ASBOX | 
|  | 1667 | echo | 
|  | 1668 | # The following way of writing the cache mishandles newlines in values, | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1669 | ( | 
|  | 1670 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
|  | 1671 | eval ac_val=\$$ac_var | 
|  | 1672 | case $ac_val in #( | 
|  | 1673 | *${as_nl}*) | 
|  | 1674 | case $ac_var in #( | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1675 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | 
|  | 1676 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1677 | esac | 
|  | 1678 | case $ac_var in #( | 
|  | 1679 | _ | IFS | as_nl) ;; #( | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1680 | *) $as_unset $ac_var ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1681 | esac ;; | 
|  | 1682 | esac | 
|  | 1683 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1684 | (set) 2>&1 | | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1685 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
|  | 1686 | *${as_nl}ac_space=\ *) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1687 | sed -n \ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1688 | "s/'\''/'\''\\\\'\'''\''/g; | 
|  | 1689 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
|  | 1690 | ;; #( | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1691 | *) | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1692 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1693 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1694 | esac | | 
|  | 1695 | sort | 
|  | 1696 | ) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1697 | echo | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1698 |  | 
|  | 1699 | cat <<\_ASBOX | 
|  | 1700 | ## ----------------- ## | 
|  | 1701 | ## Output variables. ## | 
|  | 1702 | ## ----------------- ## | 
|  | 1703 | _ASBOX | 
|  | 1704 | echo | 
|  | 1705 | for ac_var in $ac_subst_vars | 
|  | 1706 | do | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1707 | eval ac_val=\$$ac_var | 
|  | 1708 | case $ac_val in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1709 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1710 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1711 | echo "$ac_var='\''$ac_val'\''" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1712 | done | sort | 
|  | 1713 | echo | 
|  | 1714 |  | 
|  | 1715 | if test -n "$ac_subst_files"; then | 
|  | 1716 | cat <<\_ASBOX | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1717 | ## ------------------- ## | 
|  | 1718 | ## File substitutions. ## | 
|  | 1719 | ## ------------------- ## | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1720 | _ASBOX | 
|  | 1721 | echo | 
|  | 1722 | for ac_var in $ac_subst_files | 
|  | 1723 | do | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1724 | eval ac_val=\$$ac_var | 
|  | 1725 | case $ac_val in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1726 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1727 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1728 | echo "$ac_var='\''$ac_val'\''" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1729 | done | sort | 
|  | 1730 | echo | 
|  | 1731 | fi | 
|  | 1732 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1733 | if test -s confdefs.h; then | 
|  | 1734 | cat <<\_ASBOX | 
|  | 1735 | ## ----------- ## | 
|  | 1736 | ## confdefs.h. ## | 
|  | 1737 | ## ----------- ## | 
|  | 1738 | _ASBOX | 
|  | 1739 | echo | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1740 | cat confdefs.h | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1741 | echo | 
|  | 1742 | fi | 
|  | 1743 | test "$ac_signal" != 0 && | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1744 | echo "$as_me: caught signal $ac_signal" | 
|  | 1745 | echo "$as_me: exit $exit_status" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1746 | } >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1747 | rm -f core *.core core.conftest.* && | 
|  | 1748 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1749 | exit $exit_status | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1750 | ' 0 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1751 | for ac_signal in 1 2 13 15; do | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1752 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1753 | done | 
|  | 1754 | ac_signal=0 | 
|  | 1755 |  | 
|  | 1756 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1757 | rm -f -r conftest* confdefs.h | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1758 |  | 
|  | 1759 | # Predefined preprocessor variables. | 
|  | 1760 |  | 
|  | 1761 | cat >>confdefs.h <<_ACEOF | 
|  | 1762 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
|  | 1763 | _ACEOF | 
|  | 1764 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1765 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1766 | cat >>confdefs.h <<_ACEOF | 
|  | 1767 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
|  | 1768 | _ACEOF | 
|  | 1769 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1770 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1771 | cat >>confdefs.h <<_ACEOF | 
|  | 1772 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
|  | 1773 | _ACEOF | 
|  | 1774 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1775 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1776 | cat >>confdefs.h <<_ACEOF | 
|  | 1777 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
|  | 1778 | _ACEOF | 
|  | 1779 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1780 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1781 | cat >>confdefs.h <<_ACEOF | 
|  | 1782 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
|  | 1783 | _ACEOF | 
|  | 1784 |  | 
|  | 1785 |  | 
|  | 1786 | # Let the site file select an alternate cache file if it wants to. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1787 | # Prefer explicitly selected file to automatically selected ones. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1788 | if test -n "$CONFIG_SITE"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1789 | set x "$CONFIG_SITE" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1790 | elif test "x$prefix" != xNONE; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1791 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1792 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1793 | set x "$ac_default_prefix/share/config.site" \ | 
|  | 1794 | "$ac_default_prefix/etc/config.site" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1795 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1796 | shift | 
|  | 1797 | for ac_site_file | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1798 | do | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1799 | if test -r "$ac_site_file"; then | 
|  | 1800 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | 
|  | 1801 | echo "$as_me: loading site script $ac_site_file" >&6;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1802 | sed 's/^/| /' "$ac_site_file" >&5 | 
|  | 1803 | . "$ac_site_file" | 
|  | 1804 | fi | 
|  | 1805 | done | 
|  | 1806 |  | 
|  | 1807 | if test -r "$cache_file"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1808 | # Some versions of bash will fail to source /dev/null (special | 
|  | 1809 | # files actually), so we avoid doing that. | 
|  | 1810 | if test -f "$cache_file"; then | 
|  | 1811 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | 
|  | 1812 | echo "$as_me: loading cache $cache_file" >&6;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1813 | case $cache_file in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1814 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
|  | 1815 | *)                      . "./$cache_file";; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1816 | esac | 
|  | 1817 | fi | 
|  | 1818 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1819 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | 
|  | 1820 | echo "$as_me: creating cache $cache_file" >&6;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1821 | >$cache_file | 
|  | 1822 | fi | 
|  | 1823 |  | 
|  | 1824 | # Check that the precious variables saved in the cache have kept the same | 
|  | 1825 | # value. | 
|  | 1826 | ac_cache_corrupted=false | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1827 | for ac_var in $ac_precious_vars; do | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1828 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
|  | 1829 | eval ac_new_set=\$ac_env_${ac_var}_set | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1830 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
|  | 1831 | eval ac_new_val=\$ac_env_${ac_var}_value | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1832 | case $ac_old_set,$ac_new_set in | 
|  | 1833 | set,) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1834 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
|  | 1835 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1836 | ac_cache_corrupted=: ;; | 
|  | 1837 | ,set) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1838 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | 
|  | 1839 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1840 | ac_cache_corrupted=: ;; | 
|  | 1841 | ,);; | 
|  | 1842 | *) | 
|  | 1843 | if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1844 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | 
|  | 1845 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
|  | 1846 | { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5 | 
|  | 1847 | echo "$as_me:   former value:  $ac_old_val" >&2;} | 
|  | 1848 | { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5 | 
|  | 1849 | echo "$as_me:   current value: $ac_new_val" >&2;} | 
|  | 1850 | ac_cache_corrupted=: | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1851 | fi;; | 
|  | 1852 | esac | 
|  | 1853 | # Pass precious variables to config.status. | 
|  | 1854 | if test "$ac_new_set" = set; then | 
|  | 1855 | case $ac_new_val in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1856 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1857 | *) ac_arg=$ac_var=$ac_new_val ;; | 
|  | 1858 | esac | 
|  | 1859 | case " $ac_configure_args " in | 
|  | 1860 | *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1861 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1862 | esac | 
|  | 1863 | fi | 
|  | 1864 | done | 
|  | 1865 | if $ac_cache_corrupted; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1866 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | 
|  | 1867 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
|  | 1868 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | 
|  | 1869 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | 
|  | 1870 | { (exit 1); exit 1; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1871 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1872 |  | 
|  | 1873 |  | 
|  | 1874 |  | 
|  | 1875 |  | 
|  | 1876 |  | 
|  | 1877 |  | 
|  | 1878 |  | 
|  | 1879 |  | 
|  | 1880 |  | 
|  | 1881 |  | 
|  | 1882 |  | 
|  | 1883 |  | 
|  | 1884 |  | 
|  | 1885 |  | 
|  | 1886 |  | 
|  | 1887 |  | 
|  | 1888 |  | 
|  | 1889 |  | 
|  | 1890 |  | 
|  | 1891 |  | 
|  | 1892 |  | 
|  | 1893 |  | 
|  | 1894 |  | 
|  | 1895 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1896 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1897 | ac_ext=c | 
|  | 1898 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 1899 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 1900 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 1901 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 1902 |  | 
|  | 1903 |  | 
|  | 1904 |  | 
| Dylan Noblesmith | c6c7a58 | 2012-02-13 18:48:10 +0000 | [diff] [blame] | 1905 | cat >>confdefs.h <<\_ACEOF | 
|  | 1906 | #define LLVM_VERSION_MAJOR 3 | 
|  | 1907 | _ACEOF | 
|  | 1908 |  | 
|  | 1909 |  | 
|  | 1910 | cat >>confdefs.h <<\_ACEOF | 
| Benjamin Kramer | fbb9f48 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 1911 | #define LLVM_VERSION_MINOR 2 | 
| Dylan Noblesmith | c6c7a58 | 2012-02-13 18:48:10 +0000 | [diff] [blame] | 1912 | _ACEOF | 
|  | 1913 |  | 
|  | 1914 |  | 
| NAKAMURA Takumi | e9d3d219 | 2012-01-01 08:16:56 +0000 | [diff] [blame] | 1915 | LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign." | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1916 |  | 
|  | 1917 |  | 
|  | 1918 |  | 
|  | 1919 |  | 
|  | 1920 |  | 
|  | 1921 |  | 
|  | 1922 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1923 | ac_aux_dir= | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1924 | for ac_dir in autoconf "$srcdir"/autoconf; do | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1925 | if test -f "$ac_dir/install-sh"; then | 
|  | 1926 | ac_aux_dir=$ac_dir | 
|  | 1927 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|  | 1928 | break | 
|  | 1929 | elif test -f "$ac_dir/install.sh"; then | 
|  | 1930 | ac_aux_dir=$ac_dir | 
|  | 1931 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
|  | 1932 | break | 
|  | 1933 | elif test -f "$ac_dir/shtool"; then | 
|  | 1934 | ac_aux_dir=$ac_dir | 
|  | 1935 | ac_install_sh="$ac_aux_dir/shtool install -c" | 
|  | 1936 | break | 
|  | 1937 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1938 | done | 
|  | 1939 | if test -z "$ac_aux_dir"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1940 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 | 
|  | 1941 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | 
|  | 1942 | { (exit 1); exit 1; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1943 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1944 |  | 
|  | 1945 | # These three variables are undocumented and unsupported, | 
|  | 1946 | # and are intended to be withdrawn in a future Autoconf release. | 
|  | 1947 | # They can cause serious problems if a builder's source tree is in a directory | 
|  | 1948 | # whose full name contains unusual characters. | 
|  | 1949 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
|  | 1950 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
|  | 1951 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
|  | 1952 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1953 |  | 
| John Criswell | c933eeb | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1954 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1955 | if test ${srcdir} != "." ; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1956 | if test -f ${srcdir}/include/llvm/Config/config.h ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1957 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 | 
|  | 1958 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} | 
|  | 1959 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1960 | fi | 
| John Criswell | 22107a7 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1961 | fi | 
|  | 1962 |  | 
| Nick Lewycky | c5975fc | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 1963 | ac_ext=c | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1964 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 1965 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 1966 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 1967 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1968 | if test -n "$ac_tool_prefix"; then | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1969 | for ac_prog in clang llvm-gcc gcc | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1970 | do | 
|  | 1971 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 1972 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1973 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 1974 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 1975 | if test "${ac_cv_prog_CC+set}" = set; then | 
|  | 1976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1977 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1978 | if test -n "$CC"; then | 
|  | 1979 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1980 | else | 
|  | 1981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1982 | for as_dir in $PATH | 
|  | 1983 | do | 
|  | 1984 | IFS=$as_save_IFS | 
|  | 1985 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1986 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 1987 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1988 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1989 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1990 | break 2 | 
|  | 1991 | fi | 
|  | 1992 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1993 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1994 | IFS=$as_save_IFS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1995 |  | 
|  | 1996 | fi | 
|  | 1997 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1998 | CC=$ac_cv_prog_CC | 
|  | 1999 | if test -n "$CC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2000 | { echo "$as_me:$LINENO: result: $CC" >&5 | 
|  | 2001 | echo "${ECHO_T}$CC" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2002 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2003 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 2004 | echo "${ECHO_T}no" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2005 | fi | 
|  | 2006 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2007 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2008 | test -n "$CC" && break | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2009 | done | 
|  | 2010 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2011 | if test -z "$CC"; then | 
|  | 2012 | ac_ct_CC=$CC | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2013 | for ac_prog in clang llvm-gcc gcc | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2014 | do | 
|  | 2015 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 2016 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2017 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 2018 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 2019 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
|  | 2020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2021 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2022 | if test -n "$ac_ct_CC"; then | 
|  | 2023 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2024 | else | 
|  | 2025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2026 | for as_dir in $PATH | 
|  | 2027 | do | 
|  | 2028 | IFS=$as_save_IFS | 
|  | 2029 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2030 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 2031 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2032 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2033 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2034 | break 2 | 
|  | 2035 | fi | 
|  | 2036 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2037 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2038 | IFS=$as_save_IFS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2039 |  | 
|  | 2040 | fi | 
|  | 2041 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2042 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 2043 | if test -n "$ac_ct_CC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2044 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
|  | 2045 | echo "${ECHO_T}$ac_ct_CC" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2046 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2047 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 2048 | echo "${ECHO_T}no" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2049 | fi | 
|  | 2050 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2051 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2052 | test -n "$ac_ct_CC" && break | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2053 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2054 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2055 | if test "x$ac_ct_CC" = x; then | 
|  | 2056 | CC="" | 
|  | 2057 | else | 
|  | 2058 | case $cross_compiling:$ac_tool_warned in | 
|  | 2059 | yes:) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2060 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
|  | 2061 | whose name does not start with the host triplet.  If you think this | 
|  | 2062 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
|  | 2063 | echo "$as_me: 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@gnu.org." >&2;} | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2066 | ac_tool_warned=yes ;; | 
|  | 2067 | esac | 
|  | 2068 | CC=$ac_ct_CC | 
|  | 2069 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2070 | fi | 
|  | 2071 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2072 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2073 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 
|  | 2074 | See \`config.log' for more details." >&5 | 
|  | 2075 | echo "$as_me: error: no acceptable C compiler found in \$PATH | 
|  | 2076 | See \`config.log' for more details." >&2;} | 
|  | 2077 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2078 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2079 | # Provide some information about the compiler. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2080 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | 
|  | 2081 | ac_compiler=`set X $ac_compile; echo $2` | 
|  | 2082 | { (ac_try="$ac_compiler --version >&5" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2083 | case "(($ac_try" in | 
|  | 2084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2085 | *) ac_try_echo=$ac_try;; | 
|  | 2086 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2088 | (eval "$ac_compiler --version >&5") 2>&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2089 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2091 | (exit $ac_status); } | 
|  | 2092 | { (ac_try="$ac_compiler -v >&5" | 
|  | 2093 | case "(($ac_try" in | 
|  | 2094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2095 | *) ac_try_echo=$ac_try;; | 
|  | 2096 | esac | 
|  | 2097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2098 | (eval "$ac_compiler -v >&5") 2>&5 | 
|  | 2099 | ac_status=$? | 
|  | 2100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2101 | (exit $ac_status); } | 
|  | 2102 | { (ac_try="$ac_compiler -V >&5" | 
|  | 2103 | case "(($ac_try" in | 
|  | 2104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2105 | *) ac_try_echo=$ac_try;; | 
|  | 2106 | esac | 
|  | 2107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2108 | (eval "$ac_compiler -V >&5") 2>&5 | 
|  | 2109 | ac_status=$? | 
|  | 2110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2111 | (exit $ac_status); } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2112 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2113 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2114 | /* confdefs.h.  */ | 
|  | 2115 | _ACEOF | 
|  | 2116 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2117 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2118 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2119 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2120 | int | 
|  | 2121 | main () | 
|  | 2122 | { | 
|  | 2123 |  | 
|  | 2124 | ; | 
|  | 2125 | return 0; | 
|  | 2126 | } | 
|  | 2127 | _ACEOF | 
|  | 2128 | ac_clean_files_save=$ac_clean_files | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2129 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2130 | # Try to create an executable without -o first, disregard a.out. | 
|  | 2131 | # It will help us diagnose broken compilers, and finding out an intuition | 
|  | 2132 | # of exeext. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2133 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | 
|  | 2134 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | 
|  | 2135 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
|  | 2136 | # | 
|  | 2137 | # List of possible output files, starting from the most likely. | 
|  | 2138 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | 
|  | 2139 | # only as a last resort.  b.out is created by i960 compilers. | 
|  | 2140 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | 
|  | 2141 | # | 
|  | 2142 | # The IRIX 6 linker writes into existing files which may not be | 
|  | 2143 | # executable, retaining their permissions.  Remove them first so a | 
|  | 2144 | # subsequent execution test works. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2145 | ac_rmfiles= | 
|  | 2146 | for ac_file in $ac_files | 
|  | 2147 | do | 
|  | 2148 | case $ac_file in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2149 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2150 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
|  | 2151 | esac | 
|  | 2152 | done | 
|  | 2153 | rm -f $ac_rmfiles | 
|  | 2154 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2155 | if { (ac_try="$ac_link_default" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2156 | case "(($ac_try" in | 
|  | 2157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2158 | *) ac_try_echo=$ac_try;; | 
|  | 2159 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2161 | (eval "$ac_link_default") 2>&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2162 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2164 | (exit $ac_status); }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2165 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
|  | 2166 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
|  | 2167 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
|  | 2168 | # so that the user can short-circuit this test for compilers unknown to | 
|  | 2169 | # Autoconf. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2170 | for ac_file in $ac_files | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2171 | do | 
|  | 2172 | test -f "$ac_file" || continue | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2173 | case $ac_file in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2174 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2175 | ;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2176 | [ab].out ) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2177 | # We found the default executable, but exeext='' is most | 
|  | 2178 | # certainly right. | 
|  | 2179 | break;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2180 | *.* ) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2181 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2182 | then :; else | 
|  | 2183 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 2184 | fi | 
|  | 2185 | # We set ac_cv_exeext here because the later test for it is not | 
|  | 2186 | # safe: cross compilers may not add the suffix if given an `-o' | 
|  | 2187 | # argument, so we may need to know it at that point already. | 
|  | 2188 | # Even if this section looks crufty: it has the advantage of | 
|  | 2189 | # actually working. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2190 | break;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2191 | * ) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2192 | break;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2193 | esac | 
|  | 2194 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2195 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
|  | 2196 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2197 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2198 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2199 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2200 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2201 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | 
|  | 2202 | See \`config.log' for more details." >&5 | 
|  | 2203 | echo "$as_me: error: C compiler cannot create executables | 
|  | 2204 | See \`config.log' for more details." >&2;} | 
|  | 2205 | { (exit 77); exit 77; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2206 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2207 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2208 | ac_exeext=$ac_cv_exeext | 
|  | 2209 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | 
|  | 2210 | echo "${ECHO_T}$ac_file" >&6; } | 
|  | 2211 |  | 
|  | 2212 | # Check that the compiler produces executables we can run.  If not, either | 
|  | 2213 | # the compiler is broken, or we cross compile. | 
|  | 2214 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | 
|  | 2215 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | 
|  | 2216 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | 
|  | 2217 | # If not cross compiling, check that we can run a simple program. | 
|  | 2218 | if test "$cross_compiling" != yes; then | 
|  | 2219 | if { ac_try='./$ac_file' | 
|  | 2220 | { (case "(($ac_try" in | 
|  | 2221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2222 | *) ac_try_echo=$ac_try;; | 
|  | 2223 | esac | 
|  | 2224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2225 | (eval "$ac_try") 2>&5 | 
|  | 2226 | ac_status=$? | 
|  | 2227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2228 | (exit $ac_status); }; }; then | 
|  | 2229 | cross_compiling=no | 
|  | 2230 | else | 
|  | 2231 | if test "$cross_compiling" = maybe; then | 
|  | 2232 | cross_compiling=yes | 
|  | 2233 | else | 
|  | 2234 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | 
|  | 2235 | If you meant to cross compile, use \`--host'. | 
|  | 2236 | See \`config.log' for more details." >&5 | 
|  | 2237 | echo "$as_me: error: cannot run C compiled programs. | 
|  | 2238 | If you meant to cross compile, use \`--host'. | 
|  | 2239 | See \`config.log' for more details." >&2;} | 
|  | 2240 | { (exit 1); exit 1; }; } | 
|  | 2241 | fi | 
|  | 2242 | fi | 
|  | 2243 | fi | 
|  | 2244 | { echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 2245 | echo "${ECHO_T}yes" >&6; } | 
|  | 2246 |  | 
|  | 2247 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2248 | ac_clean_files=$ac_clean_files_save | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2249 | # Check that the compiler produces executables we can run.  If not, either | 
|  | 2250 | # the compiler is broken, or we cross compile. | 
|  | 2251 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | 
|  | 2252 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | 
|  | 2253 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | 
|  | 2254 | echo "${ECHO_T}$cross_compiling" >&6; } | 
|  | 2255 |  | 
|  | 2256 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | 
|  | 2257 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | 
|  | 2258 | if { (ac_try="$ac_link" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2259 | case "(($ac_try" in | 
|  | 2260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2261 | *) ac_try_echo=$ac_try;; | 
|  | 2262 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2264 | (eval "$ac_link") 2>&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2265 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2267 | (exit $ac_status); }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2268 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
|  | 2269 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
|  | 2270 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
|  | 2271 | # `rm'. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2272 | for ac_file in conftest.exe conftest conftest.*; do | 
|  | 2273 | test -f "$ac_file" || continue | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2274 | case $ac_file in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2275 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2276 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2277 | break;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2278 | * ) break;; | 
|  | 2279 | esac | 
|  | 2280 | done | 
|  | 2281 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2282 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | 
|  | 2283 | See \`config.log' for more details." >&5 | 
|  | 2284 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | 
|  | 2285 | See \`config.log' for more details." >&2;} | 
|  | 2286 | { (exit 1); exit 1; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2287 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2288 |  | 
|  | 2289 | rm -f conftest$ac_cv_exeext | 
|  | 2290 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | 
|  | 2291 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2292 |  | 
|  | 2293 | rm -f conftest.$ac_ext | 
|  | 2294 | EXEEXT=$ac_cv_exeext | 
|  | 2295 | ac_exeext=$EXEEXT | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2296 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | 
|  | 2297 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | 
|  | 2298 | if test "${ac_cv_objext+set}" = set; then | 
|  | 2299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2300 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2301 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2302 | /* confdefs.h.  */ | 
|  | 2303 | _ACEOF | 
|  | 2304 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2305 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2306 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2307 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2308 | int | 
|  | 2309 | main () | 
|  | 2310 | { | 
|  | 2311 |  | 
|  | 2312 | ; | 
|  | 2313 | return 0; | 
|  | 2314 | } | 
|  | 2315 | _ACEOF | 
|  | 2316 | rm -f conftest.o conftest.obj | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2317 | if { (ac_try="$ac_compile" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2318 | case "(($ac_try" in | 
|  | 2319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2320 | *) ac_try_echo=$ac_try;; | 
|  | 2321 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2323 | (eval "$ac_compile") 2>&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2324 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2326 | (exit $ac_status); }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2327 | for ac_file in conftest.o conftest.obj conftest.*; do | 
|  | 2328 | test -f "$ac_file" || continue; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2329 | case $ac_file in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2330 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2331 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
|  | 2332 | break;; | 
|  | 2333 | esac | 
|  | 2334 | done | 
|  | 2335 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2336 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2337 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2338 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2339 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | 
|  | 2340 | See \`config.log' for more details." >&5 | 
|  | 2341 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | 
|  | 2342 | See \`config.log' for more details." >&2;} | 
|  | 2343 | { (exit 1); exit 1; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2344 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2345 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2346 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
|  | 2347 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2348 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | 
|  | 2349 | echo "${ECHO_T}$ac_cv_objext" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2350 | OBJEXT=$ac_cv_objext | 
|  | 2351 | ac_objext=$OBJEXT | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2352 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 
|  | 2353 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | 
|  | 2354 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 
|  | 2355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2356 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2357 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2358 | /* confdefs.h.  */ | 
|  | 2359 | _ACEOF | 
|  | 2360 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2361 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2362 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2363 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2364 | int | 
|  | 2365 | main () | 
|  | 2366 | { | 
|  | 2367 | #ifndef __GNUC__ | 
|  | 2368 | choke me | 
|  | 2369 | #endif | 
|  | 2370 |  | 
|  | 2371 | ; | 
|  | 2372 | return 0; | 
|  | 2373 | } | 
|  | 2374 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2375 | rm -f conftest.$ac_objext | 
|  | 2376 | if { (ac_try="$ac_compile" | 
|  | 2377 | case "(($ac_try" in | 
|  | 2378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2379 | *) ac_try_echo=$ac_try;; | 
|  | 2380 | esac | 
|  | 2381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2382 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 2383 | ac_status=$? | 
|  | 2384 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2385 | rm -f conftest.er1 | 
|  | 2386 | cat conftest.err >&5 | 
|  | 2387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2388 | (exit $ac_status); } && | 
|  | 2389 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 2390 | { (case "(($ac_try" in | 
|  | 2391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2392 | *) ac_try_echo=$ac_try;; | 
|  | 2393 | esac | 
|  | 2394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2395 | (eval "$ac_try") 2>&5 | 
|  | 2396 | ac_status=$? | 
|  | 2397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2398 | (exit $ac_status); }; } && | 
|  | 2399 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2400 | { (case "(($ac_try" in | 
|  | 2401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2402 | *) ac_try_echo=$ac_try;; | 
|  | 2403 | esac | 
|  | 2404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2405 | (eval "$ac_try") 2>&5 | 
|  | 2406 | ac_status=$? | 
|  | 2407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2408 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2409 | ac_compiler_gnu=yes | 
|  | 2410 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2411 | echo "$as_me: failed program was:" >&5 | 
|  | 2412 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2413 |  | 
|  | 2414 | ac_compiler_gnu=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2415 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2416 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2418 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2419 |  | 
|  | 2420 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2421 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 
|  | 2422 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | 
|  | 2423 | GCC=`test $ac_compiler_gnu = yes && echo yes` | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2424 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 2425 | ac_save_CFLAGS=$CFLAGS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2426 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 
|  | 2427 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | 
|  | 2428 | if test "${ac_cv_prog_cc_g+set}" = set; then | 
|  | 2429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2430 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2431 | ac_save_c_werror_flag=$ac_c_werror_flag | 
|  | 2432 | ac_c_werror_flag=yes | 
|  | 2433 | ac_cv_prog_cc_g=no | 
|  | 2434 | CFLAGS="-g" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2435 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2436 | /* confdefs.h.  */ | 
|  | 2437 | _ACEOF | 
|  | 2438 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2439 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2440 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2441 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2442 | int | 
|  | 2443 | main () | 
|  | 2444 | { | 
|  | 2445 |  | 
|  | 2446 | ; | 
|  | 2447 | return 0; | 
|  | 2448 | } | 
|  | 2449 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2450 | rm -f conftest.$ac_objext | 
|  | 2451 | if { (ac_try="$ac_compile" | 
|  | 2452 | case "(($ac_try" in | 
|  | 2453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2454 | *) ac_try_echo=$ac_try;; | 
|  | 2455 | esac | 
|  | 2456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2457 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 2458 | ac_status=$? | 
|  | 2459 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2460 | rm -f conftest.er1 | 
|  | 2461 | cat conftest.err >&5 | 
|  | 2462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2463 | (exit $ac_status); } && | 
|  | 2464 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 2465 | { (case "(($ac_try" in | 
|  | 2466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2467 | *) ac_try_echo=$ac_try;; | 
|  | 2468 | esac | 
|  | 2469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2470 | (eval "$ac_try") 2>&5 | 
|  | 2471 | ac_status=$? | 
|  | 2472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2473 | (exit $ac_status); }; } && | 
|  | 2474 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2475 | { (case "(($ac_try" in | 
|  | 2476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2477 | *) ac_try_echo=$ac_try;; | 
|  | 2478 | esac | 
|  | 2479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2480 | (eval "$ac_try") 2>&5 | 
|  | 2481 | ac_status=$? | 
|  | 2482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2483 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2484 | ac_cv_prog_cc_g=yes | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2485 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2486 | echo "$as_me: failed program was:" >&5 | 
|  | 2487 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2488 |  | 
|  | 2489 | CFLAGS="" | 
|  | 2490 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2491 | /* confdefs.h.  */ | 
|  | 2492 | _ACEOF | 
|  | 2493 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2494 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2495 | /* end confdefs.h.  */ | 
|  | 2496 |  | 
|  | 2497 | int | 
|  | 2498 | main () | 
|  | 2499 | { | 
|  | 2500 |  | 
|  | 2501 | ; | 
|  | 2502 | return 0; | 
|  | 2503 | } | 
|  | 2504 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2505 | rm -f conftest.$ac_objext | 
|  | 2506 | if { (ac_try="$ac_compile" | 
|  | 2507 | case "(($ac_try" in | 
|  | 2508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2509 | *) ac_try_echo=$ac_try;; | 
|  | 2510 | esac | 
|  | 2511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2512 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 2513 | ac_status=$? | 
|  | 2514 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2515 | rm -f conftest.er1 | 
|  | 2516 | cat conftest.err >&5 | 
|  | 2517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2518 | (exit $ac_status); } && | 
|  | 2519 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 2520 | { (case "(($ac_try" in | 
|  | 2521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2522 | *) ac_try_echo=$ac_try;; | 
|  | 2523 | esac | 
|  | 2524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2525 | (eval "$ac_try") 2>&5 | 
|  | 2526 | ac_status=$? | 
|  | 2527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2528 | (exit $ac_status); }; } && | 
|  | 2529 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2530 | { (case "(($ac_try" in | 
|  | 2531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2532 | *) ac_try_echo=$ac_try;; | 
|  | 2533 | esac | 
|  | 2534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2535 | (eval "$ac_try") 2>&5 | 
|  | 2536 | ac_status=$? | 
|  | 2537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2538 | (exit $ac_status); }; }; then | 
|  | 2539 | : | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2540 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2541 | echo "$as_me: failed program was:" >&5 | 
|  | 2542 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2543 |  | 
|  | 2544 | ac_c_werror_flag=$ac_save_c_werror_flag | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2545 | CFLAGS="-g" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2546 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2547 | /* confdefs.h.  */ | 
|  | 2548 | _ACEOF | 
|  | 2549 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2550 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2551 | /* end confdefs.h.  */ | 
|  | 2552 |  | 
|  | 2553 | int | 
|  | 2554 | main () | 
|  | 2555 | { | 
|  | 2556 |  | 
|  | 2557 | ; | 
|  | 2558 | return 0; | 
|  | 2559 | } | 
|  | 2560 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2561 | rm -f conftest.$ac_objext | 
|  | 2562 | if { (ac_try="$ac_compile" | 
|  | 2563 | case "(($ac_try" in | 
|  | 2564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2565 | *) ac_try_echo=$ac_try;; | 
|  | 2566 | esac | 
|  | 2567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2568 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 2569 | ac_status=$? | 
|  | 2570 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2571 | rm -f conftest.er1 | 
|  | 2572 | cat conftest.err >&5 | 
|  | 2573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2574 | (exit $ac_status); } && | 
|  | 2575 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 2576 | { (case "(($ac_try" in | 
|  | 2577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2578 | *) ac_try_echo=$ac_try;; | 
|  | 2579 | esac | 
|  | 2580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2581 | (eval "$ac_try") 2>&5 | 
|  | 2582 | ac_status=$? | 
|  | 2583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2584 | (exit $ac_status); }; } && | 
|  | 2585 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2586 | { (case "(($ac_try" in | 
|  | 2587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2588 | *) ac_try_echo=$ac_try;; | 
|  | 2589 | esac | 
|  | 2590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2591 | (eval "$ac_try") 2>&5 | 
|  | 2592 | ac_status=$? | 
|  | 2593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2594 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2595 | ac_cv_prog_cc_g=yes | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2596 | else | 
|  | 2597 | echo "$as_me: failed program was:" >&5 | 
|  | 2598 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2599 |  | 
|  | 2600 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2601 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2602 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2604 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2605 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2607 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2608 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2610 | ac_c_werror_flag=$ac_save_c_werror_flag | 
|  | 2611 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2612 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 
|  | 2613 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2614 | if test "$ac_test_CFLAGS" = set; then | 
|  | 2615 | CFLAGS=$ac_save_CFLAGS | 
|  | 2616 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 2617 | if test "$GCC" = yes; then | 
|  | 2618 | CFLAGS="-g -O2" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2619 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2620 | CFLAGS="-g" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2621 | fi | 
|  | 2622 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2623 | if test "$GCC" = yes; then | 
|  | 2624 | CFLAGS="-O2" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2625 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2626 | CFLAGS= | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2627 | fi | 
|  | 2628 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2629 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | 
|  | 2630 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | 
|  | 2631 | if test "${ac_cv_prog_cc_c89+set}" = set; then | 
|  | 2632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2633 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2634 | ac_cv_prog_cc_c89=no | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2635 | ac_save_CC=$CC | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2636 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2637 | /* confdefs.h.  */ | 
|  | 2638 | _ACEOF | 
|  | 2639 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2640 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2641 | /* end confdefs.h.  */ | 
|  | 2642 | #include <stdarg.h> | 
|  | 2643 | #include <stdio.h> | 
|  | 2644 | #include <sys/types.h> | 
|  | 2645 | #include <sys/stat.h> | 
|  | 2646 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 2647 | struct buf { int x; }; | 
|  | 2648 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 2649 | static char *e (p, i) | 
|  | 2650 | char **p; | 
|  | 2651 | int i; | 
|  | 2652 | { | 
|  | 2653 | return p[i]; | 
|  | 2654 | } | 
|  | 2655 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 2656 | { | 
|  | 2657 | char *s; | 
|  | 2658 | va_list v; | 
|  | 2659 | va_start (v,p); | 
|  | 2660 | s = g (p, va_arg (v,int)); | 
|  | 2661 | va_end (v); | 
|  | 2662 | return s; | 
|  | 2663 | } | 
|  | 2664 |  | 
|  | 2665 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 2666 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 2667 | These don't provoke an error unfortunately, instead are silently treated | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2668 | as 'x'.  The following induces an error, until -std is added to get | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2669 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 2670 | array size at least.  It's necessary to write '\x00'==0 to get something | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2671 | that's true only with -std.  */ | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2672 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 2673 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2674 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
|  | 2675 | inside strings and character constants.  */ | 
|  | 2676 | #define FOO(x) 'x' | 
|  | 2677 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
|  | 2678 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2679 | int test (int i, double x); | 
|  | 2680 | struct s1 {int (*f) (int a);}; | 
|  | 2681 | struct s2 {int (*f) (double a);}; | 
|  | 2682 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 2683 | int argc; | 
|  | 2684 | char **argv; | 
|  | 2685 | int | 
|  | 2686 | main () | 
|  | 2687 | { | 
|  | 2688 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 2689 | ; | 
|  | 2690 | return 0; | 
|  | 2691 | } | 
|  | 2692 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2693 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
|  | 2694 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2695 | do | 
|  | 2696 | CC="$ac_save_CC $ac_arg" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2697 | rm -f conftest.$ac_objext | 
|  | 2698 | if { (ac_try="$ac_compile" | 
|  | 2699 | case "(($ac_try" in | 
|  | 2700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2701 | *) ac_try_echo=$ac_try;; | 
|  | 2702 | esac | 
|  | 2703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2704 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 2705 | ac_status=$? | 
|  | 2706 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2707 | rm -f conftest.er1 | 
|  | 2708 | cat conftest.err >&5 | 
|  | 2709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2710 | (exit $ac_status); } && | 
|  | 2711 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 2712 | { (case "(($ac_try" in | 
|  | 2713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2714 | *) ac_try_echo=$ac_try;; | 
|  | 2715 | esac | 
|  | 2716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2717 | (eval "$ac_try") 2>&5 | 
|  | 2718 | ac_status=$? | 
|  | 2719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2720 | (exit $ac_status); }; } && | 
|  | 2721 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2722 | { (case "(($ac_try" in | 
|  | 2723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2724 | *) ac_try_echo=$ac_try;; | 
|  | 2725 | esac | 
|  | 2726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2727 | (eval "$ac_try") 2>&5 | 
|  | 2728 | ac_status=$? | 
|  | 2729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2730 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2731 | ac_cv_prog_cc_c89=$ac_arg | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2732 | else | 
|  | 2733 | echo "$as_me: failed program was:" >&5 | 
|  | 2734 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2735 |  | 
|  | 2736 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2737 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2738 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2739 | rm -f core conftest.err conftest.$ac_objext | 
|  | 2740 | test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2741 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2742 | rm -f conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2743 | CC=$ac_save_CC | 
|  | 2744 |  | 
|  | 2745 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2746 | # AC_CACHE_VAL | 
|  | 2747 | case "x$ac_cv_prog_cc_c89" in | 
|  | 2748 | x) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2749 | { echo "$as_me:$LINENO: result: none needed" >&5 | 
|  | 2750 | echo "${ECHO_T}none needed" >&6; } ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2751 | xno) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2752 | { echo "$as_me:$LINENO: result: unsupported" >&5 | 
|  | 2753 | echo "${ECHO_T}unsupported" >&6; } ;; | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2754 | *) | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2755 | CC="$CC $ac_cv_prog_cc_c89" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2756 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | 
|  | 2757 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2758 | esac | 
|  | 2759 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2760 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2761 | ac_ext=c | 
|  | 2762 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 2763 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2764 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2765 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 2766 |  | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2767 | ac_ext=cpp | 
|  | 2768 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 2769 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2770 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2771 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 2772 | if test -z "$CXX"; then | 
|  | 2773 | if test -n "$CCC"; then | 
|  | 2774 | CXX=$CCC | 
|  | 2775 | else | 
|  | 2776 | if test -n "$ac_tool_prefix"; then | 
|  | 2777 | for ac_prog in clang++ llvm-g++ g++ | 
|  | 2778 | do | 
|  | 2779 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 2780 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 2781 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 2782 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 2783 | if test "${ac_cv_prog_CXX+set}" = set; then | 
|  | 2784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2785 | else | 
|  | 2786 | if test -n "$CXX"; then | 
|  | 2787 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 2788 | else | 
|  | 2789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2790 | for as_dir in $PATH | 
|  | 2791 | do | 
|  | 2792 | IFS=$as_save_IFS | 
|  | 2793 | test -z "$as_dir" && as_dir=. | 
|  | 2794 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 2795 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 2796 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
|  | 2797 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2798 | break 2 | 
|  | 2799 | fi | 
|  | 2800 | done | 
|  | 2801 | done | 
|  | 2802 | IFS=$as_save_IFS | 
|  | 2803 |  | 
|  | 2804 | fi | 
|  | 2805 | fi | 
|  | 2806 | CXX=$ac_cv_prog_CXX | 
|  | 2807 | if test -n "$CXX"; then | 
|  | 2808 | { echo "$as_me:$LINENO: result: $CXX" >&5 | 
|  | 2809 | echo "${ECHO_T}$CXX" >&6; } | 
|  | 2810 | else | 
|  | 2811 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 2812 | echo "${ECHO_T}no" >&6; } | 
|  | 2813 | fi | 
|  | 2814 |  | 
|  | 2815 |  | 
|  | 2816 | test -n "$CXX" && break | 
|  | 2817 | done | 
|  | 2818 | fi | 
|  | 2819 | if test -z "$CXX"; then | 
|  | 2820 | ac_ct_CXX=$CXX | 
|  | 2821 | for ac_prog in clang++ llvm-g++ g++ | 
|  | 2822 | do | 
|  | 2823 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 2824 | set dummy $ac_prog; ac_word=$2 | 
|  | 2825 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 2826 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 2827 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | 
|  | 2828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2829 | else | 
|  | 2830 | if test -n "$ac_ct_CXX"; then | 
|  | 2831 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
|  | 2832 | else | 
|  | 2833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2834 | for as_dir in $PATH | 
|  | 2835 | do | 
|  | 2836 | IFS=$as_save_IFS | 
|  | 2837 | test -z "$as_dir" && as_dir=. | 
|  | 2838 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 2839 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 2840 | ac_cv_prog_ac_ct_CXX="$ac_prog" | 
|  | 2841 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2842 | break 2 | 
|  | 2843 | fi | 
|  | 2844 | done | 
|  | 2845 | done | 
|  | 2846 | IFS=$as_save_IFS | 
|  | 2847 |  | 
|  | 2848 | fi | 
|  | 2849 | fi | 
|  | 2850 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
|  | 2851 | if test -n "$ac_ct_CXX"; then | 
|  | 2852 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | 
|  | 2853 | echo "${ECHO_T}$ac_ct_CXX" >&6; } | 
|  | 2854 | else | 
|  | 2855 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 2856 | echo "${ECHO_T}no" >&6; } | 
|  | 2857 | fi | 
|  | 2858 |  | 
|  | 2859 |  | 
|  | 2860 | test -n "$ac_ct_CXX" && break | 
|  | 2861 | done | 
|  | 2862 |  | 
|  | 2863 | if test "x$ac_ct_CXX" = x; then | 
|  | 2864 | CXX="g++" | 
|  | 2865 | else | 
|  | 2866 | case $cross_compiling:$ac_tool_warned in | 
|  | 2867 | yes:) | 
|  | 2868 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
|  | 2869 | whose name does not start with the host triplet.  If you think this | 
|  | 2870 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
|  | 2871 | echo "$as_me: 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@gnu.org." >&2;} | 
|  | 2874 | ac_tool_warned=yes ;; | 
|  | 2875 | esac | 
|  | 2876 | CXX=$ac_ct_CXX | 
|  | 2877 | fi | 
|  | 2878 | fi | 
|  | 2879 |  | 
|  | 2880 | fi | 
|  | 2881 | fi | 
|  | 2882 | # Provide some information about the compiler. | 
|  | 2883 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 | 
|  | 2884 | ac_compiler=`set X $ac_compile; echo $2` | 
|  | 2885 | { (ac_try="$ac_compiler --version >&5" | 
|  | 2886 | case "(($ac_try" in | 
|  | 2887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2888 | *) ac_try_echo=$ac_try;; | 
|  | 2889 | esac | 
|  | 2890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2891 | (eval "$ac_compiler --version >&5") 2>&5 | 
|  | 2892 | ac_status=$? | 
|  | 2893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2894 | (exit $ac_status); } | 
|  | 2895 | { (ac_try="$ac_compiler -v >&5" | 
|  | 2896 | case "(($ac_try" in | 
|  | 2897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2898 | *) ac_try_echo=$ac_try;; | 
|  | 2899 | esac | 
|  | 2900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2901 | (eval "$ac_compiler -v >&5") 2>&5 | 
|  | 2902 | ac_status=$? | 
|  | 2903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2904 | (exit $ac_status); } | 
|  | 2905 | { (ac_try="$ac_compiler -V >&5" | 
|  | 2906 | case "(($ac_try" in | 
|  | 2907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2908 | *) ac_try_echo=$ac_try;; | 
|  | 2909 | esac | 
|  | 2910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2911 | (eval "$ac_compiler -V >&5") 2>&5 | 
|  | 2912 | ac_status=$? | 
|  | 2913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2914 | (exit $ac_status); } | 
|  | 2915 |  | 
|  | 2916 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | 
|  | 2917 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | 
|  | 2918 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | 
|  | 2919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2920 | else | 
|  | 2921 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2922 | /* confdefs.h.  */ | 
|  | 2923 | _ACEOF | 
|  | 2924 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2925 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2926 | /* end confdefs.h.  */ | 
|  | 2927 |  | 
|  | 2928 | int | 
|  | 2929 | main () | 
|  | 2930 | { | 
|  | 2931 | #ifndef __GNUC__ | 
|  | 2932 | choke me | 
|  | 2933 | #endif | 
|  | 2934 |  | 
|  | 2935 | ; | 
|  | 2936 | return 0; | 
|  | 2937 | } | 
|  | 2938 | _ACEOF | 
|  | 2939 | rm -f conftest.$ac_objext | 
|  | 2940 | if { (ac_try="$ac_compile" | 
|  | 2941 | case "(($ac_try" in | 
|  | 2942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2943 | *) ac_try_echo=$ac_try;; | 
|  | 2944 | esac | 
|  | 2945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2946 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 2947 | ac_status=$? | 
|  | 2948 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2949 | rm -f conftest.er1 | 
|  | 2950 | cat conftest.err >&5 | 
|  | 2951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2952 | (exit $ac_status); } && | 
|  | 2953 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 2954 | { (case "(($ac_try" in | 
|  | 2955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2956 | *) ac_try_echo=$ac_try;; | 
|  | 2957 | esac | 
|  | 2958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2959 | (eval "$ac_try") 2>&5 | 
|  | 2960 | ac_status=$? | 
|  | 2961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2962 | (exit $ac_status); }; } && | 
|  | 2963 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2964 | { (case "(($ac_try" in | 
|  | 2965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2966 | *) ac_try_echo=$ac_try;; | 
|  | 2967 | esac | 
|  | 2968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 2969 | (eval "$ac_try") 2>&5 | 
|  | 2970 | ac_status=$? | 
|  | 2971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2972 | (exit $ac_status); }; }; then | 
|  | 2973 | ac_compiler_gnu=yes | 
|  | 2974 | else | 
|  | 2975 | echo "$as_me: failed program was:" >&5 | 
|  | 2976 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2977 |  | 
|  | 2978 | ac_compiler_gnu=no | 
|  | 2979 | fi | 
|  | 2980 |  | 
|  | 2981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2982 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 
|  | 2983 |  | 
|  | 2984 | fi | 
|  | 2985 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | 
|  | 2986 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | 
|  | 2987 | GXX=`test $ac_compiler_gnu = yes && echo yes` | 
|  | 2988 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 
|  | 2989 | ac_save_CXXFLAGS=$CXXFLAGS | 
|  | 2990 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | 
|  | 2991 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | 
|  | 2992 | if test "${ac_cv_prog_cxx_g+set}" = set; then | 
|  | 2993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2994 | else | 
|  | 2995 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | 
|  | 2996 | ac_cxx_werror_flag=yes | 
|  | 2997 | ac_cv_prog_cxx_g=no | 
|  | 2998 | CXXFLAGS="-g" | 
|  | 2999 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3000 | /* confdefs.h.  */ | 
|  | 3001 | _ACEOF | 
|  | 3002 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3003 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3004 | /* end confdefs.h.  */ | 
|  | 3005 |  | 
|  | 3006 | int | 
|  | 3007 | main () | 
|  | 3008 | { | 
|  | 3009 |  | 
|  | 3010 | ; | 
|  | 3011 | return 0; | 
|  | 3012 | } | 
|  | 3013 | _ACEOF | 
|  | 3014 | rm -f conftest.$ac_objext | 
|  | 3015 | if { (ac_try="$ac_compile" | 
|  | 3016 | case "(($ac_try" in | 
|  | 3017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3018 | *) ac_try_echo=$ac_try;; | 
|  | 3019 | esac | 
|  | 3020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3021 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 3022 | ac_status=$? | 
|  | 3023 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3024 | rm -f conftest.er1 | 
|  | 3025 | cat conftest.err >&5 | 
|  | 3026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3027 | (exit $ac_status); } && | 
|  | 3028 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 3029 | { (case "(($ac_try" in | 
|  | 3030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3031 | *) ac_try_echo=$ac_try;; | 
|  | 3032 | esac | 
|  | 3033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3034 | (eval "$ac_try") 2>&5 | 
|  | 3035 | ac_status=$? | 
|  | 3036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3037 | (exit $ac_status); }; } && | 
|  | 3038 | { ac_try='test -s conftest.$ac_objext' | 
|  | 3039 | { (case "(($ac_try" in | 
|  | 3040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3041 | *) ac_try_echo=$ac_try;; | 
|  | 3042 | esac | 
|  | 3043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3044 | (eval "$ac_try") 2>&5 | 
|  | 3045 | ac_status=$? | 
|  | 3046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3047 | (exit $ac_status); }; }; then | 
|  | 3048 | ac_cv_prog_cxx_g=yes | 
|  | 3049 | else | 
|  | 3050 | echo "$as_me: failed program was:" >&5 | 
|  | 3051 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3052 |  | 
|  | 3053 | CXXFLAGS="" | 
|  | 3054 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3055 | /* confdefs.h.  */ | 
|  | 3056 | _ACEOF | 
|  | 3057 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3058 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3059 | /* end confdefs.h.  */ | 
|  | 3060 |  | 
|  | 3061 | int | 
|  | 3062 | main () | 
|  | 3063 | { | 
|  | 3064 |  | 
|  | 3065 | ; | 
|  | 3066 | return 0; | 
|  | 3067 | } | 
|  | 3068 | _ACEOF | 
|  | 3069 | rm -f conftest.$ac_objext | 
|  | 3070 | if { (ac_try="$ac_compile" | 
|  | 3071 | case "(($ac_try" in | 
|  | 3072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3073 | *) ac_try_echo=$ac_try;; | 
|  | 3074 | esac | 
|  | 3075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3076 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 3077 | ac_status=$? | 
|  | 3078 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3079 | rm -f conftest.er1 | 
|  | 3080 | cat conftest.err >&5 | 
|  | 3081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3082 | (exit $ac_status); } && | 
|  | 3083 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 3084 | { (case "(($ac_try" in | 
|  | 3085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3086 | *) ac_try_echo=$ac_try;; | 
|  | 3087 | esac | 
|  | 3088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3089 | (eval "$ac_try") 2>&5 | 
|  | 3090 | ac_status=$? | 
|  | 3091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3092 | (exit $ac_status); }; } && | 
|  | 3093 | { ac_try='test -s conftest.$ac_objext' | 
|  | 3094 | { (case "(($ac_try" in | 
|  | 3095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3096 | *) ac_try_echo=$ac_try;; | 
|  | 3097 | esac | 
|  | 3098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3099 | (eval "$ac_try") 2>&5 | 
|  | 3100 | ac_status=$? | 
|  | 3101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3102 | (exit $ac_status); }; }; then | 
|  | 3103 | : | 
|  | 3104 | else | 
|  | 3105 | echo "$as_me: failed program was:" >&5 | 
|  | 3106 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3107 |  | 
|  | 3108 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 
|  | 3109 | CXXFLAGS="-g" | 
|  | 3110 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3111 | /* confdefs.h.  */ | 
|  | 3112 | _ACEOF | 
|  | 3113 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3114 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3115 | /* end confdefs.h.  */ | 
|  | 3116 |  | 
|  | 3117 | int | 
|  | 3118 | main () | 
|  | 3119 | { | 
|  | 3120 |  | 
|  | 3121 | ; | 
|  | 3122 | return 0; | 
|  | 3123 | } | 
|  | 3124 | _ACEOF | 
|  | 3125 | rm -f conftest.$ac_objext | 
|  | 3126 | if { (ac_try="$ac_compile" | 
|  | 3127 | case "(($ac_try" in | 
|  | 3128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3129 | *) ac_try_echo=$ac_try;; | 
|  | 3130 | esac | 
|  | 3131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3132 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 3133 | ac_status=$? | 
|  | 3134 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3135 | rm -f conftest.er1 | 
|  | 3136 | cat conftest.err >&5 | 
|  | 3137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3138 | (exit $ac_status); } && | 
|  | 3139 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 3140 | { (case "(($ac_try" in | 
|  | 3141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3142 | *) ac_try_echo=$ac_try;; | 
|  | 3143 | esac | 
|  | 3144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3145 | (eval "$ac_try") 2>&5 | 
|  | 3146 | ac_status=$? | 
|  | 3147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3148 | (exit $ac_status); }; } && | 
|  | 3149 | { ac_try='test -s conftest.$ac_objext' | 
|  | 3150 | { (case "(($ac_try" in | 
|  | 3151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3152 | *) ac_try_echo=$ac_try;; | 
|  | 3153 | esac | 
|  | 3154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3155 | (eval "$ac_try") 2>&5 | 
|  | 3156 | ac_status=$? | 
|  | 3157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3158 | (exit $ac_status); }; }; then | 
|  | 3159 | ac_cv_prog_cxx_g=yes | 
|  | 3160 | else | 
|  | 3161 | echo "$as_me: failed program was:" >&5 | 
|  | 3162 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3163 |  | 
|  | 3164 |  | 
|  | 3165 | fi | 
|  | 3166 |  | 
|  | 3167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 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 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 
|  | 3175 | fi | 
|  | 3176 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | 
|  | 3177 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | 
|  | 3178 | if test "$ac_test_CXXFLAGS" = set; then | 
|  | 3179 | CXXFLAGS=$ac_save_CXXFLAGS | 
|  | 3180 | elif test $ac_cv_prog_cxx_g = yes; then | 
|  | 3181 | if test "$GXX" = yes; then | 
|  | 3182 | CXXFLAGS="-g -O2" | 
|  | 3183 | else | 
|  | 3184 | CXXFLAGS="-g" | 
|  | 3185 | fi | 
|  | 3186 | else | 
|  | 3187 | if test "$GXX" = yes; then | 
|  | 3188 | CXXFLAGS="-O2" | 
|  | 3189 | else | 
|  | 3190 | CXXFLAGS= | 
|  | 3191 | fi | 
|  | 3192 | fi | 
|  | 3193 | ac_ext=c | 
|  | 3194 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3198 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3199 | ac_ext=c | 
|  | 3200 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3201 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3202 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3203 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3204 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | 
|  | 3205 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3206 | # On Suns, sometimes $CPP names a directory. | 
|  | 3207 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 3208 | CPP= | 
|  | 3209 | fi | 
|  | 3210 | if test -z "$CPP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3211 | if test "${ac_cv_prog_CPP+set}" = set; then | 
|  | 3212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3213 | else | 
|  | 3214 | # Double quotes because CPP needs to be expanded | 
|  | 3215 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
|  | 3216 | do | 
|  | 3217 | ac_preproc_ok=false | 
|  | 3218 | for ac_c_preproc_warn_flag in '' yes | 
|  | 3219 | do | 
|  | 3220 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 3221 | # with a fresh cross-compiler works. | 
|  | 3222 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 3223 | # <limits.h> exists even on freestanding compilers. | 
|  | 3224 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 3225 | # not just through cpp. "Syntax error" is here to catch this case. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3226 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3227 | /* confdefs.h.  */ | 
|  | 3228 | _ACEOF | 
|  | 3229 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3230 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3231 | /* end confdefs.h.  */ | 
|  | 3232 | #ifdef __STDC__ | 
|  | 3233 | # include <limits.h> | 
|  | 3234 | #else | 
|  | 3235 | # include <assert.h> | 
|  | 3236 | #endif | 
|  | 3237 | Syntax error | 
|  | 3238 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3239 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 3240 | case "(($ac_try" in | 
|  | 3241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3242 | *) ac_try_echo=$ac_try;; | 
|  | 3243 | esac | 
|  | 3244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3245 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 3246 | ac_status=$? | 
|  | 3247 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3248 | rm -f conftest.er1 | 
|  | 3249 | cat conftest.err >&5 | 
|  | 3250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3251 | (exit $ac_status); } >/dev/null; then | 
|  | 3252 | if test -s conftest.err; then | 
|  | 3253 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 3254 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 3255 | else | 
|  | 3256 | ac_cpp_err= | 
|  | 3257 | fi | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3258 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3259 | ac_cpp_err=yes | 
|  | 3260 | fi | 
|  | 3261 | if test -z "$ac_cpp_err"; then | 
|  | 3262 | : | 
|  | 3263 | else | 
|  | 3264 | echo "$as_me: failed program was:" >&5 | 
|  | 3265 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3266 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3267 | # Broken: fails on valid input. | 
|  | 3268 | continue | 
|  | 3269 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3270 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3271 | rm -f conftest.err conftest.$ac_ext | 
|  | 3272 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3273 | # OK, works on sane cases.  Now check whether nonexistent headers | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3274 | # can be detected and how. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3275 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3276 | /* confdefs.h.  */ | 
|  | 3277 | _ACEOF | 
|  | 3278 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3279 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3280 | /* end confdefs.h.  */ | 
|  | 3281 | #include <ac_nonexistent.h> | 
|  | 3282 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3283 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 3284 | case "(($ac_try" in | 
|  | 3285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3286 | *) ac_try_echo=$ac_try;; | 
|  | 3287 | esac | 
|  | 3288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3289 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 3290 | ac_status=$? | 
|  | 3291 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3292 | rm -f conftest.er1 | 
|  | 3293 | cat conftest.err >&5 | 
|  | 3294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3295 | (exit $ac_status); } >/dev/null; then | 
|  | 3296 | if test -s conftest.err; then | 
|  | 3297 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 3298 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 3299 | else | 
|  | 3300 | ac_cpp_err= | 
|  | 3301 | fi | 
|  | 3302 | else | 
|  | 3303 | ac_cpp_err=yes | 
|  | 3304 | fi | 
|  | 3305 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3306 | # Broken: success on invalid input. | 
|  | 3307 | continue | 
|  | 3308 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3309 | echo "$as_me: failed program was:" >&5 | 
|  | 3310 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3311 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3312 | # Passes both tests. | 
|  | 3313 | ac_preproc_ok=: | 
|  | 3314 | break | 
|  | 3315 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3316 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3317 | rm -f conftest.err conftest.$ac_ext | 
|  | 3318 |  | 
|  | 3319 | done | 
|  | 3320 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 3321 | rm -f conftest.err conftest.$ac_ext | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3322 | if $ac_preproc_ok; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3323 | break | 
|  | 3324 | fi | 
|  | 3325 |  | 
|  | 3326 | done | 
|  | 3327 | ac_cv_prog_CPP=$CPP | 
|  | 3328 |  | 
|  | 3329 | fi | 
|  | 3330 | CPP=$ac_cv_prog_CPP | 
|  | 3331 | else | 
|  | 3332 | ac_cv_prog_CPP=$CPP | 
|  | 3333 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3334 | { echo "$as_me:$LINENO: result: $CPP" >&5 | 
|  | 3335 | echo "${ECHO_T}$CPP" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3336 | ac_preproc_ok=false | 
|  | 3337 | for ac_c_preproc_warn_flag in '' yes | 
|  | 3338 | do | 
|  | 3339 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 3340 | # with a fresh cross-compiler works. | 
|  | 3341 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 3342 | # <limits.h> exists even on freestanding compilers. | 
|  | 3343 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 3344 | # not just through cpp. "Syntax error" is here to catch this case. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3345 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3346 | /* confdefs.h.  */ | 
|  | 3347 | _ACEOF | 
|  | 3348 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3349 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3350 | /* end confdefs.h.  */ | 
|  | 3351 | #ifdef __STDC__ | 
|  | 3352 | # include <limits.h> | 
|  | 3353 | #else | 
|  | 3354 | # include <assert.h> | 
|  | 3355 | #endif | 
|  | 3356 | Syntax error | 
|  | 3357 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3358 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 3359 | case "(($ac_try" in | 
|  | 3360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3361 | *) ac_try_echo=$ac_try;; | 
|  | 3362 | esac | 
|  | 3363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3364 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 3365 | ac_status=$? | 
|  | 3366 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3367 | rm -f conftest.er1 | 
|  | 3368 | cat conftest.err >&5 | 
|  | 3369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3370 | (exit $ac_status); } >/dev/null; then | 
|  | 3371 | if test -s conftest.err; then | 
|  | 3372 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 3373 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 3374 | else | 
|  | 3375 | ac_cpp_err= | 
|  | 3376 | fi | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3377 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3378 | ac_cpp_err=yes | 
|  | 3379 | fi | 
|  | 3380 | if test -z "$ac_cpp_err"; then | 
|  | 3381 | : | 
|  | 3382 | else | 
|  | 3383 | echo "$as_me: failed program was:" >&5 | 
|  | 3384 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3385 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3386 | # Broken: fails on valid input. | 
|  | 3387 | continue | 
|  | 3388 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3389 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3390 | rm -f conftest.err conftest.$ac_ext | 
|  | 3391 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3392 | # OK, works on sane cases.  Now check whether nonexistent headers | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3393 | # can be detected and how. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3394 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3395 | /* confdefs.h.  */ | 
|  | 3396 | _ACEOF | 
|  | 3397 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3398 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3399 | /* end confdefs.h.  */ | 
|  | 3400 | #include <ac_nonexistent.h> | 
|  | 3401 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3402 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 3403 | case "(($ac_try" in | 
|  | 3404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3405 | *) ac_try_echo=$ac_try;; | 
|  | 3406 | esac | 
|  | 3407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 3408 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 3409 | ac_status=$? | 
|  | 3410 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3411 | rm -f conftest.er1 | 
|  | 3412 | cat conftest.err >&5 | 
|  | 3413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3414 | (exit $ac_status); } >/dev/null; then | 
|  | 3415 | if test -s conftest.err; then | 
|  | 3416 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 3417 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 3418 | else | 
|  | 3419 | ac_cpp_err= | 
|  | 3420 | fi | 
|  | 3421 | else | 
|  | 3422 | ac_cpp_err=yes | 
|  | 3423 | fi | 
|  | 3424 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3425 | # Broken: success on invalid input. | 
|  | 3426 | continue | 
|  | 3427 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3428 | echo "$as_me: failed program was:" >&5 | 
|  | 3429 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3430 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3431 | # Passes both tests. | 
|  | 3432 | ac_preproc_ok=: | 
|  | 3433 | break | 
|  | 3434 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3435 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3436 | rm -f conftest.err conftest.$ac_ext | 
|  | 3437 |  | 
|  | 3438 | done | 
|  | 3439 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 3440 | rm -f conftest.err conftest.$ac_ext | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3441 | if $ac_preproc_ok; then | 
|  | 3442 | : | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3443 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3444 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | 
|  | 3445 | See \`config.log' for more details." >&5 | 
|  | 3446 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | 
|  | 3447 | See \`config.log' for more details." >&2;} | 
|  | 3448 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3449 | fi | 
|  | 3450 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3451 | ac_ext=c | 
|  | 3452 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3456 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3457 |  | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3458 |  | 
|  | 3459 |  | 
|  | 3460 | if test -d ${srcdir}/projects/llvm-gcc ; then | 
|  | 3461 | subdirs="$subdirs projects/llvm-gcc" | 
|  | 3462 |  | 
|  | 3463 | fi | 
|  | 3464 |  | 
|  | 3465 | if test -d ${srcdir}/projects/test-suite ; then | 
|  | 3466 | subdirs="$subdirs projects/test-suite" | 
|  | 3467 |  | 
|  | 3468 | fi | 
|  | 3469 |  | 
|  | 3470 | if test -d ${srcdir}/projects/llvm-test ; then | 
|  | 3471 | subdirs="$subdirs projects/llvm-test" | 
|  | 3472 |  | 
|  | 3473 | fi | 
|  | 3474 |  | 
|  | 3475 | if test -d ${srcdir}/projects/poolalloc ; then | 
|  | 3476 | subdirs="$subdirs projects/poolalloc" | 
|  | 3477 |  | 
|  | 3478 | fi | 
|  | 3479 |  | 
|  | 3480 | if test -d ${srcdir}/projects/llvm-poolalloc ; then | 
|  | 3481 | subdirs="$subdirs projects/llvm-poolalloc" | 
|  | 3482 |  | 
|  | 3483 | fi | 
|  | 3484 |  | 
|  | 3485 | for i in `ls ${srcdir}/projects` | 
|  | 3486 | do | 
|  | 3487 | if test -d ${srcdir}/projects/${i} ; then | 
|  | 3488 | case ${i} in | 
|  | 3489 | sample)       subdirs="$subdirs projects/sample" | 
|  | 3490 | ;; | 
|  | 3491 | privbracket)  subdirs="$subdirs projects/privbracket" | 
|  | 3492 | ;; | 
|  | 3493 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" | 
|  | 3494 | ;; | 
|  | 3495 | llvm-reopt)   subdirs="$subdirs projects/llvm-reopt" | 
|  | 3496 | ;; | 
|  | 3497 | llvm-java)    subdirs="$subdirs projects/llvm-java" | 
|  | 3498 | ;; | 
|  | 3499 | llvm-tv)      subdirs="$subdirs projects/llvm-tv" | 
|  | 3500 | ;; | 
|  | 3501 | safecode)     subdirs="$subdirs projects/safecode" | 
|  | 3502 | ;; | 
|  | 3503 | llvm-kernel)  subdirs="$subdirs projects/llvm-kernel" | 
|  | 3504 | ;; | 
| Daniel Dunbar | 7ce849d | 2011-12-07 22:07:03 +0000 | [diff] [blame] | 3505 | compiler-rt)       ;; | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3506 | llvm-gcc)       ;; | 
|  | 3507 | test-suite)     ;; | 
|  | 3508 | llvm-test)      ;; | 
|  | 3509 | poolalloc)      ;; | 
|  | 3510 | llvm-poolalloc) ;; | 
|  | 3511 | *) | 
|  | 3512 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 | 
|  | 3513 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} | 
|  | 3514 | ;; | 
|  | 3515 | esac | 
|  | 3516 | fi | 
|  | 3517 | done | 
|  | 3518 |  | 
|  | 3519 | # Check whether --enable-polly was given. | 
|  | 3520 | if test "${enable_polly+set}" = set; then | 
|  | 3521 | enableval=$enable_polly; | 
|  | 3522 | else | 
|  | 3523 | enableval=default | 
|  | 3524 | fi | 
|  | 3525 |  | 
|  | 3526 | case "$enableval" in | 
|  | 3527 | yes) ENABLE_POLLY=1 | 
|  | 3528 | ;; | 
|  | 3529 | no)  ENABLE_POLLY=0 | 
|  | 3530 | ;; | 
|  | 3531 | default) ENABLE_POLLY=1 | 
|  | 3532 | ;; | 
|  | 3533 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 | 
|  | 3534 | echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} | 
|  | 3535 | { (exit 1); exit 1; }; } ;; | 
|  | 3536 | esac | 
|  | 3537 |  | 
|  | 3538 |  | 
|  | 3539 | if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then | 
|  | 3540 | LLVM_HAS_POLLY=1 | 
|  | 3541 |  | 
|  | 3542 | subdirs="$subdirs tools/polly" | 
|  | 3543 |  | 
|  | 3544 | fi | 
|  | 3545 |  | 
|  | 3546 |  | 
|  | 3547 | # Make sure we can run config.sub. | 
|  | 3548 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
|  | 3549 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | 
|  | 3550 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | 
|  | 3551 | { (exit 1); exit 1; }; } | 
|  | 3552 |  | 
|  | 3553 | { echo "$as_me:$LINENO: checking build system type" >&5 | 
|  | 3554 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | 
|  | 3555 | if test "${ac_cv_build+set}" = set; then | 
|  | 3556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3557 | else | 
|  | 3558 | ac_build_alias=$build_alias | 
|  | 3559 | test "x$ac_build_alias" = x && | 
|  | 3560 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
|  | 3561 | test "x$ac_build_alias" = x && | 
|  | 3562 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | 
|  | 3563 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | 
|  | 3564 | { (exit 1); exit 1; }; } | 
|  | 3565 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
|  | 3566 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | 
|  | 3567 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | 
|  | 3568 | { (exit 1); exit 1; }; } | 
|  | 3569 |  | 
|  | 3570 | fi | 
|  | 3571 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | 
|  | 3572 | echo "${ECHO_T}$ac_cv_build" >&6; } | 
|  | 3573 | case $ac_cv_build in | 
|  | 3574 | *-*-*) ;; | 
|  | 3575 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | 
|  | 3576 | echo "$as_me: error: invalid value of canonical build" >&2;} | 
|  | 3577 | { (exit 1); exit 1; }; };; | 
|  | 3578 | esac | 
|  | 3579 | build=$ac_cv_build | 
|  | 3580 | ac_save_IFS=$IFS; IFS='-' | 
|  | 3581 | set x $ac_cv_build | 
|  | 3582 | shift | 
|  | 3583 | build_cpu=$1 | 
|  | 3584 | build_vendor=$2 | 
|  | 3585 | shift; shift | 
|  | 3586 | # Remember, the first character of IFS is used to create $*, | 
|  | 3587 | # except with old shells: | 
|  | 3588 | build_os=$* | 
|  | 3589 | IFS=$ac_save_IFS | 
|  | 3590 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
|  | 3591 |  | 
|  | 3592 |  | 
|  | 3593 | { echo "$as_me:$LINENO: checking host system type" >&5 | 
|  | 3594 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | 
|  | 3595 | if test "${ac_cv_host+set}" = set; then | 
|  | 3596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3597 | else | 
|  | 3598 | if test "x$host_alias" = x; then | 
|  | 3599 | ac_cv_host=$ac_cv_build | 
|  | 3600 | else | 
|  | 3601 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
|  | 3602 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | 
|  | 3603 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | 
|  | 3604 | { (exit 1); exit 1; }; } | 
|  | 3605 | fi | 
|  | 3606 |  | 
|  | 3607 | fi | 
|  | 3608 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | 
|  | 3609 | echo "${ECHO_T}$ac_cv_host" >&6; } | 
|  | 3610 | case $ac_cv_host in | 
|  | 3611 | *-*-*) ;; | 
|  | 3612 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | 
|  | 3613 | echo "$as_me: error: invalid value of canonical host" >&2;} | 
|  | 3614 | { (exit 1); exit 1; }; };; | 
|  | 3615 | esac | 
|  | 3616 | host=$ac_cv_host | 
|  | 3617 | ac_save_IFS=$IFS; IFS='-' | 
|  | 3618 | set x $ac_cv_host | 
|  | 3619 | shift | 
|  | 3620 | host_cpu=$1 | 
|  | 3621 | host_vendor=$2 | 
|  | 3622 | shift; shift | 
|  | 3623 | # Remember, the first character of IFS is used to create $*, | 
|  | 3624 | # except with old shells: | 
|  | 3625 | host_os=$* | 
|  | 3626 | IFS=$ac_save_IFS | 
|  | 3627 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
|  | 3628 |  | 
|  | 3629 |  | 
|  | 3630 | { echo "$as_me:$LINENO: checking target system type" >&5 | 
|  | 3631 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | 
|  | 3632 | if test "${ac_cv_target+set}" = set; then | 
|  | 3633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3634 | else | 
|  | 3635 | if test "x$target_alias" = x; then | 
|  | 3636 | ac_cv_target=$ac_cv_host | 
|  | 3637 | else | 
|  | 3638 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | 
|  | 3639 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 | 
|  | 3640 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | 
|  | 3641 | { (exit 1); exit 1; }; } | 
|  | 3642 | fi | 
|  | 3643 |  | 
|  | 3644 | fi | 
|  | 3645 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | 
|  | 3646 | echo "${ECHO_T}$ac_cv_target" >&6; } | 
|  | 3647 | case $ac_cv_target in | 
|  | 3648 | *-*-*) ;; | 
|  | 3649 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | 
|  | 3650 | echo "$as_me: error: invalid value of canonical target" >&2;} | 
|  | 3651 | { (exit 1); exit 1; }; };; | 
|  | 3652 | esac | 
|  | 3653 | target=$ac_cv_target | 
|  | 3654 | ac_save_IFS=$IFS; IFS='-' | 
|  | 3655 | set x $ac_cv_target | 
|  | 3656 | shift | 
|  | 3657 | target_cpu=$1 | 
|  | 3658 | target_vendor=$2 | 
|  | 3659 | shift; shift | 
|  | 3660 | # Remember, the first character of IFS is used to create $*, | 
|  | 3661 | # except with old shells: | 
|  | 3662 | target_os=$* | 
|  | 3663 | IFS=$ac_save_IFS | 
|  | 3664 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | 
|  | 3665 |  | 
|  | 3666 |  | 
|  | 3667 | # The aliases save the names the user supplied, while $host etc. | 
|  | 3668 | # will get canonicalized. | 
|  | 3669 | test -n "$target_alias" && | 
|  | 3670 | test "$program_prefix$program_suffix$program_transform_name" = \ | 
|  | 3671 | NONENONEs,x,x, && | 
|  | 3672 | program_prefix=${target_alias}- | 
|  | 3673 |  | 
|  | 3674 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 | 
|  | 3675 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } | 
|  | 3676 | if test "${llvm_cv_os_type+set}" = set; then | 
|  | 3677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3678 | else | 
|  | 3679 | case $host in | 
|  | 3680 | *-*-aix*) | 
|  | 3681 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3682 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3683 | llvm_cv_os_type="AIX" | 
|  | 3684 | llvm_cv_platform_type="Unix" ;; | 
|  | 3685 | *-*-irix*) | 
|  | 3686 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3687 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3688 | llvm_cv_os_type="IRIX" | 
|  | 3689 | llvm_cv_platform_type="Unix" ;; | 
|  | 3690 | *-*-cygwin*) | 
|  | 3691 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3692 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3693 | llvm_cv_os_type="Cygwin" | 
|  | 3694 | llvm_cv_platform_type="Unix" ;; | 
|  | 3695 | *-*-darwin*) | 
|  | 3696 | llvm_cv_link_all_option="-Wl,-all_load" | 
|  | 3697 | llvm_cv_no_link_all_option="-Wl,-noall_load" | 
|  | 3698 | llvm_cv_os_type="Darwin" | 
|  | 3699 | llvm_cv_platform_type="Unix" ;; | 
|  | 3700 | *-*-minix*) | 
|  | 3701 | llvm_cv_link_all_option="-Wl,-all_load" | 
|  | 3702 | llvm_cv_no_link_all_option="-Wl,-noall_load" | 
|  | 3703 | llvm_cv_os_type="Minix" | 
|  | 3704 | llvm_cv_platform_type="Unix" ;; | 
| Rafael Espindola | 4977edd | 2011-12-22 14:01:18 +0000 | [diff] [blame] | 3705 | *-*-freebsd* | *-*-kfreebsd-gnu) | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3706 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3707 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3708 | llvm_cv_os_type="FreeBSD" | 
|  | 3709 | llvm_cv_platform_type="Unix" ;; | 
|  | 3710 | *-*-openbsd*) | 
|  | 3711 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3712 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3713 | llvm_cv_os_type="OpenBSD" | 
|  | 3714 | llvm_cv_platform_type="Unix" ;; | 
|  | 3715 | *-*-netbsd*) | 
|  | 3716 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3717 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3718 | llvm_cv_os_type="NetBSD" | 
|  | 3719 | llvm_cv_platform_type="Unix" ;; | 
|  | 3720 | *-*-dragonfly*) | 
|  | 3721 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3722 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3723 | llvm_cv_os_type="DragonFly" | 
|  | 3724 | llvm_cv_platform_type="Unix" ;; | 
|  | 3725 | *-*-hpux*) | 
|  | 3726 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3727 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3728 | llvm_cv_os_type="HP-UX" | 
|  | 3729 | llvm_cv_platform_type="Unix" ;; | 
|  | 3730 | *-*-interix*) | 
|  | 3731 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3732 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3733 | llvm_cv_os_type="Interix" | 
|  | 3734 | llvm_cv_platform_type="Unix" ;; | 
|  | 3735 | *-*-linux*) | 
|  | 3736 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3737 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3738 | llvm_cv_os_type="Linux" | 
|  | 3739 | llvm_cv_platform_type="Unix" ;; | 
| Rafael Espindola | 4977edd | 2011-12-22 14:01:18 +0000 | [diff] [blame] | 3740 | *-*-gnu*) | 
|  | 3741 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3742 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3743 | llvm_cv_os_type="GNU" | 
|  | 3744 | llvm_cv_platform_type="Unix" ;; | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3745 | *-*-solaris*) | 
|  | 3746 | llvm_cv_link_all_option="-Wl,-z,allextract" | 
|  | 3747 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" | 
|  | 3748 | llvm_cv_os_type="SunOS" | 
|  | 3749 | llvm_cv_platform_type="Unix" ;; | 
|  | 3750 | *-*-auroraux*) | 
|  | 3751 | llvm_cv_link_all_option="-Wl,-z,allextract" | 
|  | 3752 | llvm_cv_link_all_option="-Wl,-z,defaultextract" | 
|  | 3753 | llvm_cv_os_type="AuroraUX" | 
|  | 3754 | llvm_cv_platform_type="Unix" ;; | 
|  | 3755 | *-*-win32*) | 
|  | 3756 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3757 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3758 | llvm_cv_os_type="Win32" | 
|  | 3759 | llvm_cv_platform_type="Win32" ;; | 
|  | 3760 | *-*-mingw*) | 
|  | 3761 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3762 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3763 | llvm_cv_os_type="MingW" | 
|  | 3764 | llvm_cv_platform_type="Win32" ;; | 
|  | 3765 | *-*-haiku*) | 
|  | 3766 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3767 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3768 | llvm_cv_os_type="Haiku" | 
|  | 3769 | llvm_cv_platform_type="Unix" ;; | 
|  | 3770 | *-unknown-eabi*) | 
|  | 3771 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3772 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3773 | llvm_cv_os_type="Freestanding" | 
|  | 3774 | llvm_cv_platform_type="Unix" ;; | 
|  | 3775 | *-unknown-elf*) | 
|  | 3776 | llvm_cv_link_all_option="-Wl,--whole-archive" | 
|  | 3777 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
|  | 3778 | llvm_cv_os_type="Freestanding" | 
|  | 3779 | llvm_cv_platform_type="Unix" ;; | 
|  | 3780 | *) | 
|  | 3781 | llvm_cv_link_all_option="" | 
|  | 3782 | llvm_cv_no_link_all_option="" | 
|  | 3783 | llvm_cv_os_type="Unknown" | 
|  | 3784 | llvm_cv_platform_type="Unknown" ;; | 
|  | 3785 | esac | 
|  | 3786 | fi | 
|  | 3787 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 | 
|  | 3788 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } | 
|  | 3789 |  | 
|  | 3790 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 | 
|  | 3791 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } | 
|  | 3792 | if test "${llvm_cv_target_os_type+set}" = set; then | 
|  | 3793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3794 | else | 
|  | 3795 | case $target in | 
|  | 3796 | *-*-aix*) | 
|  | 3797 | llvm_cv_target_os_type="AIX" ;; | 
|  | 3798 | *-*-irix*) | 
|  | 3799 | llvm_cv_target_os_type="IRIX" ;; | 
|  | 3800 | *-*-cygwin*) | 
|  | 3801 | llvm_cv_target_os_type="Cygwin" ;; | 
|  | 3802 | *-*-darwin*) | 
|  | 3803 | llvm_cv_target_os_type="Darwin" ;; | 
|  | 3804 | *-*-minix*) | 
|  | 3805 | llvm_cv_target_os_type="Minix" ;; | 
| Sebastian Pop | 5c9e184 | 2012-04-16 04:11:45 +0000 | [diff] [blame] | 3806 | *-*-freebsd* | *-*-kfreebsd-gnu) | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3807 | llvm_cv_target_os_type="FreeBSD" ;; | 
|  | 3808 | *-*-openbsd*) | 
|  | 3809 | llvm_cv_target_os_type="OpenBSD" ;; | 
|  | 3810 | *-*-netbsd*) | 
|  | 3811 | llvm_cv_target_os_type="NetBSD" ;; | 
|  | 3812 | *-*-dragonfly*) | 
|  | 3813 | llvm_cv_target_os_type="DragonFly" ;; | 
|  | 3814 | *-*-hpux*) | 
|  | 3815 | llvm_cv_target_os_type="HP-UX" ;; | 
|  | 3816 | *-*-interix*) | 
|  | 3817 | llvm_cv_target_os_type="Interix" ;; | 
|  | 3818 | *-*-linux*) | 
|  | 3819 | llvm_cv_target_os_type="Linux" ;; | 
| Sylvestre Ledru | e8235fe | 2012-04-05 19:34:15 +0000 | [diff] [blame] | 3820 | *-*-gnu*) | 
|  | 3821 | llvm_cv_target_os_type="GNU" ;; | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3822 | *-*-solaris*) | 
|  | 3823 | llvm_cv_target_os_type="SunOS" ;; | 
|  | 3824 | *-*-auroraux*) | 
|  | 3825 | llvm_cv_target_os_type="AuroraUX" ;; | 
|  | 3826 | *-*-win32*) | 
|  | 3827 | llvm_cv_target_os_type="Win32" ;; | 
|  | 3828 | *-*-mingw*) | 
|  | 3829 | llvm_cv_target_os_type="MingW" ;; | 
|  | 3830 | *-*-haiku*) | 
|  | 3831 | llvm_cv_target_os_type="Haiku" ;; | 
|  | 3832 | *-*-rtems*) | 
|  | 3833 | llvm_cv_target_os_type="RTEMS" ;; | 
|  | 3834 | *-*-nacl*) | 
|  | 3835 | llvm_cv_target_os_type="NativeClient" ;; | 
|  | 3836 | *-unknown-eabi*) | 
|  | 3837 | llvm_cv_target_os_type="Freestanding" ;; | 
|  | 3838 | *) | 
|  | 3839 | llvm_cv_target_os_type="Unknown" ;; | 
|  | 3840 | esac | 
|  | 3841 | fi | 
|  | 3842 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 | 
|  | 3843 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } | 
|  | 3844 |  | 
|  | 3845 | if test "$llvm_cv_os_type" = "Unknown" ; then | 
|  | 3846 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 | 
|  | 3847 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} | 
|  | 3848 | { (exit 1); exit 1; }; } | 
|  | 3849 | fi | 
|  | 3850 |  | 
|  | 3851 | OS=$llvm_cv_os_type | 
|  | 3852 |  | 
|  | 3853 | HOST_OS=$llvm_cv_os_type | 
|  | 3854 |  | 
|  | 3855 | TARGET_OS=$llvm_cv_target_os_type | 
|  | 3856 |  | 
|  | 3857 |  | 
|  | 3858 | LINKALL=$llvm_cv_link_all_option | 
|  | 3859 |  | 
|  | 3860 | NOLINKALL=$llvm_cv_no_link_all_option | 
|  | 3861 |  | 
|  | 3862 |  | 
|  | 3863 | case $llvm_cv_platform_type in | 
|  | 3864 | Unix) | 
|  | 3865 |  | 
|  | 3866 | cat >>confdefs.h <<\_ACEOF | 
|  | 3867 | #define LLVM_ON_UNIX 1 | 
|  | 3868 | _ACEOF | 
|  | 3869 |  | 
|  | 3870 | LLVM_ON_UNIX=1 | 
|  | 3871 |  | 
|  | 3872 | LLVM_ON_WIN32=0 | 
|  | 3873 |  | 
|  | 3874 | ;; | 
|  | 3875 | Win32) | 
|  | 3876 |  | 
|  | 3877 | cat >>confdefs.h <<\_ACEOF | 
|  | 3878 | #define LLVM_ON_WIN32 1 | 
|  | 3879 | _ACEOF | 
|  | 3880 |  | 
|  | 3881 | LLVM_ON_UNIX=0 | 
|  | 3882 |  | 
|  | 3883 | LLVM_ON_WIN32=1 | 
|  | 3884 |  | 
|  | 3885 | ;; | 
|  | 3886 | esac | 
|  | 3887 |  | 
|  | 3888 | { echo "$as_me:$LINENO: checking target architecture" >&5 | 
|  | 3889 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } | 
|  | 3890 | if test "${llvm_cv_target_arch+set}" = set; then | 
|  | 3891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3892 | else | 
|  | 3893 | case $target in | 
|  | 3894 | i?86-*)                 llvm_cv_target_arch="x86" ;; | 
|  | 3895 | amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;; | 
|  | 3896 | sparc*-*)               llvm_cv_target_arch="Sparc" ;; | 
|  | 3897 | powerpc*-*)             llvm_cv_target_arch="PowerPC" ;; | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3898 | arm*-*)                 llvm_cv_target_arch="ARM" ;; | 
|  | 3899 | mips-*)                 llvm_cv_target_arch="Mips" ;; | 
| Rafael Espindola | e46f096 | 2011-12-28 17:08:00 +0000 | [diff] [blame] | 3900 | mipsel-*)               llvm_cv_target_arch="Mips" ;; | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3901 | xcore-*)                llvm_cv_target_arch="XCore" ;; | 
|  | 3902 | msp430-*)               llvm_cv_target_arch="MSP430" ;; | 
| Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 3903 | hexagon-*)              llvm_cv_target_arch="Hexagon" ;; | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3904 | mblaze-*)               llvm_cv_target_arch="MBlaze" ;; | 
|  | 3905 | ptx-*)                  llvm_cv_target_arch="PTX" ;; | 
|  | 3906 | *)                      llvm_cv_target_arch="Unknown" ;; | 
|  | 3907 | esac | 
|  | 3908 | fi | 
|  | 3909 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 | 
|  | 3910 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } | 
|  | 3911 |  | 
|  | 3912 | if test "$llvm_cv_target_arch" = "Unknown" ; then | 
|  | 3913 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 | 
|  | 3914 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} | 
|  | 3915 | fi | 
|  | 3916 |  | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3917 | case "$llvm_cv_target_arch" in | 
|  | 3918 | x86)     LLVM_NATIVE_ARCH="X86" ;; | 
|  | 3919 | x86_64)  LLVM_NATIVE_ARCH="X86" ;; | 
|  | 3920 | *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; | 
|  | 3921 | esac | 
|  | 3922 |  | 
|  | 3923 | ARCH=$llvm_cv_target_arch | 
|  | 3924 |  | 
|  | 3925 |  | 
|  | 3926 |  | 
|  | 3927 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3928 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | 
|  | 3929 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | 
|  | 3930 | if test "${ac_cv_path_GREP+set}" = set; then | 
|  | 3931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3932 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3933 | # Extract the first word of "grep ggrep" to use in msg output | 
|  | 3934 | if test -z "$GREP"; then | 
|  | 3935 | set dummy grep ggrep; ac_prog_name=$2 | 
|  | 3936 | if test "${ac_cv_path_GREP+set}" = set; then | 
|  | 3937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3938 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3939 | ac_path_GREP_found=false | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3940 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 3941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3942 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3943 | do | 
|  | 3944 | IFS=$as_save_IFS | 
|  | 3945 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3946 | for ac_prog in grep ggrep; do | 
|  | 3947 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3948 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 3949 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue | 
|  | 3950 | # Check for GNU ac_path_GREP and select it if it is found. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3951 | # Check for GNU $ac_path_GREP | 
|  | 3952 | case `"$ac_path_GREP" --version 2>&1` in | 
|  | 3953 | *GNU*) | 
|  | 3954 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
|  | 3955 | *) | 
|  | 3956 | ac_count=0 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3957 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3958 | while : | 
|  | 3959 | do | 
|  | 3960 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 3961 | mv "conftest.tmp" "conftest.in" | 
|  | 3962 | cp "conftest.in" "conftest.nl" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3963 | echo 'GREP' >> "conftest.nl" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3964 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 3965 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3966 | ac_count=`expr $ac_count + 1` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3967 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
|  | 3968 | # Best one so far, save it but keep looking for a better one | 
|  | 3969 | ac_cv_path_GREP="$ac_path_GREP" | 
|  | 3970 | ac_path_GREP_max=$ac_count | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3971 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3972 | # 10*(2^10) chars as input seems more than enough | 
|  | 3973 | test $ac_count -gt 10 && break | 
|  | 3974 | done | 
|  | 3975 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 3976 | esac | 
|  | 3977 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3978 |  | 
|  | 3979 | $ac_path_GREP_found && break 3 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3980 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3981 | done | 
|  | 3982 |  | 
|  | 3983 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3984 | IFS=$as_save_IFS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3985 |  | 
|  | 3986 |  | 
|  | 3987 | fi | 
|  | 3988 |  | 
|  | 3989 | GREP="$ac_cv_path_GREP" | 
|  | 3990 | if test -z "$GREP"; then | 
|  | 3991 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | 
|  | 3992 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | 
|  | 3993 | { (exit 1); exit 1; }; } | 
|  | 3994 | fi | 
|  | 3995 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3996 | else | 
|  | 3997 | ac_cv_path_GREP=$GREP | 
|  | 3998 | fi | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3999 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4000 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4001 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4002 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | 
|  | 4003 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4004 | GREP="$ac_cv_path_GREP" | 
|  | 4005 |  | 
|  | 4006 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4007 | { echo "$as_me:$LINENO: checking for egrep" >&5 | 
|  | 4008 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | 
|  | 4009 | if test "${ac_cv_path_EGREP+set}" = set; then | 
|  | 4010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4011 | else | 
|  | 4012 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
|  | 4013 | then ac_cv_path_EGREP="$GREP -E" | 
|  | 4014 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4015 | # Extract the first word of "egrep" to use in msg output | 
|  | 4016 | if test -z "$EGREP"; then | 
|  | 4017 | set dummy egrep; ac_prog_name=$2 | 
|  | 4018 | if test "${ac_cv_path_EGREP+set}" = set; then | 
|  | 4019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4020 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4021 | ac_path_EGREP_found=false | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4022 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 4023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4024 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 4025 | do | 
|  | 4026 | IFS=$as_save_IFS | 
|  | 4027 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4028 | for ac_prog in egrep; do | 
|  | 4029 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4030 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 4031 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue | 
|  | 4032 | # Check for GNU ac_path_EGREP and select it if it is found. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4033 | # Check for GNU $ac_path_EGREP | 
|  | 4034 | case `"$ac_path_EGREP" --version 2>&1` in | 
|  | 4035 | *GNU*) | 
|  | 4036 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
|  | 4037 | *) | 
|  | 4038 | ac_count=0 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4039 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4040 | while : | 
|  | 4041 | do | 
|  | 4042 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 4043 | mv "conftest.tmp" "conftest.in" | 
|  | 4044 | cp "conftest.in" "conftest.nl" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4045 | echo 'EGREP' >> "conftest.nl" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4046 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4047 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4048 | ac_count=`expr $ac_count + 1` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4049 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
|  | 4050 | # Best one so far, save it but keep looking for a better one | 
|  | 4051 | ac_cv_path_EGREP="$ac_path_EGREP" | 
|  | 4052 | ac_path_EGREP_max=$ac_count | 
|  | 4053 | fi | 
|  | 4054 | # 10*(2^10) chars as input seems more than enough | 
|  | 4055 | test $ac_count -gt 10 && break | 
|  | 4056 | done | 
|  | 4057 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4058 | esac | 
|  | 4059 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4060 |  | 
|  | 4061 | $ac_path_EGREP_found && break 3 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4062 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4063 | done | 
|  | 4064 |  | 
|  | 4065 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4066 | IFS=$as_save_IFS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4067 |  | 
|  | 4068 |  | 
|  | 4069 | fi | 
|  | 4070 |  | 
|  | 4071 | EGREP="$ac_cv_path_EGREP" | 
|  | 4072 | if test -z "$EGREP"; then | 
|  | 4073 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | 
|  | 4074 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | 
|  | 4075 | { (exit 1); exit 1; }; } | 
|  | 4076 | fi | 
|  | 4077 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4078 | else | 
|  | 4079 | ac_cv_path_EGREP=$EGREP | 
|  | 4080 | fi | 
|  | 4081 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4082 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4083 | fi | 
|  | 4084 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4085 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | 
|  | 4086 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4087 | EGREP="$ac_cv_path_EGREP" | 
|  | 4088 |  | 
|  | 4089 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4090 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
|  | 4091 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | 
|  | 4092 | if test "${ac_cv_header_stdc+set}" = set; then | 
|  | 4093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4094 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4095 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4096 | /* confdefs.h.  */ | 
|  | 4097 | _ACEOF | 
|  | 4098 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4099 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4100 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4101 | #include <stdlib.h> | 
|  | 4102 | #include <stdarg.h> | 
|  | 4103 | #include <string.h> | 
|  | 4104 | #include <float.h> | 
|  | 4105 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4106 | int | 
|  | 4107 | main () | 
|  | 4108 | { | 
|  | 4109 |  | 
|  | 4110 | ; | 
|  | 4111 | return 0; | 
|  | 4112 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4113 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4114 | rm -f conftest.$ac_objext | 
|  | 4115 | if { (ac_try="$ac_compile" | 
|  | 4116 | case "(($ac_try" in | 
|  | 4117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4118 | *) ac_try_echo=$ac_try;; | 
|  | 4119 | esac | 
|  | 4120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4121 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 4122 | ac_status=$? | 
|  | 4123 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4124 | rm -f conftest.er1 | 
|  | 4125 | cat conftest.err >&5 | 
|  | 4126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4127 | (exit $ac_status); } && | 
|  | 4128 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 4129 | { (case "(($ac_try" in | 
|  | 4130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4131 | *) ac_try_echo=$ac_try;; | 
|  | 4132 | esac | 
|  | 4133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4134 | (eval "$ac_try") 2>&5 | 
|  | 4135 | ac_status=$? | 
|  | 4136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4137 | (exit $ac_status); }; } && | 
|  | 4138 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4139 | { (case "(($ac_try" in | 
|  | 4140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4141 | *) ac_try_echo=$ac_try;; | 
|  | 4142 | esac | 
|  | 4143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4144 | (eval "$ac_try") 2>&5 | 
|  | 4145 | ac_status=$? | 
|  | 4146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4147 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4148 | ac_cv_header_stdc=yes | 
|  | 4149 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4150 | echo "$as_me: failed program was:" >&5 | 
|  | 4151 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4152 |  | 
|  | 4153 | ac_cv_header_stdc=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4154 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4155 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4157 |  | 
|  | 4158 | if test $ac_cv_header_stdc = yes; then | 
|  | 4159 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4160 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4161 | /* confdefs.h.  */ | 
|  | 4162 | _ACEOF | 
|  | 4163 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4164 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4165 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4166 | #include <string.h> | 
|  | 4167 |  | 
|  | 4168 | _ACEOF | 
|  | 4169 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4170 | $EGREP "memchr" >/dev/null 2>&1; then | 
|  | 4171 | : | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4172 | else | 
|  | 4173 | ac_cv_header_stdc=no | 
|  | 4174 | fi | 
|  | 4175 | rm -f conftest* | 
|  | 4176 |  | 
|  | 4177 | fi | 
|  | 4178 |  | 
|  | 4179 | if test $ac_cv_header_stdc = yes; then | 
|  | 4180 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4181 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4182 | /* confdefs.h.  */ | 
|  | 4183 | _ACEOF | 
|  | 4184 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4185 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4186 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4187 | #include <stdlib.h> | 
|  | 4188 |  | 
|  | 4189 | _ACEOF | 
|  | 4190 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4191 | $EGREP "free" >/dev/null 2>&1; then | 
|  | 4192 | : | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4193 | else | 
|  | 4194 | ac_cv_header_stdc=no | 
|  | 4195 | fi | 
|  | 4196 | rm -f conftest* | 
|  | 4197 |  | 
|  | 4198 | fi | 
|  | 4199 |  | 
|  | 4200 | if test $ac_cv_header_stdc = yes; then | 
|  | 4201 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4202 | if test "$cross_compiling" = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4203 | : | 
|  | 4204 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4205 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4206 | /* confdefs.h.  */ | 
|  | 4207 | _ACEOF | 
|  | 4208 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4209 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4210 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4211 | #include <ctype.h> | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4212 | #include <stdlib.h> | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4213 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 4214 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 4215 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 4216 | #else | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4217 | # define ISLOWER(c) \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4218 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 4219 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 4220 | || ('s' <= (c) && (c) <= 'z')) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4221 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 4222 | #endif | 
|  | 4223 |  | 
|  | 4224 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 4225 | int | 
|  | 4226 | main () | 
|  | 4227 | { | 
|  | 4228 | int i; | 
|  | 4229 | for (i = 0; i < 256; i++) | 
|  | 4230 | if (XOR (islower (i), ISLOWER (i)) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4231 | || toupper (i) != TOUPPER (i)) | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4232 | return 2; | 
|  | 4233 | return 0; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4234 | } | 
|  | 4235 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4236 | rm -f conftest$ac_exeext | 
|  | 4237 | if { (ac_try="$ac_link" | 
|  | 4238 | case "(($ac_try" in | 
|  | 4239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4240 | *) ac_try_echo=$ac_try;; | 
|  | 4241 | esac | 
|  | 4242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4243 | (eval "$ac_link") 2>&5 | 
|  | 4244 | ac_status=$? | 
|  | 4245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4246 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 4247 | { (case "(($ac_try" in | 
|  | 4248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4249 | *) ac_try_echo=$ac_try;; | 
|  | 4250 | esac | 
|  | 4251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4252 | (eval "$ac_try") 2>&5 | 
|  | 4253 | ac_status=$? | 
|  | 4254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4255 | (exit $ac_status); }; }; then | 
|  | 4256 | : | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4257 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4258 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 4259 | echo "$as_me: failed program was:" >&5 | 
|  | 4260 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4261 |  | 
|  | 4262 | ( exit $ac_status ) | 
|  | 4263 | ac_cv_header_stdc=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4264 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4265 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4266 | fi | 
|  | 4267 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4268 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4269 | fi | 
|  | 4270 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4271 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
|  | 4272 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4273 | if test $ac_cv_header_stdc = yes; then | 
|  | 4274 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4275 | cat >>confdefs.h <<\_ACEOF | 
|  | 4276 | #define STDC_HEADERS 1 | 
|  | 4277 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4278 |  | 
|  | 4279 | fi | 
|  | 4280 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4281 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4282 |  | 
|  | 4283 |  | 
|  | 4284 |  | 
|  | 4285 |  | 
|  | 4286 |  | 
|  | 4287 |  | 
|  | 4288 |  | 
|  | 4289 |  | 
|  | 4290 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4291 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
|  | 4292 | inttypes.h stdint.h unistd.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4293 | do | 
|  | 4294 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 4295 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 4296 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 4297 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 4298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4299 | else | 
|  | 4300 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4301 | /* confdefs.h.  */ | 
|  | 4302 | _ACEOF | 
|  | 4303 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4304 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4305 | /* end confdefs.h.  */ | 
|  | 4306 | $ac_includes_default | 
|  | 4307 |  | 
|  | 4308 | #include <$ac_header> | 
|  | 4309 | _ACEOF | 
|  | 4310 | rm -f conftest.$ac_objext | 
|  | 4311 | if { (ac_try="$ac_compile" | 
|  | 4312 | case "(($ac_try" in | 
|  | 4313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4314 | *) ac_try_echo=$ac_try;; | 
|  | 4315 | esac | 
|  | 4316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4317 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 4318 | ac_status=$? | 
|  | 4319 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4320 | rm -f conftest.er1 | 
|  | 4321 | cat conftest.err >&5 | 
|  | 4322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4323 | (exit $ac_status); } && | 
|  | 4324 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 4325 | { (case "(($ac_try" in | 
|  | 4326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4327 | *) ac_try_echo=$ac_try;; | 
|  | 4328 | esac | 
|  | 4329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4330 | (eval "$ac_try") 2>&5 | 
|  | 4331 | ac_status=$? | 
|  | 4332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4333 | (exit $ac_status); }; } && | 
|  | 4334 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4335 | { (case "(($ac_try" in | 
|  | 4336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4337 | *) ac_try_echo=$ac_try;; | 
|  | 4338 | esac | 
|  | 4339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4340 | (eval "$ac_try") 2>&5 | 
|  | 4341 | ac_status=$? | 
|  | 4342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4343 | (exit $ac_status); }; }; then | 
|  | 4344 | eval "$as_ac_Header=yes" | 
|  | 4345 | else | 
|  | 4346 | echo "$as_me: failed program was:" >&5 | 
|  | 4347 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4348 |  | 
|  | 4349 | eval "$as_ac_Header=no" | 
|  | 4350 | fi | 
|  | 4351 |  | 
|  | 4352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4353 | fi | 
|  | 4354 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 4355 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 4356 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 4357 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4358 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4359 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4360 | _ACEOF | 
|  | 4361 |  | 
|  | 4362 | fi | 
|  | 4363 |  | 
|  | 4364 | done | 
|  | 4365 |  | 
|  | 4366 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4367 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | 
|  | 4368 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | 
|  | 4369 | if test "${ac_cv_c_bigendian+set}" = set; then | 
|  | 4370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4371 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4372 | # See if sys/param.h defines the BYTE_ORDER macro. | 
|  | 4373 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4374 | /* confdefs.h.  */ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4375 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4376 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4377 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4378 | /* end confdefs.h.  */ | 
|  | 4379 | #include <sys/types.h> | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4380 | #include <sys/param.h> | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4381 |  | 
|  | 4382 | int | 
|  | 4383 | main () | 
|  | 4384 | { | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4385 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | 
|  | 4386 | bogus endian macros | 
|  | 4387 | #endif | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4388 |  | 
|  | 4389 | ; | 
|  | 4390 | return 0; | 
|  | 4391 | } | 
|  | 4392 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4393 | rm -f conftest.$ac_objext | 
|  | 4394 | if { (ac_try="$ac_compile" | 
|  | 4395 | case "(($ac_try" in | 
|  | 4396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4397 | *) ac_try_echo=$ac_try;; | 
|  | 4398 | esac | 
|  | 4399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4400 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 4401 | ac_status=$? | 
|  | 4402 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4403 | rm -f conftest.er1 | 
|  | 4404 | cat conftest.err >&5 | 
|  | 4405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4406 | (exit $ac_status); } && | 
|  | 4407 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 4408 | { (case "(($ac_try" in | 
|  | 4409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4410 | *) ac_try_echo=$ac_try;; | 
|  | 4411 | esac | 
|  | 4412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4413 | (eval "$ac_try") 2>&5 | 
|  | 4414 | ac_status=$? | 
|  | 4415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4416 | (exit $ac_status); }; } && | 
|  | 4417 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4418 | { (case "(($ac_try" in | 
|  | 4419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4420 | *) ac_try_echo=$ac_try;; | 
|  | 4421 | esac | 
|  | 4422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4423 | (eval "$ac_try") 2>&5 | 
|  | 4424 | ac_status=$? | 
|  | 4425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4426 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4427 | # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4428 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4429 | /* confdefs.h.  */ | 
|  | 4430 | _ACEOF | 
|  | 4431 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4432 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4433 | /* end confdefs.h.  */ | 
|  | 4434 | #include <sys/types.h> | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4435 | #include <sys/param.h> | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4436 |  | 
|  | 4437 | int | 
|  | 4438 | main () | 
|  | 4439 | { | 
|  | 4440 | #if BYTE_ORDER != BIG_ENDIAN | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4441 | not big endian | 
|  | 4442 | #endif | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4443 |  | 
|  | 4444 | ; | 
|  | 4445 | return 0; | 
|  | 4446 | } | 
|  | 4447 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4448 | rm -f conftest.$ac_objext | 
|  | 4449 | if { (ac_try="$ac_compile" | 
|  | 4450 | case "(($ac_try" in | 
|  | 4451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4452 | *) ac_try_echo=$ac_try;; | 
|  | 4453 | esac | 
|  | 4454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4455 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 4456 | ac_status=$? | 
|  | 4457 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4458 | rm -f conftest.er1 | 
|  | 4459 | cat conftest.err >&5 | 
|  | 4460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4461 | (exit $ac_status); } && | 
|  | 4462 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 4463 | { (case "(($ac_try" in | 
|  | 4464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4465 | *) ac_try_echo=$ac_try;; | 
|  | 4466 | esac | 
|  | 4467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4468 | (eval "$ac_try") 2>&5 | 
|  | 4469 | ac_status=$? | 
|  | 4470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4471 | (exit $ac_status); }; } && | 
|  | 4472 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4473 | { (case "(($ac_try" in | 
|  | 4474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4475 | *) ac_try_echo=$ac_try;; | 
|  | 4476 | esac | 
|  | 4477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4478 | (eval "$ac_try") 2>&5 | 
|  | 4479 | ac_status=$? | 
|  | 4480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4481 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4482 | ac_cv_c_bigendian=yes | 
|  | 4483 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4484 | echo "$as_me: failed program was:" >&5 | 
|  | 4485 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4486 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4487 | ac_cv_c_bigendian=no | 
|  | 4488 | fi | 
|  | 4489 |  | 
|  | 4490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4491 | else | 
|  | 4492 | echo "$as_me: failed program was:" >&5 | 
|  | 4493 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4494 |  | 
|  | 4495 | # It does not; compile a test program. | 
|  | 4496 | if test "$cross_compiling" = yes; then | 
|  | 4497 | # try to guess the endianness by grepping values into an object file | 
|  | 4498 | ac_cv_c_bigendian=unknown | 
|  | 4499 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4500 | /* confdefs.h.  */ | 
|  | 4501 | _ACEOF | 
|  | 4502 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4503 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4504 | /* end confdefs.h.  */ | 
|  | 4505 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
|  | 4506 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
|  | 4507 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | 
|  | 4508 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
|  | 4509 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
|  | 4510 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4511 | int | 
|  | 4512 | main () | 
|  | 4513 | { | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4514 | _ascii (); _ebcdic (); | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4515 | ; | 
|  | 4516 | return 0; | 
|  | 4517 | } | 
|  | 4518 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4519 | rm -f conftest.$ac_objext | 
|  | 4520 | if { (ac_try="$ac_compile" | 
|  | 4521 | case "(($ac_try" in | 
|  | 4522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4523 | *) ac_try_echo=$ac_try;; | 
|  | 4524 | esac | 
|  | 4525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4526 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 4527 | ac_status=$? | 
|  | 4528 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4529 | rm -f conftest.er1 | 
|  | 4530 | cat conftest.err >&5 | 
|  | 4531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4532 | (exit $ac_status); } && | 
|  | 4533 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 4534 | { (case "(($ac_try" in | 
|  | 4535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4536 | *) ac_try_echo=$ac_try;; | 
|  | 4537 | esac | 
|  | 4538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4539 | (eval "$ac_try") 2>&5 | 
|  | 4540 | ac_status=$? | 
|  | 4541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4542 | (exit $ac_status); }; } && | 
|  | 4543 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4544 | { (case "(($ac_try" in | 
|  | 4545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4546 | *) ac_try_echo=$ac_try;; | 
|  | 4547 | esac | 
|  | 4548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4549 | (eval "$ac_try") 2>&5 | 
|  | 4550 | ac_status=$? | 
|  | 4551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4552 | (exit $ac_status); }; }; then | 
|  | 4553 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4554 | ac_cv_c_bigendian=yes | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4555 | fi | 
|  | 4556 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
|  | 4557 | if test "$ac_cv_c_bigendian" = unknown; then | 
|  | 4558 | ac_cv_c_bigendian=no | 
|  | 4559 | else | 
|  | 4560 | # finding both strings is unlikely to happen, but who knows? | 
|  | 4561 | ac_cv_c_bigendian=unknown | 
|  | 4562 | fi | 
|  | 4563 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4564 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4565 | echo "$as_me: failed program was:" >&5 | 
|  | 4566 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4567 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4568 |  | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4569 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4570 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4572 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4573 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4574 | /* confdefs.h.  */ | 
|  | 4575 | _ACEOF | 
|  | 4576 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4577 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4578 | /* end confdefs.h.  */ | 
|  | 4579 | $ac_includes_default | 
|  | 4580 | int | 
|  | 4581 | main () | 
|  | 4582 | { | 
|  | 4583 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4584 | /* Are we little or big endian?  From Harbison&Steele.  */ | 
|  | 4585 | union | 
|  | 4586 | { | 
|  | 4587 | long int l; | 
|  | 4588 | char c[sizeof (long int)]; | 
|  | 4589 | } u; | 
|  | 4590 | u.l = 1; | 
|  | 4591 | return u.c[sizeof (long int) - 1] == 1; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4592 |  | 
|  | 4593 | ; | 
|  | 4594 | return 0; | 
|  | 4595 | } | 
|  | 4596 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4597 | rm -f conftest$ac_exeext | 
|  | 4598 | if { (ac_try="$ac_link" | 
|  | 4599 | case "(($ac_try" in | 
|  | 4600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4601 | *) ac_try_echo=$ac_try;; | 
|  | 4602 | esac | 
|  | 4603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4604 | (eval "$ac_link") 2>&5 | 
|  | 4605 | ac_status=$? | 
|  | 4606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4607 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 4608 | { (case "(($ac_try" in | 
|  | 4609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4610 | *) ac_try_echo=$ac_try;; | 
|  | 4611 | esac | 
|  | 4612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 4613 | (eval "$ac_try") 2>&5 | 
|  | 4614 | ac_status=$? | 
|  | 4615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4616 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4617 | ac_cv_c_bigendian=no | 
|  | 4618 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4619 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 4620 | echo "$as_me: failed program was:" >&5 | 
|  | 4621 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4622 |  | 
|  | 4623 | ( exit $ac_status ) | 
|  | 4624 | ac_cv_c_bigendian=yes | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4625 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4626 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4627 | fi | 
|  | 4628 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4629 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4630 | fi | 
|  | 4631 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4633 | fi | 
|  | 4634 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | 
|  | 4635 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | 
|  | 4636 | case $ac_cv_c_bigendian in | 
|  | 4637 | yes) | 
|  | 4638 | ENDIAN=big | 
|  | 4639 | ;; | 
|  | 4640 | no) | 
|  | 4641 | ENDIAN=little | 
|  | 4642 | ;; | 
|  | 4643 | *) | 
|  | 4644 | { { echo "$as_me:$LINENO: error: unknown endianness | 
|  | 4645 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | 
|  | 4646 | echo "$as_me: error: unknown endianness | 
|  | 4647 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | 
|  | 4648 | { (exit 1); exit 1; }; } ;; | 
|  | 4649 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4650 |  | 
|  | 4651 |  | 
|  | 4652 | if test "$cross_compiling" = yes; then | 
|  | 4653 | LLVM_CROSS_COMPILING=1 | 
|  | 4654 |  | 
|  | 4655 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4656 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 | 
|  | 4657 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } | 
|  | 4658 | if test "${ac_cv_build_exeext+set}" = set; then | 
|  | 4659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4660 | else | 
|  | 4661 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | 
|  | 4662 | ac_cv_build_exeext=.exe | 
|  | 4663 | else | 
|  | 4664 | ac_build_prefix=${build_alias}- | 
|  | 4665 |  | 
|  | 4666 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. | 
|  | 4667 | set dummy ${ac_build_prefix}gcc; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4668 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4669 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 4670 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then | 
|  | 4671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4672 | else | 
|  | 4673 | if test -n "$BUILD_CC"; then | 
|  | 4674 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | 
|  | 4675 | else | 
|  | 4676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4677 | for as_dir in $PATH | 
|  | 4678 | do | 
|  | 4679 | IFS=$as_save_IFS | 
|  | 4680 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4681 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4682 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4683 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4684 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4685 | break 2 | 
|  | 4686 | fi | 
|  | 4687 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4688 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4689 | IFS=$as_save_IFS | 
|  | 4690 |  | 
|  | 4691 | fi | 
|  | 4692 | fi | 
|  | 4693 | BUILD_CC=$ac_cv_prog_BUILD_CC | 
|  | 4694 | if test -n "$BUILD_CC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4695 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 | 
|  | 4696 | echo "${ECHO_T}$BUILD_CC" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4697 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4698 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4699 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4700 | fi | 
|  | 4701 |  | 
|  | 4702 |  | 
|  | 4703 | if test -z "$BUILD_CC"; then | 
|  | 4704 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 4705 | set dummy gcc; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4706 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4707 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 4708 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then | 
|  | 4709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4710 | else | 
|  | 4711 | if test -n "$BUILD_CC"; then | 
|  | 4712 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | 
|  | 4713 | else | 
|  | 4714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4715 | for as_dir in $PATH | 
|  | 4716 | do | 
|  | 4717 | IFS=$as_save_IFS | 
|  | 4718 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4719 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4720 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4721 | ac_cv_prog_BUILD_CC="gcc" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4723 | break 2 | 
|  | 4724 | fi | 
|  | 4725 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4726 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4727 | IFS=$as_save_IFS | 
|  | 4728 |  | 
|  | 4729 | fi | 
|  | 4730 | fi | 
|  | 4731 | BUILD_CC=$ac_cv_prog_BUILD_CC | 
|  | 4732 | if test -n "$BUILD_CC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4733 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 | 
|  | 4734 | echo "${ECHO_T}$BUILD_CC" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4735 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4736 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4737 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4738 | fi | 
|  | 4739 |  | 
|  | 4740 |  | 
|  | 4741 | if test -z "$BUILD_CC"; then | 
|  | 4742 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 4743 | set dummy cc; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4744 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4745 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 4746 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then | 
|  | 4747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4748 | else | 
|  | 4749 | if test -n "$BUILD_CC"; then | 
|  | 4750 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | 
|  | 4751 | else | 
|  | 4752 | ac_prog_rejected=no | 
|  | 4753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4754 | for as_dir in $PATH | 
|  | 4755 | do | 
|  | 4756 | IFS=$as_save_IFS | 
|  | 4757 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4758 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4759 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4760 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
|  | 4761 | ac_prog_rejected=yes | 
|  | 4762 | continue | 
|  | 4763 | fi | 
|  | 4764 | ac_cv_prog_BUILD_CC="cc" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4765 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4766 | break 2 | 
|  | 4767 | fi | 
|  | 4768 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4769 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4770 | IFS=$as_save_IFS | 
|  | 4771 |  | 
|  | 4772 | if test $ac_prog_rejected = yes; then | 
|  | 4773 | # We found a bogon in the path, so make sure we never use it. | 
|  | 4774 | set dummy $ac_cv_prog_BUILD_CC | 
|  | 4775 | shift | 
|  | 4776 | if test $# != 0; then | 
|  | 4777 | # We chose a different compiler from the bogus one. | 
|  | 4778 | # However, it has the same basename, so the bogon will be chosen | 
|  | 4779 | # first if we set BUILD_CC to just the basename; use the full file name. | 
|  | 4780 | shift | 
|  | 4781 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" | 
|  | 4782 | fi | 
|  | 4783 | fi | 
|  | 4784 | fi | 
|  | 4785 | fi | 
|  | 4786 | BUILD_CC=$ac_cv_prog_BUILD_CC | 
|  | 4787 | if test -n "$BUILD_CC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4788 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 | 
|  | 4789 | echo "${ECHO_T}$BUILD_CC" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4790 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4791 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4792 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4793 | fi | 
|  | 4794 |  | 
|  | 4795 |  | 
|  | 4796 | fi | 
|  | 4797 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4798 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 | 
|  | 4799 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | 
|  | 4800 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4801 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|  | 4802 | rm -f conftest* | 
|  | 4803 | echo 'int main () { return 0; }' > conftest.$ac_ext | 
|  | 4804 | ac_cv_build_exeext= | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4805 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4806 | (eval $ac_build_link) 2>&5 | 
|  | 4807 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4809 | (exit $ac_status); }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4810 | for file in conftest.*; do | 
|  | 4811 | case $file in | 
| Jim Grosbach | bfc70b0 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4812 | *.c | *.o | *.obj | *.dSYM) ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4813 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | 
|  | 4814 | esac | 
|  | 4815 | done | 
|  | 4816 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4817 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 | 
|  | 4818 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} | 
|  | 4819 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4820 | fi | 
|  | 4821 | rm -f conftest* | 
|  | 4822 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank | 
|  | 4823 | fi | 
|  | 4824 | fi | 
|  | 4825 |  | 
|  | 4826 | BUILD_EXEEXT="" | 
|  | 4827 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4828 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 | 
|  | 4829 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4830 | ac_build_exeext=$BUILD_EXEEXT | 
|  | 4831 |  | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4832 | ac_build_prefix=${build_alias}- | 
|  | 4833 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. | 
|  | 4834 | set dummy ${ac_build_prefix}g++; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4835 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4836 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 4837 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then | 
|  | 4838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4839 | else | 
|  | 4840 | if test -n "$BUILD_CXX"; then | 
|  | 4841 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. | 
|  | 4842 | else | 
|  | 4843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4844 | for as_dir in $PATH | 
|  | 4845 | do | 
|  | 4846 | IFS=$as_save_IFS | 
|  | 4847 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4848 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4849 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4850 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4851 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4852 | break 2 | 
|  | 4853 | fi | 
|  | 4854 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4855 | done | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4856 | IFS=$as_save_IFS | 
|  | 4857 |  | 
|  | 4858 | fi | 
|  | 4859 | fi | 
|  | 4860 | BUILD_CXX=$ac_cv_prog_BUILD_CXX | 
|  | 4861 | if test -n "$BUILD_CXX"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4862 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 | 
|  | 4863 | echo "${ECHO_T}$BUILD_CXX" >&6; } | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4864 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4865 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4866 | echo "${ECHO_T}no" >&6; } | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4867 | fi | 
|  | 4868 |  | 
|  | 4869 |  | 
|  | 4870 | if test -z "$BUILD_CXX"; then | 
|  | 4871 | # Extract the first word of "g++", so it can be a program name with args. | 
|  | 4872 | set dummy g++; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4873 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 4875 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then | 
|  | 4876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4877 | else | 
|  | 4878 | if test -n "$BUILD_CXX"; then | 
|  | 4879 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. | 
|  | 4880 | else | 
|  | 4881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4882 | for as_dir in $PATH | 
|  | 4883 | do | 
|  | 4884 | IFS=$as_save_IFS | 
|  | 4885 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4886 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4887 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4888 | ac_cv_prog_BUILD_CXX="g++" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4889 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4890 | break 2 | 
|  | 4891 | fi | 
|  | 4892 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4893 | done | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4894 | IFS=$as_save_IFS | 
|  | 4895 |  | 
|  | 4896 | fi | 
|  | 4897 | fi | 
|  | 4898 | BUILD_CXX=$ac_cv_prog_BUILD_CXX | 
|  | 4899 | if test -n "$BUILD_CXX"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4900 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 | 
|  | 4901 | echo "${ECHO_T}$BUILD_CXX" >&6; } | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4902 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4903 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4904 | echo "${ECHO_T}no" >&6; } | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4905 | fi | 
|  | 4906 |  | 
|  | 4907 |  | 
|  | 4908 | if test -z "$BUILD_CXX"; then | 
|  | 4909 | # Extract the first word of "c++", so it can be a program name with args. | 
|  | 4910 | set dummy c++; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4911 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4912 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 4913 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then | 
|  | 4914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4915 | else | 
|  | 4916 | if test -n "$BUILD_CXX"; then | 
|  | 4917 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. | 
|  | 4918 | else | 
|  | 4919 | ac_prog_rejected=no | 
|  | 4920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4921 | for as_dir in $PATH | 
|  | 4922 | do | 
|  | 4923 | IFS=$as_save_IFS | 
|  | 4924 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4925 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4927 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then | 
|  | 4928 | ac_prog_rejected=yes | 
|  | 4929 | continue | 
|  | 4930 | fi | 
|  | 4931 | ac_cv_prog_BUILD_CXX="c++" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4932 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4933 | break 2 | 
|  | 4934 | fi | 
|  | 4935 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4936 | done | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4937 | IFS=$as_save_IFS | 
|  | 4938 |  | 
|  | 4939 | if test $ac_prog_rejected = yes; then | 
|  | 4940 | # We found a bogon in the path, so make sure we never use it. | 
|  | 4941 | set dummy $ac_cv_prog_BUILD_CXX | 
|  | 4942 | shift | 
|  | 4943 | if test $# != 0; then | 
|  | 4944 | # We chose a different compiler from the bogus one. | 
|  | 4945 | # However, it has the same basename, so the bogon will be chosen | 
|  | 4946 | # first if we set BUILD_CXX to just the basename; use the full file name. | 
|  | 4947 | shift | 
|  | 4948 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" | 
|  | 4949 | fi | 
|  | 4950 | fi | 
|  | 4951 | fi | 
|  | 4952 | fi | 
|  | 4953 | BUILD_CXX=$ac_cv_prog_BUILD_CXX | 
|  | 4954 | if test -n "$BUILD_CXX"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4955 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 | 
|  | 4956 | echo "${ECHO_T}$BUILD_CXX" >&6; } | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4957 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4958 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4959 | echo "${ECHO_T}no" >&6; } | 
| Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4960 | fi | 
|  | 4961 |  | 
|  | 4962 |  | 
|  | 4963 | fi | 
|  | 4964 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4965 | else | 
|  | 4966 | LLVM_CROSS_COMPILING=0 | 
|  | 4967 |  | 
|  | 4968 | fi | 
|  | 4969 |  | 
| Dan Gohman | de75469c | 2010-08-04 16:25:01 +0000 | [diff] [blame] | 4970 | if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4971 | cvsbuild="yes" | 
|  | 4972 | optimize="no" | 
|  | 4973 | CVSBUILD=CVSBUILD=1 | 
|  | 4974 |  | 
|  | 4975 | else | 
|  | 4976 | cvsbuild="no" | 
|  | 4977 | optimize="yes" | 
|  | 4978 | fi | 
|  | 4979 |  | 
|  | 4980 |  | 
| Eric Christopher | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 4981 | # Check whether --enable-libcpp was given. | 
|  | 4982 | if test "${enable_libcpp+set}" = set; then | 
|  | 4983 | enableval=$enable_libcpp; | 
|  | 4984 | else | 
|  | 4985 | enableval=default | 
|  | 4986 | fi | 
|  | 4987 |  | 
|  | 4988 | case "$enableval" in | 
|  | 4989 | yes) ENABLE_LIBCPP=1 | 
|  | 4990 | ;; | 
|  | 4991 | no)  ENABLE_LIBCPP=0 | 
|  | 4992 | ;; | 
|  | 4993 | default) ENABLE_LIBCPP=0 | 
|  | 4994 | ;; | 
|  | 4995 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 | 
|  | 4996 | echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} | 
|  | 4997 | { (exit 1); exit 1; }; } ;; | 
|  | 4998 | esac | 
|  | 4999 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5000 | # Check whether --enable-optimized was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5001 | if test "${enable_optimized+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5002 | enableval=$enable_optimized; | 
|  | 5003 | else | 
|  | 5004 | enableval=$optimize | 
|  | 5005 | fi | 
|  | 5006 |  | 
|  | 5007 | if test ${enableval} = "no" ; then | 
|  | 5008 | ENABLE_OPTIMIZED= | 
|  | 5009 |  | 
|  | 5010 | else | 
|  | 5011 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 | 
|  | 5012 |  | 
|  | 5013 | fi | 
|  | 5014 |  | 
| David Greene | c0a34a07 | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 5015 | # Check whether --enable-profiling was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5016 | if test "${enable_profiling+set}" = set; then | 
| David Greene | c0a34a07 | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 5017 | enableval=$enable_profiling; | 
|  | 5018 | else | 
|  | 5019 | enableval="no" | 
|  | 5020 | fi | 
|  | 5021 |  | 
|  | 5022 | if test ${enableval} = "no" ; then | 
|  | 5023 | ENABLE_PROFILING= | 
|  | 5024 |  | 
|  | 5025 | else | 
|  | 5026 | ENABLE_PROFILING=ENABLE_PROFILING=1 | 
|  | 5027 |  | 
|  | 5028 | fi | 
|  | 5029 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5030 | # Check whether --enable-assertions was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5031 | if test "${enable_assertions+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5032 | enableval=$enable_assertions; | 
|  | 5033 | else | 
|  | 5034 | enableval="yes" | 
|  | 5035 | fi | 
|  | 5036 |  | 
|  | 5037 | if test ${enableval} = "yes" ; then | 
|  | 5038 | DISABLE_ASSERTIONS= | 
|  | 5039 |  | 
|  | 5040 | else | 
|  | 5041 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 | 
|  | 5042 |  | 
|  | 5043 | fi | 
|  | 5044 |  | 
| David Greene | cbc8ddf | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 5045 | # Check whether --enable-expensive-checks was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5046 | if test "${enable_expensive_checks+set}" = set; then | 
| David Greene | cbc8ddf | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 5047 | enableval=$enable_expensive_checks; | 
|  | 5048 | else | 
|  | 5049 | enableval="no" | 
|  | 5050 | fi | 
|  | 5051 |  | 
|  | 5052 | if test ${enableval} = "yes" ; then | 
|  | 5053 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 | 
|  | 5054 |  | 
|  | 5055 | EXPENSIVE_CHECKS=yes | 
|  | 5056 |  | 
|  | 5057 | else | 
|  | 5058 | ENABLE_EXPENSIVE_CHECKS= | 
|  | 5059 |  | 
|  | 5060 | EXPENSIVE_CHECKS=no | 
|  | 5061 |  | 
|  | 5062 | fi | 
|  | 5063 |  | 
| Reid Spencer | 4b8067f | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5064 | # Check whether --enable-debug-runtime was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5065 | if test "${enable_debug_runtime+set}" = set; then | 
| Reid Spencer | 4b8067f | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5066 | enableval=$enable_debug_runtime; | 
|  | 5067 | else | 
|  | 5068 | enableval=no | 
|  | 5069 | fi | 
|  | 5070 |  | 
|  | 5071 | if test ${enableval} = "no" ; then | 
|  | 5072 | DEBUG_RUNTIME= | 
|  | 5073 |  | 
|  | 5074 | else | 
|  | 5075 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 | 
|  | 5076 |  | 
|  | 5077 | fi | 
|  | 5078 |  | 
| Jeffrey Yasskin | c3273dc | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5079 | # Check whether --enable-debug-symbols was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5080 | if test "${enable_debug_symbols+set}" = set; then | 
| Jeffrey Yasskin | c3273dc | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5081 | enableval=$enable_debug_symbols; | 
|  | 5082 | else | 
|  | 5083 | enableval=no | 
|  | 5084 | fi | 
|  | 5085 |  | 
|  | 5086 | if test ${enableval} = "no" ; then | 
|  | 5087 | DEBUG_SYMBOLS= | 
|  | 5088 |  | 
|  | 5089 | else | 
|  | 5090 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 | 
|  | 5091 |  | 
|  | 5092 | fi | 
|  | 5093 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5094 | # Check whether --enable-jit was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5095 | if test "${enable_jit+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5096 | enableval=$enable_jit; | 
|  | 5097 | else | 
|  | 5098 | enableval=default | 
|  | 5099 | fi | 
|  | 5100 |  | 
|  | 5101 | if test ${enableval} = "no" | 
|  | 5102 | then | 
|  | 5103 | JIT= | 
|  | 5104 |  | 
|  | 5105 | else | 
|  | 5106 | case "$llvm_cv_target_arch" in | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5107 | x86)         TARGET_HAS_JIT=1 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5108 | ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5109 | Sparc)       TARGET_HAS_JIT=0 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5110 | ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5111 | PowerPC)     TARGET_HAS_JIT=1 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5112 | ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5113 | x86_64)      TARGET_HAS_JIT=1 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5114 | ;; | 
| Eric Christopher | d8530f3 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 5115 | ARM)         TARGET_HAS_JIT=1 | 
| Reid Spencer | d7c8b3c | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 5116 | ;; | 
| Bruno Cardoso Lopes | d1d9c78 | 2011-07-21 16:28:51 +0000 | [diff] [blame] | 5117 | Mips)        TARGET_HAS_JIT=1 | 
| Tanya Lattner | bca16c8 | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 5118 | ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5119 | XCore)       TARGET_HAS_JIT=0 | 
| Richard Osborne | ca08e06 | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 5120 | ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5121 | MSP430)      TARGET_HAS_JIT=0 | 
| Anton Korobeynikov | 9173b49 | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 5122 | ;; | 
| Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5123 | Hexagon)     TARGET_HAS_JIT=0 | 
|  | 5124 | ;; | 
| Wesley Peck | e4801e4 | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5125 | MBlaze)      TARGET_HAS_JIT=0 | 
|  | 5126 | ;; | 
| Nick Lewycky | 1facc1d | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5127 | PTX)         TARGET_HAS_JIT=0 | 
|  | 5128 | ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5129 | *)           TARGET_HAS_JIT=0 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5130 | ;; | 
|  | 5131 | esac | 
|  | 5132 | fi | 
|  | 5133 |  | 
| Rafael Espindola | 7ac506d | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 5134 | # Check whether --enable-docs was given. | 
|  | 5135 | if test "${enable_docs+set}" = set; then | 
|  | 5136 | enableval=$enable_docs; | 
|  | 5137 | else | 
|  | 5138 | enableval=default | 
|  | 5139 | fi | 
|  | 5140 |  | 
|  | 5141 | case "$enableval" in | 
|  | 5142 | yes) ENABLE_DOCS=1 | 
|  | 5143 | ;; | 
|  | 5144 | no)  ENABLE_DOCS=0 | 
|  | 5145 | ;; | 
|  | 5146 | default) ENABLE_DOCS=1 | 
|  | 5147 | ;; | 
|  | 5148 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 | 
|  | 5149 | echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} | 
|  | 5150 | { (exit 1); exit 1; }; } ;; | 
|  | 5151 | esac | 
|  | 5152 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5153 | # Check whether --enable-doxygen was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5154 | if test "${enable_doxygen+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5155 | enableval=$enable_doxygen; | 
|  | 5156 | else | 
|  | 5157 | enableval=default | 
|  | 5158 | fi | 
|  | 5159 |  | 
|  | 5160 | case "$enableval" in | 
|  | 5161 | yes) ENABLE_DOXYGEN=1 | 
|  | 5162 | ;; | 
|  | 5163 | no)  ENABLE_DOXYGEN=0 | 
|  | 5164 | ;; | 
|  | 5165 | default) ENABLE_DOXYGEN=0 | 
|  | 5166 | ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5167 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 | 
|  | 5168 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} | 
|  | 5169 | { (exit 1); exit 1; }; } ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5170 | esac | 
|  | 5171 |  | 
|  | 5172 | # Check whether --enable-threads was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5173 | if test "${enable_threads+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5174 | enableval=$enable_threads; | 
|  | 5175 | else | 
| Reid Spencer | d549edc | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5176 | enableval=default | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5177 | fi | 
|  | 5178 |  | 
|  | 5179 | case "$enableval" in | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5180 | yes) LLVM_ENABLE_THREADS=1 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5181 | ;; | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5182 | no)  LLVM_ENABLE_THREADS=0 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5183 | ;; | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5184 | default) LLVM_ENABLE_THREADS=1 | 
| Reid Spencer | d549edc | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5185 | ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5186 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 | 
|  | 5187 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} | 
|  | 5188 | { (exit 1); exit 1; }; } ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5189 | esac | 
|  | 5190 |  | 
| Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5191 | cat >>confdefs.h <<_ACEOF | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5192 | #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS | 
| Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5193 | _ACEOF | 
|  | 5194 |  | 
|  | 5195 |  | 
| NAKAMURA Takumi | c6fce17 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 5196 | # Check whether --enable-pthreads was given. | 
|  | 5197 | if test "${enable_pthreads+set}" = set; then | 
|  | 5198 | enableval=$enable_pthreads; | 
|  | 5199 | else | 
|  | 5200 | enableval=default | 
|  | 5201 | fi | 
|  | 5202 |  | 
|  | 5203 | case "$enableval" in | 
|  | 5204 | yes) ENABLE_PTHREADS=1 | 
|  | 5205 | ;; | 
|  | 5206 | no)  ENABLE_PTHREADS=0 | 
|  | 5207 | ;; | 
|  | 5208 | default) ENABLE_PTHREADS=1 | 
|  | 5209 | ;; | 
|  | 5210 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 | 
|  | 5211 | echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} | 
|  | 5212 | { (exit 1); exit 1; }; } ;; | 
|  | 5213 | esac | 
|  | 5214 |  | 
| Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5215 | # Check whether --enable-pic was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5216 | if test "${enable_pic+set}" = set; then | 
| Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5217 | enableval=$enable_pic; | 
|  | 5218 | else | 
|  | 5219 | enableval=default | 
|  | 5220 | fi | 
|  | 5221 |  | 
|  | 5222 | case "$enableval" in | 
|  | 5223 | yes) ENABLE_PIC=1 | 
|  | 5224 | ;; | 
|  | 5225 | no)  ENABLE_PIC=0 | 
|  | 5226 | ;; | 
| Nick Lewycky | 3852519 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 5227 | default) ENABLE_PIC=1 | 
| Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5228 | ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5229 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 | 
|  | 5230 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} | 
|  | 5231 | { (exit 1); exit 1; }; } ;; | 
| Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5232 | esac | 
|  | 5233 |  | 
|  | 5234 | cat >>confdefs.h <<_ACEOF | 
|  | 5235 | #define ENABLE_PIC $ENABLE_PIC | 
|  | 5236 | _ACEOF | 
|  | 5237 |  | 
|  | 5238 |  | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 5239 | # Check whether --enable-shared was given. | 
|  | 5240 | if test "${enable_shared+set}" = set; then | 
|  | 5241 | enableval=$enable_shared; | 
|  | 5242 | else | 
|  | 5243 | enableval=default | 
|  | 5244 | fi | 
|  | 5245 |  | 
|  | 5246 | case "$enableval" in | 
|  | 5247 | yes) ENABLE_SHARED=1 | 
|  | 5248 | ;; | 
|  | 5249 | no)  ENABLE_SHARED=0 | 
|  | 5250 | ;; | 
|  | 5251 | default) ENABLE_SHARED=0 | 
|  | 5252 | ;; | 
|  | 5253 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 | 
|  | 5254 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} | 
|  | 5255 | { (exit 1); exit 1; }; } ;; | 
|  | 5256 | esac | 
|  | 5257 |  | 
| NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5258 | # Check whether --enable-embed-stdcxx was given. | 
|  | 5259 | if test "${enable_embed_stdcxx+set}" = set; then | 
|  | 5260 | enableval=$enable_embed_stdcxx; | 
|  | 5261 | else | 
|  | 5262 | enableval=default | 
|  | 5263 | fi | 
|  | 5264 |  | 
|  | 5265 | case "$enableval" in | 
|  | 5266 | yes) ENABLE_EMBED_STDCXX=1 | 
|  | 5267 | ;; | 
|  | 5268 | no)  ENABLE_EMBED_STDCXX=0 | 
|  | 5269 | ;; | 
| NAKAMURA Takumi | d5a9a3a | 2011-10-13 18:04:52 +0000 | [diff] [blame] | 5270 | default) ENABLE_EMBED_STDCXX=0 | 
| NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5271 | ;; | 
|  | 5272 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 | 
|  | 5273 | echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} | 
|  | 5274 | { (exit 1); exit 1; }; } ;; | 
|  | 5275 | esac | 
|  | 5276 |  | 
| Daniel Dunbar | dac1824 | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 5277 | # Check whether --enable-timestamps was given. | 
|  | 5278 | if test "${enable_timestamps+set}" = set; then | 
|  | 5279 | enableval=$enable_timestamps; | 
|  | 5280 | else | 
|  | 5281 | enableval=default | 
|  | 5282 | fi | 
|  | 5283 |  | 
|  | 5284 | case "$enableval" in | 
|  | 5285 | yes) ENABLE_TIMESTAMPS=1 | 
|  | 5286 | ;; | 
|  | 5287 | no)  ENABLE_TIMESTAMPS=0 | 
|  | 5288 | ;; | 
|  | 5289 | default) ENABLE_TIMESTAMPS=1 | 
|  | 5290 | ;; | 
|  | 5291 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 | 
|  | 5292 | echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} | 
|  | 5293 | { (exit 1); exit 1; }; } ;; | 
|  | 5294 | esac | 
|  | 5295 |  | 
|  | 5296 | cat >>confdefs.h <<_ACEOF | 
|  | 5297 | #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS | 
|  | 5298 | _ACEOF | 
|  | 5299 |  | 
|  | 5300 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5301 | TARGETS_TO_BUILD="" | 
|  | 5302 | # Check whether --enable-targets was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5303 | if test "${enable_targets+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5304 | enableval=$enable_targets; | 
|  | 5305 | else | 
|  | 5306 | enableval=all | 
|  | 5307 | fi | 
|  | 5308 |  | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5309 | if test "$enableval" = host-only ; then | 
|  | 5310 | enableval=host | 
|  | 5311 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5312 | case "$enableval" in | 
| Eric Christopher | 64a2323 | 2012-03-23 05:50:46 +0000 | [diff] [blame] | 5313 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX Hexagon" ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5314 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do | 
|  | 5315 | case "$a_target" in | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5316 | x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
|  | 5317 | x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
|  | 5318 | sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; | 
|  | 5319 | powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5320 | arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; | 
|  | 5321 | mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; | 
| Rafael Espindola | e46f096 | 2011-12-28 17:08:00 +0000 | [diff] [blame] | 5322 | mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5323 | spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5324 | xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; | 
|  | 5325 | msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; | 
| Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5326 | cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; | 
| Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5327 | hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; | 
| Wesley Peck | e4801e4 | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5328 | mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; | 
| Nick Lewycky | 1facc1d | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5329 | ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5330 | host) case "$llvm_cv_target_arch" in | 
|  | 5331 | x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
|  | 5332 | x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
|  | 5333 | Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; | 
|  | 5334 | PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5335 | ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; | 
|  | 5336 | Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; | 
| Wesley Peck | e4801e4 | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5337 | MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5338 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5339 | XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; | 
|  | 5340 | MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; | 
| Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5341 | Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; | 
| Nick Lewycky | 1facc1d | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5342 | PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5343 | *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 | 
|  | 5344 | echo "$as_me: error: Can not set target to build" >&2;} | 
|  | 5345 | { (exit 1); exit 1; }; } ;; | 
| Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5346 | esac ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5347 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 | 
|  | 5348 | echo "$as_me: error: Unrecognized target $a_target" >&2;} | 
|  | 5349 | { (exit 1); exit 1; }; } ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5350 | esac | 
|  | 5351 | done | 
|  | 5352 | ;; | 
|  | 5353 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5354 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD | 
|  | 5355 |  | 
|  | 5356 |  | 
| Douglas Gregor | 43613a2 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5357 | for a_target in $TARGETS_TO_BUILD; do | 
|  | 5358 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then | 
|  | 5359 |  | 
|  | 5360 | cat >>confdefs.h <<_ACEOF | 
| Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5361 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH | 
|  | 5362 | _ACEOF | 
|  | 5363 |  | 
|  | 5364 | LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" | 
|  | 5365 | LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" | 
| Evan Cheng | 8c886a4 | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5366 | LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" | 
| Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5367 | LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" | 
| Jan Sjödin | c9a16d5 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5368 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then | 
|  | 5369 | LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" | 
|  | 5370 | fi | 
| Eric Christopher | 56079c1 | 2012-03-26 21:56:56 +0000 | [diff] [blame] | 5371 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then | 
|  | 5372 | LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" | 
|  | 5373 | fi | 
| Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5374 |  | 
|  | 5375 | cat >>confdefs.h <<_ACEOF | 
|  | 5376 | #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET | 
| Daniel Dunbar | edf7b8b | 2010-08-03 14:26:17 +0000 | [diff] [blame] | 5377 | _ACEOF | 
|  | 5378 |  | 
|  | 5379 |  | 
|  | 5380 | cat >>confdefs.h <<_ACEOF | 
| Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5381 | #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO | 
|  | 5382 | _ACEOF | 
|  | 5383 |  | 
|  | 5384 |  | 
|  | 5385 | cat >>confdefs.h <<_ACEOF | 
| Evan Cheng | 8c886a4 | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5386 | #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC | 
| Evan Cheng | 2129f59 | 2011-07-19 06:37:02 +0000 | [diff] [blame] | 5387 | _ACEOF | 
|  | 5388 |  | 
|  | 5389 |  | 
|  | 5390 | cat >>confdefs.h <<_ACEOF | 
| Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5391 | #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER | 
| Douglas Gregor | 43613a2 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5392 | _ACEOF | 
|  | 5393 |  | 
| Jan Sjödin | c9a16d5 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5394 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then | 
| Jan Sjödin | 27e07c3 | 2011-03-09 17:25:46 +0000 | [diff] [blame] | 5395 |  | 
|  | 5396 | cat >>confdefs.h <<_ACEOF | 
|  | 5397 | #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER | 
|  | 5398 | _ACEOF | 
|  | 5399 |  | 
| Jan Sjödin | c9a16d5 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5400 | fi | 
| Eric Christopher | 56079c1 | 2012-03-26 21:56:56 +0000 | [diff] [blame] | 5401 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then | 
|  | 5402 |  | 
|  | 5403 | cat >>confdefs.h <<_ACEOF | 
|  | 5404 | #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER | 
|  | 5405 | _ACEOF | 
|  | 5406 |  | 
|  | 5407 | fi | 
| Douglas Gregor | 43613a2 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5408 | fi | 
|  | 5409 | done | 
|  | 5410 |  | 
| Douglas Gregor | 1b731d5 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5411 | LLVM_ENUM_TARGETS="" | 
|  | 5412 | LLVM_ENUM_ASM_PRINTERS="" | 
| Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5413 | LLVM_ENUM_ASM_PARSERS="" | 
| Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5414 | LLVM_ENUM_DISASSEMBLERS="" | 
| Douglas Gregor | 1b731d5 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5415 | for target_to_build in $TARGETS_TO_BUILD; do | 
|  | 5416 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" | 
| Chris Lattner | 2877660 | 2010-11-14 19:10:47 +0000 | [diff] [blame] | 5417 | if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then | 
| Jim Grosbach | 0e854f3 | 2010-10-01 22:39:28 +0000 | [diff] [blame] | 5418 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; | 
|  | 5419 | fi | 
| Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5420 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then | 
|  | 5421 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; | 
|  | 5422 | fi | 
| Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5423 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then | 
|  | 5424 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; | 
|  | 5425 | fi | 
| Douglas Gregor | 1b731d5 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5426 | done | 
|  | 5427 |  | 
|  | 5428 |  | 
|  | 5429 |  | 
| Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5430 |  | 
| Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5431 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5432 |  | 
| Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5433 | # Check whether --with-optimize-option was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5434 | if test "${with_optimize_option+set}" = set; then | 
| Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5435 | withval=$with_optimize_option; | 
|  | 5436 | else | 
|  | 5437 | withval=default | 
|  | 5438 | fi | 
|  | 5439 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5440 | { echo "$as_me:$LINENO: checking optimization flags" >&5 | 
|  | 5441 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } | 
| Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5442 | case "$withval" in | 
|  | 5443 | default) | 
|  | 5444 | case "$llvm_cv_os_type" in | 
| Daniel Dunbar | d411fcb | 2010-04-30 17:12:26 +0000 | [diff] [blame] | 5445 | FreeBSD) optimize_option=-O2 ;; | 
| Daniel Dunbar | 4e06a5b | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 5446 | MingW) optimize_option=-O2 ;; | 
|  | 5447 | *)     optimize_option=-O3 ;; | 
| Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5448 | esac ;; | 
|  | 5449 | *) optimize_option="$withval" ;; | 
|  | 5450 | esac | 
|  | 5451 | OPTIMIZE_OPTION=$optimize_option | 
|  | 5452 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5453 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 | 
|  | 5454 | echo "${ECHO_T}$optimize_option" >&6; } | 
| Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5455 |  | 
|  | 5456 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5457 | # Check whether --with-extra-options was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5458 | if test "${with_extra_options+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5459 | withval=$with_extra_options; | 
|  | 5460 | else | 
|  | 5461 | withval=default | 
|  | 5462 | fi | 
|  | 5463 |  | 
|  | 5464 | case "$withval" in | 
|  | 5465 | default) EXTRA_OPTIONS= ;; | 
|  | 5466 | *) EXTRA_OPTIONS=$withval ;; | 
|  | 5467 | esac | 
|  | 5468 | EXTRA_OPTIONS=$EXTRA_OPTIONS | 
|  | 5469 |  | 
|  | 5470 |  | 
| Daniel Dunbar | 3b95df8 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 5471 |  | 
|  | 5472 | # Check whether --with-extra-ld-options was given. | 
|  | 5473 | if test "${with_extra_ld_options+set}" = set; then | 
|  | 5474 | withval=$with_extra_ld_options; | 
|  | 5475 | else | 
|  | 5476 | withval=default | 
|  | 5477 | fi | 
|  | 5478 |  | 
|  | 5479 | case "$withval" in | 
|  | 5480 | default) EXTRA_LD_OPTIONS= ;; | 
|  | 5481 | *) EXTRA_LD_OPTIONS=$withval ;; | 
|  | 5482 | esac | 
|  | 5483 | EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS | 
|  | 5484 |  | 
|  | 5485 |  | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5486 | # Check whether --enable-bindings was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5487 | if test "${enable_bindings+set}" = set; then | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5488 | enableval=$enable_bindings; | 
|  | 5489 | else | 
|  | 5490 | enableval=default | 
|  | 5491 | fi | 
|  | 5492 |  | 
|  | 5493 | BINDINGS_TO_BUILD="" | 
|  | 5494 | case "$enableval" in | 
| Gordon Henriksen | acc2a83 | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5495 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5496 | all ) BINDINGS_TO_BUILD="ocaml" ;; | 
|  | 5497 | none | no) BINDINGS_TO_BUILD="" ;; | 
|  | 5498 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do | 
|  | 5499 | case "$a_binding" in | 
|  | 5500 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5501 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 | 
|  | 5502 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} | 
|  | 5503 | { (exit 1); exit 1; }; } ;; | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5504 | esac | 
|  | 5505 | done | 
|  | 5506 | ;; | 
|  | 5507 | esac | 
|  | 5508 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5509 |  | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5510 | # Check whether --with-ocaml-libdir was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5511 | if test "${with_ocaml_libdir+set}" = set; then | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5512 | withval=$with_ocaml_libdir; | 
|  | 5513 | else | 
|  | 5514 | withval=auto | 
|  | 5515 | fi | 
|  | 5516 |  | 
|  | 5517 | case "$withval" in | 
|  | 5518 | auto) with_ocaml_libdir="$withval" ;; | 
|  | 5519 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5520 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 | 
|  | 5521 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} | 
|  | 5522 | { (exit 1); exit 1; }; } ;; | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5523 | esac | 
|  | 5524 |  | 
|  | 5525 |  | 
| NAKAMURA Takumi | 914f192 | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 5526 | # Check whether --with-clang-srcdir was given. | 
|  | 5527 | if test "${with_clang_srcdir+set}" = set; then | 
|  | 5528 | withval=$with_clang_srcdir; | 
|  | 5529 | else | 
|  | 5530 | withval="-" | 
|  | 5531 | fi | 
|  | 5532 |  | 
|  | 5533 | case "$withval" in | 
| Eric Christopher | 7f977de | 2012-02-02 00:19:05 +0000 | [diff] [blame] | 5534 | -) clang_src_root="" ;; | 
| NAKAMURA Takumi | 914f192 | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 5535 | /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; | 
|  | 5536 | *) clang_src_root="$ac_pwd/$withval" ;; | 
|  | 5537 | esac | 
|  | 5538 | CLANG_SRC_ROOT=$clang_src_root | 
|  | 5539 |  | 
|  | 5540 |  | 
|  | 5541 |  | 
| Chandler Carruth | ffae4a6 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 5542 | # Check whether --with-clang-resource-dir was given. | 
|  | 5543 | if test "${with_clang_resource_dir+set}" = set; then | 
|  | 5544 | withval=$with_clang_resource_dir; | 
|  | 5545 | else | 
|  | 5546 | withval="" | 
|  | 5547 | fi | 
|  | 5548 |  | 
|  | 5549 |  | 
|  | 5550 | cat >>confdefs.h <<_ACEOF | 
|  | 5551 | #define CLANG_RESOURCE_DIR "$withval" | 
|  | 5552 | _ACEOF | 
|  | 5553 |  | 
|  | 5554 |  | 
|  | 5555 |  | 
| Rafael Espindola | 662908c | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5556 | # Check whether --with-c-include-dirs was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5557 | if test "${with_c_include_dirs+set}" = set; then | 
| Rafael Espindola | 662908c | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5558 | withval=$with_c_include_dirs; | 
| Rafael Espindola | d95960b | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5559 | else | 
|  | 5560 | withval="" | 
|  | 5561 | fi | 
|  | 5562 |  | 
|  | 5563 |  | 
|  | 5564 | cat >>confdefs.h <<_ACEOF | 
|  | 5565 | #define C_INCLUDE_DIRS "$withval" | 
|  | 5566 | _ACEOF | 
|  | 5567 |  | 
|  | 5568 |  | 
| Rafael Espindola | ec217f6 | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5569 | # Clang normally uses the system c++ headers and libraries. With this option, | 
|  | 5570 | # clang will use the ones provided by a gcc installation instead. This option should | 
|  | 5571 | # be passed the same value that was used with --prefix when configuring gcc. | 
| Rafael Espindola | d95960b | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5572 |  | 
| Rafael Espindola | ec217f6 | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5573 | # Check whether --with-gcc-toolchain was given. | 
|  | 5574 | if test "${with_gcc_toolchain+set}" = set; then | 
|  | 5575 | withval=$with_gcc_toolchain; | 
| Rafael Espindola | 65e9be6d | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5576 | else | 
|  | 5577 | withval="" | 
|  | 5578 | fi | 
|  | 5579 |  | 
|  | 5580 |  | 
|  | 5581 | cat >>confdefs.h <<_ACEOF | 
| Rafael Espindola | ec217f6 | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5582 | #define GCC_INSTALL_PREFIX "$withval" | 
| Rafael Espindola | 65e9be6d | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5583 | _ACEOF | 
|  | 5584 |  | 
|  | 5585 |  | 
|  | 5586 |  | 
| Sebastian Pop | e29a6c7 | 2012-04-30 20:06:58 +0000 | [diff] [blame] | 5587 | # Check whether --with-default-sysroot was given. | 
|  | 5588 | if test "${with_default_sysroot+set}" = set; then | 
|  | 5589 | withval=$with_default_sysroot; | 
| Sebastian Pop | 5c9e184 | 2012-04-16 04:11:45 +0000 | [diff] [blame] | 5590 | else | 
|  | 5591 | withval="" | 
|  | 5592 | fi | 
|  | 5593 |  | 
|  | 5594 |  | 
|  | 5595 | cat >>confdefs.h <<_ACEOF | 
|  | 5596 | #define DEFAULT_SYSROOT "$withval" | 
|  | 5597 | _ACEOF | 
|  | 5598 |  | 
|  | 5599 |  | 
|  | 5600 |  | 
| Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5601 | # Check whether --with-binutils-include was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5602 | if test "${with_binutils_include+set}" = set; then | 
| Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5603 | withval=$with_binutils_include; | 
|  | 5604 | else | 
|  | 5605 | withval=default | 
|  | 5606 | fi | 
|  | 5607 |  | 
|  | 5608 | case "$withval" in | 
|  | 5609 | default) WITH_BINUTILS_INCDIR=default ;; | 
|  | 5610 | /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5611 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 | 
|  | 5612 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} | 
|  | 5613 | { (exit 1); exit 1; }; } ;; | 
| Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5614 | esac | 
|  | 5615 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then | 
|  | 5616 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR | 
|  | 5617 |  | 
|  | 5618 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then | 
|  | 5619 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5620 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 | 
|  | 5621 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} | 
|  | 5622 | { (exit 1); exit 1; }; }; | 
| Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5623 | fi | 
|  | 5624 | fi | 
|  | 5625 |  | 
| Eric Christopher | 65080cc | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 5626 |  | 
|  | 5627 | # Check whether --with-bug-report-url was given. | 
|  | 5628 | if test "${with_bug_report_url+set}" = set; then | 
|  | 5629 | withval=$with_bug_report_url; | 
|  | 5630 | else | 
| NAKAMURA Takumi | 818a22b | 2011-08-12 01:50:43 +0000 | [diff] [blame] | 5631 | withval="http://llvm.org/bugs/" | 
| Eric Christopher | 65080cc | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 5632 | fi | 
|  | 5633 |  | 
|  | 5634 |  | 
|  | 5635 | cat >>confdefs.h <<_ACEOF | 
|  | 5636 | #define BUG_REPORT_URL "$withval" | 
|  | 5637 | _ACEOF | 
|  | 5638 |  | 
|  | 5639 |  | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5640 | # Check whether --enable-libffi was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5641 | if test "${enable_libffi+set}" = set; then | 
| Jeffrey Yasskin | 914050b | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5642 | enableval=$enable_libffi; case "$enableval" in | 
|  | 5643 | yes) llvm_cv_enable_libffi="yes" ;; | 
|  | 5644 | no)  llvm_cv_enable_libffi="no"  ;; | 
|  | 5645 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5646 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} | 
|  | 5647 | { (exit 1); exit 1; }; } ;; | 
| Jeffrey Yasskin | 914050b | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5648 | esac | 
|  | 5649 | else | 
|  | 5650 | llvm_cv_enable_libffi=no | 
|  | 5651 | fi | 
|  | 5652 |  | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5653 |  | 
| Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5654 |  | 
| Bob Wilson | 3f35470 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 5655 | # Check whether --with-internal-prefix was given. | 
|  | 5656 | if test "${with_internal_prefix+set}" = set; then | 
|  | 5657 | withval=$with_internal_prefix; | 
|  | 5658 | else | 
|  | 5659 | withval="" | 
|  | 5660 | fi | 
|  | 5661 |  | 
|  | 5662 | INTERNAL_PREFIX=$withval | 
|  | 5663 |  | 
|  | 5664 |  | 
|  | 5665 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5666 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | 
|  | 5667 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } | 
|  | 5668 | if test "${lt_cv_path_NM+set}" = set; then | 
|  | 5669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5670 | else | 
|  | 5671 | if test -n "$NM"; then | 
|  | 5672 | # Let the user override the test. | 
|  | 5673 | lt_cv_path_NM="$NM" | 
|  | 5674 | else | 
|  | 5675 | lt_nm_to_check="${ac_tool_prefix}nm" | 
|  | 5676 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | 
|  | 5677 | lt_nm_to_check="$lt_nm_to_check nm" | 
|  | 5678 | fi | 
|  | 5679 | for lt_tmp_nm in $lt_nm_to_check; do | 
|  | 5680 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 5681 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | 
|  | 5682 | IFS="$lt_save_ifs" | 
|  | 5683 | test -z "$ac_dir" && ac_dir=. | 
|  | 5684 | tmp_nm="$ac_dir/$lt_tmp_nm" | 
|  | 5685 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 
|  | 5686 | # Check to see if the nm accepts a BSD-compat flag. | 
|  | 5687 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
|  | 5688 | #   nm: unknown option "B" ignored | 
|  | 5689 | # Tru64's nm complains that /dev/null is an invalid object file | 
|  | 5690 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 
|  | 5691 | */dev/null* | *'Invalid file or object type'*) | 
|  | 5692 | lt_cv_path_NM="$tmp_nm -B" | 
|  | 5693 | break | 
|  | 5694 | ;; | 
|  | 5695 | *) | 
|  | 5696 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 
|  | 5697 | */dev/null*) | 
|  | 5698 | lt_cv_path_NM="$tmp_nm -p" | 
|  | 5699 | break | 
|  | 5700 | ;; | 
|  | 5701 | *) | 
|  | 5702 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 
|  | 5703 | continue # so that we can try to find one that supports BSD flags | 
|  | 5704 | ;; | 
|  | 5705 | esac | 
|  | 5706 | ;; | 
|  | 5707 | esac | 
|  | 5708 | fi | 
|  | 5709 | done | 
|  | 5710 | IFS="$lt_save_ifs" | 
|  | 5711 | done | 
|  | 5712 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 
|  | 5713 | fi | 
|  | 5714 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5715 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | 
|  | 5716 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5717 | NM="$lt_cv_path_NM" | 
|  | 5718 |  | 
|  | 5719 |  | 
|  | 5720 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5721 | { echo "$as_me:$LINENO: checking for GNU make" >&5 | 
|  | 5722 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } | 
|  | 5723 | if test "${llvm_cv_gnu_make_command+set}" = set; then | 
|  | 5724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5725 | else | 
|  | 5726 | llvm_cv_gnu_make_command='' | 
|  | 5727 | for a in "$MAKE" make gmake gnumake ; do | 
|  | 5728 | if test -z "$a" ; then continue ; fi ; | 
|  | 5729 | if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) | 
|  | 5730 | then | 
|  | 5731 | llvm_cv_gnu_make_command=$a ; | 
|  | 5732 | break; | 
|  | 5733 | fi | 
|  | 5734 | done | 
|  | 5735 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5736 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 | 
|  | 5737 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5738 | if test "x$llvm_cv_gnu_make_command" != "x"  ; then | 
|  | 5739 | ifGNUmake='' ; | 
|  | 5740 | else | 
|  | 5741 | ifGNUmake='#' ; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5742 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 | 
|  | 5743 | echo "${ECHO_T}\"Not found\"" >&6; }; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5744 | fi | 
|  | 5745 |  | 
|  | 5746 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5747 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 | 
|  | 5748 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5749 | LN_S=$as_ln_s | 
|  | 5750 | if test "$LN_S" = "ln -s"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5751 | { echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 5752 | echo "${ECHO_T}yes" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5753 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5754 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | 
|  | 5755 | echo "${ECHO_T}no, using $LN_S" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5756 | fi | 
|  | 5757 |  | 
|  | 5758 | # Extract the first word of "cmp", so it can be a program name with args. | 
|  | 5759 | set dummy cmp; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5760 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5761 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 5762 | if test "${ac_cv_path_CMP+set}" = set; then | 
|  | 5763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5764 | else | 
|  | 5765 | case $CMP in | 
|  | 5766 | [\\/]* | ?:[\\/]*) | 
|  | 5767 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. | 
|  | 5768 | ;; | 
|  | 5769 | *) | 
|  | 5770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5771 | for as_dir in $PATH | 
|  | 5772 | do | 
|  | 5773 | IFS=$as_save_IFS | 
|  | 5774 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5775 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5776 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5777 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5778 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5779 | break 2 | 
|  | 5780 | fi | 
|  | 5781 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5782 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5783 | IFS=$as_save_IFS | 
|  | 5784 |  | 
|  | 5785 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" | 
|  | 5786 | ;; | 
|  | 5787 | esac | 
|  | 5788 | fi | 
|  | 5789 | CMP=$ac_cv_path_CMP | 
|  | 5790 | if test -n "$CMP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5791 | { echo "$as_me:$LINENO: result: $CMP" >&5 | 
|  | 5792 | echo "${ECHO_T}$CMP" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5793 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5794 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5795 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5796 | fi | 
|  | 5797 |  | 
|  | 5798 |  | 
|  | 5799 | # Extract the first word of "cp", so it can be a program name with args. | 
|  | 5800 | set dummy cp; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5801 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5802 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 5803 | if test "${ac_cv_path_CP+set}" = set; then | 
|  | 5804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5805 | else | 
|  | 5806 | case $CP in | 
|  | 5807 | [\\/]* | ?:[\\/]*) | 
|  | 5808 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | 
|  | 5809 | ;; | 
|  | 5810 | *) | 
|  | 5811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5812 | for as_dir in $PATH | 
|  | 5813 | do | 
|  | 5814 | IFS=$as_save_IFS | 
|  | 5815 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5816 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5817 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5818 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5819 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5820 | break 2 | 
|  | 5821 | fi | 
|  | 5822 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5823 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5824 | IFS=$as_save_IFS | 
|  | 5825 |  | 
|  | 5826 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" | 
|  | 5827 | ;; | 
|  | 5828 | esac | 
|  | 5829 | fi | 
|  | 5830 | CP=$ac_cv_path_CP | 
|  | 5831 | if test -n "$CP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5832 | { echo "$as_me:$LINENO: result: $CP" >&5 | 
|  | 5833 | echo "${ECHO_T}$CP" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5834 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5835 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5836 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5837 | fi | 
|  | 5838 |  | 
|  | 5839 |  | 
|  | 5840 | # Extract the first word of "date", so it can be a program name with args. | 
|  | 5841 | set dummy date; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5842 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5843 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 5844 | if test "${ac_cv_path_DATE+set}" = set; then | 
|  | 5845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5846 | else | 
|  | 5847 | case $DATE in | 
|  | 5848 | [\\/]* | ?:[\\/]*) | 
|  | 5849 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. | 
|  | 5850 | ;; | 
|  | 5851 | *) | 
|  | 5852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5853 | for as_dir in $PATH | 
|  | 5854 | do | 
|  | 5855 | IFS=$as_save_IFS | 
|  | 5856 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5857 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5858 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5859 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5861 | break 2 | 
|  | 5862 | fi | 
|  | 5863 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5864 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5865 | IFS=$as_save_IFS | 
|  | 5866 |  | 
|  | 5867 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" | 
|  | 5868 | ;; | 
|  | 5869 | esac | 
|  | 5870 | fi | 
|  | 5871 | DATE=$ac_cv_path_DATE | 
|  | 5872 | if test -n "$DATE"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5873 | { echo "$as_me:$LINENO: result: $DATE" >&5 | 
|  | 5874 | echo "${ECHO_T}$DATE" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5875 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5876 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5877 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5878 | fi | 
|  | 5879 |  | 
|  | 5880 |  | 
|  | 5881 | # Extract the first word of "find", so it can be a program name with args. | 
|  | 5882 | set dummy find; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5883 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5884 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 5885 | if test "${ac_cv_path_FIND+set}" = set; then | 
|  | 5886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5887 | else | 
|  | 5888 | case $FIND in | 
|  | 5889 | [\\/]* | ?:[\\/]*) | 
|  | 5890 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. | 
|  | 5891 | ;; | 
|  | 5892 | *) | 
|  | 5893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5894 | for as_dir in $PATH | 
|  | 5895 | do | 
|  | 5896 | IFS=$as_save_IFS | 
|  | 5897 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5898 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5899 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5900 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5901 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5902 | break 2 | 
|  | 5903 | fi | 
|  | 5904 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5905 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5906 | IFS=$as_save_IFS | 
|  | 5907 |  | 
|  | 5908 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" | 
|  | 5909 | ;; | 
|  | 5910 | esac | 
|  | 5911 | fi | 
|  | 5912 | FIND=$ac_cv_path_FIND | 
|  | 5913 | if test -n "$FIND"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5914 | { echo "$as_me:$LINENO: result: $FIND" >&5 | 
|  | 5915 | echo "${ECHO_T}$FIND" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5916 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5917 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5918 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5919 | fi | 
|  | 5920 |  | 
|  | 5921 |  | 
|  | 5922 | # Extract the first word of "grep", so it can be a program name with args. | 
|  | 5923 | set dummy grep; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5924 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5925 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 5926 | if test "${ac_cv_path_GREP+set}" = set; then | 
|  | 5927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5928 | else | 
|  | 5929 | case $GREP in | 
|  | 5930 | [\\/]* | ?:[\\/]*) | 
|  | 5931 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. | 
|  | 5932 | ;; | 
|  | 5933 | *) | 
|  | 5934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5935 | for as_dir in $PATH | 
|  | 5936 | do | 
|  | 5937 | IFS=$as_save_IFS | 
|  | 5938 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5939 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5940 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5941 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5942 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5943 | break 2 | 
|  | 5944 | fi | 
|  | 5945 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5946 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5947 | IFS=$as_save_IFS | 
|  | 5948 |  | 
|  | 5949 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" | 
|  | 5950 | ;; | 
|  | 5951 | esac | 
|  | 5952 | fi | 
|  | 5953 | GREP=$ac_cv_path_GREP | 
|  | 5954 | if test -n "$GREP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5955 | { echo "$as_me:$LINENO: result: $GREP" >&5 | 
|  | 5956 | echo "${ECHO_T}$GREP" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5957 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5958 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5959 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5960 | fi | 
|  | 5961 |  | 
|  | 5962 |  | 
|  | 5963 | # Extract the first word of "mkdir", so it can be a program name with args. | 
|  | 5964 | set dummy mkdir; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5965 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 5967 | if test "${ac_cv_path_MKDIR+set}" = set; then | 
|  | 5968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5969 | else | 
|  | 5970 | case $MKDIR in | 
|  | 5971 | [\\/]* | ?:[\\/]*) | 
|  | 5972 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. | 
|  | 5973 | ;; | 
|  | 5974 | *) | 
|  | 5975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5976 | for as_dir in $PATH | 
|  | 5977 | do | 
|  | 5978 | IFS=$as_save_IFS | 
|  | 5979 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5980 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5982 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5983 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5984 | break 2 | 
|  | 5985 | fi | 
|  | 5986 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5987 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5988 | IFS=$as_save_IFS | 
|  | 5989 |  | 
|  | 5990 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" | 
|  | 5991 | ;; | 
|  | 5992 | esac | 
|  | 5993 | fi | 
|  | 5994 | MKDIR=$ac_cv_path_MKDIR | 
|  | 5995 | if test -n "$MKDIR"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5996 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 | 
|  | 5997 | echo "${ECHO_T}$MKDIR" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5998 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5999 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6000 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6001 | fi | 
|  | 6002 |  | 
|  | 6003 |  | 
|  | 6004 | # Extract the first word of "mv", so it can be a program name with args. | 
|  | 6005 | set dummy mv; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6006 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6007 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6008 | if test "${ac_cv_path_MV+set}" = set; then | 
|  | 6009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6010 | else | 
|  | 6011 | case $MV in | 
|  | 6012 | [\\/]* | ?:[\\/]*) | 
|  | 6013 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | 
|  | 6014 | ;; | 
|  | 6015 | *) | 
|  | 6016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6017 | for as_dir in $PATH | 
|  | 6018 | do | 
|  | 6019 | IFS=$as_save_IFS | 
|  | 6020 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6021 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6022 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6023 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6024 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6025 | break 2 | 
|  | 6026 | fi | 
|  | 6027 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6028 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6029 | IFS=$as_save_IFS | 
|  | 6030 |  | 
|  | 6031 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" | 
|  | 6032 | ;; | 
|  | 6033 | esac | 
|  | 6034 | fi | 
|  | 6035 | MV=$ac_cv_path_MV | 
|  | 6036 | if test -n "$MV"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6037 | { echo "$as_me:$LINENO: result: $MV" >&5 | 
|  | 6038 | echo "${ECHO_T}$MV" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6039 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6040 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6041 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6042 | fi | 
|  | 6043 |  | 
|  | 6044 |  | 
|  | 6045 | if test -n "$ac_tool_prefix"; then | 
|  | 6046 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 6047 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6048 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6049 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6050 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 
|  | 6051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6052 | else | 
|  | 6053 | if test -n "$RANLIB"; then | 
|  | 6054 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 6055 | else | 
|  | 6056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6057 | for as_dir in $PATH | 
|  | 6058 | do | 
|  | 6059 | IFS=$as_save_IFS | 
|  | 6060 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6061 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6062 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6063 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6064 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6065 | break 2 | 
|  | 6066 | fi | 
|  | 6067 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6068 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6069 | IFS=$as_save_IFS | 
|  | 6070 |  | 
|  | 6071 | fi | 
|  | 6072 | fi | 
|  | 6073 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 6074 | if test -n "$RANLIB"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6075 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | 
|  | 6076 | echo "${ECHO_T}$RANLIB" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6077 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6078 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6079 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6080 | fi | 
|  | 6081 |  | 
|  | 6082 |  | 
|  | 6083 | fi | 
|  | 6084 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 6085 | ac_ct_RANLIB=$RANLIB | 
|  | 6086 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 6087 | set dummy ranlib; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6088 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6089 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6090 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 
|  | 6091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6092 | else | 
|  | 6093 | if test -n "$ac_ct_RANLIB"; then | 
|  | 6094 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
|  | 6095 | else | 
|  | 6096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6097 | for as_dir in $PATH | 
|  | 6098 | do | 
|  | 6099 | IFS=$as_save_IFS | 
|  | 6100 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6101 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6102 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6103 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6104 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6105 | break 2 | 
|  | 6106 | fi | 
|  | 6107 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6108 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6109 | IFS=$as_save_IFS | 
|  | 6110 |  | 
|  | 6111 | fi | 
|  | 6112 | fi | 
|  | 6113 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 6114 | if test -n "$ac_ct_RANLIB"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6115 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 
|  | 6116 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6117 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6118 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6119 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6120 | fi | 
|  | 6121 |  | 
|  | 6122 | if test "x$ac_ct_RANLIB" = x; then | 
|  | 6123 | RANLIB=":" | 
|  | 6124 | else | 
|  | 6125 | case $cross_compiling:$ac_tool_warned in | 
|  | 6126 | yes:) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6127 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
|  | 6128 | whose name does not start with the host triplet.  If you think this | 
|  | 6129 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
|  | 6130 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 
|  | 6131 | whose name does not start with the host triplet.  If you think this | 
|  | 6132 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6133 | ac_tool_warned=yes ;; | 
|  | 6134 | esac | 
|  | 6135 | RANLIB=$ac_ct_RANLIB | 
|  | 6136 | fi | 
|  | 6137 | else | 
|  | 6138 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 6139 | fi | 
|  | 6140 |  | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6141 | if test -n "$ac_tool_prefix"; then | 
|  | 6142 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | 
|  | 6143 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6144 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6145 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6146 | if test "${ac_cv_prog_AR+set}" = set; then | 
|  | 6147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6148 | else | 
|  | 6149 | if test -n "$AR"; then | 
|  | 6150 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|  | 6151 | else | 
|  | 6152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6153 | for as_dir in $PATH | 
|  | 6154 | do | 
|  | 6155 | IFS=$as_save_IFS | 
|  | 6156 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6157 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6158 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6159 | ac_cv_prog_AR="${ac_tool_prefix}ar" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6160 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6161 | break 2 | 
|  | 6162 | fi | 
|  | 6163 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6164 | done | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6165 | IFS=$as_save_IFS | 
|  | 6166 |  | 
|  | 6167 | fi | 
|  | 6168 | fi | 
|  | 6169 | AR=$ac_cv_prog_AR | 
|  | 6170 | if test -n "$AR"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6171 | { echo "$as_me:$LINENO: result: $AR" >&5 | 
|  | 6172 | echo "${ECHO_T}$AR" >&6; } | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6173 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6174 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6175 | echo "${ECHO_T}no" >&6; } | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6176 | fi | 
|  | 6177 |  | 
|  | 6178 |  | 
|  | 6179 | fi | 
|  | 6180 | if test -z "$ac_cv_prog_AR"; then | 
|  | 6181 | ac_ct_AR=$AR | 
|  | 6182 | # Extract the first word of "ar", so it can be a program name with args. | 
|  | 6183 | set dummy ar; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6184 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6185 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6186 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | 
|  | 6187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6188 | else | 
|  | 6189 | if test -n "$ac_ct_AR"; then | 
|  | 6190 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
|  | 6191 | else | 
|  | 6192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6193 | for as_dir in $PATH | 
|  | 6194 | do | 
|  | 6195 | IFS=$as_save_IFS | 
|  | 6196 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6197 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6198 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6199 | ac_cv_prog_ac_ct_AR="ar" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6200 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6201 | break 2 | 
|  | 6202 | fi | 
|  | 6203 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6204 | done | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6205 | IFS=$as_save_IFS | 
|  | 6206 |  | 
|  | 6207 | fi | 
|  | 6208 | fi | 
|  | 6209 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
|  | 6210 | if test -n "$ac_ct_AR"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6211 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | 
|  | 6212 | echo "${ECHO_T}$ac_ct_AR" >&6; } | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6213 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6214 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6215 | echo "${ECHO_T}no" >&6; } | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6216 | fi | 
|  | 6217 |  | 
|  | 6218 | if test "x$ac_ct_AR" = x; then | 
|  | 6219 | AR="false" | 
|  | 6220 | else | 
|  | 6221 | case $cross_compiling:$ac_tool_warned in | 
|  | 6222 | yes:) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6223 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
|  | 6224 | whose name does not start with the host triplet.  If you think this | 
|  | 6225 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
|  | 6226 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 
|  | 6227 | whose name does not start with the host triplet.  If you think this | 
|  | 6228 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6229 | ac_tool_warned=yes ;; | 
|  | 6230 | esac | 
|  | 6231 | AR=$ac_ct_AR | 
|  | 6232 | fi | 
|  | 6233 | else | 
|  | 6234 | AR="$ac_cv_prog_AR" | 
|  | 6235 | fi | 
|  | 6236 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6237 | # Extract the first word of "rm", so it can be a program name with args. | 
|  | 6238 | set dummy rm; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6239 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6240 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6241 | if test "${ac_cv_path_RM+set}" = set; then | 
|  | 6242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6243 | else | 
|  | 6244 | case $RM in | 
|  | 6245 | [\\/]* | ?:[\\/]*) | 
|  | 6246 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | 
|  | 6247 | ;; | 
|  | 6248 | *) | 
|  | 6249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6250 | for as_dir in $PATH | 
|  | 6251 | do | 
|  | 6252 | IFS=$as_save_IFS | 
|  | 6253 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6254 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6255 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6256 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6257 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6258 | break 2 | 
|  | 6259 | fi | 
|  | 6260 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6261 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6262 | IFS=$as_save_IFS | 
|  | 6263 |  | 
|  | 6264 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" | 
|  | 6265 | ;; | 
|  | 6266 | esac | 
|  | 6267 | fi | 
|  | 6268 | RM=$ac_cv_path_RM | 
|  | 6269 | if test -n "$RM"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6270 | { echo "$as_me:$LINENO: result: $RM" >&5 | 
|  | 6271 | echo "${ECHO_T}$RM" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6272 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6273 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6274 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6275 | fi | 
|  | 6276 |  | 
|  | 6277 |  | 
|  | 6278 | # Extract the first word of "sed", so it can be a program name with args. | 
|  | 6279 | set dummy sed; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6280 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6281 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6282 | if test "${ac_cv_path_SED+set}" = set; then | 
|  | 6283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6284 | else | 
|  | 6285 | case $SED in | 
|  | 6286 | [\\/]* | ?:[\\/]*) | 
|  | 6287 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | 
|  | 6288 | ;; | 
|  | 6289 | *) | 
|  | 6290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6291 | for as_dir in $PATH | 
|  | 6292 | do | 
|  | 6293 | IFS=$as_save_IFS | 
|  | 6294 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6295 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6296 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6297 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6298 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6299 | break 2 | 
|  | 6300 | fi | 
|  | 6301 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6302 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6303 | IFS=$as_save_IFS | 
|  | 6304 |  | 
|  | 6305 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" | 
|  | 6306 | ;; | 
|  | 6307 | esac | 
|  | 6308 | fi | 
|  | 6309 | SED=$ac_cv_path_SED | 
|  | 6310 | if test -n "$SED"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6311 | { echo "$as_me:$LINENO: result: $SED" >&5 | 
|  | 6312 | echo "${ECHO_T}$SED" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6313 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6314 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6315 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6316 | fi | 
|  | 6317 |  | 
|  | 6318 |  | 
|  | 6319 | # Extract the first word of "tar", so it can be a program name with args. | 
|  | 6320 | set dummy tar; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6321 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6322 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6323 | if test "${ac_cv_path_TAR+set}" = set; then | 
|  | 6324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6325 | else | 
|  | 6326 | case $TAR in | 
|  | 6327 | [\\/]* | ?:[\\/]*) | 
|  | 6328 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. | 
|  | 6329 | ;; | 
|  | 6330 | *) | 
|  | 6331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6332 | for as_dir in $PATH | 
|  | 6333 | do | 
|  | 6334 | IFS=$as_save_IFS | 
|  | 6335 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6336 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6337 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6338 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6339 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6340 | break 2 | 
|  | 6341 | fi | 
|  | 6342 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6343 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6344 | IFS=$as_save_IFS | 
|  | 6345 |  | 
|  | 6346 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" | 
|  | 6347 | ;; | 
|  | 6348 | esac | 
|  | 6349 | fi | 
|  | 6350 | TAR=$ac_cv_path_TAR | 
|  | 6351 | if test -n "$TAR"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6352 | { echo "$as_me:$LINENO: result: $TAR" >&5 | 
|  | 6353 | echo "${ECHO_T}$TAR" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6354 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6355 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6356 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6357 | fi | 
|  | 6358 |  | 
|  | 6359 |  | 
|  | 6360 | # Extract the first word of "pwd", so it can be a program name with args. | 
|  | 6361 | set dummy pwd; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6362 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6363 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6364 | if test "${ac_cv_path_BINPWD+set}" = set; then | 
|  | 6365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6366 | else | 
|  | 6367 | case $BINPWD in | 
|  | 6368 | [\\/]* | ?:[\\/]*) | 
|  | 6369 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. | 
|  | 6370 | ;; | 
|  | 6371 | *) | 
|  | 6372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6373 | for as_dir in $PATH | 
|  | 6374 | do | 
|  | 6375 | IFS=$as_save_IFS | 
|  | 6376 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6377 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6378 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6379 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6380 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6381 | break 2 | 
|  | 6382 | fi | 
|  | 6383 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6384 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6385 | IFS=$as_save_IFS | 
|  | 6386 |  | 
|  | 6387 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" | 
|  | 6388 | ;; | 
|  | 6389 | esac | 
|  | 6390 | fi | 
|  | 6391 | BINPWD=$ac_cv_path_BINPWD | 
|  | 6392 | if test -n "$BINPWD"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6393 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 | 
|  | 6394 | echo "${ECHO_T}$BINPWD" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6395 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6396 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6397 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6398 | fi | 
|  | 6399 |  | 
|  | 6400 |  | 
|  | 6401 |  | 
|  | 6402 | # Extract the first word of "Graphviz", so it can be a program name with args. | 
|  | 6403 | set dummy Graphviz; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6404 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6405 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6406 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then | 
|  | 6407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6408 | else | 
|  | 6409 | case $GRAPHVIZ in | 
|  | 6410 | [\\/]* | ?:[\\/]*) | 
|  | 6411 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. | 
|  | 6412 | ;; | 
|  | 6413 | *) | 
|  | 6414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6415 | for as_dir in $PATH | 
|  | 6416 | do | 
|  | 6417 | IFS=$as_save_IFS | 
|  | 6418 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6419 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6420 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6421 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6422 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6423 | break 2 | 
|  | 6424 | fi | 
|  | 6425 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6426 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6427 | IFS=$as_save_IFS | 
|  | 6428 |  | 
|  | 6429 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" | 
|  | 6430 | ;; | 
|  | 6431 | esac | 
|  | 6432 | fi | 
|  | 6433 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ | 
|  | 6434 | if test -n "$GRAPHVIZ"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6435 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 | 
|  | 6436 | echo "${ECHO_T}$GRAPHVIZ" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6437 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6438 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6439 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6440 | fi | 
|  | 6441 |  | 
|  | 6442 |  | 
|  | 6443 | if test "$GRAPHVIZ" != "echo Graphviz" ; then | 
|  | 6444 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6445 | cat >>confdefs.h <<\_ACEOF | 
|  | 6446 | #define HAVE_GRAPHVIZ 1 | 
|  | 6447 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6448 |  | 
| Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6449 | if test "$llvm_cv_os_type" = "MingW" ; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6450 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6451 | fi | 
|  | 6452 |  | 
|  | 6453 | cat >>confdefs.h <<_ACEOF | 
|  | 6454 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" | 
|  | 6455 | _ACEOF | 
|  | 6456 |  | 
|  | 6457 | fi | 
|  | 6458 | # Extract the first word of "dot", so it can be a program name with args. | 
|  | 6459 | set dummy dot; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6460 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6462 | if test "${ac_cv_path_DOT+set}" = set; then | 
|  | 6463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6464 | else | 
|  | 6465 | case $DOT in | 
|  | 6466 | [\\/]* | ?:[\\/]*) | 
|  | 6467 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. | 
|  | 6468 | ;; | 
|  | 6469 | *) | 
|  | 6470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6471 | for as_dir in $PATH | 
|  | 6472 | do | 
|  | 6473 | IFS=$as_save_IFS | 
|  | 6474 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6475 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6476 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6477 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6478 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6479 | break 2 | 
|  | 6480 | fi | 
|  | 6481 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6482 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6483 | IFS=$as_save_IFS | 
|  | 6484 |  | 
|  | 6485 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" | 
|  | 6486 | ;; | 
|  | 6487 | esac | 
|  | 6488 | fi | 
|  | 6489 | DOT=$ac_cv_path_DOT | 
|  | 6490 | if test -n "$DOT"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6491 | { echo "$as_me:$LINENO: result: $DOT" >&5 | 
|  | 6492 | echo "${ECHO_T}$DOT" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6493 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6494 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6495 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6496 | fi | 
|  | 6497 |  | 
|  | 6498 |  | 
|  | 6499 | if test "$DOT" != "echo dot" ; then | 
|  | 6500 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6501 | cat >>confdefs.h <<\_ACEOF | 
|  | 6502 | #define HAVE_DOT 1 | 
|  | 6503 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6504 |  | 
| Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6505 | if test "$llvm_cv_os_type" = "MingW" ; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6506 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6507 | fi | 
|  | 6508 |  | 
|  | 6509 | cat >>confdefs.h <<_ACEOF | 
|  | 6510 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" | 
|  | 6511 | _ACEOF | 
|  | 6512 |  | 
|  | 6513 | fi | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6514 | # Extract the first word of "fdp", so it can be a program name with args. | 
|  | 6515 | set dummy fdp; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6516 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6518 | if test "${ac_cv_path_FDP+set}" = set; then | 
|  | 6519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6520 | else | 
|  | 6521 | case $FDP in | 
|  | 6522 | [\\/]* | ?:[\\/]*) | 
|  | 6523 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. | 
|  | 6524 | ;; | 
|  | 6525 | *) | 
|  | 6526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6527 | for as_dir in $PATH | 
|  | 6528 | do | 
|  | 6529 | IFS=$as_save_IFS | 
|  | 6530 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6531 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6533 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6534 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6535 | break 2 | 
|  | 6536 | fi | 
|  | 6537 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6538 | done | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6539 | IFS=$as_save_IFS | 
|  | 6540 |  | 
|  | 6541 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" | 
|  | 6542 | ;; | 
|  | 6543 | esac | 
|  | 6544 | fi | 
|  | 6545 | FDP=$ac_cv_path_FDP | 
|  | 6546 | if test -n "$FDP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6547 | { echo "$as_me:$LINENO: result: $FDP" >&5 | 
|  | 6548 | echo "${ECHO_T}$FDP" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6549 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6550 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6551 | echo "${ECHO_T}no" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6552 | fi | 
|  | 6553 |  | 
|  | 6554 |  | 
|  | 6555 | if test "$FDP" != "echo fdp" ; then | 
|  | 6556 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6557 | cat >>confdefs.h <<\_ACEOF | 
|  | 6558 | #define HAVE_FDP 1 | 
|  | 6559 | _ACEOF | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6560 |  | 
|  | 6561 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 6562 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6563 | fi | 
|  | 6564 |  | 
|  | 6565 | cat >>confdefs.h <<_ACEOF | 
|  | 6566 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" | 
|  | 6567 | _ACEOF | 
|  | 6568 |  | 
|  | 6569 | fi | 
|  | 6570 | # Extract the first word of "neato", so it can be a program name with args. | 
|  | 6571 | set dummy neato; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6572 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6573 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6574 | if test "${ac_cv_path_NEATO+set}" = set; then | 
|  | 6575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6576 | else | 
|  | 6577 | case $NEATO in | 
|  | 6578 | [\\/]* | ?:[\\/]*) | 
|  | 6579 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. | 
|  | 6580 | ;; | 
|  | 6581 | *) | 
|  | 6582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6583 | for as_dir in $PATH | 
|  | 6584 | do | 
|  | 6585 | IFS=$as_save_IFS | 
|  | 6586 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6587 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6588 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6589 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6590 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6591 | break 2 | 
|  | 6592 | fi | 
|  | 6593 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6594 | done | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6595 | IFS=$as_save_IFS | 
|  | 6596 |  | 
|  | 6597 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" | 
|  | 6598 | ;; | 
|  | 6599 | esac | 
|  | 6600 | fi | 
|  | 6601 | NEATO=$ac_cv_path_NEATO | 
|  | 6602 | if test -n "$NEATO"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6603 | { echo "$as_me:$LINENO: result: $NEATO" >&5 | 
|  | 6604 | echo "${ECHO_T}$NEATO" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6605 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6606 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6607 | echo "${ECHO_T}no" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6608 | fi | 
|  | 6609 |  | 
|  | 6610 |  | 
|  | 6611 | if test "$NEATO" != "echo neato" ; then | 
|  | 6612 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6613 | cat >>confdefs.h <<\_ACEOF | 
|  | 6614 | #define HAVE_NEATO 1 | 
|  | 6615 | _ACEOF | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6616 |  | 
|  | 6617 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 6618 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6619 | fi | 
|  | 6620 |  | 
|  | 6621 | cat >>confdefs.h <<_ACEOF | 
|  | 6622 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" | 
|  | 6623 | _ACEOF | 
|  | 6624 |  | 
|  | 6625 | fi | 
|  | 6626 | # Extract the first word of "twopi", so it can be a program name with args. | 
|  | 6627 | set dummy twopi; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6628 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6629 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6630 | if test "${ac_cv_path_TWOPI+set}" = set; then | 
|  | 6631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6632 | else | 
|  | 6633 | case $TWOPI in | 
|  | 6634 | [\\/]* | ?:[\\/]*) | 
|  | 6635 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. | 
|  | 6636 | ;; | 
|  | 6637 | *) | 
|  | 6638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6639 | for as_dir in $PATH | 
|  | 6640 | do | 
|  | 6641 | IFS=$as_save_IFS | 
|  | 6642 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6643 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6645 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6646 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6647 | break 2 | 
|  | 6648 | fi | 
|  | 6649 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6650 | done | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6651 | IFS=$as_save_IFS | 
|  | 6652 |  | 
|  | 6653 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" | 
|  | 6654 | ;; | 
|  | 6655 | esac | 
|  | 6656 | fi | 
|  | 6657 | TWOPI=$ac_cv_path_TWOPI | 
|  | 6658 | if test -n "$TWOPI"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6659 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 | 
|  | 6660 | echo "${ECHO_T}$TWOPI" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6661 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6662 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6663 | echo "${ECHO_T}no" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6664 | fi | 
|  | 6665 |  | 
|  | 6666 |  | 
|  | 6667 | if test "$TWOPI" != "echo twopi" ; then | 
|  | 6668 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6669 | cat >>confdefs.h <<\_ACEOF | 
|  | 6670 | #define HAVE_TWOPI 1 | 
|  | 6671 | _ACEOF | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6672 |  | 
|  | 6673 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 6674 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6675 | fi | 
|  | 6676 |  | 
|  | 6677 | cat >>confdefs.h <<_ACEOF | 
|  | 6678 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" | 
|  | 6679 | _ACEOF | 
|  | 6680 |  | 
|  | 6681 | fi | 
|  | 6682 | # Extract the first word of "circo", so it can be a program name with args. | 
|  | 6683 | set dummy circo; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6684 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6685 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6686 | if test "${ac_cv_path_CIRCO+set}" = set; then | 
|  | 6687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6688 | else | 
|  | 6689 | case $CIRCO in | 
|  | 6690 | [\\/]* | ?:[\\/]*) | 
|  | 6691 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. | 
|  | 6692 | ;; | 
|  | 6693 | *) | 
|  | 6694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6695 | for as_dir in $PATH | 
|  | 6696 | do | 
|  | 6697 | IFS=$as_save_IFS | 
|  | 6698 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6699 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6700 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6701 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6702 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6703 | break 2 | 
|  | 6704 | fi | 
|  | 6705 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6706 | done | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6707 | IFS=$as_save_IFS | 
|  | 6708 |  | 
|  | 6709 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" | 
|  | 6710 | ;; | 
|  | 6711 | esac | 
|  | 6712 | fi | 
|  | 6713 | CIRCO=$ac_cv_path_CIRCO | 
|  | 6714 | if test -n "$CIRCO"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6715 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 | 
|  | 6716 | echo "${ECHO_T}$CIRCO" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6717 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6718 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6719 | echo "${ECHO_T}no" >&6; } | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6720 | fi | 
|  | 6721 |  | 
|  | 6722 |  | 
|  | 6723 | if test "$CIRCO" != "echo circo" ; then | 
|  | 6724 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6725 | cat >>confdefs.h <<\_ACEOF | 
|  | 6726 | #define HAVE_CIRCO 1 | 
|  | 6727 | _ACEOF | 
| David Greene | d93c40b6 | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6728 |  | 
|  | 6729 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 6730 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6731 | fi | 
|  | 6732 |  | 
|  | 6733 | cat >>confdefs.h <<_ACEOF | 
|  | 6734 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" | 
|  | 6735 | _ACEOF | 
|  | 6736 |  | 
|  | 6737 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6738 | for ac_prog in gv gsview32 | 
|  | 6739 | do | 
|  | 6740 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 6741 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6742 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6744 | if test "${ac_cv_path_GV+set}" = set; then | 
|  | 6745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6746 | else | 
|  | 6747 | case $GV in | 
|  | 6748 | [\\/]* | ?:[\\/]*) | 
|  | 6749 | ac_cv_path_GV="$GV" # Let the user override the test with a path. | 
|  | 6750 | ;; | 
|  | 6751 | *) | 
|  | 6752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6753 | for as_dir in $PATH | 
|  | 6754 | do | 
|  | 6755 | IFS=$as_save_IFS | 
|  | 6756 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6757 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6758 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6759 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6760 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6761 | break 2 | 
|  | 6762 | fi | 
|  | 6763 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6764 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6765 | IFS=$as_save_IFS | 
|  | 6766 |  | 
|  | 6767 | ;; | 
|  | 6768 | esac | 
|  | 6769 | fi | 
|  | 6770 | GV=$ac_cv_path_GV | 
|  | 6771 | if test -n "$GV"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6772 | { echo "$as_me:$LINENO: result: $GV" >&5 | 
|  | 6773 | echo "${ECHO_T}$GV" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6774 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6775 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6776 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6777 | fi | 
|  | 6778 |  | 
|  | 6779 |  | 
|  | 6780 | test -n "$GV" && break | 
|  | 6781 | done | 
|  | 6782 | test -n "$GV" || GV="echo gv" | 
|  | 6783 |  | 
|  | 6784 | if test "$GV" != "echo gv" ; then | 
|  | 6785 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6786 | cat >>confdefs.h <<\_ACEOF | 
|  | 6787 | #define HAVE_GV 1 | 
|  | 6788 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6789 |  | 
| Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6790 | if test "$llvm_cv_os_type" = "MingW" ; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6791 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6792 | fi | 
|  | 6793 |  | 
|  | 6794 | cat >>confdefs.h <<_ACEOF | 
|  | 6795 | #define LLVM_PATH_GV "$GV${EXEEXT}" | 
|  | 6796 | _ACEOF | 
|  | 6797 |  | 
|  | 6798 | fi | 
|  | 6799 | # Extract the first word of "dotty", so it can be a program name with args. | 
|  | 6800 | set dummy dotty; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6801 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6802 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6803 | if test "${ac_cv_path_DOTTY+set}" = set; then | 
|  | 6804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6805 | else | 
|  | 6806 | case $DOTTY in | 
|  | 6807 | [\\/]* | ?:[\\/]*) | 
|  | 6808 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. | 
|  | 6809 | ;; | 
|  | 6810 | *) | 
|  | 6811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6812 | for as_dir in $PATH | 
|  | 6813 | do | 
|  | 6814 | IFS=$as_save_IFS | 
|  | 6815 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6816 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6817 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6818 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6819 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6820 | break 2 | 
|  | 6821 | fi | 
|  | 6822 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6823 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6824 | IFS=$as_save_IFS | 
|  | 6825 |  | 
|  | 6826 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" | 
|  | 6827 | ;; | 
|  | 6828 | esac | 
|  | 6829 | fi | 
|  | 6830 | DOTTY=$ac_cv_path_DOTTY | 
|  | 6831 | if test -n "$DOTTY"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6832 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 | 
|  | 6833 | echo "${ECHO_T}$DOTTY" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6834 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6835 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6836 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6837 | fi | 
|  | 6838 |  | 
|  | 6839 |  | 
|  | 6840 | if test "$DOTTY" != "echo dotty" ; then | 
|  | 6841 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6842 | cat >>confdefs.h <<\_ACEOF | 
|  | 6843 | #define HAVE_DOTTY 1 | 
|  | 6844 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6845 |  | 
| Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6846 | if test "$llvm_cv_os_type" = "MingW" ; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6847 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6848 | fi | 
|  | 6849 |  | 
|  | 6850 | cat >>confdefs.h <<_ACEOF | 
|  | 6851 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" | 
|  | 6852 | _ACEOF | 
|  | 6853 |  | 
|  | 6854 | fi | 
| Dan Gohman | a0da889 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 6855 | # Extract the first word of "xdot.py", so it can be a program name with args. | 
|  | 6856 | set dummy xdot.py; ac_word=$2 | 
|  | 6857 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6858 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 6859 | if test "${ac_cv_path_XDOT_PY+set}" = set; then | 
|  | 6860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6861 | else | 
|  | 6862 | case $XDOT_PY in | 
|  | 6863 | [\\/]* | ?:[\\/]*) | 
|  | 6864 | ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. | 
|  | 6865 | ;; | 
|  | 6866 | *) | 
|  | 6867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6868 | for as_dir in $PATH | 
|  | 6869 | do | 
|  | 6870 | IFS=$as_save_IFS | 
|  | 6871 | test -z "$as_dir" && as_dir=. | 
|  | 6872 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6873 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 6874 | ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" | 
|  | 6875 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6876 | break 2 | 
|  | 6877 | fi | 
|  | 6878 | done | 
|  | 6879 | done | 
|  | 6880 | IFS=$as_save_IFS | 
|  | 6881 |  | 
|  | 6882 | test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" | 
|  | 6883 | ;; | 
|  | 6884 | esac | 
|  | 6885 | fi | 
|  | 6886 | XDOT_PY=$ac_cv_path_XDOT_PY | 
|  | 6887 | if test -n "$XDOT_PY"; then | 
|  | 6888 | { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 | 
|  | 6889 | echo "${ECHO_T}$XDOT_PY" >&6; } | 
|  | 6890 | else | 
|  | 6891 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6892 | echo "${ECHO_T}no" >&6; } | 
|  | 6893 | fi | 
|  | 6894 |  | 
|  | 6895 |  | 
|  | 6896 | if test "$XDOT_PY" != "echo xdot.py" ; then | 
|  | 6897 |  | 
|  | 6898 | cat >>confdefs.h <<\_ACEOF | 
|  | 6899 | #define HAVE_XDOT_PY 1 | 
|  | 6900 | _ACEOF | 
|  | 6901 |  | 
|  | 6902 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 6903 | XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
|  | 6904 | fi | 
|  | 6905 |  | 
|  | 6906 | cat >>confdefs.h <<_ACEOF | 
|  | 6907 | #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" | 
|  | 6908 | _ACEOF | 
|  | 6909 |  | 
|  | 6910 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6911 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6912 | # Find a good install program.  We prefer a C program (faster), | 
|  | 6913 | # so one script is as good as another.  But avoid the broken or | 
|  | 6914 | # incompatible versions: | 
|  | 6915 | # SysV /etc/install, /usr/sbin/install | 
|  | 6916 | # SunOS /usr/etc/install | 
|  | 6917 | # IRIX /sbin/install | 
|  | 6918 | # AIX /bin/install | 
|  | 6919 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
|  | 6920 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|  | 6921 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|  | 6922 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|  | 6923 | # OS/2's system install, which has a completely different semantic | 
|  | 6924 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6925 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | 
|  | 6926 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6927 | if test -z "$INSTALL"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6928 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 6929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6930 | else | 
|  | 6931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6932 | for as_dir in $PATH | 
|  | 6933 | do | 
|  | 6934 | IFS=$as_save_IFS | 
|  | 6935 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6936 | # Account for people who put trailing slashes in PATH elements. | 
|  | 6937 | case $as_dir/ in | 
|  | 6938 | ./ | .// | /cC/* | \ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6939 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6940 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6941 | /usr/ucb/* ) ;; | 
|  | 6942 | *) | 
|  | 6943 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|  | 6944 | # Don't use installbsd from OSF since it installs stuff as root | 
|  | 6945 | # by default. | 
|  | 6946 | for ac_prog in ginstall scoinst install; do | 
|  | 6947 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6948 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6949 | if test $ac_prog = install && | 
|  | 6950 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 6951 | # AIX install.  It has an incompatible calling convention. | 
|  | 6952 | : | 
|  | 6953 | elif test $ac_prog = install && | 
|  | 6954 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 6955 | # program-specific install script used by HP pwplus--don't use. | 
|  | 6956 | : | 
|  | 6957 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6958 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
|  | 6959 | break 3 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6960 | fi | 
|  | 6961 | fi | 
|  | 6962 | done | 
|  | 6963 | done | 
|  | 6964 | ;; | 
|  | 6965 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6966 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6967 | IFS=$as_save_IFS | 
|  | 6968 |  | 
|  | 6969 |  | 
|  | 6970 | fi | 
|  | 6971 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 6972 | INSTALL=$ac_cv_path_install | 
|  | 6973 | else | 
|  | 6974 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 6975 | # value for INSTALL within a source directory, because that will | 
|  | 6976 | # break other packages using the cache if that directory is | 
|  | 6977 | # removed, or if the value is a relative name. | 
|  | 6978 | INSTALL=$ac_install_sh | 
|  | 6979 | fi | 
|  | 6980 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6981 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | 
|  | 6982 | echo "${ECHO_T}$INSTALL" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6983 |  | 
|  | 6984 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|  | 6985 | # It thinks the first close brace ends the variable substitution. | 
|  | 6986 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|  | 6987 |  | 
|  | 6988 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
|  | 6989 |  | 
|  | 6990 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|  | 6991 |  | 
| Eric Christopher | e3befc7 | 2010-07-22 21:13:48 +0000 | [diff] [blame] | 6992 | case "$INSTALL" in | 
|  | 6993 | [\\/$]* | ?:[\\/]* ) ;; | 
|  | 6994 | *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; | 
|  | 6995 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6996 |  | 
|  | 6997 | # Extract the first word of "bzip2", so it can be a program name with args. | 
|  | 6998 | set dummy bzip2; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6999 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7000 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7001 | if test "${ac_cv_path_BZIP2+set}" = set; then | 
|  | 7002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7003 | else | 
|  | 7004 | case $BZIP2 in | 
|  | 7005 | [\\/]* | ?:[\\/]*) | 
|  | 7006 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. | 
|  | 7007 | ;; | 
|  | 7008 | *) | 
|  | 7009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7010 | for as_dir in $PATH | 
|  | 7011 | do | 
|  | 7012 | IFS=$as_save_IFS | 
|  | 7013 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7014 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7015 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7016 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7017 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7018 | break 2 | 
|  | 7019 | fi | 
|  | 7020 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7021 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7022 | IFS=$as_save_IFS | 
|  | 7023 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7024 | ;; | 
|  | 7025 | esac | 
|  | 7026 | fi | 
|  | 7027 | BZIP2=$ac_cv_path_BZIP2 | 
|  | 7028 | if test -n "$BZIP2"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7029 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 | 
|  | 7030 | echo "${ECHO_T}$BZIP2" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7031 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7032 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7033 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7034 | fi | 
|  | 7035 |  | 
|  | 7036 |  | 
| mike-m | e08af30 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 7037 | # Extract the first word of "cat", so it can be a program name with args. | 
|  | 7038 | set dummy cat; ac_word=$2 | 
|  | 7039 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7040 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7041 | if test "${ac_cv_path_CAT+set}" = set; then | 
|  | 7042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7043 | else | 
|  | 7044 | case $CAT in | 
|  | 7045 | [\\/]* | ?:[\\/]*) | 
|  | 7046 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | 
|  | 7047 | ;; | 
|  | 7048 | *) | 
|  | 7049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7050 | for as_dir in $PATH | 
|  | 7051 | do | 
|  | 7052 | IFS=$as_save_IFS | 
|  | 7053 | test -z "$as_dir" && as_dir=. | 
|  | 7054 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7055 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 7056 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | 
|  | 7057 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 7058 | break 2 | 
|  | 7059 | fi | 
|  | 7060 | done | 
|  | 7061 | done | 
|  | 7062 | IFS=$as_save_IFS | 
|  | 7063 |  | 
|  | 7064 | ;; | 
|  | 7065 | esac | 
|  | 7066 | fi | 
|  | 7067 | CAT=$ac_cv_path_CAT | 
|  | 7068 | if test -n "$CAT"; then | 
|  | 7069 | { echo "$as_me:$LINENO: result: $CAT" >&5 | 
|  | 7070 | echo "${ECHO_T}$CAT" >&6; } | 
|  | 7071 | else | 
|  | 7072 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7073 | echo "${ECHO_T}no" >&6; } | 
|  | 7074 | fi | 
|  | 7075 |  | 
|  | 7076 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7077 | # Extract the first word of "doxygen", so it can be a program name with args. | 
|  | 7078 | set dummy doxygen; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7079 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7081 | if test "${ac_cv_path_DOXYGEN+set}" = set; then | 
|  | 7082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7083 | else | 
|  | 7084 | case $DOXYGEN in | 
|  | 7085 | [\\/]* | ?:[\\/]*) | 
|  | 7086 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. | 
|  | 7087 | ;; | 
|  | 7088 | *) | 
|  | 7089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7090 | for as_dir in $PATH | 
|  | 7091 | do | 
|  | 7092 | IFS=$as_save_IFS | 
|  | 7093 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7094 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7095 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7096 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7097 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7098 | break 2 | 
|  | 7099 | fi | 
|  | 7100 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7101 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7102 | IFS=$as_save_IFS | 
|  | 7103 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7104 | ;; | 
|  | 7105 | esac | 
|  | 7106 | fi | 
|  | 7107 | DOXYGEN=$ac_cv_path_DOXYGEN | 
|  | 7108 | if test -n "$DOXYGEN"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7109 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 | 
|  | 7110 | echo "${ECHO_T}$DOXYGEN" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7111 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7112 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7113 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7114 | fi | 
|  | 7115 |  | 
|  | 7116 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7117 | # Extract the first word of "groff", so it can be a program name with args. | 
|  | 7118 | set dummy groff; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7119 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7120 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7121 | if test "${ac_cv_path_GROFF+set}" = set; then | 
|  | 7122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7123 | else | 
|  | 7124 | case $GROFF in | 
|  | 7125 | [\\/]* | ?:[\\/]*) | 
|  | 7126 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. | 
|  | 7127 | ;; | 
|  | 7128 | *) | 
|  | 7129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7130 | for as_dir in $PATH | 
|  | 7131 | do | 
|  | 7132 | IFS=$as_save_IFS | 
|  | 7133 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7134 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7135 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7136 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7137 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7138 | break 2 | 
|  | 7139 | fi | 
|  | 7140 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7141 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7142 | IFS=$as_save_IFS | 
|  | 7143 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7144 | ;; | 
|  | 7145 | esac | 
|  | 7146 | fi | 
|  | 7147 | GROFF=$ac_cv_path_GROFF | 
|  | 7148 | if test -n "$GROFF"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7149 | { echo "$as_me:$LINENO: result: $GROFF" >&5 | 
|  | 7150 | echo "${ECHO_T}$GROFF" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7151 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7152 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7153 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7154 | fi | 
|  | 7155 |  | 
|  | 7156 |  | 
|  | 7157 | # Extract the first word of "gzip", so it can be a program name with args. | 
|  | 7158 | set dummy gzip; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7159 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7160 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7161 | if test "${ac_cv_path_GZIPBIN+set}" = set; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7163 | else | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7164 | case $GZIPBIN in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7165 | [\\/]* | ?:[\\/]*) | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7166 | ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7167 | ;; | 
|  | 7168 | *) | 
|  | 7169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7170 | for as_dir in $PATH | 
|  | 7171 | do | 
|  | 7172 | IFS=$as_save_IFS | 
|  | 7173 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7174 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7175 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7176 | ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7177 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7178 | break 2 | 
|  | 7179 | fi | 
|  | 7180 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7181 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7182 | IFS=$as_save_IFS | 
|  | 7183 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7184 | ;; | 
|  | 7185 | esac | 
|  | 7186 | fi | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7187 | GZIPBIN=$ac_cv_path_GZIPBIN | 
|  | 7188 | if test -n "$GZIPBIN"; then | 
|  | 7189 | { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 | 
|  | 7190 | echo "${ECHO_T}$GZIPBIN" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7191 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7192 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7193 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7194 | fi | 
|  | 7195 |  | 
|  | 7196 |  | 
|  | 7197 | # Extract the first word of "pod2html", so it can be a program name with args. | 
|  | 7198 | set dummy pod2html; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7199 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7200 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7201 | if test "${ac_cv_path_POD2HTML+set}" = set; then | 
|  | 7202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7203 | else | 
|  | 7204 | case $POD2HTML in | 
|  | 7205 | [\\/]* | ?:[\\/]*) | 
|  | 7206 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. | 
|  | 7207 | ;; | 
|  | 7208 | *) | 
|  | 7209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7210 | for as_dir in $PATH | 
|  | 7211 | do | 
|  | 7212 | IFS=$as_save_IFS | 
|  | 7213 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7214 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7215 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7216 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7217 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7218 | break 2 | 
|  | 7219 | fi | 
|  | 7220 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7221 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7222 | IFS=$as_save_IFS | 
|  | 7223 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7224 | ;; | 
|  | 7225 | esac | 
|  | 7226 | fi | 
|  | 7227 | POD2HTML=$ac_cv_path_POD2HTML | 
|  | 7228 | if test -n "$POD2HTML"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7229 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 | 
|  | 7230 | echo "${ECHO_T}$POD2HTML" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7231 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7232 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7233 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7234 | fi | 
|  | 7235 |  | 
|  | 7236 |  | 
|  | 7237 | # Extract the first word of "pod2man", so it can be a program name with args. | 
|  | 7238 | set dummy pod2man; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7239 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7240 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7241 | if test "${ac_cv_path_POD2MAN+set}" = set; then | 
|  | 7242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7243 | else | 
|  | 7244 | case $POD2MAN in | 
|  | 7245 | [\\/]* | ?:[\\/]*) | 
|  | 7246 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. | 
|  | 7247 | ;; | 
|  | 7248 | *) | 
|  | 7249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7250 | for as_dir in $PATH | 
|  | 7251 | do | 
|  | 7252 | IFS=$as_save_IFS | 
|  | 7253 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7254 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7255 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7256 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7257 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7258 | break 2 | 
|  | 7259 | fi | 
|  | 7260 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7261 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7262 | IFS=$as_save_IFS | 
|  | 7263 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7264 | ;; | 
|  | 7265 | esac | 
|  | 7266 | fi | 
|  | 7267 | POD2MAN=$ac_cv_path_POD2MAN | 
|  | 7268 | if test -n "$POD2MAN"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7269 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 | 
|  | 7270 | echo "${ECHO_T}$POD2MAN" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7271 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7272 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7273 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7274 | fi | 
|  | 7275 |  | 
|  | 7276 |  | 
| mike-m | e08af30 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 7277 | # Extract the first word of "pdfroff", so it can be a program name with args. | 
|  | 7278 | set dummy pdfroff; ac_word=$2 | 
|  | 7279 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7280 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7281 | if test "${ac_cv_path_PDFROFF+set}" = set; then | 
|  | 7282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7283 | else | 
|  | 7284 | case $PDFROFF in | 
|  | 7285 | [\\/]* | ?:[\\/]*) | 
|  | 7286 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. | 
|  | 7287 | ;; | 
|  | 7288 | *) | 
|  | 7289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7290 | for as_dir in $PATH | 
|  | 7291 | do | 
|  | 7292 | IFS=$as_save_IFS | 
|  | 7293 | test -z "$as_dir" && as_dir=. | 
|  | 7294 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7295 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 7296 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" | 
|  | 7297 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 7298 | break 2 | 
|  | 7299 | fi | 
|  | 7300 | done | 
|  | 7301 | done | 
|  | 7302 | IFS=$as_save_IFS | 
|  | 7303 |  | 
|  | 7304 | ;; | 
|  | 7305 | esac | 
|  | 7306 | fi | 
|  | 7307 | PDFROFF=$ac_cv_path_PDFROFF | 
|  | 7308 | if test -n "$PDFROFF"; then | 
|  | 7309 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 | 
|  | 7310 | echo "${ECHO_T}$PDFROFF" >&6; } | 
|  | 7311 | else | 
|  | 7312 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7313 | echo "${ECHO_T}no" >&6; } | 
|  | 7314 | fi | 
|  | 7315 |  | 
|  | 7316 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7317 | # Extract the first word of "runtest", so it can be a program name with args. | 
|  | 7318 | set dummy runtest; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7319 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7320 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7321 | if test "${ac_cv_path_RUNTEST+set}" = set; then | 
|  | 7322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7323 | else | 
|  | 7324 | case $RUNTEST in | 
|  | 7325 | [\\/]* | ?:[\\/]*) | 
|  | 7326 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. | 
|  | 7327 | ;; | 
|  | 7328 | *) | 
|  | 7329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7330 | for as_dir in $PATH | 
|  | 7331 | do | 
|  | 7332 | IFS=$as_save_IFS | 
|  | 7333 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7334 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7335 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7336 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7337 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7338 | break 2 | 
|  | 7339 | fi | 
|  | 7340 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7341 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7342 | IFS=$as_save_IFS | 
|  | 7343 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7344 | ;; | 
|  | 7345 | esac | 
|  | 7346 | fi | 
|  | 7347 | RUNTEST=$ac_cv_path_RUNTEST | 
|  | 7348 | if test -n "$RUNTEST"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7349 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 | 
|  | 7350 | echo "${ECHO_T}$RUNTEST" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7351 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7352 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7353 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7354 | fi | 
|  | 7355 |  | 
|  | 7356 |  | 
|  | 7357 |  | 
|  | 7358 | no_itcl=true | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7359 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 | 
|  | 7360 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7361 |  | 
|  | 7362 | # Check whether --with-tclinclude was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7363 | if test "${with_tclinclude+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7364 | withval=$with_tclinclude; with_tclinclude=${withval} | 
|  | 7365 | else | 
|  | 7366 | with_tclinclude='' | 
|  | 7367 | fi | 
|  | 7368 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7369 | if test "${ac_cv_path_tclsh+set}" = set; then | 
|  | 7370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7371 | else | 
|  | 7372 |  | 
|  | 7373 | if test x"${with_tclinclude}" != x ; then | 
|  | 7374 | if test -f ${with_tclinclude}/tclsh ; then | 
|  | 7375 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` | 
|  | 7376 | elif test -f ${with_tclinclude}/src/tclsh ; then | 
|  | 7377 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` | 
|  | 7378 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7379 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 | 
|  | 7380 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} | 
|  | 7381 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7382 | fi | 
|  | 7383 | fi | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7384 | fi | 
|  | 7385 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7386 |  | 
|  | 7387 | if test x"${ac_cv_path_tclsh}" = x ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7388 | { echo "$as_me:$LINENO: result: none" >&5 | 
|  | 7389 | echo "${ECHO_T}none" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7390 | 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 | 
|  | 7391 | do | 
|  | 7392 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 7393 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7394 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7395 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7396 | if test "${ac_cv_path_TCLSH+set}" = set; then | 
|  | 7397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7398 | else | 
|  | 7399 | case $TCLSH in | 
|  | 7400 | [\\/]* | ?:[\\/]*) | 
|  | 7401 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. | 
|  | 7402 | ;; | 
|  | 7403 | *) | 
|  | 7404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7405 | for as_dir in $PATH | 
|  | 7406 | do | 
|  | 7407 | IFS=$as_save_IFS | 
|  | 7408 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7409 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7410 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7411 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7412 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7413 | break 2 | 
|  | 7414 | fi | 
|  | 7415 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7416 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7417 | IFS=$as_save_IFS | 
|  | 7418 |  | 
|  | 7419 | ;; | 
|  | 7420 | esac | 
|  | 7421 | fi | 
|  | 7422 | TCLSH=$ac_cv_path_TCLSH | 
|  | 7423 | if test -n "$TCLSH"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7424 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 | 
|  | 7425 | echo "${ECHO_T}$TCLSH" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7426 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7427 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7428 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7429 | fi | 
|  | 7430 |  | 
|  | 7431 |  | 
|  | 7432 | test -n "$TCLSH" && break | 
|  | 7433 | done | 
|  | 7434 |  | 
|  | 7435 | if test x"${TCLSH}" = x ; then | 
|  | 7436 | ac_cv_path_tclsh=''; | 
|  | 7437 | else | 
|  | 7438 | ac_cv_path_tclsh="${TCLSH}"; | 
|  | 7439 | fi | 
|  | 7440 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7441 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 | 
|  | 7442 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7443 | TCLSH="${ac_cv_path_tclsh}" | 
|  | 7444 |  | 
|  | 7445 | fi | 
|  | 7446 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7447 | # Extract the first word of "zip", so it can be a program name with args. | 
|  | 7448 | set dummy zip; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7449 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7450 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7451 | if test "${ac_cv_path_ZIP+set}" = set; then | 
|  | 7452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7453 | else | 
|  | 7454 | case $ZIP in | 
|  | 7455 | [\\/]* | ?:[\\/]*) | 
|  | 7456 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. | 
|  | 7457 | ;; | 
|  | 7458 | *) | 
|  | 7459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7460 | for as_dir in $PATH | 
|  | 7461 | do | 
|  | 7462 | IFS=$as_save_IFS | 
|  | 7463 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7464 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7465 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7466 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7467 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7468 | break 2 | 
|  | 7469 | fi | 
|  | 7470 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7471 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7472 | IFS=$as_save_IFS | 
|  | 7473 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7474 | ;; | 
|  | 7475 | esac | 
|  | 7476 | fi | 
|  | 7477 | ZIP=$ac_cv_path_ZIP | 
|  | 7478 | if test -n "$ZIP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7479 | { echo "$as_me:$LINENO: result: $ZIP" >&5 | 
|  | 7480 | echo "${ECHO_T}$ZIP" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7481 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7482 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7483 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7484 | fi | 
|  | 7485 |  | 
|  | 7486 |  | 
| Gordon Henriksen | 9b601a4 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7487 | for ac_prog in ocamlc | 
| Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7488 | do | 
|  | 7489 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 7490 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7491 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7492 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7493 | if test "${ac_cv_path_OCAMLC+set}" = set; then | 
|  | 7494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7495 | else | 
|  | 7496 | case $OCAMLC in | 
|  | 7497 | [\\/]* | ?:[\\/]*) | 
|  | 7498 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. | 
|  | 7499 | ;; | 
|  | 7500 | *) | 
|  | 7501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7502 | for as_dir in $PATH | 
|  | 7503 | do | 
|  | 7504 | IFS=$as_save_IFS | 
|  | 7505 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7506 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7507 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7508 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7509 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7510 | break 2 | 
|  | 7511 | fi | 
|  | 7512 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7513 | done | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7514 | IFS=$as_save_IFS | 
|  | 7515 |  | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7516 | ;; | 
|  | 7517 | esac | 
|  | 7518 | fi | 
|  | 7519 | OCAMLC=$ac_cv_path_OCAMLC | 
|  | 7520 | if test -n "$OCAMLC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7521 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 | 
|  | 7522 | echo "${ECHO_T}$OCAMLC" >&6; } | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7523 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7524 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7525 | echo "${ECHO_T}no" >&6; } | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7526 | fi | 
|  | 7527 |  | 
|  | 7528 |  | 
| Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7529 | test -n "$OCAMLC" && break | 
|  | 7530 | done | 
|  | 7531 |  | 
| Gordon Henriksen | 9b601a4 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7532 | for ac_prog in ocamlopt | 
| Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7533 | do | 
|  | 7534 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 7535 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7536 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7538 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then | 
|  | 7539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7540 | else | 
|  | 7541 | case $OCAMLOPT in | 
|  | 7542 | [\\/]* | ?:[\\/]*) | 
|  | 7543 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. | 
|  | 7544 | ;; | 
|  | 7545 | *) | 
|  | 7546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7547 | for as_dir in $PATH | 
|  | 7548 | do | 
|  | 7549 | IFS=$as_save_IFS | 
|  | 7550 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7551 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7552 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7553 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7554 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7555 | break 2 | 
|  | 7556 | fi | 
|  | 7557 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7558 | done | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7559 | IFS=$as_save_IFS | 
|  | 7560 |  | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7561 | ;; | 
|  | 7562 | esac | 
|  | 7563 | fi | 
|  | 7564 | OCAMLOPT=$ac_cv_path_OCAMLOPT | 
|  | 7565 | if test -n "$OCAMLOPT"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7566 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 | 
|  | 7567 | echo "${ECHO_T}$OCAMLOPT" >&6; } | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7568 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7569 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7570 | echo "${ECHO_T}no" >&6; } | 
| Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7571 | fi | 
|  | 7572 |  | 
|  | 7573 |  | 
| Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7574 | test -n "$OCAMLOPT" && break | 
|  | 7575 | done | 
|  | 7576 |  | 
| Gordon Henriksen | 9b601a4 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7577 | for ac_prog in ocamldep | 
| Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7578 | do | 
|  | 7579 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 7580 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7581 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7582 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7583 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then | 
|  | 7584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7585 | else | 
|  | 7586 | case $OCAMLDEP in | 
|  | 7587 | [\\/]* | ?:[\\/]*) | 
|  | 7588 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. | 
|  | 7589 | ;; | 
|  | 7590 | *) | 
|  | 7591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7592 | for as_dir in $PATH | 
|  | 7593 | do | 
|  | 7594 | IFS=$as_save_IFS | 
|  | 7595 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7596 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7597 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7598 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7599 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7600 | break 2 | 
|  | 7601 | fi | 
|  | 7602 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7603 | done | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7604 | IFS=$as_save_IFS | 
|  | 7605 |  | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7606 | ;; | 
|  | 7607 | esac | 
|  | 7608 | fi | 
|  | 7609 | OCAMLDEP=$ac_cv_path_OCAMLDEP | 
|  | 7610 | if test -n "$OCAMLDEP"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7611 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 | 
|  | 7612 | echo "${ECHO_T}$OCAMLDEP" >&6; } | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7613 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7614 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7615 | echo "${ECHO_T}no" >&6; } | 
| Gordon Henriksen | d1e1645 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7616 | fi | 
|  | 7617 |  | 
|  | 7618 |  | 
| Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7619 | test -n "$OCAMLDEP" && break | 
|  | 7620 | done | 
|  | 7621 |  | 
| Gordon Henriksen | 9b601a4 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7622 | for ac_prog in ocamldoc | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7623 | do | 
|  | 7624 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 7625 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7626 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7628 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then | 
|  | 7629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7630 | else | 
|  | 7631 | case $OCAMLDOC in | 
|  | 7632 | [\\/]* | ?:[\\/]*) | 
|  | 7633 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. | 
|  | 7634 | ;; | 
|  | 7635 | *) | 
|  | 7636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7637 | for as_dir in $PATH | 
|  | 7638 | do | 
|  | 7639 | IFS=$as_save_IFS | 
|  | 7640 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7641 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7642 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7643 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7644 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7645 | break 2 | 
|  | 7646 | fi | 
|  | 7647 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7648 | done | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7649 | IFS=$as_save_IFS | 
|  | 7650 |  | 
|  | 7651 | ;; | 
|  | 7652 | esac | 
|  | 7653 | fi | 
|  | 7654 | OCAMLDOC=$ac_cv_path_OCAMLDOC | 
|  | 7655 | if test -n "$OCAMLDOC"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7656 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 | 
|  | 7657 | echo "${ECHO_T}$OCAMLDOC" >&6; } | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7658 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7659 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7660 | echo "${ECHO_T}no" >&6; } | 
| Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7661 | fi | 
|  | 7662 |  | 
|  | 7663 |  | 
|  | 7664 | test -n "$OCAMLDOC" && break | 
|  | 7665 | done | 
|  | 7666 |  | 
| Torok Edwin | 822dcee | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7667 | for ac_prog in gas as | 
|  | 7668 | do | 
|  | 7669 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 7670 | set dummy $ac_prog; ac_word=$2 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7671 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 7672 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
|  | 7673 | if test "${ac_cv_path_GAS+set}" = set; then | 
|  | 7674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Torok Edwin | 822dcee | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7675 | else | 
|  | 7676 | case $GAS in | 
|  | 7677 | [\\/]* | ?:[\\/]*) | 
|  | 7678 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. | 
|  | 7679 | ;; | 
|  | 7680 | *) | 
|  | 7681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7682 | for as_dir in $PATH | 
|  | 7683 | do | 
|  | 7684 | IFS=$as_save_IFS | 
|  | 7685 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7686 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7687 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Torok Edwin | 822dcee | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7688 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7689 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Torok Edwin | 822dcee | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7690 | break 2 | 
|  | 7691 | fi | 
|  | 7692 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7693 | done | 
| Torok Edwin | 822dcee | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7694 | IFS=$as_save_IFS | 
|  | 7695 |  | 
|  | 7696 | ;; | 
|  | 7697 | esac | 
|  | 7698 | fi | 
|  | 7699 | GAS=$ac_cv_path_GAS | 
|  | 7700 | if test -n "$GAS"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7701 | { echo "$as_me:$LINENO: result: $GAS" >&5 | 
|  | 7702 | echo "${ECHO_T}$GAS" >&6; } | 
| Torok Edwin | 822dcee | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7703 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7704 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 7705 | echo "${ECHO_T}no" >&6; } | 
| Torok Edwin | 822dcee | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7706 | fi | 
|  | 7707 |  | 
|  | 7708 |  | 
|  | 7709 | test -n "$GAS" && break | 
|  | 7710 | done | 
|  | 7711 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7712 |  | 
| Daniel Dunbar | b524afb | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 7713 | { echo "$as_me:$LINENO: checking for linker version" >&5 | 
|  | 7714 | echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } | 
|  | 7715 | if test "${llvm_cv_link_version+set}" = set; then | 
|  | 7716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7717 | else | 
|  | 7718 |  | 
|  | 7719 | version_string="$(ld -v 2>&1 | head -1)" | 
|  | 7720 |  | 
|  | 7721 | # Check for ld64. | 
|  | 7722 | if (echo "$version_string" | grep -q "ld64"); then | 
| Charles Davis | e56294d | 2012-02-28 02:55:41 +0000 | [diff] [blame] | 7723 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") | 
| Daniel Dunbar | b524afb | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 7724 | else | 
|  | 7725 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") | 
|  | 7726 | fi | 
|  | 7727 |  | 
|  | 7728 | fi | 
|  | 7729 | { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 | 
|  | 7730 | echo "${ECHO_T}$llvm_cv_link_version" >&6; } | 
|  | 7731 |  | 
|  | 7732 | cat >>confdefs.h <<_ACEOF | 
|  | 7733 | #define HOST_LINK_VERSION "$llvm_cv_link_version" | 
|  | 7734 | _ACEOF | 
|  | 7735 |  | 
|  | 7736 |  | 
|  | 7737 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7738 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 | 
|  | 7739 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } | 
|  | 7740 | if test "${llvm_cv_link_use_r+set}" = set; then | 
|  | 7741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7742 | else | 
|  | 7743 | ac_ext=c | 
|  | 7744 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7745 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7746 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7747 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7748 |  | 
|  | 7749 | oldcflags="$CFLAGS" | 
|  | 7750 | CFLAGS="$CFLAGS -Wl,-R." | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7751 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7752 | /* confdefs.h.  */ | 
|  | 7753 | _ACEOF | 
|  | 7754 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7755 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7756 | /* end confdefs.h.  */ | 
|  | 7757 |  | 
|  | 7758 | int | 
|  | 7759 | main () | 
|  | 7760 | { | 
| Dan Gohman | a1c9404 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7761 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7762 | ; | 
|  | 7763 | return 0; | 
|  | 7764 | } | 
|  | 7765 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7766 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7767 | if { (ac_try="$ac_link" | 
|  | 7768 | case "(($ac_try" in | 
|  | 7769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7770 | *) ac_try_echo=$ac_try;; | 
|  | 7771 | esac | 
|  | 7772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7773 | (eval "$ac_link") 2>conftest.er1 | 
|  | 7774 | ac_status=$? | 
|  | 7775 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 7776 | rm -f conftest.er1 | 
|  | 7777 | cat conftest.err >&5 | 
|  | 7778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7779 | (exit $ac_status); } && | 
|  | 7780 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 7781 | { (case "(($ac_try" in | 
|  | 7782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7783 | *) ac_try_echo=$ac_try;; | 
|  | 7784 | esac | 
|  | 7785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7786 | (eval "$ac_try") 2>&5 | 
|  | 7787 | ac_status=$? | 
|  | 7788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7789 | (exit $ac_status); }; } && | 
|  | 7790 | { ac_try='test -s conftest$ac_exeext' | 
|  | 7791 | { (case "(($ac_try" in | 
|  | 7792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7793 | *) ac_try_echo=$ac_try;; | 
|  | 7794 | esac | 
|  | 7795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7796 | (eval "$ac_try") 2>&5 | 
|  | 7797 | ac_status=$? | 
|  | 7798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7799 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7800 | llvm_cv_link_use_r=yes | 
|  | 7801 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7802 | echo "$as_me: failed program was:" >&5 | 
|  | 7803 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7804 |  | 
|  | 7805 | llvm_cv_link_use_r=no | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7806 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7807 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7808 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7809 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7810 | CFLAGS="$oldcflags" | 
|  | 7811 | ac_ext=c | 
|  | 7812 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7813 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7814 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7815 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7816 |  | 
|  | 7817 |  | 
|  | 7818 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7819 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 | 
|  | 7820 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7821 | if test "$llvm_cv_link_use_r" = yes ; then | 
|  | 7822 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7823 | cat >>confdefs.h <<\_ACEOF | 
|  | 7824 | #define HAVE_LINK_R 1 | 
|  | 7825 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7826 |  | 
|  | 7827 | fi | 
|  | 7828 |  | 
|  | 7829 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7830 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 | 
|  | 7831 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } | 
|  | 7832 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then | 
|  | 7833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7834 | else | 
|  | 7835 | ac_ext=c | 
|  | 7836 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7837 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7838 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7839 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7840 |  | 
|  | 7841 | oldcflags="$CFLAGS" | 
|  | 7842 | CFLAGS="$CFLAGS -Wl,-export-dynamic" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7843 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7844 | /* confdefs.h.  */ | 
|  | 7845 | _ACEOF | 
|  | 7846 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7847 | cat >>conftest.$ac_ext <<_ACEOF | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7848 | /* end confdefs.h.  */ | 
|  | 7849 |  | 
|  | 7850 | int | 
|  | 7851 | main () | 
|  | 7852 | { | 
| Dan Gohman | a1c9404 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7853 |  | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7854 | ; | 
|  | 7855 | return 0; | 
|  | 7856 | } | 
|  | 7857 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7858 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7859 | if { (ac_try="$ac_link" | 
|  | 7860 | case "(($ac_try" in | 
|  | 7861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7862 | *) ac_try_echo=$ac_try;; | 
|  | 7863 | esac | 
|  | 7864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7865 | (eval "$ac_link") 2>conftest.er1 | 
|  | 7866 | ac_status=$? | 
|  | 7867 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 7868 | rm -f conftest.er1 | 
|  | 7869 | cat conftest.err >&5 | 
|  | 7870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7871 | (exit $ac_status); } && | 
|  | 7872 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 7873 | { (case "(($ac_try" in | 
|  | 7874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7875 | *) ac_try_echo=$ac_try;; | 
|  | 7876 | esac | 
|  | 7877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7878 | (eval "$ac_try") 2>&5 | 
|  | 7879 | ac_status=$? | 
|  | 7880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7881 | (exit $ac_status); }; } && | 
|  | 7882 | { ac_try='test -s conftest$ac_exeext' | 
|  | 7883 | { (case "(($ac_try" in | 
|  | 7884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7885 | *) ac_try_echo=$ac_try;; | 
|  | 7886 | esac | 
|  | 7887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7888 | (eval "$ac_try") 2>&5 | 
|  | 7889 | ac_status=$? | 
|  | 7890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7891 | (exit $ac_status); }; }; then | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7892 | llvm_cv_link_use_export_dynamic=yes | 
|  | 7893 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7894 | echo "$as_me: failed program was:" >&5 | 
|  | 7895 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7896 |  | 
|  | 7897 | llvm_cv_link_use_export_dynamic=no | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7898 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7899 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7900 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7901 | conftest$ac_exeext conftest.$ac_ext | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7902 | CFLAGS="$oldcflags" | 
|  | 7903 | ac_ext=c | 
|  | 7904 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7908 |  | 
|  | 7909 |  | 
|  | 7910 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7911 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 | 
|  | 7912 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7913 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then | 
|  | 7914 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7915 | cat >>confdefs.h <<\_ACEOF | 
|  | 7916 | #define HAVE_LINK_EXPORT_DYNAMIC 1 | 
|  | 7917 | _ACEOF | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7918 |  | 
|  | 7919 | fi | 
|  | 7920 |  | 
|  | 7921 |  | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7922 | { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 | 
|  | 7923 | echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } | 
|  | 7924 | if test "${llvm_cv_link_use_version_script+set}" = set; then | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7926 | else | 
|  | 7927 | ac_ext=c | 
|  | 7928 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7929 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7930 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7931 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7932 |  | 
|  | 7933 | oldcflags="$CFLAGS" | 
|  | 7934 |  | 
|  | 7935 | # The following code is from the autoconf manual, | 
|  | 7936 | # "11.13: Limitations of Usual Tools". | 
|  | 7937 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). | 
|  | 7938 | # Use mktemp if possible; otherwise fall back on mkdir, | 
|  | 7939 | # with $RANDOM to make collisions less likely. | 
|  | 7940 | : ${TMPDIR=/tmp} | 
|  | 7941 | { | 
|  | 7942 | tmp=` | 
|  | 7943 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null | 
|  | 7944 | ` && | 
|  | 7945 | test -n "$tmp" && test -d "$tmp" | 
|  | 7946 | } || { | 
|  | 7947 | tmp=$TMPDIR/foo$$-$RANDOM | 
|  | 7948 | (umask 077 && mkdir "$tmp") | 
|  | 7949 | } || exit $? | 
|  | 7950 |  | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7951 | echo "{" > "$tmp/export.map" | 
|  | 7952 | echo "  global: main;" >> "$tmp/export.map" | 
|  | 7953 | echo "  local: *;" >> "$tmp/export.map" | 
|  | 7954 | echo "};" >> "$tmp/export.map" | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7955 |  | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7956 | CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7957 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7958 | /* confdefs.h.  */ | 
|  | 7959 | _ACEOF | 
|  | 7960 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7961 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 7962 | /* end confdefs.h.  */ | 
|  | 7963 |  | 
|  | 7964 | int | 
|  | 7965 | main () | 
|  | 7966 | { | 
| Dan Gohman | a1c9404 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7967 |  | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7968 | ; | 
|  | 7969 | return 0; | 
|  | 7970 | } | 
|  | 7971 | _ACEOF | 
|  | 7972 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7973 | if { (ac_try="$ac_link" | 
|  | 7974 | case "(($ac_try" in | 
|  | 7975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7976 | *) ac_try_echo=$ac_try;; | 
|  | 7977 | esac | 
|  | 7978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7979 | (eval "$ac_link") 2>conftest.er1 | 
|  | 7980 | ac_status=$? | 
|  | 7981 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 7982 | rm -f conftest.er1 | 
|  | 7983 | cat conftest.err >&5 | 
|  | 7984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7985 | (exit $ac_status); } && | 
|  | 7986 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 7987 | { (case "(($ac_try" in | 
|  | 7988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7989 | *) ac_try_echo=$ac_try;; | 
|  | 7990 | esac | 
|  | 7991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 7992 | (eval "$ac_try") 2>&5 | 
|  | 7993 | ac_status=$? | 
|  | 7994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7995 | (exit $ac_status); }; } && | 
|  | 7996 | { ac_try='test -s conftest$ac_exeext' | 
|  | 7997 | { (case "(($ac_try" in | 
|  | 7998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7999 | *) ac_try_echo=$ac_try;; | 
|  | 8000 | esac | 
|  | 8001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8002 | (eval "$ac_try") 2>&5 | 
|  | 8003 | ac_status=$? | 
|  | 8004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8005 | (exit $ac_status); }; }; then | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8006 | llvm_cv_link_use_version_script=yes | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8007 | else | 
|  | 8008 | echo "$as_me: failed program was:" >&5 | 
|  | 8009 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8010 |  | 
| Dan Gohman | c699831 | 2010-06-01 16:22:27 +0000 | [diff] [blame] | 8011 | llvm_cv_link_use_version_script=no | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8012 | fi | 
|  | 8013 |  | 
|  | 8014 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8015 | conftest$ac_exeext conftest.$ac_ext | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8016 | rm "$tmp/export.map" | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8017 | rmdir "$tmp" | 
|  | 8018 | CFLAGS="$oldcflags" | 
|  | 8019 | ac_ext=c | 
|  | 8020 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 8021 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 8022 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 8023 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 8024 |  | 
|  | 8025 |  | 
|  | 8026 | fi | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8027 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 | 
|  | 8028 | echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } | 
|  | 8029 | if test "$llvm_cv_link_use_version_script" = yes ; then | 
|  | 8030 | HAVE_LINK_VERSION_SCRIPT=1 | 
| Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8031 |  | 
|  | 8032 | fi | 
|  | 8033 |  | 
|  | 8034 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8035 |  | 
|  | 8036 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8037 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | 
|  | 8038 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | 
|  | 8039 | if test "${ac_cv_c_const+set}" = set; then | 
|  | 8040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8041 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8042 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8043 | /* confdefs.h.  */ | 
|  | 8044 | _ACEOF | 
|  | 8045 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8046 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8047 | /* end confdefs.h.  */ | 
|  | 8048 |  | 
|  | 8049 | int | 
|  | 8050 | main () | 
|  | 8051 | { | 
|  | 8052 | /* FIXME: Include the comments suggested by Paul. */ | 
|  | 8053 | #ifndef __cplusplus | 
|  | 8054 | /* Ultrix mips cc rejects this.  */ | 
|  | 8055 | typedef int charset[2]; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8056 | const charset x; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8057 | /* SunOS 4.1.1 cc rejects this.  */ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8058 | char const *const *ccp; | 
|  | 8059 | char **p; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8060 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
|  | 8061 | struct point {int x, y;}; | 
|  | 8062 | static struct point const zero = {0,0}; | 
|  | 8063 | /* AIX XL C 1.02.0.0 rejects this. | 
|  | 8064 | It does not let you subtract one const X* pointer from another in | 
|  | 8065 | an arm of an if-expression whose if-part is not a constant | 
|  | 8066 | expression */ | 
|  | 8067 | const char *g = "string"; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8068 | ccp = &g + (g ? g-g : 0); | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8069 | /* HPUX 7.0 cc rejects these. */ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8070 | ++ccp; | 
|  | 8071 | p = (char**) ccp; | 
|  | 8072 | ccp = (char const *const *) p; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8073 | { /* SCO 3.2v4 cc rejects this.  */ | 
|  | 8074 | char *t; | 
|  | 8075 | char const *s = 0 ? (char *) 0 : (char const *) 0; | 
|  | 8076 |  | 
|  | 8077 | *t++ = 0; | 
|  | 8078 | if (s) return 0; | 
|  | 8079 | } | 
|  | 8080 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
|  | 8081 | int x[] = {25, 17}; | 
|  | 8082 | const int *foo = &x[0]; | 
|  | 8083 | ++foo; | 
|  | 8084 | } | 
|  | 8085 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
|  | 8086 | typedef const int *iptr; | 
|  | 8087 | iptr p = 0; | 
|  | 8088 | ++p; | 
|  | 8089 | } | 
|  | 8090 | { /* AIX XL C 1.02.0.0 rejects this saying | 
|  | 8091 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
|  | 8092 | struct s { int j; const int *ap[3]; }; | 
|  | 8093 | struct s *b; b->j = 5; | 
|  | 8094 | } | 
|  | 8095 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
|  | 8096 | const int foo = 10; | 
|  | 8097 | if (!foo) return 0; | 
|  | 8098 | } | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8099 | return !x[0] && !zero.x; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8100 | #endif | 
|  | 8101 |  | 
|  | 8102 | ; | 
|  | 8103 | return 0; | 
|  | 8104 | } | 
|  | 8105 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8106 | rm -f conftest.$ac_objext | 
|  | 8107 | if { (ac_try="$ac_compile" | 
|  | 8108 | case "(($ac_try" in | 
|  | 8109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8110 | *) ac_try_echo=$ac_try;; | 
|  | 8111 | esac | 
|  | 8112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8113 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 8114 | ac_status=$? | 
|  | 8115 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8116 | rm -f conftest.er1 | 
|  | 8117 | cat conftest.err >&5 | 
|  | 8118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8119 | (exit $ac_status); } && | 
|  | 8120 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 8121 | { (case "(($ac_try" in | 
|  | 8122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8123 | *) ac_try_echo=$ac_try;; | 
|  | 8124 | esac | 
|  | 8125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8126 | (eval "$ac_try") 2>&5 | 
|  | 8127 | ac_status=$? | 
|  | 8128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8129 | (exit $ac_status); }; } && | 
|  | 8130 | { ac_try='test -s conftest.$ac_objext' | 
|  | 8131 | { (case "(($ac_try" in | 
|  | 8132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8133 | *) ac_try_echo=$ac_try;; | 
|  | 8134 | esac | 
|  | 8135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8136 | (eval "$ac_try") 2>&5 | 
|  | 8137 | ac_status=$? | 
|  | 8138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8139 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8140 | ac_cv_c_const=yes | 
|  | 8141 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8142 | echo "$as_me: failed program was:" >&5 | 
|  | 8143 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8144 |  | 
|  | 8145 | ac_cv_c_const=no | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8146 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8147 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 8149 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8150 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | 
|  | 8151 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8152 | if test $ac_cv_c_const = no; then | 
|  | 8153 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8154 | cat >>confdefs.h <<\_ACEOF | 
|  | 8155 | #define const | 
|  | 8156 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8157 |  | 
|  | 8158 | fi | 
|  | 8159 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8160 |  | 
|  | 8161 |  | 
|  | 8162 |  | 
|  | 8163 |  | 
|  | 8164 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8165 | ac_header_dirent=no | 
|  | 8166 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8167 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
|  | 8168 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | 
|  | 8169 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | 
|  | 8170 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 8171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8172 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8173 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8174 | /* confdefs.h.  */ | 
|  | 8175 | _ACEOF | 
|  | 8176 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8177 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8178 | /* end confdefs.h.  */ | 
|  | 8179 | #include <sys/types.h> | 
|  | 8180 | #include <$ac_hdr> | 
|  | 8181 |  | 
|  | 8182 | int | 
|  | 8183 | main () | 
|  | 8184 | { | 
|  | 8185 | if ((DIR *) 0) | 
|  | 8186 | return 0; | 
|  | 8187 | ; | 
|  | 8188 | return 0; | 
|  | 8189 | } | 
|  | 8190 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8191 | rm -f conftest.$ac_objext | 
|  | 8192 | if { (ac_try="$ac_compile" | 
|  | 8193 | case "(($ac_try" in | 
|  | 8194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8195 | *) ac_try_echo=$ac_try;; | 
|  | 8196 | esac | 
|  | 8197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8198 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 8199 | ac_status=$? | 
|  | 8200 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8201 | rm -f conftest.er1 | 
|  | 8202 | cat conftest.err >&5 | 
|  | 8203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8204 | (exit $ac_status); } && | 
|  | 8205 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 8206 | { (case "(($ac_try" in | 
|  | 8207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8208 | *) ac_try_echo=$ac_try;; | 
|  | 8209 | esac | 
|  | 8210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8211 | (eval "$ac_try") 2>&5 | 
|  | 8212 | ac_status=$? | 
|  | 8213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8214 | (exit $ac_status); }; } && | 
|  | 8215 | { ac_try='test -s conftest.$ac_objext' | 
|  | 8216 | { (case "(($ac_try" in | 
|  | 8217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8218 | *) ac_try_echo=$ac_try;; | 
|  | 8219 | esac | 
|  | 8220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8221 | (eval "$ac_try") 2>&5 | 
|  | 8222 | ac_status=$? | 
|  | 8223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8224 | (exit $ac_status); }; }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8225 | eval "$as_ac_Header=yes" | 
|  | 8226 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8227 | echo "$as_me: failed program was:" >&5 | 
|  | 8228 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8229 |  | 
|  | 8230 | eval "$as_ac_Header=no" | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8231 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8232 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8234 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8235 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 8236 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 8237 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 8238 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8239 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8240 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8241 | _ACEOF | 
|  | 8242 |  | 
|  | 8243 | ac_header_dirent=$ac_hdr; break | 
|  | 8244 | fi | 
|  | 8245 |  | 
|  | 8246 | done | 
|  | 8247 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 8248 | if test $ac_header_dirent = dirent.h; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8249 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
|  | 8250 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | 
|  | 8251 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 8252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8253 | else | 
|  | 8254 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8255 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8256 | /* confdefs.h.  */ | 
|  | 8257 | _ACEOF | 
|  | 8258 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8259 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8260 | /* end confdefs.h.  */ | 
|  | 8261 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8262 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8263 | Use char because int might match the return type of a GCC | 
|  | 8264 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8265 | #ifdef __cplusplus | 
|  | 8266 | extern "C" | 
|  | 8267 | #endif | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8268 | char opendir (); | 
|  | 8269 | int | 
|  | 8270 | main () | 
|  | 8271 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8272 | return opendir (); | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8273 | ; | 
|  | 8274 | return 0; | 
|  | 8275 | } | 
|  | 8276 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8277 | for ac_lib in '' dir; do | 
|  | 8278 | if test -z "$ac_lib"; then | 
|  | 8279 | ac_res="none required" | 
|  | 8280 | else | 
|  | 8281 | ac_res=-l$ac_lib | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8282 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8283 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8284 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 8285 | if { (ac_try="$ac_link" | 
|  | 8286 | case "(($ac_try" in | 
|  | 8287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8288 | *) ac_try_echo=$ac_try;; | 
|  | 8289 | esac | 
|  | 8290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8291 | (eval "$ac_link") 2>conftest.er1 | 
|  | 8292 | ac_status=$? | 
|  | 8293 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8294 | rm -f conftest.er1 | 
|  | 8295 | cat conftest.err >&5 | 
|  | 8296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8297 | (exit $ac_status); } && | 
|  | 8298 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 8299 | { (case "(($ac_try" in | 
|  | 8300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8301 | *) ac_try_echo=$ac_try;; | 
|  | 8302 | esac | 
|  | 8303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8304 | (eval "$ac_try") 2>&5 | 
|  | 8305 | ac_status=$? | 
|  | 8306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8307 | (exit $ac_status); }; } && | 
|  | 8308 | { ac_try='test -s conftest$ac_exeext' | 
|  | 8309 | { (case "(($ac_try" in | 
|  | 8310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8311 | *) ac_try_echo=$ac_try;; | 
|  | 8312 | esac | 
|  | 8313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8314 | (eval "$ac_try") 2>&5 | 
|  | 8315 | ac_status=$? | 
|  | 8316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8317 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8318 | ac_cv_search_opendir=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8319 | else | 
|  | 8320 | echo "$as_me: failed program was:" >&5 | 
|  | 8321 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8322 |  | 
|  | 8323 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8324 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8325 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8326 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8327 | conftest$ac_exeext | 
|  | 8328 | if test "${ac_cv_search_opendir+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8329 | break | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8330 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8331 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8332 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 8333 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8334 | else | 
|  | 8335 | ac_cv_search_opendir=no | 
|  | 8336 | fi | 
|  | 8337 | rm conftest.$ac_ext | 
|  | 8338 | LIBS=$ac_func_search_save_LIBS | 
|  | 8339 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8340 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
|  | 8341 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8342 | ac_res=$ac_cv_search_opendir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8343 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8344 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8345 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8346 | fi | 
|  | 8347 |  | 
|  | 8348 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8349 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
|  | 8350 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | 
|  | 8351 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 8352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8353 | else | 
|  | 8354 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8355 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8356 | /* confdefs.h.  */ | 
|  | 8357 | _ACEOF | 
|  | 8358 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8359 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8360 | /* end confdefs.h.  */ | 
|  | 8361 |  | 
|  | 8362 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8363 | Use char because int might match the return type of a GCC | 
|  | 8364 | builtin and then its argument prototype would still apply.  */ | 
|  | 8365 | #ifdef __cplusplus | 
|  | 8366 | extern "C" | 
|  | 8367 | #endif | 
|  | 8368 | char opendir (); | 
|  | 8369 | int | 
|  | 8370 | main () | 
|  | 8371 | { | 
|  | 8372 | return opendir (); | 
|  | 8373 | ; | 
|  | 8374 | return 0; | 
|  | 8375 | } | 
|  | 8376 | _ACEOF | 
|  | 8377 | for ac_lib in '' x; do | 
|  | 8378 | if test -z "$ac_lib"; then | 
|  | 8379 | ac_res="none required" | 
|  | 8380 | else | 
|  | 8381 | ac_res=-l$ac_lib | 
|  | 8382 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 8383 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8384 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 8385 | if { (ac_try="$ac_link" | 
|  | 8386 | case "(($ac_try" in | 
|  | 8387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8388 | *) ac_try_echo=$ac_try;; | 
|  | 8389 | esac | 
|  | 8390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8391 | (eval "$ac_link") 2>conftest.er1 | 
|  | 8392 | ac_status=$? | 
|  | 8393 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8394 | rm -f conftest.er1 | 
|  | 8395 | cat conftest.err >&5 | 
|  | 8396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8397 | (exit $ac_status); } && | 
|  | 8398 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 8399 | { (case "(($ac_try" in | 
|  | 8400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8401 | *) ac_try_echo=$ac_try;; | 
|  | 8402 | esac | 
|  | 8403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8404 | (eval "$ac_try") 2>&5 | 
|  | 8405 | ac_status=$? | 
|  | 8406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8407 | (exit $ac_status); }; } && | 
|  | 8408 | { ac_try='test -s conftest$ac_exeext' | 
|  | 8409 | { (case "(($ac_try" in | 
|  | 8410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8411 | *) ac_try_echo=$ac_try;; | 
|  | 8412 | esac | 
|  | 8413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8414 | (eval "$ac_try") 2>&5 | 
|  | 8415 | ac_status=$? | 
|  | 8416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8417 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8418 | ac_cv_search_opendir=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8419 | else | 
|  | 8420 | echo "$as_me: failed program was:" >&5 | 
|  | 8421 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8422 |  | 
|  | 8423 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8424 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8425 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8426 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8427 | conftest$ac_exeext | 
|  | 8428 | if test "${ac_cv_search_opendir+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8429 | break | 
|  | 8430 | fi | 
|  | 8431 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8432 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 8433 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8434 | else | 
|  | 8435 | ac_cv_search_opendir=no | 
|  | 8436 | fi | 
|  | 8437 | rm conftest.$ac_ext | 
|  | 8438 | LIBS=$ac_func_search_save_LIBS | 
|  | 8439 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8440 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
|  | 8441 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8442 | ac_res=$ac_cv_search_opendir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8443 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8444 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 8445 |  | 
|  | 8446 | fi | 
|  | 8447 |  | 
|  | 8448 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8449 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8450 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8451 | for ac_header in dlfcn.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8452 | do | 
|  | 8453 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 8454 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 8455 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 8456 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 8457 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 8458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8459 | fi | 
|  | 8460 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 8461 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 8462 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 8463 | else | 
|  | 8464 | # Is the header compilable? | 
|  | 8465 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 8466 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 8467 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8468 | /* confdefs.h.  */ | 
|  | 8469 | _ACEOF | 
|  | 8470 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8471 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8472 | /* end confdefs.h.  */ | 
|  | 8473 | $ac_includes_default | 
|  | 8474 | #include <$ac_header> | 
|  | 8475 | _ACEOF | 
|  | 8476 | rm -f conftest.$ac_objext | 
|  | 8477 | if { (ac_try="$ac_compile" | 
|  | 8478 | case "(($ac_try" in | 
|  | 8479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8480 | *) ac_try_echo=$ac_try;; | 
|  | 8481 | esac | 
|  | 8482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8483 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 8484 | ac_status=$? | 
|  | 8485 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8486 | rm -f conftest.er1 | 
|  | 8487 | cat conftest.err >&5 | 
|  | 8488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8489 | (exit $ac_status); } && | 
|  | 8490 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 8491 | { (case "(($ac_try" in | 
|  | 8492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8493 | *) ac_try_echo=$ac_try;; | 
|  | 8494 | esac | 
|  | 8495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8496 | (eval "$ac_try") 2>&5 | 
|  | 8497 | ac_status=$? | 
|  | 8498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8499 | (exit $ac_status); }; } && | 
|  | 8500 | { ac_try='test -s conftest.$ac_objext' | 
|  | 8501 | { (case "(($ac_try" in | 
|  | 8502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8503 | *) ac_try_echo=$ac_try;; | 
|  | 8504 | esac | 
|  | 8505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8506 | (eval "$ac_try") 2>&5 | 
|  | 8507 | ac_status=$? | 
|  | 8508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8509 | (exit $ac_status); }; }; then | 
|  | 8510 | ac_header_compiler=yes | 
|  | 8511 | else | 
|  | 8512 | echo "$as_me: failed program was:" >&5 | 
|  | 8513 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8514 |  | 
|  | 8515 | ac_header_compiler=no | 
|  | 8516 | fi | 
|  | 8517 |  | 
|  | 8518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 8519 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 8520 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 8521 |  | 
|  | 8522 | # Is the header present? | 
|  | 8523 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 8524 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 8525 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8526 | /* confdefs.h.  */ | 
|  | 8527 | _ACEOF | 
|  | 8528 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8529 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8530 | /* end confdefs.h.  */ | 
|  | 8531 | #include <$ac_header> | 
|  | 8532 | _ACEOF | 
|  | 8533 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 8534 | case "(($ac_try" in | 
|  | 8535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 8536 | *) ac_try_echo=$ac_try;; | 
|  | 8537 | esac | 
|  | 8538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 8539 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 8540 | ac_status=$? | 
|  | 8541 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8542 | rm -f conftest.er1 | 
|  | 8543 | cat conftest.err >&5 | 
|  | 8544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8545 | (exit $ac_status); } >/dev/null; then | 
|  | 8546 | if test -s conftest.err; then | 
|  | 8547 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 8548 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 8549 | else | 
|  | 8550 | ac_cpp_err= | 
|  | 8551 | fi | 
|  | 8552 | else | 
|  | 8553 | ac_cpp_err=yes | 
|  | 8554 | fi | 
|  | 8555 | if test -z "$ac_cpp_err"; then | 
|  | 8556 | ac_header_preproc=yes | 
|  | 8557 | else | 
|  | 8558 | echo "$as_me: failed program was:" >&5 | 
|  | 8559 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8560 |  | 
|  | 8561 | ac_header_preproc=no | 
|  | 8562 | fi | 
|  | 8563 |  | 
|  | 8564 | rm -f conftest.err conftest.$ac_ext | 
|  | 8565 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 8566 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 8567 |  | 
|  | 8568 | # So?  What about this header? | 
|  | 8569 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 8570 | yes:no: ) | 
|  | 8571 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 8572 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 8573 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 8574 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 8575 | ac_header_preproc=yes | 
|  | 8576 | ;; | 
|  | 8577 | no:yes:* ) | 
|  | 8578 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 8579 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 8580 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 8581 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 8582 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 8583 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 8584 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 8585 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 8586 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 8587 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 8588 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 8589 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 8590 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 8591 | ## ------------------------------------ ## | 
|  | 8592 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 8593 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8594 | _ASBOX | 
|  | 8595 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 8596 | ;; | 
|  | 8597 | esac | 
|  | 8598 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 8599 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 8600 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 8601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8602 | else | 
|  | 8603 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 8604 | fi | 
|  | 8605 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 8606 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 8607 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 8608 |  | 
|  | 8609 | fi | 
|  | 8610 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8611 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8612 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8613 | _ACEOF | 
|  | 8614 |  | 
|  | 8615 | fi | 
|  | 8616 |  | 
|  | 8617 | done | 
|  | 8618 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8619 | # Check whether --enable-ltdl-install was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8620 | if test "${enable_ltdl_install+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8621 | enableval=$enable_ltdl_install; | 
|  | 8622 | fi | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8623 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8624 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8625 |  | 
|  | 8626 |  | 
|  | 8627 | if test x"${enable_ltdl_install-no}" != xno; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8628 | INSTALL_LTDL_TRUE= | 
|  | 8629 | INSTALL_LTDL_FALSE='#' | 
|  | 8630 | else | 
|  | 8631 | INSTALL_LTDL_TRUE='#' | 
|  | 8632 | INSTALL_LTDL_FALSE= | 
|  | 8633 | fi | 
|  | 8634 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8635 |  | 
|  | 8636 |  | 
|  | 8637 | if test x"${enable_ltdl_convenience-no}" != xno; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8638 | CONVENIENCE_LTDL_TRUE= | 
|  | 8639 | CONVENIENCE_LTDL_FALSE='#' | 
|  | 8640 | else | 
|  | 8641 | CONVENIENCE_LTDL_TRUE='#' | 
|  | 8642 | CONVENIENCE_LTDL_FALSE= | 
|  | 8643 | fi | 
|  | 8644 |  | 
|  | 8645 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8646 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
|  | 8647 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8648 | library_names_spec= | 
|  | 8649 | libname_spec='lib$name' | 
|  | 8650 | soname_spec= | 
|  | 8651 | shrext_cmds=".so" | 
|  | 8652 | postinstall_cmds= | 
|  | 8653 | postuninstall_cmds= | 
|  | 8654 | finish_cmds= | 
|  | 8655 | finish_eval= | 
|  | 8656 | shlibpath_var= | 
|  | 8657 | shlibpath_overrides_runpath=unknown | 
|  | 8658 | version_type=none | 
|  | 8659 | dynamic_linker="$host_os ld.so" | 
|  | 8660 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
|  | 8661 | if test "$GCC" = yes; then | 
|  | 8662 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 8663 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
|  | 8664 | # if the path contains ";" then we assume it to be the separator | 
|  | 8665 | # otherwise default to the standard path separator (i.e. ":") - it is | 
|  | 8666 | # assumed that no part of a normal pathname contains ";" but that should | 
|  | 8667 | # okay in the real world where ";" in dirpaths is itself problematic. | 
|  | 8668 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 8669 | else | 
|  | 8670 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 8671 | fi | 
|  | 8672 | else | 
|  | 8673 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|  | 8674 | fi | 
|  | 8675 | need_lib_prefix=unknown | 
|  | 8676 | hardcode_into_libs=no | 
|  | 8677 |  | 
|  | 8678 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 8679 | # flags to be left without arguments | 
|  | 8680 | need_version=unknown | 
|  | 8681 |  | 
|  | 8682 | case $host_os in | 
|  | 8683 | aix3*) | 
|  | 8684 | version_type=linux | 
|  | 8685 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
|  | 8686 | shlibpath_var=LIBPATH | 
|  | 8687 |  | 
|  | 8688 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 8689 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8690 | ;; | 
|  | 8691 |  | 
|  | 8692 | aix4* | aix5*) | 
|  | 8693 | version_type=linux | 
|  | 8694 | need_lib_prefix=no | 
|  | 8695 | need_version=no | 
|  | 8696 | hardcode_into_libs=yes | 
|  | 8697 | if test "$host_cpu" = ia64; then | 
|  | 8698 | # AIX 5 supports IA64 | 
|  | 8699 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
|  | 8700 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8701 | else | 
|  | 8702 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 8703 | # for dependence libraries.  The import file would start with | 
|  | 8704 | # the line `#! .'.  This would cause the generated library to | 
|  | 8705 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 8706 | # development snapshots of GCC prior to 3.0. | 
|  | 8707 | case $host_os in | 
|  | 8708 | aix4 | aix4.[01] | aix4.[01].*) | 
|  | 8709 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 8710 | echo ' yes ' | 
|  | 8711 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
|  | 8712 | : | 
|  | 8713 | else | 
|  | 8714 | can_build_shared=no | 
|  | 8715 | fi | 
|  | 8716 | ;; | 
|  | 8717 | esac | 
|  | 8718 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 8719 | # soname into executable. Probably we can add versioning support to | 
|  | 8720 | # collect2, so additional links can be useful in future. | 
|  | 8721 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 8722 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 8723 | # instead of lib<name>.a to let people know that these are not | 
|  | 8724 | # typical AIX shared libraries. | 
|  | 8725 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8726 | else | 
|  | 8727 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 8728 | # and later when we are not doing run time linking. | 
|  | 8729 | library_names_spec='${libname}${release}.a $libname.a' | 
|  | 8730 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8731 | fi | 
|  | 8732 | shlibpath_var=LIBPATH | 
|  | 8733 | fi | 
|  | 8734 | ;; | 
|  | 8735 |  | 
|  | 8736 | amigaos*) | 
|  | 8737 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 8738 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
|  | 8739 | 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' | 
|  | 8740 | ;; | 
|  | 8741 |  | 
|  | 8742 | beos*) | 
|  | 8743 | library_names_spec='${libname}${shared_ext}' | 
|  | 8744 | dynamic_linker="$host_os ld.so" | 
|  | 8745 | shlibpath_var=LIBRARY_PATH | 
|  | 8746 | ;; | 
|  | 8747 |  | 
|  | 8748 | bsdi[45]*) | 
|  | 8749 | version_type=linux | 
|  | 8750 | need_version=no | 
|  | 8751 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8752 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8753 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 8754 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8755 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 8756 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
|  | 8757 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 8758 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 8759 | # libtool to hard-code these into programs | 
|  | 8760 | ;; | 
|  | 8761 |  | 
|  | 8762 | cygwin* | mingw* | pw32*) | 
|  | 8763 | version_type=windows | 
|  | 8764 | shrext_cmds=".dll" | 
|  | 8765 | need_version=no | 
|  | 8766 | need_lib_prefix=no | 
|  | 8767 |  | 
|  | 8768 | case $GCC,$host_os in | 
|  | 8769 | yes,cygwin* | yes,mingw* | yes,pw32*) | 
|  | 8770 | library_names_spec='$libname.dll.a' | 
|  | 8771 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
|  | 8772 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 8773 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
|  | 8774 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 8775 | test -d \$dldir || mkdir -p \$dldir~ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8776 | $install_prog $dir/$dlname \$dldir/$dlname~ | 
|  | 8777 | chmod a+x \$dldir/$dlname' | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8778 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 8779 | dlpath=$dir/\$dldll~ | 
|  | 8780 | $rm \$dlpath' | 
|  | 8781 | shlibpath_overrides_runpath=yes | 
|  | 8782 |  | 
|  | 8783 | case $host_os in | 
|  | 8784 | cygwin*) | 
|  | 8785 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 8786 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 8787 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
|  | 8788 | ;; | 
|  | 8789 | mingw*) | 
|  | 8790 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 8791 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 8792 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 8793 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
|  | 8794 | # It is most probably a Windows format PATH printed by | 
|  | 8795 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
|  | 8796 | # path with ; separators, and with drive letters. We can handle the | 
|  | 8797 | # drive letters (cygwin fileutils understands them), so leave them, | 
|  | 8798 | # especially as we might pass files found there to a mingw objdump, | 
|  | 8799 | # which wouldn't understand a cygwinified path. Ahh. | 
|  | 8800 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 8801 | else | 
|  | 8802 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 8803 | fi | 
|  | 8804 | ;; | 
|  | 8805 | pw32*) | 
|  | 8806 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8807 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8808 | ;; | 
|  | 8809 | esac | 
|  | 8810 | ;; | 
|  | 8811 |  | 
|  | 8812 | *) | 
|  | 8813 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
|  | 8814 | ;; | 
|  | 8815 | esac | 
|  | 8816 | dynamic_linker='Win32 ld.exe' | 
|  | 8817 | # FIXME: first we should search . and the directory the executable is in | 
|  | 8818 | shlibpath_var=PATH | 
|  | 8819 | ;; | 
|  | 8820 |  | 
|  | 8821 | darwin* | rhapsody*) | 
|  | 8822 | dynamic_linker="$host_os dyld" | 
|  | 8823 | version_type=darwin | 
|  | 8824 | need_lib_prefix=no | 
|  | 8825 | need_version=no | 
|  | 8826 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
|  | 8827 | soname_spec='${libname}${release}${major}$shared_ext' | 
|  | 8828 | shlibpath_overrides_runpath=yes | 
|  | 8829 | shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 28d3e72 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 8830 | shrext_cmds='.dylib' | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8831 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
|  | 8832 | if test "$GCC" = yes; then | 
|  | 8833 | 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"` | 
|  | 8834 | else | 
|  | 8835 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
|  | 8836 | fi | 
|  | 8837 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 8838 | ;; | 
|  | 8839 |  | 
|  | 8840 | dgux*) | 
|  | 8841 | version_type=linux | 
|  | 8842 | need_lib_prefix=no | 
|  | 8843 | need_version=no | 
|  | 8844 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 8845 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8846 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8847 | ;; | 
|  | 8848 |  | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8849 | freebsd1.*) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8850 | dynamic_linker=no | 
|  | 8851 | ;; | 
|  | 8852 |  | 
|  | 8853 | kfreebsd*-gnu) | 
|  | 8854 | version_type=linux | 
|  | 8855 | need_lib_prefix=no | 
|  | 8856 | need_version=no | 
|  | 8857 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 8858 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8859 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8860 | shlibpath_overrides_runpath=no | 
|  | 8861 | hardcode_into_libs=yes | 
|  | 8862 | dynamic_linker='GNU ld.so' | 
|  | 8863 | ;; | 
|  | 8864 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8865 | freebsd* | dragonfly*) | 
|  | 8866 | # DragonFly does not have aout.  When/if they implement a new | 
|  | 8867 | # versioning mechanism, adjust this. | 
|  | 8868 | if test -x /usr/bin/objformat; then | 
|  | 8869 | objformat=`/usr/bin/objformat` | 
|  | 8870 | else | 
|  | 8871 | case $host_os in | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8872 | freebsd[123].*) objformat=aout ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8873 | *) objformat=elf ;; | 
|  | 8874 | esac | 
|  | 8875 | fi | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8876 | version_type=freebsd-$objformat | 
|  | 8877 | case $version_type in | 
|  | 8878 | freebsd-elf*) | 
|  | 8879 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 8880 | need_version=no | 
|  | 8881 | need_lib_prefix=no | 
|  | 8882 | ;; | 
|  | 8883 | freebsd-*) | 
|  | 8884 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
|  | 8885 | need_version=yes | 
|  | 8886 | ;; | 
|  | 8887 | esac | 
|  | 8888 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8889 | case $host_os in | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8890 | freebsd2.*) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8891 | shlibpath_overrides_runpath=yes | 
|  | 8892 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8893 | freebsd3.[01]* | freebsdelf3.[01]*) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8894 | shlibpath_overrides_runpath=yes | 
|  | 8895 | hardcode_into_libs=yes | 
|  | 8896 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8897 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | 
|  | 8898 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8899 | shlibpath_overrides_runpath=no | 
|  | 8900 | hardcode_into_libs=yes | 
|  | 8901 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8902 | freebsd*) # from 4.6 on | 
|  | 8903 | shlibpath_overrides_runpath=yes | 
|  | 8904 | hardcode_into_libs=yes | 
|  | 8905 | ;; | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8906 | esac | 
|  | 8907 | ;; | 
|  | 8908 |  | 
|  | 8909 | gnu*) | 
|  | 8910 | version_type=linux | 
|  | 8911 | need_lib_prefix=no | 
|  | 8912 | need_version=no | 
|  | 8913 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 8914 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8915 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8916 | hardcode_into_libs=yes | 
|  | 8917 | ;; | 
|  | 8918 |  | 
|  | 8919 | hpux9* | hpux10* | hpux11*) | 
|  | 8920 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 8921 | # link against other versions. | 
|  | 8922 | version_type=sunos | 
|  | 8923 | need_lib_prefix=no | 
|  | 8924 | need_version=no | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8925 | case $host_cpu in | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8926 | ia64*) | 
|  | 8927 | shrext_cmds='.so' | 
|  | 8928 | hardcode_into_libs=yes | 
|  | 8929 | dynamic_linker="$host_os dld.so" | 
|  | 8930 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8931 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 8932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8933 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8934 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 8935 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 8936 | else | 
|  | 8937 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 8938 | fi | 
|  | 8939 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 8940 | ;; | 
|  | 8941 | hppa*64*) | 
|  | 8942 | shrext_cmds='.sl' | 
|  | 8943 | hardcode_into_libs=yes | 
|  | 8944 | dynamic_linker="$host_os dld.sl" | 
|  | 8945 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 8946 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 8947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8948 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8949 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 8950 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 8951 | ;; | 
|  | 8952 | *) | 
|  | 8953 | shrext_cmds='.sl' | 
|  | 8954 | dynamic_linker="$host_os dld.sl" | 
|  | 8955 | shlibpath_var=SHLIB_PATH | 
|  | 8956 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 8957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8958 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8959 | ;; | 
|  | 8960 | esac | 
|  | 8961 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
|  | 8962 | postinstall_cmds='chmod 555 $lib' | 
|  | 8963 | ;; | 
|  | 8964 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8965 | interix3*) | 
|  | 8966 | version_type=linux | 
|  | 8967 | need_lib_prefix=no | 
|  | 8968 | need_version=no | 
|  | 8969 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 8970 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8971 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | 
|  | 8972 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8973 | shlibpath_overrides_runpath=no | 
|  | 8974 | hardcode_into_libs=yes | 
|  | 8975 | ;; | 
|  | 8976 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8977 | irix5* | irix6* | nonstopux*) | 
|  | 8978 | case $host_os in | 
|  | 8979 | nonstopux*) version_type=nonstopux ;; | 
|  | 8980 | *) | 
|  | 8981 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 8982 | version_type=linux | 
|  | 8983 | else | 
|  | 8984 | version_type=irix | 
|  | 8985 | fi ;; | 
|  | 8986 | esac | 
|  | 8987 | need_lib_prefix=no | 
|  | 8988 | need_version=no | 
|  | 8989 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8990 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 8991 | case $host_os in | 
|  | 8992 | irix5* | nonstopux*) | 
|  | 8993 | libsuff= shlibsuff= | 
|  | 8994 | ;; | 
|  | 8995 | *) | 
|  | 8996 | case $LD in # libtool.m4 will add one of these switches to LD | 
|  | 8997 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 8998 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 8999 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 9000 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 9001 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 9002 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
|  | 9003 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 9004 | esac | 
|  | 9005 | ;; | 
|  | 9006 | esac | 
|  | 9007 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 9008 | shlibpath_overrides_runpath=no | 
|  | 9009 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 9010 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
|  | 9011 | hardcode_into_libs=yes | 
|  | 9012 | ;; | 
|  | 9013 |  | 
|  | 9014 | # No shared lib support for Linux oldld, aout, or coff. | 
|  | 9015 | linux*oldld* | linux*aout* | linux*coff*) | 
|  | 9016 | dynamic_linker=no | 
|  | 9017 | ;; | 
|  | 9018 |  | 
|  | 9019 | # This must be Linux ELF. | 
|  | 9020 | linux*) | 
|  | 9021 | version_type=linux | 
|  | 9022 | need_lib_prefix=no | 
|  | 9023 | need_version=no | 
|  | 9024 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9025 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9026 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 9027 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9028 | shlibpath_overrides_runpath=no | 
|  | 9029 | # This implies no fast_install, which is unacceptable. | 
|  | 9030 | # Some rework will be needed to allow for fast_install | 
|  | 9031 | # before this can be enabled. | 
|  | 9032 | hardcode_into_libs=yes | 
|  | 9033 |  | 
|  | 9034 | # Append ld.so.conf contents to the search path | 
|  | 9035 | if test -f /etc/ld.so.conf; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9036 | 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' ' '` | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9037 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
|  | 9038 | fi | 
|  | 9039 |  | 
|  | 9040 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 9041 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 9042 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 9043 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 9044 | # people can always --disable-shared, the test was removed, and we | 
|  | 9045 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 9046 | dynamic_linker='GNU/Linux ld.so' | 
|  | 9047 | ;; | 
|  | 9048 |  | 
|  | 9049 | knetbsd*-gnu) | 
|  | 9050 | version_type=linux | 
|  | 9051 | need_lib_prefix=no | 
|  | 9052 | need_version=no | 
|  | 9053 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 9054 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9055 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9056 | shlibpath_overrides_runpath=no | 
|  | 9057 | hardcode_into_libs=yes | 
|  | 9058 | dynamic_linker='GNU ld.so' | 
|  | 9059 | ;; | 
|  | 9060 |  | 
|  | 9061 | netbsd*) | 
|  | 9062 | version_type=sunos | 
|  | 9063 | need_lib_prefix=no | 
|  | 9064 | need_version=no | 
|  | 9065 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 9066 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 9067 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 9068 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 9069 | else | 
|  | 9070 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 9071 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9072 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 9073 | fi | 
|  | 9074 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9075 | shlibpath_overrides_runpath=yes | 
|  | 9076 | hardcode_into_libs=yes | 
|  | 9077 | ;; | 
|  | 9078 |  | 
|  | 9079 | newsos6) | 
|  | 9080 | version_type=linux | 
|  | 9081 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9082 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9083 | shlibpath_overrides_runpath=yes | 
|  | 9084 | ;; | 
|  | 9085 |  | 
|  | 9086 | nto-qnx*) | 
|  | 9087 | version_type=linux | 
|  | 9088 | need_lib_prefix=no | 
|  | 9089 | need_version=no | 
|  | 9090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9091 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9092 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9093 | shlibpath_overrides_runpath=yes | 
|  | 9094 | ;; | 
|  | 9095 |  | 
|  | 9096 | openbsd*) | 
|  | 9097 | version_type=sunos | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9098 | sys_lib_dlsearch_path_spec="/usr/lib" | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9099 | need_lib_prefix=no | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9100 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 
|  | 9101 | case $host_os in | 
|  | 9102 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | 
|  | 9103 | *)                         need_version=no  ;; | 
|  | 9104 | esac | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 9106 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 9107 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9108 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 9109 | case $host_os in | 
|  | 9110 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 9111 | shlibpath_overrides_runpath=no | 
|  | 9112 | ;; | 
|  | 9113 | *) | 
|  | 9114 | shlibpath_overrides_runpath=yes | 
|  | 9115 | ;; | 
|  | 9116 | esac | 
|  | 9117 | else | 
|  | 9118 | shlibpath_overrides_runpath=yes | 
|  | 9119 | fi | 
|  | 9120 | ;; | 
|  | 9121 |  | 
|  | 9122 | os2*) | 
|  | 9123 | libname_spec='$name' | 
|  | 9124 | shrext_cmds=".dll" | 
|  | 9125 | need_lib_prefix=no | 
|  | 9126 | library_names_spec='$libname${shared_ext} $libname.a' | 
|  | 9127 | dynamic_linker='OS/2 ld.exe' | 
|  | 9128 | shlibpath_var=LIBPATH | 
|  | 9129 | ;; | 
|  | 9130 |  | 
|  | 9131 | osf3* | osf4* | osf5*) | 
|  | 9132 | version_type=osf | 
|  | 9133 | need_lib_prefix=no | 
|  | 9134 | need_version=no | 
|  | 9135 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9136 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9137 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9138 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 9139 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 9140 | ;; | 
|  | 9141 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9142 | solaris*) | 
|  | 9143 | version_type=linux | 
|  | 9144 | need_lib_prefix=no | 
|  | 9145 | need_version=no | 
|  | 9146 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9147 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9148 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9149 | shlibpath_overrides_runpath=yes | 
|  | 9150 | hardcode_into_libs=yes | 
|  | 9151 | # ldd complains unless libraries are executable | 
|  | 9152 | postinstall_cmds='chmod +x $lib' | 
|  | 9153 | ;; | 
|  | 9154 |  | 
|  | 9155 | sunos4*) | 
|  | 9156 | version_type=sunos | 
|  | 9157 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 9158 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 9159 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9160 | shlibpath_overrides_runpath=yes | 
|  | 9161 | if test "$with_gnu_ld" = yes; then | 
|  | 9162 | need_lib_prefix=no | 
|  | 9163 | fi | 
|  | 9164 | need_version=yes | 
|  | 9165 | ;; | 
|  | 9166 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9167 | sysv4 | sysv4.3*) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9168 | version_type=linux | 
|  | 9169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9170 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9171 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9172 | case $host_vendor in | 
|  | 9173 | sni) | 
|  | 9174 | shlibpath_overrides_runpath=no | 
|  | 9175 | need_lib_prefix=no | 
|  | 9176 | export_dynamic_flag_spec='${wl}-Blargedynsym' | 
|  | 9177 | runpath_var=LD_RUN_PATH | 
|  | 9178 | ;; | 
|  | 9179 | siemens) | 
|  | 9180 | need_lib_prefix=no | 
|  | 9181 | ;; | 
|  | 9182 | motorola) | 
|  | 9183 | need_lib_prefix=no | 
|  | 9184 | need_version=no | 
|  | 9185 | shlibpath_overrides_runpath=no | 
|  | 9186 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 9187 | ;; | 
|  | 9188 | esac | 
|  | 9189 | ;; | 
|  | 9190 |  | 
|  | 9191 | sysv4*MP*) | 
|  | 9192 | if test -d /usr/nec ;then | 
|  | 9193 | version_type=linux | 
|  | 9194 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 9195 | soname_spec='$libname${shared_ext}.$major' | 
|  | 9196 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9197 | fi | 
|  | 9198 | ;; | 
|  | 9199 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9200 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
|  | 9201 | version_type=freebsd-elf | 
|  | 9202 | need_lib_prefix=no | 
|  | 9203 | need_version=no | 
|  | 9204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 9205 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9206 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9207 | hardcode_into_libs=yes | 
|  | 9208 | if test "$with_gnu_ld" = yes; then | 
|  | 9209 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | 
|  | 9210 | shlibpath_overrides_runpath=no | 
|  | 9211 | else | 
|  | 9212 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | 
|  | 9213 | shlibpath_overrides_runpath=yes | 
|  | 9214 | case $host_os in | 
|  | 9215 | sco3.2v5*) | 
|  | 9216 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | 
|  | 9217 | ;; | 
|  | 9218 | esac | 
|  | 9219 | fi | 
|  | 9220 | sys_lib_dlsearch_path_spec='/usr/lib' | 
|  | 9221 | ;; | 
|  | 9222 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9223 | uts4*) | 
|  | 9224 | version_type=linux | 
|  | 9225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 9226 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 9227 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 9228 | ;; | 
|  | 9229 |  | 
|  | 9230 | *) | 
|  | 9231 | dynamic_linker=no | 
|  | 9232 | ;; | 
|  | 9233 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9234 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
|  | 9235 | echo "${ECHO_T}$dynamic_linker" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9236 | test "$dynamic_linker" = no && can_build_shared=no | 
|  | 9237 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9238 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 9239 | if test "$GCC" = yes; then | 
|  | 9240 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 9241 | fi | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9242 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9243 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9244 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 | 
|  | 9245 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } | 
|  | 9246 | if test "${libltdl_cv_shlibext+set}" = set; then | 
|  | 9247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9248 | else | 
|  | 9249 |  | 
|  | 9250 | module=yes | 
|  | 9251 | eval libltdl_cv_shlibext=$shrext_cmds | 
|  | 9252 |  | 
|  | 9253 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9254 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 | 
|  | 9255 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9256 | if test -n "$libltdl_cv_shlibext"; then | 
|  | 9257 |  | 
|  | 9258 | cat >>confdefs.h <<_ACEOF | 
|  | 9259 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" | 
|  | 9260 | _ACEOF | 
|  | 9261 |  | 
|  | 9262 | fi | 
|  | 9263 |  | 
|  | 9264 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9265 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 | 
|  | 9266 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } | 
|  | 9267 | if test "${libltdl_cv_shlibpath_var+set}" = set; then | 
|  | 9268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9269 | else | 
|  | 9270 | libltdl_cv_shlibpath_var="$shlibpath_var" | 
|  | 9271 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9272 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 | 
|  | 9273 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9274 | if test -n "$libltdl_cv_shlibpath_var"; then | 
|  | 9275 |  | 
|  | 9276 | cat >>confdefs.h <<_ACEOF | 
|  | 9277 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" | 
|  | 9278 | _ACEOF | 
|  | 9279 |  | 
|  | 9280 | fi | 
|  | 9281 |  | 
|  | 9282 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9283 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 | 
|  | 9284 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } | 
|  | 9285 | if test "${libltdl_cv_sys_search_path+set}" = set; then | 
|  | 9286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9287 | else | 
|  | 9288 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" | 
|  | 9289 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9290 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 | 
|  | 9291 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9292 | if test -n "$libltdl_cv_sys_search_path"; then | 
|  | 9293 | sys_search_path= | 
|  | 9294 | for dir in $libltdl_cv_sys_search_path; do | 
|  | 9295 | if test -z "$sys_search_path"; then | 
|  | 9296 | sys_search_path="$dir" | 
|  | 9297 | else | 
|  | 9298 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" | 
|  | 9299 | fi | 
|  | 9300 | done | 
|  | 9301 |  | 
|  | 9302 | cat >>confdefs.h <<_ACEOF | 
|  | 9303 | #define LTDL_SYSSEARCHPATH "$sys_search_path" | 
|  | 9304 | _ACEOF | 
|  | 9305 |  | 
|  | 9306 | fi | 
|  | 9307 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9308 | { echo "$as_me:$LINENO: checking for objdir" >&5 | 
|  | 9309 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } | 
|  | 9310 | if test "${libltdl_cv_objdir+set}" = set; then | 
|  | 9311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9312 | else | 
|  | 9313 | libltdl_cv_objdir="$objdir" | 
|  | 9314 | if test -n "$objdir"; then | 
|  | 9315 | : | 
|  | 9316 | else | 
|  | 9317 | rm -f .libs 2>/dev/null | 
|  | 9318 | mkdir .libs 2>/dev/null | 
|  | 9319 | if test -d .libs; then | 
|  | 9320 | libltdl_cv_objdir=.libs | 
|  | 9321 | else | 
|  | 9322 | # MS-DOS does not allow filenames that begin with a dot. | 
|  | 9323 | libltdl_cv_objdir=_libs | 
|  | 9324 | fi | 
|  | 9325 | rmdir .libs 2>/dev/null | 
|  | 9326 | fi | 
|  | 9327 |  | 
|  | 9328 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9329 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 | 
|  | 9330 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9331 |  | 
|  | 9332 | cat >>confdefs.h <<_ACEOF | 
|  | 9333 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" | 
|  | 9334 | _ACEOF | 
|  | 9335 |  | 
|  | 9336 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9337 |  | 
|  | 9338 |  | 
|  | 9339 |  | 
|  | 9340 |  | 
|  | 9341 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9342 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | 
|  | 9343 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } | 
|  | 9344 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | 
|  | 9345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9346 | else | 
|  | 9347 |  | 
|  | 9348 | # These are sane defaults that work on at least a few old systems. | 
|  | 9349 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
|  | 9350 |  | 
|  | 9351 | # Character class describing NM global symbol codes. | 
|  | 9352 | symcode='[BCDEGRST]' | 
|  | 9353 |  | 
|  | 9354 | # Regexp to match symbols that can be accessed directly from C. | 
|  | 9355 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
|  | 9356 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9357 | # Transform an extracted symbol line into a proper C declaration | 
|  | 9358 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 
|  | 9359 |  | 
|  | 9360 | # Transform an extracted symbol line into symbol name and symbol address | 
|  | 9361 | 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'" | 
|  | 9362 |  | 
|  | 9363 | # Define system-specific variables. | 
|  | 9364 | case $host_os in | 
|  | 9365 | aix*) | 
|  | 9366 | symcode='[BCDT]' | 
|  | 9367 | ;; | 
|  | 9368 | cygwin* | mingw* | pw32*) | 
|  | 9369 | symcode='[ABCDGISTW]' | 
|  | 9370 | ;; | 
|  | 9371 | hpux*) # Its linker distinguishes data from code symbols | 
|  | 9372 | if test "$host_cpu" = ia64; then | 
|  | 9373 | symcode='[ABCDEGRST]' | 
|  | 9374 | fi | 
|  | 9375 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
|  | 9376 | 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'" | 
|  | 9377 | ;; | 
|  | 9378 | linux*) | 
|  | 9379 | if test "$host_cpu" = ia64; then | 
|  | 9380 | symcode='[ABCDGIRSTW]' | 
|  | 9381 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
|  | 9382 | 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'" | 
|  | 9383 | fi | 
|  | 9384 | ;; | 
|  | 9385 | irix* | nonstopux*) | 
|  | 9386 | symcode='[BCDEGRST]' | 
|  | 9387 | ;; | 
|  | 9388 | osf*) | 
|  | 9389 | symcode='[BCDEGQRST]' | 
|  | 9390 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9391 | solaris*) | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9392 | symcode='[BDRT]' | 
|  | 9393 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9394 | sco3.2v5*) | 
|  | 9395 | symcode='[DT]' | 
|  | 9396 | ;; | 
|  | 9397 | sysv4.2uw2*) | 
|  | 9398 | symcode='[DT]' | 
|  | 9399 | ;; | 
|  | 9400 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | 
|  | 9401 | symcode='[ABDT]' | 
|  | 9402 | ;; | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9403 | sysv4) | 
|  | 9404 | symcode='[DFNSTU]' | 
|  | 9405 | ;; | 
|  | 9406 | esac | 
|  | 9407 |  | 
|  | 9408 | # Handle CRLF in mingw tool chain | 
|  | 9409 | opt_cr= | 
|  | 9410 | case $build_os in | 
|  | 9411 | mingw*) | 
|  | 9412 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
|  | 9413 | ;; | 
|  | 9414 | esac | 
|  | 9415 |  | 
|  | 9416 | # If we're using GNU nm, then use its standard symbol codes. | 
|  | 9417 | case `$NM -V 2>&1` in | 
|  | 9418 | *GNU* | *'with BFD'*) | 
|  | 9419 | symcode='[ABCDGIRSTW]' ;; | 
|  | 9420 | esac | 
|  | 9421 |  | 
|  | 9422 | # Try without a prefix undercore, then with it. | 
|  | 9423 | for ac_symprfx in "" "_"; do | 
|  | 9424 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9425 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | 
|  | 9426 | symxfrm="\\1 $ac_symprfx\\2 \\2" | 
|  | 9427 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9428 | # Write the raw and C identifiers. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9429 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9430 |  | 
|  | 9431 | # Check to see that the pipe works correctly. | 
|  | 9432 | pipe_works=no | 
|  | 9433 |  | 
|  | 9434 | rm -f conftest* | 
|  | 9435 | cat > conftest.$ac_ext <<EOF | 
|  | 9436 | #ifdef __cplusplus | 
|  | 9437 | extern "C" { | 
|  | 9438 | #endif | 
|  | 9439 | char nm_test_var; | 
|  | 9440 | void nm_test_func(){} | 
|  | 9441 | #ifdef __cplusplus | 
|  | 9442 | } | 
|  | 9443 | #endif | 
|  | 9444 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
|  | 9445 | EOF | 
|  | 9446 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9448 | (eval $ac_compile) 2>&5 | 
|  | 9449 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9451 | (exit $ac_status); }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9452 | # Now try to grab the symbols. | 
|  | 9453 | nlist=conftest.nm | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9454 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9455 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | 
|  | 9456 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9458 | (exit $ac_status); } && test -s "$nlist"; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9459 | # Try sorting and uniquifying the output. | 
|  | 9460 | if sort "$nlist" | uniq > "$nlist"T; then | 
|  | 9461 | mv -f "$nlist"T "$nlist" | 
|  | 9462 | else | 
|  | 9463 | rm -f "$nlist"T | 
|  | 9464 | fi | 
|  | 9465 |  | 
|  | 9466 | # Make sure that we snagged all the symbols we need. | 
|  | 9467 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | 
|  | 9468 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | 
|  | 9469 | cat <<EOF > conftest.$ac_ext | 
|  | 9470 | #ifdef __cplusplus | 
|  | 9471 | extern "C" { | 
|  | 9472 | #endif | 
|  | 9473 |  | 
|  | 9474 | EOF | 
|  | 9475 | # Now generate the symbol file. | 
|  | 9476 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | 
|  | 9477 |  | 
|  | 9478 | cat <<EOF >> conftest.$ac_ext | 
|  | 9479 | #if defined (__STDC__) && __STDC__ | 
|  | 9480 | # define lt_ptr_t void * | 
|  | 9481 | #else | 
|  | 9482 | # define lt_ptr_t char * | 
|  | 9483 | # define const | 
|  | 9484 | #endif | 
|  | 9485 |  | 
|  | 9486 | /* The mapping between symbol names and symbols. */ | 
|  | 9487 | const struct { | 
|  | 9488 | const char *name; | 
|  | 9489 | lt_ptr_t address; | 
|  | 9490 | } | 
|  | 9491 | lt_preloaded_symbols[] = | 
|  | 9492 | { | 
|  | 9493 | EOF | 
|  | 9494 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | 
|  | 9495 | cat <<\EOF >> conftest.$ac_ext | 
|  | 9496 | {0, (lt_ptr_t) 0} | 
|  | 9497 | }; | 
|  | 9498 |  | 
|  | 9499 | #ifdef __cplusplus | 
|  | 9500 | } | 
|  | 9501 | #endif | 
|  | 9502 | EOF | 
|  | 9503 | # Now try linking the two files. | 
|  | 9504 | mv conftest.$ac_objext conftstm.$ac_objext | 
|  | 9505 | lt_save_LIBS="$LIBS" | 
|  | 9506 | lt_save_CFLAGS="$CFLAGS" | 
|  | 9507 | LIBS="conftstm.$ac_objext" | 
|  | 9508 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9510 | (eval $ac_link) 2>&5 | 
|  | 9511 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9513 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9514 | pipe_works=yes | 
|  | 9515 | fi | 
|  | 9516 | LIBS="$lt_save_LIBS" | 
|  | 9517 | CFLAGS="$lt_save_CFLAGS" | 
|  | 9518 | else | 
|  | 9519 | echo "cannot find nm_test_func in $nlist" >&5 | 
|  | 9520 | fi | 
|  | 9521 | else | 
|  | 9522 | echo "cannot find nm_test_var in $nlist" >&5 | 
|  | 9523 | fi | 
|  | 9524 | else | 
|  | 9525 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
|  | 9526 | fi | 
|  | 9527 | else | 
|  | 9528 | echo "$progname: failed program was:" >&5 | 
|  | 9529 | cat conftest.$ac_ext >&5 | 
|  | 9530 | fi | 
|  | 9531 | rm -f conftest* conftst* | 
|  | 9532 |  | 
|  | 9533 | # Do not use the global_symbol_pipe unless it works. | 
|  | 9534 | if test "$pipe_works" = yes; then | 
|  | 9535 | break | 
|  | 9536 | else | 
|  | 9537 | lt_cv_sys_global_symbol_pipe= | 
|  | 9538 | fi | 
|  | 9539 | done | 
|  | 9540 |  | 
|  | 9541 | fi | 
|  | 9542 |  | 
|  | 9543 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
|  | 9544 | lt_cv_sys_global_symbol_to_cdecl= | 
|  | 9545 | fi | 
|  | 9546 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9547 | { echo "$as_me:$LINENO: result: failed" >&5 | 
|  | 9548 | echo "${ECHO_T}failed" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9549 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9550 | { echo "$as_me:$LINENO: result: ok" >&5 | 
|  | 9551 | echo "${ECHO_T}ok" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9552 | fi | 
|  | 9553 |  | 
|  | 9554 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9555 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 | 
|  | 9556 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } | 
|  | 9557 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then | 
|  | 9558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9559 | else | 
|  | 9560 | if test -n "$lt_cv_sys_global_symbol_pipe"; then | 
|  | 9561 | libltdl_cv_preloaded_symbols=yes | 
|  | 9562 | else | 
|  | 9563 | libltdl_cv_preloaded_symbols=no | 
|  | 9564 | fi | 
|  | 9565 |  | 
|  | 9566 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9567 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 | 
|  | 9568 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9569 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | 
|  | 9570 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9571 | cat >>confdefs.h <<\_ACEOF | 
|  | 9572 | #define HAVE_PRELOADED_SYMBOLS 1 | 
|  | 9573 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9574 |  | 
|  | 9575 | fi | 
|  | 9576 |  | 
|  | 9577 | LIBADD_DL= | 
|  | 9578 |  | 
|  | 9579 | ac_ext=c | 
|  | 9580 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 9581 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 9582 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 9583 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 9584 |  | 
|  | 9585 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9586 | { echo "$as_me:$LINENO: checking for shl_load" >&5 | 
|  | 9587 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } | 
|  | 9588 | if test "${ac_cv_func_shl_load+set}" = set; then | 
|  | 9589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9590 | else | 
|  | 9591 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9592 | /* confdefs.h.  */ | 
|  | 9593 | _ACEOF | 
|  | 9594 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9595 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 9596 | /* end confdefs.h.  */ | 
|  | 9597 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
|  | 9598 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 9599 | #define shl_load innocuous_shl_load | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9600 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9601 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 9602 | which can conflict with char shl_load (); below. | 
|  | 9603 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 9604 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 9605 |  | 
|  | 9606 | #ifdef __STDC__ | 
|  | 9607 | # include <limits.h> | 
|  | 9608 | #else | 
|  | 9609 | # include <assert.h> | 
|  | 9610 | #endif | 
|  | 9611 |  | 
|  | 9612 | #undef shl_load | 
|  | 9613 |  | 
|  | 9614 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9615 | Use char because int might match the return type of a GCC | 
|  | 9616 | builtin and then its argument prototype would still apply.  */ | 
|  | 9617 | #ifdef __cplusplus | 
|  | 9618 | extern "C" | 
|  | 9619 | #endif | 
|  | 9620 | char shl_load (); | 
|  | 9621 | /* The GNU C library defines this for functions which it implements | 
|  | 9622 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 9623 | something starting with __ and the normal name is an alias.  */ | 
|  | 9624 | #if defined __stub_shl_load || defined __stub___shl_load | 
|  | 9625 | choke me | 
|  | 9626 | #endif | 
|  | 9627 |  | 
|  | 9628 | int | 
|  | 9629 | main () | 
|  | 9630 | { | 
|  | 9631 | return shl_load (); | 
|  | 9632 | ; | 
|  | 9633 | return 0; | 
|  | 9634 | } | 
|  | 9635 | _ACEOF | 
|  | 9636 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9637 | if { (ac_try="$ac_link" | 
|  | 9638 | case "(($ac_try" in | 
|  | 9639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9640 | *) ac_try_echo=$ac_try;; | 
|  | 9641 | esac | 
|  | 9642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9643 | (eval "$ac_link") 2>conftest.er1 | 
|  | 9644 | ac_status=$? | 
|  | 9645 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9646 | rm -f conftest.er1 | 
|  | 9647 | cat conftest.err >&5 | 
|  | 9648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9649 | (exit $ac_status); } && | 
|  | 9650 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 9651 | { (case "(($ac_try" in | 
|  | 9652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9653 | *) ac_try_echo=$ac_try;; | 
|  | 9654 | esac | 
|  | 9655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9656 | (eval "$ac_try") 2>&5 | 
|  | 9657 | ac_status=$? | 
|  | 9658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9659 | (exit $ac_status); }; } && | 
|  | 9660 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9661 | { (case "(($ac_try" in | 
|  | 9662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9663 | *) ac_try_echo=$ac_try;; | 
|  | 9664 | esac | 
|  | 9665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9666 | (eval "$ac_try") 2>&5 | 
|  | 9667 | ac_status=$? | 
|  | 9668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9669 | (exit $ac_status); }; }; then | 
|  | 9670 | ac_cv_func_shl_load=yes | 
|  | 9671 | else | 
|  | 9672 | echo "$as_me: failed program was:" >&5 | 
|  | 9673 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9674 |  | 
|  | 9675 | ac_cv_func_shl_load=no | 
|  | 9676 | fi | 
|  | 9677 |  | 
|  | 9678 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9679 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9680 | fi | 
|  | 9681 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
|  | 9682 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } | 
|  | 9683 | if test $ac_cv_func_shl_load = yes; then | 
|  | 9684 |  | 
|  | 9685 | cat >>confdefs.h <<\_ACEOF | 
|  | 9686 | #define HAVE_SHL_LOAD 1 | 
|  | 9687 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9688 |  | 
|  | 9689 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9690 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
|  | 9691 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } | 
|  | 9692 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
|  | 9693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9694 | else | 
|  | 9695 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9696 | LIBS="-ldld  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9697 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9698 | /* confdefs.h.  */ | 
|  | 9699 | _ACEOF | 
|  | 9700 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9701 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9702 | /* end confdefs.h.  */ | 
|  | 9703 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9704 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9705 | Use char because int might match the return type of a GCC | 
|  | 9706 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9707 | #ifdef __cplusplus | 
|  | 9708 | extern "C" | 
|  | 9709 | #endif | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9710 | char shl_load (); | 
|  | 9711 | int | 
|  | 9712 | main () | 
|  | 9713 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9714 | return shl_load (); | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9715 | ; | 
|  | 9716 | return 0; | 
|  | 9717 | } | 
|  | 9718 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9719 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9720 | if { (ac_try="$ac_link" | 
|  | 9721 | case "(($ac_try" in | 
|  | 9722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9723 | *) ac_try_echo=$ac_try;; | 
|  | 9724 | esac | 
|  | 9725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9726 | (eval "$ac_link") 2>conftest.er1 | 
|  | 9727 | ac_status=$? | 
|  | 9728 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9729 | rm -f conftest.er1 | 
|  | 9730 | cat conftest.err >&5 | 
|  | 9731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9732 | (exit $ac_status); } && | 
|  | 9733 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 9734 | { (case "(($ac_try" in | 
|  | 9735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9736 | *) ac_try_echo=$ac_try;; | 
|  | 9737 | esac | 
|  | 9738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9739 | (eval "$ac_try") 2>&5 | 
|  | 9740 | ac_status=$? | 
|  | 9741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9742 | (exit $ac_status); }; } && | 
|  | 9743 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9744 | { (case "(($ac_try" in | 
|  | 9745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9746 | *) ac_try_echo=$ac_try;; | 
|  | 9747 | esac | 
|  | 9748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9749 | (eval "$ac_try") 2>&5 | 
|  | 9750 | ac_status=$? | 
|  | 9751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9752 | (exit $ac_status); }; }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9753 | ac_cv_lib_dld_shl_load=yes | 
|  | 9754 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9755 | echo "$as_me: failed program was:" >&5 | 
|  | 9756 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9757 |  | 
|  | 9758 | ac_cv_lib_dld_shl_load=no | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9759 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9760 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9761 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9762 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9763 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9764 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9765 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 9766 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } | 
|  | 9767 | if test $ac_cv_lib_dld_shl_load = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9768 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9769 | cat >>confdefs.h <<\_ACEOF | 
|  | 9770 | #define HAVE_SHL_LOAD 1 | 
|  | 9771 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9772 |  | 
|  | 9773 | LIBADD_DL="$LIBADD_DL -ldld" | 
|  | 9774 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9775 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 9776 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | 
|  | 9777 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 9778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9779 | else | 
|  | 9780 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9781 | LIBS="-ldl  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9782 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9783 | /* confdefs.h.  */ | 
|  | 9784 | _ACEOF | 
|  | 9785 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9786 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9787 | /* end confdefs.h.  */ | 
|  | 9788 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9789 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9790 | Use char because int might match the return type of a GCC | 
|  | 9791 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9792 | #ifdef __cplusplus | 
|  | 9793 | extern "C" | 
|  | 9794 | #endif | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9795 | char dlopen (); | 
|  | 9796 | int | 
|  | 9797 | main () | 
|  | 9798 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9799 | return dlopen (); | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9800 | ; | 
|  | 9801 | return 0; | 
|  | 9802 | } | 
|  | 9803 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9804 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9805 | if { (ac_try="$ac_link" | 
|  | 9806 | case "(($ac_try" in | 
|  | 9807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9808 | *) ac_try_echo=$ac_try;; | 
|  | 9809 | esac | 
|  | 9810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9811 | (eval "$ac_link") 2>conftest.er1 | 
|  | 9812 | ac_status=$? | 
|  | 9813 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9814 | rm -f conftest.er1 | 
|  | 9815 | cat conftest.err >&5 | 
|  | 9816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9817 | (exit $ac_status); } && | 
|  | 9818 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 9819 | { (case "(($ac_try" in | 
|  | 9820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9821 | *) ac_try_echo=$ac_try;; | 
|  | 9822 | esac | 
|  | 9823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9824 | (eval "$ac_try") 2>&5 | 
|  | 9825 | ac_status=$? | 
|  | 9826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9827 | (exit $ac_status); }; } && | 
|  | 9828 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9829 | { (case "(($ac_try" in | 
|  | 9830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9831 | *) ac_try_echo=$ac_try;; | 
|  | 9832 | esac | 
|  | 9833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9834 | (eval "$ac_try") 2>&5 | 
|  | 9835 | ac_status=$? | 
|  | 9836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9837 | (exit $ac_status); }; }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9838 | ac_cv_lib_dl_dlopen=yes | 
|  | 9839 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9840 | echo "$as_me: failed program was:" >&5 | 
|  | 9841 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9842 |  | 
|  | 9843 | ac_cv_lib_dl_dlopen=no | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9844 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9845 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9846 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9847 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9848 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9849 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9850 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 9851 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | 
|  | 9852 | if test $ac_cv_lib_dl_dlopen = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9853 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9854 | cat >>confdefs.h <<\_ACEOF | 
|  | 9855 | #define HAVE_LIBDL 1 | 
|  | 9856 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9857 |  | 
|  | 9858 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" | 
|  | 9859 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9860 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9861 | /* confdefs.h.  */ | 
|  | 9862 | _ACEOF | 
|  | 9863 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9864 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9865 | /* end confdefs.h.  */ | 
|  | 9866 | #if HAVE_DLFCN_H | 
|  | 9867 | #  include <dlfcn.h> | 
|  | 9868 | #endif | 
|  | 9869 |  | 
|  | 9870 | int | 
|  | 9871 | main () | 
|  | 9872 | { | 
|  | 9873 | dlopen(0, 0); | 
|  | 9874 | ; | 
|  | 9875 | return 0; | 
|  | 9876 | } | 
|  | 9877 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9878 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9879 | if { (ac_try="$ac_link" | 
|  | 9880 | case "(($ac_try" in | 
|  | 9881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9882 | *) ac_try_echo=$ac_try;; | 
|  | 9883 | esac | 
|  | 9884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9885 | (eval "$ac_link") 2>conftest.er1 | 
|  | 9886 | ac_status=$? | 
|  | 9887 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9888 | rm -f conftest.er1 | 
|  | 9889 | cat conftest.err >&5 | 
|  | 9890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9891 | (exit $ac_status); } && | 
|  | 9892 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 9893 | { (case "(($ac_try" in | 
|  | 9894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9895 | *) ac_try_echo=$ac_try;; | 
|  | 9896 | esac | 
|  | 9897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9898 | (eval "$ac_try") 2>&5 | 
|  | 9899 | ac_status=$? | 
|  | 9900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9901 | (exit $ac_status); }; } && | 
|  | 9902 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9903 | { (case "(($ac_try" in | 
|  | 9904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9905 | *) ac_try_echo=$ac_try;; | 
|  | 9906 | esac | 
|  | 9907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9908 | (eval "$ac_try") 2>&5 | 
|  | 9909 | ac_status=$? | 
|  | 9910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9911 | (exit $ac_status); }; }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9912 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9913 | cat >>confdefs.h <<\_ACEOF | 
|  | 9914 | #define HAVE_LIBDL 1 | 
|  | 9915 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9916 | libltdl_cv_func_dlopen="yes" | 
|  | 9917 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9918 | echo "$as_me: failed program was:" >&5 | 
|  | 9919 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9920 |  | 
|  | 9921 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
|  | 9922 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } | 
|  | 9923 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
|  | 9924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9925 | else | 
|  | 9926 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9927 | LIBS="-lsvld  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9928 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9929 | /* confdefs.h.  */ | 
|  | 9930 | _ACEOF | 
|  | 9931 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9932 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9933 | /* end confdefs.h.  */ | 
|  | 9934 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9935 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9936 | Use char because int might match the return type of a GCC | 
|  | 9937 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9938 | #ifdef __cplusplus | 
|  | 9939 | extern "C" | 
|  | 9940 | #endif | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9941 | char dlopen (); | 
|  | 9942 | int | 
|  | 9943 | main () | 
|  | 9944 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9945 | return dlopen (); | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9946 | ; | 
|  | 9947 | return 0; | 
|  | 9948 | } | 
|  | 9949 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9950 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9951 | if { (ac_try="$ac_link" | 
|  | 9952 | case "(($ac_try" in | 
|  | 9953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9954 | *) ac_try_echo=$ac_try;; | 
|  | 9955 | esac | 
|  | 9956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9957 | (eval "$ac_link") 2>conftest.er1 | 
|  | 9958 | ac_status=$? | 
|  | 9959 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9960 | rm -f conftest.er1 | 
|  | 9961 | cat conftest.err >&5 | 
|  | 9962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9963 | (exit $ac_status); } && | 
|  | 9964 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 9965 | { (case "(($ac_try" in | 
|  | 9966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9967 | *) ac_try_echo=$ac_try;; | 
|  | 9968 | esac | 
|  | 9969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9970 | (eval "$ac_try") 2>&5 | 
|  | 9971 | ac_status=$? | 
|  | 9972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9973 | (exit $ac_status); }; } && | 
|  | 9974 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9975 | { (case "(($ac_try" in | 
|  | 9976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 9977 | *) ac_try_echo=$ac_try;; | 
|  | 9978 | esac | 
|  | 9979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 9980 | (eval "$ac_try") 2>&5 | 
|  | 9981 | ac_status=$? | 
|  | 9982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9983 | (exit $ac_status); }; }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9984 | ac_cv_lib_svld_dlopen=yes | 
|  | 9985 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9986 | echo "$as_me: failed program was:" >&5 | 
|  | 9987 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9988 |  | 
|  | 9989 | ac_cv_lib_svld_dlopen=no | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9990 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9991 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9992 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9993 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9994 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9995 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9996 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
|  | 9997 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } | 
|  | 9998 | if test $ac_cv_lib_svld_dlopen = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9999 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10000 | cat >>confdefs.h <<\_ACEOF | 
|  | 10001 | #define HAVE_LIBDL 1 | 
|  | 10002 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10003 |  | 
|  | 10004 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" | 
|  | 10005 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10006 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
|  | 10007 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } | 
|  | 10008 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
|  | 10009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10010 | else | 
|  | 10011 | ac_check_lib_save_LIBS=$LIBS | 
|  | 10012 | LIBS="-ldld  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10013 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10014 | /* confdefs.h.  */ | 
|  | 10015 | _ACEOF | 
|  | 10016 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10017 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10018 | /* end confdefs.h.  */ | 
|  | 10019 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10020 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10021 | Use char because int might match the return type of a GCC | 
|  | 10022 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10023 | #ifdef __cplusplus | 
|  | 10024 | extern "C" | 
|  | 10025 | #endif | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10026 | char dld_link (); | 
|  | 10027 | int | 
|  | 10028 | main () | 
|  | 10029 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10030 | return dld_link (); | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10031 | ; | 
|  | 10032 | return 0; | 
|  | 10033 | } | 
|  | 10034 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10035 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 10036 | if { (ac_try="$ac_link" | 
|  | 10037 | case "(($ac_try" in | 
|  | 10038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10039 | *) ac_try_echo=$ac_try;; | 
|  | 10040 | esac | 
|  | 10041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10042 | (eval "$ac_link") 2>conftest.er1 | 
|  | 10043 | ac_status=$? | 
|  | 10044 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10045 | rm -f conftest.er1 | 
|  | 10046 | cat conftest.err >&5 | 
|  | 10047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10048 | (exit $ac_status); } && | 
|  | 10049 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 10050 | { (case "(($ac_try" in | 
|  | 10051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10052 | *) ac_try_echo=$ac_try;; | 
|  | 10053 | esac | 
|  | 10054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10055 | (eval "$ac_try") 2>&5 | 
|  | 10056 | ac_status=$? | 
|  | 10057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10058 | (exit $ac_status); }; } && | 
|  | 10059 | { ac_try='test -s conftest$ac_exeext' | 
|  | 10060 | { (case "(($ac_try" in | 
|  | 10061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10062 | *) ac_try_echo=$ac_try;; | 
|  | 10063 | esac | 
|  | 10064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10065 | (eval "$ac_try") 2>&5 | 
|  | 10066 | ac_status=$? | 
|  | 10067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10068 | (exit $ac_status); }; }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10069 | ac_cv_lib_dld_dld_link=yes | 
|  | 10070 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10071 | echo "$as_me: failed program was:" >&5 | 
|  | 10072 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10073 |  | 
|  | 10074 | ac_cv_lib_dld_dld_link=no | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10075 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10076 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10077 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10078 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10079 | LIBS=$ac_check_lib_save_LIBS | 
|  | 10080 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10081 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
|  | 10082 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } | 
|  | 10083 | if test $ac_cv_lib_dld_dld_link = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10084 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10085 | cat >>confdefs.h <<\_ACEOF | 
|  | 10086 | #define HAVE_DLD 1 | 
|  | 10087 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10088 |  | 
|  | 10089 | LIBADD_DL="$LIBADD_DL -ldld" | 
|  | 10090 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10091 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 | 
|  | 10092 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } | 
|  | 10093 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then | 
|  | 10094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10095 | else | 
|  | 10096 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10097 | /* confdefs.h.  */ | 
|  | 10098 | _ACEOF | 
|  | 10099 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10100 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10101 | /* end confdefs.h.  */ | 
|  | 10102 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. | 
|  | 10103 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 10104 | #define _dyld_func_lookup innocuous__dyld_func_lookup | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10105 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10106 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 10107 | which can conflict with char _dyld_func_lookup (); below. | 
|  | 10108 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 10109 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10110 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10111 | #ifdef __STDC__ | 
|  | 10112 | # include <limits.h> | 
|  | 10113 | #else | 
|  | 10114 | # include <assert.h> | 
|  | 10115 | #endif | 
|  | 10116 |  | 
|  | 10117 | #undef _dyld_func_lookup | 
|  | 10118 |  | 
|  | 10119 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10120 | Use char because int might match the return type of a GCC | 
|  | 10121 | builtin and then its argument prototype would still apply.  */ | 
|  | 10122 | #ifdef __cplusplus | 
|  | 10123 | extern "C" | 
|  | 10124 | #endif | 
|  | 10125 | char _dyld_func_lookup (); | 
|  | 10126 | /* The GNU C library defines this for functions which it implements | 
|  | 10127 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 10128 | something starting with __ and the normal name is an alias.  */ | 
|  | 10129 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup | 
|  | 10130 | choke me | 
|  | 10131 | #endif | 
|  | 10132 |  | 
|  | 10133 | int | 
|  | 10134 | main () | 
|  | 10135 | { | 
|  | 10136 | return _dyld_func_lookup (); | 
|  | 10137 | ; | 
|  | 10138 | return 0; | 
|  | 10139 | } | 
|  | 10140 | _ACEOF | 
|  | 10141 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 10142 | if { (ac_try="$ac_link" | 
|  | 10143 | case "(($ac_try" in | 
|  | 10144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10145 | *) ac_try_echo=$ac_try;; | 
|  | 10146 | esac | 
|  | 10147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10148 | (eval "$ac_link") 2>conftest.er1 | 
|  | 10149 | ac_status=$? | 
|  | 10150 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10151 | rm -f conftest.er1 | 
|  | 10152 | cat conftest.err >&5 | 
|  | 10153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10154 | (exit $ac_status); } && | 
|  | 10155 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 10156 | { (case "(($ac_try" in | 
|  | 10157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10158 | *) ac_try_echo=$ac_try;; | 
|  | 10159 | esac | 
|  | 10160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10161 | (eval "$ac_try") 2>&5 | 
|  | 10162 | ac_status=$? | 
|  | 10163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10164 | (exit $ac_status); }; } && | 
|  | 10165 | { ac_try='test -s conftest$ac_exeext' | 
|  | 10166 | { (case "(($ac_try" in | 
|  | 10167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10168 | *) ac_try_echo=$ac_try;; | 
|  | 10169 | esac | 
|  | 10170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10171 | (eval "$ac_try") 2>&5 | 
|  | 10172 | ac_status=$? | 
|  | 10173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10174 | (exit $ac_status); }; }; then | 
|  | 10175 | ac_cv_func__dyld_func_lookup=yes | 
|  | 10176 | else | 
|  | 10177 | echo "$as_me: failed program was:" >&5 | 
|  | 10178 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10179 |  | 
|  | 10180 | ac_cv_func__dyld_func_lookup=no | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10181 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10182 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10183 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10184 | conftest$ac_exeext conftest.$ac_ext | 
|  | 10185 | fi | 
|  | 10186 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 | 
|  | 10187 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } | 
|  | 10188 | if test $ac_cv_func__dyld_func_lookup = yes; then | 
|  | 10189 |  | 
|  | 10190 | cat >>confdefs.h <<\_ACEOF | 
|  | 10191 | #define HAVE_DYLD 1 | 
|  | 10192 | _ACEOF | 
|  | 10193 |  | 
|  | 10194 | fi | 
|  | 10195 |  | 
|  | 10196 |  | 
|  | 10197 | fi | 
|  | 10198 |  | 
|  | 10199 |  | 
|  | 10200 | fi | 
|  | 10201 |  | 
|  | 10202 |  | 
|  | 10203 | fi | 
|  | 10204 |  | 
|  | 10205 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10206 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10207 |  | 
|  | 10208 | fi | 
|  | 10209 |  | 
|  | 10210 |  | 
|  | 10211 | fi | 
|  | 10212 |  | 
|  | 10213 |  | 
|  | 10214 | fi | 
|  | 10215 |  | 
|  | 10216 |  | 
|  | 10217 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes | 
|  | 10218 | then | 
|  | 10219 | lt_save_LIBS="$LIBS" | 
|  | 10220 | LIBS="$LIBS $LIBADD_DL" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10221 |  | 
|  | 10222 | for ac_func in dlerror | 
|  | 10223 | do | 
|  | 10224 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 10225 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 10226 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 10227 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 10228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10229 | else | 
|  | 10230 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10231 | /* confdefs.h.  */ | 
|  | 10232 | _ACEOF | 
|  | 10233 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10234 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10235 | /* end confdefs.h.  */ | 
|  | 10236 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 10237 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 10238 | #define $ac_func innocuous_$ac_func | 
|  | 10239 |  | 
|  | 10240 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 10241 | which can conflict with char $ac_func (); below. | 
|  | 10242 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 10243 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 10244 |  | 
|  | 10245 | #ifdef __STDC__ | 
|  | 10246 | # include <limits.h> | 
|  | 10247 | #else | 
|  | 10248 | # include <assert.h> | 
|  | 10249 | #endif | 
|  | 10250 |  | 
|  | 10251 | #undef $ac_func | 
|  | 10252 |  | 
|  | 10253 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10254 | Use char because int might match the return type of a GCC | 
|  | 10255 | builtin and then its argument prototype would still apply.  */ | 
|  | 10256 | #ifdef __cplusplus | 
|  | 10257 | extern "C" | 
|  | 10258 | #endif | 
|  | 10259 | char $ac_func (); | 
|  | 10260 | /* The GNU C library defines this for functions which it implements | 
|  | 10261 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 10262 | something starting with __ and the normal name is an alias.  */ | 
|  | 10263 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 10264 | choke me | 
|  | 10265 | #endif | 
|  | 10266 |  | 
|  | 10267 | int | 
|  | 10268 | main () | 
|  | 10269 | { | 
|  | 10270 | return $ac_func (); | 
|  | 10271 | ; | 
|  | 10272 | return 0; | 
|  | 10273 | } | 
|  | 10274 | _ACEOF | 
|  | 10275 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 10276 | if { (ac_try="$ac_link" | 
|  | 10277 | case "(($ac_try" in | 
|  | 10278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10279 | *) ac_try_echo=$ac_try;; | 
|  | 10280 | esac | 
|  | 10281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10282 | (eval "$ac_link") 2>conftest.er1 | 
|  | 10283 | ac_status=$? | 
|  | 10284 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10285 | rm -f conftest.er1 | 
|  | 10286 | cat conftest.err >&5 | 
|  | 10287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10288 | (exit $ac_status); } && | 
|  | 10289 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 10290 | { (case "(($ac_try" in | 
|  | 10291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10292 | *) ac_try_echo=$ac_try;; | 
|  | 10293 | esac | 
|  | 10294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10295 | (eval "$ac_try") 2>&5 | 
|  | 10296 | ac_status=$? | 
|  | 10297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10298 | (exit $ac_status); }; } && | 
|  | 10299 | { ac_try='test -s conftest$ac_exeext' | 
|  | 10300 | { (case "(($ac_try" in | 
|  | 10301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10302 | *) ac_try_echo=$ac_try;; | 
|  | 10303 | esac | 
|  | 10304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10305 | (eval "$ac_try") 2>&5 | 
|  | 10306 | ac_status=$? | 
|  | 10307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10308 | (exit $ac_status); }; }; then | 
|  | 10309 | eval "$as_ac_var=yes" | 
|  | 10310 | else | 
|  | 10311 | echo "$as_me: failed program was:" >&5 | 
|  | 10312 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10313 |  | 
|  | 10314 | eval "$as_ac_var=no" | 
|  | 10315 | fi | 
|  | 10316 |  | 
|  | 10317 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10318 | conftest$ac_exeext conftest.$ac_ext | 
|  | 10319 | fi | 
|  | 10320 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 10321 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 10322 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 10323 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10324 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10325 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10326 | _ACEOF | 
|  | 10327 |  | 
|  | 10328 | fi | 
|  | 10329 | done | 
|  | 10330 |  | 
|  | 10331 | LIBS="$lt_save_LIBS" | 
|  | 10332 | fi | 
|  | 10333 | ac_ext=c | 
|  | 10334 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 10335 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 10336 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 10337 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 10338 |  | 
|  | 10339 |  | 
|  | 10340 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10341 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 | 
|  | 10342 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } | 
|  | 10343 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then | 
|  | 10344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10345 | else | 
|  | 10346 | ac_cv_sys_symbol_underscore=no | 
|  | 10347 | cat > conftest.$ac_ext <<EOF | 
|  | 10348 | void nm_test_func(){} | 
|  | 10349 | int main(){nm_test_func;return 0;} | 
|  | 10350 | EOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10352 | (eval $ac_compile) 2>&5 | 
|  | 10353 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10355 | (exit $ac_status); }; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10356 | # Now try to grab the symbols. | 
|  | 10357 | ac_nlist=conftest.nm | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10358 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10359 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | 
|  | 10360 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10362 | (exit $ac_status); } && test -s "$ac_nlist"; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10363 | # See whether the symbols have a leading underscore. | 
|  | 10364 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | 
|  | 10365 | ac_cv_sys_symbol_underscore=yes | 
|  | 10366 | else | 
|  | 10367 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | 
|  | 10368 | : | 
|  | 10369 | else | 
|  | 10370 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | 
|  | 10371 | fi | 
|  | 10372 | fi | 
|  | 10373 | else | 
|  | 10374 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
|  | 10375 | fi | 
|  | 10376 | else | 
|  | 10377 | echo "configure: failed program was:" >&5 | 
|  | 10378 | cat conftest.c >&5 | 
|  | 10379 | fi | 
|  | 10380 | rm -rf conftest* | 
|  | 10381 |  | 
|  | 10382 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10383 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 | 
|  | 10384 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10385 |  | 
|  | 10386 |  | 
|  | 10387 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then | 
|  | 10388 | if test x"$libltdl_cv_func_dlopen" = xyes || | 
|  | 10389 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10390 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 | 
|  | 10391 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } | 
|  | 10392 | if test "${libltdl_cv_need_uscore+set}" = set; then | 
|  | 10393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10394 | else | 
|  | 10395 | libltdl_cv_need_uscore=unknown | 
|  | 10396 | save_LIBS="$LIBS" | 
|  | 10397 | LIBS="$LIBS $LIBADD_DL" | 
|  | 10398 | if test "$cross_compiling" = yes; then : | 
|  | 10399 | libltdl_cv_need_uscore=cross | 
|  | 10400 | else | 
|  | 10401 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 10402 | lt_status=$lt_dlunknown | 
|  | 10403 | cat > conftest.$ac_ext <<EOF | 
| Sebastian Pop | 5c9e184 | 2012-04-16 04:11:45 +0000 | [diff] [blame] | 10404 | #line 10404 "configure" | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10405 | #include "confdefs.h" | 
|  | 10406 |  | 
|  | 10407 | #if HAVE_DLFCN_H | 
|  | 10408 | #include <dlfcn.h> | 
|  | 10409 | #endif | 
|  | 10410 |  | 
|  | 10411 | #include <stdio.h> | 
|  | 10412 |  | 
|  | 10413 | #ifdef RTLD_GLOBAL | 
|  | 10414 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 10415 | #else | 
|  | 10416 | #  ifdef DL_GLOBAL | 
|  | 10417 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 10418 | #  else | 
|  | 10419 | #    define LT_DLGLOBAL		0 | 
|  | 10420 | #  endif | 
|  | 10421 | #endif | 
|  | 10422 |  | 
|  | 10423 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 10424 | find out it does not work in some platform. */ | 
|  | 10425 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 10426 | #  ifdef RTLD_LAZY | 
|  | 10427 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 10428 | #  else | 
|  | 10429 | #    ifdef DL_LAZY | 
|  | 10430 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 10431 | #    else | 
|  | 10432 | #      ifdef RTLD_NOW | 
|  | 10433 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 10434 | #      else | 
|  | 10435 | #        ifdef DL_NOW | 
|  | 10436 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 10437 | #        else | 
|  | 10438 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 10439 | #        endif | 
|  | 10440 | #      endif | 
|  | 10441 | #    endif | 
|  | 10442 | #  endif | 
|  | 10443 | #endif | 
|  | 10444 |  | 
|  | 10445 | #ifdef __cplusplus | 
|  | 10446 | extern "C" void exit (int); | 
|  | 10447 | #endif | 
|  | 10448 |  | 
|  | 10449 | void fnord() { int i=42;} | 
|  | 10450 | int main () | 
|  | 10451 | { | 
|  | 10452 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 10453 | int status = $lt_dlunknown; | 
|  | 10454 |  | 
|  | 10455 | if (self) | 
|  | 10456 | { | 
|  | 10457 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 10458 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 10459 | /* dlclose (self); */ | 
|  | 10460 | } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10461 | else | 
|  | 10462 | puts (dlerror ()); | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10463 |  | 
|  | 10464 | exit (status); | 
|  | 10465 | } | 
|  | 10466 | EOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10468 | (eval $ac_link) 2>&5 | 
|  | 10469 | ac_status=$? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10471 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10472 | (./conftest; exit; ) >&5 2>/dev/null | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10473 | lt_status=$? | 
|  | 10474 | case x$lt_status in | 
|  | 10475 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | 
|  | 10476 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10477 | x$lt_dlunknown|x*)  ;; | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10478 | esac | 
|  | 10479 | else : | 
|  | 10480 | # compilation failed | 
|  | 10481 |  | 
|  | 10482 | fi | 
|  | 10483 | fi | 
|  | 10484 | rm -fr conftest* | 
|  | 10485 |  | 
|  | 10486 | LIBS="$save_LIBS" | 
|  | 10487 |  | 
|  | 10488 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10489 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 | 
|  | 10490 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10491 | fi | 
|  | 10492 | fi | 
|  | 10493 |  | 
|  | 10494 | if test x"$libltdl_cv_need_uscore" = xyes; then | 
|  | 10495 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10496 | cat >>confdefs.h <<\_ACEOF | 
|  | 10497 | #define NEED_USCORE 1 | 
|  | 10498 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10499 |  | 
|  | 10500 | fi | 
|  | 10501 |  | 
|  | 10502 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10503 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 | 
|  | 10504 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } | 
|  | 10505 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then | 
|  | 10506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10507 | else | 
|  | 10508 | # PORTME does your system automatically load deplibs for dlopen? | 
|  | 10509 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | 
|  | 10510 | # For now, we just catch OSes we know something about -- in the | 
|  | 10511 | # future, we'll try test this programmatically. | 
|  | 10512 | libltdl_cv_sys_dlopen_deplibs=unknown | 
|  | 10513 | case "$host_os" in | 
|  | 10514 | aix3*|aix4.1.*|aix4.2.*) | 
|  | 10515 | # Unknown whether this is true for these versions of AIX, but | 
|  | 10516 | # we want this `case' here to explicitly catch those versions. | 
|  | 10517 | libltdl_cv_sys_dlopen_deplibs=unknown | 
|  | 10518 | ;; | 
|  | 10519 | aix[45]*) | 
|  | 10520 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10521 | ;; | 
|  | 10522 | darwin*) | 
|  | 10523 | # Assuming the user has installed a libdl from somewhere, this is true | 
|  | 10524 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | 
|  | 10525 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10526 | ;; | 
|  | 10527 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) | 
|  | 10528 | # GNU and its variants, using gnu ld.so (Glibc) | 
|  | 10529 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10530 | ;; | 
|  | 10531 | hpux10*|hpux11*) | 
|  | 10532 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10533 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10534 | interix*) | 
|  | 10535 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10536 | ;; | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10537 | irix[12345]*|irix6.[01]*) | 
|  | 10538 | # Catch all versions of IRIX before 6.2, and indicate that we don't | 
|  | 10539 | # know how it worked for any of those versions. | 
|  | 10540 | libltdl_cv_sys_dlopen_deplibs=unknown | 
|  | 10541 | ;; | 
|  | 10542 | irix*) | 
|  | 10543 | # The case above catches anything before 6.2, and it's known that | 
|  | 10544 | # at 6.2 and later dlopen does load deplibs. | 
|  | 10545 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10546 | ;; | 
|  | 10547 | netbsd*) | 
|  | 10548 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10549 | ;; | 
|  | 10550 | openbsd*) | 
|  | 10551 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10552 | ;; | 
|  | 10553 | osf[1234]*) | 
|  | 10554 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | 
|  | 10555 | # it did *not* use an RPATH in a shared library to find objects the | 
| Chris Lattner | 0ab5e2c | 2011-04-15 05:18:47 +0000 | [diff] [blame] | 10556 | # library depends on, so we explicitly say `no'. | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10557 | libltdl_cv_sys_dlopen_deplibs=no | 
|  | 10558 | ;; | 
|  | 10559 | osf5.0|osf5.0a|osf5.1) | 
|  | 10560 | # dlopen *does* load deplibs and with the right loader patch applied | 
|  | 10561 | # it even uses RPATH in a shared library to search for shared objects | 
|  | 10562 | # that the library depends on, but there's no easy way to know if that | 
|  | 10563 | # patch is installed.  Since this is the case, all we can really | 
|  | 10564 | # say is unknown -- it depends on the patch being installed.  If | 
|  | 10565 | # it is, this changes to `yes'.  Without it, it would be `no'. | 
|  | 10566 | libltdl_cv_sys_dlopen_deplibs=unknown | 
|  | 10567 | ;; | 
|  | 10568 | osf*) | 
|  | 10569 | # the two cases above should catch all versions of osf <= 5.1.  Read | 
|  | 10570 | # the comments above for what we know about them. | 
|  | 10571 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | 
|  | 10572 | # is used to find them so we can finally say `yes'. | 
|  | 10573 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10574 | ;; | 
|  | 10575 | solaris*) | 
|  | 10576 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10577 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10578 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
|  | 10579 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 10580 | ;; | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10581 | esac | 
|  | 10582 |  | 
|  | 10583 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10584 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 | 
|  | 10585 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10586 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then | 
|  | 10587 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10588 | cat >>confdefs.h <<\_ACEOF | 
|  | 10589 | #define LTDL_DLOPEN_DEPLIBS 1 | 
|  | 10590 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10591 |  | 
|  | 10592 | fi | 
|  | 10593 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10594 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10595 | for ac_header in argz.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10596 | do | 
|  | 10597 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 10598 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 10599 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 10600 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 10601 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 10602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10603 | fi | 
|  | 10604 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 10605 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 10606 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 10607 | else | 
|  | 10608 | # Is the header compilable? | 
|  | 10609 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 10610 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 10611 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10612 | /* confdefs.h.  */ | 
|  | 10613 | _ACEOF | 
|  | 10614 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10615 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10616 | /* end confdefs.h.  */ | 
|  | 10617 | $ac_includes_default | 
|  | 10618 | #include <$ac_header> | 
|  | 10619 | _ACEOF | 
|  | 10620 | rm -f conftest.$ac_objext | 
|  | 10621 | if { (ac_try="$ac_compile" | 
|  | 10622 | case "(($ac_try" in | 
|  | 10623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10624 | *) ac_try_echo=$ac_try;; | 
|  | 10625 | esac | 
|  | 10626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10627 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 10628 | ac_status=$? | 
|  | 10629 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10630 | rm -f conftest.er1 | 
|  | 10631 | cat conftest.err >&5 | 
|  | 10632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10633 | (exit $ac_status); } && | 
|  | 10634 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 10635 | { (case "(($ac_try" in | 
|  | 10636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10637 | *) ac_try_echo=$ac_try;; | 
|  | 10638 | esac | 
|  | 10639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10640 | (eval "$ac_try") 2>&5 | 
|  | 10641 | ac_status=$? | 
|  | 10642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10643 | (exit $ac_status); }; } && | 
|  | 10644 | { ac_try='test -s conftest.$ac_objext' | 
|  | 10645 | { (case "(($ac_try" in | 
|  | 10646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10647 | *) ac_try_echo=$ac_try;; | 
|  | 10648 | esac | 
|  | 10649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10650 | (eval "$ac_try") 2>&5 | 
|  | 10651 | ac_status=$? | 
|  | 10652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10653 | (exit $ac_status); }; }; then | 
|  | 10654 | ac_header_compiler=yes | 
|  | 10655 | else | 
|  | 10656 | echo "$as_me: failed program was:" >&5 | 
|  | 10657 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10658 |  | 
|  | 10659 | ac_header_compiler=no | 
|  | 10660 | fi | 
|  | 10661 |  | 
|  | 10662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 10663 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 10664 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 10665 |  | 
|  | 10666 | # Is the header present? | 
|  | 10667 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 10668 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 10669 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10670 | /* confdefs.h.  */ | 
|  | 10671 | _ACEOF | 
|  | 10672 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10673 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10674 | /* end confdefs.h.  */ | 
|  | 10675 | #include <$ac_header> | 
|  | 10676 | _ACEOF | 
|  | 10677 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 10678 | case "(($ac_try" in | 
|  | 10679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10680 | *) ac_try_echo=$ac_try;; | 
|  | 10681 | esac | 
|  | 10682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10683 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 10684 | ac_status=$? | 
|  | 10685 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10686 | rm -f conftest.er1 | 
|  | 10687 | cat conftest.err >&5 | 
|  | 10688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10689 | (exit $ac_status); } >/dev/null; then | 
|  | 10690 | if test -s conftest.err; then | 
|  | 10691 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 10692 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 10693 | else | 
|  | 10694 | ac_cpp_err= | 
|  | 10695 | fi | 
|  | 10696 | else | 
|  | 10697 | ac_cpp_err=yes | 
|  | 10698 | fi | 
|  | 10699 | if test -z "$ac_cpp_err"; then | 
|  | 10700 | ac_header_preproc=yes | 
|  | 10701 | else | 
|  | 10702 | echo "$as_me: failed program was:" >&5 | 
|  | 10703 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10704 |  | 
|  | 10705 | ac_header_preproc=no | 
|  | 10706 | fi | 
|  | 10707 |  | 
|  | 10708 | rm -f conftest.err conftest.$ac_ext | 
|  | 10709 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 10710 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 10711 |  | 
|  | 10712 | # So?  What about this header? | 
|  | 10713 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 10714 | yes:no: ) | 
|  | 10715 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 10716 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 10717 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 10718 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 10719 | ac_header_preproc=yes | 
|  | 10720 | ;; | 
|  | 10721 | no:yes:* ) | 
|  | 10722 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 10723 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 10724 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 10725 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 10726 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 10727 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 10728 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 10729 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 10730 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 10731 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 10732 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 10733 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 10734 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 10735 | ## ------------------------------------ ## | 
|  | 10736 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 10737 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10738 | _ASBOX | 
|  | 10739 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 10740 | ;; | 
|  | 10741 | esac | 
|  | 10742 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 10743 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 10744 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 10745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10746 | else | 
|  | 10747 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 10748 | fi | 
|  | 10749 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 10750 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 10751 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 10752 |  | 
|  | 10753 | fi | 
|  | 10754 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10755 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10756 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10757 | _ACEOF | 
|  | 10758 |  | 
|  | 10759 | fi | 
|  | 10760 |  | 
|  | 10761 | done | 
|  | 10762 |  | 
|  | 10763 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10764 | { echo "$as_me:$LINENO: checking for error_t" >&5 | 
|  | 10765 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } | 
|  | 10766 | if test "${ac_cv_type_error_t+set}" = set; then | 
|  | 10767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10768 | else | 
|  | 10769 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10770 | /* confdefs.h.  */ | 
|  | 10771 | _ACEOF | 
|  | 10772 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10773 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10774 | /* end confdefs.h.  */ | 
|  | 10775 | #if HAVE_ARGZ_H | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10776 | #  include <argz.h> | 
|  | 10777 | #endif | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10778 |  | 
|  | 10779 | typedef error_t ac__type_new_; | 
|  | 10780 | int | 
|  | 10781 | main () | 
|  | 10782 | { | 
|  | 10783 | if ((ac__type_new_ *) 0) | 
|  | 10784 | return 0; | 
|  | 10785 | if (sizeof (ac__type_new_)) | 
|  | 10786 | return 0; | 
|  | 10787 | ; | 
|  | 10788 | return 0; | 
|  | 10789 | } | 
|  | 10790 | _ACEOF | 
|  | 10791 | rm -f conftest.$ac_objext | 
|  | 10792 | if { (ac_try="$ac_compile" | 
|  | 10793 | case "(($ac_try" in | 
|  | 10794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10795 | *) ac_try_echo=$ac_try;; | 
|  | 10796 | esac | 
|  | 10797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10798 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 10799 | ac_status=$? | 
|  | 10800 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10801 | rm -f conftest.er1 | 
|  | 10802 | cat conftest.err >&5 | 
|  | 10803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10804 | (exit $ac_status); } && | 
|  | 10805 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 10806 | { (case "(($ac_try" in | 
|  | 10807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10808 | *) ac_try_echo=$ac_try;; | 
|  | 10809 | esac | 
|  | 10810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10811 | (eval "$ac_try") 2>&5 | 
|  | 10812 | ac_status=$? | 
|  | 10813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10814 | (exit $ac_status); }; } && | 
|  | 10815 | { ac_try='test -s conftest.$ac_objext' | 
|  | 10816 | { (case "(($ac_try" in | 
|  | 10817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10818 | *) ac_try_echo=$ac_try;; | 
|  | 10819 | esac | 
|  | 10820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10821 | (eval "$ac_try") 2>&5 | 
|  | 10822 | ac_status=$? | 
|  | 10823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10824 | (exit $ac_status); }; }; then | 
|  | 10825 | ac_cv_type_error_t=yes | 
|  | 10826 | else | 
|  | 10827 | echo "$as_me: failed program was:" >&5 | 
|  | 10828 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10829 |  | 
|  | 10830 | ac_cv_type_error_t=no | 
|  | 10831 | fi | 
|  | 10832 |  | 
|  | 10833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 10834 | fi | 
|  | 10835 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 | 
|  | 10836 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } | 
|  | 10837 | if test $ac_cv_type_error_t = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10838 |  | 
|  | 10839 | cat >>confdefs.h <<_ACEOF | 
|  | 10840 | #define HAVE_ERROR_T 1 | 
|  | 10841 | _ACEOF | 
|  | 10842 |  | 
|  | 10843 |  | 
|  | 10844 | else | 
|  | 10845 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10846 | cat >>confdefs.h <<\_ACEOF | 
|  | 10847 | #define error_t int | 
|  | 10848 | _ACEOF | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10849 |  | 
|  | 10850 | fi | 
|  | 10851 |  | 
|  | 10852 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10853 |  | 
|  | 10854 |  | 
|  | 10855 |  | 
|  | 10856 |  | 
|  | 10857 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10858 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10859 | do | 
|  | 10860 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 10861 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 10862 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 10863 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 10864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10865 | else | 
|  | 10866 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10867 | /* confdefs.h.  */ | 
|  | 10868 | _ACEOF | 
|  | 10869 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10870 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10871 | /* end confdefs.h.  */ | 
|  | 10872 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 10873 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 10874 | #define $ac_func innocuous_$ac_func | 
|  | 10875 |  | 
|  | 10876 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 10877 | which can conflict with char $ac_func (); below. | 
|  | 10878 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 10879 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 10880 |  | 
|  | 10881 | #ifdef __STDC__ | 
|  | 10882 | # include <limits.h> | 
|  | 10883 | #else | 
|  | 10884 | # include <assert.h> | 
|  | 10885 | #endif | 
|  | 10886 |  | 
|  | 10887 | #undef $ac_func | 
|  | 10888 |  | 
|  | 10889 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10890 | Use char because int might match the return type of a GCC | 
|  | 10891 | builtin and then its argument prototype would still apply.  */ | 
|  | 10892 | #ifdef __cplusplus | 
|  | 10893 | extern "C" | 
|  | 10894 | #endif | 
|  | 10895 | char $ac_func (); | 
|  | 10896 | /* The GNU C library defines this for functions which it implements | 
|  | 10897 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 10898 | something starting with __ and the normal name is an alias.  */ | 
|  | 10899 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 10900 | choke me | 
|  | 10901 | #endif | 
|  | 10902 |  | 
|  | 10903 | int | 
|  | 10904 | main () | 
|  | 10905 | { | 
|  | 10906 | return $ac_func (); | 
|  | 10907 | ; | 
|  | 10908 | return 0; | 
|  | 10909 | } | 
|  | 10910 | _ACEOF | 
|  | 10911 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 10912 | if { (ac_try="$ac_link" | 
|  | 10913 | case "(($ac_try" in | 
|  | 10914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10915 | *) ac_try_echo=$ac_try;; | 
|  | 10916 | esac | 
|  | 10917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10918 | (eval "$ac_link") 2>conftest.er1 | 
|  | 10919 | ac_status=$? | 
|  | 10920 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10921 | rm -f conftest.er1 | 
|  | 10922 | cat conftest.err >&5 | 
|  | 10923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10924 | (exit $ac_status); } && | 
|  | 10925 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 10926 | { (case "(($ac_try" in | 
|  | 10927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10928 | *) ac_try_echo=$ac_try;; | 
|  | 10929 | esac | 
|  | 10930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10931 | (eval "$ac_try") 2>&5 | 
|  | 10932 | ac_status=$? | 
|  | 10933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10934 | (exit $ac_status); }; } && | 
|  | 10935 | { ac_try='test -s conftest$ac_exeext' | 
|  | 10936 | { (case "(($ac_try" in | 
|  | 10937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 10938 | *) ac_try_echo=$ac_try;; | 
|  | 10939 | esac | 
|  | 10940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 10941 | (eval "$ac_try") 2>&5 | 
|  | 10942 | ac_status=$? | 
|  | 10943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10944 | (exit $ac_status); }; }; then | 
|  | 10945 | eval "$as_ac_var=yes" | 
|  | 10946 | else | 
|  | 10947 | echo "$as_me: failed program was:" >&5 | 
|  | 10948 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10949 |  | 
|  | 10950 | eval "$as_ac_var=no" | 
|  | 10951 | fi | 
|  | 10952 |  | 
|  | 10953 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10954 | conftest$ac_exeext conftest.$ac_ext | 
|  | 10955 | fi | 
|  | 10956 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 10957 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 10958 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 10959 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10960 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10961 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10962 | _ACEOF | 
|  | 10963 |  | 
|  | 10964 | fi | 
|  | 10965 | done | 
|  | 10966 |  | 
|  | 10967 |  | 
|  | 10968 |  | 
|  | 10969 |  | 
|  | 10970 |  | 
|  | 10971 |  | 
|  | 10972 |  | 
|  | 10973 |  | 
|  | 10974 |  | 
|  | 10975 |  | 
|  | 10976 |  | 
|  | 10977 |  | 
|  | 10978 |  | 
|  | 10979 |  | 
|  | 10980 |  | 
|  | 10981 |  | 
|  | 10982 |  | 
|  | 10983 |  | 
|  | 10984 |  | 
|  | 10985 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10986 |  | 
|  | 10987 |  | 
|  | 10988 |  | 
|  | 10989 |  | 
|  | 10990 |  | 
|  | 10991 |  | 
|  | 10992 |  | 
|  | 10993 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10994 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ | 
|  | 10995 | stdio.h unistd.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10996 | do | 
|  | 10997 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 10998 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 10999 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 11000 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 11001 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11003 | fi | 
|  | 11004 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 11005 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11006 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11007 | else | 
|  | 11008 | # Is the header compilable? | 
|  | 11009 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 11010 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 11011 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11012 | /* confdefs.h.  */ | 
|  | 11013 | _ACEOF | 
|  | 11014 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11015 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11016 | /* end confdefs.h.  */ | 
|  | 11017 | $ac_includes_default | 
|  | 11018 | #include <$ac_header> | 
|  | 11019 | _ACEOF | 
|  | 11020 | rm -f conftest.$ac_objext | 
|  | 11021 | if { (ac_try="$ac_compile" | 
|  | 11022 | case "(($ac_try" in | 
|  | 11023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11024 | *) ac_try_echo=$ac_try;; | 
|  | 11025 | esac | 
|  | 11026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11027 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 11028 | ac_status=$? | 
|  | 11029 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11030 | rm -f conftest.er1 | 
|  | 11031 | cat conftest.err >&5 | 
|  | 11032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11033 | (exit $ac_status); } && | 
|  | 11034 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 11035 | { (case "(($ac_try" in | 
|  | 11036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11037 | *) ac_try_echo=$ac_try;; | 
|  | 11038 | esac | 
|  | 11039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11040 | (eval "$ac_try") 2>&5 | 
|  | 11041 | ac_status=$? | 
|  | 11042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11043 | (exit $ac_status); }; } && | 
|  | 11044 | { ac_try='test -s conftest.$ac_objext' | 
|  | 11045 | { (case "(($ac_try" in | 
|  | 11046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11047 | *) ac_try_echo=$ac_try;; | 
|  | 11048 | esac | 
|  | 11049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11050 | (eval "$ac_try") 2>&5 | 
|  | 11051 | ac_status=$? | 
|  | 11052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11053 | (exit $ac_status); }; }; then | 
|  | 11054 | ac_header_compiler=yes | 
|  | 11055 | else | 
|  | 11056 | echo "$as_me: failed program was:" >&5 | 
|  | 11057 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11058 |  | 
|  | 11059 | ac_header_compiler=no | 
|  | 11060 | fi | 
|  | 11061 |  | 
|  | 11062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11063 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 11064 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 11065 |  | 
|  | 11066 | # Is the header present? | 
|  | 11067 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 11068 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 11069 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11070 | /* confdefs.h.  */ | 
|  | 11071 | _ACEOF | 
|  | 11072 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11073 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11074 | /* end confdefs.h.  */ | 
|  | 11075 | #include <$ac_header> | 
|  | 11076 | _ACEOF | 
|  | 11077 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 11078 | case "(($ac_try" in | 
|  | 11079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11080 | *) ac_try_echo=$ac_try;; | 
|  | 11081 | esac | 
|  | 11082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11083 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 11084 | ac_status=$? | 
|  | 11085 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11086 | rm -f conftest.er1 | 
|  | 11087 | cat conftest.err >&5 | 
|  | 11088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11089 | (exit $ac_status); } >/dev/null; then | 
|  | 11090 | if test -s conftest.err; then | 
|  | 11091 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 11092 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 11093 | else | 
|  | 11094 | ac_cpp_err= | 
|  | 11095 | fi | 
|  | 11096 | else | 
|  | 11097 | ac_cpp_err=yes | 
|  | 11098 | fi | 
|  | 11099 | if test -z "$ac_cpp_err"; then | 
|  | 11100 | ac_header_preproc=yes | 
|  | 11101 | else | 
|  | 11102 | echo "$as_me: failed program was:" >&5 | 
|  | 11103 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11104 |  | 
|  | 11105 | ac_header_preproc=no | 
|  | 11106 | fi | 
|  | 11107 |  | 
|  | 11108 | rm -f conftest.err conftest.$ac_ext | 
|  | 11109 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 11110 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 11111 |  | 
|  | 11112 | # So?  What about this header? | 
|  | 11113 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 11114 | yes:no: ) | 
|  | 11115 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 11116 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 11117 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 11118 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 11119 | ac_header_preproc=yes | 
|  | 11120 | ;; | 
|  | 11121 | no:yes:* ) | 
|  | 11122 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 11123 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 11124 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 11125 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 11126 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 11127 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 11128 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 11129 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 11130 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 11131 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 11132 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 11133 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 11134 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11135 | ## ------------------------------------ ## | 
|  | 11136 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 11137 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11138 | _ASBOX | 
|  | 11139 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 11140 | ;; | 
|  | 11141 | esac | 
|  | 11142 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 11143 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 11144 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11146 | else | 
|  | 11147 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 11148 | fi | 
|  | 11149 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 11150 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11151 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11152 |  | 
|  | 11153 | fi | 
|  | 11154 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11155 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11156 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11157 | _ACEOF | 
|  | 11158 |  | 
|  | 11159 | fi | 
|  | 11160 |  | 
|  | 11161 | done | 
|  | 11162 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11163 |  | 
|  | 11164 |  | 
|  | 11165 |  | 
|  | 11166 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11167 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11168 | do | 
|  | 11169 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 11170 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11171 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 11172 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 11173 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11175 | fi | 
|  | 11176 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 11177 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11178 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11179 | else | 
|  | 11180 | # Is the header compilable? | 
|  | 11181 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 11182 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 11183 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11184 | /* confdefs.h.  */ | 
|  | 11185 | _ACEOF | 
|  | 11186 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11187 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11188 | /* end confdefs.h.  */ | 
|  | 11189 | $ac_includes_default | 
|  | 11190 | #include <$ac_header> | 
|  | 11191 | _ACEOF | 
|  | 11192 | rm -f conftest.$ac_objext | 
|  | 11193 | if { (ac_try="$ac_compile" | 
|  | 11194 | case "(($ac_try" in | 
|  | 11195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11196 | *) ac_try_echo=$ac_try;; | 
|  | 11197 | esac | 
|  | 11198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11199 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 11200 | ac_status=$? | 
|  | 11201 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11202 | rm -f conftest.er1 | 
|  | 11203 | cat conftest.err >&5 | 
|  | 11204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11205 | (exit $ac_status); } && | 
|  | 11206 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 11207 | { (case "(($ac_try" in | 
|  | 11208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11209 | *) ac_try_echo=$ac_try;; | 
|  | 11210 | esac | 
|  | 11211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11212 | (eval "$ac_try") 2>&5 | 
|  | 11213 | ac_status=$? | 
|  | 11214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11215 | (exit $ac_status); }; } && | 
|  | 11216 | { ac_try='test -s conftest.$ac_objext' | 
|  | 11217 | { (case "(($ac_try" in | 
|  | 11218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11219 | *) ac_try_echo=$ac_try;; | 
|  | 11220 | esac | 
|  | 11221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11222 | (eval "$ac_try") 2>&5 | 
|  | 11223 | ac_status=$? | 
|  | 11224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11225 | (exit $ac_status); }; }; then | 
|  | 11226 | ac_header_compiler=yes | 
|  | 11227 | else | 
|  | 11228 | echo "$as_me: failed program was:" >&5 | 
|  | 11229 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11230 |  | 
|  | 11231 | ac_header_compiler=no | 
|  | 11232 | fi | 
|  | 11233 |  | 
|  | 11234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11235 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 11236 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 11237 |  | 
|  | 11238 | # Is the header present? | 
|  | 11239 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 11240 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 11241 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11242 | /* confdefs.h.  */ | 
|  | 11243 | _ACEOF | 
|  | 11244 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11245 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11246 | /* end confdefs.h.  */ | 
|  | 11247 | #include <$ac_header> | 
|  | 11248 | _ACEOF | 
|  | 11249 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 11250 | case "(($ac_try" in | 
|  | 11251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11252 | *) ac_try_echo=$ac_try;; | 
|  | 11253 | esac | 
|  | 11254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11255 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 11256 | ac_status=$? | 
|  | 11257 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11258 | rm -f conftest.er1 | 
|  | 11259 | cat conftest.err >&5 | 
|  | 11260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11261 | (exit $ac_status); } >/dev/null; then | 
|  | 11262 | if test -s conftest.err; then | 
|  | 11263 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 11264 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 11265 | else | 
|  | 11266 | ac_cpp_err= | 
|  | 11267 | fi | 
|  | 11268 | else | 
|  | 11269 | ac_cpp_err=yes | 
|  | 11270 | fi | 
|  | 11271 | if test -z "$ac_cpp_err"; then | 
|  | 11272 | ac_header_preproc=yes | 
|  | 11273 | else | 
|  | 11274 | echo "$as_me: failed program was:" >&5 | 
|  | 11275 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11276 |  | 
|  | 11277 | ac_header_preproc=no | 
|  | 11278 | fi | 
|  | 11279 |  | 
|  | 11280 | rm -f conftest.err conftest.$ac_ext | 
|  | 11281 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 11282 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 11283 |  | 
|  | 11284 | # So?  What about this header? | 
|  | 11285 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 11286 | yes:no: ) | 
|  | 11287 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 11288 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 11289 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 11290 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 11291 | ac_header_preproc=yes | 
|  | 11292 | ;; | 
|  | 11293 | no:yes:* ) | 
|  | 11294 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 11295 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 11296 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 11297 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 11298 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 11299 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 11300 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 11301 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 11302 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 11303 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 11304 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 11305 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 11306 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11307 | ## ------------------------------------ ## | 
|  | 11308 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 11309 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11310 | _ASBOX | 
|  | 11311 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 11312 | ;; | 
|  | 11313 | esac | 
|  | 11314 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 11315 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 11316 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11318 | else | 
|  | 11319 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 11320 | fi | 
|  | 11321 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 11322 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11323 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11324 |  | 
|  | 11325 | fi | 
|  | 11326 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11327 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11328 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11329 | _ACEOF | 
|  | 11330 |  | 
|  | 11331 | fi | 
|  | 11332 |  | 
|  | 11333 | done | 
|  | 11334 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11335 |  | 
|  | 11336 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11337 | for ac_header in string.h strings.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11338 | do | 
|  | 11339 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 11340 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11341 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 11342 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 11343 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11345 | fi | 
|  | 11346 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 11347 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11348 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11349 | else | 
|  | 11350 | # Is the header compilable? | 
|  | 11351 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 11352 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 11353 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11354 | /* confdefs.h.  */ | 
|  | 11355 | _ACEOF | 
|  | 11356 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11357 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11358 | /* end confdefs.h.  */ | 
|  | 11359 | $ac_includes_default | 
|  | 11360 | #include <$ac_header> | 
|  | 11361 | _ACEOF | 
|  | 11362 | rm -f conftest.$ac_objext | 
|  | 11363 | if { (ac_try="$ac_compile" | 
|  | 11364 | case "(($ac_try" in | 
|  | 11365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11366 | *) ac_try_echo=$ac_try;; | 
|  | 11367 | esac | 
|  | 11368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11369 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 11370 | ac_status=$? | 
|  | 11371 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11372 | rm -f conftest.er1 | 
|  | 11373 | cat conftest.err >&5 | 
|  | 11374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11375 | (exit $ac_status); } && | 
|  | 11376 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 11377 | { (case "(($ac_try" in | 
|  | 11378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11379 | *) ac_try_echo=$ac_try;; | 
|  | 11380 | esac | 
|  | 11381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11382 | (eval "$ac_try") 2>&5 | 
|  | 11383 | ac_status=$? | 
|  | 11384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11385 | (exit $ac_status); }; } && | 
|  | 11386 | { ac_try='test -s conftest.$ac_objext' | 
|  | 11387 | { (case "(($ac_try" in | 
|  | 11388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11389 | *) ac_try_echo=$ac_try;; | 
|  | 11390 | esac | 
|  | 11391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11392 | (eval "$ac_try") 2>&5 | 
|  | 11393 | ac_status=$? | 
|  | 11394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11395 | (exit $ac_status); }; }; then | 
|  | 11396 | ac_header_compiler=yes | 
|  | 11397 | else | 
|  | 11398 | echo "$as_me: failed program was:" >&5 | 
|  | 11399 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11400 |  | 
|  | 11401 | ac_header_compiler=no | 
|  | 11402 | fi | 
|  | 11403 |  | 
|  | 11404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11405 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 11406 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 11407 |  | 
|  | 11408 | # Is the header present? | 
|  | 11409 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 11410 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 11411 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11412 | /* confdefs.h.  */ | 
|  | 11413 | _ACEOF | 
|  | 11414 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11415 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11416 | /* end confdefs.h.  */ | 
|  | 11417 | #include <$ac_header> | 
|  | 11418 | _ACEOF | 
|  | 11419 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 11420 | case "(($ac_try" in | 
|  | 11421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11422 | *) ac_try_echo=$ac_try;; | 
|  | 11423 | esac | 
|  | 11424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11425 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 11426 | ac_status=$? | 
|  | 11427 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11428 | rm -f conftest.er1 | 
|  | 11429 | cat conftest.err >&5 | 
|  | 11430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11431 | (exit $ac_status); } >/dev/null; then | 
|  | 11432 | if test -s conftest.err; then | 
|  | 11433 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 11434 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 11435 | else | 
|  | 11436 | ac_cpp_err= | 
|  | 11437 | fi | 
|  | 11438 | else | 
|  | 11439 | ac_cpp_err=yes | 
|  | 11440 | fi | 
|  | 11441 | if test -z "$ac_cpp_err"; then | 
|  | 11442 | ac_header_preproc=yes | 
|  | 11443 | else | 
|  | 11444 | echo "$as_me: failed program was:" >&5 | 
|  | 11445 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11446 |  | 
|  | 11447 | ac_header_preproc=no | 
|  | 11448 | fi | 
|  | 11449 |  | 
|  | 11450 | rm -f conftest.err conftest.$ac_ext | 
|  | 11451 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 11452 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 11453 |  | 
|  | 11454 | # So?  What about this header? | 
|  | 11455 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 11456 | yes:no: ) | 
|  | 11457 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 11458 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 11459 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 11460 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 11461 | ac_header_preproc=yes | 
|  | 11462 | ;; | 
|  | 11463 | no:yes:* ) | 
|  | 11464 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 11465 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 11466 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 11467 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 11468 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 11469 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 11470 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 11471 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 11472 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 11473 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 11474 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 11475 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 11476 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11477 | ## ------------------------------------ ## | 
|  | 11478 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 11479 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11480 | _ASBOX | 
|  | 11481 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 11482 | ;; | 
|  | 11483 | esac | 
|  | 11484 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 11485 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 11486 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11488 | else | 
|  | 11489 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 11490 | fi | 
|  | 11491 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 11492 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11493 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11494 |  | 
|  | 11495 | fi | 
|  | 11496 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11497 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11498 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11499 | _ACEOF | 
|  | 11500 | break | 
|  | 11501 | fi | 
|  | 11502 |  | 
|  | 11503 | done | 
|  | 11504 |  | 
|  | 11505 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11506 |  | 
|  | 11507 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11508 | for ac_func in strchr index | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11509 | do | 
|  | 11510 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11511 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 11512 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 11513 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11515 | else | 
|  | 11516 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11517 | /* confdefs.h.  */ | 
|  | 11518 | _ACEOF | 
|  | 11519 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11520 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11521 | /* end confdefs.h.  */ | 
|  | 11522 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 11523 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 11524 | #define $ac_func innocuous_$ac_func | 
|  | 11525 |  | 
|  | 11526 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 11527 | which can conflict with char $ac_func (); below. | 
|  | 11528 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 11529 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 11530 |  | 
|  | 11531 | #ifdef __STDC__ | 
|  | 11532 | # include <limits.h> | 
|  | 11533 | #else | 
|  | 11534 | # include <assert.h> | 
|  | 11535 | #endif | 
|  | 11536 |  | 
|  | 11537 | #undef $ac_func | 
|  | 11538 |  | 
|  | 11539 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11540 | Use char because int might match the return type of a GCC | 
|  | 11541 | builtin and then its argument prototype would still apply.  */ | 
|  | 11542 | #ifdef __cplusplus | 
|  | 11543 | extern "C" | 
|  | 11544 | #endif | 
|  | 11545 | char $ac_func (); | 
|  | 11546 | /* The GNU C library defines this for functions which it implements | 
|  | 11547 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 11548 | something starting with __ and the normal name is an alias.  */ | 
|  | 11549 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 11550 | choke me | 
|  | 11551 | #endif | 
|  | 11552 |  | 
|  | 11553 | int | 
|  | 11554 | main () | 
|  | 11555 | { | 
|  | 11556 | return $ac_func (); | 
|  | 11557 | ; | 
|  | 11558 | return 0; | 
|  | 11559 | } | 
|  | 11560 | _ACEOF | 
|  | 11561 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11562 | if { (ac_try="$ac_link" | 
|  | 11563 | case "(($ac_try" in | 
|  | 11564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11565 | *) ac_try_echo=$ac_try;; | 
|  | 11566 | esac | 
|  | 11567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11568 | (eval "$ac_link") 2>conftest.er1 | 
|  | 11569 | ac_status=$? | 
|  | 11570 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11571 | rm -f conftest.er1 | 
|  | 11572 | cat conftest.err >&5 | 
|  | 11573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11574 | (exit $ac_status); } && | 
|  | 11575 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 11576 | { (case "(($ac_try" in | 
|  | 11577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11578 | *) ac_try_echo=$ac_try;; | 
|  | 11579 | esac | 
|  | 11580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11581 | (eval "$ac_try") 2>&5 | 
|  | 11582 | ac_status=$? | 
|  | 11583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11584 | (exit $ac_status); }; } && | 
|  | 11585 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11586 | { (case "(($ac_try" in | 
|  | 11587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11588 | *) ac_try_echo=$ac_try;; | 
|  | 11589 | esac | 
|  | 11590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11591 | (eval "$ac_try") 2>&5 | 
|  | 11592 | ac_status=$? | 
|  | 11593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11594 | (exit $ac_status); }; }; then | 
|  | 11595 | eval "$as_ac_var=yes" | 
|  | 11596 | else | 
|  | 11597 | echo "$as_me: failed program was:" >&5 | 
|  | 11598 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11599 |  | 
|  | 11600 | eval "$as_ac_var=no" | 
|  | 11601 | fi | 
|  | 11602 |  | 
|  | 11603 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11604 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11605 | fi | 
|  | 11606 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 11607 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11608 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11609 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11610 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11611 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11612 | _ACEOF | 
|  | 11613 | break | 
|  | 11614 | fi | 
|  | 11615 | done | 
|  | 11616 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11617 |  | 
|  | 11618 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11619 | for ac_func in strrchr rindex | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11620 | do | 
|  | 11621 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11622 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 11623 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 11624 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11626 | else | 
|  | 11627 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11628 | /* confdefs.h.  */ | 
|  | 11629 | _ACEOF | 
|  | 11630 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11631 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11632 | /* end confdefs.h.  */ | 
|  | 11633 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 11634 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 11635 | #define $ac_func innocuous_$ac_func | 
|  | 11636 |  | 
|  | 11637 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 11638 | which can conflict with char $ac_func (); below. | 
|  | 11639 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 11640 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 11641 |  | 
|  | 11642 | #ifdef __STDC__ | 
|  | 11643 | # include <limits.h> | 
|  | 11644 | #else | 
|  | 11645 | # include <assert.h> | 
|  | 11646 | #endif | 
|  | 11647 |  | 
|  | 11648 | #undef $ac_func | 
|  | 11649 |  | 
|  | 11650 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11651 | Use char because int might match the return type of a GCC | 
|  | 11652 | builtin and then its argument prototype would still apply.  */ | 
|  | 11653 | #ifdef __cplusplus | 
|  | 11654 | extern "C" | 
|  | 11655 | #endif | 
|  | 11656 | char $ac_func (); | 
|  | 11657 | /* The GNU C library defines this for functions which it implements | 
|  | 11658 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 11659 | something starting with __ and the normal name is an alias.  */ | 
|  | 11660 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 11661 | choke me | 
|  | 11662 | #endif | 
|  | 11663 |  | 
|  | 11664 | int | 
|  | 11665 | main () | 
|  | 11666 | { | 
|  | 11667 | return $ac_func (); | 
|  | 11668 | ; | 
|  | 11669 | return 0; | 
|  | 11670 | } | 
|  | 11671 | _ACEOF | 
|  | 11672 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11673 | if { (ac_try="$ac_link" | 
|  | 11674 | case "(($ac_try" in | 
|  | 11675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11676 | *) ac_try_echo=$ac_try;; | 
|  | 11677 | esac | 
|  | 11678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11679 | (eval "$ac_link") 2>conftest.er1 | 
|  | 11680 | ac_status=$? | 
|  | 11681 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11682 | rm -f conftest.er1 | 
|  | 11683 | cat conftest.err >&5 | 
|  | 11684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11685 | (exit $ac_status); } && | 
|  | 11686 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 11687 | { (case "(($ac_try" in | 
|  | 11688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11689 | *) ac_try_echo=$ac_try;; | 
|  | 11690 | esac | 
|  | 11691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11692 | (eval "$ac_try") 2>&5 | 
|  | 11693 | ac_status=$? | 
|  | 11694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11695 | (exit $ac_status); }; } && | 
|  | 11696 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11697 | { (case "(($ac_try" in | 
|  | 11698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11699 | *) ac_try_echo=$ac_try;; | 
|  | 11700 | esac | 
|  | 11701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11702 | (eval "$ac_try") 2>&5 | 
|  | 11703 | ac_status=$? | 
|  | 11704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11705 | (exit $ac_status); }; }; then | 
|  | 11706 | eval "$as_ac_var=yes" | 
|  | 11707 | else | 
|  | 11708 | echo "$as_me: failed program was:" >&5 | 
|  | 11709 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11710 |  | 
|  | 11711 | eval "$as_ac_var=no" | 
|  | 11712 | fi | 
|  | 11713 |  | 
|  | 11714 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11715 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11716 | fi | 
|  | 11717 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 11718 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11719 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11720 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11721 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11722 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11723 | _ACEOF | 
|  | 11724 | break | 
|  | 11725 | fi | 
|  | 11726 | done | 
|  | 11727 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11728 |  | 
|  | 11729 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11730 | for ac_func in memcpy bcopy | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11731 | do | 
|  | 11732 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11733 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 11734 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 11735 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11737 | else | 
|  | 11738 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11739 | /* confdefs.h.  */ | 
|  | 11740 | _ACEOF | 
|  | 11741 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11742 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11743 | /* end confdefs.h.  */ | 
|  | 11744 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 11745 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 11746 | #define $ac_func innocuous_$ac_func | 
|  | 11747 |  | 
|  | 11748 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 11749 | which can conflict with char $ac_func (); below. | 
|  | 11750 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 11751 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 11752 |  | 
|  | 11753 | #ifdef __STDC__ | 
|  | 11754 | # include <limits.h> | 
|  | 11755 | #else | 
|  | 11756 | # include <assert.h> | 
|  | 11757 | #endif | 
|  | 11758 |  | 
|  | 11759 | #undef $ac_func | 
|  | 11760 |  | 
|  | 11761 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11762 | Use char because int might match the return type of a GCC | 
|  | 11763 | builtin and then its argument prototype would still apply.  */ | 
|  | 11764 | #ifdef __cplusplus | 
|  | 11765 | extern "C" | 
|  | 11766 | #endif | 
|  | 11767 | char $ac_func (); | 
|  | 11768 | /* The GNU C library defines this for functions which it implements | 
|  | 11769 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 11770 | something starting with __ and the normal name is an alias.  */ | 
|  | 11771 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 11772 | choke me | 
|  | 11773 | #endif | 
|  | 11774 |  | 
|  | 11775 | int | 
|  | 11776 | main () | 
|  | 11777 | { | 
|  | 11778 | return $ac_func (); | 
|  | 11779 | ; | 
|  | 11780 | return 0; | 
|  | 11781 | } | 
|  | 11782 | _ACEOF | 
|  | 11783 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11784 | if { (ac_try="$ac_link" | 
|  | 11785 | case "(($ac_try" in | 
|  | 11786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11787 | *) ac_try_echo=$ac_try;; | 
|  | 11788 | esac | 
|  | 11789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11790 | (eval "$ac_link") 2>conftest.er1 | 
|  | 11791 | ac_status=$? | 
|  | 11792 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11793 | rm -f conftest.er1 | 
|  | 11794 | cat conftest.err >&5 | 
|  | 11795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11796 | (exit $ac_status); } && | 
|  | 11797 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 11798 | { (case "(($ac_try" in | 
|  | 11799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11800 | *) ac_try_echo=$ac_try;; | 
|  | 11801 | esac | 
|  | 11802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11803 | (eval "$ac_try") 2>&5 | 
|  | 11804 | ac_status=$? | 
|  | 11805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11806 | (exit $ac_status); }; } && | 
|  | 11807 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11808 | { (case "(($ac_try" in | 
|  | 11809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11810 | *) ac_try_echo=$ac_try;; | 
|  | 11811 | esac | 
|  | 11812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11813 | (eval "$ac_try") 2>&5 | 
|  | 11814 | ac_status=$? | 
|  | 11815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11816 | (exit $ac_status); }; }; then | 
|  | 11817 | eval "$as_ac_var=yes" | 
|  | 11818 | else | 
|  | 11819 | echo "$as_me: failed program was:" >&5 | 
|  | 11820 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11821 |  | 
|  | 11822 | eval "$as_ac_var=no" | 
|  | 11823 | fi | 
|  | 11824 |  | 
|  | 11825 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11826 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11827 | fi | 
|  | 11828 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 11829 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11830 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11831 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11832 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11833 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11834 | _ACEOF | 
|  | 11835 | break | 
|  | 11836 | fi | 
|  | 11837 | done | 
|  | 11838 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11839 |  | 
|  | 11840 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11841 | for ac_func in memmove strcmp | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11842 | do | 
|  | 11843 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11844 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 11845 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 11846 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11848 | else | 
|  | 11849 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11850 | /* confdefs.h.  */ | 
|  | 11851 | _ACEOF | 
|  | 11852 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11853 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11854 | /* end confdefs.h.  */ | 
|  | 11855 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 11856 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 11857 | #define $ac_func innocuous_$ac_func | 
|  | 11858 |  | 
|  | 11859 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 11860 | which can conflict with char $ac_func (); below. | 
|  | 11861 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 11862 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 11863 |  | 
|  | 11864 | #ifdef __STDC__ | 
|  | 11865 | # include <limits.h> | 
|  | 11866 | #else | 
|  | 11867 | # include <assert.h> | 
|  | 11868 | #endif | 
|  | 11869 |  | 
|  | 11870 | #undef $ac_func | 
|  | 11871 |  | 
|  | 11872 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11873 | Use char because int might match the return type of a GCC | 
|  | 11874 | builtin and then its argument prototype would still apply.  */ | 
|  | 11875 | #ifdef __cplusplus | 
|  | 11876 | extern "C" | 
|  | 11877 | #endif | 
|  | 11878 | char $ac_func (); | 
|  | 11879 | /* The GNU C library defines this for functions which it implements | 
|  | 11880 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 11881 | something starting with __ and the normal name is an alias.  */ | 
|  | 11882 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 11883 | choke me | 
|  | 11884 | #endif | 
|  | 11885 |  | 
|  | 11886 | int | 
|  | 11887 | main () | 
|  | 11888 | { | 
|  | 11889 | return $ac_func (); | 
|  | 11890 | ; | 
|  | 11891 | return 0; | 
|  | 11892 | } | 
|  | 11893 | _ACEOF | 
|  | 11894 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 11895 | if { (ac_try="$ac_link" | 
|  | 11896 | case "(($ac_try" in | 
|  | 11897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11898 | *) ac_try_echo=$ac_try;; | 
|  | 11899 | esac | 
|  | 11900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11901 | (eval "$ac_link") 2>conftest.er1 | 
|  | 11902 | ac_status=$? | 
|  | 11903 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 11904 | rm -f conftest.er1 | 
|  | 11905 | cat conftest.err >&5 | 
|  | 11906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11907 | (exit $ac_status); } && | 
|  | 11908 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 11909 | { (case "(($ac_try" in | 
|  | 11910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11911 | *) ac_try_echo=$ac_try;; | 
|  | 11912 | esac | 
|  | 11913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11914 | (eval "$ac_try") 2>&5 | 
|  | 11915 | ac_status=$? | 
|  | 11916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11917 | (exit $ac_status); }; } && | 
|  | 11918 | { ac_try='test -s conftest$ac_exeext' | 
|  | 11919 | { (case "(($ac_try" in | 
|  | 11920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 11921 | *) ac_try_echo=$ac_try;; | 
|  | 11922 | esac | 
|  | 11923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 11924 | (eval "$ac_try") 2>&5 | 
|  | 11925 | ac_status=$? | 
|  | 11926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11927 | (exit $ac_status); }; }; then | 
|  | 11928 | eval "$as_ac_var=yes" | 
|  | 11929 | else | 
|  | 11930 | echo "$as_me: failed program was:" >&5 | 
|  | 11931 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 11932 |  | 
|  | 11933 | eval "$as_ac_var=no" | 
|  | 11934 | fi | 
|  | 11935 |  | 
|  | 11936 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11937 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11938 | fi | 
|  | 11939 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 11940 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 11941 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 11942 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11943 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11944 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11945 | _ACEOF | 
|  | 11946 |  | 
|  | 11947 | fi | 
|  | 11948 | done | 
|  | 11949 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11950 |  | 
|  | 11951 |  | 
|  | 11952 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11953 | for ac_func in closedir opendir readdir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11954 | do | 
|  | 11955 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11956 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 11957 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 11958 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 11959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11960 | else | 
|  | 11961 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 11962 | /* confdefs.h.  */ | 
|  | 11963 | _ACEOF | 
|  | 11964 | cat confdefs.h >>conftest.$ac_ext | 
|  | 11965 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 11966 | /* end confdefs.h.  */ | 
|  | 11967 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 11968 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 11969 | #define $ac_func innocuous_$ac_func | 
|  | 11970 |  | 
|  | 11971 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 11972 | which can conflict with char $ac_func (); below. | 
|  | 11973 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 11974 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 11975 |  | 
|  | 11976 | #ifdef __STDC__ | 
|  | 11977 | # include <limits.h> | 
|  | 11978 | #else | 
|  | 11979 | # include <assert.h> | 
|  | 11980 | #endif | 
|  | 11981 |  | 
|  | 11982 | #undef $ac_func | 
|  | 11983 |  | 
|  | 11984 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11985 | Use char because int might match the return type of a GCC | 
|  | 11986 | builtin and then its argument prototype would still apply.  */ | 
|  | 11987 | #ifdef __cplusplus | 
|  | 11988 | extern "C" | 
|  | 11989 | #endif | 
|  | 11990 | char $ac_func (); | 
|  | 11991 | /* The GNU C library defines this for functions which it implements | 
|  | 11992 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 11993 | something starting with __ and the normal name is an alias.  */ | 
|  | 11994 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 11995 | choke me | 
|  | 11996 | #endif | 
|  | 11997 |  | 
|  | 11998 | int | 
|  | 11999 | main () | 
|  | 12000 | { | 
|  | 12001 | return $ac_func (); | 
|  | 12002 | ; | 
|  | 12003 | return 0; | 
|  | 12004 | } | 
|  | 12005 | _ACEOF | 
|  | 12006 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12007 | if { (ac_try="$ac_link" | 
|  | 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_link") 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_exeext' | 
|  | 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 | eval "$as_ac_var=yes" | 
|  | 12041 | else | 
|  | 12042 | echo "$as_me: failed program was:" >&5 | 
|  | 12043 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12044 |  | 
|  | 12045 | eval "$as_ac_var=no" | 
|  | 12046 | fi | 
|  | 12047 |  | 
|  | 12048 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12049 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12050 | fi | 
|  | 12051 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 12052 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 12053 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 12054 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12055 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12056 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12057 | _ACEOF | 
|  | 12058 |  | 
|  | 12059 | fi | 
|  | 12060 | done | 
|  | 12061 |  | 
|  | 12062 |  | 
| Douglas Gregor | 1543661 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 12063 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12064 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 | 
|  | 12065 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12066 |  | 
| Reid Spencer | ca06c8e | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12067 | ICC=no | 
|  | 12068 | IXX=no | 
|  | 12069 | case $CC in | 
|  | 12070 | icc*|icpc*) | 
|  | 12071 | ICC=yes | 
|  | 12072 | IXX=yes | 
|  | 12073 | ;; | 
|  | 12074 | *) | 
|  | 12075 | ;; | 
|  | 12076 | esac | 
|  | 12077 |  | 
| Duraid Madina | 8604de8 | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12078 | if test "$GCC" != "yes" && test "$ICC" != "yes" | 
|  | 12079 | then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12080 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 | 
|  | 12081 | echo "$as_me: error: gcc|icc required but not found" >&2;} | 
|  | 12082 | { (exit 1); exit 1; }; } | 
| Duraid Madina | 8604de8 | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12083 | fi | 
|  | 12084 |  | 
|  | 12085 | if test "$GXX" != "yes" && test "$IXX" != "yes" | 
|  | 12086 | then | 
| Eric Christopher | 8d842da | 2010-12-08 02:02:14 +0000 | [diff] [blame] | 12087 | { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 | 
|  | 12088 | echo "$as_me: error: g++|clang++|icc required but not found" >&2;} | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12089 | { (exit 1); exit 1; }; } | 
| Duraid Madina | 8604de8 | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12090 | fi | 
|  | 12091 |  | 
| Reid Spencer | ca06c8e | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12092 | if test "$GCC" = "yes" | 
|  | 12093 | then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12094 | cat >conftest.$ac_ext <<_ACEOF | 
| Chris Lattner | e115fb5 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12095 | #if !defined(__GNUC__) || __GNUC__ < 3 | 
|  | 12096 | #error Unsupported GCC version | 
|  | 12097 | #endif | 
|  | 12098 |  | 
|  | 12099 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12100 | rm -f conftest.$ac_objext | 
|  | 12101 | if { (ac_try="$ac_compile" | 
|  | 12102 | case "(($ac_try" in | 
|  | 12103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12104 | *) ac_try_echo=$ac_try;; | 
|  | 12105 | esac | 
|  | 12106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12107 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 12108 | ac_status=$? | 
|  | 12109 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12110 | rm -f conftest.er1 | 
|  | 12111 | cat conftest.err >&5 | 
|  | 12112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12113 | (exit $ac_status); } && | 
|  | 12114 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12115 | { (case "(($ac_try" in | 
|  | 12116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12117 | *) ac_try_echo=$ac_try;; | 
|  | 12118 | esac | 
|  | 12119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12120 | (eval "$ac_try") 2>&5 | 
|  | 12121 | ac_status=$? | 
|  | 12122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12123 | (exit $ac_status); }; } && | 
|  | 12124 | { ac_try='test -s conftest.$ac_objext' | 
|  | 12125 | { (case "(($ac_try" in | 
|  | 12126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12127 | *) ac_try_echo=$ac_try;; | 
|  | 12128 | esac | 
|  | 12129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12130 | (eval "$ac_try") 2>&5 | 
|  | 12131 | ac_status=$? | 
|  | 12132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12133 | (exit $ac_status); }; }; then | 
|  | 12134 | : | 
| Chris Lattner | e115fb5 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12135 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12136 | echo "$as_me: failed program was:" >&5 | 
|  | 12137 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12138 |  | 
|  | 12139 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 | 
|  | 12140 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} | 
|  | 12141 | { (exit 1); exit 1; }; } | 
| Chris Lattner | e115fb5 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12142 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12143 |  | 
| Chris Lattner | e115fb5 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12145 | fi | 
|  | 12146 |  | 
|  | 12147 | if test -z "$llvm_cv_gnu_make_command" | 
|  | 12148 | then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12149 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 | 
|  | 12150 | echo "$as_me: error: GNU Make required but not found" >&2;} | 
|  | 12151 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12152 | fi | 
|  | 12153 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12154 | { echo "$as_me:$LINENO: result: ok" >&5 | 
|  | 12155 | echo "${ECHO_T}ok" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12156 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12157 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 | 
|  | 12158 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } | 
| Rafael Espindola | 42e94d1 | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 12159 | NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` | 
| Julien Lerouge | b614dd3 | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12160 |  | 
| Rafael Espindola | 42e94d1 | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 12161 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` | 
| Julien Lerouge | b614dd3 | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12162 |  | 
| Rafael Espindola | 42e94d1 | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 12163 | COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` | 
|  | 12164 |  | 
|  | 12165 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5 | 
|  | 12166 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; } | 
| Julien Lerouge | b614dd3 | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12167 |  | 
| Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 12168 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12169 |  | 
|  | 12170 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 | 
|  | 12171 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } | 
|  | 12172 | if test "${ac_cv_lib_m_sin+set}" = set; then | 
|  | 12173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12174 | else | 
|  | 12175 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12176 | LIBS="-lm  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12177 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12178 | /* confdefs.h.  */ | 
|  | 12179 | _ACEOF | 
|  | 12180 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12181 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12182 | /* end confdefs.h.  */ | 
|  | 12183 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12184 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12185 | Use char because int might match the return type of a GCC | 
|  | 12186 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12187 | #ifdef __cplusplus | 
|  | 12188 | extern "C" | 
|  | 12189 | #endif | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12190 | char sin (); | 
|  | 12191 | int | 
|  | 12192 | main () | 
|  | 12193 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12194 | return sin (); | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12195 | ; | 
|  | 12196 | return 0; | 
|  | 12197 | } | 
|  | 12198 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12199 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12200 | if { (ac_try="$ac_link" | 
|  | 12201 | case "(($ac_try" in | 
|  | 12202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12203 | *) ac_try_echo=$ac_try;; | 
|  | 12204 | esac | 
|  | 12205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12206 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12207 | ac_status=$? | 
|  | 12208 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12209 | rm -f conftest.er1 | 
|  | 12210 | cat conftest.err >&5 | 
|  | 12211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12212 | (exit $ac_status); } && | 
|  | 12213 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12214 | { (case "(($ac_try" in | 
|  | 12215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12216 | *) ac_try_echo=$ac_try;; | 
|  | 12217 | esac | 
|  | 12218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12219 | (eval "$ac_try") 2>&5 | 
|  | 12220 | ac_status=$? | 
|  | 12221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12222 | (exit $ac_status); }; } && | 
|  | 12223 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12224 | { (case "(($ac_try" in | 
|  | 12225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12226 | *) ac_try_echo=$ac_try;; | 
|  | 12227 | esac | 
|  | 12228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12229 | (eval "$ac_try") 2>&5 | 
|  | 12230 | ac_status=$? | 
|  | 12231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12232 | (exit $ac_status); }; }; then | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12233 | ac_cv_lib_m_sin=yes | 
|  | 12234 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12235 | echo "$as_me: failed program was:" >&5 | 
|  | 12236 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12237 |  | 
|  | 12238 | ac_cv_lib_m_sin=no | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12239 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12240 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12241 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12242 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12243 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12244 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12245 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 | 
|  | 12246 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } | 
|  | 12247 | if test $ac_cv_lib_m_sin = yes; then | 
| Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12248 | cat >>confdefs.h <<_ACEOF | 
|  | 12249 | #define HAVE_LIBM 1 | 
|  | 12250 | _ACEOF | 
|  | 12251 |  | 
|  | 12252 | LIBS="-lm $LIBS" | 
|  | 12253 |  | 
|  | 12254 | fi | 
|  | 12255 |  | 
| Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 12256 | if test "$llvm_cv_os_type" = "MingW" ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12257 |  | 
|  | 12258 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 | 
|  | 12259 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } | 
|  | 12260 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then | 
|  | 12261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12262 | else | 
|  | 12263 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12264 | LIBS="-limagehlp  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12265 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12266 | /* confdefs.h.  */ | 
|  | 12267 | _ACEOF | 
|  | 12268 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12269 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12270 | /* end confdefs.h.  */ | 
|  | 12271 |  | 
| Reid Spencer | 187b4ad | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12272 |  | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12273 | int | 
|  | 12274 | main () | 
|  | 12275 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12276 | return main (); | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12277 | ; | 
|  | 12278 | return 0; | 
|  | 12279 | } | 
|  | 12280 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12281 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12282 | if { (ac_try="$ac_link" | 
|  | 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_link") 2>conftest.er1 | 
|  | 12289 | ac_status=$? | 
|  | 12290 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12291 | rm -f conftest.er1 | 
|  | 12292 | cat conftest.err >&5 | 
|  | 12293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12294 | (exit $ac_status); } && | 
|  | 12295 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12296 | { (case "(($ac_try" in | 
|  | 12297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12298 | *) ac_try_echo=$ac_try;; | 
|  | 12299 | esac | 
|  | 12300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12301 | (eval "$ac_try") 2>&5 | 
|  | 12302 | ac_status=$? | 
|  | 12303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12304 | (exit $ac_status); }; } && | 
|  | 12305 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12306 | { (case "(($ac_try" in | 
|  | 12307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12308 | *) ac_try_echo=$ac_try;; | 
|  | 12309 | esac | 
|  | 12310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12311 | (eval "$ac_try") 2>&5 | 
|  | 12312 | ac_status=$? | 
|  | 12313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12314 | (exit $ac_status); }; }; then | 
| Reid Spencer | 187b4ad | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12315 | ac_cv_lib_imagehlp_main=yes | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12316 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12317 | echo "$as_me: failed program was:" >&5 | 
|  | 12318 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12319 |  | 
|  | 12320 | ac_cv_lib_imagehlp_main=no | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12321 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12322 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12323 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12324 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12325 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12326 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12327 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 | 
|  | 12328 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } | 
|  | 12329 | if test $ac_cv_lib_imagehlp_main = yes; then | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12330 | cat >>confdefs.h <<_ACEOF | 
|  | 12331 | #define HAVE_LIBIMAGEHLP 1 | 
|  | 12332 | _ACEOF | 
|  | 12333 |  | 
|  | 12334 | LIBS="-limagehlp $LIBS" | 
|  | 12335 |  | 
|  | 12336 | fi | 
|  | 12337 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12338 |  | 
|  | 12339 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 | 
|  | 12340 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } | 
|  | 12341 | if test "${ac_cv_lib_psapi_main+set}" = set; then | 
|  | 12342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12343 | else | 
|  | 12344 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12345 | LIBS="-lpsapi  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12346 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12347 | /* confdefs.h.  */ | 
|  | 12348 | _ACEOF | 
|  | 12349 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12350 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12351 | /* end confdefs.h.  */ | 
|  | 12352 |  | 
| Reid Spencer | 187b4ad | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12353 |  | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12354 | int | 
|  | 12355 | main () | 
|  | 12356 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12357 | return main (); | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12358 | ; | 
|  | 12359 | return 0; | 
|  | 12360 | } | 
|  | 12361 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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 | 
| Reid Spencer | 187b4ad | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12396 | ac_cv_lib_psapi_main=yes | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12397 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12398 | echo "$as_me: failed program was:" >&5 | 
|  | 12399 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12400 |  | 
|  | 12401 | ac_cv_lib_psapi_main=no | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12402 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12403 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12404 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12405 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12406 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12407 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12408 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 | 
|  | 12409 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } | 
|  | 12410 | if test $ac_cv_lib_psapi_main = yes; then | 
| Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12411 | cat >>confdefs.h <<_ACEOF | 
|  | 12412 | #define HAVE_LIBPSAPI 1 | 
|  | 12413 | _ACEOF | 
|  | 12414 |  | 
|  | 12415 | LIBS="-lpsapi $LIBS" | 
|  | 12416 |  | 
|  | 12417 | fi | 
|  | 12418 |  | 
|  | 12419 | fi | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12420 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12421 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | 
|  | 12422 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } | 
|  | 12423 | if test "${ac_cv_search_dlopen+set}" = set; then | 
|  | 12424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12425 | else | 
|  | 12426 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12427 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12428 | /* confdefs.h.  */ | 
|  | 12429 | _ACEOF | 
|  | 12430 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12431 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12432 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12433 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12434 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12435 | Use char because int might match the return type of a GCC | 
|  | 12436 | builtin and then its argument prototype would still apply.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12437 | #ifdef __cplusplus | 
|  | 12438 | extern "C" | 
|  | 12439 | #endif | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12440 | char dlopen (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12441 | int | 
|  | 12442 | main () | 
|  | 12443 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12444 | return dlopen (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12445 | ; | 
|  | 12446 | return 0; | 
|  | 12447 | } | 
|  | 12448 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12449 | for ac_lib in '' dl; do | 
|  | 12450 | if test -z "$ac_lib"; then | 
|  | 12451 | ac_res="none required" | 
|  | 12452 | else | 
|  | 12453 | ac_res=-l$ac_lib | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12454 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12455 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12456 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12457 | if { (ac_try="$ac_link" | 
|  | 12458 | case "(($ac_try" in | 
|  | 12459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12460 | *) ac_try_echo=$ac_try;; | 
|  | 12461 | esac | 
|  | 12462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12463 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12464 | ac_status=$? | 
|  | 12465 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12466 | rm -f conftest.er1 | 
|  | 12467 | cat conftest.err >&5 | 
|  | 12468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12469 | (exit $ac_status); } && | 
|  | 12470 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12471 | { (case "(($ac_try" in | 
|  | 12472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12473 | *) ac_try_echo=$ac_try;; | 
|  | 12474 | esac | 
|  | 12475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12476 | (eval "$ac_try") 2>&5 | 
|  | 12477 | ac_status=$? | 
|  | 12478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12479 | (exit $ac_status); }; } && | 
|  | 12480 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12481 | { (case "(($ac_try" in | 
|  | 12482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12483 | *) ac_try_echo=$ac_try;; | 
|  | 12484 | esac | 
|  | 12485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12486 | (eval "$ac_try") 2>&5 | 
|  | 12487 | ac_status=$? | 
|  | 12488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12489 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12490 | ac_cv_search_dlopen=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12491 | else | 
|  | 12492 | echo "$as_me: failed program was:" >&5 | 
|  | 12493 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12494 |  | 
|  | 12495 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12496 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12497 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12498 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12499 | conftest$ac_exeext | 
|  | 12500 | if test "${ac_cv_search_dlopen+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12501 | break | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12502 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12503 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12504 | if test "${ac_cv_search_dlopen+set}" = set; then | 
|  | 12505 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12506 | else | 
|  | 12507 | ac_cv_search_dlopen=no | 
|  | 12508 | fi | 
|  | 12509 | rm conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12510 | LIBS=$ac_func_search_save_LIBS | 
|  | 12511 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12512 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | 
|  | 12513 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12514 | ac_res=$ac_cv_search_dlopen | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12515 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12516 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12517 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12518 | cat >>confdefs.h <<\_ACEOF | 
|  | 12519 | #define HAVE_DLOPEN 1 | 
|  | 12520 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12521 |  | 
|  | 12522 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12523 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 | 
|  | 12524 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12525 | fi | 
|  | 12526 |  | 
|  | 12527 |  | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12528 | if test "$llvm_cv_enable_libffi" = "yes" ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12529 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 | 
|  | 12530 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } | 
|  | 12531 | if test "${ac_cv_search_ffi_call+set}" = set; then | 
|  | 12532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12533 | else | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12534 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12535 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12536 | /* confdefs.h.  */ | 
|  | 12537 | _ACEOF | 
|  | 12538 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12539 | cat >>conftest.$ac_ext <<_ACEOF | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12540 | /* end confdefs.h.  */ | 
|  | 12541 |  | 
|  | 12542 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12543 | Use char because int might match the return type of a GCC | 
|  | 12544 | builtin and then its argument prototype would still apply.  */ | 
|  | 12545 | #ifdef __cplusplus | 
|  | 12546 | extern "C" | 
|  | 12547 | #endif | 
|  | 12548 | char ffi_call (); | 
|  | 12549 | int | 
|  | 12550 | main () | 
|  | 12551 | { | 
|  | 12552 | return ffi_call (); | 
|  | 12553 | ; | 
|  | 12554 | return 0; | 
|  | 12555 | } | 
|  | 12556 | _ACEOF | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12557 | for ac_lib in '' ffi; do | 
|  | 12558 | if test -z "$ac_lib"; then | 
|  | 12559 | ac_res="none required" | 
|  | 12560 | else | 
|  | 12561 | ac_res=-l$ac_lib | 
|  | 12562 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 12563 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12564 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12565 | if { (ac_try="$ac_link" | 
|  | 12566 | case "(($ac_try" in | 
|  | 12567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12568 | *) ac_try_echo=$ac_try;; | 
|  | 12569 | esac | 
|  | 12570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12571 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12572 | ac_status=$? | 
|  | 12573 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12574 | rm -f conftest.er1 | 
|  | 12575 | cat conftest.err >&5 | 
|  | 12576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12577 | (exit $ac_status); } && | 
|  | 12578 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12579 | { (case "(($ac_try" in | 
|  | 12580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12581 | *) ac_try_echo=$ac_try;; | 
|  | 12582 | esac | 
|  | 12583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12584 | (eval "$ac_try") 2>&5 | 
|  | 12585 | ac_status=$? | 
|  | 12586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12587 | (exit $ac_status); }; } && | 
|  | 12588 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12589 | { (case "(($ac_try" in | 
|  | 12590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12591 | *) ac_try_echo=$ac_try;; | 
|  | 12592 | esac | 
|  | 12593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12594 | (eval "$ac_try") 2>&5 | 
|  | 12595 | ac_status=$? | 
|  | 12596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12597 | (exit $ac_status); }; }; then | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12598 | ac_cv_search_ffi_call=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12599 | else | 
|  | 12600 | echo "$as_me: failed program was:" >&5 | 
|  | 12601 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12602 |  | 
|  | 12603 |  | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12604 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12605 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12606 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12607 | conftest$ac_exeext | 
|  | 12608 | if test "${ac_cv_search_ffi_call+set}" = set; then | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12609 | break | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12610 | fi | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12611 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12612 | if test "${ac_cv_search_ffi_call+set}" = set; then | 
|  | 12613 | : | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12614 | else | 
|  | 12615 | ac_cv_search_ffi_call=no | 
|  | 12616 | fi | 
|  | 12617 | rm conftest.$ac_ext | 
|  | 12618 | LIBS=$ac_func_search_save_LIBS | 
|  | 12619 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12620 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 | 
|  | 12621 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12622 | ac_res=$ac_cv_search_ffi_call | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12623 | if test "$ac_res" != no; then | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12624 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 12625 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12626 | cat >>confdefs.h <<\_ACEOF | 
|  | 12627 | #define HAVE_FFI_CALL 1 | 
|  | 12628 | _ACEOF | 
| Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12629 |  | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12630 | else | 
| Jeffrey Yasskin | 914050b | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 12631 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 | 
|  | 12632 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} | 
|  | 12633 | { (exit 1); exit 1; }; } | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12634 | fi | 
|  | 12635 |  | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12636 | fi | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12637 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12638 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 | 
|  | 12639 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } | 
|  | 12640 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
|  | 12641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12642 | else | 
|  | 12643 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12644 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12645 | /* confdefs.h.  */ | 
|  | 12646 | _ACEOF | 
|  | 12647 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12648 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12649 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12650 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12651 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12652 | Use char because int might match the return type of a GCC | 
|  | 12653 | builtin and then its argument prototype would still apply.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12654 | #ifdef __cplusplus | 
|  | 12655 | extern "C" | 
|  | 12656 | #endif | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12657 | char mallinfo (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12658 | int | 
|  | 12659 | main () | 
|  | 12660 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12661 | return mallinfo (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12662 | ; | 
|  | 12663 | return 0; | 
|  | 12664 | } | 
|  | 12665 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12666 | for ac_lib in '' malloc; do | 
|  | 12667 | if test -z "$ac_lib"; then | 
|  | 12668 | ac_res="none required" | 
|  | 12669 | else | 
|  | 12670 | ac_res=-l$ac_lib | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12671 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12672 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12673 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12674 | if { (ac_try="$ac_link" | 
|  | 12675 | case "(($ac_try" in | 
|  | 12676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12677 | *) ac_try_echo=$ac_try;; | 
|  | 12678 | esac | 
|  | 12679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12680 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12681 | ac_status=$? | 
|  | 12682 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12683 | rm -f conftest.er1 | 
|  | 12684 | cat conftest.err >&5 | 
|  | 12685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12686 | (exit $ac_status); } && | 
|  | 12687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12688 | { (case "(($ac_try" in | 
|  | 12689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12690 | *) ac_try_echo=$ac_try;; | 
|  | 12691 | esac | 
|  | 12692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12693 | (eval "$ac_try") 2>&5 | 
|  | 12694 | ac_status=$? | 
|  | 12695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12696 | (exit $ac_status); }; } && | 
|  | 12697 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12698 | { (case "(($ac_try" in | 
|  | 12699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12700 | *) ac_try_echo=$ac_try;; | 
|  | 12701 | esac | 
|  | 12702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12703 | (eval "$ac_try") 2>&5 | 
|  | 12704 | ac_status=$? | 
|  | 12705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12706 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12707 | ac_cv_search_mallinfo=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12708 | else | 
|  | 12709 | echo "$as_me: failed program was:" >&5 | 
|  | 12710 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12711 |  | 
|  | 12712 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12713 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12714 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12715 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12716 | conftest$ac_exeext | 
|  | 12717 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12718 | break | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12719 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12720 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12721 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
|  | 12722 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12723 | else | 
|  | 12724 | ac_cv_search_mallinfo=no | 
|  | 12725 | fi | 
|  | 12726 | rm conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12727 | LIBS=$ac_func_search_save_LIBS | 
|  | 12728 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12729 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 | 
|  | 12730 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12731 | ac_res=$ac_cv_search_mallinfo | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12732 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12733 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12734 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12735 | cat >>confdefs.h <<\_ACEOF | 
|  | 12736 | #define HAVE_MALLINFO 1 | 
|  | 12737 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12738 |  | 
|  | 12739 | fi | 
|  | 12740 |  | 
|  | 12741 |  | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 12742 | if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12743 |  | 
|  | 12744 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 | 
|  | 12745 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } | 
|  | 12746 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then | 
|  | 12747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12748 | else | 
| Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12749 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12750 | LIBS="-lpthread  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12751 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12752 | /* confdefs.h.  */ | 
|  | 12753 | _ACEOF | 
|  | 12754 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12755 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12756 | /* end confdefs.h.  */ | 
|  | 12757 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12758 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12759 | Use char because int might match the return type of a GCC | 
|  | 12760 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12761 | #ifdef __cplusplus | 
|  | 12762 | extern "C" | 
|  | 12763 | #endif | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12764 | char pthread_mutex_init (); | 
|  | 12765 | int | 
|  | 12766 | main () | 
|  | 12767 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12768 | return pthread_mutex_init (); | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12769 | ; | 
|  | 12770 | return 0; | 
|  | 12771 | } | 
|  | 12772 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12773 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12774 | if { (ac_try="$ac_link" | 
|  | 12775 | case "(($ac_try" in | 
|  | 12776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12777 | *) ac_try_echo=$ac_try;; | 
|  | 12778 | esac | 
|  | 12779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12780 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12781 | ac_status=$? | 
|  | 12782 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12783 | rm -f conftest.er1 | 
|  | 12784 | cat conftest.err >&5 | 
|  | 12785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12786 | (exit $ac_status); } && | 
|  | 12787 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12788 | { (case "(($ac_try" in | 
|  | 12789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12790 | *) ac_try_echo=$ac_try;; | 
|  | 12791 | esac | 
|  | 12792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12793 | (eval "$ac_try") 2>&5 | 
|  | 12794 | ac_status=$? | 
|  | 12795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12796 | (exit $ac_status); }; } && | 
|  | 12797 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12798 | { (case "(($ac_try" in | 
|  | 12799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12800 | *) ac_try_echo=$ac_try;; | 
|  | 12801 | esac | 
|  | 12802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12803 | (eval "$ac_try") 2>&5 | 
|  | 12804 | ac_status=$? | 
|  | 12805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12806 | (exit $ac_status); }; }; then | 
| Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12807 | ac_cv_lib_pthread_pthread_mutex_init=yes | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12808 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12809 | echo "$as_me: failed program was:" >&5 | 
|  | 12810 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12811 |  | 
|  | 12812 | ac_cv_lib_pthread_pthread_mutex_init=no | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12813 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12814 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12815 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12816 | conftest$ac_exeext conftest.$ac_ext | 
| Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12817 | LIBS=$ac_check_lib_save_LIBS | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12818 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12819 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 | 
|  | 12820 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } | 
|  | 12821 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then | 
| Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12822 | cat >>confdefs.h <<_ACEOF | 
|  | 12823 | #define HAVE_LIBPTHREAD 1 | 
| Edward O'Callaghan | a5314b8 | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 12824 | _ACEOF | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12825 |  | 
| Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12826 | LIBS="-lpthread $LIBS" | 
|  | 12827 |  | 
| Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12828 | fi | 
|  | 12829 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12830 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 | 
|  | 12831 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } | 
|  | 12832 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
|  | 12833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12834 | else | 
|  | 12835 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12836 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12837 | /* confdefs.h.  */ | 
|  | 12838 | _ACEOF | 
|  | 12839 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12840 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12841 | /* end confdefs.h.  */ | 
|  | 12842 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12843 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12844 | Use char because int might match the return type of a GCC | 
|  | 12845 | builtin and then its argument prototype would still apply.  */ | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12846 | #ifdef __cplusplus | 
|  | 12847 | extern "C" | 
|  | 12848 | #endif | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12849 | char pthread_mutex_lock (); | 
|  | 12850 | int | 
|  | 12851 | main () | 
|  | 12852 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12853 | return pthread_mutex_lock (); | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12854 | ; | 
|  | 12855 | return 0; | 
|  | 12856 | } | 
|  | 12857 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12858 | for ac_lib in '' pthread; do | 
|  | 12859 | if test -z "$ac_lib"; then | 
|  | 12860 | ac_res="none required" | 
|  | 12861 | else | 
|  | 12862 | ac_res=-l$ac_lib | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12863 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12864 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12865 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12866 | if { (ac_try="$ac_link" | 
|  | 12867 | case "(($ac_try" in | 
|  | 12868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12869 | *) ac_try_echo=$ac_try;; | 
|  | 12870 | esac | 
|  | 12871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12872 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12873 | ac_status=$? | 
|  | 12874 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12875 | rm -f conftest.er1 | 
|  | 12876 | cat conftest.err >&5 | 
|  | 12877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12878 | (exit $ac_status); } && | 
|  | 12879 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12880 | { (case "(($ac_try" in | 
|  | 12881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12882 | *) ac_try_echo=$ac_try;; | 
|  | 12883 | esac | 
|  | 12884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12885 | (eval "$ac_try") 2>&5 | 
|  | 12886 | ac_status=$? | 
|  | 12887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12888 | (exit $ac_status); }; } && | 
|  | 12889 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12890 | { (case "(($ac_try" in | 
|  | 12891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12892 | *) ac_try_echo=$ac_try;; | 
|  | 12893 | esac | 
|  | 12894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12895 | (eval "$ac_try") 2>&5 | 
|  | 12896 | ac_status=$? | 
|  | 12897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12898 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12899 | ac_cv_search_pthread_mutex_lock=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12900 | else | 
|  | 12901 | echo "$as_me: failed program was:" >&5 | 
|  | 12902 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12903 |  | 
|  | 12904 |  | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12905 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12906 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12907 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12908 | conftest$ac_exeext | 
|  | 12909 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12910 | break | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12911 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12912 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12913 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
|  | 12914 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12915 | else | 
|  | 12916 | ac_cv_search_pthread_mutex_lock=no | 
|  | 12917 | fi | 
|  | 12918 | rm conftest.$ac_ext | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12919 | LIBS=$ac_func_search_save_LIBS | 
|  | 12920 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12921 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 | 
|  | 12922 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12923 | ac_res=$ac_cv_search_pthread_mutex_lock | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12924 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12925 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12926 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12927 | cat >>confdefs.h <<\_ACEOF | 
|  | 12928 | #define HAVE_PTHREAD_MUTEX_LOCK 1 | 
|  | 12929 | _ACEOF | 
| John Criswell | 71c8d5e | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 12930 |  | 
|  | 12931 | fi | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12932 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12933 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 | 
|  | 12934 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } | 
|  | 12935 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then | 
|  | 12936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12937 | else | 
|  | 12938 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12939 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 12940 | /* confdefs.h.  */ | 
|  | 12941 | _ACEOF | 
|  | 12942 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12943 | cat >>conftest.$ac_ext <<_ACEOF | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12944 | /* end confdefs.h.  */ | 
|  | 12945 |  | 
|  | 12946 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12947 | Use char because int might match the return type of a GCC | 
|  | 12948 | builtin and then its argument prototype would still apply.  */ | 
|  | 12949 | #ifdef __cplusplus | 
|  | 12950 | extern "C" | 
|  | 12951 | #endif | 
|  | 12952 | char pthread_rwlock_init (); | 
|  | 12953 | int | 
|  | 12954 | main () | 
|  | 12955 | { | 
|  | 12956 | return pthread_rwlock_init (); | 
|  | 12957 | ; | 
|  | 12958 | return 0; | 
|  | 12959 | } | 
|  | 12960 | _ACEOF | 
|  | 12961 | for ac_lib in '' pthread; do | 
|  | 12962 | if test -z "$ac_lib"; then | 
|  | 12963 | ac_res="none required" | 
|  | 12964 | else | 
|  | 12965 | ac_res=-l$ac_lib | 
|  | 12966 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 12967 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12968 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12969 | if { (ac_try="$ac_link" | 
|  | 12970 | case "(($ac_try" in | 
|  | 12971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12972 | *) ac_try_echo=$ac_try;; | 
|  | 12973 | esac | 
|  | 12974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12975 | (eval "$ac_link") 2>conftest.er1 | 
|  | 12976 | ac_status=$? | 
|  | 12977 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12978 | rm -f conftest.er1 | 
|  | 12979 | cat conftest.err >&5 | 
|  | 12980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12981 | (exit $ac_status); } && | 
|  | 12982 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 12983 | { (case "(($ac_try" in | 
|  | 12984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12985 | *) ac_try_echo=$ac_try;; | 
|  | 12986 | esac | 
|  | 12987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12988 | (eval "$ac_try") 2>&5 | 
|  | 12989 | ac_status=$? | 
|  | 12990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12991 | (exit $ac_status); }; } && | 
|  | 12992 | { ac_try='test -s conftest$ac_exeext' | 
|  | 12993 | { (case "(($ac_try" in | 
|  | 12994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 12995 | *) ac_try_echo=$ac_try;; | 
|  | 12996 | esac | 
|  | 12997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 12998 | (eval "$ac_try") 2>&5 | 
|  | 12999 | ac_status=$? | 
|  | 13000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13001 | (exit $ac_status); }; }; then | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13002 | ac_cv_search_pthread_rwlock_init=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13003 | else | 
|  | 13004 | echo "$as_me: failed program was:" >&5 | 
|  | 13005 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13006 |  | 
|  | 13007 |  | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13008 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13009 |  | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13010 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13011 | conftest$ac_exeext | 
|  | 13012 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13013 | break | 
|  | 13014 | fi | 
|  | 13015 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13016 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then | 
|  | 13017 | : | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13018 | else | 
|  | 13019 | ac_cv_search_pthread_rwlock_init=no | 
|  | 13020 | fi | 
|  | 13021 | rm conftest.$ac_ext | 
|  | 13022 | LIBS=$ac_func_search_save_LIBS | 
|  | 13023 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13024 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 | 
|  | 13025 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13026 | ac_res=$ac_cv_search_pthread_rwlock_init | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13027 | if test "$ac_res" != no; then | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13028 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 13029 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13030 | cat >>confdefs.h <<\_ACEOF | 
|  | 13031 | #define HAVE_PTHREAD_RWLOCK_INIT 1 | 
|  | 13032 | _ACEOF | 
| Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13033 |  | 
|  | 13034 | fi | 
|  | 13035 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13036 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 | 
|  | 13037 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } | 
|  | 13038 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then | 
|  | 13039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13040 | else | 
|  | 13041 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13042 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13043 | /* confdefs.h.  */ | 
|  | 13044 | _ACEOF | 
|  | 13045 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13046 | cat >>conftest.$ac_ext <<_ACEOF | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13047 | /* end confdefs.h.  */ | 
|  | 13048 |  | 
|  | 13049 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13050 | Use char because int might match the return type of a GCC | 
|  | 13051 | builtin and then its argument prototype would still apply.  */ | 
|  | 13052 | #ifdef __cplusplus | 
|  | 13053 | extern "C" | 
|  | 13054 | #endif | 
|  | 13055 | char pthread_getspecific (); | 
|  | 13056 | int | 
|  | 13057 | main () | 
|  | 13058 | { | 
|  | 13059 | return pthread_getspecific (); | 
|  | 13060 | ; | 
|  | 13061 | return 0; | 
|  | 13062 | } | 
|  | 13063 | _ACEOF | 
|  | 13064 | for ac_lib in '' pthread; do | 
|  | 13065 | if test -z "$ac_lib"; then | 
|  | 13066 | ac_res="none required" | 
|  | 13067 | else | 
|  | 13068 | ac_res=-l$ac_lib | 
|  | 13069 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 13070 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13071 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13072 | if { (ac_try="$ac_link" | 
|  | 13073 | case "(($ac_try" in | 
|  | 13074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13075 | *) ac_try_echo=$ac_try;; | 
|  | 13076 | esac | 
|  | 13077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13078 | (eval "$ac_link") 2>conftest.er1 | 
|  | 13079 | ac_status=$? | 
|  | 13080 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13081 | rm -f conftest.er1 | 
|  | 13082 | cat conftest.err >&5 | 
|  | 13083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13084 | (exit $ac_status); } && | 
|  | 13085 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 13086 | { (case "(($ac_try" in | 
|  | 13087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13088 | *) ac_try_echo=$ac_try;; | 
|  | 13089 | esac | 
|  | 13090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13091 | (eval "$ac_try") 2>&5 | 
|  | 13092 | ac_status=$? | 
|  | 13093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13094 | (exit $ac_status); }; } && | 
|  | 13095 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13096 | { (case "(($ac_try" in | 
|  | 13097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13098 | *) ac_try_echo=$ac_try;; | 
|  | 13099 | esac | 
|  | 13100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13101 | (eval "$ac_try") 2>&5 | 
|  | 13102 | ac_status=$? | 
|  | 13103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13104 | (exit $ac_status); }; }; then | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13105 | ac_cv_search_pthread_getspecific=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13106 | else | 
|  | 13107 | echo "$as_me: failed program was:" >&5 | 
|  | 13108 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13109 |  | 
|  | 13110 |  | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13111 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13112 |  | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13113 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13114 | conftest$ac_exeext | 
|  | 13115 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13116 | break | 
|  | 13117 | fi | 
|  | 13118 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13119 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then | 
|  | 13120 | : | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13121 | else | 
|  | 13122 | ac_cv_search_pthread_getspecific=no | 
|  | 13123 | fi | 
|  | 13124 | rm conftest.$ac_ext | 
|  | 13125 | LIBS=$ac_func_search_save_LIBS | 
|  | 13126 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13127 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 | 
|  | 13128 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13129 | ac_res=$ac_cv_search_pthread_getspecific | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13130 | if test "$ac_res" != no; then | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13131 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 13132 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13133 | cat >>confdefs.h <<\_ACEOF | 
|  | 13134 | #define HAVE_PTHREAD_GETSPECIFIC 1 | 
|  | 13135 | _ACEOF | 
| Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13136 |  | 
|  | 13137 | fi | 
|  | 13138 |  | 
| Reid Spencer | f85fabeb | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13139 | fi | 
| Brian Gaeke | d3de6c0 | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 13140 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13141 |  | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13142 | # Check whether --with-udis86 was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13143 | if test "${with_udis86+set}" = set; then | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13144 | withval=$with_udis86; | 
|  | 13145 | USE_UDIS86=1 | 
|  | 13146 |  | 
|  | 13147 | case "$withval" in | 
| Reid Spencer | dfda061 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 13148 | /usr/lib|yes) ;; | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13149 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; | 
|  | 13150 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13151 |  | 
|  | 13152 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 | 
|  | 13153 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } | 
|  | 13154 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then | 
|  | 13155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13156 | else | 
|  | 13157 | ac_check_lib_save_LIBS=$LIBS | 
|  | 13158 | LIBS="-ludis86  $LIBS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13159 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13160 | /* confdefs.h.  */ | 
|  | 13161 | _ACEOF | 
|  | 13162 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13163 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13164 | /* end confdefs.h.  */ | 
|  | 13165 |  | 
|  | 13166 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13167 | Use char because int might match the return type of a GCC | 
|  | 13168 | builtin and then its argument prototype would still apply.  */ | 
|  | 13169 | #ifdef __cplusplus | 
|  | 13170 | extern "C" | 
|  | 13171 | #endif | 
|  | 13172 | char ud_init (); | 
|  | 13173 | int | 
|  | 13174 | main () | 
|  | 13175 | { | 
|  | 13176 | return ud_init (); | 
|  | 13177 | ; | 
|  | 13178 | return 0; | 
|  | 13179 | } | 
|  | 13180 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13181 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13182 | if { (ac_try="$ac_link" | 
|  | 13183 | case "(($ac_try" in | 
|  | 13184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13185 | *) ac_try_echo=$ac_try;; | 
|  | 13186 | esac | 
|  | 13187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13188 | (eval "$ac_link") 2>conftest.er1 | 
|  | 13189 | ac_status=$? | 
|  | 13190 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13191 | rm -f conftest.er1 | 
|  | 13192 | cat conftest.err >&5 | 
|  | 13193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13194 | (exit $ac_status); } && | 
|  | 13195 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 13196 | { (case "(($ac_try" in | 
|  | 13197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13198 | *) ac_try_echo=$ac_try;; | 
|  | 13199 | esac | 
|  | 13200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13201 | (eval "$ac_try") 2>&5 | 
|  | 13202 | ac_status=$? | 
|  | 13203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13204 | (exit $ac_status); }; } && | 
|  | 13205 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13206 | { (case "(($ac_try" in | 
|  | 13207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13208 | *) ac_try_echo=$ac_try;; | 
|  | 13209 | esac | 
|  | 13210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13211 | (eval "$ac_try") 2>&5 | 
|  | 13212 | ac_status=$? | 
|  | 13213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13214 | (exit $ac_status); }; }; then | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13215 | ac_cv_lib_udis86_ud_init=yes | 
|  | 13216 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13217 | echo "$as_me: failed program was:" >&5 | 
|  | 13218 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13219 |  | 
|  | 13220 | ac_cv_lib_udis86_ud_init=no | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13221 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13222 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13223 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13224 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13225 | LIBS=$ac_check_lib_save_LIBS | 
|  | 13226 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13227 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 | 
|  | 13228 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } | 
|  | 13229 | if test $ac_cv_lib_udis86_ud_init = yes; then | 
| Reid Spencer | e5f3de3 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13230 | cat >>confdefs.h <<_ACEOF | 
|  | 13231 | #define HAVE_LIBUDIS86 1 | 
|  | 13232 | _ACEOF | 
|  | 13233 |  | 
|  | 13234 | LIBS="-ludis86 $LIBS" | 
|  | 13235 |  | 
|  | 13236 | else | 
|  | 13237 |  | 
|  | 13238 | echo "Error! You need to have libudis86 around." | 
|  | 13239 | exit -1 | 
|  | 13240 |  | 
|  | 13241 | fi | 
|  | 13242 |  | 
|  | 13243 |  | 
|  | 13244 | else | 
|  | 13245 | USE_UDIS86=0 | 
|  | 13246 |  | 
|  | 13247 | fi | 
|  | 13248 |  | 
|  | 13249 |  | 
|  | 13250 | cat >>confdefs.h <<_ACEOF | 
|  | 13251 | #define USE_UDIS86 $USE_UDIS86 | 
|  | 13252 | _ACEOF | 
|  | 13253 |  | 
|  | 13254 |  | 
|  | 13255 |  | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13256 | # Check whether --with-oprofile was given. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13257 | if test "${with_oprofile+set}" = set; then | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13258 | withval=$with_oprofile; | 
|  | 13259 | USE_OPROFILE=1 | 
|  | 13260 |  | 
|  | 13261 | case "$withval" in | 
|  | 13262 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13263 | no) llvm_cv_oppath= | 
|  | 13264 | USE_OPROFILE=0 | 
|  | 13265 | ;; | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13266 | *) llvm_cv_oppath="${withval}/lib/oprofile" | 
|  | 13267 | CPPFLAGS="-I${withval}/include";; | 
|  | 13268 | esac | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13269 | case $llvm_cv_os_type in | 
|  | 13270 | Linux) | 
|  | 13271 | if test -n "$llvm_cv_oppath" ; then | 
|  | 13272 | LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" | 
|  | 13273 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13274 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } | 
|  | 13275 | if test "${ac_cv_search_bfd_init+set}" = set; then | 
|  | 13276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13277 | else | 
|  | 13278 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13279 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13280 | /* confdefs.h.  */ | 
|  | 13281 | _ACEOF | 
|  | 13282 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13283 | cat >>conftest.$ac_ext <<_ACEOF | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13284 | /* end confdefs.h.  */ | 
|  | 13285 |  | 
|  | 13286 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13287 | Use char because int might match the return type of a GCC | 
|  | 13288 | builtin and then its argument prototype would still apply.  */ | 
|  | 13289 | #ifdef __cplusplus | 
|  | 13290 | extern "C" | 
|  | 13291 | #endif | 
|  | 13292 | char bfd_init (); | 
|  | 13293 | int | 
|  | 13294 | main () | 
|  | 13295 | { | 
|  | 13296 | return bfd_init (); | 
|  | 13297 | ; | 
|  | 13298 | return 0; | 
|  | 13299 | } | 
|  | 13300 | _ACEOF | 
|  | 13301 | for ac_lib in '' bfd; do | 
|  | 13302 | if test -z "$ac_lib"; then | 
|  | 13303 | ac_res="none required" | 
|  | 13304 | else | 
|  | 13305 | ac_res=-l$ac_lib | 
|  | 13306 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 13307 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13308 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13309 | if { (ac_try="$ac_link" | 
|  | 13310 | case "(($ac_try" in | 
|  | 13311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13312 | *) ac_try_echo=$ac_try;; | 
|  | 13313 | esac | 
|  | 13314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13315 | (eval "$ac_link") 2>conftest.er1 | 
|  | 13316 | ac_status=$? | 
|  | 13317 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13318 | rm -f conftest.er1 | 
|  | 13319 | cat conftest.err >&5 | 
|  | 13320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13321 | (exit $ac_status); } && | 
|  | 13322 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 13323 | { (case "(($ac_try" in | 
|  | 13324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13325 | *) ac_try_echo=$ac_try;; | 
|  | 13326 | esac | 
|  | 13327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13328 | (eval "$ac_try") 2>&5 | 
|  | 13329 | ac_status=$? | 
|  | 13330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13331 | (exit $ac_status); }; } && | 
|  | 13332 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13333 | { (case "(($ac_try" in | 
|  | 13334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13335 | *) ac_try_echo=$ac_try;; | 
|  | 13336 | esac | 
|  | 13337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13338 | (eval "$ac_try") 2>&5 | 
|  | 13339 | ac_status=$? | 
|  | 13340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13341 | (exit $ac_status); }; }; then | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13342 | ac_cv_search_bfd_init=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13343 | else | 
|  | 13344 | echo "$as_me: failed program was:" >&5 | 
|  | 13345 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13346 |  | 
|  | 13347 |  | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13348 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13349 |  | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13350 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13351 | conftest$ac_exeext | 
|  | 13352 | if test "${ac_cv_search_bfd_init+set}" = set; then | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13353 | break | 
|  | 13354 | fi | 
|  | 13355 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13356 | if test "${ac_cv_search_bfd_init+set}" = set; then | 
|  | 13357 | : | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13358 | else | 
|  | 13359 | ac_cv_search_bfd_init=no | 
|  | 13360 | fi | 
|  | 13361 | rm conftest.$ac_ext | 
|  | 13362 | LIBS=$ac_func_search_save_LIBS | 
|  | 13363 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13364 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 | 
|  | 13365 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13366 | ac_res=$ac_cv_search_bfd_init | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13367 | if test "$ac_res" != no; then | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13368 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 13369 |  | 
|  | 13370 | fi | 
|  | 13371 |  | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13372 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13373 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } | 
|  | 13374 | if test "${ac_cv_search_op_open_agent+set}" = set; then | 
|  | 13375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13376 | else | 
|  | 13377 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13378 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13379 | /* confdefs.h.  */ | 
|  | 13380 | _ACEOF | 
|  | 13381 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13382 | cat >>conftest.$ac_ext <<_ACEOF | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13383 | /* end confdefs.h.  */ | 
|  | 13384 |  | 
|  | 13385 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13386 | Use char because int might match the return type of a GCC | 
|  | 13387 | builtin and then its argument prototype would still apply.  */ | 
|  | 13388 | #ifdef __cplusplus | 
|  | 13389 | extern "C" | 
|  | 13390 | #endif | 
|  | 13391 | char op_open_agent (); | 
|  | 13392 | int | 
|  | 13393 | main () | 
|  | 13394 | { | 
|  | 13395 | return op_open_agent (); | 
|  | 13396 | ; | 
|  | 13397 | return 0; | 
|  | 13398 | } | 
|  | 13399 | _ACEOF | 
|  | 13400 | for ac_lib in '' opagent; do | 
|  | 13401 | if test -z "$ac_lib"; then | 
|  | 13402 | ac_res="none required" | 
|  | 13403 | else | 
|  | 13404 | ac_res=-l$ac_lib | 
|  | 13405 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 13406 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13407 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13408 | if { (ac_try="$ac_link" | 
|  | 13409 | case "(($ac_try" in | 
|  | 13410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13411 | *) ac_try_echo=$ac_try;; | 
|  | 13412 | esac | 
|  | 13413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13414 | (eval "$ac_link") 2>conftest.er1 | 
|  | 13415 | ac_status=$? | 
|  | 13416 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13417 | rm -f conftest.er1 | 
|  | 13418 | cat conftest.err >&5 | 
|  | 13419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13420 | (exit $ac_status); } && | 
|  | 13421 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 13422 | { (case "(($ac_try" in | 
|  | 13423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13424 | *) ac_try_echo=$ac_try;; | 
|  | 13425 | esac | 
|  | 13426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13427 | (eval "$ac_try") 2>&5 | 
|  | 13428 | ac_status=$? | 
|  | 13429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13430 | (exit $ac_status); }; } && | 
|  | 13431 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13432 | { (case "(($ac_try" in | 
|  | 13433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13434 | *) ac_try_echo=$ac_try;; | 
|  | 13435 | esac | 
|  | 13436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13437 | (eval "$ac_try") 2>&5 | 
|  | 13438 | ac_status=$? | 
|  | 13439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13440 | (exit $ac_status); }; }; then | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13441 | ac_cv_search_op_open_agent=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13442 | else | 
|  | 13443 | echo "$as_me: failed program was:" >&5 | 
|  | 13444 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13445 |  | 
|  | 13446 |  | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13447 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13448 |  | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13449 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13450 | conftest$ac_exeext | 
|  | 13451 | if test "${ac_cv_search_op_open_agent+set}" = set; then | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13452 | break | 
|  | 13453 | fi | 
|  | 13454 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13455 | if test "${ac_cv_search_op_open_agent+set}" = set; then | 
|  | 13456 | : | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13457 | else | 
|  | 13458 | ac_cv_search_op_open_agent=no | 
|  | 13459 | fi | 
|  | 13460 | rm conftest.$ac_ext | 
|  | 13461 | LIBS=$ac_func_search_save_LIBS | 
|  | 13462 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13463 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 | 
|  | 13464 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13465 | ac_res=$ac_cv_search_op_open_agent | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13466 | if test "$ac_res" != no; then | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13467 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 13468 |  | 
|  | 13469 | else | 
|  | 13470 |  | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13471 | echo "Error! You need to have libopagent around." | 
|  | 13472 | exit -1 | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13473 |  | 
|  | 13474 | fi | 
|  | 13475 |  | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13476 | if test "${ac_cv_header_opagent_h+set}" = set; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13477 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 | 
|  | 13478 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } | 
|  | 13479 | if test "${ac_cv_header_opagent_h+set}" = set; then | 
|  | 13480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13481 | fi | 
|  | 13482 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 | 
|  | 13483 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } | 
|  | 13484 | else | 
|  | 13485 | # Is the header compilable? | 
|  | 13486 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 | 
|  | 13487 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } | 
|  | 13488 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13489 | /* confdefs.h.  */ | 
|  | 13490 | _ACEOF | 
|  | 13491 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13492 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 13493 | /* end confdefs.h.  */ | 
|  | 13494 | $ac_includes_default | 
|  | 13495 | #include <opagent.h> | 
|  | 13496 | _ACEOF | 
|  | 13497 | rm -f conftest.$ac_objext | 
|  | 13498 | if { (ac_try="$ac_compile" | 
|  | 13499 | case "(($ac_try" in | 
|  | 13500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13501 | *) ac_try_echo=$ac_try;; | 
|  | 13502 | esac | 
|  | 13503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13504 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 13505 | ac_status=$? | 
|  | 13506 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13507 | rm -f conftest.er1 | 
|  | 13508 | cat conftest.err >&5 | 
|  | 13509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13510 | (exit $ac_status); } && | 
|  | 13511 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 13512 | { (case "(($ac_try" in | 
|  | 13513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13514 | *) ac_try_echo=$ac_try;; | 
|  | 13515 | esac | 
|  | 13516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13517 | (eval "$ac_try") 2>&5 | 
|  | 13518 | ac_status=$? | 
|  | 13519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13520 | (exit $ac_status); }; } && | 
|  | 13521 | { ac_try='test -s conftest.$ac_objext' | 
|  | 13522 | { (case "(($ac_try" in | 
|  | 13523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13524 | *) ac_try_echo=$ac_try;; | 
|  | 13525 | esac | 
|  | 13526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13527 | (eval "$ac_try") 2>&5 | 
|  | 13528 | ac_status=$? | 
|  | 13529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13530 | (exit $ac_status); }; }; then | 
|  | 13531 | ac_header_compiler=yes | 
|  | 13532 | else | 
|  | 13533 | echo "$as_me: failed program was:" >&5 | 
|  | 13534 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13535 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13536 | ac_header_compiler=no | 
|  | 13537 | fi | 
|  | 13538 |  | 
|  | 13539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13540 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 13541 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 13542 |  | 
|  | 13543 | # Is the header present? | 
|  | 13544 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 | 
|  | 13545 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } | 
|  | 13546 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13547 | /* confdefs.h.  */ | 
|  | 13548 | _ACEOF | 
|  | 13549 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13550 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 13551 | /* end confdefs.h.  */ | 
|  | 13552 | #include <opagent.h> | 
|  | 13553 | _ACEOF | 
|  | 13554 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 13555 | case "(($ac_try" in | 
|  | 13556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13557 | *) ac_try_echo=$ac_try;; | 
|  | 13558 | esac | 
|  | 13559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13560 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 13561 | ac_status=$? | 
|  | 13562 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13563 | rm -f conftest.er1 | 
|  | 13564 | cat conftest.err >&5 | 
|  | 13565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13566 | (exit $ac_status); } >/dev/null; then | 
|  | 13567 | if test -s conftest.err; then | 
|  | 13568 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 13569 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 13570 | else | 
|  | 13571 | ac_cpp_err= | 
|  | 13572 | fi | 
|  | 13573 | else | 
|  | 13574 | ac_cpp_err=yes | 
|  | 13575 | fi | 
|  | 13576 | if test -z "$ac_cpp_err"; then | 
|  | 13577 | ac_header_preproc=yes | 
|  | 13578 | else | 
|  | 13579 | echo "$as_me: failed program was:" >&5 | 
|  | 13580 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13581 |  | 
|  | 13582 | ac_header_preproc=no | 
|  | 13583 | fi | 
|  | 13584 |  | 
|  | 13585 | rm -f conftest.err conftest.$ac_ext | 
|  | 13586 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 13587 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 13588 |  | 
|  | 13589 | # So?  What about this header? | 
|  | 13590 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 13591 | yes:no: ) | 
|  | 13592 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 13593 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 13594 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 | 
|  | 13595 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} | 
|  | 13596 | ac_header_preproc=yes | 
|  | 13597 | ;; | 
|  | 13598 | no:yes:* ) | 
|  | 13599 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 | 
|  | 13600 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} | 
|  | 13601 | { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5 | 
|  | 13602 | echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;} | 
|  | 13603 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 | 
|  | 13604 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} | 
|  | 13605 | { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 13606 | echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 13607 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 | 
|  | 13608 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} | 
|  | 13609 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 | 
|  | 13610 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} | 
|  | 13611 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 13612 | ## ------------------------------------ ## | 
|  | 13613 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 13614 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13615 | _ASBOX | 
|  | 13616 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 13617 | ;; | 
|  | 13618 | esac | 
|  | 13619 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 | 
|  | 13620 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } | 
|  | 13621 | if test "${ac_cv_header_opagent_h+set}" = set; then | 
|  | 13622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13623 | else | 
|  | 13624 | ac_cv_header_opagent_h=$ac_header_preproc | 
|  | 13625 | fi | 
|  | 13626 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 | 
|  | 13627 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } | 
|  | 13628 |  | 
|  | 13629 | fi | 
|  | 13630 | if test $ac_cv_header_opagent_h = yes; then | 
|  | 13631 | : | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13632 | else | 
|  | 13633 |  | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13634 | echo "Error! You need to have opagent.h around." | 
|  | 13635 | exit -1 | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13636 |  | 
|  | 13637 | fi | 
|  | 13638 |  | 
|  | 13639 |  | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13640 | fi ;; | 
|  | 13641 | *) | 
|  | 13642 | { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5 | 
|  | 13643 | echo "$as_me: error: OProfile support is available on Linux only." >&2;} | 
|  | 13644 | { (exit 1); exit 1; }; } ;; | 
|  | 13645 | esac | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13646 |  | 
|  | 13647 | else | 
|  | 13648 |  | 
| Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13649 | USE_OPROFILE=0 | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13650 |  | 
|  | 13651 |  | 
|  | 13652 | fi | 
|  | 13653 |  | 
|  | 13654 |  | 
|  | 13655 | cat >>confdefs.h <<_ACEOF | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13656 | #define LLVM_USE_OPROFILE $USE_OPROFILE | 
|  | 13657 | _ACEOF | 
|  | 13658 |  | 
|  | 13659 |  | 
|  | 13660 |  | 
|  | 13661 | # Check whether --with-intel-jitevents was given. | 
|  | 13662 | if test "${with_intel_jitevents+set}" = set; then | 
|  | 13663 | withval=$with_intel_jitevents; | 
|  | 13664 | case $llvm_cv_os_type in | 
|  | 13665 | Linux|Win32|Cygwin|MingW) ;; | 
|  | 13666 | *) | 
|  | 13667 | { { echo "$as_me:$LINENO: error: | 
|  | 13668 | Intel JIT API support is available on Linux and Windows only.\"" >&5 | 
|  | 13669 | echo "$as_me: error: | 
|  | 13670 | Intel JIT API support is available on Linux and Windows only.\"" >&2;} | 
|  | 13671 | { (exit 1); exit 1; }; } ;; | 
|  | 13672 | esac | 
|  | 13673 |  | 
|  | 13674 | USE_INTEL_JITEVENTS=1 | 
|  | 13675 |  | 
|  | 13676 | case "$llvm_cv_target_arch" in | 
|  | 13677 | x86)    llvm_intel_jitevents_archdir="lib32";; | 
|  | 13678 | x86_64) llvm_intel_jitevents_archdir="lib64";; | 
|  | 13679 | *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API" | 
|  | 13680 | exit -1;; | 
|  | 13681 | esac | 
|  | 13682 | INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include" | 
|  | 13683 | INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir" | 
|  | 13684 | case "$withval" in | 
|  | 13685 | /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include | 
|  | 13686 | INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;; | 
|  | 13687 | *) ;; | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13688 | esac | 
|  | 13689 |  | 
|  | 13690 |  | 
|  | 13691 |  | 
|  | 13692 |  | 
|  | 13693 | LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}" | 
|  | 13694 | CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR" | 
|  | 13695 |  | 
|  | 13696 | { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5 | 
|  | 13697 | echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; } | 
|  | 13698 | if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then | 
|  | 13699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13700 | else | 
|  | 13701 | ac_func_search_save_LIBS=$LIBS | 
|  | 13702 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13703 | /* confdefs.h.  */ | 
|  | 13704 | _ACEOF | 
|  | 13705 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13706 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 13707 | /* end confdefs.h.  */ | 
|  | 13708 |  | 
|  | 13709 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13710 | Use char because int might match the return type of a GCC | 
|  | 13711 | builtin and then its argument prototype would still apply.  */ | 
|  | 13712 | #ifdef __cplusplus | 
|  | 13713 | extern "C" | 
|  | 13714 | #endif | 
|  | 13715 | char iJIT_IsProfilingActive (); | 
|  | 13716 | int | 
|  | 13717 | main () | 
|  | 13718 | { | 
|  | 13719 | return iJIT_IsProfilingActive (); | 
|  | 13720 | ; | 
|  | 13721 | return 0; | 
|  | 13722 | } | 
|  | 13723 | _ACEOF | 
|  | 13724 | for ac_lib in '' jitprofiling; do | 
|  | 13725 | if test -z "$ac_lib"; then | 
|  | 13726 | ac_res="none required" | 
|  | 13727 | else | 
|  | 13728 | ac_res=-l$ac_lib | 
|  | 13729 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 13730 | fi | 
|  | 13731 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13732 | if { (ac_try="$ac_link" | 
|  | 13733 | case "(($ac_try" in | 
|  | 13734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13735 | *) ac_try_echo=$ac_try;; | 
|  | 13736 | esac | 
|  | 13737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13738 | (eval "$ac_link") 2>conftest.er1 | 
|  | 13739 | ac_status=$? | 
|  | 13740 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13741 | rm -f conftest.er1 | 
|  | 13742 | cat conftest.err >&5 | 
|  | 13743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13744 | (exit $ac_status); } && | 
|  | 13745 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 13746 | { (case "(($ac_try" in | 
|  | 13747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13748 | *) ac_try_echo=$ac_try;; | 
|  | 13749 | esac | 
|  | 13750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13751 | (eval "$ac_try") 2>&5 | 
|  | 13752 | ac_status=$? | 
|  | 13753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13754 | (exit $ac_status); }; } && | 
|  | 13755 | { ac_try='test -s conftest$ac_exeext' | 
|  | 13756 | { (case "(($ac_try" in | 
|  | 13757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13758 | *) ac_try_echo=$ac_try;; | 
|  | 13759 | esac | 
|  | 13760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13761 | (eval "$ac_try") 2>&5 | 
|  | 13762 | ac_status=$? | 
|  | 13763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13764 | (exit $ac_status); }; }; then | 
|  | 13765 | ac_cv_search_iJIT_IsProfilingActive=$ac_res | 
|  | 13766 | else | 
|  | 13767 | echo "$as_me: failed program was:" >&5 | 
|  | 13768 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13769 |  | 
|  | 13770 |  | 
|  | 13771 | fi | 
|  | 13772 |  | 
|  | 13773 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13774 | conftest$ac_exeext | 
|  | 13775 | if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then | 
|  | 13776 | break | 
|  | 13777 | fi | 
|  | 13778 | done | 
|  | 13779 | if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then | 
|  | 13780 | : | 
|  | 13781 | else | 
|  | 13782 | ac_cv_search_iJIT_IsProfilingActive=no | 
|  | 13783 | fi | 
|  | 13784 | rm conftest.$ac_ext | 
|  | 13785 | LIBS=$ac_func_search_save_LIBS | 
|  | 13786 | fi | 
|  | 13787 | { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5 | 
|  | 13788 | echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; } | 
|  | 13789 | ac_res=$ac_cv_search_iJIT_IsProfilingActive | 
|  | 13790 | if test "$ac_res" != no; then | 
|  | 13791 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 13792 |  | 
|  | 13793 | else | 
|  | 13794 |  | 
|  | 13795 | echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents" | 
|  | 13796 | exit -1 | 
|  | 13797 |  | 
|  | 13798 | fi | 
|  | 13799 |  | 
|  | 13800 | if test "${ac_cv_header_jitprofiling_h+set}" = set; then | 
|  | 13801 | { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5 | 
|  | 13802 | echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; } | 
|  | 13803 | if test "${ac_cv_header_jitprofiling_h+set}" = set; then | 
|  | 13804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13805 | fi | 
|  | 13806 | { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5 | 
|  | 13807 | echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; } | 
|  | 13808 | else | 
|  | 13809 | # Is the header compilable? | 
|  | 13810 | { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5 | 
|  | 13811 | echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; } | 
|  | 13812 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13813 | /* confdefs.h.  */ | 
|  | 13814 | _ACEOF | 
|  | 13815 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13816 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 13817 | /* end confdefs.h.  */ | 
|  | 13818 | $ac_includes_default | 
|  | 13819 | #include <jitprofiling.h> | 
|  | 13820 | _ACEOF | 
|  | 13821 | rm -f conftest.$ac_objext | 
|  | 13822 | if { (ac_try="$ac_compile" | 
|  | 13823 | case "(($ac_try" in | 
|  | 13824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13825 | *) ac_try_echo=$ac_try;; | 
|  | 13826 | esac | 
|  | 13827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13828 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 13829 | ac_status=$? | 
|  | 13830 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13831 | rm -f conftest.er1 | 
|  | 13832 | cat conftest.err >&5 | 
|  | 13833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13834 | (exit $ac_status); } && | 
|  | 13835 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 13836 | { (case "(($ac_try" in | 
|  | 13837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13838 | *) ac_try_echo=$ac_try;; | 
|  | 13839 | esac | 
|  | 13840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13841 | (eval "$ac_try") 2>&5 | 
|  | 13842 | ac_status=$? | 
|  | 13843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13844 | (exit $ac_status); }; } && | 
|  | 13845 | { ac_try='test -s conftest.$ac_objext' | 
|  | 13846 | { (case "(($ac_try" in | 
|  | 13847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13848 | *) ac_try_echo=$ac_try;; | 
|  | 13849 | esac | 
|  | 13850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13851 | (eval "$ac_try") 2>&5 | 
|  | 13852 | ac_status=$? | 
|  | 13853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13854 | (exit $ac_status); }; }; then | 
|  | 13855 | ac_header_compiler=yes | 
|  | 13856 | else | 
|  | 13857 | echo "$as_me: failed program was:" >&5 | 
|  | 13858 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13859 |  | 
|  | 13860 | ac_header_compiler=no | 
|  | 13861 | fi | 
|  | 13862 |  | 
|  | 13863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13864 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 13865 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 13866 |  | 
|  | 13867 | # Is the header present? | 
|  | 13868 | { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5 | 
|  | 13869 | echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; } | 
|  | 13870 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13871 | /* confdefs.h.  */ | 
|  | 13872 | _ACEOF | 
|  | 13873 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13874 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 13875 | /* end confdefs.h.  */ | 
|  | 13876 | #include <jitprofiling.h> | 
|  | 13877 | _ACEOF | 
|  | 13878 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 13879 | case "(($ac_try" in | 
|  | 13880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 13881 | *) ac_try_echo=$ac_try;; | 
|  | 13882 | esac | 
|  | 13883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 13884 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 13885 | ac_status=$? | 
|  | 13886 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13887 | rm -f conftest.er1 | 
|  | 13888 | cat conftest.err >&5 | 
|  | 13889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13890 | (exit $ac_status); } >/dev/null; then | 
|  | 13891 | if test -s conftest.err; then | 
|  | 13892 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 13893 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 13894 | else | 
|  | 13895 | ac_cpp_err= | 
|  | 13896 | fi | 
|  | 13897 | else | 
|  | 13898 | ac_cpp_err=yes | 
|  | 13899 | fi | 
|  | 13900 | if test -z "$ac_cpp_err"; then | 
|  | 13901 | ac_header_preproc=yes | 
|  | 13902 | else | 
|  | 13903 | echo "$as_me: failed program was:" >&5 | 
|  | 13904 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13905 |  | 
|  | 13906 | ac_header_preproc=no | 
|  | 13907 | fi | 
|  | 13908 |  | 
|  | 13909 | rm -f conftest.err conftest.$ac_ext | 
|  | 13910 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 13911 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 13912 |  | 
|  | 13913 | # So?  What about this header? | 
|  | 13914 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 13915 | yes:no: ) | 
|  | 13916 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 13917 | echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 13918 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5 | 
|  | 13919 | echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;} | 
|  | 13920 | ac_header_preproc=yes | 
|  | 13921 | ;; | 
|  | 13922 | no:yes:* ) | 
|  | 13923 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5 | 
|  | 13924 | echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;} | 
|  | 13925 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5 | 
|  | 13926 | echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;} | 
|  | 13927 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5 | 
|  | 13928 | echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;} | 
|  | 13929 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 13930 | echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 13931 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5 | 
|  | 13932 | echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;} | 
|  | 13933 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5 | 
|  | 13934 | echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;} | 
|  | 13935 | ( cat <<\_ASBOX | 
|  | 13936 | ## ------------------------------------ ## | 
|  | 13937 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 13938 | ## ------------------------------------ ## | 
|  | 13939 | _ASBOX | 
|  | 13940 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 13941 | ;; | 
|  | 13942 | esac | 
|  | 13943 | { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5 | 
|  | 13944 | echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; } | 
|  | 13945 | if test "${ac_cv_header_jitprofiling_h+set}" = set; then | 
|  | 13946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13947 | else | 
|  | 13948 | ac_cv_header_jitprofiling_h=$ac_header_preproc | 
|  | 13949 | fi | 
|  | 13950 | { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5 | 
|  | 13951 | echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; } | 
|  | 13952 |  | 
|  | 13953 | fi | 
|  | 13954 | if test $ac_cv_header_jitprofiling_h = yes; then | 
|  | 13955 | : | 
|  | 13956 | else | 
|  | 13957 |  | 
|  | 13958 | echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents" | 
|  | 13959 | exit -1 | 
|  | 13960 |  | 
|  | 13961 | fi | 
|  | 13962 |  | 
|  | 13963 |  | 
|  | 13964 |  | 
|  | 13965 |  | 
|  | 13966 | else | 
|  | 13967 |  | 
|  | 13968 | USE_INTEL_JITEVENTS=0 | 
|  | 13969 |  | 
|  | 13970 |  | 
|  | 13971 | fi | 
|  | 13972 |  | 
|  | 13973 |  | 
|  | 13974 | cat >>confdefs.h <<_ACEOF | 
|  | 13975 | #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS | 
| Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13976 | _ACEOF | 
|  | 13977 |  | 
|  | 13978 |  | 
|  | 13979 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13980 |  | 
|  | 13981 |  | 
|  | 13982 |  | 
|  | 13983 |  | 
|  | 13984 |  | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13985 | ac_header_dirent=no | 
|  | 13986 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13987 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
|  | 13988 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | 
|  | 13989 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | 
|  | 13990 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 13991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13992 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13993 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 13994 | /* confdefs.h.  */ | 
|  | 13995 | _ACEOF | 
|  | 13996 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13997 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13998 | /* end confdefs.h.  */ | 
|  | 13999 | #include <sys/types.h> | 
|  | 14000 | #include <$ac_hdr> | 
|  | 14001 |  | 
|  | 14002 | int | 
|  | 14003 | main () | 
|  | 14004 | { | 
|  | 14005 | if ((DIR *) 0) | 
|  | 14006 | return 0; | 
|  | 14007 | ; | 
|  | 14008 | return 0; | 
|  | 14009 | } | 
|  | 14010 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14011 | rm -f conftest.$ac_objext | 
|  | 14012 | if { (ac_try="$ac_compile" | 
|  | 14013 | case "(($ac_try" in | 
|  | 14014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14015 | *) ac_try_echo=$ac_try;; | 
|  | 14016 | esac | 
|  | 14017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14018 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14019 | ac_status=$? | 
|  | 14020 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14021 | rm -f conftest.er1 | 
|  | 14022 | cat conftest.err >&5 | 
|  | 14023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14024 | (exit $ac_status); } && | 
|  | 14025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 14026 | { (case "(($ac_try" in | 
|  | 14027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14028 | *) ac_try_echo=$ac_try;; | 
|  | 14029 | esac | 
|  | 14030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14031 | (eval "$ac_try") 2>&5 | 
|  | 14032 | ac_status=$? | 
|  | 14033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14034 | (exit $ac_status); }; } && | 
|  | 14035 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14036 | { (case "(($ac_try" in | 
|  | 14037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14038 | *) ac_try_echo=$ac_try;; | 
|  | 14039 | esac | 
|  | 14040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14041 | (eval "$ac_try") 2>&5 | 
|  | 14042 | ac_status=$? | 
|  | 14043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14044 | (exit $ac_status); }; }; then | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14045 | eval "$as_ac_Header=yes" | 
|  | 14046 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14047 | echo "$as_me: failed program was:" >&5 | 
|  | 14048 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14049 |  | 
|  | 14050 | eval "$as_ac_Header=no" | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14051 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14052 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14054 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14055 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14056 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14057 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14058 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14059 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14060 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14061 | _ACEOF | 
|  | 14062 |  | 
|  | 14063 | ac_header_dirent=$ac_hdr; break | 
|  | 14064 | fi | 
|  | 14065 |  | 
|  | 14066 | done | 
|  | 14067 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 14068 | if test $ac_header_dirent = dirent.h; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14069 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
|  | 14070 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | 
|  | 14071 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 14072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14073 | else | 
|  | 14074 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14075 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14076 | /* confdefs.h.  */ | 
|  | 14077 | _ACEOF | 
|  | 14078 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14079 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14080 | /* end confdefs.h.  */ | 
|  | 14081 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14082 | /* Override any GCC internal prototype to avoid an error. | 
|  | 14083 | Use char because int might match the return type of a GCC | 
|  | 14084 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14085 | #ifdef __cplusplus | 
|  | 14086 | extern "C" | 
|  | 14087 | #endif | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14088 | char opendir (); | 
|  | 14089 | int | 
|  | 14090 | main () | 
|  | 14091 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14092 | return opendir (); | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14093 | ; | 
|  | 14094 | return 0; | 
|  | 14095 | } | 
|  | 14096 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14097 | for ac_lib in '' dir; do | 
|  | 14098 | if test -z "$ac_lib"; then | 
|  | 14099 | ac_res="none required" | 
|  | 14100 | else | 
|  | 14101 | ac_res=-l$ac_lib | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14102 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14103 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14104 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 14105 | if { (ac_try="$ac_link" | 
|  | 14106 | case "(($ac_try" in | 
|  | 14107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14108 | *) ac_try_echo=$ac_try;; | 
|  | 14109 | esac | 
|  | 14110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14111 | (eval "$ac_link") 2>conftest.er1 | 
|  | 14112 | ac_status=$? | 
|  | 14113 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14114 | rm -f conftest.er1 | 
|  | 14115 | cat conftest.err >&5 | 
|  | 14116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14117 | (exit $ac_status); } && | 
|  | 14118 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 14119 | { (case "(($ac_try" in | 
|  | 14120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14121 | *) ac_try_echo=$ac_try;; | 
|  | 14122 | esac | 
|  | 14123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14124 | (eval "$ac_try") 2>&5 | 
|  | 14125 | ac_status=$? | 
|  | 14126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14127 | (exit $ac_status); }; } && | 
|  | 14128 | { ac_try='test -s conftest$ac_exeext' | 
|  | 14129 | { (case "(($ac_try" in | 
|  | 14130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14131 | *) ac_try_echo=$ac_try;; | 
|  | 14132 | esac | 
|  | 14133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14134 | (eval "$ac_try") 2>&5 | 
|  | 14135 | ac_status=$? | 
|  | 14136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14137 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14138 | ac_cv_search_opendir=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14139 | else | 
|  | 14140 | echo "$as_me: failed program was:" >&5 | 
|  | 14141 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14142 |  | 
|  | 14143 |  | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14144 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14145 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14146 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14147 | conftest$ac_exeext | 
|  | 14148 | if test "${ac_cv_search_opendir+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14149 | break | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14150 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14151 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14152 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 14153 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14154 | else | 
|  | 14155 | ac_cv_search_opendir=no | 
|  | 14156 | fi | 
|  | 14157 | rm conftest.$ac_ext | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14158 | LIBS=$ac_func_search_save_LIBS | 
|  | 14159 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14160 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
|  | 14161 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14162 | ac_res=$ac_cv_search_opendir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14163 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14164 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14165 |  | 
|  | 14166 | fi | 
|  | 14167 |  | 
|  | 14168 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14169 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
|  | 14170 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | 
|  | 14171 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 14172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14173 | else | 
|  | 14174 | ac_func_search_save_LIBS=$LIBS | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14175 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14176 | /* confdefs.h.  */ | 
|  | 14177 | _ACEOF | 
|  | 14178 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14179 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14180 | /* end confdefs.h.  */ | 
|  | 14181 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14182 | /* Override any GCC internal prototype to avoid an error. | 
|  | 14183 | Use char because int might match the return type of a GCC | 
|  | 14184 | builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14185 | #ifdef __cplusplus | 
|  | 14186 | extern "C" | 
|  | 14187 | #endif | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14188 | char opendir (); | 
|  | 14189 | int | 
|  | 14190 | main () | 
|  | 14191 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14192 | return opendir (); | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14193 | ; | 
|  | 14194 | return 0; | 
|  | 14195 | } | 
|  | 14196 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14197 | for ac_lib in '' x; do | 
|  | 14198 | if test -z "$ac_lib"; then | 
|  | 14199 | ac_res="none required" | 
|  | 14200 | else | 
|  | 14201 | ac_res=-l$ac_lib | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14202 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14203 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14204 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 14205 | if { (ac_try="$ac_link" | 
|  | 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_link") 2>conftest.er1 | 
|  | 14212 | ac_status=$? | 
|  | 14213 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14214 | rm -f conftest.er1 | 
|  | 14215 | cat conftest.err >&5 | 
|  | 14216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14217 | (exit $ac_status); } && | 
|  | 14218 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 14219 | { (case "(($ac_try" in | 
|  | 14220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14221 | *) ac_try_echo=$ac_try;; | 
|  | 14222 | esac | 
|  | 14223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14224 | (eval "$ac_try") 2>&5 | 
|  | 14225 | ac_status=$? | 
|  | 14226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14227 | (exit $ac_status); }; } && | 
|  | 14228 | { ac_try='test -s conftest$ac_exeext' | 
|  | 14229 | { (case "(($ac_try" in | 
|  | 14230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14231 | *) ac_try_echo=$ac_try;; | 
|  | 14232 | esac | 
|  | 14233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14234 | (eval "$ac_try") 2>&5 | 
|  | 14235 | ac_status=$? | 
|  | 14236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14237 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14238 | ac_cv_search_opendir=$ac_res | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14239 | else | 
|  | 14240 | echo "$as_me: failed program was:" >&5 | 
|  | 14241 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14242 |  | 
|  | 14243 |  | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14244 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14245 |  | 
| Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14246 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14247 | conftest$ac_exeext | 
|  | 14248 | if test "${ac_cv_search_opendir+set}" = set; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14249 | break | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14250 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14251 | done | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14252 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 14253 | : | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14254 | else | 
|  | 14255 | ac_cv_search_opendir=no | 
|  | 14256 | fi | 
|  | 14257 | rm conftest.$ac_ext | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14258 | LIBS=$ac_func_search_save_LIBS | 
|  | 14259 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14260 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
|  | 14261 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14262 | ac_res=$ac_cv_search_opendir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14263 | if test "$ac_res" != no; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14264 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14265 |  | 
|  | 14266 | fi | 
|  | 14267 |  | 
|  | 14268 | fi | 
|  | 14269 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14270 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 | 
|  | 14271 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } | 
|  | 14272 | if test "${ac_cv_header_mmap_anon+set}" = set; then | 
|  | 14273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14274 | else | 
|  | 14275 | ac_ext=c | 
|  | 14276 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 14277 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 14278 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 14279 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 14280 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14281 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14282 | /* confdefs.h.  */ | 
|  | 14283 | _ACEOF | 
|  | 14284 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14285 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14286 | /* end confdefs.h.  */ | 
|  | 14287 | #include <sys/mman.h> | 
|  | 14288 | #include <unistd.h> | 
|  | 14289 | #include <fcntl.h> | 
|  | 14290 | int | 
|  | 14291 | main () | 
|  | 14292 | { | 
|  | 14293 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); | 
|  | 14294 | ; | 
|  | 14295 | return 0; | 
|  | 14296 | } | 
|  | 14297 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14298 | rm -f conftest.$ac_objext | 
|  | 14299 | if { (ac_try="$ac_compile" | 
|  | 14300 | case "(($ac_try" in | 
|  | 14301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14302 | *) ac_try_echo=$ac_try;; | 
|  | 14303 | esac | 
|  | 14304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14305 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14306 | ac_status=$? | 
|  | 14307 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14308 | rm -f conftest.er1 | 
|  | 14309 | cat conftest.err >&5 | 
|  | 14310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14311 | (exit $ac_status); } && | 
|  | 14312 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 14313 | { (case "(($ac_try" in | 
|  | 14314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14315 | *) ac_try_echo=$ac_try;; | 
|  | 14316 | esac | 
|  | 14317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14318 | (eval "$ac_try") 2>&5 | 
|  | 14319 | ac_status=$? | 
|  | 14320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14321 | (exit $ac_status); }; } && | 
|  | 14322 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14323 | { (case "(($ac_try" in | 
|  | 14324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14325 | *) ac_try_echo=$ac_try;; | 
|  | 14326 | esac | 
|  | 14327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14328 | (eval "$ac_try") 2>&5 | 
|  | 14329 | ac_status=$? | 
|  | 14330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14331 | (exit $ac_status); }; }; then | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14332 | ac_cv_header_mmap_anon=yes | 
|  | 14333 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14334 | echo "$as_me: failed program was:" >&5 | 
|  | 14335 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14336 |  | 
|  | 14337 | ac_cv_header_mmap_anon=no | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14338 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14339 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14341 | ac_ext=c | 
|  | 14342 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 14343 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 14344 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 14345 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 14346 |  | 
|  | 14347 |  | 
|  | 14348 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14349 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 | 
|  | 14350 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14351 | if test "$ac_cv_header_mmap_anon" = yes; then | 
|  | 14352 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14353 | cat >>confdefs.h <<\_ACEOF | 
|  | 14354 | #define HAVE_MMAP_ANONYMOUS 1 | 
|  | 14355 | _ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14356 |  | 
|  | 14357 | fi | 
|  | 14358 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14359 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 | 
|  | 14360 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } | 
|  | 14361 | if test "${ac_cv_header_stat_broken+set}" = set; then | 
|  | 14362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14363 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14364 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14365 | /* confdefs.h.  */ | 
|  | 14366 | _ACEOF | 
|  | 14367 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14368 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14369 | /* end confdefs.h.  */ | 
|  | 14370 | #include <sys/types.h> | 
|  | 14371 | #include <sys/stat.h> | 
|  | 14372 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14373 | #if defined S_ISBLK && defined S_IFDIR | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14374 | # if S_ISBLK (S_IFDIR) | 
|  | 14375 | You lose. | 
|  | 14376 | # endif | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14377 | #endif | 
|  | 14378 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14379 | #if defined S_ISBLK && defined S_IFCHR | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14380 | # if S_ISBLK (S_IFCHR) | 
|  | 14381 | You lose. | 
|  | 14382 | # endif | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14383 | #endif | 
|  | 14384 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14385 | #if defined S_ISLNK && defined S_IFREG | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14386 | # if S_ISLNK (S_IFREG) | 
|  | 14387 | You lose. | 
|  | 14388 | # endif | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14389 | #endif | 
|  | 14390 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14391 | #if defined S_ISSOCK && defined S_IFREG | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14392 | # if S_ISSOCK (S_IFREG) | 
|  | 14393 | You lose. | 
|  | 14394 | # endif | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14395 | #endif | 
|  | 14396 |  | 
|  | 14397 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14398 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 14399 | $EGREP "You lose" >/dev/null 2>&1; then | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 14400 | ac_cv_header_stat_broken=yes | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14401 | else | 
|  | 14402 | ac_cv_header_stat_broken=no | 
| Mikhail Glushenkov | 4308aa5 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 14403 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14404 | rm -f conftest* | 
|  | 14405 |  | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14406 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14407 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 | 
|  | 14408 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14409 | if test $ac_cv_header_stat_broken = yes; then | 
|  | 14410 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14411 | cat >>confdefs.h <<\_ACEOF | 
|  | 14412 | #define STAT_MACROS_BROKEN 1 | 
|  | 14413 | _ACEOF | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14414 |  | 
|  | 14415 | fi | 
|  | 14416 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14417 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 
|  | 14418 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | 
|  | 14419 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | 
|  | 14420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14421 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14422 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14423 | /* confdefs.h.  */ | 
|  | 14424 | _ACEOF | 
|  | 14425 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14426 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14427 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14428 | #include <sys/types.h> | 
|  | 14429 | #include <sys/wait.h> | 
|  | 14430 | #ifndef WEXITSTATUS | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14431 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14432 | #endif | 
|  | 14433 | #ifndef WIFEXITED | 
|  | 14434 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | 
|  | 14435 | #endif | 
|  | 14436 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14437 | int | 
|  | 14438 | main () | 
|  | 14439 | { | 
|  | 14440 | int s; | 
|  | 14441 | wait (&s); | 
|  | 14442 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 
|  | 14443 | ; | 
|  | 14444 | return 0; | 
|  | 14445 | } | 
|  | 14446 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14447 | rm -f conftest.$ac_objext | 
|  | 14448 | if { (ac_try="$ac_compile" | 
|  | 14449 | case "(($ac_try" in | 
|  | 14450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14451 | *) ac_try_echo=$ac_try;; | 
|  | 14452 | esac | 
|  | 14453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14454 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14455 | ac_status=$? | 
|  | 14456 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14457 | rm -f conftest.er1 | 
|  | 14458 | cat conftest.err >&5 | 
|  | 14459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14460 | (exit $ac_status); } && | 
|  | 14461 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 14462 | { (case "(($ac_try" in | 
|  | 14463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14464 | *) ac_try_echo=$ac_try;; | 
|  | 14465 | esac | 
|  | 14466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14467 | (eval "$ac_try") 2>&5 | 
|  | 14468 | ac_status=$? | 
|  | 14469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14470 | (exit $ac_status); }; } && | 
|  | 14471 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14472 | { (case "(($ac_try" in | 
|  | 14473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14474 | *) ac_try_echo=$ac_try;; | 
|  | 14475 | esac | 
|  | 14476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14477 | (eval "$ac_try") 2>&5 | 
|  | 14478 | ac_status=$? | 
|  | 14479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14480 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14481 | ac_cv_header_sys_wait_h=yes | 
|  | 14482 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14483 | echo "$as_me: failed program was:" >&5 | 
|  | 14484 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14485 |  | 
|  | 14486 | ac_cv_header_sys_wait_h=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14487 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14488 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14490 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14491 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | 
|  | 14492 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14493 | if test $ac_cv_header_sys_wait_h = yes; then | 
|  | 14494 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14495 | cat >>confdefs.h <<\_ACEOF | 
|  | 14496 | #define HAVE_SYS_WAIT_H 1 | 
|  | 14497 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14498 |  | 
|  | 14499 | fi | 
|  | 14500 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14501 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | 
|  | 14502 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | 
|  | 14503 | if test "${ac_cv_header_time+set}" = set; then | 
|  | 14504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14505 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14506 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14507 | /* confdefs.h.  */ | 
|  | 14508 | _ACEOF | 
|  | 14509 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14510 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14511 | /* end confdefs.h.  */ | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14512 | #include <sys/types.h> | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14513 | #include <sys/time.h> | 
|  | 14514 | #include <time.h> | 
|  | 14515 |  | 
|  | 14516 | int | 
|  | 14517 | main () | 
|  | 14518 | { | 
|  | 14519 | if ((struct tm *) 0) | 
|  | 14520 | return 0; | 
|  | 14521 | ; | 
|  | 14522 | return 0; | 
|  | 14523 | } | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14524 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14525 | rm -f conftest.$ac_objext | 
|  | 14526 | if { (ac_try="$ac_compile" | 
|  | 14527 | case "(($ac_try" in | 
|  | 14528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14529 | *) ac_try_echo=$ac_try;; | 
|  | 14530 | esac | 
|  | 14531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14532 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14533 | ac_status=$? | 
|  | 14534 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14535 | rm -f conftest.er1 | 
|  | 14536 | cat conftest.err >&5 | 
|  | 14537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14538 | (exit $ac_status); } && | 
|  | 14539 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 14540 | { (case "(($ac_try" in | 
|  | 14541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14542 | *) ac_try_echo=$ac_try;; | 
|  | 14543 | esac | 
|  | 14544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14545 | (eval "$ac_try") 2>&5 | 
|  | 14546 | ac_status=$? | 
|  | 14547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14548 | (exit $ac_status); }; } && | 
|  | 14549 | { ac_try='test -s conftest.$ac_objext' | 
|  | 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); }; }; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14559 | ac_cv_header_time=yes | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14560 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14561 | echo "$as_me: failed program was:" >&5 | 
|  | 14562 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14563 |  | 
|  | 14564 | ac_cv_header_time=no | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14565 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14566 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14568 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14569 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | 
|  | 14570 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14571 | if test $ac_cv_header_time = yes; then | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14572 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14573 | cat >>confdefs.h <<\_ACEOF | 
|  | 14574 | #define TIME_WITH_SYS_TIME 1 | 
|  | 14575 | _ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14576 |  | 
|  | 14577 | fi | 
|  | 14578 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14579 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14580 |  | 
|  | 14581 |  | 
|  | 14582 |  | 
|  | 14583 |  | 
|  | 14584 |  | 
|  | 14585 |  | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14586 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14587 | do | 
|  | 14588 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 14589 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14590 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 14591 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 14592 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14594 | fi | 
|  | 14595 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14596 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14597 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14598 | else | 
|  | 14599 | # Is the header compilable? | 
|  | 14600 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 14601 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 14602 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14603 | /* confdefs.h.  */ | 
|  | 14604 | _ACEOF | 
|  | 14605 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14606 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14607 | /* end confdefs.h.  */ | 
|  | 14608 | $ac_includes_default | 
|  | 14609 | #include <$ac_header> | 
|  | 14610 | _ACEOF | 
|  | 14611 | rm -f conftest.$ac_objext | 
|  | 14612 | if { (ac_try="$ac_compile" | 
|  | 14613 | case "(($ac_try" in | 
|  | 14614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14615 | *) ac_try_echo=$ac_try;; | 
|  | 14616 | esac | 
|  | 14617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14618 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14619 | ac_status=$? | 
|  | 14620 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14621 | rm -f conftest.er1 | 
|  | 14622 | cat conftest.err >&5 | 
|  | 14623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14624 | (exit $ac_status); } && | 
|  | 14625 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 14626 | { (case "(($ac_try" in | 
|  | 14627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14628 | *) ac_try_echo=$ac_try;; | 
|  | 14629 | esac | 
|  | 14630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14631 | (eval "$ac_try") 2>&5 | 
|  | 14632 | ac_status=$? | 
|  | 14633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14634 | (exit $ac_status); }; } && | 
|  | 14635 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14636 | { (case "(($ac_try" in | 
|  | 14637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14638 | *) ac_try_echo=$ac_try;; | 
|  | 14639 | esac | 
|  | 14640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14641 | (eval "$ac_try") 2>&5 | 
|  | 14642 | ac_status=$? | 
|  | 14643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14644 | (exit $ac_status); }; }; then | 
|  | 14645 | ac_header_compiler=yes | 
|  | 14646 | else | 
|  | 14647 | echo "$as_me: failed program was:" >&5 | 
|  | 14648 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14649 |  | 
|  | 14650 | ac_header_compiler=no | 
|  | 14651 | fi | 
|  | 14652 |  | 
|  | 14653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14654 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 14655 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 14656 |  | 
|  | 14657 | # Is the header present? | 
|  | 14658 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 14659 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 14660 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14661 | /* confdefs.h.  */ | 
|  | 14662 | _ACEOF | 
|  | 14663 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14664 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14665 | /* end confdefs.h.  */ | 
|  | 14666 | #include <$ac_header> | 
|  | 14667 | _ACEOF | 
|  | 14668 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 14669 | case "(($ac_try" in | 
|  | 14670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14671 | *) ac_try_echo=$ac_try;; | 
|  | 14672 | esac | 
|  | 14673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14674 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 14675 | ac_status=$? | 
|  | 14676 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14677 | rm -f conftest.er1 | 
|  | 14678 | cat conftest.err >&5 | 
|  | 14679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14680 | (exit $ac_status); } >/dev/null; then | 
|  | 14681 | if test -s conftest.err; then | 
|  | 14682 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 14683 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 14684 | else | 
|  | 14685 | ac_cpp_err= | 
|  | 14686 | fi | 
|  | 14687 | else | 
|  | 14688 | ac_cpp_err=yes | 
|  | 14689 | fi | 
|  | 14690 | if test -z "$ac_cpp_err"; then | 
|  | 14691 | ac_header_preproc=yes | 
|  | 14692 | else | 
|  | 14693 | echo "$as_me: failed program was:" >&5 | 
|  | 14694 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14695 |  | 
|  | 14696 | ac_header_preproc=no | 
|  | 14697 | fi | 
|  | 14698 |  | 
|  | 14699 | rm -f conftest.err conftest.$ac_ext | 
|  | 14700 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 14701 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 14702 |  | 
|  | 14703 | # So?  What about this header? | 
|  | 14704 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 14705 | yes:no: ) | 
|  | 14706 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 14707 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 14708 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 14709 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 14710 | ac_header_preproc=yes | 
|  | 14711 | ;; | 
|  | 14712 | no:yes:* ) | 
|  | 14713 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 14714 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 14715 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 14716 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 14717 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 14718 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 14719 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 14720 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 14721 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 14722 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 14723 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 14724 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 14725 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14726 | ## ------------------------------------ ## | 
|  | 14727 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 14728 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14729 | _ASBOX | 
|  | 14730 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 14731 | ;; | 
|  | 14732 | esac | 
|  | 14733 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 14734 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 14735 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14737 | else | 
|  | 14738 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 14739 | fi | 
|  | 14740 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14741 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14742 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14743 |  | 
|  | 14744 | fi | 
|  | 14745 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14746 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14747 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14748 | _ACEOF | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14749 |  | 
|  | 14750 | fi | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14751 |  | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14752 | done | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14753 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14754 |  | 
|  | 14755 |  | 
|  | 14756 |  | 
|  | 14757 |  | 
|  | 14758 |  | 
|  | 14759 |  | 
| Douglas Gregor | b81294d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 14760 | for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14761 | do | 
|  | 14762 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 14763 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14764 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 14765 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 14766 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14768 | fi | 
|  | 14769 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14770 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14771 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14772 | else | 
|  | 14773 | # Is the header compilable? | 
|  | 14774 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 14775 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 14776 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14777 | /* confdefs.h.  */ | 
|  | 14778 | _ACEOF | 
|  | 14779 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14780 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14781 | /* end confdefs.h.  */ | 
|  | 14782 | $ac_includes_default | 
|  | 14783 | #include <$ac_header> | 
|  | 14784 | _ACEOF | 
|  | 14785 | rm -f conftest.$ac_objext | 
|  | 14786 | if { (ac_try="$ac_compile" | 
|  | 14787 | case "(($ac_try" in | 
|  | 14788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14789 | *) ac_try_echo=$ac_try;; | 
|  | 14790 | esac | 
|  | 14791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14792 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14793 | ac_status=$? | 
|  | 14794 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14795 | rm -f conftest.er1 | 
|  | 14796 | cat conftest.err >&5 | 
|  | 14797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14798 | (exit $ac_status); } && | 
|  | 14799 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 14800 | { (case "(($ac_try" in | 
|  | 14801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14802 | *) ac_try_echo=$ac_try;; | 
|  | 14803 | esac | 
|  | 14804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14805 | (eval "$ac_try") 2>&5 | 
|  | 14806 | ac_status=$? | 
|  | 14807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14808 | (exit $ac_status); }; } && | 
|  | 14809 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14810 | { (case "(($ac_try" in | 
|  | 14811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14812 | *) ac_try_echo=$ac_try;; | 
|  | 14813 | esac | 
|  | 14814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14815 | (eval "$ac_try") 2>&5 | 
|  | 14816 | ac_status=$? | 
|  | 14817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14818 | (exit $ac_status); }; }; then | 
|  | 14819 | ac_header_compiler=yes | 
|  | 14820 | else | 
|  | 14821 | echo "$as_me: failed program was:" >&5 | 
|  | 14822 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14823 |  | 
|  | 14824 | ac_header_compiler=no | 
|  | 14825 | fi | 
|  | 14826 |  | 
|  | 14827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14828 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 14829 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 14830 |  | 
|  | 14831 | # Is the header present? | 
|  | 14832 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 14833 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 14834 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14835 | /* confdefs.h.  */ | 
|  | 14836 | _ACEOF | 
|  | 14837 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14838 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14839 | /* end confdefs.h.  */ | 
|  | 14840 | #include <$ac_header> | 
|  | 14841 | _ACEOF | 
|  | 14842 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 14843 | case "(($ac_try" in | 
|  | 14844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14845 | *) ac_try_echo=$ac_try;; | 
|  | 14846 | esac | 
|  | 14847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14848 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 14849 | ac_status=$? | 
|  | 14850 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14851 | rm -f conftest.er1 | 
|  | 14852 | cat conftest.err >&5 | 
|  | 14853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14854 | (exit $ac_status); } >/dev/null; then | 
|  | 14855 | if test -s conftest.err; then | 
|  | 14856 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 14857 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 14858 | else | 
|  | 14859 | ac_cpp_err= | 
|  | 14860 | fi | 
|  | 14861 | else | 
|  | 14862 | ac_cpp_err=yes | 
|  | 14863 | fi | 
|  | 14864 | if test -z "$ac_cpp_err"; then | 
|  | 14865 | ac_header_preproc=yes | 
|  | 14866 | else | 
|  | 14867 | echo "$as_me: failed program was:" >&5 | 
|  | 14868 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14869 |  | 
|  | 14870 | ac_header_preproc=no | 
|  | 14871 | fi | 
|  | 14872 |  | 
|  | 14873 | rm -f conftest.err conftest.$ac_ext | 
|  | 14874 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 14875 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 14876 |  | 
|  | 14877 | # So?  What about this header? | 
|  | 14878 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 14879 | yes:no: ) | 
|  | 14880 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 14881 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 14882 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 14883 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 14884 | ac_header_preproc=yes | 
|  | 14885 | ;; | 
|  | 14886 | no:yes:* ) | 
|  | 14887 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 14888 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 14889 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 14890 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 14891 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 14892 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 14893 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 14894 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 14895 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 14896 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 14897 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 14898 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 14899 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14900 | ## ------------------------------------ ## | 
|  | 14901 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 14902 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14903 | _ASBOX | 
|  | 14904 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 14905 | ;; | 
|  | 14906 | esac | 
|  | 14907 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 14908 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 14909 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14911 | else | 
|  | 14912 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 14913 | fi | 
|  | 14914 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14915 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14916 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14917 |  | 
|  | 14918 | fi | 
|  | 14919 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14920 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14921 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14922 | _ACEOF | 
|  | 14923 |  | 
|  | 14924 | fi | 
|  | 14925 |  | 
|  | 14926 | done | 
|  | 14927 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14928 |  | 
|  | 14929 |  | 
| Douglas Gregor | b81294d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 14930 | for ac_header in utime.h windows.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14931 | do | 
|  | 14932 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 14933 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14934 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 14935 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 14936 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 14937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14938 | fi | 
|  | 14939 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 14940 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 14941 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 14942 | else | 
|  | 14943 | # Is the header compilable? | 
|  | 14944 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 14945 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 14946 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14947 | /* confdefs.h.  */ | 
|  | 14948 | _ACEOF | 
|  | 14949 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14950 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14951 | /* end confdefs.h.  */ | 
|  | 14952 | $ac_includes_default | 
|  | 14953 | #include <$ac_header> | 
|  | 14954 | _ACEOF | 
|  | 14955 | rm -f conftest.$ac_objext | 
|  | 14956 | if { (ac_try="$ac_compile" | 
|  | 14957 | case "(($ac_try" in | 
|  | 14958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14959 | *) ac_try_echo=$ac_try;; | 
|  | 14960 | esac | 
|  | 14961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14962 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 14963 | ac_status=$? | 
|  | 14964 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14965 | rm -f conftest.er1 | 
|  | 14966 | cat conftest.err >&5 | 
|  | 14967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14968 | (exit $ac_status); } && | 
|  | 14969 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 14970 | { (case "(($ac_try" in | 
|  | 14971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14972 | *) ac_try_echo=$ac_try;; | 
|  | 14973 | esac | 
|  | 14974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14975 | (eval "$ac_try") 2>&5 | 
|  | 14976 | ac_status=$? | 
|  | 14977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14978 | (exit $ac_status); }; } && | 
|  | 14979 | { ac_try='test -s conftest.$ac_objext' | 
|  | 14980 | { (case "(($ac_try" in | 
|  | 14981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 14982 | *) ac_try_echo=$ac_try;; | 
|  | 14983 | esac | 
|  | 14984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 14985 | (eval "$ac_try") 2>&5 | 
|  | 14986 | ac_status=$? | 
|  | 14987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14988 | (exit $ac_status); }; }; then | 
|  | 14989 | ac_header_compiler=yes | 
|  | 14990 | else | 
|  | 14991 | echo "$as_me: failed program was:" >&5 | 
|  | 14992 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14993 |  | 
|  | 14994 | ac_header_compiler=no | 
|  | 14995 | fi | 
|  | 14996 |  | 
|  | 14997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14998 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 14999 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 15000 |  | 
|  | 15001 | # Is the header present? | 
|  | 15002 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 15003 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 15004 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15005 | /* confdefs.h.  */ | 
|  | 15006 | _ACEOF | 
|  | 15007 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15008 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15009 | /* end confdefs.h.  */ | 
|  | 15010 | #include <$ac_header> | 
|  | 15011 | _ACEOF | 
|  | 15012 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 15013 | case "(($ac_try" in | 
|  | 15014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15015 | *) ac_try_echo=$ac_try;; | 
|  | 15016 | esac | 
|  | 15017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15018 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 15019 | ac_status=$? | 
|  | 15020 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15021 | rm -f conftest.er1 | 
|  | 15022 | cat conftest.err >&5 | 
|  | 15023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15024 | (exit $ac_status); } >/dev/null; then | 
|  | 15025 | if test -s conftest.err; then | 
|  | 15026 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 15027 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 15028 | else | 
|  | 15029 | ac_cpp_err= | 
|  | 15030 | fi | 
|  | 15031 | else | 
|  | 15032 | ac_cpp_err=yes | 
|  | 15033 | fi | 
|  | 15034 | if test -z "$ac_cpp_err"; then | 
|  | 15035 | ac_header_preproc=yes | 
|  | 15036 | else | 
|  | 15037 | echo "$as_me: failed program was:" >&5 | 
|  | 15038 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15039 |  | 
|  | 15040 | ac_header_preproc=no | 
|  | 15041 | fi | 
|  | 15042 |  | 
|  | 15043 | rm -f conftest.err conftest.$ac_ext | 
|  | 15044 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 15045 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 15046 |  | 
|  | 15047 | # So?  What about this header? | 
|  | 15048 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 15049 | yes:no: ) | 
|  | 15050 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 15051 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 15052 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 15053 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 15054 | ac_header_preproc=yes | 
|  | 15055 | ;; | 
|  | 15056 | no:yes:* ) | 
|  | 15057 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 15058 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 15059 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 15060 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 15061 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 15062 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 15063 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 15064 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 15065 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 15066 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 15067 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 15068 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 15069 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15070 | ## ------------------------------------ ## | 
|  | 15071 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 15072 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15073 | _ASBOX | 
|  | 15074 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 15075 | ;; | 
|  | 15076 | esac | 
|  | 15077 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15078 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15079 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15081 | else | 
|  | 15082 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 15083 | fi | 
|  | 15084 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15085 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15086 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15087 |  | 
|  | 15088 | fi | 
|  | 15089 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15090 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15091 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15092 | _ACEOF | 
|  | 15093 |  | 
|  | 15094 | fi | 
|  | 15095 |  | 
|  | 15096 | done | 
| Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15097 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15098 |  | 
|  | 15099 |  | 
|  | 15100 |  | 
|  | 15101 |  | 
| Daniel Dunbar | 7840c54 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 15102 |  | 
|  | 15103 | for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15104 | do | 
|  | 15105 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15106 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15107 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15108 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15109 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15111 | fi | 
|  | 15112 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15113 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15114 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15115 | else | 
|  | 15116 | # Is the header compilable? | 
|  | 15117 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 15118 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 15119 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15120 | /* confdefs.h.  */ | 
|  | 15121 | _ACEOF | 
|  | 15122 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15123 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15124 | /* end confdefs.h.  */ | 
|  | 15125 | $ac_includes_default | 
|  | 15126 | #include <$ac_header> | 
|  | 15127 | _ACEOF | 
|  | 15128 | rm -f conftest.$ac_objext | 
|  | 15129 | if { (ac_try="$ac_compile" | 
|  | 15130 | case "(($ac_try" in | 
|  | 15131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15132 | *) ac_try_echo=$ac_try;; | 
|  | 15133 | esac | 
|  | 15134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15135 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 15136 | ac_status=$? | 
|  | 15137 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15138 | rm -f conftest.er1 | 
|  | 15139 | cat conftest.err >&5 | 
|  | 15140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15141 | (exit $ac_status); } && | 
|  | 15142 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 15143 | { (case "(($ac_try" in | 
|  | 15144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15145 | *) ac_try_echo=$ac_try;; | 
|  | 15146 | esac | 
|  | 15147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15148 | (eval "$ac_try") 2>&5 | 
|  | 15149 | ac_status=$? | 
|  | 15150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15151 | (exit $ac_status); }; } && | 
|  | 15152 | { ac_try='test -s conftest.$ac_objext' | 
|  | 15153 | { (case "(($ac_try" in | 
|  | 15154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15155 | *) ac_try_echo=$ac_try;; | 
|  | 15156 | esac | 
|  | 15157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15158 | (eval "$ac_try") 2>&5 | 
|  | 15159 | ac_status=$? | 
|  | 15160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15161 | (exit $ac_status); }; }; then | 
|  | 15162 | ac_header_compiler=yes | 
|  | 15163 | else | 
|  | 15164 | echo "$as_me: failed program was:" >&5 | 
|  | 15165 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15166 |  | 
|  | 15167 | ac_header_compiler=no | 
|  | 15168 | fi | 
|  | 15169 |  | 
|  | 15170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15171 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 15172 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 15173 |  | 
|  | 15174 | # Is the header present? | 
|  | 15175 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 15176 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 15177 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15178 | /* confdefs.h.  */ | 
|  | 15179 | _ACEOF | 
|  | 15180 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15181 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15182 | /* end confdefs.h.  */ | 
|  | 15183 | #include <$ac_header> | 
|  | 15184 | _ACEOF | 
|  | 15185 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 15186 | case "(($ac_try" in | 
|  | 15187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15188 | *) ac_try_echo=$ac_try;; | 
|  | 15189 | esac | 
|  | 15190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15191 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 15192 | ac_status=$? | 
|  | 15193 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15194 | rm -f conftest.er1 | 
|  | 15195 | cat conftest.err >&5 | 
|  | 15196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15197 | (exit $ac_status); } >/dev/null; then | 
|  | 15198 | if test -s conftest.err; then | 
|  | 15199 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 15200 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 15201 | else | 
|  | 15202 | ac_cpp_err= | 
|  | 15203 | fi | 
|  | 15204 | else | 
|  | 15205 | ac_cpp_err=yes | 
|  | 15206 | fi | 
|  | 15207 | if test -z "$ac_cpp_err"; then | 
|  | 15208 | ac_header_preproc=yes | 
|  | 15209 | else | 
|  | 15210 | echo "$as_me: failed program was:" >&5 | 
|  | 15211 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15212 |  | 
|  | 15213 | ac_header_preproc=no | 
|  | 15214 | fi | 
|  | 15215 |  | 
|  | 15216 | rm -f conftest.err conftest.$ac_ext | 
|  | 15217 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 15218 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 15219 |  | 
|  | 15220 | # So?  What about this header? | 
|  | 15221 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 15222 | yes:no: ) | 
|  | 15223 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 15224 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 15225 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 15226 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 15227 | ac_header_preproc=yes | 
|  | 15228 | ;; | 
|  | 15229 | no:yes:* ) | 
|  | 15230 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 15231 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 15232 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 15233 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 15234 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 15235 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 15236 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 15237 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 15238 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 15239 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 15240 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 15241 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 15242 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15243 | ## ------------------------------------ ## | 
|  | 15244 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 15245 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15246 | _ASBOX | 
|  | 15247 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 15248 | ;; | 
|  | 15249 | esac | 
|  | 15250 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15251 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15252 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15254 | else | 
|  | 15255 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 15256 | fi | 
|  | 15257 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15258 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15259 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15260 |  | 
|  | 15261 | fi | 
|  | 15262 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15263 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15264 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| John Criswell | b92c7c2 | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15265 | _ACEOF | 
| John Criswell | b92c7c2 | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15266 |  | 
|  | 15267 | fi | 
| John Criswell | b92c7c2 | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15268 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15269 | done | 
|  | 15270 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15271 |  | 
|  | 15272 |  | 
|  | 15273 |  | 
|  | 15274 |  | 
| Douglas Gregor | 1543661 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 15275 | for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15276 | do | 
|  | 15277 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15278 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15279 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15280 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15281 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15283 | fi | 
|  | 15284 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15285 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15286 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15287 | else | 
|  | 15288 | # Is the header compilable? | 
|  | 15289 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 15290 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 15291 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15292 | /* confdefs.h.  */ | 
|  | 15293 | _ACEOF | 
|  | 15294 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15295 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15296 | /* end confdefs.h.  */ | 
|  | 15297 | $ac_includes_default | 
|  | 15298 | #include <$ac_header> | 
|  | 15299 | _ACEOF | 
|  | 15300 | rm -f conftest.$ac_objext | 
|  | 15301 | if { (ac_try="$ac_compile" | 
|  | 15302 | case "(($ac_try" in | 
|  | 15303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15304 | *) ac_try_echo=$ac_try;; | 
|  | 15305 | esac | 
|  | 15306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15307 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 15308 | ac_status=$? | 
|  | 15309 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15310 | rm -f conftest.er1 | 
|  | 15311 | cat conftest.err >&5 | 
|  | 15312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15313 | (exit $ac_status); } && | 
|  | 15314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 15315 | { (case "(($ac_try" in | 
|  | 15316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15317 | *) ac_try_echo=$ac_try;; | 
|  | 15318 | esac | 
|  | 15319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15320 | (eval "$ac_try") 2>&5 | 
|  | 15321 | ac_status=$? | 
|  | 15322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15323 | (exit $ac_status); }; } && | 
|  | 15324 | { ac_try='test -s conftest.$ac_objext' | 
|  | 15325 | { (case "(($ac_try" in | 
|  | 15326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15327 | *) ac_try_echo=$ac_try;; | 
|  | 15328 | esac | 
|  | 15329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15330 | (eval "$ac_try") 2>&5 | 
|  | 15331 | ac_status=$? | 
|  | 15332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15333 | (exit $ac_status); }; }; then | 
|  | 15334 | ac_header_compiler=yes | 
|  | 15335 | else | 
|  | 15336 | echo "$as_me: failed program was:" >&5 | 
|  | 15337 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15338 |  | 
|  | 15339 | ac_header_compiler=no | 
|  | 15340 | fi | 
|  | 15341 |  | 
|  | 15342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15343 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 15344 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 15345 |  | 
|  | 15346 | # Is the header present? | 
|  | 15347 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 15348 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 15349 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15350 | /* confdefs.h.  */ | 
|  | 15351 | _ACEOF | 
|  | 15352 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15353 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15354 | /* end confdefs.h.  */ | 
|  | 15355 | #include <$ac_header> | 
|  | 15356 | _ACEOF | 
|  | 15357 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 15358 | case "(($ac_try" in | 
|  | 15359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15360 | *) ac_try_echo=$ac_try;; | 
|  | 15361 | esac | 
|  | 15362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15363 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 15364 | ac_status=$? | 
|  | 15365 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15366 | rm -f conftest.er1 | 
|  | 15367 | cat conftest.err >&5 | 
|  | 15368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15369 | (exit $ac_status); } >/dev/null; then | 
|  | 15370 | if test -s conftest.err; then | 
|  | 15371 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 15372 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 15373 | else | 
|  | 15374 | ac_cpp_err= | 
|  | 15375 | fi | 
|  | 15376 | else | 
|  | 15377 | ac_cpp_err=yes | 
|  | 15378 | fi | 
|  | 15379 | if test -z "$ac_cpp_err"; then | 
|  | 15380 | ac_header_preproc=yes | 
|  | 15381 | else | 
|  | 15382 | echo "$as_me: failed program was:" >&5 | 
|  | 15383 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15384 |  | 
|  | 15385 | ac_header_preproc=no | 
|  | 15386 | fi | 
|  | 15387 |  | 
|  | 15388 | rm -f conftest.err conftest.$ac_ext | 
|  | 15389 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 15390 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 15391 |  | 
|  | 15392 | # So?  What about this header? | 
|  | 15393 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 15394 | yes:no: ) | 
|  | 15395 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 15396 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 15397 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 15398 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 15399 | ac_header_preproc=yes | 
|  | 15400 | ;; | 
|  | 15401 | no:yes:* ) | 
|  | 15402 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 15403 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 15404 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 15405 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 15406 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 15407 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 15408 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 15409 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 15410 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 15411 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 15412 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 15413 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 15414 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15415 | ## ------------------------------------ ## | 
|  | 15416 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 15417 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15418 | _ASBOX | 
|  | 15419 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 15420 | ;; | 
|  | 15421 | esac | 
|  | 15422 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15423 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15424 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15426 | else | 
|  | 15427 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 15428 | fi | 
|  | 15429 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15430 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15431 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15432 |  | 
|  | 15433 | fi | 
|  | 15434 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Chris Lattner | 973917a | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 15435 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15436 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Chris Lattner | 973917a | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 15437 | _ACEOF | 
|  | 15438 |  | 
|  | 15439 | fi | 
|  | 15440 |  | 
|  | 15441 | done | 
|  | 15442 |  | 
| Jeffrey Yasskin | 3ddd88f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 15443 |  | 
|  | 15444 | for ac_header in valgrind/valgrind.h | 
|  | 15445 | do | 
|  | 15446 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15447 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15448 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15449 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15450 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15452 | fi | 
|  | 15453 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15454 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15455 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15456 | else | 
|  | 15457 | # Is the header compilable? | 
|  | 15458 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 15459 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 15460 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15461 | /* confdefs.h.  */ | 
|  | 15462 | _ACEOF | 
|  | 15463 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15464 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15465 | /* end confdefs.h.  */ | 
|  | 15466 | $ac_includes_default | 
|  | 15467 | #include <$ac_header> | 
|  | 15468 | _ACEOF | 
|  | 15469 | rm -f conftest.$ac_objext | 
|  | 15470 | if { (ac_try="$ac_compile" | 
|  | 15471 | case "(($ac_try" in | 
|  | 15472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15473 | *) ac_try_echo=$ac_try;; | 
|  | 15474 | esac | 
|  | 15475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15476 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 15477 | ac_status=$? | 
|  | 15478 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15479 | rm -f conftest.er1 | 
|  | 15480 | cat conftest.err >&5 | 
|  | 15481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15482 | (exit $ac_status); } && | 
|  | 15483 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 15484 | { (case "(($ac_try" in | 
|  | 15485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15486 | *) ac_try_echo=$ac_try;; | 
|  | 15487 | esac | 
|  | 15488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15489 | (eval "$ac_try") 2>&5 | 
|  | 15490 | ac_status=$? | 
|  | 15491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15492 | (exit $ac_status); }; } && | 
|  | 15493 | { ac_try='test -s conftest.$ac_objext' | 
|  | 15494 | { (case "(($ac_try" in | 
|  | 15495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15496 | *) ac_try_echo=$ac_try;; | 
|  | 15497 | esac | 
|  | 15498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15499 | (eval "$ac_try") 2>&5 | 
|  | 15500 | ac_status=$? | 
|  | 15501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15502 | (exit $ac_status); }; }; then | 
|  | 15503 | ac_header_compiler=yes | 
|  | 15504 | else | 
|  | 15505 | echo "$as_me: failed program was:" >&5 | 
|  | 15506 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15507 |  | 
|  | 15508 | ac_header_compiler=no | 
|  | 15509 | fi | 
|  | 15510 |  | 
|  | 15511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15512 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 15513 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 15514 |  | 
|  | 15515 | # Is the header present? | 
|  | 15516 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 15517 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 15518 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15519 | /* confdefs.h.  */ | 
|  | 15520 | _ACEOF | 
|  | 15521 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15522 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15523 | /* end confdefs.h.  */ | 
|  | 15524 | #include <$ac_header> | 
|  | 15525 | _ACEOF | 
|  | 15526 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 15527 | case "(($ac_try" in | 
|  | 15528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15529 | *) ac_try_echo=$ac_try;; | 
|  | 15530 | esac | 
|  | 15531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15532 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 15533 | ac_status=$? | 
|  | 15534 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15535 | rm -f conftest.er1 | 
|  | 15536 | cat conftest.err >&5 | 
|  | 15537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15538 | (exit $ac_status); } >/dev/null; then | 
|  | 15539 | if test -s conftest.err; then | 
|  | 15540 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 15541 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 15542 | else | 
|  | 15543 | ac_cpp_err= | 
|  | 15544 | fi | 
|  | 15545 | else | 
|  | 15546 | ac_cpp_err=yes | 
|  | 15547 | fi | 
|  | 15548 | if test -z "$ac_cpp_err"; then | 
|  | 15549 | ac_header_preproc=yes | 
|  | 15550 | else | 
|  | 15551 | echo "$as_me: failed program was:" >&5 | 
|  | 15552 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15553 |  | 
|  | 15554 | ac_header_preproc=no | 
|  | 15555 | fi | 
|  | 15556 |  | 
|  | 15557 | rm -f conftest.err conftest.$ac_ext | 
|  | 15558 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 15559 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 15560 |  | 
|  | 15561 | # So?  What about this header? | 
|  | 15562 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 15563 | yes:no: ) | 
|  | 15564 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 15565 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 15566 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 15567 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 15568 | ac_header_preproc=yes | 
|  | 15569 | ;; | 
|  | 15570 | no:yes:* ) | 
|  | 15571 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 15572 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 15573 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 15574 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 15575 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 15576 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 15577 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 15578 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 15579 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 15580 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 15581 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 15582 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 15583 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15584 | ## ------------------------------------ ## | 
|  | 15585 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 15586 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | 3ddd88f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 15587 | _ASBOX | 
|  | 15588 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 15589 | ;; | 
|  | 15590 | esac | 
|  | 15591 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15592 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15593 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15595 | else | 
|  | 15596 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 15597 | fi | 
|  | 15598 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15599 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15600 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15601 |  | 
|  | 15602 | fi | 
|  | 15603 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 15604 | cat >>confdefs.h <<_ACEOF | 
|  | 15605 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 15606 | _ACEOF | 
|  | 15607 |  | 
|  | 15608 | fi | 
|  | 15609 |  | 
|  | 15610 | done | 
|  | 15611 |  | 
| Dan Gohman | df25777 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 15612 |  | 
|  | 15613 | for ac_header in fenv.h | 
|  | 15614 | do | 
|  | 15615 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15616 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15617 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15619 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15621 | fi | 
|  | 15622 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15623 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15624 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15625 | else | 
|  | 15626 | # Is the header compilable? | 
|  | 15627 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 15628 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 15629 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15630 | /* confdefs.h.  */ | 
|  | 15631 | _ACEOF | 
|  | 15632 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15633 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15634 | /* end confdefs.h.  */ | 
|  | 15635 | $ac_includes_default | 
|  | 15636 | #include <$ac_header> | 
|  | 15637 | _ACEOF | 
|  | 15638 | rm -f conftest.$ac_objext | 
|  | 15639 | if { (ac_try="$ac_compile" | 
|  | 15640 | case "(($ac_try" in | 
|  | 15641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15642 | *) ac_try_echo=$ac_try;; | 
|  | 15643 | esac | 
|  | 15644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15645 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 15646 | ac_status=$? | 
|  | 15647 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15648 | rm -f conftest.er1 | 
|  | 15649 | cat conftest.err >&5 | 
|  | 15650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15651 | (exit $ac_status); } && | 
|  | 15652 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 15653 | { (case "(($ac_try" in | 
|  | 15654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15655 | *) ac_try_echo=$ac_try;; | 
|  | 15656 | esac | 
|  | 15657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15658 | (eval "$ac_try") 2>&5 | 
|  | 15659 | ac_status=$? | 
|  | 15660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15661 | (exit $ac_status); }; } && | 
|  | 15662 | { ac_try='test -s conftest.$ac_objext' | 
|  | 15663 | { (case "(($ac_try" in | 
|  | 15664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15665 | *) ac_try_echo=$ac_try;; | 
|  | 15666 | esac | 
|  | 15667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15668 | (eval "$ac_try") 2>&5 | 
|  | 15669 | ac_status=$? | 
|  | 15670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15671 | (exit $ac_status); }; }; then | 
|  | 15672 | ac_header_compiler=yes | 
|  | 15673 | else | 
|  | 15674 | echo "$as_me: failed program was:" >&5 | 
|  | 15675 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15676 |  | 
|  | 15677 | ac_header_compiler=no | 
|  | 15678 | fi | 
|  | 15679 |  | 
|  | 15680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15681 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 15682 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 15683 |  | 
|  | 15684 | # Is the header present? | 
|  | 15685 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 15686 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 15687 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15688 | /* confdefs.h.  */ | 
|  | 15689 | _ACEOF | 
|  | 15690 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15691 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15692 | /* end confdefs.h.  */ | 
|  | 15693 | #include <$ac_header> | 
|  | 15694 | _ACEOF | 
|  | 15695 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 15696 | case "(($ac_try" in | 
|  | 15697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15698 | *) ac_try_echo=$ac_try;; | 
|  | 15699 | esac | 
|  | 15700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15701 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 15702 | ac_status=$? | 
|  | 15703 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15704 | rm -f conftest.er1 | 
|  | 15705 | cat conftest.err >&5 | 
|  | 15706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15707 | (exit $ac_status); } >/dev/null; then | 
|  | 15708 | if test -s conftest.err; then | 
|  | 15709 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 15710 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 15711 | else | 
|  | 15712 | ac_cpp_err= | 
|  | 15713 | fi | 
|  | 15714 | else | 
|  | 15715 | ac_cpp_err=yes | 
|  | 15716 | fi | 
|  | 15717 | if test -z "$ac_cpp_err"; then | 
|  | 15718 | ac_header_preproc=yes | 
|  | 15719 | else | 
|  | 15720 | echo "$as_me: failed program was:" >&5 | 
|  | 15721 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15722 |  | 
|  | 15723 | ac_header_preproc=no | 
|  | 15724 | fi | 
|  | 15725 |  | 
|  | 15726 | rm -f conftest.err conftest.$ac_ext | 
|  | 15727 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 15728 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 15729 |  | 
|  | 15730 | # So?  What about this header? | 
|  | 15731 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 15732 | yes:no: ) | 
|  | 15733 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 15734 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 15735 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 15736 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 15737 | ac_header_preproc=yes | 
|  | 15738 | ;; | 
|  | 15739 | no:yes:* ) | 
|  | 15740 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 15741 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 15742 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 15743 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 15744 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 15745 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 15746 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 15747 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 15748 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 15749 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 15750 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 15751 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 15752 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15753 | ## ------------------------------------ ## | 
|  | 15754 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 15755 | ## ------------------------------------ ## | 
| Dan Gohman | df25777 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 15756 | _ASBOX | 
|  | 15757 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 15758 | ;; | 
|  | 15759 | esac | 
|  | 15760 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15761 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15762 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15764 | else | 
|  | 15765 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 15766 | fi | 
|  | 15767 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15768 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15769 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15770 |  | 
|  | 15771 | fi | 
|  | 15772 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 15773 | cat >>confdefs.h <<_ACEOF | 
|  | 15774 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 15775 | _ACEOF | 
|  | 15776 |  | 
|  | 15777 | fi | 
|  | 15778 |  | 
|  | 15779 | done | 
|  | 15780 |  | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 15781 | if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15782 |  | 
|  | 15783 | for ac_header in pthread.h | 
|  | 15784 | do | 
|  | 15785 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15786 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15787 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15788 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15789 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15791 | fi | 
|  | 15792 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15793 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15794 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15795 | else | 
|  | 15796 | # Is the header compilable? | 
|  | 15797 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 15798 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 15799 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15800 | /* confdefs.h.  */ | 
|  | 15801 | _ACEOF | 
|  | 15802 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15803 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15804 | /* end confdefs.h.  */ | 
|  | 15805 | $ac_includes_default | 
|  | 15806 | #include <$ac_header> | 
|  | 15807 | _ACEOF | 
|  | 15808 | rm -f conftest.$ac_objext | 
|  | 15809 | if { (ac_try="$ac_compile" | 
|  | 15810 | case "(($ac_try" in | 
|  | 15811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15812 | *) ac_try_echo=$ac_try;; | 
|  | 15813 | esac | 
|  | 15814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15815 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 15816 | ac_status=$? | 
|  | 15817 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15818 | rm -f conftest.er1 | 
|  | 15819 | cat conftest.err >&5 | 
|  | 15820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15821 | (exit $ac_status); } && | 
|  | 15822 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 15823 | { (case "(($ac_try" in | 
|  | 15824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15825 | *) ac_try_echo=$ac_try;; | 
|  | 15826 | esac | 
|  | 15827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15828 | (eval "$ac_try") 2>&5 | 
|  | 15829 | ac_status=$? | 
|  | 15830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15831 | (exit $ac_status); }; } && | 
|  | 15832 | { ac_try='test -s conftest.$ac_objext' | 
|  | 15833 | { (case "(($ac_try" in | 
|  | 15834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15835 | *) ac_try_echo=$ac_try;; | 
|  | 15836 | esac | 
|  | 15837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15838 | (eval "$ac_try") 2>&5 | 
|  | 15839 | ac_status=$? | 
|  | 15840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15841 | (exit $ac_status); }; }; then | 
|  | 15842 | ac_header_compiler=yes | 
|  | 15843 | else | 
|  | 15844 | echo "$as_me: failed program was:" >&5 | 
|  | 15845 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15846 |  | 
|  | 15847 | ac_header_compiler=no | 
|  | 15848 | fi | 
|  | 15849 |  | 
|  | 15850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15851 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 15852 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 15853 |  | 
|  | 15854 | # Is the header present? | 
|  | 15855 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 15856 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 15857 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15858 | /* confdefs.h.  */ | 
|  | 15859 | _ACEOF | 
|  | 15860 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15861 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15862 | /* end confdefs.h.  */ | 
|  | 15863 | #include <$ac_header> | 
|  | 15864 | _ACEOF | 
|  | 15865 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 15866 | case "(($ac_try" in | 
|  | 15867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15868 | *) ac_try_echo=$ac_try;; | 
|  | 15869 | esac | 
|  | 15870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15871 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 15872 | ac_status=$? | 
|  | 15873 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15874 | rm -f conftest.er1 | 
|  | 15875 | cat conftest.err >&5 | 
|  | 15876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15877 | (exit $ac_status); } >/dev/null; then | 
|  | 15878 | if test -s conftest.err; then | 
|  | 15879 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 15880 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 15881 | else | 
|  | 15882 | ac_cpp_err= | 
|  | 15883 | fi | 
|  | 15884 | else | 
|  | 15885 | ac_cpp_err=yes | 
|  | 15886 | fi | 
|  | 15887 | if test -z "$ac_cpp_err"; then | 
|  | 15888 | ac_header_preproc=yes | 
|  | 15889 | else | 
|  | 15890 | echo "$as_me: failed program was:" >&5 | 
|  | 15891 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15892 |  | 
|  | 15893 | ac_header_preproc=no | 
|  | 15894 | fi | 
|  | 15895 |  | 
|  | 15896 | rm -f conftest.err conftest.$ac_ext | 
|  | 15897 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 15898 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 15899 |  | 
|  | 15900 | # So?  What about this header? | 
|  | 15901 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 15902 | yes:no: ) | 
|  | 15903 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 15904 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 15905 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 15906 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 15907 | ac_header_preproc=yes | 
|  | 15908 | ;; | 
|  | 15909 | no:yes:* ) | 
|  | 15910 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 15911 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 15912 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 15913 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 15914 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 15915 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 15916 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 15917 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 15918 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 15919 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 15920 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 15921 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 15922 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15923 | ## ------------------------------------ ## | 
|  | 15924 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 15925 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15926 | _ASBOX | 
|  | 15927 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 15928 | ;; | 
|  | 15929 | esac | 
|  | 15930 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15931 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15932 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15934 | else | 
|  | 15935 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 15936 | fi | 
|  | 15937 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15938 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15939 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15940 |  | 
|  | 15941 | fi | 
|  | 15942 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15943 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15944 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15945 | _ACEOF | 
|  | 15946 | HAVE_PTHREAD=1 | 
| Reid Spencer | d439992 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 15947 |  | 
|  | 15948 | else | 
|  | 15949 | HAVE_PTHREAD=0 | 
| Reid Spencer | f85fabeb | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 15950 |  | 
|  | 15951 | fi | 
|  | 15952 |  | 
| Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15953 | done | 
| Reid Spencer | d439992 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 15954 |  | 
|  | 15955 | else | 
|  | 15956 | HAVE_PTHREAD=0 | 
| Reid Spencer | f85fabeb | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 15957 |  | 
|  | 15958 | fi | 
| Reid Spencer | d9f4f3b | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 15959 |  | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 15960 | if test "$llvm_cv_enable_libffi" = "yes" ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15961 |  | 
|  | 15962 |  | 
|  | 15963 | for ac_header in ffi.h ffi/ffi.h | 
|  | 15964 | do | 
|  | 15965 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15966 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15967 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 15968 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 15969 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 15970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15971 | fi | 
|  | 15972 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 15973 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 15974 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 15975 | else | 
|  | 15976 | # Is the header compilable? | 
|  | 15977 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 15978 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 15979 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 15980 | /* confdefs.h.  */ | 
|  | 15981 | _ACEOF | 
|  | 15982 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15983 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15984 | /* end confdefs.h.  */ | 
|  | 15985 | $ac_includes_default | 
|  | 15986 | #include <$ac_header> | 
|  | 15987 | _ACEOF | 
|  | 15988 | rm -f conftest.$ac_objext | 
|  | 15989 | if { (ac_try="$ac_compile" | 
|  | 15990 | case "(($ac_try" in | 
|  | 15991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 15992 | *) ac_try_echo=$ac_try;; | 
|  | 15993 | esac | 
|  | 15994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 15995 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 15996 | ac_status=$? | 
|  | 15997 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15998 | rm -f conftest.er1 | 
|  | 15999 | cat conftest.err >&5 | 
|  | 16000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16001 | (exit $ac_status); } && | 
|  | 16002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 16003 | { (case "(($ac_try" in | 
|  | 16004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16005 | *) ac_try_echo=$ac_try;; | 
|  | 16006 | esac | 
|  | 16007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16008 | (eval "$ac_try") 2>&5 | 
|  | 16009 | ac_status=$? | 
|  | 16010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16011 | (exit $ac_status); }; } && | 
|  | 16012 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16013 | { (case "(($ac_try" in | 
|  | 16014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16015 | *) ac_try_echo=$ac_try;; | 
|  | 16016 | esac | 
|  | 16017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16018 | (eval "$ac_try") 2>&5 | 
|  | 16019 | ac_status=$? | 
|  | 16020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16021 | (exit $ac_status); }; }; then | 
|  | 16022 | ac_header_compiler=yes | 
|  | 16023 | else | 
|  | 16024 | echo "$as_me: failed program was:" >&5 | 
|  | 16025 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16026 |  | 
|  | 16027 | ac_header_compiler=no | 
|  | 16028 | fi | 
|  | 16029 |  | 
|  | 16030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16031 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 16032 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 16033 |  | 
|  | 16034 | # Is the header present? | 
|  | 16035 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 16036 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 16037 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16038 | /* confdefs.h.  */ | 
|  | 16039 | _ACEOF | 
|  | 16040 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16041 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16042 | /* end confdefs.h.  */ | 
|  | 16043 | #include <$ac_header> | 
|  | 16044 | _ACEOF | 
|  | 16045 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 16046 | case "(($ac_try" in | 
|  | 16047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16048 | *) ac_try_echo=$ac_try;; | 
|  | 16049 | esac | 
|  | 16050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16051 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 16052 | ac_status=$? | 
|  | 16053 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16054 | rm -f conftest.er1 | 
|  | 16055 | cat conftest.err >&5 | 
|  | 16056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16057 | (exit $ac_status); } >/dev/null; then | 
|  | 16058 | if test -s conftest.err; then | 
|  | 16059 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 16060 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 16061 | else | 
|  | 16062 | ac_cpp_err= | 
|  | 16063 | fi | 
|  | 16064 | else | 
|  | 16065 | ac_cpp_err=yes | 
|  | 16066 | fi | 
|  | 16067 | if test -z "$ac_cpp_err"; then | 
|  | 16068 | ac_header_preproc=yes | 
|  | 16069 | else | 
|  | 16070 | echo "$as_me: failed program was:" >&5 | 
|  | 16071 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16072 |  | 
|  | 16073 | ac_header_preproc=no | 
|  | 16074 | fi | 
|  | 16075 |  | 
|  | 16076 | rm -f conftest.err conftest.$ac_ext | 
|  | 16077 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 16078 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 16079 |  | 
|  | 16080 | # So?  What about this header? | 
|  | 16081 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 16082 | yes:no: ) | 
|  | 16083 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 16084 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 16085 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 16086 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 16087 | ac_header_preproc=yes | 
|  | 16088 | ;; | 
|  | 16089 | no:yes:* ) | 
|  | 16090 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 16091 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 16092 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 16093 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 16094 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 16095 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 16096 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 16097 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 16098 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 16099 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 16100 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 16101 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 16102 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 16103 | ## ------------------------------------ ## | 
|  | 16104 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 16105 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16106 | _ASBOX | 
|  | 16107 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 16108 | ;; | 
|  | 16109 | esac | 
|  | 16110 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 16111 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 16112 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 16113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16114 | else | 
|  | 16115 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 16116 | fi | 
|  | 16117 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 16118 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 16119 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 16120 |  | 
|  | 16121 | fi | 
|  | 16122 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16123 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16124 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16125 | _ACEOF | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16126 |  | 
|  | 16127 | fi | 
|  | 16128 |  | 
|  | 16129 | done | 
|  | 16130 |  | 
| Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16131 | fi | 
| Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16132 |  | 
| Nick Lewycky | c94134d | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 16133 |  | 
| Eric Christopher | e9c1bb6 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16134 | for ac_header in CrashReporterClient.h | 
|  | 16135 | do | 
|  | 16136 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 16137 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 16138 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 16139 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 16140 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 16141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16142 | fi | 
|  | 16143 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 16144 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 16145 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 16146 | else | 
|  | 16147 | # Is the header compilable? | 
|  | 16148 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 16149 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 16150 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16151 | /* confdefs.h.  */ | 
|  | 16152 | _ACEOF | 
|  | 16153 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16154 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16155 | /* end confdefs.h.  */ | 
|  | 16156 | $ac_includes_default | 
|  | 16157 | #include <$ac_header> | 
|  | 16158 | _ACEOF | 
|  | 16159 | rm -f conftest.$ac_objext | 
|  | 16160 | if { (ac_try="$ac_compile" | 
|  | 16161 | case "(($ac_try" in | 
|  | 16162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16163 | *) ac_try_echo=$ac_try;; | 
|  | 16164 | esac | 
|  | 16165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16166 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16167 | ac_status=$? | 
|  | 16168 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16169 | rm -f conftest.er1 | 
|  | 16170 | cat conftest.err >&5 | 
|  | 16171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16172 | (exit $ac_status); } && | 
|  | 16173 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 16174 | { (case "(($ac_try" in | 
|  | 16175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16176 | *) ac_try_echo=$ac_try;; | 
|  | 16177 | esac | 
|  | 16178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16179 | (eval "$ac_try") 2>&5 | 
|  | 16180 | ac_status=$? | 
|  | 16181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16182 | (exit $ac_status); }; } && | 
|  | 16183 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16184 | { (case "(($ac_try" in | 
|  | 16185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16186 | *) ac_try_echo=$ac_try;; | 
|  | 16187 | esac | 
|  | 16188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16189 | (eval "$ac_try") 2>&5 | 
|  | 16190 | ac_status=$? | 
|  | 16191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16192 | (exit $ac_status); }; }; then | 
|  | 16193 | ac_header_compiler=yes | 
|  | 16194 | else | 
|  | 16195 | echo "$as_me: failed program was:" >&5 | 
|  | 16196 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16197 |  | 
|  | 16198 | ac_header_compiler=no | 
|  | 16199 | fi | 
|  | 16200 |  | 
|  | 16201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16202 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 16203 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 16204 |  | 
|  | 16205 | # Is the header present? | 
|  | 16206 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 16207 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 16208 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16209 | /* confdefs.h.  */ | 
|  | 16210 | _ACEOF | 
|  | 16211 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16212 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16213 | /* end confdefs.h.  */ | 
|  | 16214 | #include <$ac_header> | 
|  | 16215 | _ACEOF | 
|  | 16216 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 16217 | case "(($ac_try" in | 
|  | 16218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16219 | *) ac_try_echo=$ac_try;; | 
|  | 16220 | esac | 
|  | 16221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16222 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 16223 | ac_status=$? | 
|  | 16224 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16225 | rm -f conftest.er1 | 
|  | 16226 | cat conftest.err >&5 | 
|  | 16227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16228 | (exit $ac_status); } >/dev/null; then | 
|  | 16229 | if test -s conftest.err; then | 
|  | 16230 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 16231 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 16232 | else | 
|  | 16233 | ac_cpp_err= | 
|  | 16234 | fi | 
|  | 16235 | else | 
|  | 16236 | ac_cpp_err=yes | 
|  | 16237 | fi | 
|  | 16238 | if test -z "$ac_cpp_err"; then | 
|  | 16239 | ac_header_preproc=yes | 
|  | 16240 | else | 
|  | 16241 | echo "$as_me: failed program was:" >&5 | 
|  | 16242 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16243 |  | 
|  | 16244 | ac_header_preproc=no | 
|  | 16245 | fi | 
|  | 16246 |  | 
|  | 16247 | rm -f conftest.err conftest.$ac_ext | 
|  | 16248 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 16249 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 16250 |  | 
|  | 16251 | # So?  What about this header? | 
|  | 16252 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 16253 | yes:no: ) | 
|  | 16254 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 16255 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 16256 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 16257 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 16258 | ac_header_preproc=yes | 
|  | 16259 | ;; | 
|  | 16260 | no:yes:* ) | 
|  | 16261 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 16262 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 16263 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 16264 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 16265 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 16266 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 16267 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 16268 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 16269 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 16270 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 16271 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 16272 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 16273 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 16274 | ## ------------------------------------ ## | 
|  | 16275 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 16276 | ## ------------------------------------ ## | 
| Eric Christopher | e9c1bb6 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16277 | _ASBOX | 
|  | 16278 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 16279 | ;; | 
|  | 16280 | esac | 
|  | 16281 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 16282 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 16283 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 16284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16285 | else | 
|  | 16286 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 16287 | fi | 
|  | 16288 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 16289 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 16290 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 16291 |  | 
|  | 16292 | fi | 
|  | 16293 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 16294 | cat >>confdefs.h <<_ACEOF | 
|  | 16295 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 16296 | _ACEOF | 
|  | 16297 |  | 
|  | 16298 | fi | 
|  | 16299 |  | 
|  | 16300 | done | 
|  | 16301 |  | 
|  | 16302 |  | 
| Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16303 | { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 | 
|  | 16304 | echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } | 
| Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16305 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16306 | /* confdefs.h.  */ | 
|  | 16307 | _ACEOF | 
|  | 16308 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16309 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16310 | /* end confdefs.h.  */ | 
| Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16311 | extern const char *__crashreporter_info__; | 
|  | 16312 | int main() { | 
|  | 16313 | __crashreporter_info__ = "test"; | 
|  | 16314 | return 0; | 
|  | 16315 | } | 
| Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16316 |  | 
| Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16317 | _ACEOF | 
|  | 16318 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 16319 | if { (ac_try="$ac_link" | 
|  | 16320 | case "(($ac_try" in | 
|  | 16321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16322 | *) ac_try_echo=$ac_try;; | 
|  | 16323 | esac | 
|  | 16324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16325 | (eval "$ac_link") 2>conftest.er1 | 
|  | 16326 | ac_status=$? | 
|  | 16327 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16328 | rm -f conftest.er1 | 
|  | 16329 | cat conftest.err >&5 | 
|  | 16330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16331 | (exit $ac_status); } && | 
|  | 16332 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 16333 | { (case "(($ac_try" in | 
|  | 16334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16335 | *) ac_try_echo=$ac_try;; | 
|  | 16336 | esac | 
|  | 16337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16338 | (eval "$ac_try") 2>&5 | 
|  | 16339 | ac_status=$? | 
|  | 16340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16341 | (exit $ac_status); }; } && | 
|  | 16342 | { ac_try='test -s conftest$ac_exeext' | 
|  | 16343 | { (case "(($ac_try" in | 
|  | 16344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16345 | *) ac_try_echo=$ac_try;; | 
|  | 16346 | esac | 
|  | 16347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16348 | (eval "$ac_try") 2>&5 | 
|  | 16349 | ac_status=$? | 
|  | 16350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16351 | (exit $ac_status); }; }; then | 
| Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16352 | { echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 16353 | echo "${ECHO_T}yes" >&6; } | 
| Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16354 |  | 
|  | 16355 | cat >>confdefs.h <<\_ACEOF | 
|  | 16356 | #define HAVE_CRASHREPORTER_INFO 1 | 
|  | 16357 | _ACEOF | 
|  | 16358 |  | 
| Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16359 | else | 
|  | 16360 | echo "$as_me: failed program was:" >&5 | 
|  | 16361 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16362 |  | 
|  | 16363 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 16364 | echo "${ECHO_T}no" >&6; } | 
|  | 16365 |  | 
|  | 16366 | cat >>confdefs.h <<\_ACEOF | 
|  | 16367 | #define HAVE_CRASHREPORTER_INFO 0 | 
|  | 16368 | _ACEOF | 
|  | 16369 |  | 
| Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16370 | fi | 
| Eric Christopher | e9c1bb6 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16371 |  | 
| Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16372 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16373 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16374 |  | 
|  | 16375 |  | 
| Reid Spencer | d9f4f3b | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16376 |  | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16377 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16378 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 | 
|  | 16379 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } | 
|  | 16380 | if test "${ac_cv_huge_val_sanity+set}" = set; then | 
|  | 16381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16382 | else | 
|  | 16383 |  | 
| Reid Spencer | 7b7ab9c | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16384 | ac_ext=cpp | 
|  | 16385 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 16386 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 16387 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 16388 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16389 |  | 
| Eric Christopher | f0ee6a1 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16390 | ac_save_CXXFLAGS=$CXXFLAGS | 
| Eric Christopher | 8e52bdc | 2012-04-02 06:54:01 +0000 | [diff] [blame] | 16391 | CXXFLAGS="$CXXFLAGS -pedantic" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16392 | if test "$cross_compiling" = yes; then | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16393 | ac_cv_huge_val_sanity=yes | 
|  | 16394 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16395 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16396 | /* confdefs.h.  */ | 
|  | 16397 | _ACEOF | 
|  | 16398 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16399 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16400 | /* end confdefs.h.  */ | 
|  | 16401 | #include <math.h> | 
|  | 16402 | int | 
|  | 16403 | main () | 
|  | 16404 | { | 
|  | 16405 | double x = HUGE_VAL; return x != x; | 
|  | 16406 | ; | 
|  | 16407 | return 0; | 
|  | 16408 | } | 
|  | 16409 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16410 | rm -f conftest$ac_exeext | 
|  | 16411 | if { (ac_try="$ac_link" | 
|  | 16412 | case "(($ac_try" in | 
|  | 16413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16414 | *) ac_try_echo=$ac_try;; | 
|  | 16415 | esac | 
|  | 16416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16417 | (eval "$ac_link") 2>&5 | 
|  | 16418 | ac_status=$? | 
|  | 16419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16420 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 16421 | { (case "(($ac_try" in | 
|  | 16422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16423 | *) ac_try_echo=$ac_try;; | 
|  | 16424 | esac | 
|  | 16425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16426 | (eval "$ac_try") 2>&5 | 
|  | 16427 | ac_status=$? | 
|  | 16428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16429 | (exit $ac_status); }; }; then | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16430 | ac_cv_huge_val_sanity=yes | 
|  | 16431 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16432 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 16433 | echo "$as_me: failed program was:" >&5 | 
|  | 16434 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16435 |  | 
|  | 16436 | ( exit $ac_status ) | 
|  | 16437 | ac_cv_huge_val_sanity=no | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16438 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16439 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16440 | fi | 
|  | 16441 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16442 |  | 
| Eric Christopher | f0ee6a1 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16443 | CXXFLAGS=$ac_save_CXXFLAGS | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16444 | ac_ext=c | 
|  | 16445 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 16446 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 16447 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 16448 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 16449 |  | 
|  | 16450 |  | 
|  | 16451 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16452 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 | 
|  | 16453 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } | 
| Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16454 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity | 
|  | 16455 |  | 
|  | 16456 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16457 | { echo "$as_me:$LINENO: checking for pid_t" >&5 | 
|  | 16458 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | 
|  | 16459 | if test "${ac_cv_type_pid_t+set}" = set; then | 
|  | 16460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16461 | else | 
|  | 16462 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16463 | /* confdefs.h.  */ | 
|  | 16464 | _ACEOF | 
|  | 16465 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16466 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16467 | /* end confdefs.h.  */ | 
|  | 16468 | $ac_includes_default | 
|  | 16469 | typedef pid_t ac__type_new_; | 
|  | 16470 | int | 
|  | 16471 | main () | 
|  | 16472 | { | 
|  | 16473 | if ((ac__type_new_ *) 0) | 
|  | 16474 | return 0; | 
|  | 16475 | if (sizeof (ac__type_new_)) | 
|  | 16476 | return 0; | 
|  | 16477 | ; | 
|  | 16478 | return 0; | 
|  | 16479 | } | 
|  | 16480 | _ACEOF | 
|  | 16481 | rm -f conftest.$ac_objext | 
|  | 16482 | if { (ac_try="$ac_compile" | 
|  | 16483 | case "(($ac_try" in | 
|  | 16484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16485 | *) ac_try_echo=$ac_try;; | 
|  | 16486 | esac | 
|  | 16487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16488 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16489 | ac_status=$? | 
|  | 16490 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16491 | rm -f conftest.er1 | 
|  | 16492 | cat conftest.err >&5 | 
|  | 16493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16494 | (exit $ac_status); } && | 
|  | 16495 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 16496 | { (case "(($ac_try" in | 
|  | 16497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16498 | *) ac_try_echo=$ac_try;; | 
|  | 16499 | esac | 
|  | 16500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16501 | (eval "$ac_try") 2>&5 | 
|  | 16502 | ac_status=$? | 
|  | 16503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16504 | (exit $ac_status); }; } && | 
|  | 16505 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16506 | { (case "(($ac_try" in | 
|  | 16507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16508 | *) ac_try_echo=$ac_try;; | 
|  | 16509 | esac | 
|  | 16510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16511 | (eval "$ac_try") 2>&5 | 
|  | 16512 | ac_status=$? | 
|  | 16513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16514 | (exit $ac_status); }; }; then | 
|  | 16515 | ac_cv_type_pid_t=yes | 
|  | 16516 | else | 
|  | 16517 | echo "$as_me: failed program was:" >&5 | 
|  | 16518 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16519 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16520 | ac_cv_type_pid_t=no | 
|  | 16521 | fi | 
|  | 16522 |  | 
|  | 16523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16524 | fi | 
|  | 16525 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | 
|  | 16526 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | 
|  | 16527 | if test $ac_cv_type_pid_t = yes; then | 
|  | 16528 | : | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16529 | else | 
|  | 16530 |  | 
|  | 16531 | cat >>confdefs.h <<_ACEOF | 
|  | 16532 | #define pid_t int | 
|  | 16533 | _ACEOF | 
|  | 16534 |  | 
|  | 16535 | fi | 
|  | 16536 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16537 | { echo "$as_me:$LINENO: checking for size_t" >&5 | 
|  | 16538 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | 
|  | 16539 | if test "${ac_cv_type_size_t+set}" = set; then | 
|  | 16540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16541 | else | 
|  | 16542 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16543 | /* confdefs.h.  */ | 
|  | 16544 | _ACEOF | 
|  | 16545 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16546 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16547 | /* end confdefs.h.  */ | 
|  | 16548 | $ac_includes_default | 
|  | 16549 | typedef size_t ac__type_new_; | 
|  | 16550 | int | 
|  | 16551 | main () | 
|  | 16552 | { | 
|  | 16553 | if ((ac__type_new_ *) 0) | 
|  | 16554 | return 0; | 
|  | 16555 | if (sizeof (ac__type_new_)) | 
|  | 16556 | return 0; | 
|  | 16557 | ; | 
|  | 16558 | return 0; | 
|  | 16559 | } | 
|  | 16560 | _ACEOF | 
|  | 16561 | rm -f conftest.$ac_objext | 
|  | 16562 | if { (ac_try="$ac_compile" | 
|  | 16563 | case "(($ac_try" in | 
|  | 16564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16565 | *) ac_try_echo=$ac_try;; | 
|  | 16566 | esac | 
|  | 16567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16568 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16569 | ac_status=$? | 
|  | 16570 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16571 | rm -f conftest.er1 | 
|  | 16572 | cat conftest.err >&5 | 
|  | 16573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16574 | (exit $ac_status); } && | 
|  | 16575 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 16576 | { (case "(($ac_try" in | 
|  | 16577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16578 | *) ac_try_echo=$ac_try;; | 
|  | 16579 | esac | 
|  | 16580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16581 | (eval "$ac_try") 2>&5 | 
|  | 16582 | ac_status=$? | 
|  | 16583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16584 | (exit $ac_status); }; } && | 
|  | 16585 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16586 | { (case "(($ac_try" in | 
|  | 16587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16588 | *) ac_try_echo=$ac_try;; | 
|  | 16589 | esac | 
|  | 16590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16591 | (eval "$ac_try") 2>&5 | 
|  | 16592 | ac_status=$? | 
|  | 16593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16594 | (exit $ac_status); }; }; then | 
|  | 16595 | ac_cv_type_size_t=yes | 
|  | 16596 | else | 
|  | 16597 | echo "$as_me: failed program was:" >&5 | 
|  | 16598 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16599 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16600 | ac_cv_type_size_t=no | 
|  | 16601 | fi | 
|  | 16602 |  | 
|  | 16603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16604 | fi | 
|  | 16605 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | 
|  | 16606 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | 
|  | 16607 | if test $ac_cv_type_size_t = yes; then | 
|  | 16608 | : | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16609 | else | 
|  | 16610 |  | 
|  | 16611 | cat >>confdefs.h <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16612 | #define size_t unsigned int | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16613 | _ACEOF | 
|  | 16614 |  | 
|  | 16615 | fi | 
|  | 16616 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16617 |  | 
|  | 16618 | cat >>confdefs.h <<_ACEOF | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16619 | #define RETSIGTYPE void | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16620 | _ACEOF | 
|  | 16621 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16622 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | 
|  | 16623 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | 
|  | 16624 | if test "${ac_cv_struct_tm+set}" = set; then | 
|  | 16625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16626 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16627 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16628 | /* confdefs.h.  */ | 
|  | 16629 | _ACEOF | 
|  | 16630 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16631 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16632 | /* end confdefs.h.  */ | 
|  | 16633 | #include <sys/types.h> | 
|  | 16634 | #include <time.h> | 
|  | 16635 |  | 
|  | 16636 | int | 
|  | 16637 | main () | 
|  | 16638 | { | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16639 | struct tm *tp; tp->tm_sec; | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16640 | ; | 
|  | 16641 | return 0; | 
|  | 16642 | } | 
|  | 16643 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16644 | rm -f conftest.$ac_objext | 
|  | 16645 | if { (ac_try="$ac_compile" | 
|  | 16646 | case "(($ac_try" in | 
|  | 16647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16648 | *) ac_try_echo=$ac_try;; | 
|  | 16649 | esac | 
|  | 16650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16651 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16652 | ac_status=$? | 
|  | 16653 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16654 | rm -f conftest.er1 | 
|  | 16655 | cat conftest.err >&5 | 
|  | 16656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16657 | (exit $ac_status); } && | 
|  | 16658 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 16659 | { (case "(($ac_try" in | 
|  | 16660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16661 | *) ac_try_echo=$ac_try;; | 
|  | 16662 | esac | 
|  | 16663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16664 | (eval "$ac_try") 2>&5 | 
|  | 16665 | ac_status=$? | 
|  | 16666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16667 | (exit $ac_status); }; } && | 
|  | 16668 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16669 | { (case "(($ac_try" in | 
|  | 16670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16671 | *) ac_try_echo=$ac_try;; | 
|  | 16672 | esac | 
|  | 16673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16674 | (eval "$ac_try") 2>&5 | 
|  | 16675 | ac_status=$? | 
|  | 16676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16677 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16678 | ac_cv_struct_tm=time.h | 
|  | 16679 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16680 | echo "$as_me: failed program was:" >&5 | 
|  | 16681 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16682 |  | 
|  | 16683 | ac_cv_struct_tm=sys/time.h | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16684 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16685 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16687 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16688 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | 
|  | 16689 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16690 | if test $ac_cv_struct_tm = sys/time.h; then | 
|  | 16691 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16692 | cat >>confdefs.h <<\_ACEOF | 
|  | 16693 | #define TM_IN_SYS_TIME 1 | 
|  | 16694 | _ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16695 |  | 
|  | 16696 | fi | 
|  | 16697 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16698 | { echo "$as_me:$LINENO: checking for int64_t" >&5 | 
|  | 16699 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } | 
|  | 16700 | if test "${ac_cv_type_int64_t+set}" = set; then | 
|  | 16701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16702 | else | 
|  | 16703 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16704 | /* confdefs.h.  */ | 
|  | 16705 | _ACEOF | 
|  | 16706 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16707 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16708 | /* end confdefs.h.  */ | 
|  | 16709 | $ac_includes_default | 
|  | 16710 | typedef int64_t ac__type_new_; | 
|  | 16711 | int | 
|  | 16712 | main () | 
|  | 16713 | { | 
|  | 16714 | if ((ac__type_new_ *) 0) | 
|  | 16715 | return 0; | 
|  | 16716 | if (sizeof (ac__type_new_)) | 
|  | 16717 | return 0; | 
|  | 16718 | ; | 
|  | 16719 | return 0; | 
|  | 16720 | } | 
|  | 16721 | _ACEOF | 
|  | 16722 | rm -f conftest.$ac_objext | 
|  | 16723 | if { (ac_try="$ac_compile" | 
|  | 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_compile") 2>conftest.er1 | 
|  | 16730 | ac_status=$? | 
|  | 16731 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16732 | rm -f conftest.er1 | 
|  | 16733 | cat conftest.err >&5 | 
|  | 16734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16735 | (exit $ac_status); } && | 
|  | 16736 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 16737 | { (case "(($ac_try" in | 
|  | 16738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16739 | *) ac_try_echo=$ac_try;; | 
|  | 16740 | esac | 
|  | 16741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16742 | (eval "$ac_try") 2>&5 | 
|  | 16743 | ac_status=$? | 
|  | 16744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16745 | (exit $ac_status); }; } && | 
|  | 16746 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16747 | { (case "(($ac_try" in | 
|  | 16748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16749 | *) ac_try_echo=$ac_try;; | 
|  | 16750 | esac | 
|  | 16751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16752 | (eval "$ac_try") 2>&5 | 
|  | 16753 | ac_status=$? | 
|  | 16754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16755 | (exit $ac_status); }; }; then | 
|  | 16756 | ac_cv_type_int64_t=yes | 
|  | 16757 | else | 
|  | 16758 | echo "$as_me: failed program was:" >&5 | 
|  | 16759 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16760 |  | 
|  | 16761 | ac_cv_type_int64_t=no | 
|  | 16762 | fi | 
|  | 16763 |  | 
|  | 16764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16765 | fi | 
|  | 16766 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 | 
|  | 16767 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } | 
|  | 16768 | if test $ac_cv_type_int64_t = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16769 |  | 
|  | 16770 | cat >>confdefs.h <<_ACEOF | 
|  | 16771 | #define HAVE_INT64_T 1 | 
|  | 16772 | _ACEOF | 
|  | 16773 |  | 
|  | 16774 |  | 
|  | 16775 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16776 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 | 
|  | 16777 | echo "$as_me: error: Type int64_t required but not found" >&2;} | 
|  | 16778 | { (exit 1); exit 1; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16779 | fi | 
|  | 16780 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16781 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 | 
|  | 16782 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } | 
|  | 16783 | if test "${ac_cv_type_uint64_t+set}" = set; then | 
|  | 16784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16785 | else | 
|  | 16786 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16787 | /* confdefs.h.  */ | 
|  | 16788 | _ACEOF | 
|  | 16789 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16790 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16791 | /* end confdefs.h.  */ | 
|  | 16792 | $ac_includes_default | 
|  | 16793 | typedef uint64_t ac__type_new_; | 
|  | 16794 | int | 
|  | 16795 | main () | 
|  | 16796 | { | 
|  | 16797 | if ((ac__type_new_ *) 0) | 
|  | 16798 | return 0; | 
|  | 16799 | if (sizeof (ac__type_new_)) | 
|  | 16800 | return 0; | 
|  | 16801 | ; | 
|  | 16802 | return 0; | 
|  | 16803 | } | 
|  | 16804 | _ACEOF | 
|  | 16805 | rm -f conftest.$ac_objext | 
|  | 16806 | if { (ac_try="$ac_compile" | 
|  | 16807 | case "(($ac_try" in | 
|  | 16808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16809 | *) ac_try_echo=$ac_try;; | 
|  | 16810 | esac | 
|  | 16811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16812 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16813 | ac_status=$? | 
|  | 16814 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16815 | rm -f conftest.er1 | 
|  | 16816 | cat conftest.err >&5 | 
|  | 16817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16818 | (exit $ac_status); } && | 
|  | 16819 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 16820 | { (case "(($ac_try" in | 
|  | 16821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16822 | *) ac_try_echo=$ac_try;; | 
|  | 16823 | esac | 
|  | 16824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16825 | (eval "$ac_try") 2>&5 | 
|  | 16826 | ac_status=$? | 
|  | 16827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16828 | (exit $ac_status); }; } && | 
|  | 16829 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16830 | { (case "(($ac_try" in | 
|  | 16831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16832 | *) ac_try_echo=$ac_try;; | 
|  | 16833 | esac | 
|  | 16834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16835 | (eval "$ac_try") 2>&5 | 
|  | 16836 | ac_status=$? | 
|  | 16837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16838 | (exit $ac_status); }; }; then | 
|  | 16839 | ac_cv_type_uint64_t=yes | 
|  | 16840 | else | 
|  | 16841 | echo "$as_me: failed program was:" >&5 | 
|  | 16842 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16843 |  | 
|  | 16844 | ac_cv_type_uint64_t=no | 
|  | 16845 | fi | 
|  | 16846 |  | 
|  | 16847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16848 | fi | 
|  | 16849 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | 
|  | 16850 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } | 
|  | 16851 | if test $ac_cv_type_uint64_t = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16852 |  | 
|  | 16853 | cat >>confdefs.h <<_ACEOF | 
|  | 16854 | #define HAVE_UINT64_T 1 | 
|  | 16855 | _ACEOF | 
|  | 16856 |  | 
|  | 16857 |  | 
|  | 16858 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16859 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 | 
|  | 16860 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } | 
|  | 16861 | if test "${ac_cv_type_u_int64_t+set}" = set; then | 
|  | 16862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16863 | else | 
|  | 16864 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16865 | /* confdefs.h.  */ | 
|  | 16866 | _ACEOF | 
|  | 16867 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16868 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16869 | /* end confdefs.h.  */ | 
|  | 16870 | $ac_includes_default | 
|  | 16871 | typedef u_int64_t ac__type_new_; | 
|  | 16872 | int | 
|  | 16873 | main () | 
|  | 16874 | { | 
|  | 16875 | if ((ac__type_new_ *) 0) | 
|  | 16876 | return 0; | 
|  | 16877 | if (sizeof (ac__type_new_)) | 
|  | 16878 | return 0; | 
|  | 16879 | ; | 
|  | 16880 | return 0; | 
|  | 16881 | } | 
|  | 16882 | _ACEOF | 
|  | 16883 | rm -f conftest.$ac_objext | 
|  | 16884 | if { (ac_try="$ac_compile" | 
|  | 16885 | case "(($ac_try" in | 
|  | 16886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16887 | *) ac_try_echo=$ac_try;; | 
|  | 16888 | esac | 
|  | 16889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16890 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 16891 | ac_status=$? | 
|  | 16892 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16893 | rm -f conftest.er1 | 
|  | 16894 | cat conftest.err >&5 | 
|  | 16895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16896 | (exit $ac_status); } && | 
|  | 16897 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 16898 | { (case "(($ac_try" in | 
|  | 16899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16900 | *) ac_try_echo=$ac_try;; | 
|  | 16901 | esac | 
|  | 16902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16903 | (eval "$ac_try") 2>&5 | 
|  | 16904 | ac_status=$? | 
|  | 16905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16906 | (exit $ac_status); }; } && | 
|  | 16907 | { ac_try='test -s conftest.$ac_objext' | 
|  | 16908 | { (case "(($ac_try" in | 
|  | 16909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 16910 | *) ac_try_echo=$ac_try;; | 
|  | 16911 | esac | 
|  | 16912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 16913 | (eval "$ac_try") 2>&5 | 
|  | 16914 | ac_status=$? | 
|  | 16915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16916 | (exit $ac_status); }; }; then | 
|  | 16917 | ac_cv_type_u_int64_t=yes | 
|  | 16918 | else | 
|  | 16919 | echo "$as_me: failed program was:" >&5 | 
|  | 16920 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16921 |  | 
|  | 16922 | ac_cv_type_u_int64_t=no | 
|  | 16923 | fi | 
|  | 16924 |  | 
|  | 16925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16926 | fi | 
|  | 16927 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | 
|  | 16928 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } | 
|  | 16929 | if test $ac_cv_type_u_int64_t = yes; then | 
| John Criswell | d672a3d | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16930 |  | 
|  | 16931 | cat >>confdefs.h <<_ACEOF | 
|  | 16932 | #define HAVE_U_INT64_T 1 | 
|  | 16933 | _ACEOF | 
|  | 16934 |  | 
|  | 16935 |  | 
| Misha Brukman | cb46e66 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16936 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16937 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 | 
|  | 16938 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} | 
|  | 16939 | { (exit 1); exit 1; }; } | 
| Misha Brukman | cb46e66 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16940 | fi | 
|  | 16941 |  | 
| John Criswell | d672a3d | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16942 | fi | 
|  | 16943 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16944 |  | 
|  | 16945 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16946 |  | 
|  | 16947 |  | 
|  | 16948 |  | 
|  | 16949 |  | 
|  | 16950 |  | 
|  | 16951 |  | 
|  | 16952 |  | 
| Reid Spencer | a609b65 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 16953 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16954 | do | 
|  | 16955 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 16956 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 16957 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 16958 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 16959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16960 | else | 
|  | 16961 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 16962 | /* confdefs.h.  */ | 
|  | 16963 | _ACEOF | 
|  | 16964 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16965 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16966 | /* end confdefs.h.  */ | 
|  | 16967 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 16968 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 16969 | #define $ac_func innocuous_$ac_func | 
|  | 16970 |  | 
|  | 16971 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 16972 | which can conflict with char $ac_func (); below. | 
|  | 16973 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 16974 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 16975 |  | 
|  | 16976 | #ifdef __STDC__ | 
|  | 16977 | # include <limits.h> | 
|  | 16978 | #else | 
|  | 16979 | # include <assert.h> | 
|  | 16980 | #endif | 
|  | 16981 |  | 
|  | 16982 | #undef $ac_func | 
|  | 16983 |  | 
|  | 16984 | /* Override any GCC internal prototype to avoid an error. | 
|  | 16985 | Use char because int might match the return type of a GCC | 
|  | 16986 | builtin and then its argument prototype would still apply.  */ | 
|  | 16987 | #ifdef __cplusplus | 
|  | 16988 | extern "C" | 
|  | 16989 | #endif | 
|  | 16990 | char $ac_func (); | 
|  | 16991 | /* The GNU C library defines this for functions which it implements | 
|  | 16992 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 16993 | something starting with __ and the normal name is an alias.  */ | 
|  | 16994 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 16995 | choke me | 
|  | 16996 | #endif | 
|  | 16997 |  | 
|  | 16998 | int | 
|  | 16999 | main () | 
|  | 17000 | { | 
|  | 17001 | return $ac_func (); | 
|  | 17002 | ; | 
|  | 17003 | return 0; | 
|  | 17004 | } | 
|  | 17005 | _ACEOF | 
|  | 17006 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17007 | if { (ac_try="$ac_link" | 
|  | 17008 | case "(($ac_try" in | 
|  | 17009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17010 | *) ac_try_echo=$ac_try;; | 
|  | 17011 | esac | 
|  | 17012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17013 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17014 | ac_status=$? | 
|  | 17015 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17016 | rm -f conftest.er1 | 
|  | 17017 | cat conftest.err >&5 | 
|  | 17018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17019 | (exit $ac_status); } && | 
|  | 17020 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 17021 | { (case "(($ac_try" in | 
|  | 17022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17023 | *) ac_try_echo=$ac_try;; | 
|  | 17024 | esac | 
|  | 17025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17026 | (eval "$ac_try") 2>&5 | 
|  | 17027 | ac_status=$? | 
|  | 17028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17029 | (exit $ac_status); }; } && | 
|  | 17030 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17031 | { (case "(($ac_try" in | 
|  | 17032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17033 | *) ac_try_echo=$ac_try;; | 
|  | 17034 | esac | 
|  | 17035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17036 | (eval "$ac_try") 2>&5 | 
|  | 17037 | ac_status=$? | 
|  | 17038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17039 | (exit $ac_status); }; }; then | 
|  | 17040 | eval "$as_ac_var=yes" | 
|  | 17041 | else | 
|  | 17042 | echo "$as_me: failed program was:" >&5 | 
|  | 17043 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17044 |  | 
|  | 17045 | eval "$as_ac_var=no" | 
|  | 17046 | fi | 
|  | 17047 |  | 
|  | 17048 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17049 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17050 | fi | 
|  | 17051 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17052 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17053 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17054 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17055 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17056 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17057 | _ACEOF | 
|  | 17058 |  | 
|  | 17059 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17060 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17061 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17062 |  | 
|  | 17063 |  | 
|  | 17064 |  | 
|  | 17065 |  | 
| Reid Spencer | df52364 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17066 | for ac_func in powf fmodf strtof round | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17067 | do | 
|  | 17068 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17069 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17070 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17071 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17073 | else | 
|  | 17074 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17075 | /* confdefs.h.  */ | 
|  | 17076 | _ACEOF | 
|  | 17077 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17078 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17079 | /* end confdefs.h.  */ | 
|  | 17080 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17081 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17082 | #define $ac_func innocuous_$ac_func | 
|  | 17083 |  | 
|  | 17084 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17085 | which can conflict with char $ac_func (); below. | 
|  | 17086 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17087 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17088 |  | 
|  | 17089 | #ifdef __STDC__ | 
|  | 17090 | # include <limits.h> | 
|  | 17091 | #else | 
|  | 17092 | # include <assert.h> | 
|  | 17093 | #endif | 
|  | 17094 |  | 
|  | 17095 | #undef $ac_func | 
|  | 17096 |  | 
|  | 17097 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17098 | Use char because int might match the return type of a GCC | 
|  | 17099 | builtin and then its argument prototype would still apply.  */ | 
|  | 17100 | #ifdef __cplusplus | 
|  | 17101 | extern "C" | 
|  | 17102 | #endif | 
|  | 17103 | char $ac_func (); | 
|  | 17104 | /* The GNU C library defines this for functions which it implements | 
|  | 17105 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17106 | something starting with __ and the normal name is an alias.  */ | 
|  | 17107 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17108 | choke me | 
|  | 17109 | #endif | 
|  | 17110 |  | 
|  | 17111 | int | 
|  | 17112 | main () | 
|  | 17113 | { | 
|  | 17114 | return $ac_func (); | 
|  | 17115 | ; | 
|  | 17116 | return 0; | 
|  | 17117 | } | 
|  | 17118 | _ACEOF | 
|  | 17119 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17120 | if { (ac_try="$ac_link" | 
|  | 17121 | case "(($ac_try" in | 
|  | 17122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17123 | *) ac_try_echo=$ac_try;; | 
|  | 17124 | esac | 
|  | 17125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17126 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17127 | ac_status=$? | 
|  | 17128 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17129 | rm -f conftest.er1 | 
|  | 17130 | cat conftest.err >&5 | 
|  | 17131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17132 | (exit $ac_status); } && | 
|  | 17133 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 17134 | { (case "(($ac_try" in | 
|  | 17135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17136 | *) ac_try_echo=$ac_try;; | 
|  | 17137 | esac | 
|  | 17138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17139 | (eval "$ac_try") 2>&5 | 
|  | 17140 | ac_status=$? | 
|  | 17141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17142 | (exit $ac_status); }; } && | 
|  | 17143 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17144 | { (case "(($ac_try" in | 
|  | 17145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17146 | *) ac_try_echo=$ac_try;; | 
|  | 17147 | esac | 
|  | 17148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17149 | (eval "$ac_try") 2>&5 | 
|  | 17150 | ac_status=$? | 
|  | 17151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17152 | (exit $ac_status); }; }; then | 
|  | 17153 | eval "$as_ac_var=yes" | 
|  | 17154 | else | 
|  | 17155 | echo "$as_me: failed program was:" >&5 | 
|  | 17156 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17157 |  | 
|  | 17158 | eval "$as_ac_var=no" | 
|  | 17159 | fi | 
|  | 17160 |  | 
|  | 17161 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17162 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17163 | fi | 
|  | 17164 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17165 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17166 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17167 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | df52364 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17168 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17169 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | df52364 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17170 | _ACEOF | 
|  | 17171 |  | 
|  | 17172 | fi | 
|  | 17173 | done | 
|  | 17174 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17175 |  | 
|  | 17176 |  | 
|  | 17177 |  | 
|  | 17178 |  | 
|  | 17179 |  | 
| Reid Spencer | edd2ccc | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17180 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17181 | do | 
|  | 17182 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17183 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17184 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17185 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17187 | else | 
|  | 17188 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17189 | /* confdefs.h.  */ | 
|  | 17190 | _ACEOF | 
|  | 17191 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17192 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17193 | /* end confdefs.h.  */ | 
|  | 17194 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17195 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17196 | #define $ac_func innocuous_$ac_func | 
|  | 17197 |  | 
|  | 17198 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17199 | which can conflict with char $ac_func (); below. | 
|  | 17200 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17201 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17202 |  | 
|  | 17203 | #ifdef __STDC__ | 
|  | 17204 | # include <limits.h> | 
|  | 17205 | #else | 
|  | 17206 | # include <assert.h> | 
|  | 17207 | #endif | 
|  | 17208 |  | 
|  | 17209 | #undef $ac_func | 
|  | 17210 |  | 
|  | 17211 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17212 | Use char because int might match the return type of a GCC | 
|  | 17213 | builtin and then its argument prototype would still apply.  */ | 
|  | 17214 | #ifdef __cplusplus | 
|  | 17215 | extern "C" | 
|  | 17216 | #endif | 
|  | 17217 | char $ac_func (); | 
|  | 17218 | /* The GNU C library defines this for functions which it implements | 
|  | 17219 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17220 | something starting with __ and the normal name is an alias.  */ | 
|  | 17221 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17222 | choke me | 
|  | 17223 | #endif | 
|  | 17224 |  | 
|  | 17225 | int | 
|  | 17226 | main () | 
|  | 17227 | { | 
|  | 17228 | return $ac_func (); | 
|  | 17229 | ; | 
|  | 17230 | return 0; | 
|  | 17231 | } | 
|  | 17232 | _ACEOF | 
|  | 17233 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17234 | if { (ac_try="$ac_link" | 
|  | 17235 | case "(($ac_try" in | 
|  | 17236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17237 | *) ac_try_echo=$ac_try;; | 
|  | 17238 | esac | 
|  | 17239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17240 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17241 | ac_status=$? | 
|  | 17242 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17243 | rm -f conftest.er1 | 
|  | 17244 | cat conftest.err >&5 | 
|  | 17245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17246 | (exit $ac_status); } && | 
|  | 17247 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 17248 | { (case "(($ac_try" in | 
|  | 17249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17250 | *) ac_try_echo=$ac_try;; | 
|  | 17251 | esac | 
|  | 17252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17253 | (eval "$ac_try") 2>&5 | 
|  | 17254 | ac_status=$? | 
|  | 17255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17256 | (exit $ac_status); }; } && | 
|  | 17257 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17258 | { (case "(($ac_try" in | 
|  | 17259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17260 | *) ac_try_echo=$ac_try;; | 
|  | 17261 | esac | 
|  | 17262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17263 | (eval "$ac_try") 2>&5 | 
|  | 17264 | ac_status=$? | 
|  | 17265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17266 | (exit $ac_status); }; }; then | 
|  | 17267 | eval "$as_ac_var=yes" | 
|  | 17268 | else | 
|  | 17269 | echo "$as_me: failed program was:" >&5 | 
|  | 17270 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17271 |  | 
|  | 17272 | eval "$as_ac_var=no" | 
|  | 17273 | fi | 
|  | 17274 |  | 
|  | 17275 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17276 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17277 | fi | 
|  | 17278 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17279 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17280 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17281 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | edd2ccc | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17282 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17283 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | edd2ccc | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17284 | _ACEOF | 
|  | 17285 |  | 
|  | 17286 | fi | 
|  | 17287 | done | 
|  | 17288 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17289 |  | 
|  | 17290 |  | 
|  | 17291 |  | 
| Reid Spencer | edd2ccc | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17292 | for ac_func in isatty mkdtemp mkstemp | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17293 | do | 
|  | 17294 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17295 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17296 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17297 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17299 | else | 
|  | 17300 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17301 | /* confdefs.h.  */ | 
|  | 17302 | _ACEOF | 
|  | 17303 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17304 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17305 | /* end confdefs.h.  */ | 
|  | 17306 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17307 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17308 | #define $ac_func innocuous_$ac_func | 
|  | 17309 |  | 
|  | 17310 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17311 | which can conflict with char $ac_func (); below. | 
|  | 17312 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17313 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17314 |  | 
|  | 17315 | #ifdef __STDC__ | 
|  | 17316 | # include <limits.h> | 
|  | 17317 | #else | 
|  | 17318 | # include <assert.h> | 
|  | 17319 | #endif | 
|  | 17320 |  | 
|  | 17321 | #undef $ac_func | 
|  | 17322 |  | 
|  | 17323 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17324 | Use char because int might match the return type of a GCC | 
|  | 17325 | builtin and then its argument prototype would still apply.  */ | 
|  | 17326 | #ifdef __cplusplus | 
|  | 17327 | extern "C" | 
|  | 17328 | #endif | 
|  | 17329 | char $ac_func (); | 
|  | 17330 | /* The GNU C library defines this for functions which it implements | 
|  | 17331 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17332 | something starting with __ and the normal name is an alias.  */ | 
|  | 17333 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17334 | choke me | 
|  | 17335 | #endif | 
|  | 17336 |  | 
|  | 17337 | int | 
|  | 17338 | main () | 
|  | 17339 | { | 
|  | 17340 | return $ac_func (); | 
|  | 17341 | ; | 
|  | 17342 | return 0; | 
|  | 17343 | } | 
|  | 17344 | _ACEOF | 
|  | 17345 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17346 | if { (ac_try="$ac_link" | 
|  | 17347 | case "(($ac_try" in | 
|  | 17348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17349 | *) ac_try_echo=$ac_try;; | 
|  | 17350 | esac | 
|  | 17351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17352 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17353 | ac_status=$? | 
|  | 17354 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17355 | rm -f conftest.er1 | 
|  | 17356 | cat conftest.err >&5 | 
|  | 17357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17358 | (exit $ac_status); } && | 
|  | 17359 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 17360 | { (case "(($ac_try" in | 
|  | 17361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17362 | *) ac_try_echo=$ac_try;; | 
|  | 17363 | esac | 
|  | 17364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17365 | (eval "$ac_try") 2>&5 | 
|  | 17366 | ac_status=$? | 
|  | 17367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17368 | (exit $ac_status); }; } && | 
|  | 17369 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17370 | { (case "(($ac_try" in | 
|  | 17371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17372 | *) ac_try_echo=$ac_try;; | 
|  | 17373 | esac | 
|  | 17374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17375 | (eval "$ac_try") 2>&5 | 
|  | 17376 | ac_status=$? | 
|  | 17377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17378 | (exit $ac_status); }; }; then | 
|  | 17379 | eval "$as_ac_var=yes" | 
|  | 17380 | else | 
|  | 17381 | echo "$as_me: failed program was:" >&5 | 
|  | 17382 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17383 |  | 
|  | 17384 | eval "$as_ac_var=no" | 
|  | 17385 | fi | 
|  | 17386 |  | 
|  | 17387 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17388 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17389 | fi | 
|  | 17390 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17391 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17392 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17393 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a609b65 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17394 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17395 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a609b65 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17396 | _ACEOF | 
|  | 17397 |  | 
|  | 17398 | fi | 
|  | 17399 | done | 
|  | 17400 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17401 |  | 
|  | 17402 |  | 
|  | 17403 |  | 
|  | 17404 |  | 
|  | 17405 |  | 
| Eric Christopher | dea3bda | 2010-04-16 05:14:21 +0000 | [diff] [blame] | 17406 |  | 
| Benjamin Kramer | e1effb0 | 2011-11-22 12:31:53 +0000 | [diff] [blame] | 17407 |  | 
|  | 17408 | for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17409 | do | 
|  | 17410 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17411 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17412 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17413 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17415 | else | 
|  | 17416 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17417 | /* confdefs.h.  */ | 
|  | 17418 | _ACEOF | 
|  | 17419 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17420 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17421 | /* end confdefs.h.  */ | 
|  | 17422 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17423 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17424 | #define $ac_func innocuous_$ac_func | 
|  | 17425 |  | 
|  | 17426 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17427 | which can conflict with char $ac_func (); below. | 
|  | 17428 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17429 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17430 |  | 
|  | 17431 | #ifdef __STDC__ | 
|  | 17432 | # include <limits.h> | 
|  | 17433 | #else | 
|  | 17434 | # include <assert.h> | 
|  | 17435 | #endif | 
|  | 17436 |  | 
|  | 17437 | #undef $ac_func | 
|  | 17438 |  | 
|  | 17439 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17440 | Use char because int might match the return type of a GCC | 
|  | 17441 | builtin and then its argument prototype would still apply.  */ | 
|  | 17442 | #ifdef __cplusplus | 
|  | 17443 | extern "C" | 
|  | 17444 | #endif | 
|  | 17445 | char $ac_func (); | 
|  | 17446 | /* The GNU C library defines this for functions which it implements | 
|  | 17447 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17448 | something starting with __ and the normal name is an alias.  */ | 
|  | 17449 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17450 | choke me | 
|  | 17451 | #endif | 
|  | 17452 |  | 
|  | 17453 | int | 
|  | 17454 | main () | 
|  | 17455 | { | 
|  | 17456 | return $ac_func (); | 
|  | 17457 | ; | 
|  | 17458 | return 0; | 
|  | 17459 | } | 
|  | 17460 | _ACEOF | 
|  | 17461 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17462 | if { (ac_try="$ac_link" | 
|  | 17463 | case "(($ac_try" in | 
|  | 17464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17465 | *) ac_try_echo=$ac_try;; | 
|  | 17466 | esac | 
|  | 17467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17468 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17469 | ac_status=$? | 
|  | 17470 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17471 | rm -f conftest.er1 | 
|  | 17472 | cat conftest.err >&5 | 
|  | 17473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17474 | (exit $ac_status); } && | 
|  | 17475 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 17476 | { (case "(($ac_try" in | 
|  | 17477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17478 | *) ac_try_echo=$ac_try;; | 
|  | 17479 | esac | 
|  | 17480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17481 | (eval "$ac_try") 2>&5 | 
|  | 17482 | ac_status=$? | 
|  | 17483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17484 | (exit $ac_status); }; } && | 
|  | 17485 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17486 | { (case "(($ac_try" in | 
|  | 17487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17488 | *) ac_try_echo=$ac_try;; | 
|  | 17489 | esac | 
|  | 17490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17491 | (eval "$ac_try") 2>&5 | 
|  | 17492 | ac_status=$? | 
|  | 17493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17494 | (exit $ac_status); }; }; then | 
|  | 17495 | eval "$as_ac_var=yes" | 
|  | 17496 | else | 
|  | 17497 | echo "$as_me: failed program was:" >&5 | 
|  | 17498 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17499 |  | 
|  | 17500 | eval "$as_ac_var=no" | 
|  | 17501 | fi | 
|  | 17502 |  | 
|  | 17503 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17504 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17505 | fi | 
|  | 17506 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17507 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17508 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17509 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Jeffrey Yasskin | 246676d | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17510 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17511 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Jeffrey Yasskin | 246676d | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17512 | _ACEOF | 
|  | 17513 |  | 
|  | 17514 | fi | 
|  | 17515 | done | 
| Reid Spencer | a609b65 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17516 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17517 |  | 
|  | 17518 |  | 
|  | 17519 |  | 
| NAKAMURA Takumi | 18911180 | 2011-02-09 04:18:48 +0000 | [diff] [blame] | 17520 | for ac_func in strerror strerror_r setenv | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17521 | do | 
|  | 17522 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17523 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17524 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17525 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17527 | else | 
|  | 17528 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17529 | /* confdefs.h.  */ | 
|  | 17530 | _ACEOF | 
|  | 17531 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17532 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17533 | /* end confdefs.h.  */ | 
|  | 17534 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17535 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17536 | #define $ac_func innocuous_$ac_func | 
|  | 17537 |  | 
|  | 17538 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17539 | which can conflict with char $ac_func (); below. | 
|  | 17540 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17541 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17542 |  | 
|  | 17543 | #ifdef __STDC__ | 
|  | 17544 | # include <limits.h> | 
|  | 17545 | #else | 
|  | 17546 | # include <assert.h> | 
|  | 17547 | #endif | 
|  | 17548 |  | 
|  | 17549 | #undef $ac_func | 
|  | 17550 |  | 
|  | 17551 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17552 | Use char because int might match the return type of a GCC | 
|  | 17553 | builtin and then its argument prototype would still apply.  */ | 
|  | 17554 | #ifdef __cplusplus | 
|  | 17555 | extern "C" | 
|  | 17556 | #endif | 
|  | 17557 | char $ac_func (); | 
|  | 17558 | /* The GNU C library defines this for functions which it implements | 
|  | 17559 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17560 | something starting with __ and the normal name is an alias.  */ | 
|  | 17561 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17562 | choke me | 
|  | 17563 | #endif | 
|  | 17564 |  | 
|  | 17565 | int | 
|  | 17566 | main () | 
|  | 17567 | { | 
|  | 17568 | return $ac_func (); | 
|  | 17569 | ; | 
|  | 17570 | return 0; | 
|  | 17571 | } | 
|  | 17572 | _ACEOF | 
|  | 17573 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17574 | if { (ac_try="$ac_link" | 
|  | 17575 | case "(($ac_try" in | 
|  | 17576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17577 | *) ac_try_echo=$ac_try;; | 
|  | 17578 | esac | 
|  | 17579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17580 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17581 | ac_status=$? | 
|  | 17582 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17583 | rm -f conftest.er1 | 
|  | 17584 | cat conftest.err >&5 | 
|  | 17585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17586 | (exit $ac_status); } && | 
|  | 17587 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 17588 | { (case "(($ac_try" in | 
|  | 17589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17590 | *) ac_try_echo=$ac_try;; | 
|  | 17591 | esac | 
|  | 17592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17593 | (eval "$ac_try") 2>&5 | 
|  | 17594 | ac_status=$? | 
|  | 17595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17596 | (exit $ac_status); }; } && | 
|  | 17597 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17598 | { (case "(($ac_try" in | 
|  | 17599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17600 | *) ac_try_echo=$ac_try;; | 
|  | 17601 | esac | 
|  | 17602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17603 | (eval "$ac_try") 2>&5 | 
|  | 17604 | ac_status=$? | 
|  | 17605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17606 | (exit $ac_status); }; }; then | 
|  | 17607 | eval "$as_ac_var=yes" | 
|  | 17608 | else | 
|  | 17609 | echo "$as_me: failed program was:" >&5 | 
|  | 17610 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17611 |  | 
|  | 17612 | eval "$as_ac_var=no" | 
|  | 17613 | fi | 
|  | 17614 |  | 
|  | 17615 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17616 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17617 | fi | 
|  | 17618 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17619 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17620 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17621 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17622 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17623 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17624 | _ACEOF | 
|  | 17625 |  | 
|  | 17626 | fi | 
|  | 17627 | done | 
|  | 17628 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17629 |  | 
|  | 17630 |  | 
|  | 17631 |  | 
|  | 17632 |  | 
| Chris Lattner | 8147902 | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 17633 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17634 | do | 
|  | 17635 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17636 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17637 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17638 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17640 | else | 
|  | 17641 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17642 | /* confdefs.h.  */ | 
|  | 17643 | _ACEOF | 
|  | 17644 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17645 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17646 | /* end confdefs.h.  */ | 
|  | 17647 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17648 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17649 | #define $ac_func innocuous_$ac_func | 
|  | 17650 |  | 
|  | 17651 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17652 | which can conflict with char $ac_func (); below. | 
|  | 17653 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17654 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17655 |  | 
|  | 17656 | #ifdef __STDC__ | 
|  | 17657 | # include <limits.h> | 
|  | 17658 | #else | 
|  | 17659 | # include <assert.h> | 
|  | 17660 | #endif | 
|  | 17661 |  | 
|  | 17662 | #undef $ac_func | 
|  | 17663 |  | 
|  | 17664 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17665 | Use char because int might match the return type of a GCC | 
|  | 17666 | builtin and then its argument prototype would still apply.  */ | 
|  | 17667 | #ifdef __cplusplus | 
|  | 17668 | extern "C" | 
|  | 17669 | #endif | 
|  | 17670 | char $ac_func (); | 
|  | 17671 | /* The GNU C library defines this for functions which it implements | 
|  | 17672 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17673 | something starting with __ and the normal name is an alias.  */ | 
|  | 17674 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17675 | choke me | 
|  | 17676 | #endif | 
|  | 17677 |  | 
|  | 17678 | int | 
|  | 17679 | main () | 
|  | 17680 | { | 
|  | 17681 | return $ac_func (); | 
|  | 17682 | ; | 
|  | 17683 | return 0; | 
|  | 17684 | } | 
|  | 17685 | _ACEOF | 
|  | 17686 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17687 | if { (ac_try="$ac_link" | 
|  | 17688 | case "(($ac_try" in | 
|  | 17689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17690 | *) ac_try_echo=$ac_try;; | 
|  | 17691 | esac | 
|  | 17692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17693 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17694 | ac_status=$? | 
|  | 17695 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17696 | rm -f conftest.er1 | 
|  | 17697 | cat conftest.err >&5 | 
|  | 17698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17699 | (exit $ac_status); } && | 
|  | 17700 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 17701 | { (case "(($ac_try" in | 
|  | 17702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17703 | *) ac_try_echo=$ac_try;; | 
|  | 17704 | esac | 
|  | 17705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17706 | (eval "$ac_try") 2>&5 | 
|  | 17707 | ac_status=$? | 
|  | 17708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17709 | (exit $ac_status); }; } && | 
|  | 17710 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17711 | { (case "(($ac_try" in | 
|  | 17712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17713 | *) ac_try_echo=$ac_try;; | 
|  | 17714 | esac | 
|  | 17715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17716 | (eval "$ac_try") 2>&5 | 
|  | 17717 | ac_status=$? | 
|  | 17718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17719 | (exit $ac_status); }; }; then | 
|  | 17720 | eval "$as_ac_var=yes" | 
|  | 17721 | else | 
|  | 17722 | echo "$as_me: failed program was:" >&5 | 
|  | 17723 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17724 |  | 
|  | 17725 | eval "$as_ac_var=no" | 
|  | 17726 | fi | 
|  | 17727 |  | 
|  | 17728 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17729 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17730 | fi | 
|  | 17731 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17732 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17733 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17734 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17735 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17736 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17737 | _ACEOF | 
|  | 17738 |  | 
|  | 17739 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17740 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17741 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17742 |  | 
|  | 17743 |  | 
|  | 17744 |  | 
|  | 17745 |  | 
| Daniel Dunbar | 7840c54 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 17746 |  | 
|  | 17747 | for ac_func in setjmp longjmp sigsetjmp siglongjmp writev | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17748 | do | 
|  | 17749 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 17750 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 17751 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 17752 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 17753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17754 | else | 
|  | 17755 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17756 | /* confdefs.h.  */ | 
|  | 17757 | _ACEOF | 
|  | 17758 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17759 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17760 | /* end confdefs.h.  */ | 
|  | 17761 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 17762 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17763 | #define $ac_func innocuous_$ac_func | 
|  | 17764 |  | 
|  | 17765 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 17766 | which can conflict with char $ac_func (); below. | 
|  | 17767 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17768 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 17769 |  | 
|  | 17770 | #ifdef __STDC__ | 
|  | 17771 | # include <limits.h> | 
|  | 17772 | #else | 
|  | 17773 | # include <assert.h> | 
|  | 17774 | #endif | 
|  | 17775 |  | 
|  | 17776 | #undef $ac_func | 
|  | 17777 |  | 
|  | 17778 | /* Override any GCC internal prototype to avoid an error. | 
|  | 17779 | Use char because int might match the return type of a GCC | 
|  | 17780 | builtin and then its argument prototype would still apply.  */ | 
|  | 17781 | #ifdef __cplusplus | 
|  | 17782 | extern "C" | 
|  | 17783 | #endif | 
|  | 17784 | char $ac_func (); | 
|  | 17785 | /* The GNU C library defines this for functions which it implements | 
|  | 17786 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17787 | something starting with __ and the normal name is an alias.  */ | 
|  | 17788 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 17789 | choke me | 
|  | 17790 | #endif | 
|  | 17791 |  | 
|  | 17792 | int | 
|  | 17793 | main () | 
|  | 17794 | { | 
|  | 17795 | return $ac_func (); | 
|  | 17796 | ; | 
|  | 17797 | return 0; | 
|  | 17798 | } | 
|  | 17799 | _ACEOF | 
|  | 17800 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17801 | if { (ac_try="$ac_link" | 
|  | 17802 | case "(($ac_try" in | 
|  | 17803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17804 | *) ac_try_echo=$ac_try;; | 
|  | 17805 | esac | 
|  | 17806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17807 | (eval "$ac_link") 2>conftest.er1 | 
|  | 17808 | ac_status=$? | 
|  | 17809 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17810 | rm -f conftest.er1 | 
|  | 17811 | cat conftest.err >&5 | 
|  | 17812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17813 | (exit $ac_status); } && | 
|  | 17814 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 17815 | { (case "(($ac_try" in | 
|  | 17816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17817 | *) ac_try_echo=$ac_try;; | 
|  | 17818 | esac | 
|  | 17819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17820 | (eval "$ac_try") 2>&5 | 
|  | 17821 | ac_status=$? | 
|  | 17822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17823 | (exit $ac_status); }; } && | 
|  | 17824 | { ac_try='test -s conftest$ac_exeext' | 
|  | 17825 | { (case "(($ac_try" in | 
|  | 17826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17827 | *) ac_try_echo=$ac_try;; | 
|  | 17828 | esac | 
|  | 17829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17830 | (eval "$ac_try") 2>&5 | 
|  | 17831 | ac_status=$? | 
|  | 17832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17833 | (exit $ac_status); }; }; then | 
|  | 17834 | eval "$as_ac_var=yes" | 
|  | 17835 | else | 
|  | 17836 | echo "$as_me: failed program was:" >&5 | 
|  | 17837 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17838 |  | 
|  | 17839 | eval "$as_ac_var=no" | 
|  | 17840 | fi | 
|  | 17841 |  | 
|  | 17842 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17843 | conftest$ac_exeext conftest.$ac_ext | 
|  | 17844 | fi | 
|  | 17845 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 17846 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 17847 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 17848 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | a31ac4e | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17849 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17850 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | a31ac4e | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17851 | _ACEOF | 
|  | 17852 |  | 
|  | 17853 | fi | 
|  | 17854 | done | 
|  | 17855 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17856 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 | 
|  | 17857 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } | 
|  | 17858 | if test "${llvm_cv_c_printf_a+set}" = set; then | 
|  | 17859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17860 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17861 | ac_ext=c | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17862 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 17863 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 17864 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 17865 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 17866 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17867 | if test "$cross_compiling" = yes; then | 
| Reid Spencer | 8de4605 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17868 | llvmac_cv_c_printf_a=no | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17869 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17870 | cat >conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17871 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17872 | /* confdefs.h.  */ | 
|  | 17873 | _ACEOF | 
|  | 17874 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17875 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17876 | /* end confdefs.h.  */ | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17877 |  | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17878 | #include <stdio.h> | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17879 | #include <stdlib.h> | 
|  | 17880 |  | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17881 | int | 
|  | 17882 | main () | 
|  | 17883 | { | 
|  | 17884 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17885 | volatile double A, B; | 
|  | 17886 | char Buffer[100]; | 
|  | 17887 | A = 1; | 
|  | 17888 | A /= 10.0; | 
|  | 17889 | sprintf(Buffer, "%a", A); | 
|  | 17890 | B = atof(Buffer); | 
|  | 17891 | if (A != B) | 
|  | 17892 | return (1); | 
|  | 17893 | if (A != 0x1.999999999999ap-4) | 
|  | 17894 | return (1); | 
|  | 17895 | return (0); | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17896 | ; | 
|  | 17897 | return 0; | 
|  | 17898 | } | 
|  | 17899 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17900 | rm -f conftest$ac_exeext | 
|  | 17901 | if { (ac_try="$ac_link" | 
|  | 17902 | case "(($ac_try" in | 
|  | 17903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17904 | *) ac_try_echo=$ac_try;; | 
|  | 17905 | esac | 
|  | 17906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17907 | (eval "$ac_link") 2>&5 | 
|  | 17908 | ac_status=$? | 
|  | 17909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17910 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 17911 | { (case "(($ac_try" in | 
|  | 17912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17913 | *) ac_try_echo=$ac_try;; | 
|  | 17914 | esac | 
|  | 17915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17916 | (eval "$ac_try") 2>&5 | 
|  | 17917 | ac_status=$? | 
|  | 17918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17919 | (exit $ac_status); }; }; then | 
| Reid Spencer | 8de4605 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17920 | llvm_cv_c_printf_a=yes | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17921 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17922 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 17923 | echo "$as_me: failed program was:" >&5 | 
|  | 17924 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17925 |  | 
|  | 17926 | ( exit $ac_status ) | 
|  | 17927 | llvmac_cv_c_printf_a=no | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17928 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17929 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17930 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17931 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17932 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17933 | ac_ext=c | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17934 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 17935 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 17936 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 17937 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 17938 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17939 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17940 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 | 
|  | 17941 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } | 
| Reid Spencer | 8de4605 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17942 | if test "$llvm_cv_c_printf_a" = "yes"; then | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17943 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17944 | cat >>confdefs.h <<\_ACEOF | 
|  | 17945 | #define HAVE_PRINTF_A 1 | 
|  | 17946 | _ACEOF | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17947 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17948 | fi | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17949 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17950 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17951 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 | 
|  | 17952 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } | 
|  | 17953 | if test "${ac_cv_func_rand48+set}" = set; then | 
|  | 17954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17955 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17956 | ac_ext=cpp | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17957 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 17958 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 17959 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 17960 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 17961 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17962 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 17963 | /* confdefs.h.  */ | 
|  | 17964 | _ACEOF | 
|  | 17965 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17966 | cat >>conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17967 | /* end confdefs.h.  */ | 
|  | 17968 | #include <stdlib.h> | 
|  | 17969 | int | 
|  | 17970 | main () | 
|  | 17971 | { | 
|  | 17972 | srand48(0);lrand48();drand48(); | 
|  | 17973 | ; | 
|  | 17974 | return 0; | 
|  | 17975 | } | 
|  | 17976 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17977 | rm -f conftest.$ac_objext | 
|  | 17978 | if { (ac_try="$ac_compile" | 
|  | 17979 | case "(($ac_try" in | 
|  | 17980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 17981 | *) ac_try_echo=$ac_try;; | 
|  | 17982 | esac | 
|  | 17983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 17984 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 17985 | ac_status=$? | 
|  | 17986 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17987 | rm -f conftest.er1 | 
|  | 17988 | cat conftest.err >&5 | 
|  | 17989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17990 | (exit $ac_status); } && | 
|  | 17991 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 17998 | ac_status=$? | 
|  | 17999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18000 | (exit $ac_status); }; } && | 
|  | 18001 | { ac_try='test -s conftest.$ac_objext' | 
|  | 18002 | { (case "(($ac_try" in | 
|  | 18003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18004 | *) ac_try_echo=$ac_try;; | 
|  | 18005 | esac | 
|  | 18006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18007 | (eval "$ac_try") 2>&5 | 
|  | 18008 | ac_status=$? | 
|  | 18009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18010 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18011 | ac_cv_func_rand48=yes | 
|  | 18012 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18013 | echo "$as_me: failed program was:" >&5 | 
|  | 18014 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18015 |  | 
|  | 18016 | ac_cv_func_rand48=no | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18017 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18018 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18020 | ac_ext=c | 
|  | 18021 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 18022 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 18023 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 18024 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 18025 |  | 
|  | 18026 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18027 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 | 
|  | 18028 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18029 |  | 
|  | 18030 | if test "$ac_cv_func_rand48" = "yes" ; then | 
|  | 18031 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18032 | cat >>confdefs.h <<\_ACEOF | 
|  | 18033 | #define HAVE_RAND48 1 | 
|  | 18034 | _ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18035 |  | 
|  | 18036 | fi | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 18037 |  | 
|  | 18038 |  | 
| NAKAMURA Takumi | 18911180 | 2011-02-09 04:18:48 +0000 | [diff] [blame] | 18039 | { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 | 
|  | 18040 | echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } | 
|  | 18041 | if test "${ac_cv_have_decl_strerror_s+set}" = set; then | 
|  | 18042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18043 | else | 
|  | 18044 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18045 | /* confdefs.h.  */ | 
|  | 18046 | _ACEOF | 
|  | 18047 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18048 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18049 | /* end confdefs.h.  */ | 
|  | 18050 | $ac_includes_default | 
|  | 18051 | int | 
|  | 18052 | main () | 
|  | 18053 | { | 
|  | 18054 | #ifndef strerror_s | 
|  | 18055 | char *p = (char *) strerror_s; | 
|  | 18056 | return !p; | 
|  | 18057 | #endif | 
|  | 18058 |  | 
|  | 18059 | ; | 
|  | 18060 | return 0; | 
|  | 18061 | } | 
|  | 18062 | _ACEOF | 
|  | 18063 | rm -f conftest.$ac_objext | 
|  | 18064 | if { (ac_try="$ac_compile" | 
|  | 18065 | case "(($ac_try" in | 
|  | 18066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18067 | *) ac_try_echo=$ac_try;; | 
|  | 18068 | esac | 
|  | 18069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18070 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 18071 | ac_status=$? | 
|  | 18072 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18073 | rm -f conftest.er1 | 
|  | 18074 | cat conftest.err >&5 | 
|  | 18075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18076 | (exit $ac_status); } && | 
|  | 18077 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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_try") 2>&5 | 
|  | 18084 | ac_status=$? | 
|  | 18085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18086 | (exit $ac_status); }; } && | 
|  | 18087 | { ac_try='test -s conftest.$ac_objext' | 
|  | 18088 | { (case "(($ac_try" in | 
|  | 18089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18090 | *) ac_try_echo=$ac_try;; | 
|  | 18091 | esac | 
|  | 18092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18093 | (eval "$ac_try") 2>&5 | 
|  | 18094 | ac_status=$? | 
|  | 18095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18096 | (exit $ac_status); }; }; then | 
|  | 18097 | ac_cv_have_decl_strerror_s=yes | 
|  | 18098 | else | 
|  | 18099 | echo "$as_me: failed program was:" >&5 | 
|  | 18100 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18101 |  | 
|  | 18102 | ac_cv_have_decl_strerror_s=no | 
|  | 18103 | fi | 
|  | 18104 |  | 
|  | 18105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 18106 | fi | 
|  | 18107 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 | 
|  | 18108 | echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } | 
|  | 18109 | if test $ac_cv_have_decl_strerror_s = yes; then | 
|  | 18110 |  | 
|  | 18111 | cat >>confdefs.h <<_ACEOF | 
|  | 18112 | #define HAVE_DECL_STRERROR_S 1 | 
|  | 18113 | _ACEOF | 
|  | 18114 |  | 
|  | 18115 |  | 
|  | 18116 | else | 
|  | 18117 | cat >>confdefs.h <<_ACEOF | 
|  | 18118 | #define HAVE_DECL_STRERROR_S 0 | 
|  | 18119 | _ACEOF | 
|  | 18120 |  | 
|  | 18121 |  | 
|  | 18122 | fi | 
|  | 18123 |  | 
|  | 18124 |  | 
|  | 18125 |  | 
| NAKAMURA Takumi | 03a541f | 2011-02-05 15:11:53 +0000 | [diff] [blame] | 18126 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 18127 | { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 | 
|  | 18128 | echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } | 
|  | 18129 | if test "${ac_cv_lib_gcc__alloca+set}" = set; then | 
|  | 18130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18131 | else | 
|  | 18132 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18133 | LIBS="-lgcc  $LIBS" | 
|  | 18134 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18135 | /* confdefs.h.  */ | 
|  | 18136 | _ACEOF | 
|  | 18137 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18138 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18139 | /* end confdefs.h.  */ | 
|  | 18140 |  | 
|  | 18141 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18142 | Use char because int might match the return type of a GCC | 
|  | 18143 | builtin and then its argument prototype would still apply.  */ | 
|  | 18144 | #ifdef __cplusplus | 
|  | 18145 | extern "C" | 
|  | 18146 | #endif | 
|  | 18147 | char _alloca (); | 
|  | 18148 | int | 
|  | 18149 | main () | 
|  | 18150 | { | 
|  | 18151 | return _alloca (); | 
|  | 18152 | ; | 
|  | 18153 | return 0; | 
|  | 18154 | } | 
|  | 18155 | _ACEOF | 
|  | 18156 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18157 | if { (ac_try="$ac_link" | 
|  | 18158 | case "(($ac_try" in | 
|  | 18159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18160 | *) ac_try_echo=$ac_try;; | 
|  | 18161 | esac | 
|  | 18162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18163 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18164 | ac_status=$? | 
|  | 18165 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18166 | rm -f conftest.er1 | 
|  | 18167 | cat conftest.err >&5 | 
|  | 18168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18169 | (exit $ac_status); } && | 
|  | 18170 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18171 | { (case "(($ac_try" in | 
|  | 18172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18173 | *) ac_try_echo=$ac_try;; | 
|  | 18174 | esac | 
|  | 18175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18176 | (eval "$ac_try") 2>&5 | 
|  | 18177 | ac_status=$? | 
|  | 18178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18179 | (exit $ac_status); }; } && | 
|  | 18180 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18181 | { (case "(($ac_try" in | 
|  | 18182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18183 | *) ac_try_echo=$ac_try;; | 
|  | 18184 | esac | 
|  | 18185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18186 | (eval "$ac_try") 2>&5 | 
|  | 18187 | ac_status=$? | 
|  | 18188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18189 | (exit $ac_status); }; }; then | 
|  | 18190 | ac_cv_lib_gcc__alloca=yes | 
|  | 18191 | else | 
|  | 18192 | echo "$as_me: failed program was:" >&5 | 
|  | 18193 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18194 |  | 
|  | 18195 | ac_cv_lib_gcc__alloca=no | 
|  | 18196 | fi | 
|  | 18197 |  | 
|  | 18198 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18199 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18200 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18201 | fi | 
|  | 18202 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 | 
|  | 18203 | echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } | 
|  | 18204 | if test $ac_cv_lib_gcc__alloca = yes; then | 
|  | 18205 |  | 
|  | 18206 | cat >>confdefs.h <<\_ACEOF | 
|  | 18207 | #define HAVE__ALLOCA 1 | 
|  | 18208 | _ACEOF | 
|  | 18209 |  | 
|  | 18210 | fi | 
|  | 18211 |  | 
|  | 18212 | { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 | 
|  | 18213 | echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } | 
|  | 18214 | if test "${ac_cv_lib_gcc___alloca+set}" = set; then | 
|  | 18215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18216 | else | 
|  | 18217 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18218 | LIBS="-lgcc  $LIBS" | 
|  | 18219 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18220 | /* confdefs.h.  */ | 
|  | 18221 | _ACEOF | 
|  | 18222 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18223 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18224 | /* end confdefs.h.  */ | 
|  | 18225 |  | 
|  | 18226 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18227 | Use char because int might match the return type of a GCC | 
|  | 18228 | builtin and then its argument prototype would still apply.  */ | 
|  | 18229 | #ifdef __cplusplus | 
|  | 18230 | extern "C" | 
|  | 18231 | #endif | 
|  | 18232 | char __alloca (); | 
|  | 18233 | int | 
|  | 18234 | main () | 
|  | 18235 | { | 
|  | 18236 | return __alloca (); | 
|  | 18237 | ; | 
|  | 18238 | return 0; | 
|  | 18239 | } | 
|  | 18240 | _ACEOF | 
|  | 18241 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18242 | if { (ac_try="$ac_link" | 
|  | 18243 | case "(($ac_try" in | 
|  | 18244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18245 | *) ac_try_echo=$ac_try;; | 
|  | 18246 | esac | 
|  | 18247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18248 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18249 | ac_status=$? | 
|  | 18250 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18251 | rm -f conftest.er1 | 
|  | 18252 | cat conftest.err >&5 | 
|  | 18253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18254 | (exit $ac_status); } && | 
|  | 18255 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18256 | { (case "(($ac_try" in | 
|  | 18257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18258 | *) ac_try_echo=$ac_try;; | 
|  | 18259 | esac | 
|  | 18260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18261 | (eval "$ac_try") 2>&5 | 
|  | 18262 | ac_status=$? | 
|  | 18263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18264 | (exit $ac_status); }; } && | 
|  | 18265 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18266 | { (case "(($ac_try" in | 
|  | 18267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18268 | *) ac_try_echo=$ac_try;; | 
|  | 18269 | esac | 
|  | 18270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18271 | (eval "$ac_try") 2>&5 | 
|  | 18272 | ac_status=$? | 
|  | 18273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18274 | (exit $ac_status); }; }; then | 
|  | 18275 | ac_cv_lib_gcc___alloca=yes | 
|  | 18276 | else | 
|  | 18277 | echo "$as_me: failed program was:" >&5 | 
|  | 18278 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18279 |  | 
|  | 18280 | ac_cv_lib_gcc___alloca=no | 
|  | 18281 | fi | 
|  | 18282 |  | 
|  | 18283 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18284 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18285 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18286 | fi | 
|  | 18287 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 | 
|  | 18288 | echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } | 
|  | 18289 | if test $ac_cv_lib_gcc___alloca = yes; then | 
|  | 18290 |  | 
|  | 18291 | cat >>confdefs.h <<\_ACEOF | 
|  | 18292 | #define HAVE___ALLOCA 1 | 
|  | 18293 | _ACEOF | 
|  | 18294 |  | 
|  | 18295 | fi | 
|  | 18296 |  | 
|  | 18297 | { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 | 
|  | 18298 | echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } | 
|  | 18299 | if test "${ac_cv_lib_gcc___chkstk+set}" = set; then | 
|  | 18300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18301 | else | 
|  | 18302 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18303 | LIBS="-lgcc  $LIBS" | 
|  | 18304 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18305 | /* confdefs.h.  */ | 
|  | 18306 | _ACEOF | 
|  | 18307 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18308 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18309 | /* end confdefs.h.  */ | 
|  | 18310 |  | 
|  | 18311 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18312 | Use char because int might match the return type of a GCC | 
|  | 18313 | builtin and then its argument prototype would still apply.  */ | 
|  | 18314 | #ifdef __cplusplus | 
|  | 18315 | extern "C" | 
|  | 18316 | #endif | 
|  | 18317 | char __chkstk (); | 
|  | 18318 | int | 
|  | 18319 | main () | 
|  | 18320 | { | 
|  | 18321 | return __chkstk (); | 
|  | 18322 | ; | 
|  | 18323 | return 0; | 
|  | 18324 | } | 
|  | 18325 | _ACEOF | 
|  | 18326 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18327 | if { (ac_try="$ac_link" | 
|  | 18328 | case "(($ac_try" in | 
|  | 18329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18330 | *) ac_try_echo=$ac_try;; | 
|  | 18331 | esac | 
|  | 18332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18333 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18334 | ac_status=$? | 
|  | 18335 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18336 | rm -f conftest.er1 | 
|  | 18337 | cat conftest.err >&5 | 
|  | 18338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18339 | (exit $ac_status); } && | 
|  | 18340 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18341 | { (case "(($ac_try" in | 
|  | 18342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18343 | *) ac_try_echo=$ac_try;; | 
|  | 18344 | esac | 
|  | 18345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18346 | (eval "$ac_try") 2>&5 | 
|  | 18347 | ac_status=$? | 
|  | 18348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18349 | (exit $ac_status); }; } && | 
|  | 18350 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18351 | { (case "(($ac_try" in | 
|  | 18352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18353 | *) ac_try_echo=$ac_try;; | 
|  | 18354 | esac | 
|  | 18355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18356 | (eval "$ac_try") 2>&5 | 
|  | 18357 | ac_status=$? | 
|  | 18358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18359 | (exit $ac_status); }; }; then | 
|  | 18360 | ac_cv_lib_gcc___chkstk=yes | 
|  | 18361 | else | 
|  | 18362 | echo "$as_me: failed program was:" >&5 | 
|  | 18363 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18364 |  | 
|  | 18365 | ac_cv_lib_gcc___chkstk=no | 
|  | 18366 | fi | 
|  | 18367 |  | 
|  | 18368 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18369 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18370 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18371 | fi | 
|  | 18372 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 | 
|  | 18373 | echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } | 
|  | 18374 | if test $ac_cv_lib_gcc___chkstk = yes; then | 
|  | 18375 |  | 
|  | 18376 | cat >>confdefs.h <<\_ACEOF | 
|  | 18377 | #define HAVE___CHKSTK 1 | 
|  | 18378 | _ACEOF | 
|  | 18379 |  | 
|  | 18380 | fi | 
|  | 18381 |  | 
|  | 18382 | { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 | 
|  | 18383 | echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } | 
|  | 18384 | if test "${ac_cv_lib_gcc____chkstk+set}" = set; then | 
|  | 18385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18386 | else | 
|  | 18387 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18388 | LIBS="-lgcc  $LIBS" | 
|  | 18389 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18390 | /* confdefs.h.  */ | 
|  | 18391 | _ACEOF | 
|  | 18392 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18393 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18394 | /* end confdefs.h.  */ | 
|  | 18395 |  | 
|  | 18396 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18397 | Use char because int might match the return type of a GCC | 
|  | 18398 | builtin and then its argument prototype would still apply.  */ | 
|  | 18399 | #ifdef __cplusplus | 
|  | 18400 | extern "C" | 
|  | 18401 | #endif | 
|  | 18402 | char ___chkstk (); | 
|  | 18403 | int | 
|  | 18404 | main () | 
|  | 18405 | { | 
|  | 18406 | return ___chkstk (); | 
|  | 18407 | ; | 
|  | 18408 | return 0; | 
|  | 18409 | } | 
|  | 18410 | _ACEOF | 
|  | 18411 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18412 | if { (ac_try="$ac_link" | 
|  | 18413 | case "(($ac_try" in | 
|  | 18414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18415 | *) ac_try_echo=$ac_try;; | 
|  | 18416 | esac | 
|  | 18417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18418 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18419 | ac_status=$? | 
|  | 18420 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18421 | rm -f conftest.er1 | 
|  | 18422 | cat conftest.err >&5 | 
|  | 18423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18424 | (exit $ac_status); } && | 
|  | 18425 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18426 | { (case "(($ac_try" in | 
|  | 18427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18428 | *) ac_try_echo=$ac_try;; | 
|  | 18429 | esac | 
|  | 18430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18431 | (eval "$ac_try") 2>&5 | 
|  | 18432 | ac_status=$? | 
|  | 18433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18434 | (exit $ac_status); }; } && | 
|  | 18435 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18436 | { (case "(($ac_try" in | 
|  | 18437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18438 | *) ac_try_echo=$ac_try;; | 
|  | 18439 | esac | 
|  | 18440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18441 | (eval "$ac_try") 2>&5 | 
|  | 18442 | ac_status=$? | 
|  | 18443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18444 | (exit $ac_status); }; }; then | 
|  | 18445 | ac_cv_lib_gcc____chkstk=yes | 
|  | 18446 | else | 
|  | 18447 | echo "$as_me: failed program was:" >&5 | 
|  | 18448 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18449 |  | 
|  | 18450 | ac_cv_lib_gcc____chkstk=no | 
|  | 18451 | fi | 
|  | 18452 |  | 
|  | 18453 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18454 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18455 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18456 | fi | 
|  | 18457 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 | 
|  | 18458 | echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } | 
|  | 18459 | if test $ac_cv_lib_gcc____chkstk = yes; then | 
|  | 18460 |  | 
|  | 18461 | cat >>confdefs.h <<\_ACEOF | 
|  | 18462 | #define HAVE____CHKSTK 1 | 
|  | 18463 | _ACEOF | 
|  | 18464 |  | 
|  | 18465 | fi | 
|  | 18466 |  | 
|  | 18467 |  | 
|  | 18468 | { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 | 
|  | 18469 | echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 18470 | if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then | 
|  | 18471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18472 | else | 
|  | 18473 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18474 | LIBS="-lgcc  $LIBS" | 
|  | 18475 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18476 | /* confdefs.h.  */ | 
|  | 18477 | _ACEOF | 
|  | 18478 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18479 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18480 | /* end confdefs.h.  */ | 
|  | 18481 |  | 
|  | 18482 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18483 | Use char because int might match the return type of a GCC | 
|  | 18484 | builtin and then its argument prototype would still apply.  */ | 
|  | 18485 | #ifdef __cplusplus | 
|  | 18486 | extern "C" | 
|  | 18487 | #endif | 
|  | 18488 | char __ashldi3 (); | 
|  | 18489 | int | 
|  | 18490 | main () | 
|  | 18491 | { | 
|  | 18492 | return __ashldi3 (); | 
|  | 18493 | ; | 
|  | 18494 | return 0; | 
|  | 18495 | } | 
|  | 18496 | _ACEOF | 
|  | 18497 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18498 | if { (ac_try="$ac_link" | 
|  | 18499 | case "(($ac_try" in | 
|  | 18500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18501 | *) ac_try_echo=$ac_try;; | 
|  | 18502 | esac | 
|  | 18503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18504 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18505 | ac_status=$? | 
|  | 18506 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18507 | rm -f conftest.er1 | 
|  | 18508 | cat conftest.err >&5 | 
|  | 18509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18510 | (exit $ac_status); } && | 
|  | 18511 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18512 | { (case "(($ac_try" in | 
|  | 18513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18514 | *) ac_try_echo=$ac_try;; | 
|  | 18515 | esac | 
|  | 18516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18517 | (eval "$ac_try") 2>&5 | 
|  | 18518 | ac_status=$? | 
|  | 18519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18520 | (exit $ac_status); }; } && | 
|  | 18521 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18522 | { (case "(($ac_try" in | 
|  | 18523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18524 | *) ac_try_echo=$ac_try;; | 
|  | 18525 | esac | 
|  | 18526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18527 | (eval "$ac_try") 2>&5 | 
|  | 18528 | ac_status=$? | 
|  | 18529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18530 | (exit $ac_status); }; }; then | 
|  | 18531 | ac_cv_lib_gcc___ashldi3=yes | 
|  | 18532 | else | 
|  | 18533 | echo "$as_me: failed program was:" >&5 | 
|  | 18534 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18535 |  | 
|  | 18536 | ac_cv_lib_gcc___ashldi3=no | 
|  | 18537 | fi | 
|  | 18538 |  | 
|  | 18539 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18540 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18541 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18542 | fi | 
|  | 18543 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 | 
|  | 18544 | echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } | 
|  | 18545 | if test $ac_cv_lib_gcc___ashldi3 = yes; then | 
|  | 18546 |  | 
|  | 18547 | cat >>confdefs.h <<\_ACEOF | 
|  | 18548 | #define HAVE___ASHLDI3 1 | 
|  | 18549 | _ACEOF | 
|  | 18550 |  | 
|  | 18551 | fi | 
|  | 18552 |  | 
|  | 18553 | { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 | 
|  | 18554 | echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 18555 | if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then | 
|  | 18556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18557 | else | 
|  | 18558 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18559 | LIBS="-lgcc  $LIBS" | 
|  | 18560 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18561 | /* confdefs.h.  */ | 
|  | 18562 | _ACEOF | 
|  | 18563 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18564 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18565 | /* end confdefs.h.  */ | 
|  | 18566 |  | 
|  | 18567 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18568 | Use char because int might match the return type of a GCC | 
|  | 18569 | builtin and then its argument prototype would still apply.  */ | 
|  | 18570 | #ifdef __cplusplus | 
|  | 18571 | extern "C" | 
|  | 18572 | #endif | 
|  | 18573 | char __ashrdi3 (); | 
|  | 18574 | int | 
|  | 18575 | main () | 
|  | 18576 | { | 
|  | 18577 | return __ashrdi3 (); | 
|  | 18578 | ; | 
|  | 18579 | return 0; | 
|  | 18580 | } | 
|  | 18581 | _ACEOF | 
|  | 18582 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18583 | if { (ac_try="$ac_link" | 
|  | 18584 | case "(($ac_try" in | 
|  | 18585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18586 | *) ac_try_echo=$ac_try;; | 
|  | 18587 | esac | 
|  | 18588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18589 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18590 | ac_status=$? | 
|  | 18591 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18592 | rm -f conftest.er1 | 
|  | 18593 | cat conftest.err >&5 | 
|  | 18594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18595 | (exit $ac_status); } && | 
|  | 18596 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18597 | { (case "(($ac_try" in | 
|  | 18598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18599 | *) ac_try_echo=$ac_try;; | 
|  | 18600 | esac | 
|  | 18601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18602 | (eval "$ac_try") 2>&5 | 
|  | 18603 | ac_status=$? | 
|  | 18604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18605 | (exit $ac_status); }; } && | 
|  | 18606 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18607 | { (case "(($ac_try" in | 
|  | 18608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18609 | *) ac_try_echo=$ac_try;; | 
|  | 18610 | esac | 
|  | 18611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18612 | (eval "$ac_try") 2>&5 | 
|  | 18613 | ac_status=$? | 
|  | 18614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18615 | (exit $ac_status); }; }; then | 
|  | 18616 | ac_cv_lib_gcc___ashrdi3=yes | 
|  | 18617 | else | 
|  | 18618 | echo "$as_me: failed program was:" >&5 | 
|  | 18619 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18620 |  | 
|  | 18621 | ac_cv_lib_gcc___ashrdi3=no | 
|  | 18622 | fi | 
|  | 18623 |  | 
|  | 18624 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18625 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18626 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18627 | fi | 
|  | 18628 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 | 
|  | 18629 | echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } | 
|  | 18630 | if test $ac_cv_lib_gcc___ashrdi3 = yes; then | 
|  | 18631 |  | 
|  | 18632 | cat >>confdefs.h <<\_ACEOF | 
|  | 18633 | #define HAVE___ASHRDI3 1 | 
|  | 18634 | _ACEOF | 
|  | 18635 |  | 
|  | 18636 | fi | 
|  | 18637 |  | 
|  | 18638 | { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 | 
|  | 18639 | echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 18640 | if test "${ac_cv_lib_gcc___divdi3+set}" = set; then | 
|  | 18641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18642 | else | 
|  | 18643 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18644 | LIBS="-lgcc  $LIBS" | 
|  | 18645 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18646 | /* confdefs.h.  */ | 
|  | 18647 | _ACEOF | 
|  | 18648 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18649 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18650 | /* end confdefs.h.  */ | 
|  | 18651 |  | 
|  | 18652 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18653 | Use char because int might match the return type of a GCC | 
|  | 18654 | builtin and then its argument prototype would still apply.  */ | 
|  | 18655 | #ifdef __cplusplus | 
|  | 18656 | extern "C" | 
|  | 18657 | #endif | 
|  | 18658 | char __divdi3 (); | 
|  | 18659 | int | 
|  | 18660 | main () | 
|  | 18661 | { | 
|  | 18662 | return __divdi3 (); | 
|  | 18663 | ; | 
|  | 18664 | return 0; | 
|  | 18665 | } | 
|  | 18666 | _ACEOF | 
|  | 18667 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18668 | if { (ac_try="$ac_link" | 
|  | 18669 | case "(($ac_try" in | 
|  | 18670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18671 | *) ac_try_echo=$ac_try;; | 
|  | 18672 | esac | 
|  | 18673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18674 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18675 | ac_status=$? | 
|  | 18676 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18677 | rm -f conftest.er1 | 
|  | 18678 | cat conftest.err >&5 | 
|  | 18679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18680 | (exit $ac_status); } && | 
|  | 18681 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18682 | { (case "(($ac_try" in | 
|  | 18683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18684 | *) ac_try_echo=$ac_try;; | 
|  | 18685 | esac | 
|  | 18686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18687 | (eval "$ac_try") 2>&5 | 
|  | 18688 | ac_status=$? | 
|  | 18689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18690 | (exit $ac_status); }; } && | 
|  | 18691 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18692 | { (case "(($ac_try" in | 
|  | 18693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18694 | *) ac_try_echo=$ac_try;; | 
|  | 18695 | esac | 
|  | 18696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18697 | (eval "$ac_try") 2>&5 | 
|  | 18698 | ac_status=$? | 
|  | 18699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18700 | (exit $ac_status); }; }; then | 
|  | 18701 | ac_cv_lib_gcc___divdi3=yes | 
|  | 18702 | else | 
|  | 18703 | echo "$as_me: failed program was:" >&5 | 
|  | 18704 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18705 |  | 
|  | 18706 | ac_cv_lib_gcc___divdi3=no | 
|  | 18707 | fi | 
|  | 18708 |  | 
|  | 18709 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18710 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18711 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18712 | fi | 
|  | 18713 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 | 
|  | 18714 | echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } | 
|  | 18715 | if test $ac_cv_lib_gcc___divdi3 = yes; then | 
|  | 18716 |  | 
|  | 18717 | cat >>confdefs.h <<\_ACEOF | 
|  | 18718 | #define HAVE___DIVDI3 1 | 
|  | 18719 | _ACEOF | 
|  | 18720 |  | 
|  | 18721 | fi | 
|  | 18722 |  | 
|  | 18723 | { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 | 
|  | 18724 | echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } | 
|  | 18725 | if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then | 
|  | 18726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18727 | else | 
|  | 18728 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18729 | LIBS="-lgcc  $LIBS" | 
|  | 18730 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18731 | /* confdefs.h.  */ | 
|  | 18732 | _ACEOF | 
|  | 18733 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18734 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18735 | /* end confdefs.h.  */ | 
|  | 18736 |  | 
|  | 18737 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18738 | Use char because int might match the return type of a GCC | 
|  | 18739 | builtin and then its argument prototype would still apply.  */ | 
|  | 18740 | #ifdef __cplusplus | 
|  | 18741 | extern "C" | 
|  | 18742 | #endif | 
|  | 18743 | char __fixdfdi (); | 
|  | 18744 | int | 
|  | 18745 | main () | 
|  | 18746 | { | 
|  | 18747 | return __fixdfdi (); | 
|  | 18748 | ; | 
|  | 18749 | return 0; | 
|  | 18750 | } | 
|  | 18751 | _ACEOF | 
|  | 18752 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18753 | if { (ac_try="$ac_link" | 
|  | 18754 | case "(($ac_try" in | 
|  | 18755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18756 | *) ac_try_echo=$ac_try;; | 
|  | 18757 | esac | 
|  | 18758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18759 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18760 | ac_status=$? | 
|  | 18761 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18762 | rm -f conftest.er1 | 
|  | 18763 | cat conftest.err >&5 | 
|  | 18764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18765 | (exit $ac_status); } && | 
|  | 18766 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18767 | { (case "(($ac_try" in | 
|  | 18768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18769 | *) ac_try_echo=$ac_try;; | 
|  | 18770 | esac | 
|  | 18771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18772 | (eval "$ac_try") 2>&5 | 
|  | 18773 | ac_status=$? | 
|  | 18774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18775 | (exit $ac_status); }; } && | 
|  | 18776 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18777 | { (case "(($ac_try" in | 
|  | 18778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18779 | *) ac_try_echo=$ac_try;; | 
|  | 18780 | esac | 
|  | 18781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18782 | (eval "$ac_try") 2>&5 | 
|  | 18783 | ac_status=$? | 
|  | 18784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18785 | (exit $ac_status); }; }; then | 
|  | 18786 | ac_cv_lib_gcc___fixdfdi=yes | 
|  | 18787 | else | 
|  | 18788 | echo "$as_me: failed program was:" >&5 | 
|  | 18789 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18790 |  | 
|  | 18791 | ac_cv_lib_gcc___fixdfdi=no | 
|  | 18792 | fi | 
|  | 18793 |  | 
|  | 18794 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18795 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18796 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18797 | fi | 
|  | 18798 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 | 
|  | 18799 | echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } | 
|  | 18800 | if test $ac_cv_lib_gcc___fixdfdi = yes; then | 
|  | 18801 |  | 
|  | 18802 | cat >>confdefs.h <<\_ACEOF | 
|  | 18803 | #define HAVE___FIXDFDI 1 | 
|  | 18804 | _ACEOF | 
|  | 18805 |  | 
|  | 18806 | fi | 
|  | 18807 |  | 
|  | 18808 | { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 | 
|  | 18809 | echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } | 
|  | 18810 | if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then | 
|  | 18811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18812 | else | 
|  | 18813 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18814 | LIBS="-lgcc  $LIBS" | 
|  | 18815 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18816 | /* confdefs.h.  */ | 
|  | 18817 | _ACEOF | 
|  | 18818 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18819 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18820 | /* end confdefs.h.  */ | 
|  | 18821 |  | 
|  | 18822 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18823 | Use char because int might match the return type of a GCC | 
|  | 18824 | builtin and then its argument prototype would still apply.  */ | 
|  | 18825 | #ifdef __cplusplus | 
|  | 18826 | extern "C" | 
|  | 18827 | #endif | 
|  | 18828 | char __fixsfdi (); | 
|  | 18829 | int | 
|  | 18830 | main () | 
|  | 18831 | { | 
|  | 18832 | return __fixsfdi (); | 
|  | 18833 | ; | 
|  | 18834 | return 0; | 
|  | 18835 | } | 
|  | 18836 | _ACEOF | 
|  | 18837 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18838 | if { (ac_try="$ac_link" | 
|  | 18839 | case "(($ac_try" in | 
|  | 18840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18841 | *) ac_try_echo=$ac_try;; | 
|  | 18842 | esac | 
|  | 18843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18844 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18845 | ac_status=$? | 
|  | 18846 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18847 | rm -f conftest.er1 | 
|  | 18848 | cat conftest.err >&5 | 
|  | 18849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18850 | (exit $ac_status); } && | 
|  | 18851 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18852 | { (case "(($ac_try" in | 
|  | 18853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18854 | *) ac_try_echo=$ac_try;; | 
|  | 18855 | esac | 
|  | 18856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18857 | (eval "$ac_try") 2>&5 | 
|  | 18858 | ac_status=$? | 
|  | 18859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18860 | (exit $ac_status); }; } && | 
|  | 18861 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18862 | { (case "(($ac_try" in | 
|  | 18863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18864 | *) ac_try_echo=$ac_try;; | 
|  | 18865 | esac | 
|  | 18866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18867 | (eval "$ac_try") 2>&5 | 
|  | 18868 | ac_status=$? | 
|  | 18869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18870 | (exit $ac_status); }; }; then | 
|  | 18871 | ac_cv_lib_gcc___fixsfdi=yes | 
|  | 18872 | else | 
|  | 18873 | echo "$as_me: failed program was:" >&5 | 
|  | 18874 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18875 |  | 
|  | 18876 | ac_cv_lib_gcc___fixsfdi=no | 
|  | 18877 | fi | 
|  | 18878 |  | 
|  | 18879 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18880 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18881 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18882 | fi | 
|  | 18883 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 | 
|  | 18884 | echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } | 
|  | 18885 | if test $ac_cv_lib_gcc___fixsfdi = yes; then | 
|  | 18886 |  | 
|  | 18887 | cat >>confdefs.h <<\_ACEOF | 
|  | 18888 | #define HAVE___FIXSFDI 1 | 
|  | 18889 | _ACEOF | 
|  | 18890 |  | 
|  | 18891 | fi | 
|  | 18892 |  | 
|  | 18893 | { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 | 
|  | 18894 | echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } | 
|  | 18895 | if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then | 
|  | 18896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18897 | else | 
|  | 18898 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18899 | LIBS="-lgcc  $LIBS" | 
|  | 18900 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18901 | /* confdefs.h.  */ | 
|  | 18902 | _ACEOF | 
|  | 18903 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18904 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18905 | /* end confdefs.h.  */ | 
|  | 18906 |  | 
|  | 18907 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18908 | Use char because int might match the return type of a GCC | 
|  | 18909 | builtin and then its argument prototype would still apply.  */ | 
|  | 18910 | #ifdef __cplusplus | 
|  | 18911 | extern "C" | 
|  | 18912 | #endif | 
|  | 18913 | char __floatdidf (); | 
|  | 18914 | int | 
|  | 18915 | main () | 
|  | 18916 | { | 
|  | 18917 | return __floatdidf (); | 
|  | 18918 | ; | 
|  | 18919 | return 0; | 
|  | 18920 | } | 
|  | 18921 | _ACEOF | 
|  | 18922 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18923 | if { (ac_try="$ac_link" | 
|  | 18924 | case "(($ac_try" in | 
|  | 18925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18926 | *) ac_try_echo=$ac_try;; | 
|  | 18927 | esac | 
|  | 18928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18929 | (eval "$ac_link") 2>conftest.er1 | 
|  | 18930 | ac_status=$? | 
|  | 18931 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18932 | rm -f conftest.er1 | 
|  | 18933 | cat conftest.err >&5 | 
|  | 18934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18935 | (exit $ac_status); } && | 
|  | 18936 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 18937 | { (case "(($ac_try" in | 
|  | 18938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18939 | *) ac_try_echo=$ac_try;; | 
|  | 18940 | esac | 
|  | 18941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18942 | (eval "$ac_try") 2>&5 | 
|  | 18943 | ac_status=$? | 
|  | 18944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18945 | (exit $ac_status); }; } && | 
|  | 18946 | { ac_try='test -s conftest$ac_exeext' | 
|  | 18947 | { (case "(($ac_try" in | 
|  | 18948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 18949 | *) ac_try_echo=$ac_try;; | 
|  | 18950 | esac | 
|  | 18951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 18952 | (eval "$ac_try") 2>&5 | 
|  | 18953 | ac_status=$? | 
|  | 18954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18955 | (exit $ac_status); }; }; then | 
|  | 18956 | ac_cv_lib_gcc___floatdidf=yes | 
|  | 18957 | else | 
|  | 18958 | echo "$as_me: failed program was:" >&5 | 
|  | 18959 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18960 |  | 
|  | 18961 | ac_cv_lib_gcc___floatdidf=no | 
|  | 18962 | fi | 
|  | 18963 |  | 
|  | 18964 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18965 | conftest$ac_exeext conftest.$ac_ext | 
|  | 18966 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18967 | fi | 
|  | 18968 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 | 
|  | 18969 | echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } | 
|  | 18970 | if test $ac_cv_lib_gcc___floatdidf = yes; then | 
|  | 18971 |  | 
|  | 18972 | cat >>confdefs.h <<\_ACEOF | 
|  | 18973 | #define HAVE___FLOATDIDF 1 | 
|  | 18974 | _ACEOF | 
|  | 18975 |  | 
|  | 18976 | fi | 
|  | 18977 |  | 
|  | 18978 | { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 | 
|  | 18979 | echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 18980 | if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then | 
|  | 18981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18982 | else | 
|  | 18983 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18984 | LIBS="-lgcc  $LIBS" | 
|  | 18985 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 18986 | /* confdefs.h.  */ | 
|  | 18987 | _ACEOF | 
|  | 18988 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18989 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18990 | /* end confdefs.h.  */ | 
|  | 18991 |  | 
|  | 18992 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18993 | Use char because int might match the return type of a GCC | 
|  | 18994 | builtin and then its argument prototype would still apply.  */ | 
|  | 18995 | #ifdef __cplusplus | 
|  | 18996 | extern "C" | 
|  | 18997 | #endif | 
|  | 18998 | char __lshrdi3 (); | 
|  | 18999 | int | 
|  | 19000 | main () | 
|  | 19001 | { | 
|  | 19002 | return __lshrdi3 (); | 
|  | 19003 | ; | 
|  | 19004 | return 0; | 
|  | 19005 | } | 
|  | 19006 | _ACEOF | 
|  | 19007 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 19008 | if { (ac_try="$ac_link" | 
|  | 19009 | case "(($ac_try" in | 
|  | 19010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19011 | *) ac_try_echo=$ac_try;; | 
|  | 19012 | esac | 
|  | 19013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19014 | (eval "$ac_link") 2>conftest.er1 | 
|  | 19015 | ac_status=$? | 
|  | 19016 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19017 | rm -f conftest.er1 | 
|  | 19018 | cat conftest.err >&5 | 
|  | 19019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19020 | (exit $ac_status); } && | 
|  | 19021 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 19022 | { (case "(($ac_try" in | 
|  | 19023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19024 | *) ac_try_echo=$ac_try;; | 
|  | 19025 | esac | 
|  | 19026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19027 | (eval "$ac_try") 2>&5 | 
|  | 19028 | ac_status=$? | 
|  | 19029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19030 | (exit $ac_status); }; } && | 
|  | 19031 | { ac_try='test -s conftest$ac_exeext' | 
|  | 19032 | { (case "(($ac_try" in | 
|  | 19033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19034 | *) ac_try_echo=$ac_try;; | 
|  | 19035 | esac | 
|  | 19036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19037 | (eval "$ac_try") 2>&5 | 
|  | 19038 | ac_status=$? | 
|  | 19039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19040 | (exit $ac_status); }; }; then | 
|  | 19041 | ac_cv_lib_gcc___lshrdi3=yes | 
|  | 19042 | else | 
|  | 19043 | echo "$as_me: failed program was:" >&5 | 
|  | 19044 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19045 |  | 
|  | 19046 | ac_cv_lib_gcc___lshrdi3=no | 
|  | 19047 | fi | 
|  | 19048 |  | 
|  | 19049 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19050 | conftest$ac_exeext conftest.$ac_ext | 
|  | 19051 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19052 | fi | 
|  | 19053 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 | 
|  | 19054 | echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } | 
|  | 19055 | if test $ac_cv_lib_gcc___lshrdi3 = yes; then | 
|  | 19056 |  | 
|  | 19057 | cat >>confdefs.h <<\_ACEOF | 
|  | 19058 | #define HAVE___LSHRDI3 1 | 
|  | 19059 | _ACEOF | 
|  | 19060 |  | 
|  | 19061 | fi | 
|  | 19062 |  | 
|  | 19063 | { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 | 
|  | 19064 | echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 19065 | if test "${ac_cv_lib_gcc___moddi3+set}" = set; then | 
|  | 19066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19067 | else | 
|  | 19068 | ac_check_lib_save_LIBS=$LIBS | 
|  | 19069 | LIBS="-lgcc  $LIBS" | 
|  | 19070 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19071 | /* confdefs.h.  */ | 
|  | 19072 | _ACEOF | 
|  | 19073 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19074 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19075 | /* end confdefs.h.  */ | 
|  | 19076 |  | 
|  | 19077 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19078 | Use char because int might match the return type of a GCC | 
|  | 19079 | builtin and then its argument prototype would still apply.  */ | 
|  | 19080 | #ifdef __cplusplus | 
|  | 19081 | extern "C" | 
|  | 19082 | #endif | 
|  | 19083 | char __moddi3 (); | 
|  | 19084 | int | 
|  | 19085 | main () | 
|  | 19086 | { | 
|  | 19087 | return __moddi3 (); | 
|  | 19088 | ; | 
|  | 19089 | return 0; | 
|  | 19090 | } | 
|  | 19091 | _ACEOF | 
|  | 19092 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 19093 | if { (ac_try="$ac_link" | 
|  | 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_link") 2>conftest.er1 | 
|  | 19100 | ac_status=$? | 
|  | 19101 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19102 | rm -f conftest.er1 | 
|  | 19103 | cat conftest.err >&5 | 
|  | 19104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19105 | (exit $ac_status); } && | 
|  | 19106 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 19107 | { (case "(($ac_try" in | 
|  | 19108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19109 | *) ac_try_echo=$ac_try;; | 
|  | 19110 | esac | 
|  | 19111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19112 | (eval "$ac_try") 2>&5 | 
|  | 19113 | ac_status=$? | 
|  | 19114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19115 | (exit $ac_status); }; } && | 
|  | 19116 | { ac_try='test -s conftest$ac_exeext' | 
|  | 19117 | { (case "(($ac_try" in | 
|  | 19118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19119 | *) ac_try_echo=$ac_try;; | 
|  | 19120 | esac | 
|  | 19121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19122 | (eval "$ac_try") 2>&5 | 
|  | 19123 | ac_status=$? | 
|  | 19124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19125 | (exit $ac_status); }; }; then | 
|  | 19126 | ac_cv_lib_gcc___moddi3=yes | 
|  | 19127 | else | 
|  | 19128 | echo "$as_me: failed program was:" >&5 | 
|  | 19129 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19130 |  | 
|  | 19131 | ac_cv_lib_gcc___moddi3=no | 
|  | 19132 | fi | 
|  | 19133 |  | 
|  | 19134 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19135 | conftest$ac_exeext conftest.$ac_ext | 
|  | 19136 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19137 | fi | 
|  | 19138 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 | 
|  | 19139 | echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } | 
|  | 19140 | if test $ac_cv_lib_gcc___moddi3 = yes; then | 
|  | 19141 |  | 
|  | 19142 | cat >>confdefs.h <<\_ACEOF | 
|  | 19143 | #define HAVE___MODDI3 1 | 
|  | 19144 | _ACEOF | 
|  | 19145 |  | 
|  | 19146 | fi | 
|  | 19147 |  | 
|  | 19148 | { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 | 
|  | 19149 | echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 19150 | if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then | 
|  | 19151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19152 | else | 
|  | 19153 | ac_check_lib_save_LIBS=$LIBS | 
|  | 19154 | LIBS="-lgcc  $LIBS" | 
|  | 19155 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19156 | /* confdefs.h.  */ | 
|  | 19157 | _ACEOF | 
|  | 19158 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19159 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19160 | /* end confdefs.h.  */ | 
|  | 19161 |  | 
|  | 19162 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19163 | Use char because int might match the return type of a GCC | 
|  | 19164 | builtin and then its argument prototype would still apply.  */ | 
|  | 19165 | #ifdef __cplusplus | 
|  | 19166 | extern "C" | 
|  | 19167 | #endif | 
|  | 19168 | char __udivdi3 (); | 
|  | 19169 | int | 
|  | 19170 | main () | 
|  | 19171 | { | 
|  | 19172 | return __udivdi3 (); | 
|  | 19173 | ; | 
|  | 19174 | return 0; | 
|  | 19175 | } | 
|  | 19176 | _ACEOF | 
|  | 19177 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 19178 | if { (ac_try="$ac_link" | 
|  | 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_link") 2>conftest.er1 | 
|  | 19185 | ac_status=$? | 
|  | 19186 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19187 | rm -f conftest.er1 | 
|  | 19188 | cat conftest.err >&5 | 
|  | 19189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19190 | (exit $ac_status); } && | 
|  | 19191 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 19192 | { (case "(($ac_try" in | 
|  | 19193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19194 | *) ac_try_echo=$ac_try;; | 
|  | 19195 | esac | 
|  | 19196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19197 | (eval "$ac_try") 2>&5 | 
|  | 19198 | ac_status=$? | 
|  | 19199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19200 | (exit $ac_status); }; } && | 
|  | 19201 | { ac_try='test -s conftest$ac_exeext' | 
|  | 19202 | { (case "(($ac_try" in | 
|  | 19203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19204 | *) ac_try_echo=$ac_try;; | 
|  | 19205 | esac | 
|  | 19206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19207 | (eval "$ac_try") 2>&5 | 
|  | 19208 | ac_status=$? | 
|  | 19209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19210 | (exit $ac_status); }; }; then | 
|  | 19211 | ac_cv_lib_gcc___udivdi3=yes | 
|  | 19212 | else | 
|  | 19213 | echo "$as_me: failed program was:" >&5 | 
|  | 19214 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19215 |  | 
|  | 19216 | ac_cv_lib_gcc___udivdi3=no | 
|  | 19217 | fi | 
|  | 19218 |  | 
|  | 19219 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19220 | conftest$ac_exeext conftest.$ac_ext | 
|  | 19221 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19222 | fi | 
|  | 19223 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 | 
|  | 19224 | echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } | 
|  | 19225 | if test $ac_cv_lib_gcc___udivdi3 = yes; then | 
|  | 19226 |  | 
|  | 19227 | cat >>confdefs.h <<\_ACEOF | 
|  | 19228 | #define HAVE___UDIVDI3 1 | 
|  | 19229 | _ACEOF | 
|  | 19230 |  | 
|  | 19231 | fi | 
|  | 19232 |  | 
|  | 19233 | { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 | 
|  | 19234 | echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } | 
|  | 19235 | if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then | 
|  | 19236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19237 | else | 
|  | 19238 | ac_check_lib_save_LIBS=$LIBS | 
|  | 19239 | LIBS="-lgcc  $LIBS" | 
|  | 19240 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19241 | /* confdefs.h.  */ | 
|  | 19242 | _ACEOF | 
|  | 19243 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19244 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19245 | /* end confdefs.h.  */ | 
|  | 19246 |  | 
|  | 19247 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19248 | Use char because int might match the return type of a GCC | 
|  | 19249 | builtin and then its argument prototype would still apply.  */ | 
|  | 19250 | #ifdef __cplusplus | 
|  | 19251 | extern "C" | 
|  | 19252 | #endif | 
|  | 19253 | char __umoddi3 (); | 
|  | 19254 | int | 
|  | 19255 | main () | 
|  | 19256 | { | 
|  | 19257 | return __umoddi3 (); | 
|  | 19258 | ; | 
|  | 19259 | return 0; | 
|  | 19260 | } | 
|  | 19261 | _ACEOF | 
|  | 19262 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 19263 | if { (ac_try="$ac_link" | 
|  | 19264 | case "(($ac_try" in | 
|  | 19265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19266 | *) ac_try_echo=$ac_try;; | 
|  | 19267 | esac | 
|  | 19268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19269 | (eval "$ac_link") 2>conftest.er1 | 
|  | 19270 | ac_status=$? | 
|  | 19271 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19272 | rm -f conftest.er1 | 
|  | 19273 | cat conftest.err >&5 | 
|  | 19274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19275 | (exit $ac_status); } && | 
|  | 19276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 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); }; } && | 
|  | 19286 | { ac_try='test -s conftest$ac_exeext' | 
|  | 19287 | { (case "(($ac_try" in | 
|  | 19288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19289 | *) ac_try_echo=$ac_try;; | 
|  | 19290 | esac | 
|  | 19291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19292 | (eval "$ac_try") 2>&5 | 
|  | 19293 | ac_status=$? | 
|  | 19294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19295 | (exit $ac_status); }; }; then | 
|  | 19296 | ac_cv_lib_gcc___umoddi3=yes | 
|  | 19297 | else | 
|  | 19298 | echo "$as_me: failed program was:" >&5 | 
|  | 19299 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19300 |  | 
|  | 19301 | ac_cv_lib_gcc___umoddi3=no | 
|  | 19302 | fi | 
|  | 19303 |  | 
|  | 19304 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19305 | conftest$ac_exeext conftest.$ac_ext | 
|  | 19306 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19307 | fi | 
|  | 19308 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 | 
|  | 19309 | echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } | 
|  | 19310 | if test $ac_cv_lib_gcc___umoddi3 = yes; then | 
|  | 19311 |  | 
|  | 19312 | cat >>confdefs.h <<\_ACEOF | 
|  | 19313 | #define HAVE___UMODDI3 1 | 
|  | 19314 | _ACEOF | 
|  | 19315 |  | 
|  | 19316 | fi | 
|  | 19317 |  | 
|  | 19318 |  | 
|  | 19319 | { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 | 
|  | 19320 | echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } | 
|  | 19321 | if test "${ac_cv_lib_gcc___main+set}" = set; then | 
|  | 19322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19323 | else | 
|  | 19324 | ac_check_lib_save_LIBS=$LIBS | 
|  | 19325 | LIBS="-lgcc  $LIBS" | 
|  | 19326 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19327 | /* confdefs.h.  */ | 
|  | 19328 | _ACEOF | 
|  | 19329 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19330 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19331 | /* end confdefs.h.  */ | 
|  | 19332 |  | 
|  | 19333 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19334 | Use char because int might match the return type of a GCC | 
|  | 19335 | builtin and then its argument prototype would still apply.  */ | 
|  | 19336 | #ifdef __cplusplus | 
|  | 19337 | extern "C" | 
|  | 19338 | #endif | 
|  | 19339 | char __main (); | 
|  | 19340 | int | 
|  | 19341 | main () | 
|  | 19342 | { | 
|  | 19343 | return __main (); | 
|  | 19344 | ; | 
|  | 19345 | return 0; | 
|  | 19346 | } | 
|  | 19347 | _ACEOF | 
|  | 19348 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 19349 | if { (ac_try="$ac_link" | 
|  | 19350 | case "(($ac_try" in | 
|  | 19351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19352 | *) ac_try_echo=$ac_try;; | 
|  | 19353 | esac | 
|  | 19354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19355 | (eval "$ac_link") 2>conftest.er1 | 
|  | 19356 | ac_status=$? | 
|  | 19357 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19358 | rm -f conftest.er1 | 
|  | 19359 | cat conftest.err >&5 | 
|  | 19360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19361 | (exit $ac_status); } && | 
|  | 19362 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 19363 | { (case "(($ac_try" in | 
|  | 19364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19365 | *) ac_try_echo=$ac_try;; | 
|  | 19366 | esac | 
|  | 19367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19368 | (eval "$ac_try") 2>&5 | 
|  | 19369 | ac_status=$? | 
|  | 19370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19371 | (exit $ac_status); }; } && | 
|  | 19372 | { ac_try='test -s conftest$ac_exeext' | 
|  | 19373 | { (case "(($ac_try" in | 
|  | 19374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19375 | *) ac_try_echo=$ac_try;; | 
|  | 19376 | esac | 
|  | 19377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19378 | (eval "$ac_try") 2>&5 | 
|  | 19379 | ac_status=$? | 
|  | 19380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19381 | (exit $ac_status); }; }; then | 
|  | 19382 | ac_cv_lib_gcc___main=yes | 
|  | 19383 | else | 
|  | 19384 | echo "$as_me: failed program was:" >&5 | 
|  | 19385 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19386 |  | 
|  | 19387 | ac_cv_lib_gcc___main=no | 
|  | 19388 | fi | 
|  | 19389 |  | 
|  | 19390 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19391 | conftest$ac_exeext conftest.$ac_ext | 
|  | 19392 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19393 | fi | 
|  | 19394 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 | 
|  | 19395 | echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } | 
|  | 19396 | if test $ac_cv_lib_gcc___main = yes; then | 
|  | 19397 |  | 
|  | 19398 | cat >>confdefs.h <<\_ACEOF | 
|  | 19399 | #define HAVE___MAIN 1 | 
|  | 19400 | _ACEOF | 
|  | 19401 |  | 
|  | 19402 | fi | 
|  | 19403 |  | 
|  | 19404 | { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 | 
|  | 19405 | echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } | 
|  | 19406 | if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then | 
|  | 19407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19408 | else | 
|  | 19409 | ac_check_lib_save_LIBS=$LIBS | 
|  | 19410 | LIBS="-lgcc  $LIBS" | 
|  | 19411 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19412 | /* confdefs.h.  */ | 
|  | 19413 | _ACEOF | 
|  | 19414 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19415 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 19416 | /* end confdefs.h.  */ | 
|  | 19417 |  | 
|  | 19418 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19419 | Use char because int might match the return type of a GCC | 
|  | 19420 | builtin and then its argument prototype would still apply.  */ | 
|  | 19421 | #ifdef __cplusplus | 
|  | 19422 | extern "C" | 
|  | 19423 | #endif | 
|  | 19424 | char __cmpdi2 (); | 
|  | 19425 | int | 
|  | 19426 | main () | 
|  | 19427 | { | 
|  | 19428 | return __cmpdi2 (); | 
|  | 19429 | ; | 
|  | 19430 | return 0; | 
|  | 19431 | } | 
|  | 19432 | _ACEOF | 
|  | 19433 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 19434 | if { (ac_try="$ac_link" | 
|  | 19435 | case "(($ac_try" in | 
|  | 19436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19437 | *) ac_try_echo=$ac_try;; | 
|  | 19438 | esac | 
|  | 19439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19440 | (eval "$ac_link") 2>conftest.er1 | 
|  | 19441 | ac_status=$? | 
|  | 19442 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19443 | rm -f conftest.er1 | 
|  | 19444 | cat conftest.err >&5 | 
|  | 19445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19446 | (exit $ac_status); } && | 
|  | 19447 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 19448 | { (case "(($ac_try" in | 
|  | 19449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19450 | *) ac_try_echo=$ac_try;; | 
|  | 19451 | esac | 
|  | 19452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19453 | (eval "$ac_try") 2>&5 | 
|  | 19454 | ac_status=$? | 
|  | 19455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19456 | (exit $ac_status); }; } && | 
|  | 19457 | { ac_try='test -s conftest$ac_exeext' | 
|  | 19458 | { (case "(($ac_try" in | 
|  | 19459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19460 | *) ac_try_echo=$ac_try;; | 
|  | 19461 | esac | 
|  | 19462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19463 | (eval "$ac_try") 2>&5 | 
|  | 19464 | ac_status=$? | 
|  | 19465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19466 | (exit $ac_status); }; }; then | 
|  | 19467 | ac_cv_lib_gcc___cmpdi2=yes | 
|  | 19468 | else | 
|  | 19469 | echo "$as_me: failed program was:" >&5 | 
|  | 19470 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19471 |  | 
|  | 19472 | ac_cv_lib_gcc___cmpdi2=no | 
|  | 19473 | fi | 
|  | 19474 |  | 
|  | 19475 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19476 | conftest$ac_exeext conftest.$ac_ext | 
|  | 19477 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19478 | fi | 
|  | 19479 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 | 
|  | 19480 | echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } | 
|  | 19481 | if test $ac_cv_lib_gcc___cmpdi2 = yes; then | 
|  | 19482 |  | 
|  | 19483 | cat >>confdefs.h <<\_ACEOF | 
|  | 19484 | #define HAVE___CMPDI2 1 | 
|  | 19485 | _ACEOF | 
|  | 19486 |  | 
|  | 19487 | fi | 
|  | 19488 |  | 
|  | 19489 | fi | 
|  | 19490 |  | 
| NAKAMURA Takumi | 4471f82 | 2011-05-01 13:29:49 +0000 | [diff] [blame] | 19491 | if test "$llvm_cv_os_type" = "MingW" ; then | 
|  | 19492 | { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 | 
|  | 19493 | echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } | 
|  | 19494 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19495 | #include <windows.h> | 
|  | 19496 | #include <imagehlp.h> | 
|  | 19497 | extern void foo(PENUMLOADED_MODULES_CALLBACK); | 
|  | 19498 | extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); | 
|  | 19499 | _ACEOF | 
|  | 19500 | rm -f conftest.$ac_objext | 
|  | 19501 | if { (ac_try="$ac_compile" | 
|  | 19502 | case "(($ac_try" in | 
|  | 19503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19504 | *) ac_try_echo=$ac_try;; | 
|  | 19505 | esac | 
|  | 19506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19507 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19508 | ac_status=$? | 
|  | 19509 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19510 | rm -f conftest.er1 | 
|  | 19511 | cat conftest.err >&5 | 
|  | 19512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19513 | (exit $ac_status); } && | 
|  | 19514 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 19515 | { (case "(($ac_try" in | 
|  | 19516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19517 | *) ac_try_echo=$ac_try;; | 
|  | 19518 | esac | 
|  | 19519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19520 | (eval "$ac_try") 2>&5 | 
|  | 19521 | ac_status=$? | 
|  | 19522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19523 | (exit $ac_status); }; } && | 
|  | 19524 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19525 | { (case "(($ac_try" in | 
|  | 19526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19527 | *) ac_try_echo=$ac_try;; | 
|  | 19528 | esac | 
|  | 19529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19530 | (eval "$ac_try") 2>&5 | 
|  | 19531 | ac_status=$? | 
|  | 19532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19533 | (exit $ac_status); }; }; then | 
|  | 19534 |  | 
|  | 19535 | { echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 19536 | echo "${ECHO_T}yes" >&6; } | 
|  | 19537 | llvm_cv_win32_elmcb_pcstr="PCSTR" | 
|  | 19538 |  | 
|  | 19539 | else | 
|  | 19540 | echo "$as_me: failed program was:" >&5 | 
|  | 19541 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19542 |  | 
|  | 19543 |  | 
|  | 19544 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 19545 | echo "${ECHO_T}no" >&6; } | 
|  | 19546 | llvm_cv_win32_elmcb_pcstr="PSTR" | 
|  | 19547 |  | 
|  | 19548 | fi | 
|  | 19549 |  | 
|  | 19550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 19551 |  | 
|  | 19552 | cat >>confdefs.h <<_ACEOF | 
|  | 19553 | #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr | 
|  | 19554 | _ACEOF | 
|  | 19555 |  | 
|  | 19556 | fi | 
|  | 19557 |  | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19558 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19559 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 | 
|  | 19560 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } | 
|  | 19561 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then | 
|  | 19562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19563 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19564 | ac_ext=cpp | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19565 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19566 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19567 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19568 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19569 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19570 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19571 | /* confdefs.h.  */ | 
|  | 19572 | _ACEOF | 
|  | 19573 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19574 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19575 | /* end confdefs.h.  */ | 
|  | 19576 | #include <math.h> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19577 | int | 
|  | 19578 | main () | 
|  | 19579 | { | 
|  | 19580 | float f; isnan(f); | 
|  | 19581 | ; | 
|  | 19582 | return 0; | 
|  | 19583 | } | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19584 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19585 | rm -f conftest.$ac_objext | 
|  | 19586 | if { (ac_try="$ac_compile" | 
|  | 19587 | case "(($ac_try" in | 
|  | 19588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19589 | *) ac_try_echo=$ac_try;; | 
|  | 19590 | esac | 
|  | 19591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19592 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19593 | ac_status=$? | 
|  | 19594 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19595 | rm -f conftest.er1 | 
|  | 19596 | cat conftest.err >&5 | 
|  | 19597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19598 | (exit $ac_status); } && | 
|  | 19599 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 19600 | { (case "(($ac_try" in | 
|  | 19601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19602 | *) ac_try_echo=$ac_try;; | 
|  | 19603 | esac | 
|  | 19604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19605 | (eval "$ac_try") 2>&5 | 
|  | 19606 | ac_status=$? | 
|  | 19607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19608 | (exit $ac_status); }; } && | 
|  | 19609 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19610 | { (case "(($ac_try" in | 
|  | 19611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19612 | *) ac_try_echo=$ac_try;; | 
|  | 19613 | esac | 
|  | 19614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19615 | (eval "$ac_try") 2>&5 | 
|  | 19616 | ac_status=$? | 
|  | 19617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19618 | (exit $ac_status); }; }; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19619 | ac_cv_func_isnan_in_math_h=yes | 
|  | 19620 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19621 | echo "$as_me: failed program was:" >&5 | 
|  | 19622 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19623 |  | 
|  | 19624 | ac_cv_func_isnan_in_math_h=no | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19625 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19626 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19628 | ac_ext=c | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19629 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19630 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19631 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19632 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19633 |  | 
|  | 19634 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19635 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 | 
|  | 19636 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19637 |  | 
|  | 19638 |  | 
|  | 19639 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19640 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19641 | cat >>confdefs.h <<\_ACEOF | 
|  | 19642 | #define HAVE_ISNAN_IN_MATH_H 1 | 
|  | 19643 | _ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19644 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19645 | fi | 
|  | 19646 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19647 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 | 
|  | 19648 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } | 
|  | 19649 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then | 
|  | 19650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19651 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19652 | ac_ext=cpp | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19653 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19654 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19655 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19656 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19657 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19658 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19659 | /* confdefs.h.  */ | 
|  | 19660 | _ACEOF | 
|  | 19661 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19662 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19663 | /* end confdefs.h.  */ | 
|  | 19664 | #include <cmath> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19665 | int | 
|  | 19666 | main () | 
|  | 19667 | { | 
|  | 19668 | float f; isnan(f); | 
|  | 19669 | ; | 
|  | 19670 | return 0; | 
|  | 19671 | } | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19672 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19673 | rm -f conftest.$ac_objext | 
|  | 19674 | if { (ac_try="$ac_compile" | 
|  | 19675 | case "(($ac_try" in | 
|  | 19676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19677 | *) ac_try_echo=$ac_try;; | 
|  | 19678 | esac | 
|  | 19679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19680 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19681 | ac_status=$? | 
|  | 19682 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19683 | rm -f conftest.er1 | 
|  | 19684 | cat conftest.err >&5 | 
|  | 19685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19686 | (exit $ac_status); } && | 
|  | 19687 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 19688 | { (case "(($ac_try" in | 
|  | 19689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19690 | *) ac_try_echo=$ac_try;; | 
|  | 19691 | esac | 
|  | 19692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19693 | (eval "$ac_try") 2>&5 | 
|  | 19694 | ac_status=$? | 
|  | 19695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19696 | (exit $ac_status); }; } && | 
|  | 19697 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19698 | { (case "(($ac_try" in | 
|  | 19699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19700 | *) ac_try_echo=$ac_try;; | 
|  | 19701 | esac | 
|  | 19702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19703 | (eval "$ac_try") 2>&5 | 
|  | 19704 | ac_status=$? | 
|  | 19705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19706 | (exit $ac_status); }; }; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19707 | ac_cv_func_isnan_in_cmath=yes | 
|  | 19708 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19709 | echo "$as_me: failed program was:" >&5 | 
|  | 19710 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19711 |  | 
|  | 19712 | ac_cv_func_isnan_in_cmath=no | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19713 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19714 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19716 | ac_ext=c | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19717 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19718 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19719 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19720 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19721 |  | 
|  | 19722 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19723 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 | 
|  | 19724 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19725 |  | 
|  | 19726 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19727 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19728 | cat >>confdefs.h <<\_ACEOF | 
|  | 19729 | #define HAVE_ISNAN_IN_CMATH 1 | 
|  | 19730 | _ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19731 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19732 | fi | 
|  | 19733 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19734 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 | 
|  | 19735 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } | 
|  | 19736 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then | 
|  | 19737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19738 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19739 | ac_ext=cpp | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19740 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19741 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19742 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19743 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19744 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19745 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19746 | /* confdefs.h.  */ | 
|  | 19747 | _ACEOF | 
|  | 19748 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19749 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19750 | /* end confdefs.h.  */ | 
|  | 19751 | #include <cmath> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19752 | int | 
|  | 19753 | main () | 
|  | 19754 | { | 
|  | 19755 | float f; std::isnan(f); | 
|  | 19756 | ; | 
|  | 19757 | return 0; | 
|  | 19758 | } | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19759 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19760 | rm -f conftest.$ac_objext | 
|  | 19761 | if { (ac_try="$ac_compile" | 
|  | 19762 | case "(($ac_try" in | 
|  | 19763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19764 | *) ac_try_echo=$ac_try;; | 
|  | 19765 | esac | 
|  | 19766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19767 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19768 | ac_status=$? | 
|  | 19769 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19770 | rm -f conftest.er1 | 
|  | 19771 | cat conftest.err >&5 | 
|  | 19772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19773 | (exit $ac_status); } && | 
|  | 19774 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 19775 | { (case "(($ac_try" in | 
|  | 19776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19777 | *) ac_try_echo=$ac_try;; | 
|  | 19778 | esac | 
|  | 19779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19780 | (eval "$ac_try") 2>&5 | 
|  | 19781 | ac_status=$? | 
|  | 19782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19783 | (exit $ac_status); }; } && | 
|  | 19784 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19785 | { (case "(($ac_try" in | 
|  | 19786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19787 | *) ac_try_echo=$ac_try;; | 
|  | 19788 | esac | 
|  | 19789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19790 | (eval "$ac_try") 2>&5 | 
|  | 19791 | ac_status=$? | 
|  | 19792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19793 | (exit $ac_status); }; }; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19794 | ac_cv_func_std_isnan_in_cmath=yes | 
|  | 19795 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19796 | echo "$as_me: failed program was:" >&5 | 
|  | 19797 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19798 |  | 
|  | 19799 | ac_cv_func_std_isnan_in_cmath=no | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19800 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19801 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19803 | ac_ext=c | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19804 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19805 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19806 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19807 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19808 |  | 
|  | 19809 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19810 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 | 
|  | 19811 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19812 |  | 
|  | 19813 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19814 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19815 | cat >>confdefs.h <<\_ACEOF | 
|  | 19816 | #define HAVE_STD_ISNAN_IN_CMATH 1 | 
|  | 19817 | _ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19818 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19819 | fi | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19820 |  | 
|  | 19821 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19822 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 | 
|  | 19823 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } | 
|  | 19824 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then | 
|  | 19825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19826 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19827 | ac_ext=cpp | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19828 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19829 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19830 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19831 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19832 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19833 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19834 | /* confdefs.h.  */ | 
|  | 19835 | _ACEOF | 
|  | 19836 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19837 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19838 | /* end confdefs.h.  */ | 
|  | 19839 | #include <math.h> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19840 | int | 
|  | 19841 | main () | 
|  | 19842 | { | 
|  | 19843 | float f; isinf(f); | 
|  | 19844 | ; | 
|  | 19845 | return 0; | 
|  | 19846 | } | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19847 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19848 | rm -f conftest.$ac_objext | 
|  | 19849 | if { (ac_try="$ac_compile" | 
|  | 19850 | case "(($ac_try" in | 
|  | 19851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19852 | *) ac_try_echo=$ac_try;; | 
|  | 19853 | esac | 
|  | 19854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19855 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19856 | ac_status=$? | 
|  | 19857 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19858 | rm -f conftest.er1 | 
|  | 19859 | cat conftest.err >&5 | 
|  | 19860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19861 | (exit $ac_status); } && | 
|  | 19862 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 19863 | { (case "(($ac_try" in | 
|  | 19864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19865 | *) ac_try_echo=$ac_try;; | 
|  | 19866 | esac | 
|  | 19867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19868 | (eval "$ac_try") 2>&5 | 
|  | 19869 | ac_status=$? | 
|  | 19870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19871 | (exit $ac_status); }; } && | 
|  | 19872 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19873 | { (case "(($ac_try" in | 
|  | 19874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19875 | *) ac_try_echo=$ac_try;; | 
|  | 19876 | esac | 
|  | 19877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19878 | (eval "$ac_try") 2>&5 | 
|  | 19879 | ac_status=$? | 
|  | 19880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19881 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19882 | ac_cv_func_isinf_in_math_h=yes | 
|  | 19883 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19884 | echo "$as_me: failed program was:" >&5 | 
|  | 19885 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19886 |  | 
|  | 19887 | ac_cv_func_isinf_in_math_h=no | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19888 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19889 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19891 | ac_ext=c | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19892 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19893 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19894 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19895 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19896 |  | 
|  | 19897 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19898 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 | 
|  | 19899 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19900 |  | 
|  | 19901 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19902 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19903 | cat >>confdefs.h <<\_ACEOF | 
|  | 19904 | #define HAVE_ISINF_IN_MATH_H 1 | 
|  | 19905 | _ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19906 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19907 | fi | 
|  | 19908 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19909 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 | 
|  | 19910 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } | 
|  | 19911 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then | 
|  | 19912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19913 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19914 | ac_ext=cpp | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19915 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 19916 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19917 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19918 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 19919 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19920 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19921 | /* confdefs.h.  */ | 
|  | 19922 | _ACEOF | 
|  | 19923 | cat confdefs.h >>conftest.$ac_ext | 
|  | 19924 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19925 | /* end confdefs.h.  */ | 
|  | 19926 | #include <cmath> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19927 | int | 
|  | 19928 | main () | 
|  | 19929 | { | 
|  | 19930 | float f; isinf(f); | 
|  | 19931 | ; | 
|  | 19932 | return 0; | 
|  | 19933 | } | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19934 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19935 | rm -f conftest.$ac_objext | 
|  | 19936 | if { (ac_try="$ac_compile" | 
|  | 19937 | case "(($ac_try" in | 
|  | 19938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19939 | *) ac_try_echo=$ac_try;; | 
|  | 19940 | esac | 
|  | 19941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19942 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 19943 | ac_status=$? | 
|  | 19944 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19945 | rm -f conftest.er1 | 
|  | 19946 | cat conftest.err >&5 | 
|  | 19947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19948 | (exit $ac_status); } && | 
|  | 19949 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 19950 | { (case "(($ac_try" in | 
|  | 19951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19952 | *) ac_try_echo=$ac_try;; | 
|  | 19953 | esac | 
|  | 19954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19955 | (eval "$ac_try") 2>&5 | 
|  | 19956 | ac_status=$? | 
|  | 19957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19958 | (exit $ac_status); }; } && | 
|  | 19959 | { ac_try='test -s conftest.$ac_objext' | 
|  | 19960 | { (case "(($ac_try" in | 
|  | 19961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 19962 | *) ac_try_echo=$ac_try;; | 
|  | 19963 | esac | 
|  | 19964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 19965 | (eval "$ac_try") 2>&5 | 
|  | 19966 | ac_status=$? | 
|  | 19967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19968 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19969 | ac_cv_func_isinf_in_cmath=yes | 
|  | 19970 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19971 | echo "$as_me: failed program was:" >&5 | 
|  | 19972 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19973 |  | 
|  | 19974 | ac_cv_func_isinf_in_cmath=no | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19975 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19976 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19978 | ac_ext=c | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19979 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19980 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19981 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19982 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19983 |  | 
|  | 19984 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19985 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 | 
|  | 19986 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19987 |  | 
|  | 19988 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19989 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19990 | cat >>confdefs.h <<\_ACEOF | 
|  | 19991 | #define HAVE_ISINF_IN_CMATH 1 | 
|  | 19992 | _ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19993 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19994 | fi | 
|  | 19995 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19996 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 | 
|  | 19997 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } | 
|  | 19998 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then | 
|  | 19999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20000 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20001 | ac_ext=cpp | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20002 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 20003 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20004 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20005 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 20006 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20007 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20008 | /* confdefs.h.  */ | 
|  | 20009 | _ACEOF | 
|  | 20010 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20011 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20012 | /* end confdefs.h.  */ | 
|  | 20013 | #include <cmath> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20014 | int | 
|  | 20015 | main () | 
|  | 20016 | { | 
| Eric Christopher | eb75cc2 | 2012-03-26 02:09:01 +0000 | [diff] [blame] | 20017 | float f; std::isinf(f); | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20018 | ; | 
|  | 20019 | return 0; | 
|  | 20020 | } | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20021 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20022 | rm -f conftest.$ac_objext | 
|  | 20023 | if { (ac_try="$ac_compile" | 
|  | 20024 | case "(($ac_try" in | 
|  | 20025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20026 | *) ac_try_echo=$ac_try;; | 
|  | 20027 | esac | 
|  | 20028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20029 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 20030 | ac_status=$? | 
|  | 20031 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20032 | rm -f conftest.er1 | 
|  | 20033 | cat conftest.err >&5 | 
|  | 20034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20035 | (exit $ac_status); } && | 
|  | 20036 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 20037 | { (case "(($ac_try" in | 
|  | 20038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20039 | *) ac_try_echo=$ac_try;; | 
|  | 20040 | esac | 
|  | 20041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20042 | (eval "$ac_try") 2>&5 | 
|  | 20043 | ac_status=$? | 
|  | 20044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20045 | (exit $ac_status); }; } && | 
|  | 20046 | { ac_try='test -s conftest.$ac_objext' | 
|  | 20047 | { (case "(($ac_try" in | 
|  | 20048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20049 | *) ac_try_echo=$ac_try;; | 
|  | 20050 | esac | 
|  | 20051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20052 | (eval "$ac_try") 2>&5 | 
|  | 20053 | ac_status=$? | 
|  | 20054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20055 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20056 | ac_cv_func_std_isinf_in_cmath=yes | 
|  | 20057 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20058 | echo "$as_me: failed program was:" >&5 | 
|  | 20059 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20060 |  | 
|  | 20061 | ac_cv_func_std_isinf_in_cmath=no | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20062 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20063 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20065 | ac_ext=c | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20066 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20067 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20068 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20069 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20070 |  | 
|  | 20071 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20072 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 | 
|  | 20073 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20074 |  | 
|  | 20075 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20076 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20077 | cat >>confdefs.h <<\_ACEOF | 
|  | 20078 | #define HAVE_STD_ISINF_IN_CMATH 1 | 
|  | 20079 | _ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20080 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20081 | fi | 
|  | 20082 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20083 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 | 
|  | 20084 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } | 
|  | 20085 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then | 
|  | 20086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20087 | else | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20088 | ac_ext=cpp | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20089 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 20090 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20091 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20092 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 20093 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20094 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20095 | /* confdefs.h.  */ | 
|  | 20096 | _ACEOF | 
|  | 20097 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20098 | cat >>conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20099 | /* end confdefs.h.  */ | 
|  | 20100 | #include <ieeefp.h> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20101 | int | 
|  | 20102 | main () | 
|  | 20103 | { | 
|  | 20104 | float f; finite(f); | 
|  | 20105 | ; | 
|  | 20106 | return 0; | 
|  | 20107 | } | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20108 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20109 | rm -f conftest.$ac_objext | 
|  | 20110 | if { (ac_try="$ac_compile" | 
|  | 20111 | case "(($ac_try" in | 
|  | 20112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20113 | *) ac_try_echo=$ac_try;; | 
|  | 20114 | esac | 
|  | 20115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20116 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 20117 | ac_status=$? | 
|  | 20118 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20119 | rm -f conftest.er1 | 
|  | 20120 | cat conftest.err >&5 | 
|  | 20121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20122 | (exit $ac_status); } && | 
|  | 20123 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 20124 | { (case "(($ac_try" in | 
|  | 20125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20126 | *) ac_try_echo=$ac_try;; | 
|  | 20127 | esac | 
|  | 20128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20129 | (eval "$ac_try") 2>&5 | 
|  | 20130 | ac_status=$? | 
|  | 20131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20132 | (exit $ac_status); }; } && | 
|  | 20133 | { ac_try='test -s conftest.$ac_objext' | 
|  | 20134 | { (case "(($ac_try" in | 
|  | 20135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20136 | *) ac_try_echo=$ac_try;; | 
|  | 20137 | esac | 
|  | 20138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20139 | (eval "$ac_try") 2>&5 | 
|  | 20140 | ac_status=$? | 
|  | 20141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20142 | (exit $ac_status); }; }; then | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20143 | ac_cv_func_finite_in_ieeefp_h=yes | 
|  | 20144 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20145 | echo "$as_me: failed program was:" >&5 | 
|  | 20146 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20147 |  | 
|  | 20148 | ac_cv_func_finite_in_ieeefp_h=no | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20149 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20150 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20152 | ac_ext=c | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20153 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20154 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20155 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20156 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20157 |  | 
|  | 20158 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20159 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 | 
|  | 20160 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20161 |  | 
| Brian Gaeke | ae050e0 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 20162 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20163 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20164 | cat >>confdefs.h <<\_ACEOF | 
|  | 20165 | #define HAVE_FINITE_IN_IEEEFP_H 1 | 
|  | 20166 | _ACEOF | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20167 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20168 | fi | 
|  | 20169 |  | 
|  | 20170 |  | 
|  | 20171 |  | 
| Reid Spencer | dfda061 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20172 | if test "$llvm_cv_platform_type" = "Unix" ; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20173 |  | 
|  | 20174 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20175 | for ac_header in stdlib.h unistd.h | 
|  | 20176 | do | 
|  | 20177 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 20178 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 20179 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 20180 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 20181 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 20182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20183 | fi | 
|  | 20184 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 20185 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 20186 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 20187 | else | 
|  | 20188 | # Is the header compilable? | 
|  | 20189 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 20190 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
|  | 20191 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20192 | /* confdefs.h.  */ | 
|  | 20193 | _ACEOF | 
|  | 20194 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20195 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20196 | /* end confdefs.h.  */ | 
|  | 20197 | $ac_includes_default | 
|  | 20198 | #include <$ac_header> | 
|  | 20199 | _ACEOF | 
|  | 20200 | rm -f conftest.$ac_objext | 
|  | 20201 | if { (ac_try="$ac_compile" | 
|  | 20202 | case "(($ac_try" in | 
|  | 20203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20204 | *) ac_try_echo=$ac_try;; | 
|  | 20205 | esac | 
|  | 20206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20207 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 20208 | ac_status=$? | 
|  | 20209 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20210 | rm -f conftest.er1 | 
|  | 20211 | cat conftest.err >&5 | 
|  | 20212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20213 | (exit $ac_status); } && | 
|  | 20214 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 20215 | { (case "(($ac_try" in | 
|  | 20216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20217 | *) ac_try_echo=$ac_try;; | 
|  | 20218 | esac | 
|  | 20219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20220 | (eval "$ac_try") 2>&5 | 
|  | 20221 | ac_status=$? | 
|  | 20222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20223 | (exit $ac_status); }; } && | 
|  | 20224 | { ac_try='test -s conftest.$ac_objext' | 
|  | 20225 | { (case "(($ac_try" in | 
|  | 20226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20227 | *) ac_try_echo=$ac_try;; | 
|  | 20228 | esac | 
|  | 20229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20230 | (eval "$ac_try") 2>&5 | 
|  | 20231 | ac_status=$? | 
|  | 20232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20233 | (exit $ac_status); }; }; then | 
|  | 20234 | ac_header_compiler=yes | 
|  | 20235 | else | 
|  | 20236 | echo "$as_me: failed program was:" >&5 | 
|  | 20237 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20238 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20239 | ac_header_compiler=no | 
|  | 20240 | fi | 
|  | 20241 |  | 
|  | 20242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 20243 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 20244 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
|  | 20245 |  | 
|  | 20246 | # Is the header present? | 
|  | 20247 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 20248 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
|  | 20249 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20250 | /* confdefs.h.  */ | 
|  | 20251 | _ACEOF | 
|  | 20252 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20253 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20254 | /* end confdefs.h.  */ | 
|  | 20255 | #include <$ac_header> | 
|  | 20256 | _ACEOF | 
|  | 20257 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 20258 | case "(($ac_try" in | 
|  | 20259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20260 | *) ac_try_echo=$ac_try;; | 
|  | 20261 | esac | 
|  | 20262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20263 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
|  | 20264 | ac_status=$? | 
|  | 20265 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20266 | rm -f conftest.er1 | 
|  | 20267 | cat conftest.err >&5 | 
|  | 20268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20269 | (exit $ac_status); } >/dev/null; then | 
|  | 20270 | if test -s conftest.err; then | 
|  | 20271 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 20272 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 20273 | else | 
|  | 20274 | ac_cpp_err= | 
|  | 20275 | fi | 
|  | 20276 | else | 
|  | 20277 | ac_cpp_err=yes | 
|  | 20278 | fi | 
|  | 20279 | if test -z "$ac_cpp_err"; then | 
|  | 20280 | ac_header_preproc=yes | 
|  | 20281 | else | 
|  | 20282 | echo "$as_me: failed program was:" >&5 | 
|  | 20283 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20284 |  | 
|  | 20285 | ac_header_preproc=no | 
|  | 20286 | fi | 
|  | 20287 |  | 
|  | 20288 | rm -f conftest.err conftest.$ac_ext | 
|  | 20289 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 20290 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
|  | 20291 |  | 
|  | 20292 | # So?  What about this header? | 
|  | 20293 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 20294 | yes:no: ) | 
|  | 20295 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 20296 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 20297 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 20298 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 20299 | ac_header_preproc=yes | 
|  | 20300 | ;; | 
|  | 20301 | no:yes:* ) | 
|  | 20302 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 20303 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 20304 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 20305 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 20306 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 20307 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 20308 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 20309 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 20310 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 20311 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 20312 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 20313 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 20314 | ( cat <<\_ASBOX | 
| Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 20315 | ## ------------------------------------ ## | 
|  | 20316 | ## Report this to http://llvm.org/bugs/ ## | 
|  | 20317 | ## ------------------------------------ ## | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20318 | _ASBOX | 
|  | 20319 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 20320 | ;; | 
|  | 20321 | esac | 
|  | 20322 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 20323 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
|  | 20324 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 20325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20326 | else | 
|  | 20327 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 20328 | fi | 
|  | 20329 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
|  | 20330 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 20331 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 20332 |  | 
|  | 20333 | fi | 
|  | 20334 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20335 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20336 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20337 | _ACEOF | 
|  | 20338 |  | 
|  | 20339 | fi | 
|  | 20340 |  | 
|  | 20341 | done | 
|  | 20342 |  | 
|  | 20343 |  | 
|  | 20344 | for ac_func in getpagesize | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20345 | do | 
|  | 20346 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 20347 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 20348 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 20349 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 20350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20351 | else | 
|  | 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 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 20359 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 20360 | #define $ac_func innocuous_$ac_func | 
|  | 20361 |  | 
|  | 20362 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 20363 | which can conflict with char $ac_func (); below. | 
|  | 20364 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 20365 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 20366 |  | 
|  | 20367 | #ifdef __STDC__ | 
|  | 20368 | # include <limits.h> | 
|  | 20369 | #else | 
|  | 20370 | # include <assert.h> | 
|  | 20371 | #endif | 
|  | 20372 |  | 
|  | 20373 | #undef $ac_func | 
|  | 20374 |  | 
|  | 20375 | /* Override any GCC internal prototype to avoid an error. | 
|  | 20376 | Use char because int might match the return type of a GCC | 
|  | 20377 | builtin and then its argument prototype would still apply.  */ | 
|  | 20378 | #ifdef __cplusplus | 
|  | 20379 | extern "C" | 
|  | 20380 | #endif | 
|  | 20381 | char $ac_func (); | 
|  | 20382 | /* The GNU C library defines this for functions which it implements | 
|  | 20383 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 20384 | something starting with __ and the normal name is an alias.  */ | 
|  | 20385 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 20386 | choke me | 
|  | 20387 | #endif | 
|  | 20388 |  | 
|  | 20389 | int | 
|  | 20390 | main () | 
|  | 20391 | { | 
|  | 20392 | return $ac_func (); | 
|  | 20393 | ; | 
|  | 20394 | return 0; | 
|  | 20395 | } | 
|  | 20396 | _ACEOF | 
|  | 20397 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 20398 | if { (ac_try="$ac_link" | 
|  | 20399 | case "(($ac_try" in | 
|  | 20400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20401 | *) ac_try_echo=$ac_try;; | 
|  | 20402 | esac | 
|  | 20403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20404 | (eval "$ac_link") 2>conftest.er1 | 
|  | 20405 | ac_status=$? | 
|  | 20406 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20407 | rm -f conftest.er1 | 
|  | 20408 | cat conftest.err >&5 | 
|  | 20409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20410 | (exit $ac_status); } && | 
|  | 20411 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 20412 | { (case "(($ac_try" in | 
|  | 20413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20414 | *) ac_try_echo=$ac_try;; | 
|  | 20415 | esac | 
|  | 20416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20417 | (eval "$ac_try") 2>&5 | 
|  | 20418 | ac_status=$? | 
|  | 20419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20420 | (exit $ac_status); }; } && | 
|  | 20421 | { ac_try='test -s conftest$ac_exeext' | 
|  | 20422 | { (case "(($ac_try" in | 
|  | 20423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20424 | *) ac_try_echo=$ac_try;; | 
|  | 20425 | esac | 
|  | 20426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20427 | (eval "$ac_try") 2>&5 | 
|  | 20428 | ac_status=$? | 
|  | 20429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20430 | (exit $ac_status); }; }; then | 
|  | 20431 | eval "$as_ac_var=yes" | 
|  | 20432 | else | 
|  | 20433 | echo "$as_me: failed program was:" >&5 | 
|  | 20434 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20435 |  | 
|  | 20436 | eval "$as_ac_var=no" | 
|  | 20437 | fi | 
|  | 20438 |  | 
|  | 20439 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 20440 | conftest$ac_exeext conftest.$ac_ext | 
|  | 20441 | fi | 
|  | 20442 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 20443 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 20444 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 20445 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20446 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20447 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20448 | _ACEOF | 
|  | 20449 |  | 
|  | 20450 | fi | 
|  | 20451 | done | 
|  | 20452 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20453 | { echo "$as_me:$LINENO: checking for working mmap" >&5 | 
|  | 20454 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | 
|  | 20455 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | 
|  | 20456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20457 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20458 | if test "$cross_compiling" = yes; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20459 | ac_cv_func_mmap_fixed_mapped=no | 
|  | 20460 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20461 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20462 | /* confdefs.h.  */ | 
|  | 20463 | _ACEOF | 
|  | 20464 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20465 | cat >>conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20466 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20467 | $ac_includes_default | 
|  | 20468 | /* malloc might have been renamed as rpl_malloc. */ | 
|  | 20469 | #undef malloc | 
|  | 20470 |  | 
|  | 20471 | /* Thanks to Mike Haertel and Jim Avera for this test. | 
|  | 20472 | Here is a matrix of mmap possibilities: | 
|  | 20473 | mmap private not fixed | 
|  | 20474 | mmap private fixed at somewhere currently unmapped | 
|  | 20475 | mmap private fixed at somewhere already mapped | 
|  | 20476 | mmap shared not fixed | 
|  | 20477 | mmap shared fixed at somewhere currently unmapped | 
|  | 20478 | mmap shared fixed at somewhere already mapped | 
|  | 20479 | For private mappings, we should verify that changes cannot be read() | 
|  | 20480 | back from the file, nor mmap's back from the file at a different | 
|  | 20481 | address.  (There have been systems where private was not correctly | 
|  | 20482 | implemented like the infamous i386 svr4.0, and systems where the | 
|  | 20483 | VM page cache was not coherent with the file system buffer cache | 
|  | 20484 | like early versions of FreeBSD and possibly contemporary NetBSD.) | 
|  | 20485 | For shared mappings, we should conversely verify that changes get | 
|  | 20486 | propagated back to all the places they're supposed to be. | 
|  | 20487 |  | 
|  | 20488 | Grep wants private fixed already mapped. | 
|  | 20489 | The main things grep needs to know about mmap are: | 
|  | 20490 | * does it exist and is it safe to write into the mmap'd area | 
|  | 20491 | * how to use it (BSD variants)  */ | 
|  | 20492 |  | 
|  | 20493 | #include <fcntl.h> | 
|  | 20494 | #include <sys/mman.h> | 
|  | 20495 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20496 | #if !STDC_HEADERS && !HAVE_STDLIB_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20497 | char *malloc (); | 
|  | 20498 | #endif | 
|  | 20499 |  | 
|  | 20500 | /* This mess was copied from the GNU getpagesize.h.  */ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20501 | #if !HAVE_GETPAGESIZE | 
|  | 20502 | /* Assume that all systems that can run configure have sys/param.h.  */ | 
|  | 20503 | # if !HAVE_SYS_PARAM_H | 
|  | 20504 | #  define HAVE_SYS_PARAM_H 1 | 
|  | 20505 | # endif | 
|  | 20506 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20507 | # ifdef _SC_PAGESIZE | 
|  | 20508 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
|  | 20509 | # else /* no _SC_PAGESIZE */ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20510 | #  if HAVE_SYS_PARAM_H | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20511 | #   include <sys/param.h> | 
|  | 20512 | #   ifdef EXEC_PAGESIZE | 
|  | 20513 | #    define getpagesize() EXEC_PAGESIZE | 
|  | 20514 | #   else /* no EXEC_PAGESIZE */ | 
|  | 20515 | #    ifdef NBPG | 
|  | 20516 | #     define getpagesize() NBPG * CLSIZE | 
|  | 20517 | #     ifndef CLSIZE | 
|  | 20518 | #      define CLSIZE 1 | 
|  | 20519 | #     endif /* no CLSIZE */ | 
|  | 20520 | #    else /* no NBPG */ | 
|  | 20521 | #     ifdef NBPC | 
|  | 20522 | #      define getpagesize() NBPC | 
|  | 20523 | #     else /* no NBPC */ | 
|  | 20524 | #      ifdef PAGESIZE | 
|  | 20525 | #       define getpagesize() PAGESIZE | 
|  | 20526 | #      endif /* PAGESIZE */ | 
|  | 20527 | #     endif /* no NBPC */ | 
|  | 20528 | #    endif /* no NBPG */ | 
|  | 20529 | #   endif /* no EXEC_PAGESIZE */ | 
|  | 20530 | #  else /* no HAVE_SYS_PARAM_H */ | 
|  | 20531 | #   define getpagesize() 8192	/* punt totally */ | 
|  | 20532 | #  endif /* no HAVE_SYS_PARAM_H */ | 
|  | 20533 | # endif /* no _SC_PAGESIZE */ | 
|  | 20534 |  | 
|  | 20535 | #endif /* no HAVE_GETPAGESIZE */ | 
|  | 20536 |  | 
|  | 20537 | int | 
|  | 20538 | main () | 
|  | 20539 | { | 
|  | 20540 | char *data, *data2, *data3; | 
|  | 20541 | int i, pagesize; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20542 | int fd; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20543 |  | 
|  | 20544 | pagesize = getpagesize (); | 
|  | 20545 |  | 
|  | 20546 | /* First, make a file with some known garbage in it. */ | 
|  | 20547 | data = (char *) malloc (pagesize); | 
|  | 20548 | if (!data) | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20549 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20550 | for (i = 0; i < pagesize; ++i) | 
|  | 20551 | *(data + i) = rand (); | 
|  | 20552 | umask (0); | 
|  | 20553 | fd = creat ("conftest.mmap", 0600); | 
|  | 20554 | if (fd < 0) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20555 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20556 | if (write (fd, data, pagesize) != pagesize) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20557 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20558 | close (fd); | 
|  | 20559 |  | 
|  | 20560 | /* Next, try to mmap the file at a fixed address which already has | 
|  | 20561 | something else allocated at it.  If we can, also make sure that | 
|  | 20562 | we see the same garbage.  */ | 
|  | 20563 | fd = open ("conftest.mmap", O_RDWR); | 
|  | 20564 | if (fd < 0) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20565 | return 1; | 
|  | 20566 | data2 = (char *) malloc (2 * pagesize); | 
|  | 20567 | if (!data2) | 
|  | 20568 | return 1; | 
|  | 20569 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20570 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20571 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20572 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20573 | for (i = 0; i < pagesize; ++i) | 
|  | 20574 | if (*(data + i) != *(data2 + i)) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20575 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20576 |  | 
|  | 20577 | /* Finally, make sure that changes to the mapped area do not | 
|  | 20578 | percolate back to the file as seen by read().  (This is a bug on | 
|  | 20579 | some variants of i386 svr4.0.)  */ | 
|  | 20580 | for (i = 0; i < pagesize; ++i) | 
|  | 20581 | *(data2 + i) = *(data2 + i) + 1; | 
|  | 20582 | data3 = (char *) malloc (pagesize); | 
|  | 20583 | if (!data3) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20584 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20585 | if (read (fd, data3, pagesize) != pagesize) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20586 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20587 | for (i = 0; i < pagesize; ++i) | 
|  | 20588 | if (*(data + i) != *(data3 + i)) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20589 | return 1; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20590 | close (fd); | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20591 | return 0; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20592 | } | 
|  | 20593 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20594 | rm -f conftest$ac_exeext | 
|  | 20595 | if { (ac_try="$ac_link" | 
|  | 20596 | case "(($ac_try" in | 
|  | 20597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20598 | *) ac_try_echo=$ac_try;; | 
|  | 20599 | esac | 
|  | 20600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20601 | (eval "$ac_link") 2>&5 | 
|  | 20602 | ac_status=$? | 
|  | 20603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20604 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 20605 | { (case "(($ac_try" in | 
|  | 20606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20607 | *) ac_try_echo=$ac_try;; | 
|  | 20608 | esac | 
|  | 20609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20610 | (eval "$ac_try") 2>&5 | 
|  | 20611 | ac_status=$? | 
|  | 20612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20613 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20614 | ac_cv_func_mmap_fixed_mapped=yes | 
|  | 20615 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20616 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 20617 | echo "$as_me: failed program was:" >&5 | 
|  | 20618 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20619 |  | 
|  | 20620 | ( exit $ac_status ) | 
|  | 20621 | ac_cv_func_mmap_fixed_mapped=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20622 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20623 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20624 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20625 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20626 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20627 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20628 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | 
|  | 20629 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20630 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 
|  | 20631 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20632 | cat >>confdefs.h <<\_ACEOF | 
|  | 20633 | #define HAVE_MMAP 1 | 
|  | 20634 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20635 |  | 
|  | 20636 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20637 | rm -f conftest.mmap | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20638 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20639 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 | 
|  | 20640 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } | 
|  | 20641 | if test "${ac_cv_func_mmap_file+set}" = set; then | 
|  | 20642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20643 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20644 | ac_ext=c | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20645 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20646 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20647 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20648 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20649 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20650 | if test "$cross_compiling" = yes; then | 
| Reid Spencer | 5a6815d | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20651 | ac_cv_func_mmap_file=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20652 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20653 | cat >conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20654 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20655 | /* confdefs.h.  */ | 
|  | 20656 | _ACEOF | 
|  | 20657 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20658 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20659 | /* end confdefs.h.  */ | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20660 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20661 | #include <sys/types.h> | 
| John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20662 | #include <sys/mman.h> | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20663 | #include <fcntl.h> | 
| Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20664 |  | 
|  | 20665 | int | 
|  | 20666 | main () | 
|  | 20667 | { | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20668 |  | 
|  | 20669 | int fd; | 
| Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20670 | fd = creat ("foo",0777); | 
|  | 20671 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); | 
|  | 20672 | unlink ("foo"); | 
| Reid Spencer | 5a6815d | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20673 | return (fd != (int) MAP_FAILED); | 
| Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20674 | ; | 
|  | 20675 | return 0; | 
|  | 20676 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20677 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20678 | rm -f conftest$ac_exeext | 
|  | 20679 | if { (ac_try="$ac_link" | 
|  | 20680 | case "(($ac_try" in | 
|  | 20681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20682 | *) ac_try_echo=$ac_try;; | 
|  | 20683 | esac | 
|  | 20684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20685 | (eval "$ac_link") 2>&5 | 
|  | 20686 | ac_status=$? | 
|  | 20687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20688 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 20689 | { (case "(($ac_try" in | 
|  | 20690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20691 | *) ac_try_echo=$ac_try;; | 
|  | 20692 | esac | 
|  | 20693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20694 | (eval "$ac_try") 2>&5 | 
|  | 20695 | ac_status=$? | 
|  | 20696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20697 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20698 | ac_cv_func_mmap_file=yes | 
|  | 20699 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20700 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 20701 | echo "$as_me: failed program was:" >&5 | 
|  | 20702 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20703 |  | 
|  | 20704 | ( exit $ac_status ) | 
|  | 20705 | ac_cv_func_mmap_file=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20706 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20707 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20708 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20709 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20710 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20711 | ac_ext=c | 
|  | 20712 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20713 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20714 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20715 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20716 |  | 
|  | 20717 |  | 
|  | 20718 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20719 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 | 
|  | 20720 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20721 | if test "$ac_cv_func_mmap_file" = yes; then | 
| John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20722 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20723 | cat >>confdefs.h <<\_ACEOF | 
|  | 20724 | #define HAVE_MMAP_FILE | 
|  | 20725 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20726 |  | 
|  | 20727 | MMAP_FILE=yes | 
|  | 20728 |  | 
|  | 20729 | fi | 
|  | 20730 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20731 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 | 
|  | 20732 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } | 
|  | 20733 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then | 
|  | 20734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20735 | else | 
| Reid Spencer | 3d745d4 | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 20736 | if test "$llvm_cv_os_type" = "Interix" ; then | 
| Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20737 | ac_cv_need_dev_zero_for_mmap=yes | 
|  | 20738 | else | 
|  | 20739 | ac_cv_need_dev_zero_for_mmap=no | 
|  | 20740 | fi | 
|  | 20741 |  | 
|  | 20742 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20743 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 | 
|  | 20744 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } | 
| Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20745 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then | 
|  | 20746 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20747 | cat >>confdefs.h <<\_ACEOF | 
|  | 20748 | #define NEED_DEV_ZERO_FOR_MMAP 1 | 
|  | 20749 | _ACEOF | 
| Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20750 |  | 
|  | 20751 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20752 |  | 
| Reid Spencer | dfda061 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20753 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" | 
|  | 20754 | then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20755 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 | 
|  | 20756 | echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} | 
| Reid Spencer | dfda061 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20757 | fi | 
|  | 20758 | if test "$ac_cv_func_mmap_file" = "no" | 
|  | 20759 | then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20760 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 | 
|  | 20761 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} | 
| Reid Spencer | dfda061 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20762 | fi | 
| John Criswell | b65ddad | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 20763 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20764 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20765 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 | 
|  | 20766 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } | 
| Eric Christopher | f7eb811 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20767 | ac_ext=cpp | 
|  | 20768 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 20769 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20770 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20771 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 20772 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20773 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20774 | /* confdefs.h.  */ | 
|  | 20775 | _ACEOF | 
|  | 20776 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20777 | cat >>conftest.$ac_ext <<_ACEOF | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20778 | /* end confdefs.h.  */ | 
|  | 20779 | int main() { | 
| Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20780 | volatile unsigned long val = 1; | 
|  | 20781 | __sync_synchronize(); | 
|  | 20782 | __sync_val_compare_and_swap(&val, 1, 0); | 
| Owen Anderson | 8d0fe6f | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 20783 | __sync_add_and_fetch(&val, 1); | 
|  | 20784 | __sync_sub_and_fetch(&val, 1); | 
| Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20785 | return 0; | 
|  | 20786 | } | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20787 |  | 
|  | 20788 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20789 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 20790 | if { (ac_try="$ac_link" | 
|  | 20791 | case "(($ac_try" in | 
|  | 20792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20793 | *) ac_try_echo=$ac_try;; | 
|  | 20794 | esac | 
|  | 20795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20796 | (eval "$ac_link") 2>conftest.er1 | 
|  | 20797 | ac_status=$? | 
|  | 20798 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20799 | rm -f conftest.er1 | 
|  | 20800 | cat conftest.err >&5 | 
|  | 20801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20802 | (exit $ac_status); } && | 
|  | 20803 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 20804 | { (case "(($ac_try" in | 
|  | 20805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20806 | *) ac_try_echo=$ac_try;; | 
|  | 20807 | esac | 
|  | 20808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20809 | (eval "$ac_try") 2>&5 | 
|  | 20810 | ac_status=$? | 
|  | 20811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20812 | (exit $ac_status); }; } && | 
|  | 20813 | { ac_try='test -s conftest$ac_exeext' | 
|  | 20814 | { (case "(($ac_try" in | 
|  | 20815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20816 | *) ac_try_echo=$ac_try;; | 
|  | 20817 | esac | 
|  | 20818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20819 | (eval "$ac_try") 2>&5 | 
|  | 20820 | ac_status=$? | 
|  | 20821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20822 | (exit $ac_status); }; }; then | 
| Eric Christopher | f7eb811 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20823 | ac_ext=c | 
|  | 20824 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20825 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20826 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20827 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20828 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20829 | { echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 20830 | echo "${ECHO_T}yes" >&6; } | 
| Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20831 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20832 | cat >>confdefs.h <<\_ACEOF | 
| Eric Christopher | 4418a60 | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 20833 | #define LLVM_HAS_ATOMICS 1 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20834 | _ACEOF | 
| Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20835 |  | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20836 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20837 | echo "$as_me: failed program was:" >&5 | 
|  | 20838 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20839 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20840 | { echo "$as_me:$LINENO: result: no" >&5 | 
|  | 20841 | echo "${ECHO_T}no" >&6; } | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20842 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20843 | cat >>confdefs.h <<\_ACEOF | 
| Eric Christopher | 4418a60 | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 20844 | #define LLVM_HAS_ATOMICS 0 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20845 | _ACEOF | 
|  | 20846 |  | 
|  | 20847 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 | 
|  | 20848 | echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20849 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20850 |  | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20851 | rm -f core conftest.err conftest.$ac_objext \ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20852 | conftest$ac_exeext conftest.$ac_ext | 
| Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20853 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20854 |  | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20855 | if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20856 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 | 
|  | 20857 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } | 
|  | 20858 | if test "${llvm_cv_linux_mixed+set}" = set; then | 
|  | 20859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20860 | else | 
|  | 20861 | ac_ext=c | 
|  | 20862 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20863 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20864 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20865 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20866 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20867 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20868 | /* confdefs.h.  */ | 
|  | 20869 | _ACEOF | 
|  | 20870 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20871 | cat >>conftest.$ac_ext <<_ACEOF | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20872 | /* end confdefs.h.  */ | 
|  | 20873 | #ifndef __x86_64__ | 
|  | 20874 | error: Not x86-64 even if uname says so! | 
|  | 20875 | #endif | 
|  | 20876 |  | 
|  | 20877 | int | 
|  | 20878 | main () | 
|  | 20879 | { | 
|  | 20880 |  | 
|  | 20881 | ; | 
|  | 20882 | return 0; | 
|  | 20883 | } | 
|  | 20884 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20885 | rm -f conftest.$ac_objext | 
|  | 20886 | if { (ac_try="$ac_compile" | 
|  | 20887 | case "(($ac_try" in | 
|  | 20888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20889 | *) ac_try_echo=$ac_try;; | 
|  | 20890 | esac | 
|  | 20891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20892 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 20893 | ac_status=$? | 
|  | 20894 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20895 | rm -f conftest.er1 | 
|  | 20896 | cat conftest.err >&5 | 
|  | 20897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20898 | (exit $ac_status); } && | 
|  | 20899 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 20900 | { (case "(($ac_try" in | 
|  | 20901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20902 | *) ac_try_echo=$ac_try;; | 
|  | 20903 | esac | 
|  | 20904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20905 | (eval "$ac_try") 2>&5 | 
|  | 20906 | ac_status=$? | 
|  | 20907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20908 | (exit $ac_status); }; } && | 
|  | 20909 | { ac_try='test -s conftest.$ac_objext' | 
|  | 20910 | { (case "(($ac_try" in | 
|  | 20911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 20912 | *) ac_try_echo=$ac_try;; | 
|  | 20913 | esac | 
|  | 20914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 20915 | (eval "$ac_try") 2>&5 | 
|  | 20916 | ac_status=$? | 
|  | 20917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20918 | (exit $ac_status); }; }; then | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20919 | llvm_cv_linux_mixed=no | 
|  | 20920 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20921 | echo "$as_me: failed program was:" >&5 | 
|  | 20922 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20923 |  | 
|  | 20924 | llvm_cv_linux_mixed=yes | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20925 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20926 |  | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 20928 | ac_ext=c | 
|  | 20929 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20930 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20931 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20932 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20933 |  | 
|  | 20934 |  | 
|  | 20935 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20936 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 | 
|  | 20937 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } | 
| Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20938 |  | 
|  | 20939 | if test "$llvm_cv_linux_mixed" = "yes"; then | 
|  | 20940 | llvm_cv_target_arch="x86" | 
|  | 20941 | ARCH="x86" | 
|  | 20942 | fi | 
|  | 20943 | fi | 
|  | 20944 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20945 |  | 
| Reid Spencer | 32046f7 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20946 | for ac_func in __dso_handle | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20947 | do | 
|  | 20948 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 20949 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 20950 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
|  | 20951 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
|  | 20952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20953 | else | 
|  | 20954 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20955 | /* confdefs.h.  */ | 
|  | 20956 | _ACEOF | 
|  | 20957 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20958 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20959 | /* end confdefs.h.  */ | 
|  | 20960 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 20961 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 20962 | #define $ac_func innocuous_$ac_func | 
|  | 20963 |  | 
|  | 20964 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 20965 | which can conflict with char $ac_func (); below. | 
|  | 20966 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 20967 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 20968 |  | 
|  | 20969 | #ifdef __STDC__ | 
|  | 20970 | # include <limits.h> | 
|  | 20971 | #else | 
|  | 20972 | # include <assert.h> | 
|  | 20973 | #endif | 
|  | 20974 |  | 
|  | 20975 | #undef $ac_func | 
|  | 20976 |  | 
|  | 20977 | /* Override any GCC internal prototype to avoid an error. | 
|  | 20978 | Use char because int might match the return type of a GCC | 
|  | 20979 | builtin and then its argument prototype would still apply.  */ | 
|  | 20980 | #ifdef __cplusplus | 
|  | 20981 | extern "C" | 
|  | 20982 | #endif | 
|  | 20983 | char $ac_func (); | 
|  | 20984 | /* The GNU C library defines this for functions which it implements | 
|  | 20985 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 20986 | something starting with __ and the normal name is an alias.  */ | 
|  | 20987 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
|  | 20988 | choke me | 
|  | 20989 | #endif | 
|  | 20990 |  | 
|  | 20991 | int | 
|  | 20992 | main () | 
|  | 20993 | { | 
|  | 20994 | return $ac_func (); | 
|  | 20995 | ; | 
|  | 20996 | return 0; | 
|  | 20997 | } | 
|  | 20998 | _ACEOF | 
|  | 20999 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 21000 | if { (ac_try="$ac_link" | 
|  | 21001 | case "(($ac_try" in | 
|  | 21002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 21003 | *) ac_try_echo=$ac_try;; | 
|  | 21004 | esac | 
|  | 21005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 21006 | (eval "$ac_link") 2>conftest.er1 | 
|  | 21007 | ac_status=$? | 
|  | 21008 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21009 | rm -f conftest.er1 | 
|  | 21010 | cat conftest.err >&5 | 
|  | 21011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21012 | (exit $ac_status); } && | 
|  | 21013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
|  | 21014 | { (case "(($ac_try" in | 
|  | 21015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 21016 | *) ac_try_echo=$ac_try;; | 
|  | 21017 | esac | 
|  | 21018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 21019 | (eval "$ac_try") 2>&5 | 
|  | 21020 | ac_status=$? | 
|  | 21021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21022 | (exit $ac_status); }; } && | 
|  | 21023 | { ac_try='test -s conftest$ac_exeext' | 
|  | 21024 | { (case "(($ac_try" in | 
|  | 21025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 21026 | *) ac_try_echo=$ac_try;; | 
|  | 21027 | esac | 
|  | 21028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 21029 | (eval "$ac_try") 2>&5 | 
|  | 21030 | ac_status=$? | 
|  | 21031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21032 | (exit $ac_status); }; }; then | 
|  | 21033 | eval "$as_ac_var=yes" | 
|  | 21034 | else | 
|  | 21035 | echo "$as_me: failed program was:" >&5 | 
|  | 21036 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21037 |  | 
|  | 21038 | eval "$as_ac_var=no" | 
|  | 21039 | fi | 
|  | 21040 |  | 
|  | 21041 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 21042 | conftest$ac_exeext conftest.$ac_ext | 
|  | 21043 | fi | 
|  | 21044 | ac_res=`eval echo '${'$as_ac_var'}'` | 
|  | 21045 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
|  | 21046 | echo "${ECHO_T}$ac_res" >&6; } | 
|  | 21047 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
| Reid Spencer | 32046f7 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 21048 | cat >>confdefs.h <<_ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21049 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Reid Spencer | 32046f7 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 21050 | _ACEOF | 
|  | 21051 |  | 
|  | 21052 | fi | 
|  | 21053 | done | 
|  | 21054 |  | 
|  | 21055 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21056 | SHLIBEXT=$libltdl_cv_shlibext | 
| Brian Gaeke | a240452 | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 21057 |  | 
|  | 21058 |  | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21059 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var | 
|  | 21060 |  | 
|  | 21061 |  | 
| Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 21062 | if test "${prefix}" = "NONE" ; then | 
| Reid Spencer | 40f1b13 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 21063 | prefix="/usr/local" | 
|  | 21064 | fi | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21065 | eval LLVM_PREFIX="${prefix}"; | 
|  | 21066 | eval LLVM_BINDIR="${prefix}/bin"; | 
|  | 21067 | eval LLVM_LIBDIR="${prefix}/lib"; | 
| Reid Spencer | 0194c9a | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 21068 | eval LLVM_DATADIR="${prefix}/share/llvm"; | 
| Eric Christopher | b3762a0 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 21069 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; | 
| Reid Spencer | 0194c9a | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 21070 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21071 | eval LLVM_INCLUDEDIR="${prefix}/include"; | 
|  | 21072 | eval LLVM_INFODIR="${prefix}/info"; | 
|  | 21073 | eval LLVM_MANDIR="${prefix}/man"; | 
|  | 21074 | LLVM_CONFIGTIME=`date` | 
|  | 21075 |  | 
|  | 21076 |  | 
|  | 21077 |  | 
|  | 21078 |  | 
|  | 21079 |  | 
|  | 21080 |  | 
|  | 21081 |  | 
|  | 21082 |  | 
|  | 21083 |  | 
|  | 21084 |  | 
|  | 21085 |  | 
| Daniel Dunbar | 9370ecf | 2012-03-02 16:24:21 +0000 | [diff] [blame] | 21086 | if test "${ENABLE_TIMESTAMPS}" = "0"; then | 
|  | 21087 | LLVM_CONFIGTIME="(timestamp not enabled)" | 
|  | 21088 | fi | 
|  | 21089 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21090 |  | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21091 | cat >>confdefs.h <<_ACEOF | 
|  | 21092 | #define LLVM_PREFIX "$LLVM_PREFIX" | 
|  | 21093 | _ACEOF | 
|  | 21094 |  | 
|  | 21095 |  | 
|  | 21096 | cat >>confdefs.h <<_ACEOF | 
|  | 21097 | #define LLVM_BINDIR "$LLVM_BINDIR" | 
|  | 21098 | _ACEOF | 
|  | 21099 |  | 
|  | 21100 |  | 
|  | 21101 | cat >>confdefs.h <<_ACEOF | 
|  | 21102 | #define LLVM_LIBDIR "$LLVM_LIBDIR" | 
|  | 21103 | _ACEOF | 
|  | 21104 |  | 
|  | 21105 |  | 
|  | 21106 | cat >>confdefs.h <<_ACEOF | 
|  | 21107 | #define LLVM_DATADIR "$LLVM_DATADIR" | 
|  | 21108 | _ACEOF | 
|  | 21109 |  | 
|  | 21110 |  | 
|  | 21111 | cat >>confdefs.h <<_ACEOF | 
| Gordon Henriksen | 80f35e0 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 21112 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21113 | _ACEOF | 
|  | 21114 |  | 
|  | 21115 |  | 
|  | 21116 | cat >>confdefs.h <<_ACEOF | 
| Reid Spencer | 288adf1 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 21117 | #define LLVM_ETCDIR "$LLVM_ETCDIR" | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21118 | _ACEOF | 
|  | 21119 |  | 
|  | 21120 |  | 
|  | 21121 | cat >>confdefs.h <<_ACEOF | 
|  | 21122 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" | 
|  | 21123 | _ACEOF | 
|  | 21124 |  | 
|  | 21125 |  | 
|  | 21126 | cat >>confdefs.h <<_ACEOF | 
|  | 21127 | #define LLVM_INFODIR "$LLVM_INFODIR" | 
|  | 21128 | _ACEOF | 
|  | 21129 |  | 
|  | 21130 |  | 
|  | 21131 | cat >>confdefs.h <<_ACEOF | 
|  | 21132 | #define LLVM_MANDIR "$LLVM_MANDIR" | 
|  | 21133 | _ACEOF | 
|  | 21134 |  | 
|  | 21135 |  | 
|  | 21136 | cat >>confdefs.h <<_ACEOF | 
|  | 21137 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" | 
|  | 21138 | _ACEOF | 
|  | 21139 |  | 
|  | 21140 |  | 
| Eric Christopher | e62b441 | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 21141 | cat >>confdefs.h <<_ACEOF | 
| Sebastian Pop | ec2fb22 | 2011-11-01 21:31:44 +0000 | [diff] [blame] | 21142 | #define LLVM_DEFAULT_TARGET_TRIPLE "$target" | 
| Eric Christopher | e62b441 | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 21143 | _ACEOF | 
|  | 21144 |  | 
|  | 21145 |  | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 21146 | if test "$BINDINGS_TO_BUILD" = auto ; then | 
|  | 21147 | BINDINGS_TO_BUILD="" | 
|  | 21148 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then | 
|  | 21149 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" | 
|  | 21150 | fi | 
|  | 21151 | fi | 
|  | 21152 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD | 
|  | 21153 |  | 
|  | 21154 |  | 
| Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 21155 | ALL_BINDINGS=ocaml | 
|  | 21156 |  | 
|  | 21157 |  | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21158 | binding_prereqs_failed=0 | 
|  | 21159 | for a_binding in $BINDINGS_TO_BUILD ; do | 
|  | 21160 | case "$a_binding" in | 
|  | 21161 | ocaml) | 
|  | 21162 | if test "x$OCAMLC" = x ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21163 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 | 
|  | 21164 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21165 | binding_prereqs_failed=1 | 
|  | 21166 | fi | 
|  | 21167 | if test "x$OCAMLDEP" = x ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21168 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 | 
|  | 21169 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21170 | binding_prereqs_failed=1 | 
|  | 21171 | fi | 
|  | 21172 | if test "x$OCAMLOPT" = x ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21173 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 | 
|  | 21174 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21175 | fi | 
|  | 21176 | if test "x$with_ocaml_libdir" != xauto ; then | 
|  | 21177 | OCAML_LIBDIR=$with_ocaml_libdir | 
|  | 21178 |  | 
|  | 21179 | else | 
|  | 21180 | ocaml_stdlib="`"$OCAMLC" -where`" | 
|  | 21181 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" | 
|  | 21182 | then | 
|  | 21183 | # ocaml stdlib is beneath our prefix; use stdlib | 
|  | 21184 | OCAML_LIBDIR=$ocaml_stdlib | 
|  | 21185 |  | 
|  | 21186 | else | 
|  | 21187 | # ocaml stdlib is outside our prefix; use libdir/ocaml | 
|  | 21188 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml | 
|  | 21189 |  | 
|  | 21190 | fi | 
|  | 21191 | fi | 
|  | 21192 | ;; | 
|  | 21193 | esac | 
|  | 21194 | done | 
|  | 21195 | if test "$binding_prereqs_failed" = 1 ; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21196 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 | 
|  | 21197 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} | 
|  | 21198 | { (exit 1); exit 1; }; } | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21199 | fi | 
|  | 21200 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21201 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 | 
|  | 21202 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } | 
|  | 21203 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then | 
|  | 21204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21205 | else | 
|  | 21206 | ac_ext=cpp | 
|  | 21207 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 21208 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 21209 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 21210 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 21211 |  | 
|  | 21212 | oldcxxflags="$CXXFLAGS" | 
| NAKAMURA Takumi | 652e013 | 2012-02-19 12:05:12 +0000 | [diff] [blame] | 21213 | CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21214 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 21215 | /* confdefs.h.  */ | 
|  | 21216 | _ACEOF | 
|  | 21217 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21218 | cat >>conftest.$ac_ext <<_ACEOF | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21219 | /* end confdefs.h.  */ | 
| Benjamin Kramer | 54671a7 | 2011-12-22 22:50:44 +0000 | [diff] [blame] | 21220 | template <typename T> struct X { void __attribute__((noinline)) f() {} }; | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21221 | int | 
|  | 21222 | main () | 
|  | 21223 | { | 
| Benjamin Kramer | 942b287 | 2011-12-22 22:25:26 +0000 | [diff] [blame] | 21224 | X<int>().f(); | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21225 | ; | 
|  | 21226 | return 0; | 
|  | 21227 | } | 
|  | 21228 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21229 | rm -f conftest.$ac_objext | 
|  | 21230 | if { (ac_try="$ac_compile" | 
|  | 21231 | case "(($ac_try" in | 
|  | 21232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 21233 | *) ac_try_echo=$ac_try;; | 
|  | 21234 | esac | 
|  | 21235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 21236 | (eval "$ac_compile") 2>conftest.er1 | 
|  | 21237 | ac_status=$? | 
|  | 21238 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21239 | rm -f conftest.er1 | 
|  | 21240 | cat conftest.err >&5 | 
|  | 21241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21242 | (exit $ac_status); } && | 
|  | 21243 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
|  | 21244 | { (case "(($ac_try" in | 
|  | 21245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 21246 | *) ac_try_echo=$ac_try;; | 
|  | 21247 | esac | 
|  | 21248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 21249 | (eval "$ac_try") 2>&5 | 
|  | 21250 | ac_status=$? | 
|  | 21251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21252 | (exit $ac_status); }; } && | 
|  | 21253 | { ac_try='test -s conftest.$ac_objext' | 
|  | 21254 | { (case "(($ac_try" in | 
|  | 21255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 21256 | *) ac_try_echo=$ac_try;; | 
|  | 21257 | esac | 
|  | 21258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
|  | 21259 | (eval "$ac_try") 2>&5 | 
|  | 21260 | ac_status=$? | 
|  | 21261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21262 | (exit $ac_status); }; }; then | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21263 | llvm_cv_cxx_visibility_inlines_hidden=yes | 
|  | 21264 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21265 | echo "$as_me: failed program was:" >&5 | 
|  | 21266 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21267 |  | 
|  | 21268 | llvm_cv_cxx_visibility_inlines_hidden=no | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21269 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21270 |  | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21272 | CXXFLAGS="$oldcxxflags" | 
|  | 21273 | ac_ext=c | 
|  | 21274 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 21275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 21276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 21277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 21278 |  | 
|  | 21279 |  | 
|  | 21280 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21281 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 | 
|  | 21282 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } | 
| Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21283 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then | 
|  | 21284 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 | 
|  | 21285 |  | 
|  | 21286 | else | 
|  | 21287 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 | 
|  | 21288 |  | 
|  | 21289 | fi | 
|  | 21290 |  | 
| Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21291 |  | 
| Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 21292 | if test "$llvm_cv_link_use_r" = "yes" ; then | 
|  | 21293 | RPATH="-Wl,-R" | 
|  | 21294 | else | 
|  | 21295 | RPATH="-Wl,-rpath" | 
|  | 21296 | fi | 
|  | 21297 |  | 
|  | 21298 |  | 
|  | 21299 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then | 
|  | 21300 | RDYNAMIC="-Wl,-export-dynamic" | 
|  | 21301 | else | 
|  | 21302 | RDYNAMIC="" | 
|  | 21303 | fi | 
| Nick Lewycky | ed8472e | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 21304 |  | 
|  | 21305 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21306 |  | 
| Eric Christopher | 97014d8 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 21307 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21308 |  | 
| Eric Christopher | 41983c6 | 2010-08-08 09:20:39 +0000 | [diff] [blame] | 21309 |  | 
|  | 21310 |  | 
|  | 21311 |  | 
|  | 21312 |  | 
|  | 21313 |  | 
| Douglas Gregor | 1b731d5 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 21314 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" | 
|  | 21315 |  | 
|  | 21316 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" | 
|  | 21317 |  | 
| Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21318 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" | 
|  | 21319 |  | 
| Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 21320 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" | 
|  | 21321 |  | 
| Michael J. Spencer | 447762d | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 21322 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21323 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21324 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21325 | ac_config_files="$ac_config_files Makefile.config" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21326 |  | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21327 |  | 
| Reid Spencer | 1277ba2 | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21328 | ac_config_files="$ac_config_files llvm.spec" | 
|  | 21329 |  | 
|  | 21330 |  | 
| Peter Collingbourne | 5ac59df | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21331 | ac_config_files="$ac_config_files docs/doxygen.cfg" | 
|  | 21332 |  | 
| Eric Christopher | f132989 | 2012-02-02 00:16:55 +0000 | [diff] [blame] | 21333 |  | 
| Dylan Noblesmith | e21a3b2 | 2012-02-04 02:41:36 +0000 | [diff] [blame] | 21334 | if test "${clang_src_root}" = ""; then | 
| Eric Christopher | dc51a5d | 2012-02-02 01:11:30 +0000 | [diff] [blame] | 21335 | clang_src_root="$srcdir/tools/clang" | 
| Eric Christopher | 7f977de | 2012-02-02 00:19:05 +0000 | [diff] [blame] | 21336 | fi | 
| Eric Christopher | f132989 | 2012-02-02 00:16:55 +0000 | [diff] [blame] | 21337 | if test -f ${clang_src_root}/README.txt; then | 
| Dylan Noblesmith | a7a29c17 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 21338 | configh="include/clang/Config/config.h" | 
|  | 21339 | doxy="docs/doxygen.cfg" | 
|  | 21340 | ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in" | 
| Eric Christopher | f132989 | 2012-02-02 00:16:55 +0000 | [diff] [blame] | 21341 |  | 
| Dylan Noblesmith | a7a29c17 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 21342 | ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in" | 
| Peter Collingbourne | 5ac59df | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21343 |  | 
|  | 21344 | fi | 
|  | 21345 |  | 
| Torok Edwin | 229f8d7 | 2011-10-14 20:38:02 +0000 | [diff] [blame] | 21346 | ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" | 
| Reid Spencer | 6f682b7 | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 21347 |  | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21348 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21349 | ac_config_commands="$ac_config_commands setup" | 
| Reid Spencer | eeedeaf | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21350 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21351 | ac_config_commands="$ac_config_commands Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21352 |  | 
|  | 21353 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21354 | ac_config_commands="$ac_config_commands Makefile.common" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21355 |  | 
|  | 21356 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21357 | ac_config_commands="$ac_config_commands examples/Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21358 |  | 
|  | 21359 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21360 | ac_config_commands="$ac_config_commands lib/Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21361 |  | 
|  | 21362 |  | 
| Reid Spencer | 4b8067f | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21363 | ac_config_commands="$ac_config_commands runtime/Makefile" | 
|  | 21364 |  | 
|  | 21365 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21366 | ac_config_commands="$ac_config_commands test/Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21367 |  | 
|  | 21368 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21369 | ac_config_commands="$ac_config_commands test/Makefile.tests" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21370 |  | 
|  | 21371 |  | 
| Bill Wendling | 7c53a18 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21372 | ac_config_commands="$ac_config_commands unittests/Makefile" | 
|  | 21373 |  | 
|  | 21374 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21375 | ac_config_commands="$ac_config_commands tools/Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21376 |  | 
|  | 21377 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21378 | ac_config_commands="$ac_config_commands utils/Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21379 |  | 
|  | 21380 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21381 | ac_config_commands="$ac_config_commands projects/Makefile" | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21382 |  | 
|  | 21383 |  | 
| Gordon Henriksen | 6ab5c57 | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21384 | ac_config_commands="$ac_config_commands bindings/Makefile" | 
|  | 21385 |  | 
|  | 21386 |  | 
|  | 21387 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" | 
|  | 21388 |  | 
|  | 21389 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21390 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21391 | cat >confcache <<\_ACEOF | 
|  | 21392 | # This file is a shell script that caches the results of configure | 
|  | 21393 | # tests run on this system so they can be shared between configure | 
|  | 21394 | # scripts and configure runs, see configure's option --config-cache. | 
|  | 21395 | # It is not useful on other systems.  If it contains results you don't | 
|  | 21396 | # want to keep, you may remove or edit it. | 
|  | 21397 | # | 
|  | 21398 | # config.status only pays attention to the cache file if you give it | 
|  | 21399 | # the --recheck option to rerun configure. | 
|  | 21400 | # | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21401 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21402 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
|  | 21403 | # following values. | 
|  | 21404 |  | 
|  | 21405 | _ACEOF | 
|  | 21406 |  | 
|  | 21407 | # The following way of writing the cache mishandles newlines in values, | 
|  | 21408 | # but we know of no workaround that is simple, portable, and efficient. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21409 | # So, we kill variables containing newlines. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21410 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|  | 21411 | # and sets the high bit in the cache file unless we assign to the vars. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21412 | ( | 
|  | 21413 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
|  | 21414 | eval ac_val=\$$ac_var | 
|  | 21415 | case $ac_val in #( | 
|  | 21416 | *${as_nl}*) | 
|  | 21417 | case $ac_var in #( | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21418 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | 
|  | 21419 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21420 | esac | 
|  | 21421 | case $ac_var in #( | 
|  | 21422 | _ | IFS | as_nl) ;; #( | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21423 | *) $as_unset $ac_var ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21424 | esac ;; | 
|  | 21425 | esac | 
|  | 21426 | done | 
|  | 21427 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21428 | (set) 2>&1 | | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21429 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
|  | 21430 | *${as_nl}ac_space=\ *) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21431 | # `set' does not quote correctly, so add quotes (double-quote | 
|  | 21432 | # substitution turns \\\\ into \\, and sed turns \\ into \). | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21433 | sed -n \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21434 | "s/'/'\\\\''/g; | 
|  | 21435 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21436 | ;; #( | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21437 | *) | 
|  | 21438 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21439 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21440 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21441 | esac | | 
|  | 21442 | sort | 
|  | 21443 | ) | | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21444 | sed ' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21445 | /^ac_cv_env_/b end | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21446 | t clear | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21447 | :clear | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21448 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
|  | 21449 | t end | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21450 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
|  | 21451 | :end' >>confcache | 
|  | 21452 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
|  | 21453 | if test -w "$cache_file"; then | 
|  | 21454 | test "x$cache_file" != "x/dev/null" && | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21455 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | 
|  | 21456 | echo "$as_me: updating cache $cache_file" >&6;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21457 | cat confcache >$cache_file | 
|  | 21458 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21459 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | 
|  | 21460 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21461 | fi | 
|  | 21462 | fi | 
|  | 21463 | rm -f confcache | 
|  | 21464 |  | 
|  | 21465 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|  | 21466 | # Let make expand exec_prefix. | 
|  | 21467 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
|  | 21468 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21469 | DEFS=-DHAVE_CONFIG_H | 
|  | 21470 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21471 | ac_libobjs= | 
|  | 21472 | ac_ltlibobjs= | 
|  | 21473 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
|  | 21474 | # 1. Remove the extension, and $U if already installed. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21475 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21476 | ac_i=`echo "$ac_i" | sed "$ac_script"` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21477 | # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
|  | 21478 | #    will be set to the directory where LIBOBJS objects are built. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21479 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
|  | 21480 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21481 | done | 
|  | 21482 | LIBOBJS=$ac_libobjs | 
|  | 21483 |  | 
|  | 21484 | LTLIBOBJS=$ac_ltlibobjs | 
|  | 21485 |  | 
|  | 21486 |  | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21487 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21488 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. | 
|  | 21489 | Usually this means the macro was only invoked conditionally." >&5 | 
|  | 21490 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. | 
|  | 21491 | Usually this means the macro was only invoked conditionally." >&2;} | 
|  | 21492 | { (exit 1); exit 1; }; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21493 | fi | 
|  | 21494 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21495 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. | 
|  | 21496 | Usually this means the macro was only invoked conditionally." >&5 | 
|  | 21497 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. | 
|  | 21498 | Usually this means the macro was only invoked conditionally." >&2;} | 
|  | 21499 | { (exit 1); exit 1; }; } | 
| Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21500 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21501 |  | 
|  | 21502 | : ${CONFIG_STATUS=./config.status} | 
|  | 21503 | ac_clean_files_save=$ac_clean_files | 
|  | 21504 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21505 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | 
|  | 21506 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
|  | 21507 | cat >$CONFIG_STATUS <<_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21508 | #! $SHELL | 
|  | 21509 | # Generated by $as_me. | 
|  | 21510 | # Run this file to recreate the current configuration. | 
|  | 21511 | # Compiler output produced by configure, useful for debugging | 
|  | 21512 | # configure, is in config.log if it exists. | 
|  | 21513 |  | 
|  | 21514 | debug=false | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21515 | ac_cs_recheck=false | 
|  | 21516 | ac_cs_silent=false | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21517 | SHELL=\${CONFIG_SHELL-$SHELL} | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21518 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21519 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21520 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 21521 | ## --------------------- ## | 
|  | 21522 | ## M4sh Initialization.  ## | 
|  | 21523 | ## --------------------- ## | 
|  | 21524 |  | 
|  | 21525 | # Be Bourne compatible | 
|  | 21526 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21527 | emulate sh | 
|  | 21528 | NULLCMD=: | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21529 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21530 | # is contrary to our usage.  Disable this feature. | 
|  | 21531 | alias -g '${1+"$@"}'='"$@"' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21532 | setopt NO_GLOB_SUBST | 
|  | 21533 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21534 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21535 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21536 | BIN_SH=xpg4; export BIN_SH # for Tru64 | 
|  | 21537 | DUALCASE=1; export DUALCASE # for MKS sh | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21538 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21539 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21540 | # PATH needs CR | 
|  | 21541 | # Avoid depending upon Character Ranges. | 
|  | 21542 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 21543 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 21544 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 21545 | as_cr_digits='0123456789' | 
|  | 21546 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21547 |  | 
|  | 21548 | # The user is always right. | 
|  | 21549 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21550 | echo "#! /bin/sh" >conf$$.sh | 
|  | 21551 | echo  "exit 0"   >>conf$$.sh | 
|  | 21552 | chmod +x conf$$.sh | 
|  | 21553 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
|  | 21554 | PATH_SEPARATOR=';' | 
|  | 21555 | else | 
|  | 21556 | PATH_SEPARATOR=: | 
|  | 21557 | fi | 
|  | 21558 | rm -f conf$$.sh | 
|  | 21559 | fi | 
|  | 21560 |  | 
|  | 21561 | # Support unset when possible. | 
|  | 21562 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
|  | 21563 | as_unset=unset | 
|  | 21564 | else | 
|  | 21565 | as_unset=false | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21566 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21567 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21568 |  | 
|  | 21569 | # IFS | 
|  | 21570 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 21571 | # there to prevent editors from complaining about space-tab. | 
|  | 21572 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 21573 | # splitting by setting IFS to empty value.) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21574 | as_nl=' | 
|  | 21575 | ' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21576 | IFS=" ""	$as_nl" | 
|  | 21577 |  | 
|  | 21578 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21579 | case $0 in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21580 | *[\\/]* ) as_myself=$0 ;; | 
|  | 21581 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21582 | for as_dir in $PATH | 
|  | 21583 | do | 
|  | 21584 | IFS=$as_save_IFS | 
|  | 21585 | test -z "$as_dir" && as_dir=. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21586 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 21587 | done | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21588 | IFS=$as_save_IFS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21589 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21590 | ;; | 
|  | 21591 | esac | 
|  | 21592 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 21593 | # in which case we are not to be found in the path. | 
|  | 21594 | if test "x$as_myself" = x; then | 
|  | 21595 | as_myself=$0 | 
|  | 21596 | fi | 
|  | 21597 | if test ! -f "$as_myself"; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21598 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
|  | 21599 | { (exit 1); exit 1; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21600 | fi | 
|  | 21601 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21602 | # Work around bugs in pre-3.0 UWIN ksh. | 
|  | 21603 | for as_var in ENV MAIL MAILPATH | 
|  | 21604 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21605 | done | 
|  | 21606 | PS1='$ ' | 
|  | 21607 | PS2='> ' | 
|  | 21608 | PS4='+ ' | 
|  | 21609 |  | 
|  | 21610 | # NLS nuisances. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21611 | for as_var in \ | 
|  | 21612 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
|  | 21613 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
|  | 21614 | LC_TELEPHONE LC_TIME | 
|  | 21615 | do | 
|  | 21616 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | 
|  | 21617 | eval $as_var=C; export $as_var | 
|  | 21618 | else | 
|  | 21619 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21620 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21621 | done | 
| Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21622 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21623 | # Required to use basename. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21624 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 21625 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 21626 | as_expr=expr | 
|  | 21627 | else | 
|  | 21628 | as_expr=false | 
|  | 21629 | fi | 
|  | 21630 |  | 
|  | 21631 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 21632 | as_basename=basename | 
|  | 21633 | else | 
|  | 21634 | as_basename=false | 
|  | 21635 | fi | 
|  | 21636 |  | 
|  | 21637 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21638 | # Name of the executable. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21639 | as_me=`$as_basename -- "$0" || | 
|  | 21640 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 21641 | X"$0" : 'X\(//\)$' \| \ | 
|  | 21642 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21643 | echo X/"$0" | | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21644 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 21645 | s//\1/ | 
|  | 21646 | q | 
|  | 21647 | } | 
|  | 21648 | /^X\/\(\/\/\)$/{ | 
|  | 21649 | s//\1/ | 
|  | 21650 | q | 
|  | 21651 | } | 
|  | 21652 | /^X\/\(\/\).*/{ | 
|  | 21653 | s//\1/ | 
|  | 21654 | q | 
|  | 21655 | } | 
|  | 21656 | s/.*/./; q'` | 
|  | 21657 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21658 | # CDPATH. | 
|  | 21659 | $as_unset CDPATH | 
|  | 21660 |  | 
|  | 21661 |  | 
|  | 21662 |  | 
|  | 21663 | as_lineno_1=$LINENO | 
|  | 21664 | as_lineno_2=$LINENO | 
|  | 21665 | test "x$as_lineno_1" != "x$as_lineno_2" && | 
|  | 21666 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | 
|  | 21667 |  | 
|  | 21668 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
|  | 21669 | # uniformly replaced by the line number.  The first 'sed' inserts a | 
|  | 21670 | # line-number line after each line using $LINENO; the second 'sed' | 
|  | 21671 | # does the real work.  The second script uses 'N' to pair each | 
|  | 21672 | # line-number line with the line containing $LINENO, and appends | 
|  | 21673 | # trailing '-' during substitution so that $LINENO is not a special | 
|  | 21674 | # case at line end. | 
|  | 21675 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
|  | 21676 | # scripts with optimization help from Paolo Bonzini.  Blame Lee | 
|  | 21677 | # E. McMahon (1931-1989) for sed's syntax.  :-) | 
|  | 21678 | sed -n ' | 
|  | 21679 | p | 
|  | 21680 | /[$]LINENO/= | 
|  | 21681 | ' <$as_myself | | 
|  | 21682 | sed ' | 
|  | 21683 | s/[$]LINENO.*/&-/ | 
|  | 21684 | t lineno | 
|  | 21685 | b | 
|  | 21686 | :lineno | 
|  | 21687 | N | 
|  | 21688 | :loop | 
|  | 21689 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
|  | 21690 | t loop | 
|  | 21691 | s/-\n.*// | 
|  | 21692 | ' >$as_me.lineno && | 
|  | 21693 | chmod +x "$as_me.lineno" || | 
|  | 21694 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | 
|  | 21695 | { (exit 1); exit 1; }; } | 
|  | 21696 |  | 
|  | 21697 | # Don't try to exec as it changes $[0], causing all sort of problems | 
|  | 21698 | # (the dirname of $[0] is not the place where we might find the | 
|  | 21699 | # original and so on.  Autoconf is especially sensitive to this). | 
|  | 21700 | . "./$as_me.lineno" | 
|  | 21701 | # Exit status is that of the last command. | 
|  | 21702 | exit | 
|  | 21703 | } | 
|  | 21704 |  | 
|  | 21705 |  | 
|  | 21706 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 21707 | as_dirname=dirname | 
|  | 21708 | else | 
|  | 21709 | as_dirname=false | 
|  | 21710 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21711 |  | 
|  | 21712 | ECHO_C= ECHO_N= ECHO_T= | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21713 | case `echo -n x` in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21714 | -n*) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21715 | case `echo 'x\c'` in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21716 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21717 | *)   ECHO_C='\c';; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21718 | esac;; | 
|  | 21719 | *) | 
|  | 21720 | ECHO_N='-n';; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21721 | esac | 
|  | 21722 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21723 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 21724 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 21725 | as_expr=expr | 
|  | 21726 | else | 
|  | 21727 | as_expr=false | 
|  | 21728 | fi | 
|  | 21729 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21730 | rm -f conf$$ conf$$.exe conf$$.file | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21731 | if test -d conf$$.dir; then | 
|  | 21732 | rm -f conf$$.dir/conf$$.file | 
|  | 21733 | else | 
|  | 21734 | rm -f conf$$.dir | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21735 | mkdir conf$$.dir | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21736 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21737 | echo >conf$$.file | 
|  | 21738 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 21739 | as_ln_s='ln -s' | 
|  | 21740 | # ... but there are two gotchas: | 
|  | 21741 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 21742 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
|  | 21743 | # In both cases, we have to default to `cp -p'. | 
|  | 21744 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21745 | as_ln_s='cp -p' | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21746 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 21747 | as_ln_s=ln | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21748 | else | 
|  | 21749 | as_ln_s='cp -p' | 
|  | 21750 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21751 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 21752 | rmdir conf$$.dir 2>/dev/null | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21753 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21754 | if mkdir -p . 2>/dev/null; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21755 | as_mkdir_p=: | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21756 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21757 | test -d ./-p && rmdir ./-p | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21758 | as_mkdir_p=false | 
|  | 21759 | fi | 
|  | 21760 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21761 | # Find out whether ``test -x'' works.  Don't use a zero-byte file, as | 
|  | 21762 | # systems may use methods other than mode bits to determine executability. | 
|  | 21763 | cat >conf$$.file <<_ASEOF | 
|  | 21764 | #! /bin/sh | 
|  | 21765 | exit 0 | 
|  | 21766 | _ASEOF | 
|  | 21767 | chmod +x conf$$.file | 
|  | 21768 | if test -x conf$$.file >/dev/null 2>&1; then | 
|  | 21769 | as_executable_p="test -x" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21770 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21771 | as_executable_p=: | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21772 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21773 | rm -f conf$$.file | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21774 |  | 
|  | 21775 | # Sed expression to map a string onto a valid CPP name. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21776 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21777 |  | 
|  | 21778 | # Sed expression to map a string onto a valid variable name. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21779 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21780 |  | 
|  | 21781 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21782 | exec 6>&1 | 
|  | 21783 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21784 | # Save the log message, to keep $[0] and so on meaningful, and to | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21785 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21786 | # values after options handling. | 
|  | 21787 | ac_log=" | 
| Benjamin Kramer | fbb9f48 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 21788 | This file was extended by LLVM $as_me 3.2svn, which was | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21789 | generated by GNU Autoconf 2.60.  Invocation command line was | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21790 |  | 
|  | 21791 | CONFIG_FILES    = $CONFIG_FILES | 
|  | 21792 | CONFIG_HEADERS  = $CONFIG_HEADERS | 
|  | 21793 | CONFIG_LINKS    = $CONFIG_LINKS | 
|  | 21794 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 
|  | 21795 | $ $0 $@ | 
|  | 21796 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21797 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 21798 | " | 
|  | 21799 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21800 | _ACEOF | 
|  | 21801 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21802 | cat >>$CONFIG_STATUS <<_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21803 | # Files that config.status was made for. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21804 | config_files="$ac_config_files" | 
|  | 21805 | config_headers="$ac_config_headers" | 
|  | 21806 | config_commands="$ac_config_commands" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21807 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21808 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21809 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21810 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21811 | ac_cs_usage="\ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21812 | \`$as_me' instantiates files from templates according to the | 
|  | 21813 | current configuration. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21814 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21815 | Usage: $0 [OPTIONS] [FILE]... | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21816 |  | 
|  | 21817 | -h, --help       print this help, then exit | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21818 | -V, --version    print version number, then exit | 
|  | 21819 | -q, --quiet      do not print progress messages | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21820 | -d, --debug      don't remove temporary files | 
|  | 21821 | --recheck    update $as_me by reconfiguring in the same conditions | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21822 | --file=FILE[:TEMPLATE] | 
|  | 21823 | instantiate the configuration file FILE | 
|  | 21824 | --header=FILE[:TEMPLATE] | 
|  | 21825 | instantiate the configuration header FILE | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21826 |  | 
|  | 21827 | Configuration files: | 
|  | 21828 | $config_files | 
|  | 21829 |  | 
|  | 21830 | Configuration headers: | 
|  | 21831 | $config_headers | 
|  | 21832 |  | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21833 | Configuration commands: | 
|  | 21834 | $config_commands | 
|  | 21835 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21836 | Report bugs to <bug-autoconf@gnu.org>." | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21837 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21838 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21839 | cat >>$CONFIG_STATUS <<_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21840 | ac_cs_version="\\ | 
| Benjamin Kramer | fbb9f48 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 21841 | LLVM config.status 3.2svn | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21842 | configured by $0, generated by GNU Autoconf 2.60, | 
|  | 21843 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21844 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21845 | Copyright (C) 2006 Free Software Foundation, Inc. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21846 | This config.status script is free software; the Free Software Foundation | 
|  | 21847 | gives unlimited permission to copy, distribute and modify it." | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21848 |  | 
|  | 21849 | ac_pwd='$ac_pwd' | 
|  | 21850 | srcdir='$srcdir' | 
|  | 21851 | INSTALL='$INSTALL' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21852 | _ACEOF | 
|  | 21853 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21854 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 21855 | # If no file are specified by the user, then we need to provide default | 
|  | 21856 | # value.  By we need to know if files were specified by the user. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21857 | ac_need_defaults=: | 
|  | 21858 | while test $# != 0 | 
|  | 21859 | do | 
|  | 21860 | case $1 in | 
|  | 21861 | --*=*) | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21862 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 21863 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21864 | ac_shift=: | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21865 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21866 | *) | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21867 | ac_option=$1 | 
|  | 21868 | ac_optarg=$2 | 
|  | 21869 | ac_shift=shift | 
|  | 21870 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21871 | esac | 
|  | 21872 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21873 | case $ac_option in | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21874 | # Handling of the options. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21875 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|  | 21876 | ac_cs_recheck=: ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21877 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21878 | echo "$ac_cs_version"; exit ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21879 | --debug | --debu | --deb | --de | --d | -d ) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21880 | debug=: ;; | 
|  | 21881 | --file | --fil | --fi | --f ) | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21882 | $ac_shift | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21883 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21884 | ac_need_defaults=false;; | 
|  | 21885 | --header | --heade | --head | --hea ) | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21886 | $ac_shift | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21887 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21888 | ac_need_defaults=false;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21889 | --he | --h) | 
|  | 21890 | # Conflict between --help and --header | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21891 | { echo "$as_me: error: ambiguous option: $1 | 
|  | 21892 | Try \`$0 --help' for more information." >&2 | 
|  | 21893 | { (exit 1); exit 1; }; };; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21894 | --help | --hel | -h ) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21895 | echo "$ac_cs_usage"; exit ;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21896 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 21897 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
|  | 21898 | ac_cs_silent=: ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21899 |  | 
|  | 21900 | # This is an error. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21901 | -*) { echo "$as_me: error: unrecognized option: $1 | 
|  | 21902 | Try \`$0 --help' for more information." >&2 | 
|  | 21903 | { (exit 1); exit 1; }; } ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21904 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21905 | *) ac_config_targets="$ac_config_targets $1" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21906 | ac_need_defaults=false ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21907 |  | 
|  | 21908 | esac | 
|  | 21909 | shift | 
|  | 21910 | done | 
|  | 21911 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21912 | ac_configure_extra_args= | 
|  | 21913 |  | 
|  | 21914 | if $ac_cs_silent; then | 
|  | 21915 | exec 6>/dev/null | 
|  | 21916 | ac_configure_extra_args="$ac_configure_extra_args --silent" | 
|  | 21917 | fi | 
|  | 21918 |  | 
|  | 21919 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21920 | cat >>$CONFIG_STATUS <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21921 | if \$ac_cs_recheck; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21922 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | 
|  | 21923 | CONFIG_SHELL=$SHELL | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21924 | export CONFIG_SHELL | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21925 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21926 | fi | 
|  | 21927 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21928 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21929 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21930 | exec 5>>config.log | 
|  | 21931 | { | 
|  | 21932 | echo | 
|  | 21933 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
|  | 21934 | ## Running $as_me. ## | 
|  | 21935 | _ASBOX | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21936 | echo "$ac_log" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21937 | } >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21938 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21939 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21940 | cat >>$CONFIG_STATUS <<_ACEOF | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21941 | # | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21942 | # INIT-COMMANDS | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21943 | # | 
| Reid Spencer | eeedeaf | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21944 | llvm_src="${srcdir}" | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21945 |  | 
|  | 21946 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21947 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21948 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21949 |  | 
|  | 21950 | # Handling of arguments. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21951 | for ac_config_target in $ac_config_targets | 
|  | 21952 | do | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21953 | case $ac_config_target in | 
|  | 21954 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; | 
| Eric Christopher | 97014d8 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 21955 | "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; | 
| Douglas Gregor | 1b731d5 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 21956 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; | 
|  | 21957 | "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; | 
| Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21958 | "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; | 
| Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 21959 | "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; | 
| Michael J. Spencer | 447762d | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 21960 | "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21961 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; | 
| Reid Spencer | 1277ba2 | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21962 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; | 
| Peter Collingbourne | 5ac59df | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21963 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; | 
| Dylan Noblesmith | a7a29c17 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 21964 | "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;; | 
|  | 21965 | "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;; | 
| Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21966 | "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21967 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; | 
|  | 21968 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; | 
|  | 21969 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; | 
|  | 21970 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; | 
|  | 21971 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; | 
| Reid Spencer | 4b8067f | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21972 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21973 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; | 
|  | 21974 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; | 
| Bill Wendling | 7c53a18 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21975 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21976 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; | 
|  | 21977 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; | 
|  | 21978 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; | 
| Gordon Henriksen | 6ab5c57 | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21979 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; | 
|  | 21980 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21981 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21982 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | 
|  | 21983 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | 
|  | 21984 | { (exit 1); exit 1; }; };; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21985 | esac | 
|  | 21986 | done | 
|  | 21987 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21988 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21989 | # If the user did not use the arguments to specify the items to instantiate, | 
|  | 21990 | # then the envvar interface is used.  Set only those that are not. | 
|  | 21991 | # We use the long form for the default assignment because of an extremely | 
|  | 21992 | # bizarre bug on SunOS 4.1.3. | 
|  | 21993 | if $ac_need_defaults; then | 
|  | 21994 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
|  | 21995 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21996 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21997 | fi | 
|  | 21998 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21999 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22000 | # simply because there is no reason against having it here, and in addition, | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22001 | # creating and moving files from /tmp can sometimes cause problems. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22002 | # Hook for its removal unless debugging. | 
|  | 22003 | # Note that there is a small window in which the directory will not be cleaned: | 
|  | 22004 | # after its creation but before its name has been assigned to `$tmp'. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22005 | $debug || | 
|  | 22006 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22007 | tmp= | 
|  | 22008 | trap 'exit_status=$? | 
|  | 22009 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | 
|  | 22010 | ' 0 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22011 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22012 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22013 | # Create a (secure) tmp directory for tmp files. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22014 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22015 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22016 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22017 | test -n "$tmp" && test -d "$tmp" | 
|  | 22018 | }  || | 
|  | 22019 | { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22020 | tmp=./conf$$-$RANDOM | 
|  | 22021 | (umask 077 && mkdir "$tmp") | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22022 | } || | 
|  | 22023 | { | 
|  | 22024 | echo "$me: cannot create a temporary directory in ." >&2 | 
|  | 22025 | { (exit 1); exit 1; } | 
|  | 22026 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22027 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22028 | # | 
|  | 22029 | # Set up the sed scripts for CONFIG_FILES section. | 
|  | 22030 | # | 
|  | 22031 |  | 
|  | 22032 | # No need to generate the scripts if there are no CONFIG_FILES. | 
|  | 22033 | # This happens for instance when ./config.status config.h | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22034 | if test -n "$CONFIG_FILES"; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22035 |  | 
|  | 22036 | _ACEOF | 
|  | 22037 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22038 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22039 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22040 | ac_delim='%!_!# ' | 
|  | 22041 | for ac_last_try in false false false false false :; do | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22042 | cat >conf$$subs.sed <<_ACEOF | 
|  | 22043 | SHELL!$SHELL$ac_delim | 
|  | 22044 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | 
|  | 22045 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | 
|  | 22046 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | 
|  | 22047 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | 
|  | 22048 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | 
|  | 22049 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | 
|  | 22050 | exec_prefix!$exec_prefix$ac_delim | 
|  | 22051 | prefix!$prefix$ac_delim | 
|  | 22052 | program_transform_name!$program_transform_name$ac_delim | 
|  | 22053 | bindir!$bindir$ac_delim | 
|  | 22054 | sbindir!$sbindir$ac_delim | 
|  | 22055 | libexecdir!$libexecdir$ac_delim | 
|  | 22056 | datarootdir!$datarootdir$ac_delim | 
|  | 22057 | datadir!$datadir$ac_delim | 
|  | 22058 | sysconfdir!$sysconfdir$ac_delim | 
|  | 22059 | sharedstatedir!$sharedstatedir$ac_delim | 
|  | 22060 | localstatedir!$localstatedir$ac_delim | 
|  | 22061 | includedir!$includedir$ac_delim | 
|  | 22062 | oldincludedir!$oldincludedir$ac_delim | 
|  | 22063 | docdir!$docdir$ac_delim | 
|  | 22064 | infodir!$infodir$ac_delim | 
|  | 22065 | htmldir!$htmldir$ac_delim | 
|  | 22066 | dvidir!$dvidir$ac_delim | 
|  | 22067 | pdfdir!$pdfdir$ac_delim | 
|  | 22068 | psdir!$psdir$ac_delim | 
|  | 22069 | libdir!$libdir$ac_delim | 
|  | 22070 | localedir!$localedir$ac_delim | 
|  | 22071 | mandir!$mandir$ac_delim | 
|  | 22072 | DEFS!$DEFS$ac_delim | 
|  | 22073 | ECHO_C!$ECHO_C$ac_delim | 
|  | 22074 | ECHO_N!$ECHO_N$ac_delim | 
|  | 22075 | ECHO_T!$ECHO_T$ac_delim | 
|  | 22076 | LIBS!$LIBS$ac_delim | 
|  | 22077 | build_alias!$build_alias$ac_delim | 
|  | 22078 | host_alias!$host_alias$ac_delim | 
|  | 22079 | target_alias!$target_alias$ac_delim | 
|  | 22080 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 22081 | CC!$CC$ac_delim | 
|  | 22082 | CFLAGS!$CFLAGS$ac_delim | 
|  | 22083 | LDFLAGS!$LDFLAGS$ac_delim | 
|  | 22084 | CPPFLAGS!$CPPFLAGS$ac_delim | 
|  | 22085 | ac_ct_CC!$ac_ct_CC$ac_delim | 
|  | 22086 | EXEEXT!$EXEEXT$ac_delim | 
|  | 22087 | OBJEXT!$OBJEXT$ac_delim | 
|  | 22088 | CXX!$CXX$ac_delim | 
|  | 22089 | CXXFLAGS!$CXXFLAGS$ac_delim | 
|  | 22090 | ac_ct_CXX!$ac_ct_CXX$ac_delim | 
|  | 22091 | CPP!$CPP$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22092 | subdirs!$subdirs$ac_delim | 
| Tobias Grosser | ea9dca4 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 22093 | ENABLE_POLLY!$ENABLE_POLLY$ac_delim | 
|  | 22094 | LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22095 | build!$build$ac_delim | 
|  | 22096 | build_cpu!$build_cpu$ac_delim | 
|  | 22097 | build_vendor!$build_vendor$ac_delim | 
|  | 22098 | build_os!$build_os$ac_delim | 
|  | 22099 | host!$host$ac_delim | 
|  | 22100 | host_cpu!$host_cpu$ac_delim | 
|  | 22101 | host_vendor!$host_vendor$ac_delim | 
|  | 22102 | host_os!$host_os$ac_delim | 
|  | 22103 | target!$target$ac_delim | 
|  | 22104 | target_cpu!$target_cpu$ac_delim | 
|  | 22105 | target_vendor!$target_vendor$ac_delim | 
|  | 22106 | target_os!$target_os$ac_delim | 
|  | 22107 | OS!$OS$ac_delim | 
|  | 22108 | HOST_OS!$HOST_OS$ac_delim | 
|  | 22109 | TARGET_OS!$TARGET_OS$ac_delim | 
|  | 22110 | LINKALL!$LINKALL$ac_delim | 
|  | 22111 | NOLINKALL!$NOLINKALL$ac_delim | 
|  | 22112 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim | 
|  | 22113 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim | 
|  | 22114 | ARCH!$ARCH$ac_delim | 
|  | 22115 | ENDIAN!$ENDIAN$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22116 | GREP!$GREP$ac_delim | 
|  | 22117 | EGREP!$EGREP$ac_delim | 
|  | 22118 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim | 
|  | 22119 | BUILD_CC!$BUILD_CC$ac_delim | 
|  | 22120 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim | 
|  | 22121 | BUILD_CXX!$BUILD_CXX$ac_delim | 
|  | 22122 | CVSBUILD!$CVSBUILD$ac_delim | 
| Eric Christopher | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 22123 | ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22124 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim | 
|  | 22125 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim | 
|  | 22126 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim | 
|  | 22127 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim | 
|  | 22128 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim | 
|  | 22129 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim | 
|  | 22130 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim | 
|  | 22131 | JIT!$JIT$ac_delim | 
|  | 22132 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim | 
| Rafael Espindola | 7ac506d | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 22133 | ENABLE_DOCS!$ENABLE_DOCS$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22134 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim | 
| NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 22135 | LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim | 
| NAKAMURA Takumi | c6fce17 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 22136 | ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22137 | ENABLE_PIC!$ENABLE_PIC$ac_delim | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 22138 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim | 
| NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 22139 | ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22140 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22141 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22142 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22143 | break | 
|  | 22144 | elif $ac_last_try; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22145 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 
|  | 22146 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | 
|  | 22147 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22148 | else | 
|  | 22149 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22150 | fi | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22151 | done | 
|  | 22152 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22153 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | 
|  | 22154 | if test -n "$ac_eof"; then | 
|  | 22155 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | 
|  | 22156 | ac_eof=`expr $ac_eof + 1` | 
|  | 22157 | fi | 
|  | 22158 |  | 
|  | 22159 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22160 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | 
|  | 22161 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22162 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22163 | sed ' | 
|  | 22164 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | 
|  | 22165 | s/^/s,@/; s/!/@,|#_!!_#|/ | 
|  | 22166 | :n | 
|  | 22167 | t n | 
|  | 22168 | s/'"$ac_delim"'$/,g/; t | 
|  | 22169 | s/$/\\/; p | 
|  | 22170 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | 
|  | 22171 | ' >>$CONFIG_STATUS <conf$$subs.sed | 
|  | 22172 | rm -f conf$$subs.sed | 
|  | 22173 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22174 | CEOF$ac_eof | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22175 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22176 |  | 
|  | 22177 |  | 
|  | 22178 | ac_delim='%!_!# ' | 
|  | 22179 | for ac_last_try in false false false false false :; do | 
|  | 22180 | cat >conf$$subs.sed <<_ACEOF | 
| Eric Christopher | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 22181 | ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim | 
| Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 22182 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim | 
|  | 22183 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim | 
|  | 22184 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim | 
| NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 22185 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim | 
| NAKAMURA Takumi | c6fce17 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 22186 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 22187 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim | 
| Daniel Dunbar | 49b962c | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 22188 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim | 
| Daniel Dunbar | 3b95df8 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 22189 | EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim | 
| NAKAMURA Takumi | 914f192 | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 22190 | CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim | 
| Daniel Dunbar | 49b962c | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 22191 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim | 
| Bob Wilson | 3f35470 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 22192 | INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22193 | NM!$NM$ac_delim | 
|  | 22194 | ifGNUmake!$ifGNUmake$ac_delim | 
|  | 22195 | LN_S!$LN_S$ac_delim | 
|  | 22196 | CMP!$CMP$ac_delim | 
|  | 22197 | CP!$CP$ac_delim | 
|  | 22198 | DATE!$DATE$ac_delim | 
|  | 22199 | FIND!$FIND$ac_delim | 
|  | 22200 | MKDIR!$MKDIR$ac_delim | 
|  | 22201 | MV!$MV$ac_delim | 
|  | 22202 | RANLIB!$RANLIB$ac_delim | 
|  | 22203 | AR!$AR$ac_delim | 
|  | 22204 | RM!$RM$ac_delim | 
|  | 22205 | SED!$SED$ac_delim | 
|  | 22206 | TAR!$TAR$ac_delim | 
|  | 22207 | BINPWD!$BINPWD$ac_delim | 
|  | 22208 | GRAPHVIZ!$GRAPHVIZ$ac_delim | 
|  | 22209 | DOT!$DOT$ac_delim | 
|  | 22210 | FDP!$FDP$ac_delim | 
|  | 22211 | NEATO!$NEATO$ac_delim | 
|  | 22212 | TWOPI!$TWOPI$ac_delim | 
|  | 22213 | CIRCO!$CIRCO$ac_delim | 
|  | 22214 | GV!$GV$ac_delim | 
|  | 22215 | DOTTY!$DOTTY$ac_delim | 
| Dan Gohman | a0da889 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 22216 | XDOT_PY!$XDOT_PY$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22217 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | 
|  | 22218 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | 
|  | 22219 | INSTALL_DATA!$INSTALL_DATA$ac_delim | 
|  | 22220 | BZIP2!$BZIP2$ac_delim | 
| mike-m | e08af30 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 22221 | CAT!$CAT$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22222 | DOXYGEN!$DOXYGEN$ac_delim | 
|  | 22223 | GROFF!$GROFF$ac_delim | 
| Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 22224 | GZIPBIN!$GZIPBIN$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22225 | POD2HTML!$POD2HTML$ac_delim | 
|  | 22226 | POD2MAN!$POD2MAN$ac_delim | 
| mike-m | e08af30 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 22227 | PDFROFF!$PDFROFF$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22228 | RUNTEST!$RUNTEST$ac_delim | 
|  | 22229 | TCLSH!$TCLSH$ac_delim | 
|  | 22230 | ZIP!$ZIP$ac_delim | 
|  | 22231 | OCAMLC!$OCAMLC$ac_delim | 
|  | 22232 | OCAMLOPT!$OCAMLOPT$ac_delim | 
|  | 22233 | OCAMLDEP!$OCAMLDEP$ac_delim | 
|  | 22234 | OCAMLDOC!$OCAMLDOC$ac_delim | 
|  | 22235 | GAS!$GAS$ac_delim | 
| Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 22236 | HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22237 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim | 
|  | 22238 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim | 
|  | 22239 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim | 
|  | 22240 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim | 
|  | 22241 | LIBADD_DL!$LIBADD_DL$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22242 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim | 
|  | 22243 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim | 
| Rafael Espindola | 42e94d1 | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 22244 | COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22245 | USE_UDIS86!$USE_UDIS86$ac_delim | 
|  | 22246 | USE_OPROFILE!$USE_OPROFILE$ac_delim | 
| Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 22247 | USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim | 
|  | 22248 | INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim | 
|  | 22249 | INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22250 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim | 
|  | 22251 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim | 
|  | 22252 | MMAP_FILE!$MMAP_FILE$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22253 | SHLIBEXT!$SHLIBEXT$ac_delim | 
| Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 22254 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22255 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim | 
|  | 22256 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim | 
|  | 22257 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim | 
|  | 22258 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim | 
|  | 22259 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim | 
|  | 22260 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim | 
|  | 22261 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim | 
|  | 22262 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim | 
|  | 22263 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim | 
|  | 22264 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim | 
|  | 22265 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim | 
|  | 22266 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim | 
| Eric Christopher | 155137b | 2011-09-20 23:58:15 +0000 | [diff] [blame] | 22267 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim | 
|  | 22268 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim | 
|  | 22269 | RPATH!$RPATH$ac_delim | 
|  | 22270 | RDYNAMIC!$RDYNAMIC$ac_delim | 
|  | 22271 | LIBOBJS!$LIBOBJS$ac_delim | 
|  | 22272 | LTLIBOBJS!$LTLIBOBJS$ac_delim | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22273 | _ACEOF | 
|  | 22274 |  | 
| Eric Christopher | 64a2323 | 2012-03-23 05:50:46 +0000 | [diff] [blame] | 22275 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22276 | break | 
|  | 22277 | elif $ac_last_try; then | 
|  | 22278 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 
|  | 22279 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | 
|  | 22280 | { (exit 1); exit 1; }; } | 
|  | 22281 | else | 
|  | 22282 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
|  | 22283 | fi | 
|  | 22284 | done | 
|  | 22285 |  | 
|  | 22286 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | 
|  | 22287 | if test -n "$ac_eof"; then | 
|  | 22288 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | 
|  | 22289 | ac_eof=`expr $ac_eof + 1` | 
|  | 22290 | fi | 
|  | 22291 |  | 
|  | 22292 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22293 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | 
| Tobias Grosser | 61cb245 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22294 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | 
|  | 22295 | _ACEOF | 
|  | 22296 | sed ' | 
|  | 22297 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | 
|  | 22298 | s/^/s,@/; s/!/@,|#_!!_#|/ | 
|  | 22299 | :n | 
|  | 22300 | t n | 
|  | 22301 | s/'"$ac_delim"'$/,g/; t | 
|  | 22302 | s/$/\\/; p | 
|  | 22303 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | 
|  | 22304 | ' >>$CONFIG_STATUS <conf$$subs.sed | 
|  | 22305 | rm -f conf$$subs.sed | 
|  | 22306 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22307 | :end | 
|  | 22308 | s/|#_!!_#|//g | 
|  | 22309 | CEOF$ac_eof | 
|  | 22310 | _ACEOF | 
|  | 22311 |  | 
|  | 22312 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22313 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | 
|  | 22314 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | 
|  | 22315 | # trailing colons and then remove the whole line if VPATH becomes empty | 
|  | 22316 | # (actually we leave an empty line to preserve line numbers). | 
|  | 22317 | if test "x$srcdir" = x.; then | 
|  | 22318 | ac_vpsub='/^[	 ]*VPATH[	 ]*=/{ | 
|  | 22319 | s/:*\$(srcdir):*/:/ | 
|  | 22320 | s/:*\${srcdir}:*/:/ | 
|  | 22321 | s/:*@srcdir@:*/:/ | 
|  | 22322 | s/^\([^=]*=[	 ]*\):*/\1/ | 
|  | 22323 | s/:*$// | 
|  | 22324 | s/^[^=]*=[	 ]*$// | 
|  | 22325 | }' | 
|  | 22326 | fi | 
|  | 22327 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22328 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22329 | fi # test -n "$CONFIG_FILES" | 
|  | 22330 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22331 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22332 | for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22333 | do | 
|  | 22334 | case $ac_tag in | 
|  | 22335 | :[FHLC]) ac_mode=$ac_tag; continue;; | 
|  | 22336 | esac | 
|  | 22337 | case $ac_mode$ac_tag in | 
|  | 22338 | :[FHL]*:*);; | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22339 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | 
|  | 22340 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | 
|  | 22341 | { (exit 1); exit 1; }; };; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22342 | :[FH]-) ac_tag=-:-;; | 
|  | 22343 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
|  | 22344 | esac | 
|  | 22345 | ac_save_IFS=$IFS | 
|  | 22346 | IFS=: | 
|  | 22347 | set x $ac_tag | 
|  | 22348 | IFS=$ac_save_IFS | 
|  | 22349 | shift | 
|  | 22350 | ac_file=$1 | 
|  | 22351 | shift | 
|  | 22352 |  | 
|  | 22353 | case $ac_mode in | 
|  | 22354 | :L) ac_source=$1;; | 
|  | 22355 | :[FH]) | 
|  | 22356 | ac_file_inputs= | 
|  | 22357 | for ac_f | 
|  | 22358 | do | 
|  | 22359 | case $ac_f in | 
|  | 22360 | -) ac_f="$tmp/stdin";; | 
|  | 22361 | *) # Look for the file first in the build tree, then in the source tree | 
|  | 22362 | # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
|  | 22363 | # because $ac_f cannot contain `:'. | 
|  | 22364 | test -f "$ac_f" || | 
|  | 22365 | case $ac_f in | 
|  | 22366 | [\\/$]*) false;; | 
|  | 22367 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
|  | 22368 | esac || | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22369 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | 
|  | 22370 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | 
|  | 22371 | { (exit 1); exit 1; }; };; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22372 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22373 | ac_file_inputs="$ac_file_inputs $ac_f" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22374 | done | 
|  | 22375 |  | 
|  | 22376 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 22377 | # use $as_me), people would be surprised to read: | 
|  | 22378 | #    /* config.h.  Generated by config.status.  */ | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22379 | configure_input="Generated from "`IFS=: | 
|  | 22380 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22381 | if test x"$ac_file" != x-; then | 
|  | 22382 | configure_input="$ac_file.  $configure_input" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22383 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
|  | 22384 | echo "$as_me: creating $ac_file" >&6;} | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22385 | fi | 
|  | 22386 |  | 
|  | 22387 | case $ac_tag in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22388 | *:-:* | *:-) cat >"$tmp/stdin";; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22389 | esac | 
|  | 22390 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22391 | esac | 
|  | 22392 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22393 | ac_dir=`$as_dirname -- "$ac_file" || | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22394 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22395 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 22396 | X"$ac_file" : 'X\(//\)$' \| \ | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22397 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22398 | echo X"$ac_file" | | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22399 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 22400 | s//\1/ | 
|  | 22401 | q | 
|  | 22402 | } | 
|  | 22403 | /^X\(\/\/\)[^/].*/{ | 
|  | 22404 | s//\1/ | 
|  | 22405 | q | 
|  | 22406 | } | 
|  | 22407 | /^X\(\/\/\)$/{ | 
|  | 22408 | s//\1/ | 
|  | 22409 | q | 
|  | 22410 | } | 
|  | 22411 | /^X\(\/\).*/{ | 
|  | 22412 | s//\1/ | 
|  | 22413 | q | 
|  | 22414 | } | 
|  | 22415 | s/.*/./; q'` | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22416 | { as_dir="$ac_dir" | 
|  | 22417 | case $as_dir in #( | 
|  | 22418 | -*) as_dir=./$as_dir;; | 
|  | 22419 | esac | 
|  | 22420 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | 
|  | 22421 | as_dirs= | 
|  | 22422 | while :; do | 
|  | 22423 | case $as_dir in #( | 
|  | 22424 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | 
|  | 22425 | *) as_qdir=$as_dir;; | 
|  | 22426 | esac | 
|  | 22427 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 22428 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 22429 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 22430 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 22431 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 22432 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 22433 | echo X"$as_dir" | | 
|  | 22434 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 22435 | s//\1/ | 
|  | 22436 | q | 
|  | 22437 | } | 
|  | 22438 | /^X\(\/\/\)[^/].*/{ | 
|  | 22439 | s//\1/ | 
|  | 22440 | q | 
|  | 22441 | } | 
|  | 22442 | /^X\(\/\/\)$/{ | 
|  | 22443 | s//\1/ | 
|  | 22444 | q | 
|  | 22445 | } | 
|  | 22446 | /^X\(\/\).*/{ | 
|  | 22447 | s//\1/ | 
|  | 22448 | q | 
|  | 22449 | } | 
|  | 22450 | s/.*/./; q'` | 
|  | 22451 | test -d "$as_dir" && break | 
|  | 22452 | done | 
|  | 22453 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
|  | 22454 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | 
|  | 22455 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | 
|  | 22456 | { (exit 1); exit 1; }; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22457 | ac_builddir=. | 
|  | 22458 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22459 | case "$ac_dir" in | 
|  | 22460 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 22461 | *) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22462 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22463 | # A ".." for each directory in $ac_dir_suffix. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22464 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22465 | case $ac_top_builddir_sub in | 
|  | 22466 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 22467 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 22468 | esac ;; | 
|  | 22469 | esac | 
|  | 22470 | ac_abs_top_builddir=$ac_pwd | 
|  | 22471 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 22472 | # for backward compatibility: | 
|  | 22473 | ac_top_builddir=$ac_top_build_prefix | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22474 |  | 
|  | 22475 | case $srcdir in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22476 | .)  # We are building in place. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22477 | ac_srcdir=. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22478 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 22479 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 22480 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22481 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22482 | ac_top_srcdir=$srcdir | 
|  | 22483 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 22484 | *) # Relative name. | 
|  | 22485 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 22486 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 22487 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22488 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22489 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22490 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22491 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22492 | case $ac_mode in | 
|  | 22493 | :F) | 
|  | 22494 | # | 
|  | 22495 | # CONFIG_FILE | 
|  | 22496 | # | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22497 |  | 
|  | 22498 | case $INSTALL in | 
|  | 22499 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22500 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22501 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22502 | _ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22503 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22504 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22505 | # If the template does not know about datarootdir, expand it. | 
|  | 22506 | # FIXME: This hack should be removed a few years after 2.60. | 
|  | 22507 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22508 |  | 
|  | 22509 | case `sed -n '/datarootdir/ { | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22510 | p | 
|  | 22511 | q | 
|  | 22512 | } | 
|  | 22513 | /@datadir@/p | 
|  | 22514 | /@docdir@/p | 
|  | 22515 | /@infodir@/p | 
|  | 22516 | /@localedir@/p | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22517 | /@mandir@/p | 
|  | 22518 | ' $ac_file_inputs` in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22519 | *datarootdir*) ac_datarootdir_seen=yes;; | 
|  | 22520 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22521 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
|  | 22522 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22523 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22524 | cat >>$CONFIG_STATUS <<_ACEOF | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22525 | ac_datarootdir_hack=' | 
|  | 22526 | s&@datadir@&$datadir&g | 
|  | 22527 | s&@docdir@&$docdir&g | 
|  | 22528 | s&@infodir@&$infodir&g | 
|  | 22529 | s&@localedir@&$localedir&g | 
|  | 22530 | s&@mandir@&$mandir&g | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22531 | s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22532 | esac | 
|  | 22533 | _ACEOF | 
|  | 22534 |  | 
|  | 22535 | # Neutralize VPATH when `$srcdir' = `.'. | 
|  | 22536 | # Shell code in configure.ac might set extrasub. | 
|  | 22537 | # FIXME: do we really want to maintain this feature? | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22538 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22539 | sed "$ac_vpsub | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22540 | $extrasub | 
|  | 22541 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22542 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22543 | :t | 
|  | 22544 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22545 | s&@configure_input@&$configure_input&;t t | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22546 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
|  | 22547 | s&@srcdir@&$ac_srcdir&;t t | 
|  | 22548 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
|  | 22549 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
|  | 22550 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
|  | 22551 | s&@builddir@&$ac_builddir&;t t | 
|  | 22552 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
|  | 22553 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
|  | 22554 | s&@INSTALL@&$ac_INSTALL&;t t | 
|  | 22555 | $ac_datarootdir_hack | 
| Eric Christopher | 155137b | 2011-09-20 23:58:15 +0000 | [diff] [blame] | 22556 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22557 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22558 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
|  | 22559 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | 
|  | 22560 | { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22561 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22562 | which seems to be undefined.  Please make sure it is defined." >&5 | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22563 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22564 | which seems to be undefined.  Please make sure it is defined." >&2;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22565 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22566 | rm -f "$tmp/stdin" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22567 | case $ac_file in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22568 | -) cat "$tmp/out"; rm -f "$tmp/out";; | 
|  | 22569 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | 
|  | 22570 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22571 | ;; | 
|  | 22572 | :H) | 
|  | 22573 | # | 
|  | 22574 | # CONFIG_HEADER | 
|  | 22575 | # | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22576 | _ACEOF | 
|  | 22577 |  | 
|  | 22578 | # Transform confdefs.h into a sed script `conftest.defines', that | 
|  | 22579 | # substitutes the proper values into config.h.in to produce config.h. | 
|  | 22580 | rm -f conftest.defines conftest.tail | 
|  | 22581 | # First, append a space to every undef/define line, to ease matching. | 
|  | 22582 | echo 's/$/ /' >conftest.defines | 
|  | 22583 | # Then, protect against being on the right side of a sed subst, or in | 
|  | 22584 | # an unquoted here document, in config.status.  If some macros were | 
|  | 22585 | # called several times there might be several #defines for the same | 
|  | 22586 | # symbol, which is useless.  But do not sort them, since the last | 
|  | 22587 | # AC_DEFINE must be honored. | 
|  | 22588 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
|  | 22589 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | 
|  | 22590 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | 
|  | 22591 | # PARAMS is the parameter list in the macro definition--in most cases, it's | 
|  | 22592 | # just an empty string. | 
|  | 22593 | ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*' | 
|  | 22594 | ac_dB='\\)[	 (].*,\\1define\\2' | 
|  | 22595 | ac_dC=' ' | 
|  | 22596 | ac_dD=' ,' | 
|  | 22597 |  | 
|  | 22598 | uniq confdefs.h | | 
|  | 22599 | sed -n ' | 
|  | 22600 | t rset | 
|  | 22601 | :rset | 
|  | 22602 | s/^[	 ]*#[	 ]*define[	 ][	 ]*// | 
|  | 22603 | t ok | 
|  | 22604 | d | 
|  | 22605 | :ok | 
|  | 22606 | s/[\\&,]/\\&/g | 
|  | 22607 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | 
|  | 22608 | s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | 
|  | 22609 | ' >>conftest.defines | 
|  | 22610 |  | 
|  | 22611 | # Remove the space that was appended to ease matching. | 
|  | 22612 | # Then replace #undef with comments.  This is necessary, for | 
|  | 22613 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
|  | 22614 | # on some systems where configure will not decide to define it. | 
|  | 22615 | # (The regexp can be short, since the line contains either #define or #undef.) | 
|  | 22616 | echo 's/ $// | 
|  | 22617 | s,^[	 #]*u.*,/* & */,' >>conftest.defines | 
|  | 22618 |  | 
|  | 22619 | # Break up conftest.defines: | 
|  | 22620 | ac_max_sed_lines=50 | 
|  | 22621 |  | 
|  | 22622 | # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1" | 
|  | 22623 | # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2" | 
|  | 22624 | # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1" | 
|  | 22625 | # et cetera. | 
|  | 22626 | ac_in='$ac_file_inputs' | 
|  | 22627 | ac_out='"$tmp/out1"' | 
|  | 22628 | ac_nxt='"$tmp/out2"' | 
|  | 22629 |  | 
|  | 22630 | while : | 
|  | 22631 | do | 
|  | 22632 | # Write a here document: | 
|  | 22633 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 22634 | # First, check the format of the line: | 
|  | 22635 | cat >"\$tmp/defines.sed" <<\\CEOF | 
|  | 22636 | /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def | 
|  | 22637 | /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def | 
|  | 22638 | b | 
|  | 22639 | :def | 
|  | 22640 | _ACEOF | 
|  | 22641 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | 
|  | 22642 | echo 'CEOF | 
|  | 22643 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | 
|  | 22644 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | 
|  | 22645 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | 
|  | 22646 | grep . conftest.tail >/dev/null || break | 
|  | 22647 | rm -f conftest.defines | 
|  | 22648 | mv conftest.tail conftest.defines | 
|  | 22649 | done | 
|  | 22650 | rm -f conftest.defines conftest.tail | 
|  | 22651 |  | 
|  | 22652 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | 
|  | 22653 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22654 | if test x"$ac_file" != x-; then | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22655 | echo "/* $configure_input  */" >"$tmp/config.h" | 
|  | 22656 | cat "$ac_result" >>"$tmp/config.h" | 
|  | 22657 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | 
|  | 22658 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | 
|  | 22659 | echo "$as_me: $ac_file is unchanged" >&6;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22660 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22661 | rm -f $ac_file | 
|  | 22662 | mv "$tmp/config.h" $ac_file | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22663 | fi | 
|  | 22664 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22665 | echo "/* $configure_input  */" | 
|  | 22666 | cat "$ac_result" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22667 | fi | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22668 | rm -f "$tmp/out12" | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22669 | ;; | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22670 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22671 | :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5 | 
|  | 22672 | echo "$as_me: executing $ac_file commands" >&6;} | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22673 | ;; | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22674 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22675 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22676 |  | 
|  | 22677 | case $ac_file$ac_mode in | 
|  | 22678 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22679 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22680 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22681 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22682 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22683 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22684 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22685 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; | 
| Reid Spencer | 4b8067f | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 22686 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22687 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22688 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22689 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22690 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22691 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; | 
| Bill Wendling | 7c53a18 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 22692 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22693 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22694 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22695 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22696 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22697 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22698 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22699 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; | 
| Gordon Henriksen | 6ab5c57 | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 22700 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22701 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; | 
| Gordon Henriksen | 6ab5c57 | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 22702 | "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` | 
| Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22703 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22704 |  | 
|  | 22705 | esac | 
|  | 22706 | done # for ac_tag | 
|  | 22707 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22708 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22709 | { (exit 0); exit 0; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22710 | _ACEOF | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22711 | chmod +x $CONFIG_STATUS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22712 | ac_clean_files=$ac_clean_files_save | 
|  | 22713 |  | 
|  | 22714 |  | 
|  | 22715 | # configure is writing to config.log, and then calls config.status. | 
|  | 22716 | # config.status does its own redirection, appending to config.log. | 
|  | 22717 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
|  | 22718 | # by configure, so config.status won't be able to write to it; its | 
|  | 22719 | # output is simply discarded.  So we exec the FD to /dev/null, | 
|  | 22720 | # effectively closing config.log, so it can be properly (re)opened and | 
|  | 22721 | # appended to by config.status.  When coming back to configure, we | 
|  | 22722 | # need to make the FD available again. | 
|  | 22723 | if test "$no_create" != yes; then | 
|  | 22724 | ac_cs_success=: | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22725 | ac_config_status_args= | 
|  | 22726 | test "$silent" = yes && | 
|  | 22727 | ac_config_status_args="$ac_config_status_args --quiet" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22728 | exec 5>/dev/null | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22729 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22730 | exec 5>>config.log | 
|  | 22731 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
|  | 22732 | # would make configure fail if this is the last instruction. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22733 | $ac_cs_success || { (exit 1); exit 1; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22734 | fi | 
|  | 22735 |  | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22736 | # | 
|  | 22737 | # CONFIG_SUBDIRS section. | 
|  | 22738 | # | 
|  | 22739 | if test "$no_recursion" != yes; then | 
|  | 22740 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22741 | # Remove --cache-file and --srcdir arguments so they do not pile up. | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22742 | ac_sub_configure_args= | 
|  | 22743 | ac_prev= | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22744 | eval "set x $ac_configure_args" | 
|  | 22745 | shift | 
|  | 22746 | for ac_arg | 
|  | 22747 | do | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22748 | if test -n "$ac_prev"; then | 
|  | 22749 | ac_prev= | 
|  | 22750 | continue | 
|  | 22751 | fi | 
|  | 22752 | case $ac_arg in | 
|  | 22753 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 22754 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 22755 | ac_prev=cache_file ;; | 
|  | 22756 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 22757 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | 
|  | 22758 | | --c=*) | 
|  | 22759 | ;; | 
|  | 22760 | --config-cache | -C) | 
|  | 22761 | ;; | 
|  | 22762 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 22763 | ac_prev=srcdir ;; | 
|  | 22764 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
|  | 22765 | ;; | 
|  | 22766 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 22767 | ac_prev=prefix ;; | 
|  | 22768 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
|  | 22769 | ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22770 | *) | 
|  | 22771 | case $ac_arg in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22772 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22773 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22774 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22775 | esac | 
|  | 22776 | done | 
|  | 22777 |  | 
|  | 22778 | # Always prepend --prefix to ensure using the same prefix | 
|  | 22779 | # in subdir configurations. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22780 | ac_arg="--prefix=$prefix" | 
|  | 22781 | case $ac_arg in | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22782 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22783 | esac | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22784 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22785 |  | 
|  | 22786 | ac_popdir=`pwd` | 
|  | 22787 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | 
|  | 22788 |  | 
|  | 22789 | # Do not complain, so a configure script can configure whichever | 
|  | 22790 | # parts of a large source tree are present. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22791 | test -d "$srcdir/$ac_dir" || continue | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22792 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22793 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22794 | echo "$as_me:$LINENO: $ac_msg" >&5 | 
|  | 22795 | echo "$ac_msg" >&6 | 
|  | 22796 | { as_dir="$ac_dir" | 
|  | 22797 | case $as_dir in #( | 
|  | 22798 | -*) as_dir=./$as_dir;; | 
|  | 22799 | esac | 
|  | 22800 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | 
|  | 22801 | as_dirs= | 
|  | 22802 | while :; do | 
|  | 22803 | case $as_dir in #( | 
|  | 22804 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | 
|  | 22805 | *) as_qdir=$as_dir;; | 
|  | 22806 | esac | 
|  | 22807 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 22808 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 22809 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 22810 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 22811 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 22812 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 22813 | echo X"$as_dir" | | 
|  | 22814 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 22815 | s//\1/ | 
|  | 22816 | q | 
|  | 22817 | } | 
|  | 22818 | /^X\(\/\/\)[^/].*/{ | 
|  | 22819 | s//\1/ | 
|  | 22820 | q | 
|  | 22821 | } | 
|  | 22822 | /^X\(\/\/\)$/{ | 
|  | 22823 | s//\1/ | 
|  | 22824 | q | 
|  | 22825 | } | 
|  | 22826 | /^X\(\/\).*/{ | 
|  | 22827 | s//\1/ | 
|  | 22828 | q | 
|  | 22829 | } | 
|  | 22830 | s/.*/./; q'` | 
|  | 22831 | test -d "$as_dir" && break | 
|  | 22832 | done | 
|  | 22833 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
|  | 22834 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | 
|  | 22835 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | 
|  | 22836 | { (exit 1); exit 1; }; }; } | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22837 | ac_builddir=. | 
|  | 22838 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22839 | case "$ac_dir" in | 
|  | 22840 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 22841 | *) | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22842 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22843 | # A ".." for each directory in $ac_dir_suffix. | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22844 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22845 | case $ac_top_builddir_sub in | 
|  | 22846 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 22847 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 22848 | esac ;; | 
|  | 22849 | esac | 
|  | 22850 | ac_abs_top_builddir=$ac_pwd | 
|  | 22851 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 22852 | # for backward compatibility: | 
|  | 22853 | ac_top_builddir=$ac_top_build_prefix | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22854 |  | 
|  | 22855 | case $srcdir in | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22856 | .)  # We are building in place. | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22857 | ac_srcdir=. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22858 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 22859 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 22860 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22861 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22862 | ac_top_srcdir=$srcdir | 
|  | 22863 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 22864 | *) # Relative name. | 
|  | 22865 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 22866 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 22867 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22868 | esac | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22869 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22870 |  | 
|  | 22871 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22872 | cd "$ac_dir" | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22873 |  | 
|  | 22874 | # Check for guested configure; otherwise get Cygnus style configure. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22875 | if test -f "$ac_srcdir/configure.gnu"; then | 
|  | 22876 | ac_sub_configure=$ac_srcdir/configure.gnu | 
|  | 22877 | elif test -f "$ac_srcdir/configure"; then | 
|  | 22878 | ac_sub_configure=$ac_srcdir/configure | 
|  | 22879 | elif test -f "$ac_srcdir/configure.in"; then | 
|  | 22880 | # This should be Cygnus configure. | 
|  | 22881 | ac_sub_configure=$ac_aux_dir/configure | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22882 | else | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22883 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | 
|  | 22884 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22885 | ac_sub_configure= | 
|  | 22886 | fi | 
|  | 22887 |  | 
|  | 22888 | # The recursion is here. | 
|  | 22889 | if test -n "$ac_sub_configure"; then | 
|  | 22890 | # Make the cache file name correct relative to the subdirectory. | 
|  | 22891 | case $cache_file in | 
|  | 22892 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22893 | *) # Relative name. | 
|  | 22894 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22895 | esac | 
|  | 22896 |  | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22897 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | 
|  | 22898 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22899 | # The eval makes quoting arguments work. | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22900 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | 
|  | 22901 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | 
| Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22902 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | 
|  | 22903 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | 
|  | 22904 | { (exit 1); exit 1; }; } | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22905 | fi | 
|  | 22906 |  | 
| Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22907 | cd "$ac_popdir" | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22908 | done | 
|  | 22909 | fi | 
|  | 22910 |  |