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. |
Hans Wennborg | d94a5f0 | 2015-01-14 17:38:03 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for LLVM 3.7.0svn. |
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 | # |
Eric Christopher | a1bafae | 2015-03-12 01:25:29 +0000 | [diff] [blame^] | 12 | # Copyright (c) 2003-2015 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 | |
Eric Christopher | 14b76d5 | 2014-07-28 22:00:44 +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' |
Hans Wennborg | d94a5f0 | 2015-01-14 17:38:03 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='3.7.0svn' |
| 565 | PACKAGE_STRING='LLVM 3.7.0svn' |
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 | |
Chandler Carruth | fbdae1f | 2013-01-02 09:22:59 +0000 | [diff] [blame] | 568 | ac_unique_file="lib/IR/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 |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 642 | LLVM_VERSION_MAJOR |
| 643 | LLVM_VERSION_MINOR |
Tom Stellard | e6ba81d | 2014-03-03 15:22:00 +0000 | [diff] [blame] | 644 | LLVM_VERSION_PATCH |
| 645 | LLVM_VERSION_SUFFIX |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 646 | LLVM_COPYRIGHT |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 647 | CC |
| 648 | CFLAGS |
| 649 | LDFLAGS |
| 650 | CPPFLAGS |
| 651 | ac_ct_CC |
| 652 | EXEEXT |
| 653 | OBJEXT |
| 654 | CXX |
| 655 | CXXFLAGS |
| 656 | ac_ct_CXX |
| 657 | CPP |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 658 | subdirs |
Tobias Grosser | ea9dca4 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 659 | ENABLE_POLLY |
| 660 | LLVM_HAS_POLLY |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 661 | build |
| 662 | build_cpu |
| 663 | build_vendor |
| 664 | build_os |
| 665 | host |
| 666 | host_cpu |
| 667 | host_vendor |
| 668 | host_os |
| 669 | target |
| 670 | target_cpu |
| 671 | target_vendor |
| 672 | target_os |
| 673 | OS |
| 674 | HOST_OS |
| 675 | TARGET_OS |
| 676 | LINKALL |
| 677 | NOLINKALL |
| 678 | LLVM_ON_UNIX |
| 679 | LLVM_ON_WIN32 |
| 680 | ARCH |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 681 | LLVM_NATIVE_ARCH |
Danil Malyshev | 7c5db45 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 682 | HOST_ARCH |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 683 | LLVM_CROSS_COMPILING |
| 684 | BUILD_CC |
| 685 | BUILD_EXEEXT |
| 686 | BUILD_CXX |
| 687 | CVSBUILD |
Eric Christopher | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 688 | ENABLE_LIBCPP |
Chandler Carruth | bbae512 | 2014-03-01 03:33:08 +0000 | [diff] [blame] | 689 | ENABLE_CXX1Y |
Eric Christopher | f1bd770 | 2013-06-25 01:12:25 +0000 | [diff] [blame] | 690 | ENABLE_SPLIT_DWARF |
Roman Divacky | f2bb66b | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 691 | ENABLE_CLANG_ARCMT |
Rafael Espindola | e33f06c | 2014-03-10 16:58:35 +0000 | [diff] [blame] | 692 | CLANG_PLUGIN_SUPPORT |
Roman Divacky | f2bb66b | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 693 | ENABLE_CLANG_STATIC_ANALYZER |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 694 | ENABLE_OPTIMIZED |
| 695 | ENABLE_PROFILING |
| 696 | DISABLE_ASSERTIONS |
Eric Christopher | 8486401 | 2012-08-03 19:58:20 +0000 | [diff] [blame] | 697 | ENABLE_WERROR |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 698 | ENABLE_EXPENSIVE_CHECKS |
| 699 | EXPENSIVE_CHECKS |
| 700 | DEBUG_RUNTIME |
| 701 | DEBUG_SYMBOLS |
Daniel Dunbar | 39c0462 | 2012-08-14 18:14:22 +0000 | [diff] [blame] | 702 | KEEP_SYMBOLS |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 703 | JIT |
| 704 | TARGET_HAS_JIT |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 705 | TARGETS_WITH_JIT |
Rafael Espindola | 7ac506d | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 706 | ENABLE_DOCS |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 707 | ENABLE_DOXYGEN |
NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 708 | LLVM_ENABLE_THREADS |
NAKAMURA Takumi | c6fce17 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 709 | ENABLE_PTHREADS |
Alexey Samsonov | 2fb337e | 2013-04-23 08:28:39 +0000 | [diff] [blame] | 710 | LLVM_ENABLE_ZLIB |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 711 | ENABLE_PIC |
Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 712 | ENABLE_SHARED |
NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 713 | ENABLE_EMBED_STDCXX |
Daniel Dunbar | dac1824 | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 714 | ENABLE_TIMESTAMPS |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 715 | ALL_TARGETS |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 716 | TARGETS_TO_BUILD |
| 717 | LLVM_ENUM_TARGETS |
| 718 | LLVM_ENUM_ASM_PRINTERS |
| 719 | LLVM_ENUM_ASM_PARSERS |
| 720 | LLVM_ENUM_DISASSEMBLERS |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 721 | OPTIMIZE_OPTION |
| 722 | EXTRA_OPTIONS |
Daniel Dunbar | 3b95df8 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 723 | EXTRA_LD_OPTIONS |
NAKAMURA Takumi | 914f192 | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 724 | CLANG_SRC_ROOT |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 725 | BINUTILS_INCDIR |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 726 | ENABLE_TERMINFO |
Bob Wilson | 3f35470 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 727 | INTERNAL_PREFIX |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 728 | ifGNUmake |
| 729 | LN_S |
Rafael Espindola | fd1355a | 2014-02-28 18:17:54 +0000 | [diff] [blame] | 730 | NM |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 731 | CMP |
| 732 | CP |
| 733 | DATE |
| 734 | FIND |
Eric Christopher | d7ed36b | 2014-01-09 01:09:57 +0000 | [diff] [blame] | 735 | GREP |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 736 | MKDIR |
| 737 | MV |
| 738 | RANLIB |
| 739 | AR |
| 740 | RM |
| 741 | SED |
| 742 | TAR |
| 743 | BINPWD |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 744 | DOT |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 745 | INSTALL_PROGRAM |
| 746 | INSTALL_SCRIPT |
| 747 | INSTALL_DATA |
| 748 | BZIP2 |
mike-m | e08af30 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 749 | CAT |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 750 | DOXYGEN |
Daniel Dunbar | d188882 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 751 | GROFF |
Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 752 | GZIPBIN |
Daniel Dunbar | d188882 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 753 | PDFROFF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 754 | ZIP |
Peter Collingbourne | 82e3e37 | 2014-10-16 22:48:02 +0000 | [diff] [blame] | 755 | GO |
Peter Zotov | 668f967 | 2014-10-30 08:29:45 +0000 | [diff] [blame] | 756 | OCAMLFIND |
Daniel Dunbar | d188882 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 757 | GAS |
Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 758 | HAVE_LINK_VERSION_SCRIPT |
Eric Christopher | d7ed36b | 2014-01-09 01:09:57 +0000 | [diff] [blame] | 759 | EGREP |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 760 | NO_VARIADIC_MACROS |
| 761 | NO_MISSING_FIELD_INITIALIZERS |
Rafael Espindola | 42e94d1 | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 762 | COVERED_SWITCH_DEFAULT |
David Greene | 9ff8d47 | 2013-01-09 22:11:13 +0000 | [diff] [blame] | 763 | NO_MAYBE_UNINITIALIZED |
| 764 | NO_UNINITIALIZED |
Eric Christopher | 65ec83b | 2014-11-05 00:35:15 +0000 | [diff] [blame] | 765 | NO_COMMENT |
Saleem Abdulrasool | a166574 | 2013-01-30 04:44:17 +0000 | [diff] [blame] | 766 | PYTHON |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 767 | HAVE_DLOPEN |
| 768 | HAVE_TERMINFO |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 769 | USE_OPROFILE |
Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 770 | USE_INTEL_JITEVENTS |
Eric Christopher | c807c53 | 2012-08-03 19:47:19 +0000 | [diff] [blame] | 771 | XML2CONFIG |
| 772 | LIBXML2_LIBS |
| 773 | LIBXML2_INC |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 774 | HAVE_PTHREAD |
Alexey Samsonov | 2fb337e | 2013-04-23 08:28:39 +0000 | [diff] [blame] | 775 | HAVE_LIBZ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 776 | HUGE_VAL_SANITY |
| 777 | MMAP_FILE |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 778 | SHLIBEXT |
| 779 | LLVM_PREFIX |
| 780 | LLVM_BINDIR |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 781 | LLVM_DATADIR |
| 782 | LLVM_DOCSDIR |
| 783 | LLVM_ETCDIR |
| 784 | LLVM_INCLUDEDIR |
| 785 | LLVM_INFODIR |
| 786 | LLVM_MANDIR |
| 787 | LLVM_CONFIGTIME |
| 788 | BINDINGS_TO_BUILD |
Peter Zotov | 668f967 | 2014-10-30 08:29:45 +0000 | [diff] [blame] | 789 | HAVE_OCAMLOPT |
| 790 | HAVE_OCAML_OUNIT |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 791 | OCAML_LIBDIR |
| 792 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 793 | RPATH |
| 794 | RDYNAMIC |
Jordan Rose | 3c837ab | 2012-10-01 18:40:32 +0000 | [diff] [blame] | 795 | program_prefix |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 796 | LIBOBJS |
| 797 | LTLIBOBJS' |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 798 | ac_subst_files='' |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 799 | ac_precious_vars='build_alias |
| 800 | host_alias |
| 801 | target_alias |
| 802 | CC |
| 803 | CFLAGS |
| 804 | LDFLAGS |
| 805 | CPPFLAGS |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 806 | CXX |
| 807 | CXXFLAGS |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 808 | CCC |
Rui Ueyama | 292fb6d | 2014-10-27 08:16:18 +0000 | [diff] [blame] | 809 | CPP' |
Chandler Carruth | af968ed | 2014-01-14 04:01:01 +0000 | [diff] [blame] | 810 | ac_subdirs_all='projects/test-suite |
John Criswell | f369e77 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 811 | projects/llvm-test |
| 812 | projects/poolalloc |
| 813 | projects/llvm-poolalloc |
John Criswell | 4d377d8 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 814 | projects/safecode |
Tobias Grosser | ea9dca4 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 815 | tools/polly' |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 816 | |
| 817 | # Initialize some variables set by options. |
| 818 | ac_init_help= |
| 819 | ac_init_version=false |
| 820 | # The variables have the same names as the options, with |
| 821 | # dashes changed to underlines. |
| 822 | cache_file=/dev/null |
| 823 | exec_prefix=NONE |
| 824 | no_create= |
| 825 | no_recursion= |
| 826 | prefix=NONE |
| 827 | program_prefix=NONE |
| 828 | program_suffix=NONE |
| 829 | program_transform_name=s,x,x, |
| 830 | silent= |
| 831 | site= |
| 832 | srcdir= |
| 833 | verbose= |
| 834 | x_includes=NONE |
| 835 | x_libraries=NONE |
| 836 | |
| 837 | # Installation directory options. |
| 838 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 839 | # and all the variables that are supposed to be based on exec_prefix |
| 840 | # by default will actually change. |
| 841 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 842 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 843 | bindir='${exec_prefix}/bin' |
| 844 | sbindir='${exec_prefix}/sbin' |
| 845 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 846 | datarootdir='${prefix}/share' |
| 847 | datadir='${datarootdir}' |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 848 | sysconfdir='${prefix}/etc' |
| 849 | sharedstatedir='${prefix}/com' |
| 850 | localstatedir='${prefix}/var' |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 851 | includedir='${prefix}/include' |
| 852 | oldincludedir='/usr/include' |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 853 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 854 | infodir='${datarootdir}/info' |
| 855 | htmldir='${docdir}' |
| 856 | dvidir='${docdir}' |
| 857 | pdfdir='${docdir}' |
| 858 | psdir='${docdir}' |
| 859 | libdir='${exec_prefix}/lib' |
| 860 | localedir='${datarootdir}/locale' |
| 861 | mandir='${datarootdir}/man' |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 862 | |
| 863 | ac_prev= |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 864 | ac_dashdash= |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 865 | for ac_option |
| 866 | do |
| 867 | # If the previous option needs an argument, assign it. |
| 868 | if test -n "$ac_prev"; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 869 | eval $ac_prev=\$ac_option |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 870 | ac_prev= |
| 871 | continue |
| 872 | fi |
| 873 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 874 | case $ac_option in |
| 875 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 876 | *) ac_optarg=yes ;; |
| 877 | esac |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 878 | |
| 879 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 880 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 881 | case $ac_dashdash$ac_option in |
| 882 | --) |
| 883 | ac_dashdash=yes ;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 884 | |
| 885 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 886 | ac_prev=bindir ;; |
| 887 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 888 | bindir=$ac_optarg ;; |
| 889 | |
| 890 | -build | --build | --buil | --bui | --bu) |
| 891 | ac_prev=build_alias ;; |
| 892 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 893 | build_alias=$ac_optarg ;; |
| 894 | |
| 895 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 896 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 897 | ac_prev=cache_file ;; |
| 898 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 899 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 900 | cache_file=$ac_optarg ;; |
| 901 | |
| 902 | --config-cache | -C) |
| 903 | cache_file=config.cache ;; |
| 904 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 905 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 906 | ac_prev=datadir ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 907 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 908 | datadir=$ac_optarg ;; |
| 909 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 910 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 911 | | --dataroo | --dataro | --datar) |
| 912 | ac_prev=datarootdir ;; |
| 913 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 914 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 915 | datarootdir=$ac_optarg ;; |
| 916 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 917 | -disable-* | --disable-*) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 918 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 919 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 920 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 921 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 922 | { (exit 1); exit 1; }; } |
| 923 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 924 | eval enable_$ac_feature=no ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 925 | |
| 926 | -docdir | --docdir | --docdi | --doc | --do) |
| 927 | ac_prev=docdir ;; |
| 928 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 929 | docdir=$ac_optarg ;; |
| 930 | |
| 931 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 932 | ac_prev=dvidir ;; |
| 933 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 934 | dvidir=$ac_optarg ;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 935 | |
| 936 | -enable-* | --enable-*) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 937 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 938 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 939 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 940 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 941 | { (exit 1); exit 1; }; } |
| 942 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 943 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 944 | |
| 945 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 946 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 947 | | --exec | --exe | --ex) |
| 948 | ac_prev=exec_prefix ;; |
| 949 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 950 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 951 | | --exec=* | --exe=* | --ex=*) |
| 952 | exec_prefix=$ac_optarg ;; |
| 953 | |
| 954 | -gas | --gas | --ga | --g) |
| 955 | # Obsolete; use --with-gas. |
| 956 | with_gas=yes ;; |
| 957 | |
| 958 | -help | --help | --hel | --he | -h) |
| 959 | ac_init_help=long ;; |
| 960 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 961 | ac_init_help=recursive ;; |
| 962 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 963 | ac_init_help=short ;; |
| 964 | |
| 965 | -host | --host | --hos | --ho) |
| 966 | ac_prev=host_alias ;; |
| 967 | -host=* | --host=* | --hos=* | --ho=*) |
| 968 | host_alias=$ac_optarg ;; |
| 969 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 970 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 971 | ac_prev=htmldir ;; |
| 972 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 973 | | --ht=*) |
| 974 | htmldir=$ac_optarg ;; |
| 975 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 976 | -includedir | --includedir | --includedi | --included | --include \ |
| 977 | | --includ | --inclu | --incl | --inc) |
| 978 | ac_prev=includedir ;; |
| 979 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 980 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 981 | includedir=$ac_optarg ;; |
| 982 | |
| 983 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 984 | ac_prev=infodir ;; |
| 985 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 986 | infodir=$ac_optarg ;; |
| 987 | |
| 988 | -libdir | --libdir | --libdi | --libd) |
| 989 | ac_prev=libdir ;; |
| 990 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 991 | libdir=$ac_optarg ;; |
| 992 | |
| 993 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 994 | | --libexe | --libex | --libe) |
| 995 | ac_prev=libexecdir ;; |
| 996 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 997 | | --libexe=* | --libex=* | --libe=*) |
| 998 | libexecdir=$ac_optarg ;; |
| 999 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1000 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1001 | ac_prev=localedir ;; |
| 1002 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1003 | localedir=$ac_optarg ;; |
| 1004 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1005 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1006 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1007 | ac_prev=localstatedir ;; |
| 1008 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1009 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1010 | localstatedir=$ac_optarg ;; |
| 1011 | |
| 1012 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1013 | ac_prev=mandir ;; |
| 1014 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1015 | mandir=$ac_optarg ;; |
| 1016 | |
| 1017 | -nfp | --nfp | --nf) |
| 1018 | # Obsolete; use --without-fp. |
| 1019 | with_fp=no ;; |
| 1020 | |
| 1021 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1022 | | --no-cr | --no-c | -n) |
| 1023 | no_create=yes ;; |
| 1024 | |
| 1025 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1026 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1027 | no_recursion=yes ;; |
| 1028 | |
| 1029 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1030 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1031 | | --oldin | --oldi | --old | --ol | --o) |
| 1032 | ac_prev=oldincludedir ;; |
| 1033 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1034 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1035 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1036 | oldincludedir=$ac_optarg ;; |
| 1037 | |
| 1038 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1039 | ac_prev=prefix ;; |
| 1040 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1041 | prefix=$ac_optarg ;; |
| 1042 | |
| 1043 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1044 | | --program-pre | --program-pr | --program-p) |
| 1045 | ac_prev=program_prefix ;; |
| 1046 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1047 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1048 | program_prefix=$ac_optarg ;; |
| 1049 | |
| 1050 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1051 | | --program-suf | --program-su | --program-s) |
| 1052 | ac_prev=program_suffix ;; |
| 1053 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1054 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1055 | program_suffix=$ac_optarg ;; |
| 1056 | |
| 1057 | -program-transform-name | --program-transform-name \ |
| 1058 | | --program-transform-nam | --program-transform-na \ |
| 1059 | | --program-transform-n | --program-transform- \ |
| 1060 | | --program-transform | --program-transfor \ |
| 1061 | | --program-transfo | --program-transf \ |
| 1062 | | --program-trans | --program-tran \ |
| 1063 | | --progr-tra | --program-tr | --program-t) |
| 1064 | ac_prev=program_transform_name ;; |
| 1065 | -program-transform-name=* | --program-transform-name=* \ |
| 1066 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1067 | | --program-transform-n=* | --program-transform-=* \ |
| 1068 | | --program-transform=* | --program-transfor=* \ |
| 1069 | | --program-transfo=* | --program-transf=* \ |
| 1070 | | --program-trans=* | --program-tran=* \ |
| 1071 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1072 | program_transform_name=$ac_optarg ;; |
| 1073 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1074 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1075 | ac_prev=pdfdir ;; |
| 1076 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1077 | pdfdir=$ac_optarg ;; |
| 1078 | |
| 1079 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1080 | ac_prev=psdir ;; |
| 1081 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1082 | psdir=$ac_optarg ;; |
| 1083 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1084 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1085 | | -silent | --silent | --silen | --sile | --sil) |
| 1086 | silent=yes ;; |
| 1087 | |
| 1088 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1089 | ac_prev=sbindir ;; |
| 1090 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1091 | | --sbi=* | --sb=*) |
| 1092 | sbindir=$ac_optarg ;; |
| 1093 | |
| 1094 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1095 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1096 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1097 | | --sha | --sh) |
| 1098 | ac_prev=sharedstatedir ;; |
| 1099 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1100 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1101 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1102 | | --sha=* | --sh=*) |
| 1103 | sharedstatedir=$ac_optarg ;; |
| 1104 | |
| 1105 | -site | --site | --sit) |
| 1106 | ac_prev=site ;; |
| 1107 | -site=* | --site=* | --sit=*) |
| 1108 | site=$ac_optarg ;; |
| 1109 | |
| 1110 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1111 | ac_prev=srcdir ;; |
| 1112 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1113 | srcdir=$ac_optarg ;; |
| 1114 | |
| 1115 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1116 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1117 | ac_prev=sysconfdir ;; |
| 1118 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1119 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1120 | sysconfdir=$ac_optarg ;; |
| 1121 | |
| 1122 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1123 | ac_prev=target_alias ;; |
| 1124 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1125 | target_alias=$ac_optarg ;; |
| 1126 | |
| 1127 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1128 | verbose=yes ;; |
| 1129 | |
| 1130 | -version | --version | --versio | --versi | --vers | -V) |
| 1131 | ac_init_version=: ;; |
| 1132 | |
| 1133 | -with-* | --with-*) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1134 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1135 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1136 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1137 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1138 | { (exit 1); exit 1; }; } |
| 1139 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1140 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1141 | |
| 1142 | -without-* | --without-*) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1143 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1144 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1145 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1146 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1147 | { (exit 1); exit 1; }; } |
| 1148 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1149 | eval with_$ac_package=no ;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1150 | |
| 1151 | --x) |
| 1152 | # Obsolete; use --with-x. |
| 1153 | with_x=yes ;; |
| 1154 | |
| 1155 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1156 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1157 | ac_prev=x_includes ;; |
| 1158 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1159 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1160 | x_includes=$ac_optarg ;; |
| 1161 | |
| 1162 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1163 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1164 | ac_prev=x_libraries ;; |
| 1165 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1166 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1167 | x_libraries=$ac_optarg ;; |
| 1168 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1169 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1170 | Try \`$0 --help' for more information." >&2 |
| 1171 | { (exit 1); exit 1; }; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1172 | ;; |
| 1173 | |
| 1174 | *=*) |
| 1175 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1176 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1177 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1178 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1179 | { (exit 1); exit 1; }; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1180 | eval $ac_envvar=\$ac_optarg |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1181 | export $ac_envvar ;; |
| 1182 | |
| 1183 | *) |
| 1184 | # FIXME: should be removed in autoconf 3.0. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1185 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1186 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1187 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1188 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1189 | ;; |
| 1190 | |
| 1191 | esac |
| 1192 | done |
| 1193 | |
| 1194 | if test -n "$ac_prev"; then |
| 1195 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1196 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1197 | { (exit 1); exit 1; }; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1198 | fi |
| 1199 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1200 | # Be sure to have absolute directory names. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1201 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1202 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1203 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1204 | libdir localedir mandir |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1205 | do |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1206 | eval ac_val=\$$ac_var |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1207 | case $ac_val in |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1208 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1209 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1210 | esac |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1211 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1212 | { (exit 1); exit 1; }; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1213 | done |
| 1214 | |
| 1215 | # There might be people who depend on the old broken behavior: `$host' |
| 1216 | # used to hold the argument of --host etc. |
| 1217 | # FIXME: To remove some day. |
| 1218 | build=$build_alias |
| 1219 | host=$host_alias |
| 1220 | target=$target_alias |
| 1221 | |
| 1222 | # FIXME: To remove some day. |
| 1223 | if test "x$host_alias" != x; then |
| 1224 | if test "x$build_alias" = x; then |
| 1225 | cross_compiling=maybe |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1226 | 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] | 1227 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1228 | elif test "x$build_alias" != "x$host_alias"; then |
| 1229 | cross_compiling=yes |
| 1230 | fi |
| 1231 | fi |
| 1232 | |
| 1233 | ac_tool_prefix= |
| 1234 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1235 | |
| 1236 | test "$silent" = yes && exec 6>/dev/null |
| 1237 | |
| 1238 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1239 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1240 | ac_ls_di=`ls -di .` && |
| 1241 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1242 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1243 | { (exit 1); exit 1; }; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1244 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1245 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1246 | { (exit 1); exit 1; }; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1247 | |
| 1248 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1249 | # Find the source files, if location was not specified. |
| 1250 | if test -z "$srcdir"; then |
| 1251 | ac_srcdir_defaulted=yes |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1252 | # Try the directory containing this script, then the parent directory. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1253 | ac_confdir=`$as_dirname -- "$0" || |
| 1254 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1255 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1256 | X"$0" : 'X\(//\)$' \| \ |
| 1257 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1258 | echo X"$0" | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1259 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1260 | s//\1/ |
| 1261 | q |
| 1262 | } |
| 1263 | /^X\(\/\/\)[^/].*/{ |
| 1264 | s//\1/ |
| 1265 | q |
| 1266 | } |
| 1267 | /^X\(\/\/\)$/{ |
| 1268 | s//\1/ |
| 1269 | q |
| 1270 | } |
| 1271 | /^X\(\/\).*/{ |
| 1272 | s//\1/ |
| 1273 | q |
| 1274 | } |
| 1275 | s/.*/./; q'` |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1276 | srcdir=$ac_confdir |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1277 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1278 | srcdir=.. |
| 1279 | fi |
| 1280 | else |
| 1281 | ac_srcdir_defaulted=no |
| 1282 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1283 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1284 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1285 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1286 | { (exit 1); exit 1; }; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1287 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1288 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1289 | ac_abs_confdir=`( |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1290 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1291 | { (exit 1); exit 1; }; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1292 | pwd)` |
| 1293 | # When building in place, set srcdir=. |
| 1294 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1295 | srcdir=. |
| 1296 | fi |
| 1297 | # Remove unnecessary trailing slashes from srcdir. |
| 1298 | # Double slashes in file names in object file debugging info |
| 1299 | # mess up M-x gdb in Emacs. |
| 1300 | case $srcdir in |
| 1301 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1302 | esac |
| 1303 | for ac_var in $ac_precious_vars; do |
| 1304 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1305 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1306 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1307 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1308 | done |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1309 | |
| 1310 | # |
| 1311 | # Report the --help message. |
| 1312 | # |
| 1313 | if test "$ac_init_help" = "long"; then |
| 1314 | # Omit some internal or obsolete options to make the list less imposing. |
| 1315 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1316 | cat <<_ACEOF |
Hans Wennborg | d94a5f0 | 2015-01-14 17:38:03 +0000 | [diff] [blame] | 1317 | \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems. |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1318 | |
| 1319 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1320 | |
| 1321 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1322 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1323 | |
| 1324 | Defaults for the options are specified in brackets. |
| 1325 | |
| 1326 | Configuration: |
| 1327 | -h, --help display this help and exit |
| 1328 | --help=short display options specific to this package |
| 1329 | --help=recursive display the short help of all the included packages |
| 1330 | -V, --version display version information and exit |
| 1331 | -q, --quiet, --silent do not print \`checking...' messages |
| 1332 | --cache-file=FILE cache test results in FILE [disabled] |
| 1333 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1334 | -n, --no-create do not create output files |
| 1335 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1336 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1337 | Installation directories: |
| 1338 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1339 | [$ac_default_prefix] |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1340 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1341 | [PREFIX] |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1342 | |
| 1343 | By default, \`make install' will install all the files in |
| 1344 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1345 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1346 | for instance \`--prefix=\$HOME'. |
| 1347 | |
| 1348 | For better control, use the options below. |
| 1349 | |
| 1350 | Fine tuning of the installation directories: |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1351 | --bindir=DIR user executables [EPREFIX/bin] |
| 1352 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1353 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1354 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1355 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1356 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1357 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1358 | --includedir=DIR C header files [PREFIX/include] |
| 1359 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1360 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1361 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1362 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1363 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1364 | --mandir=DIR man documentation [DATAROOTDIR/man] |
Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1365 | --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1366 | --htmldir=DIR html documentation [DOCDIR] |
| 1367 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1368 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1369 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1370 | _ACEOF |
| 1371 | |
| 1372 | cat <<\_ACEOF |
| 1373 | |
| 1374 | System types: |
| 1375 | --build=BUILD configure for building on BUILD [guessed] |
| 1376 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1377 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1378 | _ACEOF |
| 1379 | fi |
| 1380 | |
| 1381 | if test -n "$ac_init_help"; then |
| 1382 | case $ac_init_help in |
Hans Wennborg | d94a5f0 | 2015-01-14 17:38:03 +0000 | [diff] [blame] | 1383 | short | recursive ) echo "Configuration of LLVM 3.7.0svn:";; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1384 | esac |
| 1385 | cat <<\_ACEOF |
| 1386 | |
| 1387 | Optional Features: |
| 1388 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1389 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Chandler Carruth | 7206eae | 2014-01-15 19:19:13 +0000 | [diff] [blame] | 1390 | --enable-polly Use polly if available (default is YES) |
| 1391 | --enable-libcpp Use libc++ if available (default is NO) |
Chandler Carruth | 75a6545 | 2014-01-14 05:02:38 +0000 | [diff] [blame] | 1392 | --enable-compiler-version-checks |
| 1393 | Check the version of the host compiler (default is |
| 1394 | YES) |
Chandler Carruth | bbae512 | 2014-03-01 03:33:08 +0000 | [diff] [blame] | 1395 | --enable-cxx1y Use c++1y if available (default is NO) |
Eric Christopher | f1bd770 | 2013-06-25 01:12:25 +0000 | [diff] [blame] | 1396 | --enable-split-dwarf Use split-dwarf if available (default is NO) |
Roman Divacky | f2bb66b | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 1397 | --enable-clang-arcmt Enable building of clang ARCMT (default is YES) |
Rafael Espindola | e33f06c | 2014-03-10 16:58:35 +0000 | [diff] [blame] | 1398 | --enable-clang-plugin-support |
| 1399 | Enable plugin support in clang (default is YES) |
Roman Divacky | f2bb66b | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 1400 | --enable-clang-static-analyzer |
| 1401 | Enable building of clang Static Analyzer (default is |
| 1402 | YES) |
Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1403 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1404 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1405 | --enable-assertions Compile with assertion checks enabled (default is |
| 1406 | YES) |
Eric Christopher | 8486401 | 2012-08-03 19:58:20 +0000 | [diff] [blame] | 1407 | --enable-werror Compile with -Werror enabled (default is NO) |
David Greene | cbc8ddf | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1408 | --enable-expensive-checks |
Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1409 | Compile with expensive debug checks enabled (default |
| 1410 | is NO) |
| 1411 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1412 | NO) |
Jeffrey Yasskin | c3273dc | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1413 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1414 | optimization is on and YES if it's off) |
Daniel Dunbar | 39c0462 | 2012-08-14 18:14:22 +0000 | [diff] [blame] | 1415 | --enable-keep-symbols Do not strip installed executables) |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1416 | --enable-jit Enable Just In Time Compiling (default is YES) |
Rafael Espindola | 7ac506d | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 1417 | --enable-docs Build documents (default is YES) |
Reid Spencer | 0194c9a | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1418 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | f85fabeb | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1419 | --enable-threads Use threads if available (default is YES) |
NAKAMURA Takumi | c6fce17 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 1420 | --enable-pthreads Use pthreads if available (default is YES) |
Alexey Samsonov | 2fb337e | 2013-04-23 08:28:39 +0000 | [diff] [blame] | 1421 | --enable-zlib Use zlib for compression/decompression if available |
| 1422 | (default is YES) |
Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1423 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 3852519 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1424 | is YES) |
Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 1425 | --enable-shared Build a shared library and link tools against it |
| 1426 | (default is NO) |
NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 1427 | --enable-embed-stdcxx Build a shared library with embedded libstdc++ for |
NAKAMURA Takumi | d5a9a3a | 2011-10-13 18:04:52 +0000 | [diff] [blame] | 1428 | Win32 DLL (default is NO) |
Daniel Dunbar | dac1824 | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 1429 | --enable-timestamps Enable embedding timestamp information in build |
| 1430 | (default is YES) |
Eric Christopher | 9fafe07 | 2012-09-21 23:03:29 +0000 | [diff] [blame] | 1431 | --enable-backtraces Enable embedding backtraces on crash (default is |
| 1432 | YES) |
Daniel Dunbar | eb6c708 | 2013-08-30 20:39:21 +0000 | [diff] [blame] | 1433 | --enable-crash-overrides |
| 1434 | Enable crash handling overrides (default is YES) |
Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1435 | --enable-targets Build specific host targets: all or |
| 1436 | target1,target2,... Valid targets are: host, x86, |
Tim Northover | 00ed996 | 2014-03-29 10:18:08 +0000 | [diff] [blame] | 1437 | x86_64, sparc, powerpc, arm64, arm, aarch64, mips, |
| 1438 | hexagon, xcore, msp430, nvptx, systemz, r600, and |
| 1439 | cpp (default=all) |
Victor Oliveira | 9d4b8f5 | 2012-08-09 01:13:59 +0000 | [diff] [blame] | 1440 | --enable-experimental-targets |
| 1441 | Build experimental host targets: disable or |
| 1442 | target1,target2,... (default=disable) |
Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1443 | --enable-bindings Build specific language bindings: |
| 1444 | all,auto,none,{binding-name} (default=auto) |
Chandler Carruth | f11f1e4 | 2013-08-12 09:49:17 +0000 | [diff] [blame] | 1445 | --enable-terminfo Query the terminfo database if available (default is |
| 1446 | YES) |
Peter Collingbourne | c7d437c | 2014-01-31 23:46:14 +0000 | [diff] [blame] | 1447 | --enable-libedit Use libedit if available (default is YES) |
Jeffrey Yasskin | 914050b | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1448 | --enable-libffi Check for the presence of libffi (default is NO) |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1449 | |
| 1450 | Optional Packages: |
| 1451 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1452 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1453 | --with-optimize-option Select the compiler options to use for optimized |
| 1454 | builds |
Duncan Sands | ef8c8ec | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1455 | --with-extra-options Specify additional options to compile LLVM with |
Daniel Dunbar | 3b95df8 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 1456 | --with-extra-ld-options Specify additional options to link LLVM with |
Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1457 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1458 | is stdlib) |
NAKAMURA Takumi | 914f192 | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 1459 | --with-clang-srcdir Directory to the out-of-tree Clang source |
Chandler Carruth | ffae4a6 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 1460 | --with-clang-resource-dir |
| 1461 | Relative directory from the Clang binary for |
| 1462 | resource files |
Rafael Espindola | d95960b | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1463 | --with-c-include-dirs Colon separated list of directories clang will |
| 1464 | search for headers |
Rafael Espindola | ec217f6 | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 1465 | --with-gcc-toolchain Directory where gcc is installed. |
Sebastian Pop | 5c9e184 | 2012-04-16 04:11:45 +0000 | [diff] [blame] | 1466 | --with-default-sysroot Add --sysroot=<path> to all compiler invocations. |
Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1467 | --with-binutils-include Specify path to binutils/include/ containing |
| 1468 | plugin-api.h file for gold plugin. |
Eric Christopher | 65080cc | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 1469 | --with-bug-report-url Specify the URL where bug reports should be |
NAKAMURA Takumi | 818a22b | 2011-08-12 01:50:43 +0000 | [diff] [blame] | 1470 | submitted (default=http://llvm.org/bugs/) |
Bob Wilson | 3f35470 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 1471 | --with-internal-prefix Installation directory for internal files |
Saleem Abdulrasool | a166574 | 2013-01-30 04:44:17 +0000 | [diff] [blame] | 1472 | --with-python path to python |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1473 | --with-oprofile=<prefix> |
| 1474 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
Andrew Kaylor | 5808c7d | 2012-09-28 17:35:20 +0000 | [diff] [blame] | 1475 | --with-intel-jitevents Notify Intel JIT profiling API of generated code |
| 1476 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1477 | |
| 1478 | Some influential environment variables: |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1479 | CC C compiler command |
| 1480 | CFLAGS C compiler flags |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1481 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1482 | nonstandard directory <lib dir> |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1483 | 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] | 1484 | you have headers in a nonstandard directory <include dir> |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1485 | CXX C++ compiler command |
| 1486 | CXXFLAGS C++ compiler flags |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1487 | CPP C preprocessor |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1488 | |
| 1489 | Use these variables to override the choices made by `configure' or to help |
| 1490 | it to find libraries and programs with nonstandard names/locations. |
| 1491 | |
Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1492 | Report bugs to <http://llvm.org/bugs/>. |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1493 | _ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1494 | ac_status=$? |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1495 | fi |
| 1496 | |
| 1497 | if test "$ac_init_help" = "recursive"; then |
| 1498 | # If there are subdirs, report their specific --help. |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1499 | 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] | 1500 | test -d "$ac_dir" || continue |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1501 | ac_builddir=. |
| 1502 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1503 | case "$ac_dir" in |
| 1504 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1505 | *) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1506 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1507 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1508 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1509 | case $ac_top_builddir_sub in |
| 1510 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1511 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1512 | esac ;; |
| 1513 | esac |
| 1514 | ac_abs_top_builddir=$ac_pwd |
| 1515 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1516 | # for backward compatibility: |
| 1517 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1518 | |
| 1519 | case $srcdir in |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1520 | .) # We are building in place. |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1521 | ac_srcdir=. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1522 | ac_top_srcdir=$ac_top_builddir_sub |
| 1523 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1524 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1525 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1526 | ac_top_srcdir=$srcdir |
| 1527 | ac_abs_top_srcdir=$srcdir ;; |
| 1528 | *) # Relative name. |
| 1529 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1530 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1531 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1532 | esac |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1533 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1534 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1535 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1536 | # Check for guested configure. |
| 1537 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1538 | echo && |
| 1539 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1540 | elif test -f "$ac_srcdir/configure"; then |
| 1541 | echo && |
| 1542 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1543 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1544 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1545 | fi || ac_status=$? |
| 1546 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1547 | done |
| 1548 | fi |
| 1549 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1550 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1551 | if $ac_init_version; then |
| 1552 | cat <<\_ACEOF |
Hans Wennborg | d94a5f0 | 2015-01-14 17:38:03 +0000 | [diff] [blame] | 1553 | LLVM configure 3.7.0svn |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1554 | generated by GNU Autoconf 2.60 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1555 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1556 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1557 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1558 | This configure script is free software; the Free Software Foundation |
| 1559 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1560 | |
Eric Christopher | a1bafae | 2015-03-12 01:25:29 +0000 | [diff] [blame^] | 1561 | Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign. |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1562 | _ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1563 | exit |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1564 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1565 | cat >config.log <<_ACEOF |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1566 | This file contains any messages produced by compilers while |
| 1567 | running configure, to aid debugging if configure makes a mistake. |
| 1568 | |
Hans Wennborg | d94a5f0 | 2015-01-14 17:38:03 +0000 | [diff] [blame] | 1569 | It was created by LLVM $as_me 3.7.0svn, which was |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1570 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1571 | |
| 1572 | $ $0 $@ |
| 1573 | |
| 1574 | _ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1575 | exec 5>>config.log |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1576 | { |
| 1577 | cat <<_ASUNAME |
| 1578 | ## --------- ## |
| 1579 | ## Platform. ## |
| 1580 | ## --------- ## |
| 1581 | |
| 1582 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1583 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1584 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1585 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1586 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1587 | |
| 1588 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1589 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1590 | |
| 1591 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1592 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1593 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1594 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1595 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1596 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1597 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1598 | |
| 1599 | _ASUNAME |
| 1600 | |
| 1601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1602 | for as_dir in $PATH |
| 1603 | do |
| 1604 | IFS=$as_save_IFS |
| 1605 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1606 | echo "PATH: $as_dir" |
| 1607 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1608 | IFS=$as_save_IFS |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1609 | |
| 1610 | } >&5 |
| 1611 | |
| 1612 | cat >&5 <<_ACEOF |
| 1613 | |
| 1614 | |
| 1615 | ## ----------- ## |
| 1616 | ## Core tests. ## |
| 1617 | ## ----------- ## |
| 1618 | |
| 1619 | _ACEOF |
| 1620 | |
| 1621 | |
| 1622 | # Keep a trace of the command line. |
| 1623 | # 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] | 1624 | # 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] | 1625 | # Also quote any args containing shell meta-characters. |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1626 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1627 | ac_configure_args= |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1628 | ac_configure_args0= |
| 1629 | ac_configure_args1= |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1630 | ac_must_keep_next=false |
| 1631 | for ac_pass in 1 2 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1632 | do |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1633 | for ac_arg |
| 1634 | do |
| 1635 | case $ac_arg in |
| 1636 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1637 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1638 | | -silent | --silent | --silen | --sile | --sil) |
| 1639 | continue ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1640 | *\'*) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1641 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1642 | esac |
| 1643 | case $ac_pass in |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1644 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1645 | 2) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1646 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1647 | if test $ac_must_keep_next = true; then |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1648 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1649 | else |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1650 | case $ac_arg in |
| 1651 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1652 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1653 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1654 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1655 | case "$ac_configure_args0 " in |
| 1656 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1657 | esac |
| 1658 | ;; |
| 1659 | -* ) ac_must_keep_next=true ;; |
| 1660 | esac |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1661 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1662 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1663 | ;; |
| 1664 | esac |
| 1665 | done |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1666 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1667 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1668 | $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] | 1669 | |
| 1670 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1671 | # config.log. We remove comments because anyway the quotes in there |
| 1672 | # would cause problems or look ugly. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1673 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1674 | # 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] | 1675 | trap 'exit_status=$? |
| 1676 | # Save into config.log some information that might help in debugging. |
| 1677 | { |
| 1678 | echo |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1679 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1680 | cat <<\_ASBOX |
| 1681 | ## ---------------- ## |
| 1682 | ## Cache variables. ## |
| 1683 | ## ---------------- ## |
| 1684 | _ASBOX |
| 1685 | echo |
| 1686 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1687 | ( |
| 1688 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1689 | eval ac_val=\$$ac_var |
| 1690 | case $ac_val in #( |
| 1691 | *${as_nl}*) |
| 1692 | case $ac_var in #( |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1693 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1694 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1695 | esac |
| 1696 | case $ac_var in #( |
| 1697 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1698 | *) $as_unset $ac_var ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1699 | esac ;; |
| 1700 | esac |
| 1701 | done |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1702 | (set) 2>&1 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1703 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1704 | *${as_nl}ac_space=\ *) |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1705 | sed -n \ |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1706 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1707 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1708 | ;; #( |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1709 | *) |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1710 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1711 | ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1712 | esac | |
| 1713 | sort |
| 1714 | ) |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1715 | echo |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1716 | |
| 1717 | cat <<\_ASBOX |
| 1718 | ## ----------------- ## |
| 1719 | ## Output variables. ## |
| 1720 | ## ----------------- ## |
| 1721 | _ASBOX |
| 1722 | echo |
| 1723 | for ac_var in $ac_subst_vars |
| 1724 | do |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1725 | eval ac_val=\$$ac_var |
| 1726 | case $ac_val in |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1727 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1728 | esac |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1729 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1730 | done | sort |
| 1731 | echo |
| 1732 | |
| 1733 | if test -n "$ac_subst_files"; then |
| 1734 | cat <<\_ASBOX |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1735 | ## ------------------- ## |
| 1736 | ## File substitutions. ## |
| 1737 | ## ------------------- ## |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1738 | _ASBOX |
| 1739 | echo |
| 1740 | for ac_var in $ac_subst_files |
| 1741 | do |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1742 | eval ac_val=\$$ac_var |
| 1743 | case $ac_val in |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1744 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1745 | esac |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1746 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1747 | done | sort |
| 1748 | echo |
| 1749 | fi |
| 1750 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1751 | if test -s confdefs.h; then |
| 1752 | cat <<\_ASBOX |
| 1753 | ## ----------- ## |
| 1754 | ## confdefs.h. ## |
| 1755 | ## ----------- ## |
| 1756 | _ASBOX |
| 1757 | echo |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1758 | cat confdefs.h |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1759 | echo |
| 1760 | fi |
| 1761 | test "$ac_signal" != 0 && |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1762 | echo "$as_me: caught signal $ac_signal" |
| 1763 | echo "$as_me: exit $exit_status" |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1764 | } >&5 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1765 | rm -f core *.core core.conftest.* && |
| 1766 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1767 | exit $exit_status |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1768 | ' 0 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1769 | for ac_signal in 1 2 13 15; do |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1770 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1771 | done |
| 1772 | ac_signal=0 |
| 1773 | |
| 1774 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1775 | rm -f -r conftest* confdefs.h |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1776 | |
| 1777 | # Predefined preprocessor variables. |
| 1778 | |
| 1779 | cat >>confdefs.h <<_ACEOF |
| 1780 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1781 | _ACEOF |
| 1782 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1783 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1784 | cat >>confdefs.h <<_ACEOF |
| 1785 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1786 | _ACEOF |
| 1787 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1788 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1789 | cat >>confdefs.h <<_ACEOF |
| 1790 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1791 | _ACEOF |
| 1792 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1793 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1794 | cat >>confdefs.h <<_ACEOF |
| 1795 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1796 | _ACEOF |
| 1797 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1798 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1799 | cat >>confdefs.h <<_ACEOF |
| 1800 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1801 | _ACEOF |
| 1802 | |
| 1803 | |
| 1804 | # 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] | 1805 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1806 | if test -n "$CONFIG_SITE"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1807 | set x "$CONFIG_SITE" |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1808 | elif test "x$prefix" != xNONE; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1809 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1810 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1811 | set x "$ac_default_prefix/share/config.site" \ |
| 1812 | "$ac_default_prefix/etc/config.site" |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1813 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1814 | shift |
| 1815 | for ac_site_file |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1816 | do |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1817 | if test -r "$ac_site_file"; then |
| 1818 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1819 | echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1820 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1821 | . "$ac_site_file" |
| 1822 | fi |
| 1823 | done |
| 1824 | |
| 1825 | if test -r "$cache_file"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1826 | # Some versions of bash will fail to source /dev/null (special |
| 1827 | # files actually), so we avoid doing that. |
| 1828 | if test -f "$cache_file"; then |
| 1829 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1830 | echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1831 | case $cache_file in |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1832 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1833 | *) . "./$cache_file";; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1834 | esac |
| 1835 | fi |
| 1836 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1837 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1838 | echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1839 | >$cache_file |
| 1840 | fi |
| 1841 | |
| 1842 | # Check that the precious variables saved in the cache have kept the same |
| 1843 | # value. |
| 1844 | ac_cache_corrupted=false |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1845 | for ac_var in $ac_precious_vars; do |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1846 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1847 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1848 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1849 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1850 | case $ac_old_set,$ac_new_set in |
| 1851 | set,) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1852 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1853 | 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] | 1854 | ac_cache_corrupted=: ;; |
| 1855 | ,set) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1856 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1857 | 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] | 1858 | ac_cache_corrupted=: ;; |
| 1859 | ,);; |
| 1860 | *) |
| 1861 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1862 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1863 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1864 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1865 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1866 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1867 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1868 | ac_cache_corrupted=: |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1869 | fi;; |
| 1870 | esac |
| 1871 | # Pass precious variables to config.status. |
| 1872 | if test "$ac_new_set" = set; then |
| 1873 | case $ac_new_val in |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1874 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1875 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1876 | esac |
| 1877 | case " $ac_configure_args " in |
| 1878 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1879 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1880 | esac |
| 1881 | fi |
| 1882 | done |
| 1883 | if $ac_cache_corrupted; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1884 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1885 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1886 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1887 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1888 | { (exit 1); exit 1; }; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1889 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1890 | |
| 1891 | |
| 1892 | |
| 1893 | |
| 1894 | |
| 1895 | |
| 1896 | |
| 1897 | |
| 1898 | |
| 1899 | |
| 1900 | |
| 1901 | |
| 1902 | |
| 1903 | |
| 1904 | |
| 1905 | |
| 1906 | |
| 1907 | |
| 1908 | |
| 1909 | |
| 1910 | |
| 1911 | |
| 1912 | |
| 1913 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1914 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1915 | ac_ext=c |
| 1916 | ac_cpp='$CPP $CPPFLAGS' |
| 1917 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1918 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1919 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1920 | |
| 1921 | |
| 1922 | |
Tom Stellard | e6ba81d | 2014-03-03 15:22:00 +0000 | [diff] [blame] | 1923 | LLVM_VERSION_MAJOR=3 |
Hans Wennborg | d94a5f0 | 2015-01-14 17:38:03 +0000 | [diff] [blame] | 1924 | LLVM_VERSION_MINOR=7 |
Tom Stellard | e6ba81d | 2014-03-03 15:22:00 +0000 | [diff] [blame] | 1925 | LLVM_VERSION_PATCH=0 |
| 1926 | LLVM_VERSION_SUFFIX=svn |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 1927 | |
Tom Stellard | e6ba81d | 2014-03-03 15:22:00 +0000 | [diff] [blame] | 1928 | |
| 1929 | cat >>confdefs.h <<_ACEOF |
| 1930 | #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR |
Dylan Noblesmith | c6c7a58 | 2012-02-13 18:48:10 +0000 | [diff] [blame] | 1931 | _ACEOF |
| 1932 | |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 1933 | |
Tom Stellard | e6ba81d | 2014-03-03 15:22:00 +0000 | [diff] [blame] | 1934 | cat >>confdefs.h <<_ACEOF |
| 1935 | #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR |
Dylan Noblesmith | c6c7a58 | 2012-02-13 18:48:10 +0000 | [diff] [blame] | 1936 | _ACEOF |
| 1937 | |
Tom Stellard | e6ba81d | 2014-03-03 15:22:00 +0000 | [diff] [blame] | 1938 | |
| 1939 | cat >>confdefs.h <<_ACEOF |
| 1940 | #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH |
| 1941 | _ACEOF |
| 1942 | |
| 1943 | |
Peter Collingbourne | a8ed79a | 2014-11-19 03:34:17 +0000 | [diff] [blame] | 1944 | cat >>confdefs.h <<_ACEOF |
| 1945 | #define LLVM_VERSION_STRING "$PACKAGE_VERSION" |
| 1946 | _ACEOF |
| 1947 | |
| 1948 | |
Tom Stellard | e6ba81d | 2014-03-03 15:22:00 +0000 | [diff] [blame] | 1949 | |
| 1950 | |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 1951 | |
| 1952 | |
Dylan Noblesmith | c6c7a58 | 2012-02-13 18:48:10 +0000 | [diff] [blame] | 1953 | |
Eric Christopher | a1bafae | 2015-03-12 01:25:29 +0000 | [diff] [blame^] | 1954 | LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign." |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1955 | |
| 1956 | |
| 1957 | |
| 1958 | |
| 1959 | |
| 1960 | |
| 1961 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1962 | ac_aux_dir= |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1963 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1964 | if test -f "$ac_dir/install-sh"; then |
| 1965 | ac_aux_dir=$ac_dir |
| 1966 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1967 | break |
| 1968 | elif test -f "$ac_dir/install.sh"; then |
| 1969 | ac_aux_dir=$ac_dir |
| 1970 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1971 | break |
| 1972 | elif test -f "$ac_dir/shtool"; then |
| 1973 | ac_aux_dir=$ac_dir |
| 1974 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1975 | break |
| 1976 | fi |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1977 | done |
| 1978 | if test -z "$ac_aux_dir"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1979 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1980 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
| 1981 | { (exit 1); exit 1; }; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1982 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1983 | |
| 1984 | # These three variables are undocumented and unsupported, |
| 1985 | # and are intended to be withdrawn in a future Autoconf release. |
| 1986 | # They can cause serious problems if a builder's source tree is in a directory |
| 1987 | # whose full name contains unusual characters. |
| 1988 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1989 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1990 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1991 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1992 | |
John Criswell | c933eeb | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1993 | |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1994 | if test ${srcdir} != "." ; then |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1995 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1996 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
| 1997 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1998 | { (exit 1); exit 1; }; } |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1999 | fi |
John Criswell | 22107a7 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2000 | fi |
| 2001 | |
Patrik Hagglund | 9857847 | 2013-09-24 11:38:45 +0000 | [diff] [blame] | 2002 | : ${CFLAGS=} |
| 2003 | : ${CXXFLAGS=} |
Patrik Hagglund | d91ae4d | 2013-02-04 08:15:53 +0000 | [diff] [blame] | 2004 | |
Nick Lewycky | c5975fc | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 2005 | ac_ext=c |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2006 | ac_cpp='$CPP $CPPFLAGS' |
| 2007 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2008 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2009 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2010 | if test -n "$ac_tool_prefix"; then |
Chandler Carruth | b4dd3c6 | 2014-01-14 03:46:00 +0000 | [diff] [blame] | 2011 | for ac_prog in clang gcc |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2012 | do |
| 2013 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2014 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2015 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2016 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2017 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2019 | else |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2020 | if test -n "$CC"; then |
| 2021 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2022 | else |
| 2023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2024 | for as_dir in $PATH |
| 2025 | do |
| 2026 | IFS=$as_save_IFS |
| 2027 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2028 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2029 | 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] | 2030 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2031 | 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] | 2032 | break 2 |
| 2033 | fi |
| 2034 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2035 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2036 | IFS=$as_save_IFS |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2037 | |
| 2038 | fi |
| 2039 | fi |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2040 | CC=$ac_cv_prog_CC |
| 2041 | if test -n "$CC"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2042 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2043 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2044 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2045 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2046 | echo "${ECHO_T}no" >&6; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2047 | fi |
| 2048 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2049 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2050 | test -n "$CC" && break |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2051 | done |
| 2052 | fi |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2053 | if test -z "$CC"; then |
| 2054 | ac_ct_CC=$CC |
Chandler Carruth | b4dd3c6 | 2014-01-14 03:46:00 +0000 | [diff] [blame] | 2055 | for ac_prog in clang gcc |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2056 | do |
| 2057 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2058 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2059 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2060 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2061 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2063 | else |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2064 | if test -n "$ac_ct_CC"; then |
| 2065 | 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] | 2066 | else |
| 2067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2068 | for as_dir in $PATH |
| 2069 | do |
| 2070 | IFS=$as_save_IFS |
| 2071 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2072 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2073 | 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] | 2074 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2075 | 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] | 2076 | break 2 |
| 2077 | fi |
| 2078 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2079 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2080 | IFS=$as_save_IFS |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2081 | |
| 2082 | fi |
| 2083 | fi |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2084 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2085 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2086 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2087 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2088 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2089 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2090 | echo "${ECHO_T}no" >&6; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2091 | fi |
| 2092 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2093 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2094 | test -n "$ac_ct_CC" && break |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2095 | done |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2096 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2097 | if test "x$ac_ct_CC" = x; then |
| 2098 | CC="" |
| 2099 | else |
| 2100 | case $cross_compiling:$ac_tool_warned in |
| 2101 | yes:) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2102 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2103 | whose name does not start with the host triplet. If you think this |
| 2104 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2105 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2106 | whose name does not start with the host triplet. If you think this |
| 2107 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2108 | ac_tool_warned=yes ;; |
| 2109 | esac |
| 2110 | CC=$ac_ct_CC |
| 2111 | fi |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2112 | fi |
| 2113 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2114 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2115 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2116 | See \`config.log' for more details." >&5 |
| 2117 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2118 | See \`config.log' for more details." >&2;} |
| 2119 | { (exit 1); exit 1; }; } |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2120 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2121 | # Provide some information about the compiler. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2122 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2123 | ac_compiler=`set X $ac_compile; echo $2` |
| 2124 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2125 | case "(($ac_try" in |
| 2126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2127 | *) ac_try_echo=$ac_try;; |
| 2128 | esac |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2130 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2131 | ac_status=$? |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2133 | (exit $ac_status); } |
| 2134 | { (ac_try="$ac_compiler -v >&5" |
| 2135 | case "(($ac_try" in |
| 2136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2137 | *) ac_try_echo=$ac_try;; |
| 2138 | esac |
| 2139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2140 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2141 | ac_status=$? |
| 2142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2143 | (exit $ac_status); } |
| 2144 | { (ac_try="$ac_compiler -V >&5" |
| 2145 | case "(($ac_try" in |
| 2146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2147 | *) ac_try_echo=$ac_try;; |
| 2148 | esac |
| 2149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2150 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2151 | ac_status=$? |
| 2152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2153 | (exit $ac_status); } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2154 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2155 | cat >conftest.$ac_ext <<_ACEOF |
| 2156 | /* confdefs.h. */ |
| 2157 | _ACEOF |
| 2158 | cat confdefs.h >>conftest.$ac_ext |
| 2159 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2160 | /* end confdefs.h. */ |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2161 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2162 | int |
| 2163 | main () |
| 2164 | { |
| 2165 | |
| 2166 | ; |
| 2167 | return 0; |
| 2168 | } |
| 2169 | _ACEOF |
| 2170 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2171 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2172 | # Try to create an executable without -o first, disregard a.out. |
| 2173 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2174 | # of exeext. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2175 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2176 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2177 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2178 | # |
| 2179 | # List of possible output files, starting from the most likely. |
| 2180 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2181 | # only as a last resort. b.out is created by i960 compilers. |
| 2182 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2183 | # |
| 2184 | # The IRIX 6 linker writes into existing files which may not be |
| 2185 | # executable, retaining their permissions. Remove them first so a |
| 2186 | # subsequent execution test works. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2187 | ac_rmfiles= |
| 2188 | for ac_file in $ac_files |
| 2189 | do |
| 2190 | case $ac_file in |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2191 | *.$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] | 2192 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2193 | esac |
| 2194 | done |
| 2195 | rm -f $ac_rmfiles |
| 2196 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2197 | if { (ac_try="$ac_link_default" |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2198 | case "(($ac_try" in |
| 2199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2200 | *) ac_try_echo=$ac_try;; |
| 2201 | esac |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2203 | (eval "$ac_link_default") 2>&5 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2204 | ac_status=$? |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2206 | (exit $ac_status); }; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2207 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2208 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2209 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2210 | # so that the user can short-circuit this test for compilers unknown to |
| 2211 | # Autoconf. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2212 | for ac_file in $ac_files |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2213 | do |
| 2214 | test -f "$ac_file" || continue |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2215 | case $ac_file in |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2216 | *.$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] | 2217 | ;; |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2218 | [ab].out ) |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2219 | # We found the default executable, but exeext='' is most |
| 2220 | # certainly right. |
| 2221 | break;; |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2222 | *.* ) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2223 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2224 | then :; else |
| 2225 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2226 | fi |
| 2227 | # We set ac_cv_exeext here because the later test for it is not |
| 2228 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2229 | # argument, so we may need to know it at that point already. |
| 2230 | # Even if this section looks crufty: it has the advantage of |
| 2231 | # actually working. |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2232 | break;; |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2233 | * ) |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2234 | break;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2235 | esac |
| 2236 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2237 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2238 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2239 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2240 | echo "$as_me: failed program was:" >&5 |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2242 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2243 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2244 | See \`config.log' for more details." >&5 |
| 2245 | echo "$as_me: error: C compiler cannot create executables |
| 2246 | See \`config.log' for more details." >&2;} |
| 2247 | { (exit 77); exit 77; }; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2248 | fi |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2249 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2250 | ac_exeext=$ac_cv_exeext |
| 2251 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2252 | echo "${ECHO_T}$ac_file" >&6; } |
| 2253 | |
| 2254 | # Check that the compiler produces executables we can run. If not, either |
| 2255 | # the compiler is broken, or we cross compile. |
| 2256 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2257 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2258 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2259 | # If not cross compiling, check that we can run a simple program. |
| 2260 | if test "$cross_compiling" != yes; then |
| 2261 | if { ac_try='./$ac_file' |
| 2262 | { (case "(($ac_try" in |
| 2263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2264 | *) ac_try_echo=$ac_try;; |
| 2265 | esac |
| 2266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2267 | (eval "$ac_try") 2>&5 |
| 2268 | ac_status=$? |
| 2269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2270 | (exit $ac_status); }; }; then |
| 2271 | cross_compiling=no |
| 2272 | else |
| 2273 | if test "$cross_compiling" = maybe; then |
| 2274 | cross_compiling=yes |
| 2275 | else |
| 2276 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2277 | If you meant to cross compile, use \`--host'. |
| 2278 | See \`config.log' for more details." >&5 |
| 2279 | echo "$as_me: error: cannot run C compiled programs. |
| 2280 | If you meant to cross compile, use \`--host'. |
| 2281 | See \`config.log' for more details." >&2;} |
| 2282 | { (exit 1); exit 1; }; } |
| 2283 | fi |
| 2284 | fi |
| 2285 | fi |
| 2286 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2287 | echo "${ECHO_T}yes" >&6; } |
| 2288 | |
| 2289 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2290 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2291 | # Check that the compiler produces executables we can run. If not, either |
| 2292 | # the compiler is broken, or we cross compile. |
| 2293 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2294 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2295 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2296 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2297 | |
| 2298 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2299 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2300 | if { (ac_try="$ac_link" |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2301 | case "(($ac_try" in |
| 2302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2303 | *) ac_try_echo=$ac_try;; |
| 2304 | esac |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2306 | (eval "$ac_link") 2>&5 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2307 | ac_status=$? |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2309 | (exit $ac_status); }; then |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2310 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2311 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2312 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2313 | # `rm'. |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2314 | for ac_file in conftest.exe conftest conftest.*; do |
| 2315 | test -f "$ac_file" || continue |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2316 | case $ac_file in |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2317 | *.$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] | 2318 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2319 | break;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2320 | * ) break;; |
| 2321 | esac |
| 2322 | done |
| 2323 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2324 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2325 | See \`config.log' for more details." >&5 |
| 2326 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2327 | See \`config.log' for more details." >&2;} |
| 2328 | { (exit 1); exit 1; }; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2329 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2330 | |
| 2331 | rm -f conftest$ac_cv_exeext |
| 2332 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2333 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2334 | |
| 2335 | rm -f conftest.$ac_ext |
| 2336 | EXEEXT=$ac_cv_exeext |
| 2337 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2338 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2339 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2340 | if test "${ac_cv_objext+set}" = set; then |
| 2341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2342 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2343 | cat >conftest.$ac_ext <<_ACEOF |
| 2344 | /* confdefs.h. */ |
| 2345 | _ACEOF |
| 2346 | cat confdefs.h >>conftest.$ac_ext |
| 2347 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2348 | /* end confdefs.h. */ |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2349 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2350 | int |
| 2351 | main () |
| 2352 | { |
| 2353 | |
| 2354 | ; |
| 2355 | return 0; |
| 2356 | } |
| 2357 | _ACEOF |
| 2358 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2359 | if { (ac_try="$ac_compile" |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2360 | case "(($ac_try" in |
| 2361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2362 | *) ac_try_echo=$ac_try;; |
| 2363 | esac |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2365 | (eval "$ac_compile") 2>&5 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2366 | ac_status=$? |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2368 | (exit $ac_status); }; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2369 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2370 | test -f "$ac_file" || continue; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2371 | case $ac_file in |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2372 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2373 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2374 | break;; |
| 2375 | esac |
| 2376 | done |
| 2377 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2378 | echo "$as_me: failed program was:" >&5 |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2380 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2381 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2382 | See \`config.log' for more details." >&5 |
| 2383 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2384 | See \`config.log' for more details." >&2;} |
| 2385 | { (exit 1); exit 1; }; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2386 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2387 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2388 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2389 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2390 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2391 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2392 | OBJEXT=$ac_cv_objext |
| 2393 | ac_objext=$OBJEXT |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2394 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2395 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2396 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2398 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2399 | cat >conftest.$ac_ext <<_ACEOF |
| 2400 | /* confdefs.h. */ |
| 2401 | _ACEOF |
| 2402 | cat confdefs.h >>conftest.$ac_ext |
| 2403 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2404 | /* end confdefs.h. */ |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2405 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2406 | int |
| 2407 | main () |
| 2408 | { |
| 2409 | #ifndef __GNUC__ |
| 2410 | choke me |
| 2411 | #endif |
| 2412 | |
| 2413 | ; |
| 2414 | return 0; |
| 2415 | } |
| 2416 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2417 | rm -f conftest.$ac_objext |
| 2418 | if { (ac_try="$ac_compile" |
| 2419 | case "(($ac_try" in |
| 2420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2421 | *) ac_try_echo=$ac_try;; |
| 2422 | esac |
| 2423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2424 | (eval "$ac_compile") 2>conftest.er1 |
| 2425 | ac_status=$? |
| 2426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2427 | rm -f conftest.er1 |
| 2428 | cat conftest.err >&5 |
| 2429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2430 | (exit $ac_status); } && |
| 2431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2432 | { (case "(($ac_try" in |
| 2433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2434 | *) ac_try_echo=$ac_try;; |
| 2435 | esac |
| 2436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2437 | (eval "$ac_try") 2>&5 |
| 2438 | ac_status=$? |
| 2439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2440 | (exit $ac_status); }; } && |
| 2441 | { ac_try='test -s conftest.$ac_objext' |
| 2442 | { (case "(($ac_try" in |
| 2443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2444 | *) ac_try_echo=$ac_try;; |
| 2445 | esac |
| 2446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2447 | (eval "$ac_try") 2>&5 |
| 2448 | ac_status=$? |
| 2449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2450 | (exit $ac_status); }; }; then |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2451 | ac_compiler_gnu=yes |
| 2452 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2453 | echo "$as_me: failed program was:" >&5 |
| 2454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2455 | |
| 2456 | ac_compiler_gnu=no |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2457 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2458 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2460 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2461 | |
| 2462 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2463 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2464 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2465 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2466 | ac_test_CFLAGS=${CFLAGS+set} |
| 2467 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2468 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2469 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 2470 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2472 | else |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2473 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2474 | ac_c_werror_flag=yes |
| 2475 | ac_cv_prog_cc_g=no |
| 2476 | CFLAGS="-g" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2477 | cat >conftest.$ac_ext <<_ACEOF |
| 2478 | /* confdefs.h. */ |
| 2479 | _ACEOF |
| 2480 | cat confdefs.h >>conftest.$ac_ext |
| 2481 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2482 | /* end confdefs.h. */ |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2483 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2484 | int |
| 2485 | main () |
| 2486 | { |
| 2487 | |
| 2488 | ; |
| 2489 | return 0; |
| 2490 | } |
| 2491 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2492 | rm -f conftest.$ac_objext |
| 2493 | if { (ac_try="$ac_compile" |
| 2494 | case "(($ac_try" in |
| 2495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2496 | *) ac_try_echo=$ac_try;; |
| 2497 | esac |
| 2498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2499 | (eval "$ac_compile") 2>conftest.er1 |
| 2500 | ac_status=$? |
| 2501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2502 | rm -f conftest.er1 |
| 2503 | cat conftest.err >&5 |
| 2504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2505 | (exit $ac_status); } && |
| 2506 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 2513 | ac_status=$? |
| 2514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2515 | (exit $ac_status); }; } && |
| 2516 | { ac_try='test -s conftest.$ac_objext' |
| 2517 | { (case "(($ac_try" in |
| 2518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2519 | *) ac_try_echo=$ac_try;; |
| 2520 | esac |
| 2521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2522 | (eval "$ac_try") 2>&5 |
| 2523 | ac_status=$? |
| 2524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2525 | (exit $ac_status); }; }; then |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2526 | ac_cv_prog_cc_g=yes |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2527 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2528 | echo "$as_me: failed program was:" >&5 |
| 2529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2530 | |
| 2531 | CFLAGS="" |
| 2532 | cat >conftest.$ac_ext <<_ACEOF |
| 2533 | /* confdefs.h. */ |
| 2534 | _ACEOF |
| 2535 | cat confdefs.h >>conftest.$ac_ext |
| 2536 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2537 | /* end confdefs.h. */ |
| 2538 | |
| 2539 | int |
| 2540 | main () |
| 2541 | { |
| 2542 | |
| 2543 | ; |
| 2544 | return 0; |
| 2545 | } |
| 2546 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2547 | rm -f conftest.$ac_objext |
| 2548 | if { (ac_try="$ac_compile" |
| 2549 | case "(($ac_try" in |
| 2550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2551 | *) ac_try_echo=$ac_try;; |
| 2552 | esac |
| 2553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2554 | (eval "$ac_compile") 2>conftest.er1 |
| 2555 | ac_status=$? |
| 2556 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2557 | rm -f conftest.er1 |
| 2558 | cat conftest.err >&5 |
| 2559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2560 | (exit $ac_status); } && |
| 2561 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2562 | { (case "(($ac_try" in |
| 2563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2564 | *) ac_try_echo=$ac_try;; |
| 2565 | esac |
| 2566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2567 | (eval "$ac_try") 2>&5 |
| 2568 | ac_status=$? |
| 2569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2570 | (exit $ac_status); }; } && |
| 2571 | { ac_try='test -s conftest.$ac_objext' |
| 2572 | { (case "(($ac_try" in |
| 2573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2574 | *) ac_try_echo=$ac_try;; |
| 2575 | esac |
| 2576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2577 | (eval "$ac_try") 2>&5 |
| 2578 | ac_status=$? |
| 2579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2580 | (exit $ac_status); }; }; then |
| 2581 | : |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2582 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2583 | echo "$as_me: failed program was:" >&5 |
| 2584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2585 | |
| 2586 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2587 | CFLAGS="-g" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2588 | cat >conftest.$ac_ext <<_ACEOF |
| 2589 | /* confdefs.h. */ |
| 2590 | _ACEOF |
| 2591 | cat confdefs.h >>conftest.$ac_ext |
| 2592 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2593 | /* end confdefs.h. */ |
| 2594 | |
| 2595 | int |
| 2596 | main () |
| 2597 | { |
| 2598 | |
| 2599 | ; |
| 2600 | return 0; |
| 2601 | } |
| 2602 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2603 | rm -f conftest.$ac_objext |
| 2604 | if { (ac_try="$ac_compile" |
| 2605 | case "(($ac_try" in |
| 2606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2607 | *) ac_try_echo=$ac_try;; |
| 2608 | esac |
| 2609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2610 | (eval "$ac_compile") 2>conftest.er1 |
| 2611 | ac_status=$? |
| 2612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2613 | rm -f conftest.er1 |
| 2614 | cat conftest.err >&5 |
| 2615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2616 | (exit $ac_status); } && |
| 2617 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2618 | { (case "(($ac_try" in |
| 2619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2620 | *) ac_try_echo=$ac_try;; |
| 2621 | esac |
| 2622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2623 | (eval "$ac_try") 2>&5 |
| 2624 | ac_status=$? |
| 2625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2626 | (exit $ac_status); }; } && |
| 2627 | { ac_try='test -s conftest.$ac_objext' |
| 2628 | { (case "(($ac_try" in |
| 2629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2630 | *) ac_try_echo=$ac_try;; |
| 2631 | esac |
| 2632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2633 | (eval "$ac_try") 2>&5 |
| 2634 | ac_status=$? |
| 2635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2636 | (exit $ac_status); }; }; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2637 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2638 | else |
| 2639 | echo "$as_me: failed program was:" >&5 |
| 2640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2641 | |
| 2642 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2643 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2644 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2646 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2647 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2649 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2650 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2652 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2653 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2654 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2655 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2656 | if test "$ac_test_CFLAGS" = set; then |
| 2657 | CFLAGS=$ac_save_CFLAGS |
| 2658 | elif test $ac_cv_prog_cc_g = yes; then |
| 2659 | if test "$GCC" = yes; then |
| 2660 | CFLAGS="-g -O2" |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2661 | else |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2662 | CFLAGS="-g" |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2663 | fi |
| 2664 | else |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2665 | if test "$GCC" = yes; then |
| 2666 | CFLAGS="-O2" |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2667 | else |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2668 | CFLAGS= |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2669 | fi |
| 2670 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2671 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2672 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2673 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 2674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2675 | else |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2676 | ac_cv_prog_cc_c89=no |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2677 | ac_save_CC=$CC |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2678 | cat >conftest.$ac_ext <<_ACEOF |
| 2679 | /* confdefs.h. */ |
| 2680 | _ACEOF |
| 2681 | cat confdefs.h >>conftest.$ac_ext |
| 2682 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2683 | /* end confdefs.h. */ |
| 2684 | #include <stdarg.h> |
| 2685 | #include <stdio.h> |
| 2686 | #include <sys/types.h> |
| 2687 | #include <sys/stat.h> |
| 2688 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2689 | struct buf { int x; }; |
| 2690 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2691 | static char *e (p, i) |
| 2692 | char **p; |
| 2693 | int i; |
| 2694 | { |
| 2695 | return p[i]; |
| 2696 | } |
| 2697 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2698 | { |
| 2699 | char *s; |
| 2700 | va_list v; |
| 2701 | va_start (v,p); |
| 2702 | s = g (p, va_arg (v,int)); |
| 2703 | va_end (v); |
| 2704 | return s; |
| 2705 | } |
| 2706 | |
| 2707 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2708 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2709 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2710 | 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] | 2711 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2712 | 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] | 2713 | that's true only with -std. */ |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2714 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2715 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2716 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2717 | inside strings and character constants. */ |
| 2718 | #define FOO(x) 'x' |
| 2719 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2720 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2721 | int test (int i, double x); |
| 2722 | struct s1 {int (*f) (int a);}; |
| 2723 | struct s2 {int (*f) (double a);}; |
| 2724 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2725 | int argc; |
| 2726 | char **argv; |
| 2727 | int |
| 2728 | main () |
| 2729 | { |
| 2730 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2731 | ; |
| 2732 | return 0; |
| 2733 | } |
| 2734 | _ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2735 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2736 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2737 | do |
| 2738 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2739 | rm -f conftest.$ac_objext |
| 2740 | if { (ac_try="$ac_compile" |
| 2741 | case "(($ac_try" in |
| 2742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2743 | *) ac_try_echo=$ac_try;; |
| 2744 | esac |
| 2745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2746 | (eval "$ac_compile") 2>conftest.er1 |
| 2747 | ac_status=$? |
| 2748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2749 | rm -f conftest.er1 |
| 2750 | cat conftest.err >&5 |
| 2751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2752 | (exit $ac_status); } && |
| 2753 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2754 | { (case "(($ac_try" in |
| 2755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2756 | *) ac_try_echo=$ac_try;; |
| 2757 | esac |
| 2758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2759 | (eval "$ac_try") 2>&5 |
| 2760 | ac_status=$? |
| 2761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2762 | (exit $ac_status); }; } && |
| 2763 | { ac_try='test -s conftest.$ac_objext' |
| 2764 | { (case "(($ac_try" in |
| 2765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2766 | *) ac_try_echo=$ac_try;; |
| 2767 | esac |
| 2768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2769 | (eval "$ac_try") 2>&5 |
| 2770 | ac_status=$? |
| 2771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2772 | (exit $ac_status); }; }; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2773 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2774 | else |
| 2775 | echo "$as_me: failed program was:" >&5 |
| 2776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2777 | |
| 2778 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2779 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2780 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2781 | rm -f core conftest.err conftest.$ac_objext |
| 2782 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2783 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2784 | rm -f conftest.$ac_ext |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2785 | CC=$ac_save_CC |
| 2786 | |
| 2787 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2788 | # AC_CACHE_VAL |
| 2789 | case "x$ac_cv_prog_cc_c89" in |
| 2790 | x) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2791 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2792 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2793 | xno) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2794 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2795 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2796 | *) |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2797 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2798 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2799 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2800 | esac |
| 2801 | |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2802 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2803 | ac_ext=c |
| 2804 | ac_cpp='$CPP $CPPFLAGS' |
| 2805 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2806 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2807 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2808 | |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2809 | ac_ext=cpp |
| 2810 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2811 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2812 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2813 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2814 | if test -z "$CXX"; then |
| 2815 | if test -n "$CCC"; then |
| 2816 | CXX=$CCC |
| 2817 | else |
| 2818 | if test -n "$ac_tool_prefix"; then |
Chandler Carruth | b4dd3c6 | 2014-01-14 03:46:00 +0000 | [diff] [blame] | 2819 | for ac_prog in clang++ g++ |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2820 | do |
| 2821 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2822 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2823 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2824 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2825 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2827 | else |
| 2828 | if test -n "$CXX"; then |
| 2829 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2830 | else |
| 2831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2832 | for as_dir in $PATH |
| 2833 | do |
| 2834 | IFS=$as_save_IFS |
| 2835 | test -z "$as_dir" && as_dir=. |
| 2836 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2837 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2838 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2839 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2840 | break 2 |
| 2841 | fi |
| 2842 | done |
| 2843 | done |
| 2844 | IFS=$as_save_IFS |
| 2845 | |
| 2846 | fi |
| 2847 | fi |
| 2848 | CXX=$ac_cv_prog_CXX |
| 2849 | if test -n "$CXX"; then |
| 2850 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2851 | echo "${ECHO_T}$CXX" >&6; } |
| 2852 | else |
| 2853 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2854 | echo "${ECHO_T}no" >&6; } |
| 2855 | fi |
| 2856 | |
| 2857 | |
| 2858 | test -n "$CXX" && break |
| 2859 | done |
| 2860 | fi |
| 2861 | if test -z "$CXX"; then |
| 2862 | ac_ct_CXX=$CXX |
Chandler Carruth | b4dd3c6 | 2014-01-14 03:46:00 +0000 | [diff] [blame] | 2863 | for ac_prog in clang++ g++ |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2864 | do |
| 2865 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2866 | set dummy $ac_prog; ac_word=$2 |
| 2867 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2869 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2871 | else |
| 2872 | if test -n "$ac_ct_CXX"; then |
| 2873 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2874 | else |
| 2875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2876 | for as_dir in $PATH |
| 2877 | do |
| 2878 | IFS=$as_save_IFS |
| 2879 | test -z "$as_dir" && as_dir=. |
| 2880 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2881 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2882 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2884 | break 2 |
| 2885 | fi |
| 2886 | done |
| 2887 | done |
| 2888 | IFS=$as_save_IFS |
| 2889 | |
| 2890 | fi |
| 2891 | fi |
| 2892 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2893 | if test -n "$ac_ct_CXX"; then |
| 2894 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2895 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 2896 | else |
| 2897 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2898 | echo "${ECHO_T}no" >&6; } |
| 2899 | fi |
| 2900 | |
| 2901 | |
| 2902 | test -n "$ac_ct_CXX" && break |
| 2903 | done |
| 2904 | |
| 2905 | if test "x$ac_ct_CXX" = x; then |
| 2906 | CXX="g++" |
| 2907 | else |
| 2908 | case $cross_compiling:$ac_tool_warned in |
| 2909 | yes:) |
| 2910 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2911 | whose name does not start with the host triplet. If you think this |
| 2912 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2913 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2914 | whose name does not start with the host triplet. If you think this |
| 2915 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2916 | ac_tool_warned=yes ;; |
| 2917 | esac |
| 2918 | CXX=$ac_ct_CXX |
| 2919 | fi |
| 2920 | fi |
| 2921 | |
| 2922 | fi |
| 2923 | fi |
| 2924 | # Provide some information about the compiler. |
| 2925 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 2926 | ac_compiler=`set X $ac_compile; echo $2` |
| 2927 | { (ac_try="$ac_compiler --version >&5" |
| 2928 | case "(($ac_try" in |
| 2929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2930 | *) ac_try_echo=$ac_try;; |
| 2931 | esac |
| 2932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2933 | (eval "$ac_compiler --version >&5") 2>&5 |
| 2934 | ac_status=$? |
| 2935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2936 | (exit $ac_status); } |
| 2937 | { (ac_try="$ac_compiler -v >&5" |
| 2938 | case "(($ac_try" in |
| 2939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2940 | *) ac_try_echo=$ac_try;; |
| 2941 | esac |
| 2942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2943 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2944 | ac_status=$? |
| 2945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2946 | (exit $ac_status); } |
| 2947 | { (ac_try="$ac_compiler -V >&5" |
| 2948 | case "(($ac_try" in |
| 2949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2950 | *) ac_try_echo=$ac_try;; |
| 2951 | esac |
| 2952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2953 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2954 | ac_status=$? |
| 2955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2956 | (exit $ac_status); } |
| 2957 | |
| 2958 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2959 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 2960 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2962 | else |
| 2963 | cat >conftest.$ac_ext <<_ACEOF |
| 2964 | /* confdefs.h. */ |
| 2965 | _ACEOF |
| 2966 | cat confdefs.h >>conftest.$ac_ext |
| 2967 | cat >>conftest.$ac_ext <<_ACEOF |
| 2968 | /* end confdefs.h. */ |
| 2969 | |
| 2970 | int |
| 2971 | main () |
| 2972 | { |
| 2973 | #ifndef __GNUC__ |
| 2974 | choke me |
| 2975 | #endif |
| 2976 | |
| 2977 | ; |
| 2978 | return 0; |
| 2979 | } |
| 2980 | _ACEOF |
| 2981 | rm -f conftest.$ac_objext |
| 2982 | if { (ac_try="$ac_compile" |
| 2983 | case "(($ac_try" in |
| 2984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2985 | *) ac_try_echo=$ac_try;; |
| 2986 | esac |
| 2987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2988 | (eval "$ac_compile") 2>conftest.er1 |
| 2989 | ac_status=$? |
| 2990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2991 | rm -f conftest.er1 |
| 2992 | cat conftest.err >&5 |
| 2993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2994 | (exit $ac_status); } && |
| 2995 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2996 | { (case "(($ac_try" in |
| 2997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2998 | *) ac_try_echo=$ac_try;; |
| 2999 | esac |
| 3000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3001 | (eval "$ac_try") 2>&5 |
| 3002 | ac_status=$? |
| 3003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3004 | (exit $ac_status); }; } && |
| 3005 | { ac_try='test -s conftest.$ac_objext' |
| 3006 | { (case "(($ac_try" in |
| 3007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3008 | *) ac_try_echo=$ac_try;; |
| 3009 | esac |
| 3010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3011 | (eval "$ac_try") 2>&5 |
| 3012 | ac_status=$? |
| 3013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3014 | (exit $ac_status); }; }; then |
| 3015 | ac_compiler_gnu=yes |
| 3016 | else |
| 3017 | echo "$as_me: failed program was:" >&5 |
| 3018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3019 | |
| 3020 | ac_compiler_gnu=no |
| 3021 | fi |
| 3022 | |
| 3023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3024 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3025 | |
| 3026 | fi |
| 3027 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3028 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 3029 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 3030 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3031 | ac_save_CXXFLAGS=$CXXFLAGS |
| 3032 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3033 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 3034 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3036 | else |
| 3037 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3038 | ac_cxx_werror_flag=yes |
| 3039 | ac_cv_prog_cxx_g=no |
| 3040 | CXXFLAGS="-g" |
| 3041 | cat >conftest.$ac_ext <<_ACEOF |
| 3042 | /* confdefs.h. */ |
| 3043 | _ACEOF |
| 3044 | cat confdefs.h >>conftest.$ac_ext |
| 3045 | cat >>conftest.$ac_ext <<_ACEOF |
| 3046 | /* end confdefs.h. */ |
| 3047 | |
| 3048 | int |
| 3049 | main () |
| 3050 | { |
| 3051 | |
| 3052 | ; |
| 3053 | return 0; |
| 3054 | } |
| 3055 | _ACEOF |
| 3056 | rm -f conftest.$ac_objext |
| 3057 | if { (ac_try="$ac_compile" |
| 3058 | case "(($ac_try" in |
| 3059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3060 | *) ac_try_echo=$ac_try;; |
| 3061 | esac |
| 3062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3063 | (eval "$ac_compile") 2>conftest.er1 |
| 3064 | ac_status=$? |
| 3065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3066 | rm -f conftest.er1 |
| 3067 | cat conftest.err >&5 |
| 3068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3069 | (exit $ac_status); } && |
| 3070 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 3077 | ac_status=$? |
| 3078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3079 | (exit $ac_status); }; } && |
| 3080 | { ac_try='test -s conftest.$ac_objext' |
| 3081 | { (case "(($ac_try" in |
| 3082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3083 | *) ac_try_echo=$ac_try;; |
| 3084 | esac |
| 3085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3086 | (eval "$ac_try") 2>&5 |
| 3087 | ac_status=$? |
| 3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3089 | (exit $ac_status); }; }; then |
| 3090 | ac_cv_prog_cxx_g=yes |
| 3091 | else |
| 3092 | echo "$as_me: failed program was:" >&5 |
| 3093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3094 | |
| 3095 | CXXFLAGS="" |
| 3096 | cat >conftest.$ac_ext <<_ACEOF |
| 3097 | /* confdefs.h. */ |
| 3098 | _ACEOF |
| 3099 | cat confdefs.h >>conftest.$ac_ext |
| 3100 | cat >>conftest.$ac_ext <<_ACEOF |
| 3101 | /* end confdefs.h. */ |
| 3102 | |
| 3103 | int |
| 3104 | main () |
| 3105 | { |
| 3106 | |
| 3107 | ; |
| 3108 | return 0; |
| 3109 | } |
| 3110 | _ACEOF |
| 3111 | rm -f conftest.$ac_objext |
| 3112 | if { (ac_try="$ac_compile" |
| 3113 | case "(($ac_try" in |
| 3114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3115 | *) ac_try_echo=$ac_try;; |
| 3116 | esac |
| 3117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3118 | (eval "$ac_compile") 2>conftest.er1 |
| 3119 | ac_status=$? |
| 3120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3121 | rm -f conftest.er1 |
| 3122 | cat conftest.err >&5 |
| 3123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3124 | (exit $ac_status); } && |
| 3125 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3126 | { (case "(($ac_try" in |
| 3127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3128 | *) ac_try_echo=$ac_try;; |
| 3129 | esac |
| 3130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3131 | (eval "$ac_try") 2>&5 |
| 3132 | ac_status=$? |
| 3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3134 | (exit $ac_status); }; } && |
| 3135 | { ac_try='test -s conftest.$ac_objext' |
| 3136 | { (case "(($ac_try" in |
| 3137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3138 | *) ac_try_echo=$ac_try;; |
| 3139 | esac |
| 3140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3141 | (eval "$ac_try") 2>&5 |
| 3142 | ac_status=$? |
| 3143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3144 | (exit $ac_status); }; }; then |
| 3145 | : |
| 3146 | else |
| 3147 | echo "$as_me: failed program was:" >&5 |
| 3148 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3149 | |
| 3150 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3151 | CXXFLAGS="-g" |
| 3152 | cat >conftest.$ac_ext <<_ACEOF |
| 3153 | /* confdefs.h. */ |
| 3154 | _ACEOF |
| 3155 | cat confdefs.h >>conftest.$ac_ext |
| 3156 | cat >>conftest.$ac_ext <<_ACEOF |
| 3157 | /* end confdefs.h. */ |
| 3158 | |
| 3159 | int |
| 3160 | main () |
| 3161 | { |
| 3162 | |
| 3163 | ; |
| 3164 | return 0; |
| 3165 | } |
| 3166 | _ACEOF |
| 3167 | rm -f conftest.$ac_objext |
| 3168 | if { (ac_try="$ac_compile" |
| 3169 | case "(($ac_try" in |
| 3170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3171 | *) ac_try_echo=$ac_try;; |
| 3172 | esac |
| 3173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3174 | (eval "$ac_compile") 2>conftest.er1 |
| 3175 | ac_status=$? |
| 3176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3177 | rm -f conftest.er1 |
| 3178 | cat conftest.err >&5 |
| 3179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3180 | (exit $ac_status); } && |
| 3181 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3182 | { (case "(($ac_try" in |
| 3183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3184 | *) ac_try_echo=$ac_try;; |
| 3185 | esac |
| 3186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3187 | (eval "$ac_try") 2>&5 |
| 3188 | ac_status=$? |
| 3189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3190 | (exit $ac_status); }; } && |
| 3191 | { ac_try='test -s conftest.$ac_objext' |
| 3192 | { (case "(($ac_try" in |
| 3193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3194 | *) ac_try_echo=$ac_try;; |
| 3195 | esac |
| 3196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3197 | (eval "$ac_try") 2>&5 |
| 3198 | ac_status=$? |
| 3199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3200 | (exit $ac_status); }; }; then |
| 3201 | ac_cv_prog_cxx_g=yes |
| 3202 | else |
| 3203 | echo "$as_me: failed program was:" >&5 |
| 3204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3205 | |
| 3206 | |
| 3207 | fi |
| 3208 | |
| 3209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3210 | fi |
| 3211 | |
| 3212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3213 | fi |
| 3214 | |
| 3215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3216 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3217 | fi |
| 3218 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3219 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 3220 | if test "$ac_test_CXXFLAGS" = set; then |
| 3221 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3222 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3223 | if test "$GXX" = yes; then |
| 3224 | CXXFLAGS="-g -O2" |
| 3225 | else |
| 3226 | CXXFLAGS="-g" |
| 3227 | fi |
| 3228 | else |
| 3229 | if test "$GXX" = yes; then |
| 3230 | CXXFLAGS="-O2" |
| 3231 | else |
| 3232 | CXXFLAGS= |
| 3233 | fi |
| 3234 | fi |
| 3235 | ac_ext=c |
| 3236 | ac_cpp='$CPP $CPPFLAGS' |
| 3237 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3238 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3239 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3240 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3241 | ac_ext=c |
| 3242 | ac_cpp='$CPP $CPPFLAGS' |
| 3243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3246 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3247 | 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] | 3248 | # On Suns, sometimes $CPP names a directory. |
| 3249 | if test -n "$CPP" && test -d "$CPP"; then |
| 3250 | CPP= |
| 3251 | fi |
| 3252 | if test -z "$CPP"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3253 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3255 | else |
| 3256 | # Double quotes because CPP needs to be expanded |
| 3257 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3258 | do |
| 3259 | ac_preproc_ok=false |
| 3260 | for ac_c_preproc_warn_flag in '' yes |
| 3261 | do |
| 3262 | # Use a header file that comes with gcc, so configuring glibc |
| 3263 | # with a fresh cross-compiler works. |
| 3264 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3265 | # <limits.h> exists even on freestanding compilers. |
| 3266 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3267 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3268 | cat >conftest.$ac_ext <<_ACEOF |
| 3269 | /* confdefs.h. */ |
| 3270 | _ACEOF |
| 3271 | cat confdefs.h >>conftest.$ac_ext |
| 3272 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3273 | /* end confdefs.h. */ |
| 3274 | #ifdef __STDC__ |
| 3275 | # include <limits.h> |
| 3276 | #else |
| 3277 | # include <assert.h> |
| 3278 | #endif |
| 3279 | Syntax error |
| 3280 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3281 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3282 | case "(($ac_try" in |
| 3283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3284 | *) ac_try_echo=$ac_try;; |
| 3285 | esac |
| 3286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3287 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3288 | ac_status=$? |
| 3289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3290 | rm -f conftest.er1 |
| 3291 | cat conftest.err >&5 |
| 3292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3293 | (exit $ac_status); } >/dev/null; then |
| 3294 | if test -s conftest.err; then |
| 3295 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3296 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3297 | else |
| 3298 | ac_cpp_err= |
| 3299 | fi |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3300 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3301 | ac_cpp_err=yes |
| 3302 | fi |
| 3303 | if test -z "$ac_cpp_err"; then |
| 3304 | : |
| 3305 | else |
| 3306 | echo "$as_me: failed program was:" >&5 |
| 3307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3308 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3309 | # Broken: fails on valid input. |
| 3310 | continue |
| 3311 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3312 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3313 | rm -f conftest.err conftest.$ac_ext |
| 3314 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3315 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3316 | # can be detected and how. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3317 | cat >conftest.$ac_ext <<_ACEOF |
| 3318 | /* confdefs.h. */ |
| 3319 | _ACEOF |
| 3320 | cat confdefs.h >>conftest.$ac_ext |
| 3321 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3322 | /* end confdefs.h. */ |
| 3323 | #include <ac_nonexistent.h> |
| 3324 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3325 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3326 | case "(($ac_try" in |
| 3327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3328 | *) ac_try_echo=$ac_try;; |
| 3329 | esac |
| 3330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3331 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3332 | ac_status=$? |
| 3333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3334 | rm -f conftest.er1 |
| 3335 | cat conftest.err >&5 |
| 3336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3337 | (exit $ac_status); } >/dev/null; then |
| 3338 | if test -s conftest.err; then |
| 3339 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3340 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3341 | else |
| 3342 | ac_cpp_err= |
| 3343 | fi |
| 3344 | else |
| 3345 | ac_cpp_err=yes |
| 3346 | fi |
| 3347 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3348 | # Broken: success on invalid input. |
| 3349 | continue |
| 3350 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3351 | echo "$as_me: failed program was:" >&5 |
| 3352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3353 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3354 | # Passes both tests. |
| 3355 | ac_preproc_ok=: |
| 3356 | break |
| 3357 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3358 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3359 | rm -f conftest.err conftest.$ac_ext |
| 3360 | |
| 3361 | done |
| 3362 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3363 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3364 | if $ac_preproc_ok; then |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3365 | break |
| 3366 | fi |
| 3367 | |
| 3368 | done |
| 3369 | ac_cv_prog_CPP=$CPP |
| 3370 | |
| 3371 | fi |
| 3372 | CPP=$ac_cv_prog_CPP |
| 3373 | else |
| 3374 | ac_cv_prog_CPP=$CPP |
| 3375 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3376 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3377 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3378 | ac_preproc_ok=false |
| 3379 | for ac_c_preproc_warn_flag in '' yes |
| 3380 | do |
| 3381 | # Use a header file that comes with gcc, so configuring glibc |
| 3382 | # with a fresh cross-compiler works. |
| 3383 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3384 | # <limits.h> exists even on freestanding compilers. |
| 3385 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3386 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3387 | cat >conftest.$ac_ext <<_ACEOF |
| 3388 | /* confdefs.h. */ |
| 3389 | _ACEOF |
| 3390 | cat confdefs.h >>conftest.$ac_ext |
| 3391 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3392 | /* end confdefs.h. */ |
| 3393 | #ifdef __STDC__ |
| 3394 | # include <limits.h> |
| 3395 | #else |
| 3396 | # include <assert.h> |
| 3397 | #endif |
| 3398 | Syntax error |
| 3399 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3400 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3401 | case "(($ac_try" in |
| 3402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3403 | *) ac_try_echo=$ac_try;; |
| 3404 | esac |
| 3405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3406 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3407 | ac_status=$? |
| 3408 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3409 | rm -f conftest.er1 |
| 3410 | cat conftest.err >&5 |
| 3411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3412 | (exit $ac_status); } >/dev/null; then |
| 3413 | if test -s conftest.err; then |
| 3414 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3415 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3416 | else |
| 3417 | ac_cpp_err= |
| 3418 | fi |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3419 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3420 | ac_cpp_err=yes |
| 3421 | fi |
| 3422 | if test -z "$ac_cpp_err"; then |
| 3423 | : |
| 3424 | else |
| 3425 | echo "$as_me: failed program was:" >&5 |
| 3426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3427 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3428 | # Broken: fails on valid input. |
| 3429 | continue |
| 3430 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3431 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3432 | rm -f conftest.err conftest.$ac_ext |
| 3433 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3434 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3435 | # can be detected and how. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3436 | cat >conftest.$ac_ext <<_ACEOF |
| 3437 | /* confdefs.h. */ |
| 3438 | _ACEOF |
| 3439 | cat confdefs.h >>conftest.$ac_ext |
| 3440 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3441 | /* end confdefs.h. */ |
| 3442 | #include <ac_nonexistent.h> |
| 3443 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3444 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3445 | case "(($ac_try" in |
| 3446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3447 | *) ac_try_echo=$ac_try;; |
| 3448 | esac |
| 3449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3450 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3451 | ac_status=$? |
| 3452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3453 | rm -f conftest.er1 |
| 3454 | cat conftest.err >&5 |
| 3455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3456 | (exit $ac_status); } >/dev/null; then |
| 3457 | if test -s conftest.err; then |
| 3458 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3459 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3460 | else |
| 3461 | ac_cpp_err= |
| 3462 | fi |
| 3463 | else |
| 3464 | ac_cpp_err=yes |
| 3465 | fi |
| 3466 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3467 | # Broken: success on invalid input. |
| 3468 | continue |
| 3469 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3470 | echo "$as_me: failed program was:" >&5 |
| 3471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3472 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3473 | # Passes both tests. |
| 3474 | ac_preproc_ok=: |
| 3475 | break |
| 3476 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3477 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3478 | rm -f conftest.err conftest.$ac_ext |
| 3479 | |
| 3480 | done |
| 3481 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3482 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3483 | if $ac_preproc_ok; then |
| 3484 | : |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3485 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3486 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3487 | See \`config.log' for more details." >&5 |
| 3488 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3489 | See \`config.log' for more details." >&2;} |
| 3490 | { (exit 1); exit 1; }; } |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3491 | fi |
| 3492 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3493 | ac_ext=c |
| 3494 | ac_cpp='$CPP $CPPFLAGS' |
| 3495 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3496 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3497 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3498 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3499 | |
Dmitri Gribenko | 06358bd | 2013-01-09 15:25:30 +0000 | [diff] [blame] | 3500 | if test "$CXX" = "clang++" ; then |
| 3501 | { echo "$as_me:$LINENO: checking whether clang works" >&5 |
| 3502 | echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; } |
| 3503 | ac_ext=cpp |
| 3504 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3505 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3506 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3507 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3508 | |
| 3509 | |
| 3510 | cat >conftest.$ac_ext <<_ACEOF |
| 3511 | /* confdefs.h. */ |
| 3512 | _ACEOF |
| 3513 | cat confdefs.h >>conftest.$ac_ext |
| 3514 | cat >>conftest.$ac_ext <<_ACEOF |
| 3515 | /* end confdefs.h. */ |
| 3516 | #include <limits> |
| 3517 | #if __has_include (<cxxabi.h>) |
| 3518 | #include <cxxabi.h> |
| 3519 | #endif |
| 3520 | #if __has_include (<unwind.h>) |
| 3521 | #include <unwind.h> |
| 3522 | #endif |
| 3523 | |
| 3524 | int |
| 3525 | main () |
| 3526 | { |
| 3527 | |
| 3528 | ; |
| 3529 | return 0; |
| 3530 | } |
| 3531 | _ACEOF |
| 3532 | rm -f conftest.$ac_objext |
| 3533 | if { (ac_try="$ac_compile" |
| 3534 | case "(($ac_try" in |
| 3535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3536 | *) ac_try_echo=$ac_try;; |
| 3537 | esac |
| 3538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3539 | (eval "$ac_compile") 2>conftest.er1 |
| 3540 | ac_status=$? |
| 3541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3542 | rm -f conftest.er1 |
| 3543 | cat conftest.err >&5 |
| 3544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3545 | (exit $ac_status); } && |
| 3546 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3547 | { (case "(($ac_try" in |
| 3548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3549 | *) ac_try_echo=$ac_try;; |
| 3550 | esac |
| 3551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3552 | (eval "$ac_try") 2>&5 |
| 3553 | ac_status=$? |
| 3554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3555 | (exit $ac_status); }; } && |
| 3556 | { ac_try='test -s conftest.$ac_objext' |
| 3557 | { (case "(($ac_try" in |
| 3558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3559 | *) ac_try_echo=$ac_try;; |
| 3560 | esac |
| 3561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3562 | (eval "$ac_try") 2>&5 |
| 3563 | ac_status=$? |
| 3564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3565 | (exit $ac_status); }; }; then |
| 3566 | |
| 3567 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3568 | echo "${ECHO_T}yes" >&6; } |
| 3569 | |
| 3570 | else |
| 3571 | echo "$as_me: failed program was:" >&5 |
| 3572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3573 | |
| 3574 | |
| 3575 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3576 | echo "${ECHO_T}no" >&6; } |
| 3577 | { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5 |
| 3578 | echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;} |
| 3579 | { (exit 1); exit 1; }; } |
| 3580 | |
| 3581 | fi |
| 3582 | |
| 3583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3584 | ac_ext=c |
| 3585 | ac_cpp='$CPP $CPPFLAGS' |
| 3586 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3587 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3588 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3589 | |
| 3590 | fi |
| 3591 | |
Chandler Carruth | 75a6545 | 2014-01-14 05:02:38 +0000 | [diff] [blame] | 3592 | { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5 |
| 3593 | echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; } |
| 3594 | ac_ext=cpp |
| 3595 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3596 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3597 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3598 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3599 | |
| 3600 | llvm_cv_cxx_compiler=unknown |
| 3601 | cat >conftest.$ac_ext <<_ACEOF |
| 3602 | /* confdefs.h. */ |
| 3603 | _ACEOF |
| 3604 | cat confdefs.h >>conftest.$ac_ext |
| 3605 | cat >>conftest.$ac_ext <<_ACEOF |
| 3606 | /* end confdefs.h. */ |
| 3607 | #if ! __clang__ |
Chandler Carruth | f8c6ccf | 2014-01-15 10:31:15 +0000 | [diff] [blame] | 3608 | #error |
| 3609 | #endif |
Chandler Carruth | 75a6545 | 2014-01-14 05:02:38 +0000 | [diff] [blame] | 3610 | |
Chandler Carruth | 75a6545 | 2014-01-14 05:02:38 +0000 | [diff] [blame] | 3611 | _ACEOF |
| 3612 | rm -f conftest.$ac_objext |
| 3613 | if { (ac_try="$ac_compile" |
| 3614 | case "(($ac_try" in |
| 3615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3616 | *) ac_try_echo=$ac_try;; |
| 3617 | esac |
| 3618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3619 | (eval "$ac_compile") 2>conftest.er1 |
| 3620 | ac_status=$? |
| 3621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3622 | rm -f conftest.er1 |
| 3623 | cat conftest.err >&5 |
| 3624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3625 | (exit $ac_status); } && |
| 3626 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3627 | { (case "(($ac_try" in |
| 3628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3629 | *) ac_try_echo=$ac_try;; |
| 3630 | esac |
| 3631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3632 | (eval "$ac_try") 2>&5 |
| 3633 | ac_status=$? |
| 3634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3635 | (exit $ac_status); }; } && |
| 3636 | { ac_try='test -s conftest.$ac_objext' |
| 3637 | { (case "(($ac_try" in |
| 3638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3639 | *) ac_try_echo=$ac_try;; |
| 3640 | esac |
| 3641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3642 | (eval "$ac_try") 2>&5 |
| 3643 | ac_status=$? |
| 3644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3645 | (exit $ac_status); }; }; then |
| 3646 | llvm_cv_cxx_compiler=clang |
| 3647 | else |
| 3648 | echo "$as_me: failed program was:" >&5 |
| 3649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3650 | |
| 3651 | cat >conftest.$ac_ext <<_ACEOF |
| 3652 | /* confdefs.h. */ |
| 3653 | _ACEOF |
| 3654 | cat confdefs.h >>conftest.$ac_ext |
| 3655 | cat >>conftest.$ac_ext <<_ACEOF |
| 3656 | /* end confdefs.h. */ |
| 3657 | #if ! __GNUC__ |
Chandler Carruth | f8c6ccf | 2014-01-15 10:31:15 +0000 | [diff] [blame] | 3658 | #error |
| 3659 | #endif |
Chandler Carruth | 75a6545 | 2014-01-14 05:02:38 +0000 | [diff] [blame] | 3660 | |
Chandler Carruth | 75a6545 | 2014-01-14 05:02:38 +0000 | [diff] [blame] | 3661 | _ACEOF |
| 3662 | rm -f conftest.$ac_objext |
| 3663 | if { (ac_try="$ac_compile" |
| 3664 | case "(($ac_try" in |
| 3665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3666 | *) ac_try_echo=$ac_try;; |
| 3667 | esac |
| 3668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3669 | (eval "$ac_compile") 2>conftest.er1 |
| 3670 | ac_status=$? |
| 3671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3672 | rm -f conftest.er1 |
| 3673 | cat conftest.err >&5 |
| 3674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3675 | (exit $ac_status); } && |
| 3676 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3677 | { (case "(($ac_try" in |
| 3678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3679 | *) ac_try_echo=$ac_try;; |
| 3680 | esac |
| 3681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3682 | (eval "$ac_try") 2>&5 |
| 3683 | ac_status=$? |
| 3684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3685 | (exit $ac_status); }; } && |
| 3686 | { ac_try='test -s conftest.$ac_objext' |
| 3687 | { (case "(($ac_try" in |
| 3688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3689 | *) ac_try_echo=$ac_try;; |
| 3690 | esac |
| 3691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3692 | (eval "$ac_try") 2>&5 |
| 3693 | ac_status=$? |
| 3694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3695 | (exit $ac_status); }; }; then |
| 3696 | llvm_cv_cxx_compiler=gcc |
| 3697 | else |
| 3698 | echo "$as_me: failed program was:" >&5 |
| 3699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3700 | |
| 3701 | |
| 3702 | fi |
| 3703 | |
| 3704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3705 | fi |
| 3706 | |
| 3707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3708 | ac_ext=c |
| 3709 | ac_cpp='$CPP $CPPFLAGS' |
| 3710 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3711 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3712 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3713 | |
| 3714 | { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5 |
| 3715 | echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; } |
| 3716 | |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3717 | |
| 3718 | |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3719 | if test -d ${srcdir}/projects/test-suite ; then |
| 3720 | subdirs="$subdirs projects/test-suite" |
| 3721 | |
| 3722 | fi |
| 3723 | |
| 3724 | if test -d ${srcdir}/projects/llvm-test ; then |
| 3725 | subdirs="$subdirs projects/llvm-test" |
| 3726 | |
| 3727 | fi |
| 3728 | |
| 3729 | if test -d ${srcdir}/projects/poolalloc ; then |
| 3730 | subdirs="$subdirs projects/poolalloc" |
| 3731 | |
| 3732 | fi |
| 3733 | |
| 3734 | if test -d ${srcdir}/projects/llvm-poolalloc ; then |
| 3735 | subdirs="$subdirs projects/llvm-poolalloc" |
| 3736 | |
| 3737 | fi |
| 3738 | |
| 3739 | for i in `ls ${srcdir}/projects` |
| 3740 | do |
| 3741 | if test -d ${srcdir}/projects/${i} ; then |
| 3742 | case ${i} in |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3743 | safecode) subdirs="$subdirs projects/safecode" |
| 3744 | ;; |
Daniel Dunbar | 7ce849d | 2011-12-07 22:07:03 +0000 | [diff] [blame] | 3745 | compiler-rt) ;; |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3746 | test-suite) ;; |
| 3747 | llvm-test) ;; |
| 3748 | poolalloc) ;; |
| 3749 | llvm-poolalloc) ;; |
| 3750 | *) |
| 3751 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 3752 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} |
| 3753 | ;; |
| 3754 | esac |
| 3755 | fi |
| 3756 | done |
| 3757 | |
| 3758 | # Check whether --enable-polly was given. |
| 3759 | if test "${enable_polly+set}" = set; then |
| 3760 | enableval=$enable_polly; |
| 3761 | else |
| 3762 | enableval=default |
| 3763 | fi |
| 3764 | |
| 3765 | case "$enableval" in |
| 3766 | yes) ENABLE_POLLY=1 |
| 3767 | ;; |
| 3768 | no) ENABLE_POLLY=0 |
| 3769 | ;; |
| 3770 | default) ENABLE_POLLY=1 |
| 3771 | ;; |
| 3772 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 |
| 3773 | echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} |
| 3774 | { (exit 1); exit 1; }; } ;; |
| 3775 | esac |
| 3776 | |
| 3777 | |
| 3778 | if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then |
| 3779 | LLVM_HAS_POLLY=1 |
| 3780 | |
| 3781 | subdirs="$subdirs tools/polly" |
| 3782 | |
| 3783 | fi |
| 3784 | |
| 3785 | |
| 3786 | # Make sure we can run config.sub. |
| 3787 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 3788 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 3789 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 3790 | { (exit 1); exit 1; }; } |
| 3791 | |
| 3792 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 3793 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 3794 | if test "${ac_cv_build+set}" = set; then |
| 3795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3796 | else |
| 3797 | ac_build_alias=$build_alias |
| 3798 | test "x$ac_build_alias" = x && |
| 3799 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3800 | test "x$ac_build_alias" = x && |
| 3801 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 3802 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 3803 | { (exit 1); exit 1; }; } |
| 3804 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 3805 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 3806 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 3807 | { (exit 1); exit 1; }; } |
| 3808 | |
| 3809 | fi |
| 3810 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 3811 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 3812 | case $ac_cv_build in |
| 3813 | *-*-*) ;; |
| 3814 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 3815 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 3816 | { (exit 1); exit 1; }; };; |
| 3817 | esac |
| 3818 | build=$ac_cv_build |
| 3819 | ac_save_IFS=$IFS; IFS='-' |
| 3820 | set x $ac_cv_build |
| 3821 | shift |
| 3822 | build_cpu=$1 |
| 3823 | build_vendor=$2 |
| 3824 | shift; shift |
| 3825 | # Remember, the first character of IFS is used to create $*, |
| 3826 | # except with old shells: |
| 3827 | build_os=$* |
| 3828 | IFS=$ac_save_IFS |
| 3829 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3830 | |
| 3831 | |
| 3832 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 3833 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 3834 | if test "${ac_cv_host+set}" = set; then |
| 3835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3836 | else |
| 3837 | if test "x$host_alias" = x; then |
| 3838 | ac_cv_host=$ac_cv_build |
| 3839 | else |
| 3840 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 3841 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 3842 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 3843 | { (exit 1); exit 1; }; } |
| 3844 | fi |
| 3845 | |
| 3846 | fi |
| 3847 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 3848 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 3849 | case $ac_cv_host in |
| 3850 | *-*-*) ;; |
| 3851 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 3852 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 3853 | { (exit 1); exit 1; }; };; |
| 3854 | esac |
| 3855 | host=$ac_cv_host |
| 3856 | ac_save_IFS=$IFS; IFS='-' |
| 3857 | set x $ac_cv_host |
| 3858 | shift |
| 3859 | host_cpu=$1 |
| 3860 | host_vendor=$2 |
| 3861 | shift; shift |
| 3862 | # Remember, the first character of IFS is used to create $*, |
| 3863 | # except with old shells: |
| 3864 | host_os=$* |
| 3865 | IFS=$ac_save_IFS |
| 3866 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3867 | |
| 3868 | |
| 3869 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 3870 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 3871 | if test "${ac_cv_target+set}" = set; then |
| 3872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3873 | else |
| 3874 | if test "x$target_alias" = x; then |
| 3875 | ac_cv_target=$ac_cv_host |
| 3876 | else |
| 3877 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 3878 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 3879 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 3880 | { (exit 1); exit 1; }; } |
| 3881 | fi |
| 3882 | |
| 3883 | fi |
| 3884 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 3885 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 3886 | case $ac_cv_target in |
| 3887 | *-*-*) ;; |
| 3888 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 3889 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 3890 | { (exit 1); exit 1; }; };; |
| 3891 | esac |
| 3892 | target=$ac_cv_target |
| 3893 | ac_save_IFS=$IFS; IFS='-' |
| 3894 | set x $ac_cv_target |
| 3895 | shift |
| 3896 | target_cpu=$1 |
| 3897 | target_vendor=$2 |
| 3898 | shift; shift |
| 3899 | # Remember, the first character of IFS is used to create $*, |
| 3900 | # except with old shells: |
| 3901 | target_os=$* |
| 3902 | IFS=$ac_save_IFS |
| 3903 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3904 | |
| 3905 | |
| 3906 | # The aliases save the names the user supplied, while $host etc. |
| 3907 | # will get canonicalized. |
| 3908 | test -n "$target_alias" && |
| 3909 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3910 | NONENONEs,x,x, && |
| 3911 | program_prefix=${target_alias}- |
| 3912 | |
| 3913 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 3914 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 3915 | if test "${llvm_cv_os_type+set}" = set; then |
| 3916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3917 | else |
| 3918 | case $host in |
| 3919 | *-*-aix*) |
| 3920 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3921 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3922 | llvm_cv_os_type="AIX" |
| 3923 | llvm_cv_platform_type="Unix" ;; |
| 3924 | *-*-irix*) |
| 3925 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3926 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3927 | llvm_cv_os_type="IRIX" |
| 3928 | llvm_cv_platform_type="Unix" ;; |
| 3929 | *-*-cygwin*) |
| 3930 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3931 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3932 | llvm_cv_os_type="Cygwin" |
| 3933 | llvm_cv_platform_type="Unix" ;; |
| 3934 | *-*-darwin*) |
| 3935 | llvm_cv_link_all_option="-Wl,-all_load" |
| 3936 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 3937 | llvm_cv_os_type="Darwin" |
| 3938 | llvm_cv_platform_type="Unix" ;; |
| 3939 | *-*-minix*) |
| 3940 | llvm_cv_link_all_option="-Wl,-all_load" |
| 3941 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 3942 | llvm_cv_os_type="Minix" |
| 3943 | llvm_cv_platform_type="Unix" ;; |
Sylvestre Ledru | 93a491b | 2013-07-01 08:07:52 +0000 | [diff] [blame] | 3944 | *-*-freebsd*) |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3945 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3946 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3947 | llvm_cv_os_type="FreeBSD" |
| 3948 | llvm_cv_platform_type="Unix" ;; |
Sylvestre Ledru | 93a491b | 2013-07-01 08:07:52 +0000 | [diff] [blame] | 3949 | *-*-kfreebsd-gnu) |
| 3950 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3951 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3952 | llvm_cv_os_type="GNU/kFreeBSD" |
| 3953 | llvm_cv_platform_type="Unix" ;; |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3954 | *-*-openbsd*) |
| 3955 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3956 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3957 | llvm_cv_os_type="OpenBSD" |
| 3958 | llvm_cv_platform_type="Unix" ;; |
| 3959 | *-*-netbsd*) |
| 3960 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3961 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3962 | llvm_cv_os_type="NetBSD" |
| 3963 | llvm_cv_platform_type="Unix" ;; |
| 3964 | *-*-dragonfly*) |
| 3965 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3966 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3967 | llvm_cv_os_type="DragonFly" |
| 3968 | llvm_cv_platform_type="Unix" ;; |
Eric Christopher | 83f8824 | 2015-02-26 19:46:32 +0000 | [diff] [blame] | 3969 | *-*-bitrig*) |
| 3970 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3971 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3972 | llvm_cv_os_type="Bitrig" |
| 3973 | llvm_cv_platform_type="Unix" ;; |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3974 | *-*-hpux*) |
| 3975 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3976 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3977 | llvm_cv_os_type="HP-UX" |
| 3978 | llvm_cv_platform_type="Unix" ;; |
| 3979 | *-*-interix*) |
| 3980 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3981 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3982 | llvm_cv_os_type="Interix" |
| 3983 | llvm_cv_platform_type="Unix" ;; |
| 3984 | *-*-linux*) |
| 3985 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3986 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3987 | llvm_cv_os_type="Linux" |
| 3988 | llvm_cv_platform_type="Unix" ;; |
Rafael Espindola | 4977edd | 2011-12-22 14:01:18 +0000 | [diff] [blame] | 3989 | *-*-gnu*) |
| 3990 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3991 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3992 | llvm_cv_os_type="GNU" |
| 3993 | llvm_cv_platform_type="Unix" ;; |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3994 | *-*-solaris*) |
| 3995 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 3996 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
| 3997 | llvm_cv_os_type="SunOS" |
| 3998 | llvm_cv_platform_type="Unix" ;; |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3999 | *-*-win32*) |
| 4000 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 4001 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 4002 | llvm_cv_os_type="Win32" |
| 4003 | llvm_cv_platform_type="Win32" ;; |
| 4004 | *-*-mingw*) |
| 4005 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 4006 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 4007 | llvm_cv_os_type="MingW" |
| 4008 | llvm_cv_platform_type="Win32" ;; |
| 4009 | *-*-haiku*) |
| 4010 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 4011 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 4012 | llvm_cv_os_type="Haiku" |
| 4013 | llvm_cv_platform_type="Unix" ;; |
| 4014 | *-unknown-eabi*) |
| 4015 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 4016 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 4017 | llvm_cv_os_type="Freestanding" |
| 4018 | llvm_cv_platform_type="Unix" ;; |
| 4019 | *-unknown-elf*) |
| 4020 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 4021 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 4022 | llvm_cv_os_type="Freestanding" |
| 4023 | llvm_cv_platform_type="Unix" ;; |
| 4024 | *) |
| 4025 | llvm_cv_link_all_option="" |
| 4026 | llvm_cv_no_link_all_option="" |
| 4027 | llvm_cv_os_type="Unknown" |
| 4028 | llvm_cv_platform_type="Unknown" ;; |
| 4029 | esac |
| 4030 | fi |
| 4031 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 4032 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
| 4033 | |
| 4034 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 4035 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 4036 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 4037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4038 | else |
| 4039 | case $target in |
| 4040 | *-*-aix*) |
| 4041 | llvm_cv_target_os_type="AIX" ;; |
| 4042 | *-*-irix*) |
| 4043 | llvm_cv_target_os_type="IRIX" ;; |
| 4044 | *-*-cygwin*) |
| 4045 | llvm_cv_target_os_type="Cygwin" ;; |
| 4046 | *-*-darwin*) |
| 4047 | llvm_cv_target_os_type="Darwin" ;; |
| 4048 | *-*-minix*) |
| 4049 | llvm_cv_target_os_type="Minix" ;; |
Sylvestre Ledru | 93a491b | 2013-07-01 08:07:52 +0000 | [diff] [blame] | 4050 | *-*-freebsd*) |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 4051 | llvm_cv_target_os_type="FreeBSD" ;; |
Sylvestre Ledru | 93a491b | 2013-07-01 08:07:52 +0000 | [diff] [blame] | 4052 | *-*-kfreebsd-gnu) |
| 4053 | llvm_cv_target_os_type="GNU/kFreeBSD" ;; |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 4054 | *-*-openbsd*) |
| 4055 | llvm_cv_target_os_type="OpenBSD" ;; |
| 4056 | *-*-netbsd*) |
| 4057 | llvm_cv_target_os_type="NetBSD" ;; |
| 4058 | *-*-dragonfly*) |
| 4059 | llvm_cv_target_os_type="DragonFly" ;; |
Eric Christopher | 83f8824 | 2015-02-26 19:46:32 +0000 | [diff] [blame] | 4060 | *-*-bitrig*) |
| 4061 | llvm_cv_target_os_type="Bitrig" ;; |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 4062 | *-*-hpux*) |
| 4063 | llvm_cv_target_os_type="HP-UX" ;; |
| 4064 | *-*-interix*) |
| 4065 | llvm_cv_target_os_type="Interix" ;; |
| 4066 | *-*-linux*) |
| 4067 | llvm_cv_target_os_type="Linux" ;; |
Sylvestre Ledru | e8235fe | 2012-04-05 19:34:15 +0000 | [diff] [blame] | 4068 | *-*-gnu*) |
| 4069 | llvm_cv_target_os_type="GNU" ;; |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 4070 | *-*-solaris*) |
| 4071 | llvm_cv_target_os_type="SunOS" ;; |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 4072 | *-*-win32*) |
| 4073 | llvm_cv_target_os_type="Win32" ;; |
| 4074 | *-*-mingw*) |
| 4075 | llvm_cv_target_os_type="MingW" ;; |
| 4076 | *-*-haiku*) |
| 4077 | llvm_cv_target_os_type="Haiku" ;; |
| 4078 | *-*-rtems*) |
| 4079 | llvm_cv_target_os_type="RTEMS" ;; |
| 4080 | *-*-nacl*) |
| 4081 | llvm_cv_target_os_type="NativeClient" ;; |
| 4082 | *-unknown-eabi*) |
| 4083 | llvm_cv_target_os_type="Freestanding" ;; |
NAKAMURA Takumi | 3f47d81 | 2015-01-30 13:01:00 +0000 | [diff] [blame] | 4084 | *-*-ps4) |
| 4085 | llvm_cv_target_os_type="PS4" ;; |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 4086 | *) |
| 4087 | llvm_cv_target_os_type="Unknown" ;; |
| 4088 | esac |
| 4089 | fi |
| 4090 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 4091 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
| 4092 | |
| 4093 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 4094 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 4095 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 4096 | { (exit 1); exit 1; }; } |
| 4097 | fi |
| 4098 | |
| 4099 | OS=$llvm_cv_os_type |
| 4100 | |
| 4101 | HOST_OS=$llvm_cv_os_type |
| 4102 | |
| 4103 | TARGET_OS=$llvm_cv_target_os_type |
| 4104 | |
| 4105 | |
| 4106 | LINKALL=$llvm_cv_link_all_option |
| 4107 | |
| 4108 | NOLINKALL=$llvm_cv_no_link_all_option |
| 4109 | |
| 4110 | |
| 4111 | case $llvm_cv_platform_type in |
| 4112 | Unix) |
| 4113 | |
| 4114 | cat >>confdefs.h <<\_ACEOF |
| 4115 | #define LLVM_ON_UNIX 1 |
| 4116 | _ACEOF |
| 4117 | |
| 4118 | LLVM_ON_UNIX=1 |
| 4119 | |
| 4120 | LLVM_ON_WIN32=0 |
| 4121 | |
| 4122 | ;; |
| 4123 | Win32) |
| 4124 | |
| 4125 | cat >>confdefs.h <<\_ACEOF |
| 4126 | #define LLVM_ON_WIN32 1 |
| 4127 | _ACEOF |
| 4128 | |
| 4129 | LLVM_ON_UNIX=0 |
| 4130 | |
| 4131 | LLVM_ON_WIN32=1 |
| 4132 | |
| 4133 | ;; |
| 4134 | esac |
| 4135 | |
| 4136 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 4137 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 4138 | if test "${llvm_cv_target_arch+set}" = set; then |
| 4139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4140 | else |
| 4141 | case $target in |
| 4142 | i?86-*) llvm_cv_target_arch="x86" ;; |
| 4143 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
| 4144 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 4145 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 4146 | arm64*-*) llvm_cv_target_arch="AArch64" ;; |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 4147 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 4148 | aarch64*-*) llvm_cv_target_arch="AArch64" ;; |
Simon Atanasyan | c2cccd7 | 2012-10-29 19:49:45 +0000 | [diff] [blame] | 4149 | mips-* | mips64-*) llvm_cv_target_arch="Mips" ;; |
| 4150 | mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;; |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 4151 | xcore-*) llvm_cv_target_arch="XCore" ;; |
| 4152 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 4153 | hexagon-*) llvm_cv_target_arch="Hexagon" ;; |
Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 4154 | nvptx-*) llvm_cv_target_arch="NVPTX" ;; |
Ulrich Weigand | 1ceebf6 | 2013-05-06 16:22:34 +0000 | [diff] [blame] | 4155 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 4156 | *) llvm_cv_target_arch="Unknown" ;; |
| 4157 | esac |
| 4158 | fi |
| 4159 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 4160 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
| 4161 | |
| 4162 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 4163 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 4164 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 4165 | fi |
| 4166 | |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 4167 | case "$llvm_cv_target_arch" in |
| 4168 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 4169 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 4170 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 4171 | esac |
| 4172 | |
| 4173 | ARCH=$llvm_cv_target_arch |
| 4174 | |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 4175 | LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH |
| 4176 | |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 4177 | |
Danil Malyshev | 7c5db45 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 4178 | case $host in |
| 4179 | i?86-*) host_arch="x86" ;; |
| 4180 | amd64-* | x86_64-*) host_arch="x86_64" ;; |
| 4181 | sparc*-*) host_arch="Sparc" ;; |
| 4182 | powerpc*-*) host_arch="PowerPC" ;; |
Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 4183 | arm64*-*) host_arch="AArch64" ;; |
Danil Malyshev | 7c5db45 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 4184 | arm*-*) host_arch="ARM" ;; |
Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 4185 | aarch64*-*) host_arch="AArch64" ;; |
Simon Atanasyan | c2cccd7 | 2012-10-29 19:49:45 +0000 | [diff] [blame] | 4186 | mips-* | mips64-*) host_arch="Mips" ;; |
| 4187 | mipsel-* | mips64el-*) host_arch="Mips" ;; |
Danil Malyshev | 7c5db45 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 4188 | xcore-*) host_arch="XCore" ;; |
| 4189 | msp430-*) host_arch="MSP430" ;; |
| 4190 | hexagon-*) host_arch="Hexagon" ;; |
Ulrich Weigand | 1ceebf6 | 2013-05-06 16:22:34 +0000 | [diff] [blame] | 4191 | s390x-*) host_arch="SystemZ" ;; |
Danil Malyshev | 7c5db45 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 4192 | *) host_arch="Unknown" ;; |
| 4193 | esac |
| 4194 | |
| 4195 | if test "$host_arch" = "Unknown" ; then |
| 4196 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5 |
| 4197 | echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;} |
| 4198 | fi |
| 4199 | |
| 4200 | HOST_ARCH=$host_arch |
| 4201 | |
| 4202 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4203 | if test "$cross_compiling" = yes; then |
| 4204 | LLVM_CROSS_COMPILING=1 |
| 4205 | |
| 4206 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4207 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4208 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4209 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4211 | else |
| 4212 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4213 | ac_cv_build_exeext=.exe |
| 4214 | else |
| 4215 | ac_build_prefix=${build_alias}- |
| 4216 | |
| 4217 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4218 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4219 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4220 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4221 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4223 | else |
| 4224 | if test -n "$BUILD_CC"; then |
| 4225 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4226 | else |
| 4227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4228 | for as_dir in $PATH |
| 4229 | do |
| 4230 | IFS=$as_save_IFS |
| 4231 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4232 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4233 | 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] | 4234 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4235 | 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] | 4236 | break 2 |
| 4237 | fi |
| 4238 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4239 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4240 | IFS=$as_save_IFS |
| 4241 | |
| 4242 | fi |
| 4243 | fi |
| 4244 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4245 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4246 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4247 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4248 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4249 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4250 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4251 | fi |
| 4252 | |
| 4253 | |
| 4254 | if test -z "$BUILD_CC"; then |
| 4255 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4256 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4257 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4258 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4259 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4261 | else |
| 4262 | if test -n "$BUILD_CC"; then |
| 4263 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4264 | else |
| 4265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4266 | for as_dir in $PATH |
| 4267 | do |
| 4268 | IFS=$as_save_IFS |
| 4269 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4270 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4271 | 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] | 4272 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4273 | 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] | 4274 | break 2 |
| 4275 | fi |
| 4276 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4277 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4278 | IFS=$as_save_IFS |
| 4279 | |
| 4280 | fi |
| 4281 | fi |
| 4282 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4283 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4284 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4285 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4286 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4287 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4288 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4289 | fi |
| 4290 | |
| 4291 | |
| 4292 | if test -z "$BUILD_CC"; then |
| 4293 | # Extract the first word of "cc", so it can be a program name with args. |
| 4294 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4295 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4296 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4297 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4299 | else |
| 4300 | if test -n "$BUILD_CC"; then |
| 4301 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4302 | else |
| 4303 | ac_prog_rejected=no |
| 4304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4305 | for as_dir in $PATH |
| 4306 | do |
| 4307 | IFS=$as_save_IFS |
| 4308 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4309 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4310 | 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] | 4311 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4312 | ac_prog_rejected=yes |
| 4313 | continue |
| 4314 | fi |
| 4315 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4316 | 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] | 4317 | break 2 |
| 4318 | fi |
| 4319 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4320 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4321 | IFS=$as_save_IFS |
| 4322 | |
| 4323 | if test $ac_prog_rejected = yes; then |
| 4324 | # We found a bogon in the path, so make sure we never use it. |
| 4325 | set dummy $ac_cv_prog_BUILD_CC |
| 4326 | shift |
| 4327 | if test $# != 0; then |
| 4328 | # We chose a different compiler from the bogus one. |
| 4329 | # However, it has the same basename, so the bogon will be chosen |
| 4330 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4331 | shift |
| 4332 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4333 | fi |
| 4334 | fi |
| 4335 | fi |
| 4336 | fi |
| 4337 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4338 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4339 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4340 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4341 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4342 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4343 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4344 | fi |
| 4345 | |
| 4346 | |
| 4347 | fi |
| 4348 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4349 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4350 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4351 | { (exit 1); exit 1; }; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4352 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4353 | rm -f conftest* |
| 4354 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4355 | ac_cv_build_exeext= |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4356 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4357 | (eval $ac_build_link) 2>&5 |
| 4358 | ac_status=$? |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4360 | (exit $ac_status); }; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4361 | for file in conftest.*; do |
| 4362 | case $file in |
Jim Grosbach | bfc70b0 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4363 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4364 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4365 | esac |
| 4366 | done |
| 4367 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4368 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4369 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4370 | { (exit 1); exit 1; }; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4371 | fi |
| 4372 | rm -f conftest* |
| 4373 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4374 | fi |
| 4375 | fi |
| 4376 | |
| 4377 | BUILD_EXEEXT="" |
| 4378 | 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] | 4379 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4380 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4381 | ac_build_exeext=$BUILD_EXEEXT |
| 4382 | |
Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4383 | ac_build_prefix=${build_alias}- |
| 4384 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4385 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4386 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4387 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4388 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4390 | else |
| 4391 | if test -n "$BUILD_CXX"; then |
| 4392 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4393 | else |
| 4394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4395 | for as_dir in $PATH |
| 4396 | do |
| 4397 | IFS=$as_save_IFS |
| 4398 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4399 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4400 | 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] | 4401 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4402 | 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] | 4403 | break 2 |
| 4404 | fi |
| 4405 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4406 | done |
Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4407 | IFS=$as_save_IFS |
| 4408 | |
| 4409 | fi |
| 4410 | fi |
| 4411 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4412 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4413 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4414 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4415 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4416 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4417 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4418 | fi |
| 4419 | |
| 4420 | |
| 4421 | if test -z "$BUILD_CXX"; then |
| 4422 | # Extract the first word of "g++", so it can be a program name with args. |
| 4423 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4424 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4425 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4426 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4428 | else |
| 4429 | if test -n "$BUILD_CXX"; then |
| 4430 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4431 | else |
| 4432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4433 | for as_dir in $PATH |
| 4434 | do |
| 4435 | IFS=$as_save_IFS |
| 4436 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4437 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4438 | 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] | 4439 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4440 | 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] | 4441 | break 2 |
| 4442 | fi |
| 4443 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4444 | done |
Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4445 | IFS=$as_save_IFS |
| 4446 | |
| 4447 | fi |
| 4448 | fi |
| 4449 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4450 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4451 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4452 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4453 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4454 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4455 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4456 | fi |
| 4457 | |
| 4458 | |
| 4459 | if test -z "$BUILD_CXX"; then |
| 4460 | # Extract the first word of "c++", so it can be a program name with args. |
| 4461 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4462 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4463 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4464 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4466 | else |
| 4467 | if test -n "$BUILD_CXX"; then |
| 4468 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4469 | else |
| 4470 | ac_prog_rejected=no |
| 4471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4472 | for as_dir in $PATH |
| 4473 | do |
| 4474 | IFS=$as_save_IFS |
| 4475 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4476 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4477 | 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] | 4478 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4479 | ac_prog_rejected=yes |
| 4480 | continue |
| 4481 | fi |
| 4482 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4483 | 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] | 4484 | break 2 |
| 4485 | fi |
| 4486 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4487 | done |
Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4488 | IFS=$as_save_IFS |
| 4489 | |
| 4490 | if test $ac_prog_rejected = yes; then |
| 4491 | # We found a bogon in the path, so make sure we never use it. |
| 4492 | set dummy $ac_cv_prog_BUILD_CXX |
| 4493 | shift |
| 4494 | if test $# != 0; then |
| 4495 | # We chose a different compiler from the bogus one. |
| 4496 | # However, it has the same basename, so the bogon will be chosen |
| 4497 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4498 | shift |
| 4499 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4500 | fi |
| 4501 | fi |
| 4502 | fi |
| 4503 | fi |
| 4504 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4505 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4506 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4507 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4508 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4509 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4510 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 009db89 | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4511 | fi |
| 4512 | |
| 4513 | |
| 4514 | fi |
| 4515 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4516 | else |
| 4517 | LLVM_CROSS_COMPILING=0 |
| 4518 | |
| 4519 | fi |
| 4520 | |
Dan Gohman | de75469c | 2010-08-04 16:25:01 +0000 | [diff] [blame] | 4521 | 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] | 4522 | cvsbuild="yes" |
| 4523 | optimize="no" |
| 4524 | CVSBUILD=CVSBUILD=1 |
| 4525 | |
| 4526 | else |
| 4527 | cvsbuild="no" |
| 4528 | optimize="yes" |
| 4529 | fi |
| 4530 | |
| 4531 | |
Eric Christopher | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 4532 | # Check whether --enable-libcpp was given. |
| 4533 | if test "${enable_libcpp+set}" = set; then |
| 4534 | enableval=$enable_libcpp; |
| 4535 | else |
| 4536 | enableval=default |
| 4537 | fi |
| 4538 | |
| 4539 | case "$enableval" in |
| 4540 | yes) ENABLE_LIBCPP=1 |
| 4541 | ;; |
| 4542 | no) ENABLE_LIBCPP=0 |
| 4543 | ;; |
| 4544 | default) ENABLE_LIBCPP=0 |
| 4545 | ;; |
| 4546 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 |
| 4547 | echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} |
| 4548 | { (exit 1); exit 1; }; } ;; |
| 4549 | esac |
| 4550 | |
Chandler Carruth | 7206eae | 2014-01-15 19:19:13 +0000 | [diff] [blame] | 4551 | # Check whether --enable-compiler-version-checks was given. |
| 4552 | if test "${enable_compiler_version_checks+set}" = set; then |
| 4553 | enableval=$enable_compiler_version_checks; |
| 4554 | else |
| 4555 | enableval=default |
| 4556 | fi |
| 4557 | |
| 4558 | case "$enableval" in |
| 4559 | no) |
| 4560 | ;; |
| 4561 | yes|default) |
| 4562 | ac_ext=cpp |
| 4563 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4564 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4565 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4566 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4567 | |
| 4568 | case "$llvm_cv_cxx_compiler" in |
| 4569 | clang) |
| 4570 | { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5 |
| 4571 | echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; } |
| 4572 | cat >conftest.$ac_ext <<_ACEOF |
| 4573 | /* confdefs.h. */ |
| 4574 | _ACEOF |
| 4575 | cat confdefs.h >>conftest.$ac_ext |
| 4576 | cat >>conftest.$ac_ext <<_ACEOF |
| 4577 | /* end confdefs.h. */ |
| 4578 | |
| 4579 | #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1) |
| 4580 | #error This version of Clang is too old to build LLVM |
| 4581 | #endif |
| 4582 | |
| 4583 | _ACEOF |
| 4584 | rm -f conftest.$ac_objext |
| 4585 | if { (ac_try="$ac_compile" |
| 4586 | case "(($ac_try" in |
| 4587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4588 | *) ac_try_echo=$ac_try;; |
| 4589 | esac |
| 4590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4591 | (eval "$ac_compile") 2>conftest.er1 |
| 4592 | ac_status=$? |
| 4593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4594 | rm -f conftest.er1 |
| 4595 | cat conftest.err >&5 |
| 4596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4597 | (exit $ac_status); } && |
| 4598 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 4605 | ac_status=$? |
| 4606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4607 | (exit $ac_status); }; } && |
| 4608 | { ac_try='test -s conftest.$ac_objext' |
| 4609 | { (case "(($ac_try" in |
| 4610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4611 | *) ac_try_echo=$ac_try;; |
| 4612 | esac |
| 4613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4614 | (eval "$ac_try") 2>&5 |
| 4615 | ac_status=$? |
| 4616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4617 | (exit $ac_status); }; }; then |
| 4618 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4619 | echo "${ECHO_T}yes" >&6; } |
| 4620 | else |
| 4621 | echo "$as_me: failed program was:" >&5 |
| 4622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4623 | |
| 4624 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4625 | echo "${ECHO_T}no" >&6; } |
| 4626 | { { echo "$as_me:$LINENO: error: |
| 4627 | The selected Clang compiler is not new enough to build LLVM. Please upgrade to |
| 4628 | Clang 3.1. You may pass --disable-compiler-version-checks to configure to |
| 4629 | bypass these sanity checks." >&5 |
| 4630 | echo "$as_me: error: |
| 4631 | The selected Clang compiler is not new enough to build LLVM. Please upgrade to |
| 4632 | Clang 3.1. You may pass --disable-compiler-version-checks to configure to |
| 4633 | bypass these sanity checks." >&2;} |
| 4634 | { (exit 1); exit 1; }; } |
| 4635 | fi |
| 4636 | |
| 4637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4638 | |
Chandler Carruth | eba44ea | 2014-01-15 21:21:48 +0000 | [diff] [blame] | 4639 | if test "$ENABLE_LIBCPP" -eq 0 ; then |
| 4640 | { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5 |
Chandler Carruth | 7206eae | 2014-01-15 19:19:13 +0000 | [diff] [blame] | 4641 | echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; } |
Chandler Carruth | eba44ea | 2014-01-15 21:21:48 +0000 | [diff] [blame] | 4642 | llvm_cv_old_cxxflags="$CXXFLAGS" |
| 4643 | CXXFLAGS="$CXXFLAGS -std=c++0x" |
| 4644 | cat >conftest.$ac_ext <<_ACEOF |
Chandler Carruth | 7206eae | 2014-01-15 19:19:13 +0000 | [diff] [blame] | 4645 | /* confdefs.h. */ |
| 4646 | _ACEOF |
| 4647 | cat confdefs.h >>conftest.$ac_ext |
| 4648 | cat >>conftest.$ac_ext <<_ACEOF |
| 4649 | /* end confdefs.h. */ |
| 4650 | |
| 4651 | #include <atomic> |
| 4652 | std::atomic<float> x(0.0f); |
| 4653 | int main() { return (float)x; } |
| 4654 | |
| 4655 | _ACEOF |
| 4656 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4657 | if { (ac_try="$ac_link" |
| 4658 | case "(($ac_try" in |
| 4659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4660 | *) ac_try_echo=$ac_try;; |
| 4661 | esac |
| 4662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4663 | (eval "$ac_link") 2>conftest.er1 |
| 4664 | ac_status=$? |
| 4665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4666 | rm -f conftest.er1 |
| 4667 | cat conftest.err >&5 |
| 4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4669 | (exit $ac_status); } && |
| 4670 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4671 | { (case "(($ac_try" in |
| 4672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4673 | *) ac_try_echo=$ac_try;; |
| 4674 | esac |
| 4675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4676 | (eval "$ac_try") 2>&5 |
| 4677 | ac_status=$? |
| 4678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4679 | (exit $ac_status); }; } && |
| 4680 | { ac_try='test -s conftest$ac_exeext' |
| 4681 | { (case "(($ac_try" in |
| 4682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4683 | *) ac_try_echo=$ac_try;; |
| 4684 | esac |
| 4685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4686 | (eval "$ac_try") 2>&5 |
| 4687 | ac_status=$? |
| 4688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4689 | (exit $ac_status); }; }; then |
| 4690 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4691 | echo "${ECHO_T}yes" >&6; } |
| 4692 | else |
| 4693 | echo "$as_me: failed program was:" >&5 |
| 4694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4695 | |
| 4696 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4697 | echo "${ECHO_T}no" >&6; } |
Chandler Carruth | eba44ea | 2014-01-15 21:21:48 +0000 | [diff] [blame] | 4698 | { { echo "$as_me:$LINENO: error: |
Chandler Carruth | 7206eae | 2014-01-15 19:19:13 +0000 | [diff] [blame] | 4699 | We detected a missing feature in the standard C++ library that was known to be |
| 4700 | missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous |
| 4701 | C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older |
| 4702 | than 4.7. You will need to update your system and ensure Clang uses the newer |
| 4703 | standard library. |
| 4704 | |
| 4705 | If this error is incorrect or you need to force things to work, you may pass |
| 4706 | '--disable-compiler-version-checks' to configure to bypass this test." >&5 |
| 4707 | echo "$as_me: error: |
| 4708 | We detected a missing feature in the standard C++ library that was known to be |
| 4709 | missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous |
| 4710 | C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older |
| 4711 | than 4.7. You will need to update your system and ensure Clang uses the newer |
| 4712 | standard library. |
| 4713 | |
| 4714 | If this error is incorrect or you need to force things to work, you may pass |
| 4715 | '--disable-compiler-version-checks' to configure to bypass this test." >&2;} |
| 4716 | { (exit 1); exit 1; }; } |
| 4717 | fi |
| 4718 | |
| 4719 | rm -f core conftest.err conftest.$ac_objext \ |
| 4720 | conftest$ac_exeext conftest.$ac_ext |
Chandler Carruth | eba44ea | 2014-01-15 21:21:48 +0000 | [diff] [blame] | 4721 | CXXFLAGS="$llvm_cv_old_cxxflags" |
| 4722 | fi |
Chandler Carruth | 7206eae | 2014-01-15 19:19:13 +0000 | [diff] [blame] | 4723 | ;; |
| 4724 | gcc) |
| 4725 | { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5 |
| 4726 | echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; } |
| 4727 | cat >conftest.$ac_ext <<_ACEOF |
| 4728 | /* confdefs.h. */ |
| 4729 | _ACEOF |
| 4730 | cat confdefs.h >>conftest.$ac_ext |
| 4731 | cat >>conftest.$ac_ext <<_ACEOF |
| 4732 | /* end confdefs.h. */ |
| 4733 | |
| 4734 | #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) |
| 4735 | #error This version of GCC is too old to build LLVM |
| 4736 | #endif |
| 4737 | |
| 4738 | _ACEOF |
| 4739 | rm -f conftest.$ac_objext |
| 4740 | if { (ac_try="$ac_compile" |
| 4741 | case "(($ac_try" in |
| 4742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4743 | *) ac_try_echo=$ac_try;; |
| 4744 | esac |
| 4745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4746 | (eval "$ac_compile") 2>conftest.er1 |
| 4747 | ac_status=$? |
| 4748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4749 | rm -f conftest.er1 |
| 4750 | cat conftest.err >&5 |
| 4751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4752 | (exit $ac_status); } && |
| 4753 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4754 | { (case "(($ac_try" in |
| 4755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4756 | *) ac_try_echo=$ac_try;; |
| 4757 | esac |
| 4758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4759 | (eval "$ac_try") 2>&5 |
| 4760 | ac_status=$? |
| 4761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4762 | (exit $ac_status); }; } && |
| 4763 | { ac_try='test -s conftest.$ac_objext' |
| 4764 | { (case "(($ac_try" in |
| 4765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4766 | *) ac_try_echo=$ac_try;; |
| 4767 | esac |
| 4768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4769 | (eval "$ac_try") 2>&5 |
| 4770 | ac_status=$? |
| 4771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4772 | (exit $ac_status); }; }; then |
| 4773 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4774 | echo "${ECHO_T}yes" >&6; } |
| 4775 | else |
| 4776 | echo "$as_me: failed program was:" >&5 |
| 4777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4778 | |
| 4779 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4780 | echo "${ECHO_T}no" >&6; } |
| 4781 | { { echo "$as_me:$LINENO: error: |
| 4782 | The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade |
| 4783 | to GCC 4.7. You may pass --disable-compiler-version-checks to configure to |
| 4784 | bypass these sanity checks." >&5 |
| 4785 | echo "$as_me: error: |
| 4786 | The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade |
| 4787 | to GCC 4.7. You may pass --disable-compiler-version-checks to configure to |
| 4788 | bypass these sanity checks." >&2;} |
| 4789 | { (exit 1); exit 1; }; } |
| 4790 | fi |
| 4791 | |
| 4792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4793 | ;; |
| 4794 | unknown) |
| 4795 | ;; |
| 4796 | esac |
| 4797 | ac_ext=c |
| 4798 | ac_cpp='$CPP $CPPFLAGS' |
| 4799 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4800 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4801 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4802 | |
| 4803 | ;; |
| 4804 | *) |
| 4805 | { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5 |
| 4806 | echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;} |
| 4807 | { (exit 1); exit 1; }; } |
| 4808 | ;; |
| 4809 | esac |
| 4810 | |
Chandler Carruth | bbae512 | 2014-03-01 03:33:08 +0000 | [diff] [blame] | 4811 | # Check whether --enable-cxx1y was given. |
| 4812 | if test "${enable_cxx1y+set}" = set; then |
| 4813 | enableval=$enable_cxx1y; |
Eric Christopher | 04e3597 | 2012-08-03 19:47:14 +0000 | [diff] [blame] | 4814 | else |
| 4815 | enableval=default |
| 4816 | fi |
| 4817 | |
| 4818 | case "$enableval" in |
Chandler Carruth | bbae512 | 2014-03-01 03:33:08 +0000 | [diff] [blame] | 4819 | yes) ENABLE_CXX1Y=1 |
Eric Christopher | 04e3597 | 2012-08-03 19:47:14 +0000 | [diff] [blame] | 4820 | ;; |
Chandler Carruth | bbae512 | 2014-03-01 03:33:08 +0000 | [diff] [blame] | 4821 | no) ENABLE_CXX1Y=0 |
Eric Christopher | 04e3597 | 2012-08-03 19:47:14 +0000 | [diff] [blame] | 4822 | ;; |
Chandler Carruth | bbae512 | 2014-03-01 03:33:08 +0000 | [diff] [blame] | 4823 | default) ENABLE_CXX1Y=0 |
Eric Christopher | 04e3597 | 2012-08-03 19:47:14 +0000 | [diff] [blame] | 4824 | ;; |
Chandler Carruth | bbae512 | 2014-03-01 03:33:08 +0000 | [diff] [blame] | 4825 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5 |
| 4826 | echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;} |
Eric Christopher | 04e3597 | 2012-08-03 19:47:14 +0000 | [diff] [blame] | 4827 | { (exit 1); exit 1; }; } ;; |
| 4828 | esac |
| 4829 | |
Eric Christopher | f1bd770 | 2013-06-25 01:12:25 +0000 | [diff] [blame] | 4830 | # Check whether --enable-split-dwarf was given. |
| 4831 | if test "${enable_split_dwarf+set}" = set; then |
| 4832 | enableval=$enable_split_dwarf; |
| 4833 | else |
| 4834 | enableval=default |
| 4835 | fi |
| 4836 | |
| 4837 | case "$enableval" in |
| 4838 | yes) ENABLE_SPLIT_DWARF=1 |
| 4839 | ;; |
| 4840 | no) ENABLE_SPLIT_DWARF=0 |
| 4841 | ;; |
| 4842 | default) ENABLE_SPLIT_DWARF=0 |
| 4843 | ;; |
| 4844 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5 |
| 4845 | echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;} |
| 4846 | { (exit 1); exit 1; }; } ;; |
| 4847 | esac |
| 4848 | |
Roman Divacky | f2bb66b | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 4849 | clang_arcmt="yes" |
| 4850 | # Check whether --enable-clang-arcmt was given. |
| 4851 | if test "${enable_clang_arcmt+set}" = set; then |
| 4852 | enableval=$enable_clang_arcmt; clang_arcmt="$enableval" |
| 4853 | else |
| 4854 | enableval="yes" |
| 4855 | fi |
| 4856 | |
| 4857 | case "$enableval" in |
| 4858 | yes) ENABLE_CLANG_ARCMT=1 |
| 4859 | ;; |
| 4860 | no) ENABLE_CLANG_ARCMT=0 |
| 4861 | ;; |
| 4862 | default) ENABLE_CLANG_ARCMT=1 |
| 4863 | ;; |
| 4864 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5 |
| 4865 | echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;} |
| 4866 | { (exit 1); exit 1; }; } ;; |
| 4867 | esac |
| 4868 | |
Rafael Espindola | e33f06c | 2014-03-10 16:58:35 +0000 | [diff] [blame] | 4869 | clang_plugin_support="yes" |
| 4870 | # Check whether --enable-clang-plugin-support was given. |
| 4871 | if test "${enable_clang_plugin_support+set}" = set; then |
| 4872 | enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval" |
| 4873 | else |
| 4874 | enableval="yes" |
| 4875 | fi |
| 4876 | |
| 4877 | case "$enableval" in |
| 4878 | yes) CLANG_PLUGIN_SUPPORT=1 |
| 4879 | ;; |
| 4880 | no) CLANG_PLUGIN_SUPPORT=0 |
| 4881 | ;; |
| 4882 | default) CLANG_PLUGIN_SUPPORT=1 |
| 4883 | ;; |
| 4884 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5 |
| 4885 | echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;} |
| 4886 | { (exit 1); exit 1; }; } ;; |
| 4887 | esac |
| 4888 | |
Roman Divacky | f2bb66b | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 4889 | clang_static_analyzer="yes" |
| 4890 | # Check whether --enable-clang-static-analyzer was given. |
| 4891 | if test "${enable_clang_static_analyzer+set}" = set; then |
| 4892 | enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval" |
| 4893 | else |
| 4894 | enableval="yes" |
| 4895 | fi |
| 4896 | |
| 4897 | case "$enableval" in |
| 4898 | yes) ENABLE_CLANG_STATIC_ANALYZER=1 |
| 4899 | ;; |
Jordan Rose | 23fc6f3 | 2013-08-22 15:49:53 +0000 | [diff] [blame] | 4900 | no) |
| 4901 | if test ${clang_arcmt} != "no" ; then |
| 4902 | { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5 |
| 4903 | echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;} |
| 4904 | { (exit 1); exit 1; }; } |
| 4905 | fi |
| 4906 | ENABLE_CLANG_STATIC_ANALYZER=0 |
NAKAMURA Takumi | 4cfe554 | 2013-08-22 16:31:34 +0000 | [diff] [blame] | 4907 | |
Jordan Rose | 23fc6f3 | 2013-08-22 15:49:53 +0000 | [diff] [blame] | 4908 | ;; |
Roman Divacky | f2bb66b | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 4909 | default) ENABLE_CLANG_STATIC_ANALYZER=1 |
| 4910 | ;; |
| 4911 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5 |
| 4912 | echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;} |
| 4913 | { (exit 1); exit 1; }; } ;; |
| 4914 | esac |
| 4915 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4916 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4917 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4918 | enableval=$enable_optimized; |
| 4919 | else |
| 4920 | enableval=$optimize |
| 4921 | fi |
| 4922 | |
| 4923 | if test ${enableval} = "no" ; then |
| 4924 | ENABLE_OPTIMIZED= |
| 4925 | |
| 4926 | else |
| 4927 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4928 | |
| 4929 | fi |
| 4930 | |
David Greene | c0a34a07 | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4931 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4932 | if test "${enable_profiling+set}" = set; then |
David Greene | c0a34a07 | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4933 | enableval=$enable_profiling; |
| 4934 | else |
| 4935 | enableval="no" |
| 4936 | fi |
| 4937 | |
| 4938 | if test ${enableval} = "no" ; then |
| 4939 | ENABLE_PROFILING= |
| 4940 | |
| 4941 | else |
| 4942 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4943 | |
| 4944 | fi |
| 4945 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4946 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4947 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4948 | enableval=$enable_assertions; |
| 4949 | else |
| 4950 | enableval="yes" |
| 4951 | fi |
| 4952 | |
| 4953 | if test ${enableval} = "yes" ; then |
| 4954 | DISABLE_ASSERTIONS= |
| 4955 | |
| 4956 | else |
| 4957 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4958 | |
| 4959 | fi |
| 4960 | |
Eric Christopher | 8486401 | 2012-08-03 19:58:20 +0000 | [diff] [blame] | 4961 | # Check whether --enable-werror was given. |
| 4962 | if test "${enable_werror+set}" = set; then |
| 4963 | enableval=$enable_werror; |
| 4964 | else |
| 4965 | enableval="no" |
| 4966 | fi |
| 4967 | |
| 4968 | case "$enableval" in |
| 4969 | yes) ENABLE_WERROR=1 |
| 4970 | ;; |
| 4971 | no) ENABLE_WERROR=0 |
| 4972 | ;; |
| 4973 | default) ENABLE_WERROR=0 |
| 4974 | ;; |
| 4975 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5 |
| 4976 | echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;} |
| 4977 | { (exit 1); exit 1; }; } ;; |
| 4978 | esac |
| 4979 | |
David Greene | cbc8ddf | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4980 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4981 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | cbc8ddf | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4982 | enableval=$enable_expensive_checks; |
| 4983 | else |
| 4984 | enableval="no" |
| 4985 | fi |
| 4986 | |
| 4987 | if test ${enableval} = "yes" ; then |
| 4988 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4989 | |
| 4990 | EXPENSIVE_CHECKS=yes |
| 4991 | |
| 4992 | else |
| 4993 | ENABLE_EXPENSIVE_CHECKS= |
| 4994 | |
| 4995 | EXPENSIVE_CHECKS=no |
| 4996 | |
| 4997 | fi |
| 4998 | |
Reid Spencer | 4b8067f | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4999 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5000 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 4b8067f | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5001 | enableval=$enable_debug_runtime; |
| 5002 | else |
| 5003 | enableval=no |
| 5004 | fi |
| 5005 | |
| 5006 | if test ${enableval} = "no" ; then |
| 5007 | DEBUG_RUNTIME= |
| 5008 | |
| 5009 | else |
| 5010 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 5011 | |
| 5012 | fi |
| 5013 | |
Jeffrey Yasskin | c3273dc | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5014 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5015 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | c3273dc | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5016 | enableval=$enable_debug_symbols; |
| 5017 | else |
| 5018 | enableval=no |
| 5019 | fi |
| 5020 | |
| 5021 | if test ${enableval} = "no" ; then |
| 5022 | DEBUG_SYMBOLS= |
| 5023 | |
| 5024 | else |
| 5025 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 5026 | |
| 5027 | fi |
| 5028 | |
Daniel Dunbar | 39c0462 | 2012-08-14 18:14:22 +0000 | [diff] [blame] | 5029 | # Check whether --enable-keep-symbols was given. |
| 5030 | if test "${enable_keep_symbols+set}" = set; then |
| 5031 | enableval=$enable_keep_symbols; |
| 5032 | else |
| 5033 | enableval=no |
| 5034 | fi |
| 5035 | |
| 5036 | if test ${enableval} = "no" ; then |
| 5037 | KEEP_SYMBOLS= |
| 5038 | |
| 5039 | else |
| 5040 | KEEP_SYMBOLS=KEEP_SYMBOLS=1 |
| 5041 | |
| 5042 | fi |
| 5043 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5044 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5045 | if test "${enable_jit+set}" = set; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5046 | enableval=$enable_jit; |
| 5047 | else |
| 5048 | enableval=default |
| 5049 | fi |
| 5050 | |
| 5051 | if test ${enableval} = "no" |
| 5052 | then |
| 5053 | JIT= |
| 5054 | |
| 5055 | else |
| 5056 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5057 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5058 | ;; |
Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5059 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5060 | ;; |
Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5061 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5062 | ;; |
Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5063 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5064 | ;; |
Eric Christopher | d8530f3 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 5065 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | d7c8b3c | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 5066 | ;; |
Bruno Cardoso Lopes | d1d9c78 | 2011-07-21 16:28:51 +0000 | [diff] [blame] | 5067 | Mips) TARGET_HAS_JIT=1 |
Tanya Lattner | bca16c8 | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 5068 | ;; |
Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5069 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | ca08e06 | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 5070 | ;; |
Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5071 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 9173b49 | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 5072 | ;; |
Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5073 | Hexagon) TARGET_HAS_JIT=0 |
| 5074 | ;; |
Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 5075 | NVPTX) TARGET_HAS_JIT=0 |
| 5076 | ;; |
Ulrich Weigand | 1ceebf6 | 2013-05-06 16:22:34 +0000 | [diff] [blame] | 5077 | SystemZ) TARGET_HAS_JIT=1 |
| 5078 | ;; |
Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5079 | *) TARGET_HAS_JIT=0 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5080 | ;; |
| 5081 | esac |
| 5082 | fi |
| 5083 | |
Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 5084 | TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86" |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 5085 | TARGETS_WITH_JIT=$TARGETS_WITH_JIT |
| 5086 | |
| 5087 | |
Rafael Espindola | 7ac506d | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 5088 | # Check whether --enable-docs was given. |
| 5089 | if test "${enable_docs+set}" = set; then |
| 5090 | enableval=$enable_docs; |
| 5091 | else |
| 5092 | enableval=default |
| 5093 | fi |
| 5094 | |
| 5095 | case "$enableval" in |
| 5096 | yes) ENABLE_DOCS=1 |
| 5097 | ;; |
| 5098 | no) ENABLE_DOCS=0 |
| 5099 | ;; |
| 5100 | default) ENABLE_DOCS=1 |
| 5101 | ;; |
| 5102 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 |
| 5103 | echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} |
| 5104 | { (exit 1); exit 1; }; } ;; |
| 5105 | esac |
| 5106 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5107 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5108 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5109 | enableval=$enable_doxygen; |
| 5110 | else |
| 5111 | enableval=default |
| 5112 | fi |
| 5113 | |
| 5114 | case "$enableval" in |
| 5115 | yes) ENABLE_DOXYGEN=1 |
| 5116 | ;; |
| 5117 | no) ENABLE_DOXYGEN=0 |
| 5118 | ;; |
| 5119 | default) ENABLE_DOXYGEN=0 |
| 5120 | ;; |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5121 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 5122 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 5123 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5124 | esac |
| 5125 | |
| 5126 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5127 | if test "${enable_threads+set}" = set; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5128 | enableval=$enable_threads; |
| 5129 | else |
Reid Spencer | d549edc | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5130 | enableval=default |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5131 | fi |
| 5132 | |
| 5133 | case "$enableval" in |
NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5134 | yes) LLVM_ENABLE_THREADS=1 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5135 | ;; |
NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5136 | no) LLVM_ENABLE_THREADS=0 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5137 | ;; |
NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5138 | default) LLVM_ENABLE_THREADS=1 |
Reid Spencer | d549edc | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5139 | ;; |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5140 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 5141 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 5142 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5143 | esac |
| 5144 | |
Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5145 | cat >>confdefs.h <<_ACEOF |
NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5146 | #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS |
Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5147 | _ACEOF |
| 5148 | |
| 5149 | |
NAKAMURA Takumi | c6fce17 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 5150 | # Check whether --enable-pthreads was given. |
| 5151 | if test "${enable_pthreads+set}" = set; then |
| 5152 | enableval=$enable_pthreads; |
| 5153 | else |
| 5154 | enableval=default |
| 5155 | fi |
| 5156 | |
| 5157 | case "$enableval" in |
| 5158 | yes) ENABLE_PTHREADS=1 |
| 5159 | ;; |
| 5160 | no) ENABLE_PTHREADS=0 |
| 5161 | ;; |
| 5162 | default) ENABLE_PTHREADS=1 |
| 5163 | ;; |
| 5164 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 |
| 5165 | echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} |
| 5166 | { (exit 1); exit 1; }; } ;; |
| 5167 | esac |
| 5168 | |
Alexey Samsonov | 2fb337e | 2013-04-23 08:28:39 +0000 | [diff] [blame] | 5169 | # Check whether --enable-zlib was given. |
| 5170 | if test "${enable_zlib+set}" = set; then |
| 5171 | enableval=$enable_zlib; |
| 5172 | else |
| 5173 | enableval=default |
| 5174 | fi |
| 5175 | |
| 5176 | case "$enableval" in |
| 5177 | yes) LLVM_ENABLE_ZLIB=1 |
| 5178 | ;; |
| 5179 | no) LLVM_ENABLE_ZLIB=0 |
| 5180 | ;; |
| 5181 | default) LLVM_ENABLE_ZLIB=1 |
| 5182 | ;; |
| 5183 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5 |
| 5184 | echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;} |
| 5185 | { (exit 1); exit 1; }; } ;; |
| 5186 | esac |
| 5187 | |
| 5188 | cat >>confdefs.h <<_ACEOF |
| 5189 | #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB |
| 5190 | _ACEOF |
| 5191 | |
| 5192 | |
Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5193 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5194 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5195 | enableval=$enable_pic; |
| 5196 | else |
| 5197 | enableval=default |
| 5198 | fi |
| 5199 | |
| 5200 | case "$enableval" in |
| 5201 | yes) ENABLE_PIC=1 |
| 5202 | ;; |
| 5203 | no) ENABLE_PIC=0 |
| 5204 | ;; |
Nick Lewycky | 3852519 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 5205 | default) ENABLE_PIC=1 |
Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5206 | ;; |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5207 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 5208 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 5209 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 05a1fe5 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5210 | esac |
| 5211 | |
| 5212 | cat >>confdefs.h <<_ACEOF |
| 5213 | #define ENABLE_PIC $ENABLE_PIC |
| 5214 | _ACEOF |
| 5215 | |
| 5216 | |
Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 5217 | # Check whether --enable-shared was given. |
| 5218 | if test "${enable_shared+set}" = set; then |
| 5219 | enableval=$enable_shared; |
| 5220 | else |
| 5221 | enableval=default |
| 5222 | fi |
| 5223 | |
| 5224 | case "$enableval" in |
| 5225 | yes) ENABLE_SHARED=1 |
| 5226 | ;; |
| 5227 | no) ENABLE_SHARED=0 |
| 5228 | ;; |
| 5229 | default) ENABLE_SHARED=0 |
| 5230 | ;; |
| 5231 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 |
| 5232 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} |
| 5233 | { (exit 1); exit 1; }; } ;; |
| 5234 | esac |
| 5235 | |
NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5236 | # Check whether --enable-embed-stdcxx was given. |
| 5237 | if test "${enable_embed_stdcxx+set}" = set; then |
| 5238 | enableval=$enable_embed_stdcxx; |
| 5239 | else |
| 5240 | enableval=default |
| 5241 | fi |
| 5242 | |
| 5243 | case "$enableval" in |
| 5244 | yes) ENABLE_EMBED_STDCXX=1 |
| 5245 | ;; |
| 5246 | no) ENABLE_EMBED_STDCXX=0 |
| 5247 | ;; |
NAKAMURA Takumi | d5a9a3a | 2011-10-13 18:04:52 +0000 | [diff] [blame] | 5248 | default) ENABLE_EMBED_STDCXX=0 |
NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5249 | ;; |
| 5250 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 |
| 5251 | echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} |
| 5252 | { (exit 1); exit 1; }; } ;; |
| 5253 | esac |
| 5254 | |
Daniel Dunbar | dac1824 | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 5255 | # Check whether --enable-timestamps was given. |
| 5256 | if test "${enable_timestamps+set}" = set; then |
| 5257 | enableval=$enable_timestamps; |
| 5258 | else |
| 5259 | enableval=default |
| 5260 | fi |
| 5261 | |
| 5262 | case "$enableval" in |
| 5263 | yes) ENABLE_TIMESTAMPS=1 |
| 5264 | ;; |
| 5265 | no) ENABLE_TIMESTAMPS=0 |
| 5266 | ;; |
| 5267 | default) ENABLE_TIMESTAMPS=1 |
| 5268 | ;; |
| 5269 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 |
| 5270 | echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} |
| 5271 | { (exit 1); exit 1; }; } ;; |
| 5272 | esac |
| 5273 | |
| 5274 | cat >>confdefs.h <<_ACEOF |
| 5275 | #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS |
| 5276 | _ACEOF |
| 5277 | |
| 5278 | |
Eric Christopher | 9fafe07 | 2012-09-21 23:03:29 +0000 | [diff] [blame] | 5279 | # Check whether --enable-backtraces was given. |
| 5280 | if test "${enable_backtraces+set}" = set; then |
Daniel Dunbar | eb6c708 | 2013-08-30 20:39:21 +0000 | [diff] [blame] | 5281 | enableval=$enable_backtraces; case "$enableval" in |
| 5282 | yes) llvm_cv_enable_backtraces="yes" ;; |
| 5283 | no) llvm_cv_enable_backtraces="no" ;; |
| 5284 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5 |
Eric Christopher | 9fafe07 | 2012-09-21 23:03:29 +0000 | [diff] [blame] | 5285 | echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;} |
| 5286 | { (exit 1); exit 1; }; } ;; |
Daniel Dunbar | eb6c708 | 2013-08-30 20:39:21 +0000 | [diff] [blame] | 5287 | esac |
| 5288 | else |
| 5289 | llvm_cv_enable_backtraces="yes" |
| 5290 | fi |
Eric Christopher | 9fafe07 | 2012-09-21 23:03:29 +0000 | [diff] [blame] | 5291 | |
Daniel Dunbar | eb6c708 | 2013-08-30 20:39:21 +0000 | [diff] [blame] | 5292 | if test "$llvm_cv_enable_backtraces" = "yes" ; then |
| 5293 | |
| 5294 | cat >>confdefs.h <<\_ACEOF |
| 5295 | #define ENABLE_BACKTRACES 1 |
Eric Christopher | 9fafe07 | 2012-09-21 23:03:29 +0000 | [diff] [blame] | 5296 | _ACEOF |
| 5297 | |
Daniel Dunbar | eb6c708 | 2013-08-30 20:39:21 +0000 | [diff] [blame] | 5298 | fi |
| 5299 | |
| 5300 | # Check whether --enable-crash-overrides was given. |
| 5301 | if test "${enable_crash_overrides+set}" = set; then |
| 5302 | enableval=$enable_crash_overrides; case "$enableval" in |
| 5303 | yes) llvm_cv_enable_crash_overrides="yes" ;; |
| 5304 | no) llvm_cv_enable_crash_overrides="no" ;; |
| 5305 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5 |
| 5306 | echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;} |
| 5307 | { (exit 1); exit 1; }; } ;; |
| 5308 | esac |
| 5309 | else |
| 5310 | llvm_cv_enable_crash_overrides="yes" |
| 5311 | fi |
| 5312 | |
| 5313 | if test "$llvm_cv_enable_crash_overrides" = "yes" ; then |
| 5314 | |
| 5315 | cat >>confdefs.h <<\_ACEOF |
| 5316 | #define ENABLE_CRASH_OVERRIDES 1 |
| 5317 | _ACEOF |
| 5318 | |
| 5319 | fi |
Eric Christopher | 9fafe07 | 2012-09-21 23:03:29 +0000 | [diff] [blame] | 5320 | |
Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 5321 | ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 5322 | ALL_TARGETS=$ALL_TARGETS |
| 5323 | |
| 5324 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5325 | TARGETS_TO_BUILD="" |
| 5326 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5327 | if test "${enable_targets+set}" = set; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5328 | enableval=$enable_targets; |
| 5329 | else |
| 5330 | enableval=all |
| 5331 | fi |
| 5332 | |
Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5333 | if test "$enableval" = host-only ; then |
| 5334 | enableval=host |
| 5335 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5336 | case "$enableval" in |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 5337 | all) TARGETS_TO_BUILD="$ALL_TARGETS" ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5338 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5339 | case "$a_target" in |
Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5340 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5341 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5342 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5343 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 5344 | aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; |
| 5345 | arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; |
Patrik Hagglund | d91ae4d | 2013-02-04 08:15:53 +0000 | [diff] [blame] | 5346 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5347 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Rafael Espindola | e46f096 | 2011-12-28 17:08:00 +0000 | [diff] [blame] | 5348 | mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Simon Atanasyan | c2cccd7 | 2012-10-29 19:49:45 +0000 | [diff] [blame] | 5349 | mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 5350 | mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5351 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5352 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 1f90bd2 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5353 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5354 | hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; |
Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 5355 | nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; |
Ulrich Weigand | 1ceebf6 | 2013-05-06 16:22:34 +0000 | [diff] [blame] | 5356 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Rafael Espindola | f6474d2 | 2013-05-22 00:35:47 +0000 | [diff] [blame] | 5357 | r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5358 | host) case "$llvm_cv_target_arch" in |
| 5359 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5360 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5361 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5362 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 5363 | AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5364 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5365 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5366 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5367 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5368 | Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; |
Justin Holewinski | ae556d3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 5369 | NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; |
Ulrich Weigand | 1ceebf6 | 2013-05-06 16:22:34 +0000 | [diff] [blame] | 5370 | SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5371 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 5372 | echo "$as_me: error: Can not set target to build" >&2;} |
| 5373 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | 42a49df | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5374 | esac ;; |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5375 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 5376 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 5377 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5378 | esac |
| 5379 | done |
| 5380 | ;; |
| 5381 | esac |
Victor Oliveira | 9d4b8f5 | 2012-08-09 01:13:59 +0000 | [diff] [blame] | 5382 | |
| 5383 | # Check whether --enable-experimental-targets was given. |
| 5384 | if test "${enable_experimental_targets+set}" = set; then |
| 5385 | enableval=$enable_experimental_targets; |
| 5386 | else |
| 5387 | enableval=disable |
| 5388 | fi |
| 5389 | |
| 5390 | |
| 5391 | if test ${enableval} != "disable" |
| 5392 | then |
| 5393 | TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD" |
| 5394 | fi |
| 5395 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5396 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 5397 | |
| 5398 | |
Douglas Gregor | 43613a2 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5399 | for a_target in $TARGETS_TO_BUILD; do |
| 5400 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
| 5401 | |
| 5402 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5403 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH |
| 5404 | _ACEOF |
| 5405 | |
| 5406 | LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" |
| 5407 | LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" |
Evan Cheng | 8c886a4 | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5408 | LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" |
Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5409 | LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" |
Jan Sjödin | c9a16d5 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5410 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then |
| 5411 | LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" |
| 5412 | fi |
Eric Christopher | 56079c1 | 2012-03-26 21:56:56 +0000 | [diff] [blame] | 5413 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then |
| 5414 | LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" |
| 5415 | fi |
Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5416 | |
| 5417 | cat >>confdefs.h <<_ACEOF |
| 5418 | #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET |
Daniel Dunbar | edf7b8b | 2010-08-03 14:26:17 +0000 | [diff] [blame] | 5419 | _ACEOF |
| 5420 | |
| 5421 | |
| 5422 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5423 | #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO |
| 5424 | _ACEOF |
| 5425 | |
| 5426 | |
| 5427 | cat >>confdefs.h <<_ACEOF |
Evan Cheng | 8c886a4 | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5428 | #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC |
Evan Cheng | 2129f59 | 2011-07-19 06:37:02 +0000 | [diff] [blame] | 5429 | _ACEOF |
| 5430 | |
| 5431 | |
| 5432 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | e7a9db1 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5433 | #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER |
Douglas Gregor | 43613a2 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5434 | _ACEOF |
| 5435 | |
Jan Sjödin | c9a16d5 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5436 | 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] | 5437 | |
| 5438 | cat >>confdefs.h <<_ACEOF |
| 5439 | #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER |
| 5440 | _ACEOF |
| 5441 | |
Jan Sjödin | c9a16d5 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5442 | fi |
Eric Christopher | 56079c1 | 2012-03-26 21:56:56 +0000 | [diff] [blame] | 5443 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then |
| 5444 | |
| 5445 | cat >>confdefs.h <<_ACEOF |
| 5446 | #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER |
| 5447 | _ACEOF |
| 5448 | |
| 5449 | fi |
Douglas Gregor | 43613a2 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5450 | fi |
| 5451 | done |
| 5452 | |
Douglas Gregor | 1b731d5 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5453 | LLVM_ENUM_TARGETS="" |
| 5454 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5455 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5456 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1b731d5 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5457 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5458 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
Chris Lattner | 2877660 | 2010-11-14 19:10:47 +0000 | [diff] [blame] | 5459 | if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then |
Jim Grosbach | 0e854f3 | 2010-10-01 22:39:28 +0000 | [diff] [blame] | 5460 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5461 | fi |
Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5462 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5463 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5464 | fi |
Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5465 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 5466 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 5467 | fi |
Douglas Gregor | 1b731d5 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5468 | done |
| 5469 | |
| 5470 | |
| 5471 | |
Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5472 | |
Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5473 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5474 | |
Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5475 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5476 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5477 | withval=$with_optimize_option; |
| 5478 | else |
| 5479 | withval=default |
| 5480 | fi |
| 5481 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5482 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5483 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5484 | case "$withval" in |
| 5485 | default) |
| 5486 | case "$llvm_cv_os_type" in |
Daniel Dunbar | d411fcb | 2010-04-30 17:12:26 +0000 | [diff] [blame] | 5487 | FreeBSD) optimize_option=-O2 ;; |
Daniel Dunbar | 4e06a5b | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 5488 | MingW) optimize_option=-O2 ;; |
| 5489 | *) optimize_option=-O3 ;; |
Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5490 | esac ;; |
| 5491 | *) optimize_option="$withval" ;; |
| 5492 | esac |
| 5493 | OPTIMIZE_OPTION=$optimize_option |
| 5494 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5495 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5496 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | b4a289c | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5497 | |
| 5498 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5499 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5500 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5501 | withval=$with_extra_options; |
| 5502 | else |
| 5503 | withval=default |
| 5504 | fi |
| 5505 | |
| 5506 | case "$withval" in |
| 5507 | default) EXTRA_OPTIONS= ;; |
| 5508 | *) EXTRA_OPTIONS=$withval ;; |
| 5509 | esac |
| 5510 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5511 | |
| 5512 | |
Daniel Dunbar | 3b95df8 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 5513 | |
| 5514 | # Check whether --with-extra-ld-options was given. |
| 5515 | if test "${with_extra_ld_options+set}" = set; then |
| 5516 | withval=$with_extra_ld_options; |
| 5517 | else |
| 5518 | withval=default |
| 5519 | fi |
| 5520 | |
| 5521 | case "$withval" in |
| 5522 | default) EXTRA_LD_OPTIONS= ;; |
| 5523 | *) EXTRA_LD_OPTIONS=$withval ;; |
| 5524 | esac |
| 5525 | EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS |
| 5526 | |
| 5527 | |
Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5528 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5529 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5530 | enableval=$enable_bindings; |
| 5531 | else |
| 5532 | enableval=default |
| 5533 | fi |
| 5534 | |
| 5535 | BINDINGS_TO_BUILD="" |
| 5536 | case "$enableval" in |
Gordon Henriksen | acc2a83 | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5537 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5538 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5539 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5540 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5541 | case "$a_binding" in |
| 5542 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5543 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5544 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5545 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5546 | esac |
| 5547 | done |
| 5548 | ;; |
| 5549 | esac |
| 5550 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5551 | |
Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5552 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5553 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5554 | withval=$with_ocaml_libdir; |
| 5555 | else |
| 5556 | withval=auto |
| 5557 | fi |
| 5558 | |
| 5559 | case "$withval" in |
| 5560 | auto) with_ocaml_libdir="$withval" ;; |
| 5561 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5562 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5563 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5564 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5565 | esac |
| 5566 | |
| 5567 | |
NAKAMURA Takumi | 914f192 | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 5568 | # Check whether --with-clang-srcdir was given. |
| 5569 | if test "${with_clang_srcdir+set}" = set; then |
| 5570 | withval=$with_clang_srcdir; |
| 5571 | else |
| 5572 | withval="-" |
| 5573 | fi |
| 5574 | |
| 5575 | case "$withval" in |
Eric Christopher | 7f977de | 2012-02-02 00:19:05 +0000 | [diff] [blame] | 5576 | -) clang_src_root="" ;; |
NAKAMURA Takumi | 914f192 | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 5577 | /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; |
| 5578 | *) clang_src_root="$ac_pwd/$withval" ;; |
| 5579 | esac |
| 5580 | CLANG_SRC_ROOT=$clang_src_root |
| 5581 | |
| 5582 | |
| 5583 | |
Chandler Carruth | ffae4a6 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 5584 | # Check whether --with-clang-resource-dir was given. |
| 5585 | if test "${with_clang_resource_dir+set}" = set; then |
| 5586 | withval=$with_clang_resource_dir; |
| 5587 | else |
| 5588 | withval="" |
| 5589 | fi |
| 5590 | |
| 5591 | |
| 5592 | cat >>confdefs.h <<_ACEOF |
| 5593 | #define CLANG_RESOURCE_DIR "$withval" |
| 5594 | _ACEOF |
| 5595 | |
| 5596 | |
| 5597 | |
Rafael Espindola | 662908c | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5598 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5599 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | 662908c | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5600 | withval=$with_c_include_dirs; |
Rafael Espindola | d95960b | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5601 | else |
| 5602 | withval="" |
| 5603 | fi |
| 5604 | |
| 5605 | |
| 5606 | cat >>confdefs.h <<_ACEOF |
| 5607 | #define C_INCLUDE_DIRS "$withval" |
| 5608 | _ACEOF |
| 5609 | |
| 5610 | |
Rafael Espindola | ec217f6 | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5611 | # Clang normally uses the system c++ headers and libraries. With this option, |
| 5612 | # clang will use the ones provided by a gcc installation instead. This option should |
| 5613 | # 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] | 5614 | |
Rafael Espindola | ec217f6 | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5615 | # Check whether --with-gcc-toolchain was given. |
| 5616 | if test "${with_gcc_toolchain+set}" = set; then |
| 5617 | withval=$with_gcc_toolchain; |
Rafael Espindola | 65e9be6d | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5618 | else |
| 5619 | withval="" |
| 5620 | fi |
| 5621 | |
| 5622 | |
| 5623 | cat >>confdefs.h <<_ACEOF |
Rafael Espindola | ec217f6 | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5624 | #define GCC_INSTALL_PREFIX "$withval" |
Rafael Espindola | 65e9be6d | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5625 | _ACEOF |
| 5626 | |
| 5627 | |
| 5628 | |
Sebastian Pop | e29a6c7 | 2012-04-30 20:06:58 +0000 | [diff] [blame] | 5629 | # Check whether --with-default-sysroot was given. |
| 5630 | if test "${with_default_sysroot+set}" = set; then |
| 5631 | withval=$with_default_sysroot; |
Sebastian Pop | 5c9e184 | 2012-04-16 04:11:45 +0000 | [diff] [blame] | 5632 | else |
| 5633 | withval="" |
| 5634 | fi |
| 5635 | |
| 5636 | |
| 5637 | cat >>confdefs.h <<_ACEOF |
| 5638 | #define DEFAULT_SYSROOT "$withval" |
| 5639 | _ACEOF |
| 5640 | |
| 5641 | |
| 5642 | |
Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5643 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5644 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5645 | withval=$with_binutils_include; |
| 5646 | else |
| 5647 | withval=default |
| 5648 | fi |
| 5649 | |
| 5650 | case "$withval" in |
| 5651 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5652 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5653 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5654 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5655 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5656 | esac |
| 5657 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5658 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5659 | |
| 5660 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5661 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5662 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5663 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5664 | { (exit 1); exit 1; }; }; |
Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5665 | fi |
| 5666 | fi |
| 5667 | |
Eric Christopher | 65080cc | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 5668 | |
| 5669 | # Check whether --with-bug-report-url was given. |
| 5670 | if test "${with_bug_report_url+set}" = set; then |
| 5671 | withval=$with_bug_report_url; |
| 5672 | else |
NAKAMURA Takumi | 818a22b | 2011-08-12 01:50:43 +0000 | [diff] [blame] | 5673 | withval="http://llvm.org/bugs/" |
Eric Christopher | 65080cc | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 5674 | fi |
| 5675 | |
| 5676 | |
| 5677 | cat >>confdefs.h <<_ACEOF |
| 5678 | #define BUG_REPORT_URL "$withval" |
| 5679 | _ACEOF |
| 5680 | |
| 5681 | |
Chandler Carruth | f11f1e4 | 2013-08-12 09:49:17 +0000 | [diff] [blame] | 5682 | # Check whether --enable-terminfo was given. |
| 5683 | if test "${enable_terminfo+set}" = set; then |
| 5684 | enableval=$enable_terminfo; case "$enableval" in |
| 5685 | yes) llvm_cv_enable_terminfo="yes" ;; |
| 5686 | no) llvm_cv_enable_terminfo="no" ;; |
| 5687 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5 |
| 5688 | echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;} |
Chandler Carruth | cad7e5e | 2013-08-07 08:47:36 +0000 | [diff] [blame] | 5689 | { (exit 1); exit 1; }; } ;; |
| 5690 | esac |
| 5691 | else |
Chandler Carruth | f11f1e4 | 2013-08-12 09:49:17 +0000 | [diff] [blame] | 5692 | llvm_cv_enable_terminfo="yes" |
Chandler Carruth | cad7e5e | 2013-08-07 08:47:36 +0000 | [diff] [blame] | 5693 | fi |
| 5694 | |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 5695 | case "$llvm_cv_enable_terminfo" in |
| 5696 | yes) ENABLE_TERMINFO=1 |
| 5697 | ;; |
| 5698 | no) ENABLE_TERMINFO=0 |
| 5699 | ;; |
| 5700 | esac |
Chandler Carruth | cad7e5e | 2013-08-07 08:47:36 +0000 | [diff] [blame] | 5701 | |
Peter Collingbourne | c7d437c | 2014-01-31 23:46:14 +0000 | [diff] [blame] | 5702 | # Check whether --enable-libedit was given. |
| 5703 | if test "${enable_libedit+set}" = set; then |
| 5704 | enableval=$enable_libedit; case "$enableval" in |
| 5705 | yes) llvm_cv_enable_libedit="yes" ;; |
| 5706 | no) llvm_cv_enable_libedit="no" ;; |
| 5707 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5 |
| 5708 | echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;} |
| 5709 | { (exit 1); exit 1; }; } ;; |
| 5710 | esac |
| 5711 | else |
| 5712 | llvm_cv_enable_libedit="yes" |
| 5713 | fi |
| 5714 | |
| 5715 | |
Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5716 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5717 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | 914050b | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5718 | enableval=$enable_libffi; case "$enableval" in |
| 5719 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5720 | no) llvm_cv_enable_libffi="no" ;; |
| 5721 | *) { { 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] | 5722 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5723 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | 914050b | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5724 | esac |
| 5725 | else |
| 5726 | llvm_cv_enable_libffi=no |
| 5727 | fi |
| 5728 | |
Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5729 | |
Nick Lewycky | a2cf0ed | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5730 | |
Bob Wilson | 3f35470 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 5731 | # Check whether --with-internal-prefix was given. |
| 5732 | if test "${with_internal_prefix+set}" = set; then |
| 5733 | withval=$with_internal_prefix; |
| 5734 | else |
| 5735 | withval="" |
| 5736 | fi |
| 5737 | |
| 5738 | INTERNAL_PREFIX=$withval |
| 5739 | |
| 5740 | |
| 5741 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5742 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 5743 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 5744 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 5745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5746 | else |
| 5747 | llvm_cv_gnu_make_command='' |
| 5748 | for a in "$MAKE" make gmake gnumake ; do |
| 5749 | if test -z "$a" ; then continue ; fi ; |
| 5750 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 5751 | then |
| 5752 | llvm_cv_gnu_make_command=$a ; |
| 5753 | break; |
| 5754 | fi |
| 5755 | done |
| 5756 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5757 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 5758 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5759 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 5760 | ifGNUmake='' ; |
| 5761 | else |
| 5762 | ifGNUmake='#' ; |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5763 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 5764 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5765 | fi |
| 5766 | |
| 5767 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5768 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 5769 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5770 | LN_S=$as_ln_s |
| 5771 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5772 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 5773 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5774 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5775 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 5776 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5777 | fi |
| 5778 | |
Rafael Espindola | fd1355a | 2014-02-28 18:17:54 +0000 | [diff] [blame] | 5779 | # Extract the first word of "nm", so it can be a program name with args. |
| 5780 | set dummy nm; ac_word=$2 |
| 5781 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5782 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5783 | if test "${ac_cv_path_NM+set}" = set; then |
| 5784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5785 | else |
| 5786 | case $NM in |
| 5787 | [\\/]* | ?:[\\/]*) |
| 5788 | ac_cv_path_NM="$NM" # Let the user override the test with a path. |
| 5789 | ;; |
| 5790 | *) |
| 5791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5792 | for as_dir in $PATH |
| 5793 | do |
| 5794 | IFS=$as_save_IFS |
| 5795 | test -z "$as_dir" && as_dir=. |
| 5796 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5797 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5798 | ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" |
| 5799 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5800 | break 2 |
| 5801 | fi |
| 5802 | done |
| 5803 | done |
| 5804 | IFS=$as_save_IFS |
| 5805 | |
| 5806 | test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm" |
| 5807 | ;; |
| 5808 | esac |
| 5809 | fi |
| 5810 | NM=$ac_cv_path_NM |
| 5811 | if test -n "$NM"; then |
| 5812 | { echo "$as_me:$LINENO: result: $NM" >&5 |
| 5813 | echo "${ECHO_T}$NM" >&6; } |
| 5814 | else |
| 5815 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5816 | echo "${ECHO_T}no" >&6; } |
| 5817 | fi |
| 5818 | |
| 5819 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5820 | # Extract the first word of "cmp", so it can be a program name with args. |
| 5821 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5822 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5823 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5824 | if test "${ac_cv_path_CMP+set}" = set; then |
| 5825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5826 | else |
| 5827 | case $CMP in |
| 5828 | [\\/]* | ?:[\\/]*) |
| 5829 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 5830 | ;; |
| 5831 | *) |
| 5832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5833 | for as_dir in $PATH |
| 5834 | do |
| 5835 | IFS=$as_save_IFS |
| 5836 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5837 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5838 | 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] | 5839 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5840 | 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] | 5841 | break 2 |
| 5842 | fi |
| 5843 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5844 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5845 | IFS=$as_save_IFS |
| 5846 | |
| 5847 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 5848 | ;; |
| 5849 | esac |
| 5850 | fi |
| 5851 | CMP=$ac_cv_path_CMP |
| 5852 | if test -n "$CMP"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5853 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 5854 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5855 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5856 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5857 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5858 | fi |
| 5859 | |
| 5860 | |
| 5861 | # Extract the first word of "cp", so it can be a program name with args. |
| 5862 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5863 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5865 | if test "${ac_cv_path_CP+set}" = set; then |
| 5866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5867 | else |
| 5868 | case $CP in |
| 5869 | [\\/]* | ?:[\\/]*) |
| 5870 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 5871 | ;; |
| 5872 | *) |
| 5873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5874 | for as_dir in $PATH |
| 5875 | do |
| 5876 | IFS=$as_save_IFS |
| 5877 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5878 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5879 | 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] | 5880 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5881 | 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] | 5882 | break 2 |
| 5883 | fi |
| 5884 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5885 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5886 | IFS=$as_save_IFS |
| 5887 | |
| 5888 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 5889 | ;; |
| 5890 | esac |
| 5891 | fi |
| 5892 | CP=$ac_cv_path_CP |
| 5893 | if test -n "$CP"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5894 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 5895 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5896 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5897 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5898 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5899 | fi |
| 5900 | |
| 5901 | |
| 5902 | # Extract the first word of "date", so it can be a program name with args. |
| 5903 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5904 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5905 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5906 | if test "${ac_cv_path_DATE+set}" = set; then |
| 5907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5908 | else |
| 5909 | case $DATE in |
| 5910 | [\\/]* | ?:[\\/]*) |
| 5911 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 5912 | ;; |
| 5913 | *) |
| 5914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5915 | for as_dir in $PATH |
| 5916 | do |
| 5917 | IFS=$as_save_IFS |
| 5918 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5919 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5920 | 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] | 5921 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5922 | 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] | 5923 | break 2 |
| 5924 | fi |
| 5925 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5926 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5927 | IFS=$as_save_IFS |
| 5928 | |
| 5929 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 5930 | ;; |
| 5931 | esac |
| 5932 | fi |
| 5933 | DATE=$ac_cv_path_DATE |
| 5934 | if test -n "$DATE"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5935 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 5936 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5937 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5938 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5939 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5940 | fi |
| 5941 | |
| 5942 | |
| 5943 | # Extract the first word of "find", so it can be a program name with args. |
| 5944 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5945 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5946 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5947 | if test "${ac_cv_path_FIND+set}" = set; then |
| 5948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5949 | else |
| 5950 | case $FIND in |
| 5951 | [\\/]* | ?:[\\/]*) |
| 5952 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 5953 | ;; |
| 5954 | *) |
| 5955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5956 | for as_dir in $PATH |
| 5957 | do |
| 5958 | IFS=$as_save_IFS |
| 5959 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5960 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5961 | 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] | 5962 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5963 | 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] | 5964 | break 2 |
| 5965 | fi |
| 5966 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5967 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5968 | IFS=$as_save_IFS |
| 5969 | |
| 5970 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 5971 | ;; |
| 5972 | esac |
| 5973 | fi |
| 5974 | FIND=$ac_cv_path_FIND |
| 5975 | if test -n "$FIND"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5976 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 5977 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5978 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5979 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5980 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5981 | fi |
| 5982 | |
| 5983 | |
| 5984 | # Extract the first word of "grep", so it can be a program name with args. |
| 5985 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5986 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5987 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5988 | if test "${ac_cv_path_GREP+set}" = set; then |
| 5989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5990 | else |
| 5991 | case $GREP in |
| 5992 | [\\/]* | ?:[\\/]*) |
| 5993 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 5994 | ;; |
| 5995 | *) |
| 5996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5997 | for as_dir in $PATH |
| 5998 | do |
| 5999 | IFS=$as_save_IFS |
| 6000 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6001 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6002 | 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] | 6003 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6004 | 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] | 6005 | break 2 |
| 6006 | fi |
| 6007 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6008 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6009 | IFS=$as_save_IFS |
| 6010 | |
| 6011 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6012 | ;; |
| 6013 | esac |
| 6014 | fi |
| 6015 | GREP=$ac_cv_path_GREP |
| 6016 | if test -n "$GREP"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6017 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6018 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6019 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6020 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6021 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6022 | fi |
| 6023 | |
| 6024 | |
| 6025 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6026 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6027 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6028 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6029 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6031 | else |
| 6032 | case $MKDIR in |
| 6033 | [\\/]* | ?:[\\/]*) |
| 6034 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6035 | ;; |
| 6036 | *) |
| 6037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6038 | for as_dir in $PATH |
| 6039 | do |
| 6040 | IFS=$as_save_IFS |
| 6041 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6042 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6043 | 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] | 6044 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6045 | 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] | 6046 | break 2 |
| 6047 | fi |
| 6048 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6049 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6050 | IFS=$as_save_IFS |
| 6051 | |
| 6052 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6053 | ;; |
| 6054 | esac |
| 6055 | fi |
| 6056 | MKDIR=$ac_cv_path_MKDIR |
| 6057 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6058 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6059 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6060 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6061 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6062 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6063 | fi |
| 6064 | |
| 6065 | |
| 6066 | # Extract the first word of "mv", so it can be a program name with args. |
| 6067 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6068 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6069 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6070 | if test "${ac_cv_path_MV+set}" = set; then |
| 6071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6072 | else |
| 6073 | case $MV in |
| 6074 | [\\/]* | ?:[\\/]*) |
| 6075 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6076 | ;; |
| 6077 | *) |
| 6078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6079 | for as_dir in $PATH |
| 6080 | do |
| 6081 | IFS=$as_save_IFS |
| 6082 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6083 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6084 | 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] | 6085 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6086 | 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] | 6087 | break 2 |
| 6088 | fi |
| 6089 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6090 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6091 | IFS=$as_save_IFS |
| 6092 | |
| 6093 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6094 | ;; |
| 6095 | esac |
| 6096 | fi |
| 6097 | MV=$ac_cv_path_MV |
| 6098 | if test -n "$MV"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6099 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6100 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6101 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6102 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6103 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6104 | fi |
| 6105 | |
| 6106 | |
| 6107 | if test -n "$ac_tool_prefix"; then |
| 6108 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6109 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6110 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6111 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6112 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6114 | else |
| 6115 | if test -n "$RANLIB"; then |
| 6116 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6117 | else |
| 6118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6119 | for as_dir in $PATH |
| 6120 | do |
| 6121 | IFS=$as_save_IFS |
| 6122 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6123 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6124 | 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] | 6125 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6126 | 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] | 6127 | break 2 |
| 6128 | fi |
| 6129 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6130 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6131 | IFS=$as_save_IFS |
| 6132 | |
| 6133 | fi |
| 6134 | fi |
| 6135 | RANLIB=$ac_cv_prog_RANLIB |
| 6136 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6137 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6138 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6139 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6140 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6141 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6142 | fi |
| 6143 | |
| 6144 | |
| 6145 | fi |
| 6146 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6147 | ac_ct_RANLIB=$RANLIB |
| 6148 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6149 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6150 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6151 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6152 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6154 | else |
| 6155 | if test -n "$ac_ct_RANLIB"; then |
| 6156 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6157 | else |
| 6158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6159 | for as_dir in $PATH |
| 6160 | do |
| 6161 | IFS=$as_save_IFS |
| 6162 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6163 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6164 | 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] | 6165 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6166 | 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] | 6167 | break 2 |
| 6168 | fi |
| 6169 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6170 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6171 | IFS=$as_save_IFS |
| 6172 | |
| 6173 | fi |
| 6174 | fi |
| 6175 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6176 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6177 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6178 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6179 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6180 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6181 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6182 | fi |
| 6183 | |
| 6184 | if test "x$ac_ct_RANLIB" = x; then |
| 6185 | RANLIB=":" |
| 6186 | else |
| 6187 | case $cross_compiling:$ac_tool_warned in |
| 6188 | yes:) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6189 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6190 | whose name does not start with the host triplet. If you think this |
| 6191 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6192 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6193 | whose name does not start with the host triplet. If you think this |
| 6194 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6195 | ac_tool_warned=yes ;; |
| 6196 | esac |
| 6197 | RANLIB=$ac_ct_RANLIB |
| 6198 | fi |
| 6199 | else |
| 6200 | RANLIB="$ac_cv_prog_RANLIB" |
| 6201 | fi |
| 6202 | |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6203 | if test -n "$ac_tool_prefix"; then |
| 6204 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6205 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6206 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6207 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6208 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6210 | else |
| 6211 | if test -n "$AR"; then |
| 6212 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6213 | else |
| 6214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6215 | for as_dir in $PATH |
| 6216 | do |
| 6217 | IFS=$as_save_IFS |
| 6218 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6219 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6220 | 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] | 6221 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6222 | 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] | 6223 | break 2 |
| 6224 | fi |
| 6225 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6226 | done |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6227 | IFS=$as_save_IFS |
| 6228 | |
| 6229 | fi |
| 6230 | fi |
| 6231 | AR=$ac_cv_prog_AR |
| 6232 | if test -n "$AR"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6233 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 6234 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6235 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6236 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6237 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6238 | fi |
| 6239 | |
| 6240 | |
| 6241 | fi |
| 6242 | if test -z "$ac_cv_prog_AR"; then |
| 6243 | ac_ct_AR=$AR |
| 6244 | # Extract the first word of "ar", so it can be a program name with args. |
| 6245 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6246 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6247 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6248 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6250 | else |
| 6251 | if test -n "$ac_ct_AR"; then |
| 6252 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6253 | else |
| 6254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6255 | for as_dir in $PATH |
| 6256 | do |
| 6257 | IFS=$as_save_IFS |
| 6258 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6259 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6260 | 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] | 6261 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6262 | 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] | 6263 | break 2 |
| 6264 | fi |
| 6265 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6266 | done |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6267 | IFS=$as_save_IFS |
| 6268 | |
| 6269 | fi |
| 6270 | fi |
| 6271 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6272 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6273 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6274 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6275 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6276 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6277 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6278 | fi |
| 6279 | |
| 6280 | if test "x$ac_ct_AR" = x; then |
| 6281 | AR="false" |
| 6282 | else |
| 6283 | case $cross_compiling:$ac_tool_warned in |
| 6284 | yes:) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6285 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6286 | whose name does not start with the host triplet. If you think this |
| 6287 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6288 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6289 | whose name does not start with the host triplet. If you think this |
| 6290 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6291 | ac_tool_warned=yes ;; |
| 6292 | esac |
| 6293 | AR=$ac_ct_AR |
| 6294 | fi |
| 6295 | else |
| 6296 | AR="$ac_cv_prog_AR" |
| 6297 | fi |
| 6298 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6299 | # Extract the first word of "rm", so it can be a program name with args. |
| 6300 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6301 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6302 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6303 | if test "${ac_cv_path_RM+set}" = set; then |
| 6304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6305 | else |
| 6306 | case $RM in |
| 6307 | [\\/]* | ?:[\\/]*) |
| 6308 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 6309 | ;; |
| 6310 | *) |
| 6311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6312 | for as_dir in $PATH |
| 6313 | do |
| 6314 | IFS=$as_save_IFS |
| 6315 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6316 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6317 | 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] | 6318 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6319 | 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] | 6320 | break 2 |
| 6321 | fi |
| 6322 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6323 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6324 | IFS=$as_save_IFS |
| 6325 | |
| 6326 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 6327 | ;; |
| 6328 | esac |
| 6329 | fi |
| 6330 | RM=$ac_cv_path_RM |
| 6331 | if test -n "$RM"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6332 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 6333 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6334 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6335 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6336 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6337 | fi |
| 6338 | |
| 6339 | |
| 6340 | # Extract the first word of "sed", so it can be a program name with args. |
| 6341 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6342 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6343 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6344 | if test "${ac_cv_path_SED+set}" = set; then |
| 6345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6346 | else |
| 6347 | case $SED in |
| 6348 | [\\/]* | ?:[\\/]*) |
| 6349 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 6350 | ;; |
| 6351 | *) |
| 6352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6353 | for as_dir in $PATH |
| 6354 | do |
| 6355 | IFS=$as_save_IFS |
| 6356 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6357 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6358 | 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] | 6359 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6360 | 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] | 6361 | break 2 |
| 6362 | fi |
| 6363 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6364 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6365 | IFS=$as_save_IFS |
| 6366 | |
| 6367 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 6368 | ;; |
| 6369 | esac |
| 6370 | fi |
| 6371 | SED=$ac_cv_path_SED |
| 6372 | if test -n "$SED"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6373 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 6374 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6375 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6376 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6377 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6378 | fi |
| 6379 | |
| 6380 | |
| 6381 | # Extract the first word of "tar", so it can be a program name with args. |
| 6382 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6383 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6385 | if test "${ac_cv_path_TAR+set}" = set; then |
| 6386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6387 | else |
| 6388 | case $TAR in |
| 6389 | [\\/]* | ?:[\\/]*) |
| 6390 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 6391 | ;; |
| 6392 | *) |
| 6393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6394 | for as_dir in $PATH |
| 6395 | do |
| 6396 | IFS=$as_save_IFS |
| 6397 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6398 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6399 | 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] | 6400 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6401 | 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] | 6402 | break 2 |
| 6403 | fi |
| 6404 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6405 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6406 | IFS=$as_save_IFS |
| 6407 | |
| 6408 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 6409 | ;; |
| 6410 | esac |
| 6411 | fi |
| 6412 | TAR=$ac_cv_path_TAR |
| 6413 | if test -n "$TAR"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6414 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 6415 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6416 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6417 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6418 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6419 | fi |
| 6420 | |
| 6421 | |
| 6422 | # Extract the first word of "pwd", so it can be a program name with args. |
| 6423 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6424 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6425 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6426 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 6427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6428 | else |
| 6429 | case $BINPWD in |
| 6430 | [\\/]* | ?:[\\/]*) |
| 6431 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 6432 | ;; |
| 6433 | *) |
| 6434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6435 | for as_dir in $PATH |
| 6436 | do |
| 6437 | IFS=$as_save_IFS |
| 6438 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6439 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6440 | 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] | 6441 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6442 | 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] | 6443 | break 2 |
| 6444 | fi |
| 6445 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6446 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6447 | IFS=$as_save_IFS |
| 6448 | |
| 6449 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 6450 | ;; |
| 6451 | esac |
| 6452 | fi |
| 6453 | BINPWD=$ac_cv_path_BINPWD |
| 6454 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6455 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 6456 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6457 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6458 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6459 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6460 | fi |
| 6461 | |
| 6462 | |
| 6463 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6464 | # Extract the first word of "dot", so it can be a program name with args. |
| 6465 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6466 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6468 | if test "${ac_cv_path_DOT+set}" = set; then |
| 6469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6470 | else |
| 6471 | case $DOT in |
| 6472 | [\\/]* | ?:[\\/]*) |
| 6473 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 6474 | ;; |
| 6475 | *) |
| 6476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6477 | for as_dir in $PATH |
| 6478 | do |
| 6479 | IFS=$as_save_IFS |
| 6480 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6481 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6482 | 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] | 6483 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6484 | 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] | 6485 | break 2 |
| 6486 | fi |
| 6487 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6488 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6489 | IFS=$as_save_IFS |
| 6490 | |
| 6491 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 6492 | ;; |
| 6493 | esac |
| 6494 | fi |
| 6495 | DOT=$ac_cv_path_DOT |
| 6496 | if test -n "$DOT"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6497 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 6498 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6499 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6500 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6501 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6502 | fi |
| 6503 | |
| 6504 | |
| 6505 | if test "$DOT" != "echo dot" ; then |
| 6506 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6507 | cat >>confdefs.h <<\_ACEOF |
| 6508 | #define HAVE_DOT 1 |
| 6509 | _ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6510 | |
Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6511 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6512 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6513 | fi |
| 6514 | |
| 6515 | cat >>confdefs.h <<_ACEOF |
| 6516 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 6517 | _ACEOF |
| 6518 | |
| 6519 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6520 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6521 | # Find a good install program. We prefer a C program (faster), |
| 6522 | # so one script is as good as another. But avoid the broken or |
| 6523 | # incompatible versions: |
| 6524 | # SysV /etc/install, /usr/sbin/install |
| 6525 | # SunOS /usr/etc/install |
| 6526 | # IRIX /sbin/install |
| 6527 | # AIX /bin/install |
| 6528 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 6529 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6530 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6531 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 6532 | # OS/2's system install, which has a completely different semantic |
| 6533 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6534 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 6535 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6536 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6537 | if test "${ac_cv_path_install+set}" = set; then |
| 6538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6539 | else |
| 6540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6541 | for as_dir in $PATH |
| 6542 | do |
| 6543 | IFS=$as_save_IFS |
| 6544 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6545 | # Account for people who put trailing slashes in PATH elements. |
| 6546 | case $as_dir/ in |
| 6547 | ./ | .// | /cC/* | \ |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6548 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6549 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6550 | /usr/ucb/* ) ;; |
| 6551 | *) |
| 6552 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6553 | # Don't use installbsd from OSF since it installs stuff as root |
| 6554 | # by default. |
| 6555 | for ac_prog in ginstall scoinst install; do |
| 6556 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6557 | 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] | 6558 | if test $ac_prog = install && |
| 6559 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6560 | # AIX install. It has an incompatible calling convention. |
| 6561 | : |
| 6562 | elif test $ac_prog = install && |
| 6563 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6564 | # program-specific install script used by HP pwplus--don't use. |
| 6565 | : |
| 6566 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6567 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6568 | break 3 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6569 | fi |
| 6570 | fi |
| 6571 | done |
| 6572 | done |
| 6573 | ;; |
| 6574 | esac |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6575 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6576 | IFS=$as_save_IFS |
| 6577 | |
| 6578 | |
| 6579 | fi |
| 6580 | if test "${ac_cv_path_install+set}" = set; then |
| 6581 | INSTALL=$ac_cv_path_install |
| 6582 | else |
| 6583 | # As a last resort, use the slow shell script. Don't cache a |
| 6584 | # value for INSTALL within a source directory, because that will |
| 6585 | # break other packages using the cache if that directory is |
| 6586 | # removed, or if the value is a relative name. |
| 6587 | INSTALL=$ac_install_sh |
| 6588 | fi |
| 6589 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6590 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 6591 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6592 | |
| 6593 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6594 | # It thinks the first close brace ends the variable substitution. |
| 6595 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6596 | |
| 6597 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 6598 | |
| 6599 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6600 | |
Eric Christopher | e3befc7 | 2010-07-22 21:13:48 +0000 | [diff] [blame] | 6601 | case "$INSTALL" in |
| 6602 | [\\/$]* | ?:[\\/]* ) ;; |
| 6603 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 6604 | esac |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6605 | |
| 6606 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 6607 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6608 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6609 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6610 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 6611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6612 | else |
| 6613 | case $BZIP2 in |
| 6614 | [\\/]* | ?:[\\/]*) |
| 6615 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 6616 | ;; |
| 6617 | *) |
| 6618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6619 | for as_dir in $PATH |
| 6620 | do |
| 6621 | IFS=$as_save_IFS |
| 6622 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6623 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6624 | 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] | 6625 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6626 | 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] | 6627 | break 2 |
| 6628 | fi |
| 6629 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6630 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6631 | IFS=$as_save_IFS |
| 6632 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6633 | ;; |
| 6634 | esac |
| 6635 | fi |
| 6636 | BZIP2=$ac_cv_path_BZIP2 |
| 6637 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6638 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 6639 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6640 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6641 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6642 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6643 | fi |
| 6644 | |
| 6645 | |
mike-m | e08af30 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 6646 | # Extract the first word of "cat", so it can be a program name with args. |
| 6647 | set dummy cat; ac_word=$2 |
| 6648 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6649 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6650 | if test "${ac_cv_path_CAT+set}" = set; then |
| 6651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6652 | else |
| 6653 | case $CAT in |
| 6654 | [\\/]* | ?:[\\/]*) |
| 6655 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
| 6656 | ;; |
| 6657 | *) |
| 6658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6659 | for as_dir in $PATH |
| 6660 | do |
| 6661 | IFS=$as_save_IFS |
| 6662 | test -z "$as_dir" && as_dir=. |
| 6663 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6664 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6665 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
| 6666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6667 | break 2 |
| 6668 | fi |
| 6669 | done |
| 6670 | done |
| 6671 | IFS=$as_save_IFS |
| 6672 | |
| 6673 | ;; |
| 6674 | esac |
| 6675 | fi |
| 6676 | CAT=$ac_cv_path_CAT |
| 6677 | if test -n "$CAT"; then |
| 6678 | { echo "$as_me:$LINENO: result: $CAT" >&5 |
| 6679 | echo "${ECHO_T}$CAT" >&6; } |
| 6680 | else |
| 6681 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6682 | echo "${ECHO_T}no" >&6; } |
| 6683 | fi |
| 6684 | |
| 6685 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6686 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 6687 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6688 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6689 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6690 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 6691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6692 | else |
| 6693 | case $DOXYGEN in |
| 6694 | [\\/]* | ?:[\\/]*) |
| 6695 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 6696 | ;; |
| 6697 | *) |
| 6698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6699 | for as_dir in $PATH |
| 6700 | do |
| 6701 | IFS=$as_save_IFS |
| 6702 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6703 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6704 | 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] | 6705 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6706 | 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] | 6707 | break 2 |
| 6708 | fi |
| 6709 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6710 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6711 | IFS=$as_save_IFS |
| 6712 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6713 | ;; |
| 6714 | esac |
| 6715 | fi |
| 6716 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 6717 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6718 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 6719 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6720 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6721 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6722 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6723 | fi |
| 6724 | |
| 6725 | |
Daniel Dunbar | d188882 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 6726 | # Extract the first word of "groff", so it can be a program name with args. |
| 6727 | set dummy groff; ac_word=$2 |
| 6728 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6730 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 6731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6732 | else |
| 6733 | case $GROFF in |
| 6734 | [\\/]* | ?:[\\/]*) |
| 6735 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 6736 | ;; |
| 6737 | *) |
| 6738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6739 | for as_dir in $PATH |
| 6740 | do |
| 6741 | IFS=$as_save_IFS |
| 6742 | test -z "$as_dir" && as_dir=. |
| 6743 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6745 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 6746 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6747 | break 2 |
| 6748 | fi |
| 6749 | done |
| 6750 | done |
| 6751 | IFS=$as_save_IFS |
| 6752 | |
| 6753 | ;; |
| 6754 | esac |
| 6755 | fi |
| 6756 | GROFF=$ac_cv_path_GROFF |
| 6757 | if test -n "$GROFF"; then |
| 6758 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 6759 | echo "${ECHO_T}$GROFF" >&6; } |
| 6760 | else |
| 6761 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6762 | echo "${ECHO_T}no" >&6; } |
| 6763 | fi |
| 6764 | |
| 6765 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6766 | # Extract the first word of "gzip", so it can be a program name with args. |
| 6767 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6768 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6769 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 6770 | if test "${ac_cv_path_GZIPBIN+set}" = set; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6772 | else |
Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 6773 | case $GZIPBIN in |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6774 | [\\/]* | ?:[\\/]*) |
Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 6775 | 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] | 6776 | ;; |
| 6777 | *) |
| 6778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6779 | for as_dir in $PATH |
| 6780 | do |
| 6781 | IFS=$as_save_IFS |
| 6782 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6783 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6784 | 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] | 6785 | ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6786 | 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] | 6787 | break 2 |
| 6788 | fi |
| 6789 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6790 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6791 | IFS=$as_save_IFS |
| 6792 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6793 | ;; |
| 6794 | esac |
| 6795 | fi |
Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 6796 | GZIPBIN=$ac_cv_path_GZIPBIN |
| 6797 | if test -n "$GZIPBIN"; then |
| 6798 | { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 |
| 6799 | echo "${ECHO_T}$GZIPBIN" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6800 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6801 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6802 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6803 | fi |
| 6804 | |
| 6805 | |
Daniel Dunbar | d188882 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 6806 | # Extract the first word of "pdfroff", so it can be a program name with args. |
| 6807 | set dummy pdfroff; ac_word=$2 |
| 6808 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6809 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6810 | if test "${ac_cv_path_PDFROFF+set}" = set; then |
| 6811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6812 | else |
| 6813 | case $PDFROFF in |
| 6814 | [\\/]* | ?:[\\/]*) |
| 6815 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. |
| 6816 | ;; |
| 6817 | *) |
| 6818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6819 | for as_dir in $PATH |
| 6820 | do |
| 6821 | IFS=$as_save_IFS |
| 6822 | test -z "$as_dir" && as_dir=. |
| 6823 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6824 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6825 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" |
| 6826 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6827 | break 2 |
| 6828 | fi |
| 6829 | done |
| 6830 | done |
| 6831 | IFS=$as_save_IFS |
| 6832 | |
| 6833 | ;; |
| 6834 | esac |
| 6835 | fi |
| 6836 | PDFROFF=$ac_cv_path_PDFROFF |
| 6837 | if test -n "$PDFROFF"; then |
| 6838 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 |
| 6839 | echo "${ECHO_T}$PDFROFF" >&6; } |
| 6840 | else |
| 6841 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6842 | echo "${ECHO_T}no" >&6; } |
| 6843 | fi |
| 6844 | |
| 6845 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6846 | # Extract the first word of "zip", so it can be a program name with args. |
| 6847 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6848 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6849 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6850 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 6851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6852 | else |
| 6853 | case $ZIP in |
| 6854 | [\\/]* | ?:[\\/]*) |
| 6855 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 6856 | ;; |
| 6857 | *) |
| 6858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6859 | for as_dir in $PATH |
| 6860 | do |
| 6861 | IFS=$as_save_IFS |
| 6862 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6863 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6864 | 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] | 6865 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6866 | 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] | 6867 | break 2 |
| 6868 | fi |
| 6869 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6870 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6871 | IFS=$as_save_IFS |
| 6872 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6873 | ;; |
| 6874 | esac |
| 6875 | fi |
| 6876 | ZIP=$ac_cv_path_ZIP |
| 6877 | if test -n "$ZIP"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6878 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 6879 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6880 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6881 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6882 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6883 | fi |
| 6884 | |
| 6885 | |
Peter Collingbourne | 82e3e37 | 2014-10-16 22:48:02 +0000 | [diff] [blame] | 6886 | # Extract the first word of "go", so it can be a program name with args. |
| 6887 | set dummy go; ac_word=$2 |
| 6888 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6889 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6890 | if test "${ac_cv_path_GO+set}" = set; then |
| 6891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6892 | else |
| 6893 | case $GO in |
| 6894 | [\\/]* | ?:[\\/]*) |
| 6895 | ac_cv_path_GO="$GO" # Let the user override the test with a path. |
| 6896 | ;; |
| 6897 | *) |
| 6898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6899 | for as_dir in $PATH |
| 6900 | do |
| 6901 | IFS=$as_save_IFS |
| 6902 | test -z "$as_dir" && as_dir=. |
| 6903 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6904 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6905 | ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext" |
| 6906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6907 | break 2 |
| 6908 | fi |
| 6909 | done |
| 6910 | done |
| 6911 | IFS=$as_save_IFS |
| 6912 | |
| 6913 | ;; |
| 6914 | esac |
| 6915 | fi |
| 6916 | GO=$ac_cv_path_GO |
| 6917 | if test -n "$GO"; then |
| 6918 | { echo "$as_me:$LINENO: result: $GO" >&5 |
| 6919 | echo "${ECHO_T}$GO" >&6; } |
| 6920 | else |
| 6921 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6922 | echo "${ECHO_T}no" >&6; } |
| 6923 | fi |
| 6924 | |
| 6925 | |
Peter Zotov | 668f967 | 2014-10-30 08:29:45 +0000 | [diff] [blame] | 6926 | for ac_prog in ocamlfind |
Gordon Henriksen | 53aaaaf | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 6927 | do |
| 6928 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6929 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6930 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6931 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Peter Zotov | 668f967 | 2014-10-30 08:29:45 +0000 | [diff] [blame] | 6932 | if test "${ac_cv_path_OCAMLFIND+set}" = set; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 6934 | else |
Peter Zotov | 668f967 | 2014-10-30 08:29:45 +0000 | [diff] [blame] | 6935 | case $OCAMLFIND in |
Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 6936 | [\\/]* | ?:[\\/]*) |
Peter Zotov | 668f967 | 2014-10-30 08:29:45 +0000 | [diff] [blame] | 6937 | ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path. |
Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 6938 | ;; |
| 6939 | *) |
| 6940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6941 | for as_dir in $PATH |
| 6942 | do |
| 6943 | IFS=$as_save_IFS |
| 6944 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6945 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6946 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Peter Zotov | 668f967 | 2014-10-30 08:29:45 +0000 | [diff] [blame] | 6947 | ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6948 | 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] | 6949 | break 2 |
| 6950 | fi |
| 6951 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6952 | done |
Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 6953 | IFS=$as_save_IFS |
| 6954 | |
Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 6955 | ;; |
| 6956 | esac |
| 6957 | fi |
Peter Zotov | 668f967 | 2014-10-30 08:29:45 +0000 | [diff] [blame] | 6958 | OCAMLFIND=$ac_cv_path_OCAMLFIND |
| 6959 | if test -n "$OCAMLFIND"; then |
| 6960 | { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5 |
| 6961 | echo "${ECHO_T}$OCAMLFIND" >&6; } |
Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 6962 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6963 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6964 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 4c7ca7d | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 6965 | fi |
| 6966 | |
| 6967 | |
Peter Zotov | 668f967 | 2014-10-30 08:29:45 +0000 | [diff] [blame] | 6968 | test -n "$OCAMLFIND" && break |
Gordon Henriksen | c1269c8 | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 6969 | done |
| 6970 | |
Daniel Dunbar | d188882 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 6971 | for ac_prog in gas as |
| 6972 | do |
| 6973 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6974 | set dummy $ac_prog; ac_word=$2 |
| 6975 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6976 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6977 | if test "${ac_cv_path_GAS+set}" = set; then |
| 6978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6979 | else |
| 6980 | case $GAS in |
| 6981 | [\\/]* | ?:[\\/]*) |
| 6982 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 6983 | ;; |
| 6984 | *) |
| 6985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6986 | for as_dir in $PATH |
| 6987 | do |
| 6988 | IFS=$as_save_IFS |
| 6989 | test -z "$as_dir" && as_dir=. |
| 6990 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6991 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6992 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
| 6993 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6994 | break 2 |
| 6995 | fi |
| 6996 | done |
| 6997 | done |
| 6998 | IFS=$as_save_IFS |
| 6999 | |
| 7000 | ;; |
| 7001 | esac |
| 7002 | fi |
| 7003 | GAS=$ac_cv_path_GAS |
| 7004 | if test -n "$GAS"; then |
| 7005 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 7006 | echo "${ECHO_T}$GAS" >&6; } |
| 7007 | else |
| 7008 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7009 | echo "${ECHO_T}no" >&6; } |
| 7010 | fi |
| 7011 | |
| 7012 | |
| 7013 | test -n "$GAS" && break |
| 7014 | done |
| 7015 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7016 | |
Daniel Dunbar | b524afb | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 7017 | { echo "$as_me:$LINENO: checking for linker version" >&5 |
| 7018 | echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } |
| 7019 | if test "${llvm_cv_link_version+set}" = set; then |
| 7020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7021 | else |
| 7022 | |
Joerg Sonnenberger | e6aafbb | 2014-05-28 15:12:55 +0000 | [diff] [blame] | 7023 | version_string="$(${LD:-ld} -v 2>&1 | head -1)" |
Daniel Dunbar | b524afb | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 7024 | |
| 7025 | # Check for ld64. |
| 7026 | if (echo "$version_string" | grep -q "ld64"); then |
Charles Davis | e56294d | 2012-02-28 02:55:41 +0000 | [diff] [blame] | 7027 | 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] | 7028 | else |
| 7029 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") |
| 7030 | fi |
| 7031 | |
| 7032 | fi |
| 7033 | { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 |
| 7034 | echo "${ECHO_T}$llvm_cv_link_version" >&6; } |
| 7035 | |
| 7036 | cat >>confdefs.h <<_ACEOF |
| 7037 | #define HOST_LINK_VERSION "$llvm_cv_link_version" |
| 7038 | _ACEOF |
| 7039 | |
| 7040 | |
| 7041 | |
Eric Christopher | d7ed36b | 2014-01-09 01:09:57 +0000 | [diff] [blame] | 7042 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7043 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 7044 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 7045 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 7046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7047 | else |
| 7048 | ac_ext=c |
| 7049 | ac_cpp='$CPP $CPPFLAGS' |
| 7050 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7051 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7052 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7053 | |
| 7054 | oldcflags="$CFLAGS" |
| 7055 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7056 | cat >conftest.$ac_ext <<_ACEOF |
| 7057 | /* confdefs.h. */ |
| 7058 | _ACEOF |
| 7059 | cat confdefs.h >>conftest.$ac_ext |
| 7060 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7061 | /* end confdefs.h. */ |
| 7062 | |
| 7063 | int |
| 7064 | main () |
| 7065 | { |
Dan Gohman | a1c9404 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7066 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7067 | ; |
| 7068 | return 0; |
| 7069 | } |
| 7070 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7071 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7072 | if { (ac_try="$ac_link" |
| 7073 | case "(($ac_try" in |
| 7074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7075 | *) ac_try_echo=$ac_try;; |
| 7076 | esac |
| 7077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7078 | (eval "$ac_link") 2>conftest.er1 |
| 7079 | ac_status=$? |
| 7080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7081 | rm -f conftest.er1 |
| 7082 | cat conftest.err >&5 |
| 7083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7084 | (exit $ac_status); } && |
| 7085 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7086 | { (case "(($ac_try" in |
| 7087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7088 | *) ac_try_echo=$ac_try;; |
| 7089 | esac |
| 7090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7091 | (eval "$ac_try") 2>&5 |
| 7092 | ac_status=$? |
| 7093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7094 | (exit $ac_status); }; } && |
| 7095 | { ac_try='test -s conftest$ac_exeext' |
| 7096 | { (case "(($ac_try" in |
| 7097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7098 | *) ac_try_echo=$ac_try;; |
| 7099 | esac |
| 7100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7101 | (eval "$ac_try") 2>&5 |
| 7102 | ac_status=$? |
| 7103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7104 | (exit $ac_status); }; }; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7105 | llvm_cv_link_use_r=yes |
| 7106 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7107 | echo "$as_me: failed program was:" >&5 |
| 7108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7109 | |
| 7110 | llvm_cv_link_use_r=no |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7111 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7112 | |
Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7113 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7114 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7115 | CFLAGS="$oldcflags" |
| 7116 | ac_ext=c |
| 7117 | ac_cpp='$CPP $CPPFLAGS' |
| 7118 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7119 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7120 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7121 | |
| 7122 | |
| 7123 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7124 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 7125 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7126 | if test "$llvm_cv_link_use_r" = yes ; then |
| 7127 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7128 | cat >>confdefs.h <<\_ACEOF |
| 7129 | #define HAVE_LINK_R 1 |
| 7130 | _ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7131 | |
| 7132 | fi |
| 7133 | |
| 7134 | |
Bob Wilson | 8d7e690 | 2013-08-02 22:51:11 +0000 | [diff] [blame] | 7135 | { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5 |
| 7136 | echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; } |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7137 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 7138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7139 | else |
| 7140 | ac_ext=c |
| 7141 | ac_cpp='$CPP $CPPFLAGS' |
| 7142 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7143 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7144 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7145 | |
| 7146 | oldcflags="$CFLAGS" |
Bob Wilson | 8d7e690 | 2013-08-02 22:51:11 +0000 | [diff] [blame] | 7147 | CFLAGS="$CFLAGS -rdynamic" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7148 | cat >conftest.$ac_ext <<_ACEOF |
| 7149 | /* confdefs.h. */ |
| 7150 | _ACEOF |
| 7151 | cat confdefs.h >>conftest.$ac_ext |
| 7152 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7153 | /* end confdefs.h. */ |
| 7154 | |
| 7155 | int |
| 7156 | main () |
| 7157 | { |
Dan Gohman | a1c9404 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7158 | |
Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7159 | ; |
| 7160 | return 0; |
| 7161 | } |
| 7162 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7163 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7164 | if { (ac_try="$ac_link" |
| 7165 | case "(($ac_try" in |
| 7166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7167 | *) ac_try_echo=$ac_try;; |
| 7168 | esac |
| 7169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7170 | (eval "$ac_link") 2>conftest.er1 |
| 7171 | ac_status=$? |
| 7172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7173 | rm -f conftest.er1 |
| 7174 | cat conftest.err >&5 |
| 7175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7176 | (exit $ac_status); } && |
| 7177 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7178 | { (case "(($ac_try" in |
| 7179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7180 | *) ac_try_echo=$ac_try;; |
| 7181 | esac |
| 7182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7183 | (eval "$ac_try") 2>&5 |
| 7184 | ac_status=$? |
| 7185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7186 | (exit $ac_status); }; } && |
| 7187 | { ac_try='test -s conftest$ac_exeext' |
| 7188 | { (case "(($ac_try" in |
| 7189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7190 | *) ac_try_echo=$ac_try;; |
| 7191 | esac |
| 7192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7193 | (eval "$ac_try") 2>&5 |
| 7194 | ac_status=$? |
| 7195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7196 | (exit $ac_status); }; }; then |
Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7197 | llvm_cv_link_use_export_dynamic=yes |
| 7198 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7199 | echo "$as_me: failed program was:" >&5 |
| 7200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7201 | |
| 7202 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7203 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7204 | |
Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7205 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7206 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7207 | CFLAGS="$oldcflags" |
| 7208 | ac_ext=c |
| 7209 | ac_cpp='$CPP $CPPFLAGS' |
| 7210 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7211 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7212 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7213 | |
| 7214 | |
| 7215 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7216 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 7217 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7218 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 7219 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7220 | cat >>confdefs.h <<\_ACEOF |
| 7221 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 7222 | _ACEOF |
Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7223 | |
| 7224 | fi |
| 7225 | |
| 7226 | |
Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7227 | { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 |
| 7228 | echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } |
| 7229 | if test "${llvm_cv_link_use_version_script+set}" = set; then |
Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7231 | else |
| 7232 | ac_ext=c |
| 7233 | ac_cpp='$CPP $CPPFLAGS' |
| 7234 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7235 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7236 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7237 | |
| 7238 | oldcflags="$CFLAGS" |
| 7239 | |
| 7240 | # The following code is from the autoconf manual, |
| 7241 | # "11.13: Limitations of Usual Tools". |
| 7242 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). |
| 7243 | # Use mktemp if possible; otherwise fall back on mkdir, |
| 7244 | # with $RANDOM to make collisions less likely. |
| 7245 | : ${TMPDIR=/tmp} |
| 7246 | { |
| 7247 | tmp=` |
| 7248 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null |
| 7249 | ` && |
| 7250 | test -n "$tmp" && test -d "$tmp" |
| 7251 | } || { |
| 7252 | tmp=$TMPDIR/foo$$-$RANDOM |
| 7253 | (umask 077 && mkdir "$tmp") |
| 7254 | } || exit $? |
| 7255 | |
Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7256 | echo "{" > "$tmp/export.map" |
| 7257 | echo " global: main;" >> "$tmp/export.map" |
| 7258 | echo " local: *;" >> "$tmp/export.map" |
| 7259 | echo "};" >> "$tmp/export.map" |
Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7260 | |
Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7261 | CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" |
Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7262 | cat >conftest.$ac_ext <<_ACEOF |
| 7263 | /* confdefs.h. */ |
| 7264 | _ACEOF |
| 7265 | cat confdefs.h >>conftest.$ac_ext |
| 7266 | cat >>conftest.$ac_ext <<_ACEOF |
| 7267 | /* end confdefs.h. */ |
| 7268 | |
| 7269 | int |
| 7270 | main () |
| 7271 | { |
Dan Gohman | a1c9404 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7272 | |
Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7273 | ; |
| 7274 | return 0; |
| 7275 | } |
| 7276 | _ACEOF |
| 7277 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7278 | if { (ac_try="$ac_link" |
| 7279 | case "(($ac_try" in |
| 7280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7281 | *) ac_try_echo=$ac_try;; |
| 7282 | esac |
| 7283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7284 | (eval "$ac_link") 2>conftest.er1 |
| 7285 | ac_status=$? |
| 7286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7287 | rm -f conftest.er1 |
| 7288 | cat conftest.err >&5 |
| 7289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7290 | (exit $ac_status); } && |
| 7291 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7292 | { (case "(($ac_try" in |
| 7293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7294 | *) ac_try_echo=$ac_try;; |
| 7295 | esac |
| 7296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7297 | (eval "$ac_try") 2>&5 |
| 7298 | ac_status=$? |
| 7299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7300 | (exit $ac_status); }; } && |
| 7301 | { ac_try='test -s conftest$ac_exeext' |
| 7302 | { (case "(($ac_try" in |
| 7303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7304 | *) ac_try_echo=$ac_try;; |
| 7305 | esac |
| 7306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7307 | (eval "$ac_try") 2>&5 |
| 7308 | ac_status=$? |
| 7309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7310 | (exit $ac_status); }; }; then |
Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7311 | llvm_cv_link_use_version_script=yes |
Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7312 | else |
| 7313 | echo "$as_me: failed program was:" >&5 |
| 7314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7315 | |
Dan Gohman | c699831 | 2010-06-01 16:22:27 +0000 | [diff] [blame] | 7316 | llvm_cv_link_use_version_script=no |
Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7317 | fi |
| 7318 | |
| 7319 | rm -f core conftest.err conftest.$ac_objext \ |
| 7320 | conftest$ac_exeext conftest.$ac_ext |
Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7321 | rm "$tmp/export.map" |
Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7322 | rmdir "$tmp" |
| 7323 | CFLAGS="$oldcflags" |
| 7324 | ac_ext=c |
| 7325 | ac_cpp='$CPP $CPPFLAGS' |
| 7326 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7327 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7328 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7329 | |
| 7330 | |
| 7331 | fi |
Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7332 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 |
| 7333 | echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } |
| 7334 | if test "$llvm_cv_link_use_version_script" = yes ; then |
| 7335 | HAVE_LINK_VERSION_SCRIPT=1 |
Dan Gohman | fe051a5 | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7336 | |
| 7337 | fi |
| 7338 | |
| 7339 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7340 | |
Eric Christopher | d7ed36b | 2014-01-09 01:09:57 +0000 | [diff] [blame] | 7341 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 7342 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 7343 | if test "${ac_cv_path_GREP+set}" = set; then |
| 7344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7345 | else |
| 7346 | # Extract the first word of "grep ggrep" to use in msg output |
| 7347 | if test -z "$GREP"; then |
| 7348 | set dummy grep ggrep; ac_prog_name=$2 |
| 7349 | if test "${ac_cv_path_GREP+set}" = set; then |
| 7350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7351 | else |
| 7352 | ac_path_GREP_found=false |
| 7353 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 7354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7355 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 7356 | do |
| 7357 | IFS=$as_save_IFS |
| 7358 | test -z "$as_dir" && as_dir=. |
| 7359 | for ac_prog in grep ggrep; do |
| 7360 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7361 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 7362 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 7363 | # Check for GNU ac_path_GREP and select it if it is found. |
| 7364 | # Check for GNU $ac_path_GREP |
| 7365 | case `"$ac_path_GREP" --version 2>&1` in |
| 7366 | *GNU*) |
| 7367 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 7368 | *) |
| 7369 | ac_count=0 |
| 7370 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 7371 | while : |
| 7372 | do |
| 7373 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 7374 | mv "conftest.tmp" "conftest.in" |
| 7375 | cp "conftest.in" "conftest.nl" |
| 7376 | echo 'GREP' >> "conftest.nl" |
| 7377 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 7378 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 7379 | ac_count=`expr $ac_count + 1` |
| 7380 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 7381 | # Best one so far, save it but keep looking for a better one |
| 7382 | ac_cv_path_GREP="$ac_path_GREP" |
| 7383 | ac_path_GREP_max=$ac_count |
| 7384 | fi |
| 7385 | # 10*(2^10) chars as input seems more than enough |
| 7386 | test $ac_count -gt 10 && break |
| 7387 | done |
| 7388 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 7389 | esac |
| 7390 | |
| 7391 | |
| 7392 | $ac_path_GREP_found && break 3 |
| 7393 | done |
| 7394 | done |
| 7395 | |
| 7396 | done |
| 7397 | IFS=$as_save_IFS |
| 7398 | |
| 7399 | |
| 7400 | fi |
| 7401 | |
| 7402 | GREP="$ac_cv_path_GREP" |
| 7403 | if test -z "$GREP"; then |
| 7404 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 7405 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 7406 | { (exit 1); exit 1; }; } |
| 7407 | fi |
| 7408 | |
| 7409 | else |
| 7410 | ac_cv_path_GREP=$GREP |
| 7411 | fi |
| 7412 | |
| 7413 | |
| 7414 | fi |
| 7415 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 7416 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 7417 | GREP="$ac_cv_path_GREP" |
| 7418 | |
| 7419 | |
| 7420 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 7421 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 7422 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 7423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7424 | else |
| 7425 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 7426 | then ac_cv_path_EGREP="$GREP -E" |
| 7427 | else |
| 7428 | # Extract the first word of "egrep" to use in msg output |
| 7429 | if test -z "$EGREP"; then |
| 7430 | set dummy egrep; ac_prog_name=$2 |
| 7431 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 7432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7433 | else |
| 7434 | ac_path_EGREP_found=false |
| 7435 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 7436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7437 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 7438 | do |
| 7439 | IFS=$as_save_IFS |
| 7440 | test -z "$as_dir" && as_dir=. |
| 7441 | for ac_prog in egrep; do |
| 7442 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7443 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 7444 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 7445 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 7446 | # Check for GNU $ac_path_EGREP |
| 7447 | case `"$ac_path_EGREP" --version 2>&1` in |
| 7448 | *GNU*) |
| 7449 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 7450 | *) |
| 7451 | ac_count=0 |
| 7452 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 7453 | while : |
| 7454 | do |
| 7455 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 7456 | mv "conftest.tmp" "conftest.in" |
| 7457 | cp "conftest.in" "conftest.nl" |
| 7458 | echo 'EGREP' >> "conftest.nl" |
| 7459 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 7460 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 7461 | ac_count=`expr $ac_count + 1` |
| 7462 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 7463 | # Best one so far, save it but keep looking for a better one |
| 7464 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 7465 | ac_path_EGREP_max=$ac_count |
| 7466 | fi |
| 7467 | # 10*(2^10) chars as input seems more than enough |
| 7468 | test $ac_count -gt 10 && break |
| 7469 | done |
| 7470 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 7471 | esac |
| 7472 | |
| 7473 | |
| 7474 | $ac_path_EGREP_found && break 3 |
| 7475 | done |
| 7476 | done |
| 7477 | |
| 7478 | done |
| 7479 | IFS=$as_save_IFS |
| 7480 | |
| 7481 | |
| 7482 | fi |
| 7483 | |
| 7484 | EGREP="$ac_cv_path_EGREP" |
| 7485 | if test -z "$EGREP"; then |
| 7486 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 7487 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 7488 | { (exit 1); exit 1; }; } |
| 7489 | fi |
| 7490 | |
| 7491 | else |
| 7492 | ac_cv_path_EGREP=$EGREP |
| 7493 | fi |
| 7494 | |
| 7495 | |
| 7496 | fi |
| 7497 | fi |
| 7498 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 7499 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 7500 | EGREP="$ac_cv_path_EGREP" |
| 7501 | |
| 7502 | |
| 7503 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 7504 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 7505 | if test "${ac_cv_header_stdc+set}" = set; then |
| 7506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7507 | else |
| 7508 | cat >conftest.$ac_ext <<_ACEOF |
| 7509 | /* confdefs.h. */ |
| 7510 | _ACEOF |
| 7511 | cat confdefs.h >>conftest.$ac_ext |
| 7512 | cat >>conftest.$ac_ext <<_ACEOF |
| 7513 | /* end confdefs.h. */ |
| 7514 | #include <stdlib.h> |
| 7515 | #include <stdarg.h> |
| 7516 | #include <string.h> |
| 7517 | #include <float.h> |
| 7518 | |
| 7519 | int |
| 7520 | main () |
| 7521 | { |
| 7522 | |
| 7523 | ; |
| 7524 | return 0; |
| 7525 | } |
| 7526 | _ACEOF |
| 7527 | rm -f conftest.$ac_objext |
| 7528 | if { (ac_try="$ac_compile" |
| 7529 | case "(($ac_try" in |
| 7530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7531 | *) ac_try_echo=$ac_try;; |
| 7532 | esac |
| 7533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7534 | (eval "$ac_compile") 2>conftest.er1 |
| 7535 | ac_status=$? |
| 7536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7537 | rm -f conftest.er1 |
| 7538 | cat conftest.err >&5 |
| 7539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7540 | (exit $ac_status); } && |
| 7541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7542 | { (case "(($ac_try" in |
| 7543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7544 | *) ac_try_echo=$ac_try;; |
| 7545 | esac |
| 7546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7547 | (eval "$ac_try") 2>&5 |
| 7548 | ac_status=$? |
| 7549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7550 | (exit $ac_status); }; } && |
| 7551 | { ac_try='test -s conftest.$ac_objext' |
| 7552 | { (case "(($ac_try" in |
| 7553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7554 | *) ac_try_echo=$ac_try;; |
| 7555 | esac |
| 7556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7557 | (eval "$ac_try") 2>&5 |
| 7558 | ac_status=$? |
| 7559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7560 | (exit $ac_status); }; }; then |
| 7561 | ac_cv_header_stdc=yes |
| 7562 | else |
| 7563 | echo "$as_me: failed program was:" >&5 |
| 7564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7565 | |
| 7566 | ac_cv_header_stdc=no |
| 7567 | fi |
| 7568 | |
| 7569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7570 | |
| 7571 | if test $ac_cv_header_stdc = yes; then |
| 7572 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7573 | cat >conftest.$ac_ext <<_ACEOF |
| 7574 | /* confdefs.h. */ |
| 7575 | _ACEOF |
| 7576 | cat confdefs.h >>conftest.$ac_ext |
| 7577 | cat >>conftest.$ac_ext <<_ACEOF |
| 7578 | /* end confdefs.h. */ |
| 7579 | #include <string.h> |
| 7580 | |
| 7581 | _ACEOF |
| 7582 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7583 | $EGREP "memchr" >/dev/null 2>&1; then |
| 7584 | : |
| 7585 | else |
| 7586 | ac_cv_header_stdc=no |
| 7587 | fi |
| 7588 | rm -f conftest* |
| 7589 | |
| 7590 | fi |
| 7591 | |
| 7592 | if test $ac_cv_header_stdc = yes; then |
| 7593 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7594 | cat >conftest.$ac_ext <<_ACEOF |
| 7595 | /* confdefs.h. */ |
| 7596 | _ACEOF |
| 7597 | cat confdefs.h >>conftest.$ac_ext |
| 7598 | cat >>conftest.$ac_ext <<_ACEOF |
| 7599 | /* end confdefs.h. */ |
| 7600 | #include <stdlib.h> |
| 7601 | |
| 7602 | _ACEOF |
| 7603 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7604 | $EGREP "free" >/dev/null 2>&1; then |
| 7605 | : |
| 7606 | else |
| 7607 | ac_cv_header_stdc=no |
| 7608 | fi |
| 7609 | rm -f conftest* |
| 7610 | |
| 7611 | fi |
| 7612 | |
| 7613 | if test $ac_cv_header_stdc = yes; then |
| 7614 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7615 | if test "$cross_compiling" = yes; then |
| 7616 | : |
| 7617 | else |
| 7618 | cat >conftest.$ac_ext <<_ACEOF |
| 7619 | /* confdefs.h. */ |
| 7620 | _ACEOF |
| 7621 | cat confdefs.h >>conftest.$ac_ext |
| 7622 | cat >>conftest.$ac_ext <<_ACEOF |
| 7623 | /* end confdefs.h. */ |
| 7624 | #include <ctype.h> |
| 7625 | #include <stdlib.h> |
| 7626 | #if ((' ' & 0x0FF) == 0x020) |
| 7627 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7628 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7629 | #else |
| 7630 | # define ISLOWER(c) \ |
| 7631 | (('a' <= (c) && (c) <= 'i') \ |
| 7632 | || ('j' <= (c) && (c) <= 'r') \ |
| 7633 | || ('s' <= (c) && (c) <= 'z')) |
| 7634 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7635 | #endif |
| 7636 | |
| 7637 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7638 | int |
| 7639 | main () |
| 7640 | { |
| 7641 | int i; |
| 7642 | for (i = 0; i < 256; i++) |
| 7643 | if (XOR (islower (i), ISLOWER (i)) |
| 7644 | || toupper (i) != TOUPPER (i)) |
| 7645 | return 2; |
| 7646 | return 0; |
| 7647 | } |
| 7648 | _ACEOF |
| 7649 | rm -f conftest$ac_exeext |
| 7650 | if { (ac_try="$ac_link" |
| 7651 | case "(($ac_try" in |
| 7652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7653 | *) ac_try_echo=$ac_try;; |
| 7654 | esac |
| 7655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7656 | (eval "$ac_link") 2>&5 |
| 7657 | ac_status=$? |
| 7658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7659 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7660 | { (case "(($ac_try" in |
| 7661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7662 | *) ac_try_echo=$ac_try;; |
| 7663 | esac |
| 7664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7665 | (eval "$ac_try") 2>&5 |
| 7666 | ac_status=$? |
| 7667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7668 | (exit $ac_status); }; }; then |
| 7669 | : |
| 7670 | else |
| 7671 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7672 | echo "$as_me: failed program was:" >&5 |
| 7673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7674 | |
| 7675 | ( exit $ac_status ) |
| 7676 | ac_cv_header_stdc=no |
| 7677 | fi |
| 7678 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7679 | fi |
| 7680 | |
| 7681 | |
| 7682 | fi |
| 7683 | fi |
| 7684 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 7685 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
| 7686 | if test $ac_cv_header_stdc = yes; then |
| 7687 | |
| 7688 | cat >>confdefs.h <<\_ACEOF |
| 7689 | #define STDC_HEADERS 1 |
| 7690 | _ACEOF |
| 7691 | |
| 7692 | fi |
| 7693 | |
Eric Christopher | d7ed36b | 2014-01-09 01:09:57 +0000 | [diff] [blame] | 7694 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 7695 | |
| 7696 | |
| 7697 | |
| 7698 | |
| 7699 | |
| 7700 | |
| 7701 | |
| 7702 | |
| 7703 | |
| 7704 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 7705 | inttypes.h stdint.h unistd.h |
| 7706 | do |
| 7707 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7708 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7709 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7710 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7712 | else |
| 7713 | cat >conftest.$ac_ext <<_ACEOF |
| 7714 | /* confdefs.h. */ |
| 7715 | _ACEOF |
| 7716 | cat confdefs.h >>conftest.$ac_ext |
| 7717 | cat >>conftest.$ac_ext <<_ACEOF |
| 7718 | /* end confdefs.h. */ |
| 7719 | $ac_includes_default |
| 7720 | |
| 7721 | #include <$ac_header> |
| 7722 | _ACEOF |
| 7723 | rm -f conftest.$ac_objext |
| 7724 | if { (ac_try="$ac_compile" |
| 7725 | case "(($ac_try" in |
| 7726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7727 | *) ac_try_echo=$ac_try;; |
| 7728 | esac |
| 7729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7730 | (eval "$ac_compile") 2>conftest.er1 |
| 7731 | ac_status=$? |
| 7732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7733 | rm -f conftest.er1 |
| 7734 | cat conftest.err >&5 |
| 7735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7736 | (exit $ac_status); } && |
| 7737 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7738 | { (case "(($ac_try" in |
| 7739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7740 | *) ac_try_echo=$ac_try;; |
| 7741 | esac |
| 7742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7743 | (eval "$ac_try") 2>&5 |
| 7744 | ac_status=$? |
| 7745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7746 | (exit $ac_status); }; } && |
| 7747 | { ac_try='test -s conftest.$ac_objext' |
| 7748 | { (case "(($ac_try" in |
| 7749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7750 | *) ac_try_echo=$ac_try;; |
| 7751 | esac |
| 7752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7753 | (eval "$ac_try") 2>&5 |
| 7754 | ac_status=$? |
| 7755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7756 | (exit $ac_status); }; }; then |
| 7757 | eval "$as_ac_Header=yes" |
| 7758 | else |
| 7759 | echo "$as_me: failed program was:" >&5 |
| 7760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7761 | |
| 7762 | eval "$as_ac_Header=no" |
| 7763 | fi |
| 7764 | |
| 7765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7766 | fi |
| 7767 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7768 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7769 | echo "${ECHO_T}$ac_res" >&6; } |
| 7770 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7771 | cat >>confdefs.h <<_ACEOF |
| 7772 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7773 | _ACEOF |
| 7774 | |
| 7775 | fi |
| 7776 | |
| 7777 | done |
| 7778 | |
| 7779 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7780 | |
Rafael Espindola | fd1355a | 2014-02-28 18:17:54 +0000 | [diff] [blame] | 7781 | for ac_header in errno.h |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7782 | do |
| 7783 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7784 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7785 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7786 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7787 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7789 | fi |
| 7790 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7791 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7792 | echo "${ECHO_T}$ac_res" >&6; } |
| 7793 | else |
| 7794 | # Is the header compilable? |
| 7795 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7796 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 7797 | cat >conftest.$ac_ext <<_ACEOF |
| 7798 | /* confdefs.h. */ |
| 7799 | _ACEOF |
| 7800 | cat confdefs.h >>conftest.$ac_ext |
| 7801 | cat >>conftest.$ac_ext <<_ACEOF |
| 7802 | /* end confdefs.h. */ |
| 7803 | $ac_includes_default |
| 7804 | #include <$ac_header> |
| 7805 | _ACEOF |
| 7806 | rm -f conftest.$ac_objext |
| 7807 | if { (ac_try="$ac_compile" |
| 7808 | case "(($ac_try" in |
| 7809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7810 | *) ac_try_echo=$ac_try;; |
| 7811 | esac |
| 7812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7813 | (eval "$ac_compile") 2>conftest.er1 |
| 7814 | ac_status=$? |
| 7815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7816 | rm -f conftest.er1 |
| 7817 | cat conftest.err >&5 |
| 7818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7819 | (exit $ac_status); } && |
| 7820 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7821 | { (case "(($ac_try" in |
| 7822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7823 | *) ac_try_echo=$ac_try;; |
| 7824 | esac |
| 7825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7826 | (eval "$ac_try") 2>&5 |
| 7827 | ac_status=$? |
| 7828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7829 | (exit $ac_status); }; } && |
| 7830 | { ac_try='test -s conftest.$ac_objext' |
| 7831 | { (case "(($ac_try" in |
| 7832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7833 | *) ac_try_echo=$ac_try;; |
| 7834 | esac |
| 7835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7836 | (eval "$ac_try") 2>&5 |
| 7837 | ac_status=$? |
| 7838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7839 | (exit $ac_status); }; }; then |
| 7840 | ac_header_compiler=yes |
| 7841 | else |
| 7842 | echo "$as_me: failed program was:" >&5 |
| 7843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7844 | |
| 7845 | ac_header_compiler=no |
| 7846 | fi |
| 7847 | |
| 7848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7849 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7850 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 7851 | |
| 7852 | # Is the header present? |
| 7853 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7854 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 7855 | cat >conftest.$ac_ext <<_ACEOF |
| 7856 | /* confdefs.h. */ |
| 7857 | _ACEOF |
| 7858 | cat confdefs.h >>conftest.$ac_ext |
| 7859 | cat >>conftest.$ac_ext <<_ACEOF |
| 7860 | /* end confdefs.h. */ |
| 7861 | #include <$ac_header> |
| 7862 | _ACEOF |
| 7863 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7864 | case "(($ac_try" in |
| 7865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7866 | *) ac_try_echo=$ac_try;; |
| 7867 | esac |
| 7868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7869 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7870 | ac_status=$? |
| 7871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7872 | rm -f conftest.er1 |
| 7873 | cat conftest.err >&5 |
| 7874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7875 | (exit $ac_status); } >/dev/null; then |
| 7876 | if test -s conftest.err; then |
| 7877 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7878 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7879 | else |
| 7880 | ac_cpp_err= |
| 7881 | fi |
| 7882 | else |
| 7883 | ac_cpp_err=yes |
| 7884 | fi |
| 7885 | if test -z "$ac_cpp_err"; then |
| 7886 | ac_header_preproc=yes |
| 7887 | else |
| 7888 | echo "$as_me: failed program was:" >&5 |
| 7889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7890 | |
| 7891 | ac_header_preproc=no |
| 7892 | fi |
| 7893 | |
| 7894 | rm -f conftest.err conftest.$ac_ext |
| 7895 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7896 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7897 | |
| 7898 | # So? What about this header? |
| 7899 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7900 | yes:no: ) |
| 7901 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7902 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7903 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7904 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7905 | ac_header_preproc=yes |
| 7906 | ;; |
| 7907 | no:yes:* ) |
| 7908 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7909 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7910 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7911 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7912 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7913 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7914 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7915 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7916 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7917 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7918 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7919 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7920 | ( cat <<\_ASBOX |
Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 7921 | ## ------------------------------------ ## |
| 7922 | ## Report this to http://llvm.org/bugs/ ## |
| 7923 | ## ------------------------------------ ## |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7924 | _ASBOX |
| 7925 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 7926 | ;; |
| 7927 | esac |
| 7928 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7929 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7930 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7932 | else |
| 7933 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7934 | fi |
| 7935 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7936 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7937 | echo "${ECHO_T}$ac_res" >&6; } |
| 7938 | |
| 7939 | fi |
| 7940 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7941 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7942 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7943 | _ACEOF |
| 7944 | |
| 7945 | fi |
| 7946 | |
| 7947 | done |
| 7948 | |
| 7949 | |
Rafael Espindola | fd1355a | 2014-02-28 18:17:54 +0000 | [diff] [blame] | 7950 | case "$llvm_cv_os_type" in |
| 7951 | Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;; |
| 7952 | Darwin) llvm_shlib_ext=.dylib ;; |
| 7953 | *) llvm_shlib_ext=.so ;; |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7954 | esac |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7955 | |
Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7956 | |
| 7957 | cat >>confdefs.h <<_ACEOF |
Rafael Espindola | fd1355a | 2014-02-28 18:17:54 +0000 | [diff] [blame] | 7958 | #define LTDL_SHLIB_EXT "$llvm_shlib_ext" |
Reid Spencer | a40c687 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7959 | _ACEOF |
| 7960 | |
| 7961 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7962 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 7963 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 7964 | |
Reid Spencer | ca06c8e | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 7965 | ICC=no |
| 7966 | IXX=no |
| 7967 | case $CC in |
| 7968 | icc*|icpc*) |
| 7969 | ICC=yes |
| 7970 | IXX=yes |
| 7971 | ;; |
| 7972 | *) |
| 7973 | ;; |
| 7974 | esac |
| 7975 | |
Duraid Madina | 8604de8 | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 7976 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 7977 | then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7978 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 7979 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 7980 | { (exit 1); exit 1; }; } |
Duraid Madina | 8604de8 | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 7981 | fi |
| 7982 | |
| 7983 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 7984 | then |
Eric Christopher | 8d842da | 2010-12-08 02:02:14 +0000 | [diff] [blame] | 7985 | { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 |
| 7986 | echo "$as_me: error: g++|clang++|icc required but not found" >&2;} |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7987 | { (exit 1); exit 1; }; } |
Duraid Madina | 8604de8 | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 7988 | fi |
| 7989 | |
Reid Spencer | ca06c8e | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 7990 | if test "$GCC" = "yes" |
| 7991 | then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7992 | cat >conftest.$ac_ext <<_ACEOF |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 7993 | |
| 7994 | /* confdefs.h. */ |
| 7995 | _ACEOF |
| 7996 | cat confdefs.h >>conftest.$ac_ext |
| 7997 | cat >>conftest.$ac_ext <<_ACEOF |
| 7998 | /* end confdefs.h. */ |
| 7999 | |
| 8000 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 8001 | #error Unsupported GCC version |
| 8002 | #endif |
| 8003 | |
Chris Lattner | e115fb5 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 8004 | |
| 8005 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8006 | rm -f conftest.$ac_objext |
| 8007 | if { (ac_try="$ac_compile" |
| 8008 | case "(($ac_try" in |
| 8009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8010 | *) ac_try_echo=$ac_try;; |
| 8011 | esac |
| 8012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8013 | (eval "$ac_compile") 2>conftest.er1 |
| 8014 | ac_status=$? |
| 8015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8016 | rm -f conftest.er1 |
| 8017 | cat conftest.err >&5 |
| 8018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8019 | (exit $ac_status); } && |
| 8020 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8021 | { (case "(($ac_try" in |
| 8022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8023 | *) ac_try_echo=$ac_try;; |
| 8024 | esac |
| 8025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8026 | (eval "$ac_try") 2>&5 |
| 8027 | ac_status=$? |
| 8028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8029 | (exit $ac_status); }; } && |
| 8030 | { ac_try='test -s conftest.$ac_objext' |
| 8031 | { (case "(($ac_try" in |
| 8032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8033 | *) ac_try_echo=$ac_try;; |
| 8034 | esac |
| 8035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8036 | (eval "$ac_try") 2>&5 |
| 8037 | ac_status=$? |
| 8038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8039 | (exit $ac_status); }; }; then |
| 8040 | : |
Chris Lattner | e115fb5 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 8041 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8042 | echo "$as_me: failed program was:" >&5 |
| 8043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8044 | |
| 8045 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 8046 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 8047 | { (exit 1); exit 1; }; } |
Chris Lattner | e115fb5 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 8048 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8049 | |
Chris Lattner | e115fb5 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 8050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 8051 | fi |
| 8052 | |
| 8053 | if test -z "$llvm_cv_gnu_make_command" |
| 8054 | then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8055 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 8056 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 8057 | { (exit 1); exit 1; }; } |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 8058 | fi |
| 8059 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8060 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 8061 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 8062 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8063 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 8064 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Richard Smith | f89ffcd | 2013-02-08 22:55:10 +0000 | [diff] [blame] | 8065 | NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-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] | 8066 | |
Richard Smith | f89ffcd | 2013-02-08 22:55:10 +0000 | [diff] [blame] | 8067 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-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] | 8068 | |
Rafael Espindola | 42e94d1 | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 8069 | COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` |
| 8070 | |
Dmitri Gribenko | b5e23ef | 2013-02-13 21:19:39 +0000 | [diff] [blame] | 8071 | |
| 8072 | NO_UNINITIALIZED= |
| 8073 | NO_MAYBE_UNINITIALIZED= |
David Greene | 9ff8d47 | 2013-01-09 22:11:13 +0000 | [diff] [blame] | 8074 | if test "$GXX" = "yes" |
| 8075 | then |
Richard Smith | f89ffcd | 2013-02-08 22:55:10 +0000 | [diff] [blame] | 8076 | NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized` |
David Greene | 9ff8d47 | 2013-01-09 22:11:13 +0000 | [diff] [blame] | 8077 | |
Dmitri Gribenko | b5e23ef | 2013-02-13 21:19:39 +0000 | [diff] [blame] | 8078 | if test -z "$NO_MAYBE_UNINITIALIZED" |
David Greene | 9ff8d47 | 2013-01-09 22:11:13 +0000 | [diff] [blame] | 8079 | then |
Richard Smith | f89ffcd | 2013-02-08 22:55:10 +0000 | [diff] [blame] | 8080 | NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized` |
David Greene | 9ff8d47 | 2013-01-09 22:11:13 +0000 | [diff] [blame] | 8081 | |
David Greene | 9ff8d47 | 2013-01-09 22:11:13 +0000 | [diff] [blame] | 8082 | fi |
David Greene | 9ff8d47 | 2013-01-09 22:11:13 +0000 | [diff] [blame] | 8083 | fi |
Eric Christopher | 65ec83b | 2014-11-05 00:35:15 +0000 | [diff] [blame] | 8084 | |
| 8085 | no_comment= |
| 8086 | llvm_cv_old_cxxflags="$CXXFLAGS" |
| 8087 | CXXFLAGS="$CXXFLAGS -Wcomment -Werror" |
| 8088 | cat >conftest.$ac_ext <<_ACEOF |
| 8089 | |
| 8090 | /* confdefs.h. */ |
| 8091 | _ACEOF |
| 8092 | cat confdefs.h >>conftest.$ac_ext |
| 8093 | cat >>conftest.$ac_ext <<_ACEOF |
| 8094 | /* end confdefs.h. */ |
| 8095 | // Comment \o\ |
| 8096 | // Another comment |
| 8097 | int main() { return 0; } |
| 8098 | |
| 8099 | |
| 8100 | _ACEOF |
| 8101 | rm -f conftest.$ac_objext |
| 8102 | if { (ac_try="$ac_compile" |
| 8103 | case "(($ac_try" in |
| 8104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8105 | *) ac_try_echo=$ac_try;; |
| 8106 | esac |
| 8107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8108 | (eval "$ac_compile") 2>conftest.er1 |
| 8109 | ac_status=$? |
| 8110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8111 | rm -f conftest.er1 |
| 8112 | cat conftest.err >&5 |
| 8113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8114 | (exit $ac_status); } && |
| 8115 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8116 | { (case "(($ac_try" in |
| 8117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8118 | *) ac_try_echo=$ac_try;; |
| 8119 | esac |
| 8120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8121 | (eval "$ac_try") 2>&5 |
| 8122 | ac_status=$? |
| 8123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8124 | (exit $ac_status); }; } && |
| 8125 | { ac_try='test -s conftest.$ac_objext' |
| 8126 | { (case "(($ac_try" in |
| 8127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8128 | *) ac_try_echo=$ac_try;; |
| 8129 | esac |
| 8130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8131 | (eval "$ac_try") 2>&5 |
| 8132 | ac_status=$? |
| 8133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8134 | (exit $ac_status); }; }; then |
| 8135 | |
| 8136 | no_comment=-Wno-comment |
| 8137 | |
| 8138 | else |
| 8139 | echo "$as_me: failed program was:" >&5 |
| 8140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8141 | |
| 8142 | |
| 8143 | fi |
| 8144 | |
| 8145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8146 | NO_COMMENT=$no_comment |
| 8147 | |
| 8148 | CXXFLAGS="$llvm_cv_old_cxxflags" |
| 8149 | |
| 8150 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5 |
| 8151 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; } |
David Greene | 9ff8d47 | 2013-01-09 22:11:13 +0000 | [diff] [blame] | 8152 | |
Julien Lerouge | b614dd3 | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 8153 | |
Saleem Abdulrasool | a166574 | 2013-01-30 04:44:17 +0000 | [diff] [blame] | 8154 | # Check whether --with-python was given. |
| 8155 | if test "${with_python+set}" = set; then |
| 8156 | withval=$with_python; PYTHON="$withval" |
| 8157 | fi |
| 8158 | |
| 8159 | |
| 8160 | if test -n "$PYTHON" && test -x "$PYTHON" ; then |
| 8161 | { echo "$as_me:$LINENO: checking for python" >&5 |
| 8162 | echo $ECHO_N "checking for python... $ECHO_C" >&6; } |
| 8163 | { echo "$as_me:$LINENO: result: user defined: $with_python" >&5 |
| 8164 | echo "${ECHO_T}user defined: $with_python" >&6; } |
| 8165 | else |
| 8166 | if test -n "$PYTHON" ; then |
| 8167 | { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5 |
| 8168 | echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;} |
| 8169 | fi |
| 8170 | |
Rafael Espindola | 21a40085 | 2014-12-12 15:29:31 +0000 | [diff] [blame] | 8171 | # Extract the first word of "python python2 python27", so it can be a program name with args. |
| 8172 | set dummy python python2 python27; ac_word=$2 |
Saleem Abdulrasool | a166574 | 2013-01-30 04:44:17 +0000 | [diff] [blame] | 8173 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8174 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8175 | if test "${ac_cv_path_PYTHON+set}" = set; then |
| 8176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8177 | else |
| 8178 | case $PYTHON in |
| 8179 | [\\/]* | ?:[\\/]*) |
| 8180 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
| 8181 | ;; |
| 8182 | *) |
| 8183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8184 | for as_dir in $PATH |
| 8185 | do |
| 8186 | IFS=$as_save_IFS |
| 8187 | test -z "$as_dir" && as_dir=. |
| 8188 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8189 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8190 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
| 8191 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8192 | break 2 |
| 8193 | fi |
| 8194 | done |
| 8195 | done |
| 8196 | IFS=$as_save_IFS |
| 8197 | |
| 8198 | test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5 |
| 8199 | echo "${ECHO_T}not found" >&6; } |
Rafael Espindola | 21a40085 | 2014-12-12 15:29:31 +0000 | [diff] [blame] | 8200 | { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5 |
| 8201 | echo "$as_me: error: could not find python 2.7 or higher" >&2;} |
Saleem Abdulrasool | a166574 | 2013-01-30 04:44:17 +0000 | [diff] [blame] | 8202 | { (exit 1); exit 1; }; }" |
| 8203 | ;; |
| 8204 | esac |
| 8205 | fi |
| 8206 | PYTHON=$ac_cv_path_PYTHON |
| 8207 | if test -n "$PYTHON"; then |
| 8208 | { echo "$as_me:$LINENO: result: $PYTHON" >&5 |
| 8209 | echo "${ECHO_T}$PYTHON" >&6; } |
| 8210 | else |
| 8211 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8212 | echo "${ECHO_T}no" >&6; } |
| 8213 | fi |
| 8214 | |
| 8215 | |
| 8216 | fi |
| 8217 | |
Rafael Espindola | 21a40085 | 2014-12-12 15:29:31 +0000 | [diff] [blame] | 8218 | { echo "$as_me:$LINENO: checking for python >= 2.7" >&5 |
| 8219 | echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; } |
Bill Wendling | 58463e4e8 | 2013-10-12 08:42:59 +0000 | [diff] [blame] | 8220 | ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2` |
Saleem Abdulrasool | a166574 | 2013-01-30 04:44:17 +0000 | [diff] [blame] | 8221 | ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1` |
| 8222 | ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2` |
| 8223 | ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3` |
Bill Wendling | 58463e4e8 | 2013-10-12 08:42:59 +0000 | [diff] [blame] | 8224 | if test "$ac_python_version_major" -gt "2" || \ |
| 8225 | (test "$ac_python_version_major" -eq "2" && \ |
Rafael Espindola | 21a40085 | 2014-12-12 15:29:31 +0000 | [diff] [blame] | 8226 | test "$ac_python_version_minor" -ge "7") ; then |
Saleem Abdulrasool | a166574 | 2013-01-30 04:44:17 +0000 | [diff] [blame] | 8227 | { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5 |
| 8228 | echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; } |
| 8229 | else |
| 8230 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 8231 | echo "${ECHO_T}not found" >&6; } |
Rafael Espindola | 21a40085 | 2014-12-12 15:29:31 +0000 | [diff] [blame] | 8232 | { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7 |
Saleem Abdulrasool | a166574 | 2013-01-30 04:44:17 +0000 | [diff] [blame] | 8233 | See \`config.log' for more details." >&5 |
Rafael Espindola | 21a40085 | 2014-12-12 15:29:31 +0000 | [diff] [blame] | 8234 | echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7 |
Saleem Abdulrasool | a166574 | 2013-01-30 04:44:17 +0000 | [diff] [blame] | 8235 | See \`config.log' for more details." >&2;} |
| 8236 | { (exit 1); exit 1; }; } |
| 8237 | fi |
| 8238 | |
Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 8239 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8240 | |
| 8241 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 8242 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 8243 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 8244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 8245 | else |
| 8246 | ac_check_lib_save_LIBS=$LIBS |
| 8247 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8248 | cat >conftest.$ac_ext <<_ACEOF |
| 8249 | /* confdefs.h. */ |
| 8250 | _ACEOF |
| 8251 | cat confdefs.h >>conftest.$ac_ext |
| 8252 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 8253 | /* end confdefs.h. */ |
| 8254 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8255 | /* Override any GCC internal prototype to avoid an error. |
| 8256 | Use char because int might match the return type of a GCC |
| 8257 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 8258 | #ifdef __cplusplus |
| 8259 | extern "C" |
| 8260 | #endif |
Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 8261 | char sin (); |
| 8262 | int |
| 8263 | main () |
| 8264 | { |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8265 | return sin (); |
Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 8266 | ; |
| 8267 | return 0; |
| 8268 | } |
| 8269 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8270 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8271 | if { (ac_try="$ac_link" |
| 8272 | case "(($ac_try" in |
| 8273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8274 | *) ac_try_echo=$ac_try;; |
| 8275 | esac |
| 8276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8277 | (eval "$ac_link") 2>conftest.er1 |
| 8278 | ac_status=$? |
| 8279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8280 | rm -f conftest.er1 |
| 8281 | cat conftest.err >&5 |
| 8282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8283 | (exit $ac_status); } && |
| 8284 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8285 | { (case "(($ac_try" in |
| 8286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8287 | *) ac_try_echo=$ac_try;; |
| 8288 | esac |
| 8289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8290 | (eval "$ac_try") 2>&5 |
| 8291 | ac_status=$? |
| 8292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8293 | (exit $ac_status); }; } && |
| 8294 | { ac_try='test -s conftest$ac_exeext' |
| 8295 | { (case "(($ac_try" in |
| 8296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8297 | *) ac_try_echo=$ac_try;; |
| 8298 | esac |
| 8299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8300 | (eval "$ac_try") 2>&5 |
| 8301 | ac_status=$? |
| 8302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8303 | (exit $ac_status); }; }; then |
Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 8304 | ac_cv_lib_m_sin=yes |
| 8305 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8306 | echo "$as_me: failed program was:" >&5 |
| 8307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8308 | |
| 8309 | ac_cv_lib_m_sin=no |
Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 8310 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8311 | |
Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8312 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8313 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 8314 | LIBS=$ac_check_lib_save_LIBS |
| 8315 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8316 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 8317 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 8318 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | ec4a7f52 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 8319 | cat >>confdefs.h <<_ACEOF |
| 8320 | #define HAVE_LIBM 1 |
| 8321 | _ACEOF |
| 8322 | |
| 8323 | LIBS="-lm $LIBS" |
| 8324 | |
| 8325 | fi |
| 8326 | |
Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 8327 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8328 | |
| 8329 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 8330 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 8331 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 8332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 8333 | else |
| 8334 | ac_check_lib_save_LIBS=$LIBS |
| 8335 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8336 | cat >conftest.$ac_ext <<_ACEOF |
| 8337 | /* confdefs.h. */ |
| 8338 | _ACEOF |
| 8339 | cat confdefs.h >>conftest.$ac_ext |
| 8340 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 8341 | /* end confdefs.h. */ |
| 8342 | |
Reid Spencer | 187b4ad | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 8343 | |
Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 8344 | int |
| 8345 | main () |
| 8346 | { |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8347 | return main (); |
Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 8348 | ; |
| 8349 | return 0; |
| 8350 | } |
| 8351 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8352 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8353 | if { (ac_try="$ac_link" |
| 8354 | case "(($ac_try" in |
| 8355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8356 | *) ac_try_echo=$ac_try;; |
| 8357 | esac |
| 8358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8359 | (eval "$ac_link") 2>conftest.er1 |
| 8360 | ac_status=$? |
| 8361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8362 | rm -f conftest.er1 |
| 8363 | cat conftest.err >&5 |
| 8364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8365 | (exit $ac_status); } && |
| 8366 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8367 | { (case "(($ac_try" in |
| 8368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8369 | *) ac_try_echo=$ac_try;; |
| 8370 | esac |
| 8371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8372 | (eval "$ac_try") 2>&5 |
| 8373 | ac_status=$? |
| 8374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8375 | (exit $ac_status); }; } && |
| 8376 | { ac_try='test -s conftest$ac_exeext' |
| 8377 | { (case "(($ac_try" in |
| 8378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8379 | *) ac_try_echo=$ac_try;; |
| 8380 | esac |
| 8381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8382 | (eval "$ac_try") 2>&5 |
| 8383 | ac_status=$? |
| 8384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8385 | (exit $ac_status); }; }; then |
Reid Spencer | 187b4ad | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 8386 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 8387 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8388 | echo "$as_me: failed program was:" >&5 |
| 8389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8390 | |
| 8391 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 8392 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8393 | |
Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8394 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8395 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 8396 | LIBS=$ac_check_lib_save_LIBS |
| 8397 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8398 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 8399 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 8400 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 8401 | cat >>confdefs.h <<_ACEOF |
| 8402 | #define HAVE_LIBIMAGEHLP 1 |
| 8403 | _ACEOF |
| 8404 | |
| 8405 | LIBS="-limagehlp $LIBS" |
| 8406 | |
| 8407 | fi |
| 8408 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8409 | |
| 8410 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 8411 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 8412 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 8413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 8414 | else |
| 8415 | ac_check_lib_save_LIBS=$LIBS |
| 8416 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8417 | cat >conftest.$ac_ext <<_ACEOF |
| 8418 | /* confdefs.h. */ |
| 8419 | _ACEOF |
| 8420 | cat confdefs.h >>conftest.$ac_ext |
| 8421 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 8422 | /* end confdefs.h. */ |
| 8423 | |
Reid Spencer | 187b4ad | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 8424 | |
Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 8425 | int |
| 8426 | main () |
| 8427 | { |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8428 | return main (); |
Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 8429 | ; |
| 8430 | return 0; |
| 8431 | } |
| 8432 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8433 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8434 | if { (ac_try="$ac_link" |
| 8435 | case "(($ac_try" in |
| 8436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8437 | *) ac_try_echo=$ac_try;; |
| 8438 | esac |
| 8439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8440 | (eval "$ac_link") 2>conftest.er1 |
| 8441 | ac_status=$? |
| 8442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8443 | rm -f conftest.er1 |
| 8444 | cat conftest.err >&5 |
| 8445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8446 | (exit $ac_status); } && |
| 8447 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8448 | { (case "(($ac_try" in |
| 8449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8450 | *) ac_try_echo=$ac_try;; |
| 8451 | esac |
| 8452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8453 | (eval "$ac_try") 2>&5 |
| 8454 | ac_status=$? |
| 8455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8456 | (exit $ac_status); }; } && |
| 8457 | { ac_try='test -s conftest$ac_exeext' |
| 8458 | { (case "(($ac_try" in |
| 8459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8460 | *) ac_try_echo=$ac_try;; |
| 8461 | esac |
| 8462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8463 | (eval "$ac_try") 2>&5 |
| 8464 | ac_status=$? |
| 8465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8466 | (exit $ac_status); }; }; then |
Reid Spencer | 187b4ad | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 8467 | ac_cv_lib_psapi_main=yes |
Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 8468 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8469 | echo "$as_me: failed program was:" >&5 |
| 8470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8471 | |
| 8472 | ac_cv_lib_psapi_main=no |
Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 8473 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8474 | |
Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8475 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8476 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 8477 | LIBS=$ac_check_lib_save_LIBS |
| 8478 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8479 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 8480 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 8481 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 8482 | cat >>confdefs.h <<_ACEOF |
| 8483 | #define HAVE_LIBPSAPI 1 |
| 8484 | _ACEOF |
| 8485 | |
| 8486 | LIBS="-lpsapi $LIBS" |
| 8487 | |
| 8488 | fi |
| 8489 | |
David Majnemer | 61eae2e | 2013-10-07 01:00:07 +0000 | [diff] [blame] | 8490 | |
| 8491 | { echo "$as_me:$LINENO: checking for main in -lshell32" >&5 |
| 8492 | echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; } |
| 8493 | if test "${ac_cv_lib_shell32_main+set}" = set; then |
| 8494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8495 | else |
| 8496 | ac_check_lib_save_LIBS=$LIBS |
| 8497 | LIBS="-lshell32 $LIBS" |
| 8498 | cat >conftest.$ac_ext <<_ACEOF |
| 8499 | /* confdefs.h. */ |
| 8500 | _ACEOF |
| 8501 | cat confdefs.h >>conftest.$ac_ext |
| 8502 | cat >>conftest.$ac_ext <<_ACEOF |
| 8503 | /* end confdefs.h. */ |
| 8504 | |
| 8505 | |
| 8506 | int |
| 8507 | main () |
| 8508 | { |
| 8509 | return main (); |
| 8510 | ; |
| 8511 | return 0; |
| 8512 | } |
| 8513 | _ACEOF |
| 8514 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8515 | if { (ac_try="$ac_link" |
| 8516 | case "(($ac_try" in |
| 8517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8518 | *) ac_try_echo=$ac_try;; |
| 8519 | esac |
| 8520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8521 | (eval "$ac_link") 2>conftest.er1 |
| 8522 | ac_status=$? |
| 8523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8524 | rm -f conftest.er1 |
| 8525 | cat conftest.err >&5 |
| 8526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8527 | (exit $ac_status); } && |
| 8528 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8529 | { (case "(($ac_try" in |
| 8530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8531 | *) ac_try_echo=$ac_try;; |
| 8532 | esac |
| 8533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8534 | (eval "$ac_try") 2>&5 |
| 8535 | ac_status=$? |
| 8536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8537 | (exit $ac_status); }; } && |
| 8538 | { ac_try='test -s conftest$ac_exeext' |
| 8539 | { (case "(($ac_try" in |
| 8540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8541 | *) ac_try_echo=$ac_try;; |
| 8542 | esac |
| 8543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8544 | (eval "$ac_try") 2>&5 |
| 8545 | ac_status=$? |
| 8546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8547 | (exit $ac_status); }; }; then |
| 8548 | ac_cv_lib_shell32_main=yes |
| 8549 | else |
| 8550 | echo "$as_me: failed program was:" >&5 |
| 8551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8552 | |
| 8553 | ac_cv_lib_shell32_main=no |
| 8554 | fi |
| 8555 | |
| 8556 | rm -f core conftest.err conftest.$ac_objext \ |
| 8557 | conftest$ac_exeext conftest.$ac_ext |
| 8558 | LIBS=$ac_check_lib_save_LIBS |
| 8559 | fi |
| 8560 | { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5 |
| 8561 | echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; } |
| 8562 | if test $ac_cv_lib_shell32_main = yes; then |
| 8563 | cat >>confdefs.h <<_ACEOF |
| 8564 | #define HAVE_LIBSHELL32 1 |
| 8565 | _ACEOF |
| 8566 | |
| 8567 | LIBS="-lshell32 $LIBS" |
| 8568 | |
| 8569 | fi |
| 8570 | |
Reid Spencer | a16b986 | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 8571 | fi |
Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 8572 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8573 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 8574 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 8575 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 8576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8577 | else |
| 8578 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8579 | cat >conftest.$ac_ext <<_ACEOF |
| 8580 | /* confdefs.h. */ |
| 8581 | _ACEOF |
| 8582 | cat confdefs.h >>conftest.$ac_ext |
| 8583 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8584 | /* end confdefs.h. */ |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8585 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8586 | /* Override any GCC internal prototype to avoid an error. |
| 8587 | Use char because int might match the return type of a GCC |
| 8588 | builtin and then its argument prototype would still apply. */ |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8589 | #ifdef __cplusplus |
| 8590 | extern "C" |
| 8591 | #endif |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8592 | char dlopen (); |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8593 | int |
| 8594 | main () |
| 8595 | { |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8596 | return dlopen (); |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8597 | ; |
| 8598 | return 0; |
| 8599 | } |
| 8600 | _ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8601 | for ac_lib in '' dl; do |
| 8602 | if test -z "$ac_lib"; then |
| 8603 | ac_res="none required" |
| 8604 | else |
| 8605 | ac_res=-l$ac_lib |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8606 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8607 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8608 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8609 | if { (ac_try="$ac_link" |
| 8610 | case "(($ac_try" in |
| 8611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8612 | *) ac_try_echo=$ac_try;; |
| 8613 | esac |
| 8614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8615 | (eval "$ac_link") 2>conftest.er1 |
| 8616 | ac_status=$? |
| 8617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8618 | rm -f conftest.er1 |
| 8619 | cat conftest.err >&5 |
| 8620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8621 | (exit $ac_status); } && |
| 8622 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8623 | { (case "(($ac_try" in |
| 8624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8625 | *) ac_try_echo=$ac_try;; |
| 8626 | esac |
| 8627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8628 | (eval "$ac_try") 2>&5 |
| 8629 | ac_status=$? |
| 8630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8631 | (exit $ac_status); }; } && |
| 8632 | { ac_try='test -s conftest$ac_exeext' |
| 8633 | { (case "(($ac_try" in |
| 8634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8635 | *) ac_try_echo=$ac_try;; |
| 8636 | esac |
| 8637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8638 | (eval "$ac_try") 2>&5 |
| 8639 | ac_status=$? |
| 8640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8641 | (exit $ac_status); }; }; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8642 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8643 | else |
| 8644 | echo "$as_me: failed program was:" >&5 |
| 8645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8646 | |
| 8647 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8648 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8649 | |
Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8650 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8651 | conftest$ac_exeext |
| 8652 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8653 | break |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8654 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8655 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8656 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 8657 | : |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8658 | else |
| 8659 | ac_cv_search_dlopen=no |
| 8660 | fi |
| 8661 | rm conftest.$ac_ext |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8662 | LIBS=$ac_func_search_save_LIBS |
| 8663 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8664 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 8665 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8666 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8667 | if test "$ac_res" != no; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8668 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 8669 | |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 8670 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8671 | cat >>confdefs.h <<\_ACEOF |
| 8672 | #define HAVE_DLOPEN 1 |
| 8673 | _ACEOF |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8674 | |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 8675 | HAVE_DLOPEN='1' |
| 8676 | |
| 8677 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8678 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8679 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 8680 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8681 | fi |
| 8682 | |
| 8683 | |
Chandler Carruth | ef7f968 | 2013-01-04 23:19:55 +0000 | [diff] [blame] | 8684 | { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5 |
| 8685 | echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; } |
| 8686 | if test "${ac_cv_search_clock_gettime+set}" = set; then |
| 8687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8688 | else |
| 8689 | ac_func_search_save_LIBS=$LIBS |
| 8690 | cat >conftest.$ac_ext <<_ACEOF |
| 8691 | /* confdefs.h. */ |
| 8692 | _ACEOF |
| 8693 | cat confdefs.h >>conftest.$ac_ext |
| 8694 | cat >>conftest.$ac_ext <<_ACEOF |
| 8695 | /* end confdefs.h. */ |
| 8696 | |
| 8697 | /* Override any GCC internal prototype to avoid an error. |
| 8698 | Use char because int might match the return type of a GCC |
| 8699 | builtin and then its argument prototype would still apply. */ |
| 8700 | #ifdef __cplusplus |
| 8701 | extern "C" |
| 8702 | #endif |
| 8703 | char clock_gettime (); |
| 8704 | int |
| 8705 | main () |
| 8706 | { |
| 8707 | return clock_gettime (); |
| 8708 | ; |
| 8709 | return 0; |
| 8710 | } |
| 8711 | _ACEOF |
| 8712 | for ac_lib in '' rt; do |
| 8713 | if test -z "$ac_lib"; then |
| 8714 | ac_res="none required" |
| 8715 | else |
| 8716 | ac_res=-l$ac_lib |
| 8717 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8718 | fi |
| 8719 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8720 | if { (ac_try="$ac_link" |
| 8721 | case "(($ac_try" in |
| 8722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8723 | *) ac_try_echo=$ac_try;; |
| 8724 | esac |
| 8725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8726 | (eval "$ac_link") 2>conftest.er1 |
| 8727 | ac_status=$? |
| 8728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8729 | rm -f conftest.er1 |
| 8730 | cat conftest.err >&5 |
| 8731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8732 | (exit $ac_status); } && |
| 8733 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8734 | { (case "(($ac_try" in |
| 8735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8736 | *) ac_try_echo=$ac_try;; |
| 8737 | esac |
| 8738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8739 | (eval "$ac_try") 2>&5 |
| 8740 | ac_status=$? |
| 8741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8742 | (exit $ac_status); }; } && |
| 8743 | { ac_try='test -s conftest$ac_exeext' |
| 8744 | { (case "(($ac_try" in |
| 8745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8746 | *) ac_try_echo=$ac_try;; |
| 8747 | esac |
| 8748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8749 | (eval "$ac_try") 2>&5 |
| 8750 | ac_status=$? |
| 8751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8752 | (exit $ac_status); }; }; then |
| 8753 | ac_cv_search_clock_gettime=$ac_res |
| 8754 | else |
| 8755 | echo "$as_me: failed program was:" >&5 |
| 8756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8757 | |
| 8758 | |
| 8759 | fi |
| 8760 | |
| 8761 | rm -f core conftest.err conftest.$ac_objext \ |
| 8762 | conftest$ac_exeext |
| 8763 | if test "${ac_cv_search_clock_gettime+set}" = set; then |
| 8764 | break |
| 8765 | fi |
| 8766 | done |
| 8767 | if test "${ac_cv_search_clock_gettime+set}" = set; then |
| 8768 | : |
| 8769 | else |
| 8770 | ac_cv_search_clock_gettime=no |
| 8771 | fi |
| 8772 | rm conftest.$ac_ext |
| 8773 | LIBS=$ac_func_search_save_LIBS |
| 8774 | fi |
| 8775 | { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5 |
| 8776 | echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; } |
| 8777 | ac_res=$ac_cv_search_clock_gettime |
| 8778 | if test "$ac_res" != no; then |
| 8779 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8780 | |
Chandler Carruth | ef7f968 | 2013-01-04 23:19:55 +0000 | [diff] [blame] | 8781 | fi |
| 8782 | |
| 8783 | |
Chandler Carruth | f11f1e4 | 2013-08-12 09:49:17 +0000 | [diff] [blame] | 8784 | if test "$llvm_cv_enable_terminfo" = "yes" ; then |
| 8785 | { echo "$as_me:$LINENO: checking for library containing setupterm" >&5 |
| 8786 | echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; } |
| 8787 | if test "${ac_cv_search_setupterm+set}" = set; then |
Chandler Carruth | cad7e5e | 2013-08-07 08:47:36 +0000 | [diff] [blame] | 8788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8789 | else |
| 8790 | ac_func_search_save_LIBS=$LIBS |
| 8791 | cat >conftest.$ac_ext <<_ACEOF |
| 8792 | /* confdefs.h. */ |
| 8793 | _ACEOF |
| 8794 | cat confdefs.h >>conftest.$ac_ext |
| 8795 | cat >>conftest.$ac_ext <<_ACEOF |
| 8796 | /* end confdefs.h. */ |
| 8797 | |
| 8798 | /* Override any GCC internal prototype to avoid an error. |
| 8799 | Use char because int might match the return type of a GCC |
| 8800 | builtin and then its argument prototype would still apply. */ |
| 8801 | #ifdef __cplusplus |
| 8802 | extern "C" |
| 8803 | #endif |
Chandler Carruth | f11f1e4 | 2013-08-12 09:49:17 +0000 | [diff] [blame] | 8804 | char setupterm (); |
Chandler Carruth | cad7e5e | 2013-08-07 08:47:36 +0000 | [diff] [blame] | 8805 | int |
| 8806 | main () |
| 8807 | { |
Chandler Carruth | f11f1e4 | 2013-08-12 09:49:17 +0000 | [diff] [blame] | 8808 | return setupterm (); |
Chandler Carruth | cad7e5e | 2013-08-07 08:47:36 +0000 | [diff] [blame] | 8809 | ; |
| 8810 | return 0; |
| 8811 | } |
| 8812 | _ACEOF |
Joerg Sonnenberger | 4e5a399 | 2013-08-17 11:06:00 +0000 | [diff] [blame] | 8813 | for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do |
Chandler Carruth | cad7e5e | 2013-08-07 08:47:36 +0000 | [diff] [blame] | 8814 | if test -z "$ac_lib"; then |
| 8815 | ac_res="none required" |
| 8816 | else |
| 8817 | ac_res=-l$ac_lib |
| 8818 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8819 | fi |
| 8820 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8821 | if { (ac_try="$ac_link" |
| 8822 | case "(($ac_try" in |
| 8823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8824 | *) ac_try_echo=$ac_try;; |
| 8825 | esac |
| 8826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8827 | (eval "$ac_link") 2>conftest.er1 |
| 8828 | ac_status=$? |
| 8829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8830 | rm -f conftest.er1 |
| 8831 | cat conftest.err >&5 |
| 8832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8833 | (exit $ac_status); } && |
| 8834 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8835 | { (case "(($ac_try" in |
| 8836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8837 | *) ac_try_echo=$ac_try;; |
| 8838 | esac |
| 8839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8840 | (eval "$ac_try") 2>&5 |
| 8841 | ac_status=$? |
| 8842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8843 | (exit $ac_status); }; } && |
| 8844 | { ac_try='test -s conftest$ac_exeext' |
| 8845 | { (case "(($ac_try" in |
| 8846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8847 | *) ac_try_echo=$ac_try;; |
| 8848 | esac |
| 8849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8850 | (eval "$ac_try") 2>&5 |
| 8851 | ac_status=$? |
| 8852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8853 | (exit $ac_status); }; }; then |
Chandler Carruth | f11f1e4 | 2013-08-12 09:49:17 +0000 | [diff] [blame] | 8854 | ac_cv_search_setupterm=$ac_res |
Chandler Carruth | cad7e5e | 2013-08-07 08:47:36 +0000 | [diff] [blame] | 8855 | else |
| 8856 | echo "$as_me: failed program was:" >&5 |
| 8857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8858 | |
| 8859 | |
| 8860 | fi |
| 8861 | |
| 8862 | rm -f core conftest.err conftest.$ac_objext \ |
| 8863 | conftest$ac_exeext |
Chandler Carruth | f11f1e4 | 2013-08-12 09:49:17 +0000 | [diff] [blame] | 8864 | if test "${ac_cv_search_setupterm+set}" = set; then |
Chandler Carruth | cad7e5e | 2013-08-07 08:47:36 +0000 | [diff] [blame] | 8865 | break |
| 8866 | fi |
| 8867 | done |
Chandler Carruth | f11f1e4 | 2013-08-12 09:49:17 +0000 | [diff] [blame] | 8868 | if test "${ac_cv_search_setupterm+set}" = set; then |
Chandler Carruth | cad7e5e | 2013-08-07 08:47:36 +0000 | [diff] [blame] | 8869 | : |
| 8870 | else |
Chandler Carruth | f11f1e4 | 2013-08-12 09:49:17 +0000 | [diff] [blame] | 8871 | ac_cv_search_setupterm=no |
Chandler Carruth | cad7e5e | 2013-08-07 08:47:36 +0000 | [diff] [blame] | 8872 | fi |
| 8873 | rm conftest.$ac_ext |
| 8874 | LIBS=$ac_func_search_save_LIBS |
| 8875 | fi |
Chandler Carruth | f11f1e4 | 2013-08-12 09:49:17 +0000 | [diff] [blame] | 8876 | { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5 |
| 8877 | echo "${ECHO_T}$ac_cv_search_setupterm" >&6; } |
| 8878 | ac_res=$ac_cv_search_setupterm |
Chandler Carruth | cad7e5e | 2013-08-07 08:47:36 +0000 | [diff] [blame] | 8879 | if test "$ac_res" != no; then |
| 8880 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8881 | |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 8882 | |
Chandler Carruth | cad7e5e | 2013-08-07 08:47:36 +0000 | [diff] [blame] | 8883 | cat >>confdefs.h <<\_ACEOF |
Chandler Carruth | f11f1e4 | 2013-08-12 09:49:17 +0000 | [diff] [blame] | 8884 | #define HAVE_TERMINFO 1 |
Chandler Carruth | cad7e5e | 2013-08-07 08:47:36 +0000 | [diff] [blame] | 8885 | _ACEOF |
| 8886 | |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 8887 | HAVE_TERMINFO='1' |
| 8888 | |
| 8889 | |
Chandler Carruth | cad7e5e | 2013-08-07 08:47:36 +0000 | [diff] [blame] | 8890 | fi |
| 8891 | |
| 8892 | fi |
| 8893 | |
Peter Collingbourne | c7d437c | 2014-01-31 23:46:14 +0000 | [diff] [blame] | 8894 | if test "$llvm_cv_enable_libedit" = "yes" ; then |
| 8895 | { echo "$as_me:$LINENO: checking for library containing el_init" >&5 |
| 8896 | echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; } |
| 8897 | if test "${ac_cv_search_el_init+set}" = set; then |
| 8898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8899 | else |
| 8900 | ac_func_search_save_LIBS=$LIBS |
| 8901 | cat >conftest.$ac_ext <<_ACEOF |
| 8902 | /* confdefs.h. */ |
| 8903 | _ACEOF |
| 8904 | cat confdefs.h >>conftest.$ac_ext |
| 8905 | cat >>conftest.$ac_ext <<_ACEOF |
| 8906 | /* end confdefs.h. */ |
| 8907 | |
| 8908 | /* Override any GCC internal prototype to avoid an error. |
| 8909 | Use char because int might match the return type of a GCC |
| 8910 | builtin and then its argument prototype would still apply. */ |
| 8911 | #ifdef __cplusplus |
| 8912 | extern "C" |
| 8913 | #endif |
| 8914 | char el_init (); |
| 8915 | int |
| 8916 | main () |
| 8917 | { |
| 8918 | return el_init (); |
| 8919 | ; |
| 8920 | return 0; |
| 8921 | } |
| 8922 | _ACEOF |
| 8923 | for ac_lib in '' edit; do |
| 8924 | if test -z "$ac_lib"; then |
| 8925 | ac_res="none required" |
| 8926 | else |
| 8927 | ac_res=-l$ac_lib |
| 8928 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8929 | fi |
| 8930 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8931 | if { (ac_try="$ac_link" |
| 8932 | case "(($ac_try" in |
| 8933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8934 | *) ac_try_echo=$ac_try;; |
| 8935 | esac |
| 8936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8937 | (eval "$ac_link") 2>conftest.er1 |
| 8938 | ac_status=$? |
| 8939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8940 | rm -f conftest.er1 |
| 8941 | cat conftest.err >&5 |
| 8942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8943 | (exit $ac_status); } && |
| 8944 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8945 | { (case "(($ac_try" in |
| 8946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8947 | *) ac_try_echo=$ac_try;; |
| 8948 | esac |
| 8949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8950 | (eval "$ac_try") 2>&5 |
| 8951 | ac_status=$? |
| 8952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8953 | (exit $ac_status); }; } && |
| 8954 | { ac_try='test -s conftest$ac_exeext' |
| 8955 | { (case "(($ac_try" in |
| 8956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8957 | *) ac_try_echo=$ac_try;; |
| 8958 | esac |
| 8959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8960 | (eval "$ac_try") 2>&5 |
| 8961 | ac_status=$? |
| 8962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8963 | (exit $ac_status); }; }; then |
| 8964 | ac_cv_search_el_init=$ac_res |
| 8965 | else |
| 8966 | echo "$as_me: failed program was:" >&5 |
| 8967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8968 | |
| 8969 | |
| 8970 | fi |
| 8971 | |
| 8972 | rm -f core conftest.err conftest.$ac_objext \ |
| 8973 | conftest$ac_exeext |
| 8974 | if test "${ac_cv_search_el_init+set}" = set; then |
| 8975 | break |
| 8976 | fi |
| 8977 | done |
| 8978 | if test "${ac_cv_search_el_init+set}" = set; then |
| 8979 | : |
| 8980 | else |
| 8981 | ac_cv_search_el_init=no |
| 8982 | fi |
| 8983 | rm conftest.$ac_ext |
| 8984 | LIBS=$ac_func_search_save_LIBS |
| 8985 | fi |
| 8986 | { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5 |
| 8987 | echo "${ECHO_T}$ac_cv_search_el_init" >&6; } |
| 8988 | ac_res=$ac_cv_search_el_init |
| 8989 | if test "$ac_res" != no; then |
| 8990 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8991 | |
| 8992 | cat >>confdefs.h <<\_ACEOF |
| 8993 | #define HAVE_LIBEDIT 1 |
| 8994 | _ACEOF |
| 8995 | |
| 8996 | fi |
| 8997 | |
| 8998 | fi |
| 8999 | |
Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 9000 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9001 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 9002 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 9003 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 9004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 9005 | else |
Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 9006 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9007 | cat >conftest.$ac_ext <<_ACEOF |
| 9008 | /* confdefs.h. */ |
| 9009 | _ACEOF |
| 9010 | cat confdefs.h >>conftest.$ac_ext |
| 9011 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 9012 | /* end confdefs.h. */ |
| 9013 | |
| 9014 | /* Override any GCC internal prototype to avoid an error. |
| 9015 | Use char because int might match the return type of a GCC |
| 9016 | builtin and then its argument prototype would still apply. */ |
| 9017 | #ifdef __cplusplus |
| 9018 | extern "C" |
| 9019 | #endif |
| 9020 | char ffi_call (); |
| 9021 | int |
| 9022 | main () |
| 9023 | { |
| 9024 | return ffi_call (); |
| 9025 | ; |
| 9026 | return 0; |
| 9027 | } |
| 9028 | _ACEOF |
Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 9029 | for ac_lib in '' ffi; do |
| 9030 | if test -z "$ac_lib"; then |
| 9031 | ac_res="none required" |
| 9032 | else |
| 9033 | ac_res=-l$ac_lib |
| 9034 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9035 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9036 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9037 | if { (ac_try="$ac_link" |
| 9038 | case "(($ac_try" in |
| 9039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9040 | *) ac_try_echo=$ac_try;; |
| 9041 | esac |
| 9042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9043 | (eval "$ac_link") 2>conftest.er1 |
| 9044 | ac_status=$? |
| 9045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9046 | rm -f conftest.er1 |
| 9047 | cat conftest.err >&5 |
| 9048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9049 | (exit $ac_status); } && |
| 9050 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9051 | { (case "(($ac_try" in |
| 9052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9053 | *) ac_try_echo=$ac_try;; |
| 9054 | esac |
| 9055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9056 | (eval "$ac_try") 2>&5 |
| 9057 | ac_status=$? |
| 9058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9059 | (exit $ac_status); }; } && |
| 9060 | { ac_try='test -s conftest$ac_exeext' |
| 9061 | { (case "(($ac_try" in |
| 9062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9063 | *) ac_try_echo=$ac_try;; |
| 9064 | esac |
| 9065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9066 | (eval "$ac_try") 2>&5 |
| 9067 | ac_status=$? |
| 9068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9069 | (exit $ac_status); }; }; then |
Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 9070 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9071 | else |
| 9072 | echo "$as_me: failed program was:" >&5 |
| 9073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9074 | |
| 9075 | |
Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 9076 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9077 | |
Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9078 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9079 | conftest$ac_exeext |
| 9080 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 9081 | break |
Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 9082 | fi |
Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 9083 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9084 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 9085 | : |
Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 9086 | else |
| 9087 | ac_cv_search_ffi_call=no |
| 9088 | fi |
| 9089 | rm conftest.$ac_ext |
| 9090 | LIBS=$ac_func_search_save_LIBS |
| 9091 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9092 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 9093 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 9094 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9095 | if test "$ac_res" != no; then |
Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 9096 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9097 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9098 | cat >>confdefs.h <<\_ACEOF |
| 9099 | #define HAVE_FFI_CALL 1 |
| 9100 | _ACEOF |
Nick Lewycky | 11dc7c1 | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 9101 | |
Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 9102 | else |
Jeffrey Yasskin | 914050b | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 9103 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 9104 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 9105 | { (exit 1); exit 1; }; } |
Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 9106 | fi |
| 9107 | |
Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 9108 | fi |
Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 9109 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9110 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 9111 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 9112 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 9113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9114 | else |
| 9115 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9116 | cat >conftest.$ac_ext <<_ACEOF |
| 9117 | /* confdefs.h. */ |
| 9118 | _ACEOF |
| 9119 | cat confdefs.h >>conftest.$ac_ext |
| 9120 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9121 | /* end confdefs.h. */ |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9122 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9123 | /* Override any GCC internal prototype to avoid an error. |
| 9124 | Use char because int might match the return type of a GCC |
| 9125 | builtin and then its argument prototype would still apply. */ |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9126 | #ifdef __cplusplus |
| 9127 | extern "C" |
| 9128 | #endif |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9129 | char mallinfo (); |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9130 | int |
| 9131 | main () |
| 9132 | { |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9133 | return mallinfo (); |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9134 | ; |
| 9135 | return 0; |
| 9136 | } |
| 9137 | _ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9138 | for ac_lib in '' malloc; do |
| 9139 | if test -z "$ac_lib"; then |
| 9140 | ac_res="none required" |
| 9141 | else |
| 9142 | ac_res=-l$ac_lib |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9143 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9144 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9145 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9146 | if { (ac_try="$ac_link" |
| 9147 | case "(($ac_try" in |
| 9148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9149 | *) ac_try_echo=$ac_try;; |
| 9150 | esac |
| 9151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9152 | (eval "$ac_link") 2>conftest.er1 |
| 9153 | ac_status=$? |
| 9154 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9155 | rm -f conftest.er1 |
| 9156 | cat conftest.err >&5 |
| 9157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9158 | (exit $ac_status); } && |
| 9159 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9160 | { (case "(($ac_try" in |
| 9161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9162 | *) ac_try_echo=$ac_try;; |
| 9163 | esac |
| 9164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9165 | (eval "$ac_try") 2>&5 |
| 9166 | ac_status=$? |
| 9167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9168 | (exit $ac_status); }; } && |
| 9169 | { ac_try='test -s conftest$ac_exeext' |
| 9170 | { (case "(($ac_try" in |
| 9171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9172 | *) ac_try_echo=$ac_try;; |
| 9173 | esac |
| 9174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9175 | (eval "$ac_try") 2>&5 |
| 9176 | ac_status=$? |
| 9177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9178 | (exit $ac_status); }; }; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9179 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9180 | else |
| 9181 | echo "$as_me: failed program was:" >&5 |
| 9182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9183 | |
| 9184 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9185 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9186 | |
Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9187 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9188 | conftest$ac_exeext |
| 9189 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9190 | break |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9191 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9192 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9193 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 9194 | : |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9195 | else |
| 9196 | ac_cv_search_mallinfo=no |
| 9197 | fi |
| 9198 | rm conftest.$ac_ext |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9199 | LIBS=$ac_func_search_save_LIBS |
| 9200 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9201 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 9202 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9203 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9204 | if test "$ac_res" != no; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9205 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 9206 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9207 | cat >>confdefs.h <<\_ACEOF |
| 9208 | #define HAVE_MALLINFO 1 |
| 9209 | _ACEOF |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9210 | |
| 9211 | fi |
| 9212 | |
| 9213 | |
NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 9214 | 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] | 9215 | |
| 9216 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 9217 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 9218 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 9219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 9220 | else |
Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 9221 | ac_check_lib_save_LIBS=$LIBS |
| 9222 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9223 | cat >conftest.$ac_ext <<_ACEOF |
| 9224 | /* confdefs.h. */ |
| 9225 | _ACEOF |
| 9226 | cat confdefs.h >>conftest.$ac_ext |
| 9227 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 9228 | /* end confdefs.h. */ |
| 9229 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9230 | /* Override any GCC internal prototype to avoid an error. |
| 9231 | Use char because int might match the return type of a GCC |
| 9232 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 9233 | #ifdef __cplusplus |
| 9234 | extern "C" |
| 9235 | #endif |
Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 9236 | char pthread_mutex_init (); |
| 9237 | int |
| 9238 | main () |
| 9239 | { |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9240 | return pthread_mutex_init (); |
Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 9241 | ; |
| 9242 | return 0; |
| 9243 | } |
| 9244 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9245 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9246 | if { (ac_try="$ac_link" |
| 9247 | case "(($ac_try" in |
| 9248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9249 | *) ac_try_echo=$ac_try;; |
| 9250 | esac |
| 9251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9252 | (eval "$ac_link") 2>conftest.er1 |
| 9253 | ac_status=$? |
| 9254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9255 | rm -f conftest.er1 |
| 9256 | cat conftest.err >&5 |
| 9257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9258 | (exit $ac_status); } && |
| 9259 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9260 | { (case "(($ac_try" in |
| 9261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9262 | *) ac_try_echo=$ac_try;; |
| 9263 | esac |
| 9264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9265 | (eval "$ac_try") 2>&5 |
| 9266 | ac_status=$? |
| 9267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9268 | (exit $ac_status); }; } && |
| 9269 | { ac_try='test -s conftest$ac_exeext' |
| 9270 | { (case "(($ac_try" in |
| 9271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9272 | *) ac_try_echo=$ac_try;; |
| 9273 | esac |
| 9274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9275 | (eval "$ac_try") 2>&5 |
| 9276 | ac_status=$? |
| 9277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9278 | (exit $ac_status); }; }; then |
Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 9279 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 9280 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9281 | echo "$as_me: failed program was:" >&5 |
| 9282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9283 | |
| 9284 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 9285 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9286 | |
Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9287 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9288 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 9289 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 9290 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9291 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 9292 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 9293 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 9294 | cat >>confdefs.h <<_ACEOF |
| 9295 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | a5314b8 | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 9296 | _ACEOF |
Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 9297 | |
Edward O'Callaghan | edea326 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 9298 | LIBS="-lpthread $LIBS" |
| 9299 | |
Reid Spencer | 1aa7d05 | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 9300 | fi |
| 9301 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9302 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 9303 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 9304 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 9305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 9306 | else |
| 9307 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9308 | cat >conftest.$ac_ext <<_ACEOF |
| 9309 | /* confdefs.h. */ |
| 9310 | _ACEOF |
| 9311 | cat confdefs.h >>conftest.$ac_ext |
| 9312 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 9313 | /* end confdefs.h. */ |
| 9314 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9315 | /* Override any GCC internal prototype to avoid an error. |
| 9316 | Use char because int might match the return type of a GCC |
| 9317 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 9318 | #ifdef __cplusplus |
| 9319 | extern "C" |
| 9320 | #endif |
Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 9321 | char pthread_mutex_lock (); |
| 9322 | int |
| 9323 | main () |
| 9324 | { |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9325 | return pthread_mutex_lock (); |
Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 9326 | ; |
| 9327 | return 0; |
| 9328 | } |
| 9329 | _ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9330 | for ac_lib in '' pthread; do |
| 9331 | if test -z "$ac_lib"; then |
| 9332 | ac_res="none required" |
| 9333 | else |
| 9334 | ac_res=-l$ac_lib |
Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 9335 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9336 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9337 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9338 | if { (ac_try="$ac_link" |
| 9339 | case "(($ac_try" in |
| 9340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9341 | *) ac_try_echo=$ac_try;; |
| 9342 | esac |
| 9343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9344 | (eval "$ac_link") 2>conftest.er1 |
| 9345 | ac_status=$? |
| 9346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9347 | rm -f conftest.er1 |
| 9348 | cat conftest.err >&5 |
| 9349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9350 | (exit $ac_status); } && |
| 9351 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9352 | { (case "(($ac_try" in |
| 9353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9354 | *) ac_try_echo=$ac_try;; |
| 9355 | esac |
| 9356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9357 | (eval "$ac_try") 2>&5 |
| 9358 | ac_status=$? |
| 9359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9360 | (exit $ac_status); }; } && |
| 9361 | { ac_try='test -s conftest$ac_exeext' |
| 9362 | { (case "(($ac_try" in |
| 9363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9364 | *) ac_try_echo=$ac_try;; |
| 9365 | esac |
| 9366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9367 | (eval "$ac_try") 2>&5 |
| 9368 | ac_status=$? |
| 9369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9370 | (exit $ac_status); }; }; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9371 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9372 | else |
| 9373 | echo "$as_me: failed program was:" >&5 |
| 9374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9375 | |
| 9376 | |
Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 9377 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9378 | |
Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9379 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9380 | conftest$ac_exeext |
| 9381 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9382 | break |
Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 9383 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9384 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9385 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 9386 | : |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9387 | else |
| 9388 | ac_cv_search_pthread_mutex_lock=no |
| 9389 | fi |
| 9390 | rm conftest.$ac_ext |
Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 9391 | LIBS=$ac_func_search_save_LIBS |
| 9392 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9393 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 9394 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9395 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9396 | if test "$ac_res" != no; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9397 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 9398 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9399 | cat >>confdefs.h <<\_ACEOF |
| 9400 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 9401 | _ACEOF |
John Criswell | 71c8d5e | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 9402 | |
| 9403 | fi |
Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 9404 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9405 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 9406 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 9407 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 9408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 9409 | else |
| 9410 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9411 | cat >conftest.$ac_ext <<_ACEOF |
| 9412 | /* confdefs.h. */ |
| 9413 | _ACEOF |
| 9414 | cat confdefs.h >>conftest.$ac_ext |
| 9415 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 9416 | /* end confdefs.h. */ |
| 9417 | |
| 9418 | /* Override any GCC internal prototype to avoid an error. |
| 9419 | Use char because int might match the return type of a GCC |
| 9420 | builtin and then its argument prototype would still apply. */ |
| 9421 | #ifdef __cplusplus |
| 9422 | extern "C" |
| 9423 | #endif |
| 9424 | char pthread_rwlock_init (); |
| 9425 | int |
| 9426 | main () |
| 9427 | { |
| 9428 | return pthread_rwlock_init (); |
| 9429 | ; |
| 9430 | return 0; |
| 9431 | } |
| 9432 | _ACEOF |
| 9433 | for ac_lib in '' pthread; do |
| 9434 | if test -z "$ac_lib"; then |
| 9435 | ac_res="none required" |
| 9436 | else |
| 9437 | ac_res=-l$ac_lib |
| 9438 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9439 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9440 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9441 | if { (ac_try="$ac_link" |
| 9442 | case "(($ac_try" in |
| 9443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9444 | *) ac_try_echo=$ac_try;; |
| 9445 | esac |
| 9446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9447 | (eval "$ac_link") 2>conftest.er1 |
| 9448 | ac_status=$? |
| 9449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9450 | rm -f conftest.er1 |
| 9451 | cat conftest.err >&5 |
| 9452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9453 | (exit $ac_status); } && |
| 9454 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9455 | { (case "(($ac_try" in |
| 9456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9457 | *) ac_try_echo=$ac_try;; |
| 9458 | esac |
| 9459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9460 | (eval "$ac_try") 2>&5 |
| 9461 | ac_status=$? |
| 9462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9463 | (exit $ac_status); }; } && |
| 9464 | { ac_try='test -s conftest$ac_exeext' |
| 9465 | { (case "(($ac_try" in |
| 9466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9467 | *) ac_try_echo=$ac_try;; |
| 9468 | esac |
| 9469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9470 | (eval "$ac_try") 2>&5 |
| 9471 | ac_status=$? |
| 9472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9473 | (exit $ac_status); }; }; then |
Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 9474 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9475 | else |
| 9476 | echo "$as_me: failed program was:" >&5 |
| 9477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9478 | |
| 9479 | |
Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 9480 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9481 | |
Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 9482 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9483 | conftest$ac_exeext |
| 9484 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 9485 | break |
| 9486 | fi |
| 9487 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9488 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 9489 | : |
Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 9490 | else |
| 9491 | ac_cv_search_pthread_rwlock_init=no |
| 9492 | fi |
| 9493 | rm conftest.$ac_ext |
| 9494 | LIBS=$ac_func_search_save_LIBS |
| 9495 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9496 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 9497 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 9498 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9499 | if test "$ac_res" != no; then |
Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 9500 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9501 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9502 | cat >>confdefs.h <<\_ACEOF |
| 9503 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 9504 | _ACEOF |
Owen Anderson | a149e22 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 9505 | |
| 9506 | fi |
| 9507 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9508 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 9509 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 9510 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 9511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 9512 | else |
| 9513 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9514 | cat >conftest.$ac_ext <<_ACEOF |
| 9515 | /* confdefs.h. */ |
| 9516 | _ACEOF |
| 9517 | cat confdefs.h >>conftest.$ac_ext |
| 9518 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 9519 | /* end confdefs.h. */ |
| 9520 | |
| 9521 | /* Override any GCC internal prototype to avoid an error. |
| 9522 | Use char because int might match the return type of a GCC |
| 9523 | builtin and then its argument prototype would still apply. */ |
| 9524 | #ifdef __cplusplus |
| 9525 | extern "C" |
| 9526 | #endif |
| 9527 | char pthread_getspecific (); |
| 9528 | int |
| 9529 | main () |
| 9530 | { |
| 9531 | return pthread_getspecific (); |
| 9532 | ; |
| 9533 | return 0; |
| 9534 | } |
| 9535 | _ACEOF |
| 9536 | for ac_lib in '' pthread; do |
| 9537 | if test -z "$ac_lib"; then |
| 9538 | ac_res="none required" |
| 9539 | else |
| 9540 | ac_res=-l$ac_lib |
| 9541 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9542 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9543 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9544 | if { (ac_try="$ac_link" |
| 9545 | case "(($ac_try" in |
| 9546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9547 | *) ac_try_echo=$ac_try;; |
| 9548 | esac |
| 9549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9550 | (eval "$ac_link") 2>conftest.er1 |
| 9551 | ac_status=$? |
| 9552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9553 | rm -f conftest.er1 |
| 9554 | cat conftest.err >&5 |
| 9555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9556 | (exit $ac_status); } && |
| 9557 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9558 | { (case "(($ac_try" in |
| 9559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9560 | *) ac_try_echo=$ac_try;; |
| 9561 | esac |
| 9562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9563 | (eval "$ac_try") 2>&5 |
| 9564 | ac_status=$? |
| 9565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9566 | (exit $ac_status); }; } && |
| 9567 | { ac_try='test -s conftest$ac_exeext' |
| 9568 | { (case "(($ac_try" in |
| 9569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9570 | *) ac_try_echo=$ac_try;; |
| 9571 | esac |
| 9572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9573 | (eval "$ac_try") 2>&5 |
| 9574 | ac_status=$? |
| 9575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9576 | (exit $ac_status); }; }; then |
Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 9577 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9578 | else |
| 9579 | echo "$as_me: failed program was:" >&5 |
| 9580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9581 | |
| 9582 | |
Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 9583 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9584 | |
Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 9585 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9586 | conftest$ac_exeext |
| 9587 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 9588 | break |
| 9589 | fi |
| 9590 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9591 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 9592 | : |
Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 9593 | else |
| 9594 | ac_cv_search_pthread_getspecific=no |
| 9595 | fi |
| 9596 | rm conftest.$ac_ext |
| 9597 | LIBS=$ac_func_search_save_LIBS |
| 9598 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9599 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 9600 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 9601 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9602 | if test "$ac_res" != no; then |
Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 9603 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9604 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9605 | cat >>confdefs.h <<\_ACEOF |
| 9606 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 9607 | _ACEOF |
Owen Anderson | 1154983 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 9608 | |
| 9609 | fi |
| 9610 | |
Reid Spencer | f85fabeb | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 9611 | fi |
Brian Gaeke | d3de6c0 | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 9612 | |
Alexey Samsonov | 2fb337e | 2013-04-23 08:28:39 +0000 | [diff] [blame] | 9613 | if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then |
| 9614 | |
| 9615 | { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5 |
| 9616 | echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; } |
| 9617 | if test "${ac_cv_lib_z_compress2+set}" = set; then |
| 9618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9619 | else |
| 9620 | ac_check_lib_save_LIBS=$LIBS |
| 9621 | LIBS="-lz $LIBS" |
| 9622 | cat >conftest.$ac_ext <<_ACEOF |
| 9623 | /* confdefs.h. */ |
| 9624 | _ACEOF |
| 9625 | cat confdefs.h >>conftest.$ac_ext |
| 9626 | cat >>conftest.$ac_ext <<_ACEOF |
| 9627 | /* end confdefs.h. */ |
| 9628 | |
| 9629 | /* Override any GCC internal prototype to avoid an error. |
| 9630 | Use char because int might match the return type of a GCC |
| 9631 | builtin and then its argument prototype would still apply. */ |
| 9632 | #ifdef __cplusplus |
| 9633 | extern "C" |
| 9634 | #endif |
| 9635 | char compress2 (); |
| 9636 | int |
| 9637 | main () |
| 9638 | { |
| 9639 | return compress2 (); |
| 9640 | ; |
| 9641 | return 0; |
| 9642 | } |
| 9643 | _ACEOF |
| 9644 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9645 | if { (ac_try="$ac_link" |
| 9646 | case "(($ac_try" in |
| 9647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9648 | *) ac_try_echo=$ac_try;; |
| 9649 | esac |
| 9650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9651 | (eval "$ac_link") 2>conftest.er1 |
| 9652 | ac_status=$? |
| 9653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9654 | rm -f conftest.er1 |
| 9655 | cat conftest.err >&5 |
| 9656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9657 | (exit $ac_status); } && |
| 9658 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9659 | { (case "(($ac_try" in |
| 9660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9661 | *) ac_try_echo=$ac_try;; |
| 9662 | esac |
| 9663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9664 | (eval "$ac_try") 2>&5 |
| 9665 | ac_status=$? |
| 9666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9667 | (exit $ac_status); }; } && |
| 9668 | { ac_try='test -s conftest$ac_exeext' |
| 9669 | { (case "(($ac_try" in |
| 9670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9671 | *) ac_try_echo=$ac_try;; |
| 9672 | esac |
| 9673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9674 | (eval "$ac_try") 2>&5 |
| 9675 | ac_status=$? |
| 9676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9677 | (exit $ac_status); }; }; then |
| 9678 | ac_cv_lib_z_compress2=yes |
| 9679 | else |
| 9680 | echo "$as_me: failed program was:" >&5 |
| 9681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9682 | |
| 9683 | ac_cv_lib_z_compress2=no |
| 9684 | fi |
| 9685 | |
| 9686 | rm -f core conftest.err conftest.$ac_objext \ |
| 9687 | conftest$ac_exeext conftest.$ac_ext |
| 9688 | LIBS=$ac_check_lib_save_LIBS |
| 9689 | fi |
| 9690 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5 |
| 9691 | echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; } |
| 9692 | if test $ac_cv_lib_z_compress2 = yes; then |
| 9693 | cat >>confdefs.h <<_ACEOF |
| 9694 | #define HAVE_LIBZ 1 |
| 9695 | _ACEOF |
| 9696 | |
| 9697 | LIBS="-lz $LIBS" |
| 9698 | |
| 9699 | fi |
| 9700 | |
| 9701 | fi |
| 9702 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 9703 | |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 9704 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9705 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 9706 | withval=$with_oprofile; |
| 9707 | USE_OPROFILE=1 |
| 9708 | |
| 9709 | case "$withval" in |
| 9710 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 9711 | no) llvm_cv_oppath= |
| 9712 | USE_OPROFILE=0 |
| 9713 | ;; |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 9714 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
Eric Christopher | 46342fe | 2012-08-03 17:45:31 +0000 | [diff] [blame] | 9715 | CPPFLAGS="-I${withval}/include";; |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 9716 | esac |
Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 9717 | case $llvm_cv_os_type in |
| 9718 | Linux) |
| 9719 | if test -n "$llvm_cv_oppath" ; then |
| 9720 | LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
| 9721 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9722 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 9723 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 9724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 9725 | else |
| 9726 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9727 | cat >conftest.$ac_ext <<_ACEOF |
| 9728 | /* confdefs.h. */ |
| 9729 | _ACEOF |
| 9730 | cat confdefs.h >>conftest.$ac_ext |
| 9731 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 9732 | /* end confdefs.h. */ |
| 9733 | |
| 9734 | /* Override any GCC internal prototype to avoid an error. |
| 9735 | Use char because int might match the return type of a GCC |
| 9736 | builtin and then its argument prototype would still apply. */ |
| 9737 | #ifdef __cplusplus |
| 9738 | extern "C" |
| 9739 | #endif |
| 9740 | char bfd_init (); |
| 9741 | int |
| 9742 | main () |
| 9743 | { |
| 9744 | return bfd_init (); |
| 9745 | ; |
| 9746 | return 0; |
| 9747 | } |
| 9748 | _ACEOF |
| 9749 | for ac_lib in '' bfd; do |
| 9750 | if test -z "$ac_lib"; then |
| 9751 | ac_res="none required" |
| 9752 | else |
| 9753 | ac_res=-l$ac_lib |
| 9754 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9755 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9756 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9757 | if { (ac_try="$ac_link" |
| 9758 | case "(($ac_try" in |
| 9759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9760 | *) ac_try_echo=$ac_try;; |
| 9761 | esac |
| 9762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9763 | (eval "$ac_link") 2>conftest.er1 |
| 9764 | ac_status=$? |
| 9765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9766 | rm -f conftest.er1 |
| 9767 | cat conftest.err >&5 |
| 9768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9769 | (exit $ac_status); } && |
| 9770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9771 | { (case "(($ac_try" in |
| 9772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9773 | *) ac_try_echo=$ac_try;; |
| 9774 | esac |
| 9775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9776 | (eval "$ac_try") 2>&5 |
| 9777 | ac_status=$? |
| 9778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9779 | (exit $ac_status); }; } && |
| 9780 | { ac_try='test -s conftest$ac_exeext' |
| 9781 | { (case "(($ac_try" in |
| 9782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9783 | *) ac_try_echo=$ac_try;; |
| 9784 | esac |
| 9785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9786 | (eval "$ac_try") 2>&5 |
| 9787 | ac_status=$? |
| 9788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9789 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 9790 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9791 | else |
| 9792 | echo "$as_me: failed program was:" >&5 |
| 9793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9794 | |
| 9795 | |
Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 9796 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9797 | |
Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 9798 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9799 | conftest$ac_exeext |
| 9800 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 9801 | break |
| 9802 | fi |
| 9803 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9804 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 9805 | : |
Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 9806 | else |
| 9807 | ac_cv_search_bfd_init=no |
| 9808 | fi |
| 9809 | rm conftest.$ac_ext |
| 9810 | LIBS=$ac_func_search_save_LIBS |
| 9811 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9812 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 9813 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 9814 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9815 | if test "$ac_res" != no; then |
Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 9816 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9817 | |
| 9818 | fi |
| 9819 | |
Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 9820 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9821 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 9822 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 9823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 9824 | else |
| 9825 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9826 | cat >conftest.$ac_ext <<_ACEOF |
| 9827 | /* confdefs.h. */ |
| 9828 | _ACEOF |
| 9829 | cat confdefs.h >>conftest.$ac_ext |
| 9830 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 9831 | /* end confdefs.h. */ |
| 9832 | |
| 9833 | /* Override any GCC internal prototype to avoid an error. |
| 9834 | Use char because int might match the return type of a GCC |
| 9835 | builtin and then its argument prototype would still apply. */ |
| 9836 | #ifdef __cplusplus |
| 9837 | extern "C" |
| 9838 | #endif |
| 9839 | char op_open_agent (); |
| 9840 | int |
| 9841 | main () |
| 9842 | { |
| 9843 | return op_open_agent (); |
| 9844 | ; |
| 9845 | return 0; |
| 9846 | } |
| 9847 | _ACEOF |
| 9848 | for ac_lib in '' opagent; do |
| 9849 | if test -z "$ac_lib"; then |
| 9850 | ac_res="none required" |
| 9851 | else |
| 9852 | ac_res=-l$ac_lib |
| 9853 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9854 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9855 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9856 | if { (ac_try="$ac_link" |
| 9857 | case "(($ac_try" in |
| 9858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9859 | *) ac_try_echo=$ac_try;; |
| 9860 | esac |
| 9861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9862 | (eval "$ac_link") 2>conftest.er1 |
| 9863 | ac_status=$? |
| 9864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9865 | rm -f conftest.er1 |
| 9866 | cat conftest.err >&5 |
| 9867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9868 | (exit $ac_status); } && |
| 9869 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9870 | { (case "(($ac_try" in |
| 9871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9872 | *) ac_try_echo=$ac_try;; |
| 9873 | esac |
| 9874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9875 | (eval "$ac_try") 2>&5 |
| 9876 | ac_status=$? |
| 9877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9878 | (exit $ac_status); }; } && |
| 9879 | { ac_try='test -s conftest$ac_exeext' |
| 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_try") 2>&5 |
| 9886 | ac_status=$? |
| 9887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9888 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 9889 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9890 | else |
| 9891 | echo "$as_me: failed program was:" >&5 |
| 9892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9893 | |
| 9894 | |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 9895 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9896 | |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 9897 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9898 | conftest$ac_exeext |
| 9899 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 9900 | break |
| 9901 | fi |
| 9902 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9903 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 9904 | : |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 9905 | else |
| 9906 | ac_cv_search_op_open_agent=no |
| 9907 | fi |
| 9908 | rm conftest.$ac_ext |
| 9909 | LIBS=$ac_func_search_save_LIBS |
| 9910 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9911 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 9912 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 9913 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9914 | if test "$ac_res" != no; then |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 9915 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9916 | |
| 9917 | else |
| 9918 | |
Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 9919 | echo "Error! You need to have libopagent around." |
Sylvestre Ledru | 1b3961c | 2015-02-01 14:55:43 +0000 | [diff] [blame] | 9920 | exit 1 |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 9921 | |
| 9922 | fi |
| 9923 | |
Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 9924 | if test "${ac_cv_header_opagent_h+set}" = set; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9925 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 9926 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 9927 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 9928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9929 | fi |
| 9930 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 9931 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 9932 | else |
| 9933 | # Is the header compilable? |
| 9934 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 9935 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 9936 | cat >conftest.$ac_ext <<_ACEOF |
| 9937 | /* confdefs.h. */ |
| 9938 | _ACEOF |
| 9939 | cat confdefs.h >>conftest.$ac_ext |
| 9940 | cat >>conftest.$ac_ext <<_ACEOF |
| 9941 | /* end confdefs.h. */ |
| 9942 | $ac_includes_default |
| 9943 | #include <opagent.h> |
| 9944 | _ACEOF |
| 9945 | rm -f conftest.$ac_objext |
| 9946 | if { (ac_try="$ac_compile" |
| 9947 | case "(($ac_try" in |
| 9948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9949 | *) ac_try_echo=$ac_try;; |
| 9950 | esac |
| 9951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9952 | (eval "$ac_compile") 2>conftest.er1 |
| 9953 | ac_status=$? |
| 9954 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9955 | rm -f conftest.er1 |
| 9956 | cat conftest.err >&5 |
| 9957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9958 | (exit $ac_status); } && |
| 9959 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9960 | { (case "(($ac_try" in |
| 9961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9962 | *) ac_try_echo=$ac_try;; |
| 9963 | esac |
| 9964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9965 | (eval "$ac_try") 2>&5 |
| 9966 | ac_status=$? |
| 9967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9968 | (exit $ac_status); }; } && |
| 9969 | { ac_try='test -s conftest.$ac_objext' |
| 9970 | { (case "(($ac_try" in |
| 9971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9972 | *) ac_try_echo=$ac_try;; |
| 9973 | esac |
| 9974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9975 | (eval "$ac_try") 2>&5 |
| 9976 | ac_status=$? |
| 9977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9978 | (exit $ac_status); }; }; then |
| 9979 | ac_header_compiler=yes |
| 9980 | else |
| 9981 | echo "$as_me: failed program was:" >&5 |
| 9982 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 9983 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9984 | ac_header_compiler=no |
| 9985 | fi |
| 9986 | |
| 9987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9988 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9989 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9990 | |
| 9991 | # Is the header present? |
| 9992 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 9993 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 9994 | cat >conftest.$ac_ext <<_ACEOF |
| 9995 | /* confdefs.h. */ |
| 9996 | _ACEOF |
| 9997 | cat confdefs.h >>conftest.$ac_ext |
| 9998 | cat >>conftest.$ac_ext <<_ACEOF |
| 9999 | /* end confdefs.h. */ |
| 10000 | #include <opagent.h> |
| 10001 | _ACEOF |
| 10002 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10003 | case "(($ac_try" in |
| 10004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10005 | *) ac_try_echo=$ac_try;; |
| 10006 | esac |
| 10007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10008 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 10009 | ac_status=$? |
| 10010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10011 | rm -f conftest.er1 |
| 10012 | cat conftest.err >&5 |
| 10013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10014 | (exit $ac_status); } >/dev/null; then |
| 10015 | if test -s conftest.err; then |
| 10016 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10017 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10018 | else |
| 10019 | ac_cpp_err= |
| 10020 | fi |
| 10021 | else |
| 10022 | ac_cpp_err=yes |
| 10023 | fi |
| 10024 | if test -z "$ac_cpp_err"; then |
| 10025 | ac_header_preproc=yes |
| 10026 | else |
| 10027 | echo "$as_me: failed program was:" >&5 |
| 10028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10029 | |
| 10030 | ac_header_preproc=no |
| 10031 | fi |
| 10032 | |
| 10033 | rm -f conftest.err conftest.$ac_ext |
| 10034 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10035 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 10036 | |
| 10037 | # So? What about this header? |
| 10038 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10039 | yes:no: ) |
| 10040 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10041 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10042 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 10043 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 10044 | ac_header_preproc=yes |
| 10045 | ;; |
| 10046 | no:yes:* ) |
| 10047 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 10048 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 10049 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 10050 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 10051 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 10052 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 10053 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10054 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10055 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 10056 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 10057 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 10058 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 10059 | ( cat <<\_ASBOX |
Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 10060 | ## ------------------------------------ ## |
| 10061 | ## Report this to http://llvm.org/bugs/ ## |
| 10062 | ## ------------------------------------ ## |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10063 | _ASBOX |
| 10064 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 10065 | ;; |
| 10066 | esac |
| 10067 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 10068 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 10069 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 10070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10071 | else |
| 10072 | ac_cv_header_opagent_h=$ac_header_preproc |
| 10073 | fi |
| 10074 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 10075 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 10076 | |
| 10077 | fi |
| 10078 | if test $ac_cv_header_opagent_h = yes; then |
| 10079 | : |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10080 | else |
| 10081 | |
Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 10082 | echo "Error! You need to have opagent.h around." |
Sylvestre Ledru | 1b3961c | 2015-02-01 14:55:43 +0000 | [diff] [blame] | 10083 | exit 1 |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10084 | |
| 10085 | fi |
| 10086 | |
| 10087 | |
Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 10088 | fi ;; |
| 10089 | *) |
| 10090 | { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5 |
| 10091 | echo "$as_me: error: OProfile support is available on Linux only." >&2;} |
| 10092 | { (exit 1); exit 1; }; } ;; |
| 10093 | esac |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10094 | |
| 10095 | else |
| 10096 | |
Jeffrey Yasskin | 2da7231 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 10097 | USE_OPROFILE=0 |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10098 | |
| 10099 | |
| 10100 | fi |
| 10101 | |
| 10102 | |
| 10103 | cat >>confdefs.h <<_ACEOF |
Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 10104 | #define LLVM_USE_OPROFILE $USE_OPROFILE |
| 10105 | _ACEOF |
| 10106 | |
| 10107 | |
| 10108 | |
| 10109 | # Check whether --with-intel-jitevents was given. |
| 10110 | if test "${with_intel_jitevents+set}" = set; then |
| 10111 | withval=$with_intel_jitevents; |
Andrew Kaylor | 5808c7d | 2012-09-28 17:35:20 +0000 | [diff] [blame] | 10112 | case "$withval" in |
| 10113 | yes) USE_INTEL_JITEVENTS=1 |
| 10114 | ;; |
| 10115 | no) USE_INTEL_JITEVENTS=0 |
| 10116 | ;; |
| 10117 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5 |
| 10118 | echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;} |
| 10119 | { (exit 1); exit 1; }; };; |
| 10120 | esac |
| 10121 | |
Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 10122 | case $llvm_cv_os_type in |
| 10123 | Linux|Win32|Cygwin|MingW) ;; |
Andrew Kaylor | 5808c7d | 2012-09-28 17:35:20 +0000 | [diff] [blame] | 10124 | *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5 |
| 10125 | echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;} |
| 10126 | { (exit 1); exit 1; }; };; |
Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 10127 | esac |
| 10128 | |
Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 10129 | case "$llvm_cv_target_arch" in |
Andrew Kaylor | 5808c7d | 2012-09-28 17:35:20 +0000 | [diff] [blame] | 10130 | x86|x86_64) ;; |
| 10131 | *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5 |
| 10132 | echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;} |
| 10133 | { (exit 1); exit 1; }; };; |
Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 10134 | esac |
Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 10135 | |
| 10136 | else |
| 10137 | |
| 10138 | USE_INTEL_JITEVENTS=0 |
| 10139 | |
| 10140 | |
| 10141 | fi |
| 10142 | |
| 10143 | |
| 10144 | cat >>confdefs.h <<_ACEOF |
| 10145 | #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10146 | _ACEOF |
| 10147 | |
| 10148 | |
Eric Christopher | c807c53 | 2012-08-03 19:47:19 +0000 | [diff] [blame] | 10149 | for ac_prog in xml2-config |
| 10150 | do |
| 10151 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10152 | set dummy $ac_prog; ac_word=$2 |
| 10153 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10154 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 10155 | if test "${ac_cv_prog_XML2CONFIG+set}" = set; then |
| 10156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10157 | else |
| 10158 | if test -n "$XML2CONFIG"; then |
| 10159 | ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test. |
| 10160 | else |
| 10161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10162 | for as_dir in $PATH |
| 10163 | do |
| 10164 | IFS=$as_save_IFS |
| 10165 | test -z "$as_dir" && as_dir=. |
| 10166 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10167 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10168 | ac_cv_prog_XML2CONFIG="$ac_prog" |
| 10169 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10170 | break 2 |
| 10171 | fi |
| 10172 | done |
| 10173 | done |
| 10174 | IFS=$as_save_IFS |
| 10175 | |
| 10176 | fi |
| 10177 | fi |
| 10178 | XML2CONFIG=$ac_cv_prog_XML2CONFIG |
| 10179 | if test -n "$XML2CONFIG"; then |
| 10180 | { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5 |
| 10181 | echo "${ECHO_T}$XML2CONFIG" >&6; } |
| 10182 | else |
| 10183 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10184 | echo "${ECHO_T}no" >&6; } |
| 10185 | fi |
| 10186 | |
| 10187 | |
| 10188 | test -n "$XML2CONFIG" && break |
| 10189 | done |
| 10190 | |
| 10191 | |
| 10192 | { echo "$as_me:$LINENO: checking for libxml2 includes" >&5 |
| 10193 | echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; } |
| 10194 | if test "x$XML2CONFIG" = "x"; then |
| 10195 | { echo "$as_me:$LINENO: result: xml2-config not found" >&5 |
| 10196 | echo "${ECHO_T}xml2-config not found" >&6; } |
| 10197 | else |
| 10198 | LIBXML2_INC=`$XML2CONFIG --cflags` |
| 10199 | { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5 |
| 10200 | echo "${ECHO_T}$LIBXML2_INC" >&6; } |
| 10201 | { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5 |
| 10202 | echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; } |
| 10203 | if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then |
| 10204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10205 | else |
| 10206 | ac_check_lib_save_LIBS=$LIBS |
| 10207 | LIBS="-lxml2 $LIBS" |
| 10208 | cat >conftest.$ac_ext <<_ACEOF |
| 10209 | /* confdefs.h. */ |
| 10210 | _ACEOF |
| 10211 | cat confdefs.h >>conftest.$ac_ext |
| 10212 | cat >>conftest.$ac_ext <<_ACEOF |
| 10213 | /* end confdefs.h. */ |
| 10214 | |
| 10215 | /* Override any GCC internal prototype to avoid an error. |
| 10216 | Use char because int might match the return type of a GCC |
| 10217 | builtin and then its argument prototype would still apply. */ |
| 10218 | #ifdef __cplusplus |
| 10219 | extern "C" |
| 10220 | #endif |
| 10221 | char xmlReadFile (); |
| 10222 | int |
| 10223 | main () |
| 10224 | { |
| 10225 | return xmlReadFile (); |
| 10226 | ; |
| 10227 | return 0; |
| 10228 | } |
| 10229 | _ACEOF |
| 10230 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10231 | if { (ac_try="$ac_link" |
| 10232 | case "(($ac_try" in |
| 10233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10234 | *) ac_try_echo=$ac_try;; |
| 10235 | esac |
| 10236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10237 | (eval "$ac_link") 2>conftest.er1 |
| 10238 | ac_status=$? |
| 10239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10240 | rm -f conftest.er1 |
| 10241 | cat conftest.err >&5 |
| 10242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10243 | (exit $ac_status); } && |
| 10244 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10245 | { (case "(($ac_try" in |
| 10246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10247 | *) ac_try_echo=$ac_try;; |
| 10248 | esac |
| 10249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10250 | (eval "$ac_try") 2>&5 |
| 10251 | ac_status=$? |
| 10252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10253 | (exit $ac_status); }; } && |
| 10254 | { ac_try='test -s conftest$ac_exeext' |
| 10255 | { (case "(($ac_try" in |
| 10256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10257 | *) ac_try_echo=$ac_try;; |
| 10258 | esac |
| 10259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10260 | (eval "$ac_try") 2>&5 |
| 10261 | ac_status=$? |
| 10262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10263 | (exit $ac_status); }; }; then |
| 10264 | ac_cv_lib_xml2_xmlReadFile=yes |
| 10265 | else |
| 10266 | echo "$as_me: failed program was:" >&5 |
| 10267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10268 | |
| 10269 | ac_cv_lib_xml2_xmlReadFile=no |
| 10270 | fi |
| 10271 | |
| 10272 | rm -f core conftest.err conftest.$ac_objext \ |
| 10273 | conftest$ac_exeext conftest.$ac_ext |
| 10274 | LIBS=$ac_check_lib_save_LIBS |
| 10275 | fi |
| 10276 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5 |
| 10277 | echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; } |
| 10278 | if test $ac_cv_lib_xml2_xmlReadFile = yes; then |
| 10279 | |
| 10280 | cat >>confdefs.h <<\_ACEOF |
| 10281 | #define CLANG_HAVE_LIBXML 1 |
| 10282 | _ACEOF |
| 10283 | |
| 10284 | LIBXML2_LIBS="-lxml2" |
| 10285 | fi |
| 10286 | |
| 10287 | fi |
| 10288 | |
| 10289 | |
| 10290 | |
Jeffrey Yasskin | efbc3a5 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 10291 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10292 | |
| 10293 | |
| 10294 | |
| 10295 | |
| 10296 | |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10297 | ac_header_dirent=no |
| 10298 | 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] | 10299 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 10300 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 10301 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 10302 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10304 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10305 | cat >conftest.$ac_ext <<_ACEOF |
| 10306 | /* confdefs.h. */ |
| 10307 | _ACEOF |
| 10308 | cat confdefs.h >>conftest.$ac_ext |
| 10309 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10310 | /* end confdefs.h. */ |
| 10311 | #include <sys/types.h> |
| 10312 | #include <$ac_hdr> |
| 10313 | |
| 10314 | int |
| 10315 | main () |
| 10316 | { |
| 10317 | if ((DIR *) 0) |
| 10318 | return 0; |
| 10319 | ; |
| 10320 | return 0; |
| 10321 | } |
| 10322 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10323 | rm -f conftest.$ac_objext |
| 10324 | if { (ac_try="$ac_compile" |
| 10325 | case "(($ac_try" in |
| 10326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10327 | *) ac_try_echo=$ac_try;; |
| 10328 | esac |
| 10329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10330 | (eval "$ac_compile") 2>conftest.er1 |
| 10331 | ac_status=$? |
| 10332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10333 | rm -f conftest.er1 |
| 10334 | cat conftest.err >&5 |
| 10335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10336 | (exit $ac_status); } && |
| 10337 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10338 | { (case "(($ac_try" in |
| 10339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10340 | *) ac_try_echo=$ac_try;; |
| 10341 | esac |
| 10342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10343 | (eval "$ac_try") 2>&5 |
| 10344 | ac_status=$? |
| 10345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10346 | (exit $ac_status); }; } && |
| 10347 | { ac_try='test -s conftest.$ac_objext' |
| 10348 | { (case "(($ac_try" in |
| 10349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10350 | *) ac_try_echo=$ac_try;; |
| 10351 | esac |
| 10352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10353 | (eval "$ac_try") 2>&5 |
| 10354 | ac_status=$? |
| 10355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10356 | (exit $ac_status); }; }; then |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10357 | eval "$as_ac_Header=yes" |
| 10358 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10359 | echo "$as_me: failed program was:" >&5 |
| 10360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10361 | |
| 10362 | eval "$as_ac_Header=no" |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10363 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10364 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10366 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10367 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10368 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10369 | echo "${ECHO_T}$ac_res" >&6; } |
| 10370 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10371 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10372 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10373 | _ACEOF |
| 10374 | |
| 10375 | ac_header_dirent=$ac_hdr; break |
| 10376 | fi |
| 10377 | |
| 10378 | done |
| 10379 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 10380 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10381 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 10382 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 10383 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10385 | else |
| 10386 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10387 | cat >conftest.$ac_ext <<_ACEOF |
| 10388 | /* confdefs.h. */ |
| 10389 | _ACEOF |
| 10390 | cat confdefs.h >>conftest.$ac_ext |
| 10391 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10392 | /* end confdefs.h. */ |
| 10393 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10394 | /* Override any GCC internal prototype to avoid an error. |
| 10395 | Use char because int might match the return type of a GCC |
| 10396 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10397 | #ifdef __cplusplus |
| 10398 | extern "C" |
| 10399 | #endif |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10400 | char opendir (); |
| 10401 | int |
| 10402 | main () |
| 10403 | { |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10404 | return opendir (); |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10405 | ; |
| 10406 | return 0; |
| 10407 | } |
| 10408 | _ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10409 | for ac_lib in '' dir; do |
| 10410 | if test -z "$ac_lib"; then |
| 10411 | ac_res="none required" |
| 10412 | else |
| 10413 | ac_res=-l$ac_lib |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10414 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10415 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10416 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10417 | if { (ac_try="$ac_link" |
| 10418 | case "(($ac_try" in |
| 10419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10420 | *) ac_try_echo=$ac_try;; |
| 10421 | esac |
| 10422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10423 | (eval "$ac_link") 2>conftest.er1 |
| 10424 | ac_status=$? |
| 10425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10426 | rm -f conftest.er1 |
| 10427 | cat conftest.err >&5 |
| 10428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10429 | (exit $ac_status); } && |
| 10430 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10431 | { (case "(($ac_try" in |
| 10432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10433 | *) ac_try_echo=$ac_try;; |
| 10434 | esac |
| 10435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10436 | (eval "$ac_try") 2>&5 |
| 10437 | ac_status=$? |
| 10438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10439 | (exit $ac_status); }; } && |
| 10440 | { ac_try='test -s conftest$ac_exeext' |
| 10441 | { (case "(($ac_try" in |
| 10442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10443 | *) ac_try_echo=$ac_try;; |
| 10444 | esac |
| 10445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10446 | (eval "$ac_try") 2>&5 |
| 10447 | ac_status=$? |
| 10448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10449 | (exit $ac_status); }; }; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10450 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10451 | else |
| 10452 | echo "$as_me: failed program was:" >&5 |
| 10453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10454 | |
| 10455 | |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10456 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10457 | |
Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10458 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10459 | conftest$ac_exeext |
| 10460 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10461 | break |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10462 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10463 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10464 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10465 | : |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10466 | else |
| 10467 | ac_cv_search_opendir=no |
| 10468 | fi |
| 10469 | rm conftest.$ac_ext |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10470 | LIBS=$ac_func_search_save_LIBS |
| 10471 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10472 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 10473 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10474 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10475 | if test "$ac_res" != no; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10476 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10477 | |
| 10478 | fi |
| 10479 | |
| 10480 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10481 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 10482 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 10483 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10485 | else |
| 10486 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10487 | cat >conftest.$ac_ext <<_ACEOF |
| 10488 | /* confdefs.h. */ |
| 10489 | _ACEOF |
| 10490 | cat confdefs.h >>conftest.$ac_ext |
| 10491 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10492 | /* end confdefs.h. */ |
| 10493 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10494 | /* Override any GCC internal prototype to avoid an error. |
| 10495 | Use char because int might match the return type of a GCC |
| 10496 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10497 | #ifdef __cplusplus |
| 10498 | extern "C" |
| 10499 | #endif |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10500 | char opendir (); |
| 10501 | int |
| 10502 | main () |
| 10503 | { |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10504 | return opendir (); |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10505 | ; |
| 10506 | return 0; |
| 10507 | } |
| 10508 | _ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10509 | for ac_lib in '' x; do |
| 10510 | if test -z "$ac_lib"; then |
| 10511 | ac_res="none required" |
| 10512 | else |
| 10513 | ac_res=-l$ac_lib |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10514 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10515 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10516 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10517 | if { (ac_try="$ac_link" |
| 10518 | case "(($ac_try" in |
| 10519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10520 | *) ac_try_echo=$ac_try;; |
| 10521 | esac |
| 10522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10523 | (eval "$ac_link") 2>conftest.er1 |
| 10524 | ac_status=$? |
| 10525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10526 | rm -f conftest.er1 |
| 10527 | cat conftest.err >&5 |
| 10528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10529 | (exit $ac_status); } && |
| 10530 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10531 | { (case "(($ac_try" in |
| 10532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10533 | *) ac_try_echo=$ac_try;; |
| 10534 | esac |
| 10535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10536 | (eval "$ac_try") 2>&5 |
| 10537 | ac_status=$? |
| 10538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10539 | (exit $ac_status); }; } && |
| 10540 | { ac_try='test -s conftest$ac_exeext' |
| 10541 | { (case "(($ac_try" in |
| 10542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10543 | *) ac_try_echo=$ac_try;; |
| 10544 | esac |
| 10545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10546 | (eval "$ac_try") 2>&5 |
| 10547 | ac_status=$? |
| 10548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10549 | (exit $ac_status); }; }; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10550 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10551 | else |
| 10552 | echo "$as_me: failed program was:" >&5 |
| 10553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10554 | |
| 10555 | |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10556 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10557 | |
Bill Wendling | 02b47d9 | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10558 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10559 | conftest$ac_exeext |
| 10560 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10561 | break |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10562 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10563 | done |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10564 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10565 | : |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10566 | else |
| 10567 | ac_cv_search_opendir=no |
| 10568 | fi |
| 10569 | rm conftest.$ac_ext |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10570 | LIBS=$ac_func_search_save_LIBS |
| 10571 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10572 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 10573 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10574 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10575 | if test "$ac_res" != no; then |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10576 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10577 | |
| 10578 | fi |
| 10579 | |
| 10580 | fi |
| 10581 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10582 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 10583 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 10584 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 10585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10586 | else |
| 10587 | ac_ext=c |
| 10588 | ac_cpp='$CPP $CPPFLAGS' |
| 10589 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10590 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10591 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10592 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10593 | cat >conftest.$ac_ext <<_ACEOF |
| 10594 | /* confdefs.h. */ |
| 10595 | _ACEOF |
| 10596 | cat confdefs.h >>conftest.$ac_ext |
| 10597 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10598 | /* end confdefs.h. */ |
| 10599 | #include <sys/mman.h> |
| 10600 | #include <unistd.h> |
| 10601 | #include <fcntl.h> |
| 10602 | int |
| 10603 | main () |
| 10604 | { |
| 10605 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 10606 | ; |
| 10607 | return 0; |
| 10608 | } |
| 10609 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10610 | rm -f conftest.$ac_objext |
| 10611 | if { (ac_try="$ac_compile" |
| 10612 | case "(($ac_try" in |
| 10613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10614 | *) ac_try_echo=$ac_try;; |
| 10615 | esac |
| 10616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10617 | (eval "$ac_compile") 2>conftest.er1 |
| 10618 | ac_status=$? |
| 10619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10620 | rm -f conftest.er1 |
| 10621 | cat conftest.err >&5 |
| 10622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10623 | (exit $ac_status); } && |
| 10624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10625 | { (case "(($ac_try" in |
| 10626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10627 | *) ac_try_echo=$ac_try;; |
| 10628 | esac |
| 10629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10630 | (eval "$ac_try") 2>&5 |
| 10631 | ac_status=$? |
| 10632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10633 | (exit $ac_status); }; } && |
| 10634 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10644 | ac_cv_header_mmap_anon=yes |
| 10645 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10646 | echo "$as_me: failed program was:" >&5 |
| 10647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10648 | |
| 10649 | ac_cv_header_mmap_anon=no |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10650 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10651 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10653 | ac_ext=c |
| 10654 | ac_cpp='$CPP $CPPFLAGS' |
| 10655 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10656 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10657 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10658 | |
| 10659 | |
| 10660 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10661 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 10662 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10663 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 10664 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10665 | cat >>confdefs.h <<\_ACEOF |
| 10666 | #define HAVE_MMAP_ANONYMOUS 1 |
| 10667 | _ACEOF |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10668 | |
| 10669 | fi |
| 10670 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10671 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 10672 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 10673 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 10674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10675 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10676 | cat >conftest.$ac_ext <<_ACEOF |
| 10677 | /* confdefs.h. */ |
| 10678 | _ACEOF |
| 10679 | cat confdefs.h >>conftest.$ac_ext |
| 10680 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10681 | /* end confdefs.h. */ |
| 10682 | #include <sys/types.h> |
| 10683 | #include <sys/stat.h> |
| 10684 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10685 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10686 | # if S_ISBLK (S_IFDIR) |
| 10687 | You lose. |
| 10688 | # endif |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10689 | #endif |
| 10690 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10691 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10692 | # if S_ISBLK (S_IFCHR) |
| 10693 | You lose. |
| 10694 | # endif |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10695 | #endif |
| 10696 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10697 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10698 | # if S_ISLNK (S_IFREG) |
| 10699 | You lose. |
| 10700 | # endif |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10701 | #endif |
| 10702 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10703 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10704 | # if S_ISSOCK (S_IFREG) |
| 10705 | You lose. |
| 10706 | # endif |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10707 | #endif |
| 10708 | |
| 10709 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10710 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10711 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 10712 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10713 | else |
| 10714 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | 4308aa5 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 10715 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10716 | rm -f conftest* |
| 10717 | |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10718 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10719 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 10720 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10721 | if test $ac_cv_header_stat_broken = yes; then |
| 10722 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10723 | cat >>confdefs.h <<\_ACEOF |
| 10724 | #define STAT_MACROS_BROKEN 1 |
| 10725 | _ACEOF |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 10726 | |
| 10727 | fi |
| 10728 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10729 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 10730 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 10731 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 10732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10733 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10734 | cat >conftest.$ac_ext <<_ACEOF |
| 10735 | /* confdefs.h. */ |
| 10736 | _ACEOF |
| 10737 | cat confdefs.h >>conftest.$ac_ext |
| 10738 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10739 | /* end confdefs.h. */ |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10740 | #include <sys/types.h> |
| 10741 | #include <sys/wait.h> |
| 10742 | #ifndef WEXITSTATUS |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10743 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10744 | #endif |
| 10745 | #ifndef WIFEXITED |
| 10746 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 10747 | #endif |
| 10748 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10749 | int |
| 10750 | main () |
| 10751 | { |
| 10752 | int s; |
| 10753 | wait (&s); |
| 10754 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 10755 | ; |
| 10756 | return 0; |
| 10757 | } |
| 10758 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10759 | rm -f conftest.$ac_objext |
| 10760 | if { (ac_try="$ac_compile" |
| 10761 | case "(($ac_try" in |
| 10762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10763 | *) ac_try_echo=$ac_try;; |
| 10764 | esac |
| 10765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10766 | (eval "$ac_compile") 2>conftest.er1 |
| 10767 | ac_status=$? |
| 10768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10769 | rm -f conftest.er1 |
| 10770 | cat conftest.err >&5 |
| 10771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10772 | (exit $ac_status); } && |
| 10773 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10774 | { (case "(($ac_try" in |
| 10775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10776 | *) ac_try_echo=$ac_try;; |
| 10777 | esac |
| 10778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10779 | (eval "$ac_try") 2>&5 |
| 10780 | ac_status=$? |
| 10781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10782 | (exit $ac_status); }; } && |
| 10783 | { ac_try='test -s conftest.$ac_objext' |
| 10784 | { (case "(($ac_try" in |
| 10785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10786 | *) ac_try_echo=$ac_try;; |
| 10787 | esac |
| 10788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10789 | (eval "$ac_try") 2>&5 |
| 10790 | ac_status=$? |
| 10791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10792 | (exit $ac_status); }; }; then |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10793 | ac_cv_header_sys_wait_h=yes |
| 10794 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10795 | echo "$as_me: failed program was:" >&5 |
| 10796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10797 | |
| 10798 | ac_cv_header_sys_wait_h=no |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10799 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10800 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10802 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10803 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 10804 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10805 | if test $ac_cv_header_sys_wait_h = yes; then |
| 10806 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10807 | cat >>confdefs.h <<\_ACEOF |
| 10808 | #define HAVE_SYS_WAIT_H 1 |
| 10809 | _ACEOF |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10810 | |
| 10811 | fi |
| 10812 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10813 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 10814 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 10815 | if test "${ac_cv_header_time+set}" = set; then |
| 10816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 10817 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10818 | cat >conftest.$ac_ext <<_ACEOF |
| 10819 | /* confdefs.h. */ |
| 10820 | _ACEOF |
| 10821 | cat confdefs.h >>conftest.$ac_ext |
| 10822 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 10823 | /* end confdefs.h. */ |
Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 10824 | #include <sys/types.h> |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 10825 | #include <sys/time.h> |
| 10826 | #include <time.h> |
| 10827 | |
| 10828 | int |
| 10829 | main () |
| 10830 | { |
| 10831 | if ((struct tm *) 0) |
| 10832 | return 0; |
| 10833 | ; |
| 10834 | return 0; |
| 10835 | } |
Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 10836 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10837 | rm -f conftest.$ac_objext |
| 10838 | if { (ac_try="$ac_compile" |
| 10839 | case "(($ac_try" in |
| 10840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10841 | *) ac_try_echo=$ac_try;; |
| 10842 | esac |
| 10843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10844 | (eval "$ac_compile") 2>conftest.er1 |
| 10845 | ac_status=$? |
| 10846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10847 | rm -f conftest.er1 |
| 10848 | cat conftest.err >&5 |
| 10849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10850 | (exit $ac_status); } && |
| 10851 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10852 | { (case "(($ac_try" in |
| 10853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10854 | *) ac_try_echo=$ac_try;; |
| 10855 | esac |
| 10856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10857 | (eval "$ac_try") 2>&5 |
| 10858 | ac_status=$? |
| 10859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10860 | (exit $ac_status); }; } && |
| 10861 | { ac_try='test -s conftest.$ac_objext' |
| 10862 | { (case "(($ac_try" in |
| 10863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10864 | *) ac_try_echo=$ac_try;; |
| 10865 | esac |
| 10866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10867 | (eval "$ac_try") 2>&5 |
| 10868 | ac_status=$? |
| 10869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10870 | (exit $ac_status); }; }; then |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 10871 | ac_cv_header_time=yes |
Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 10872 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10873 | echo "$as_me: failed program was:" >&5 |
| 10874 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10875 | |
| 10876 | ac_cv_header_time=no |
Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 10877 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10878 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 10880 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10881 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 10882 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 10883 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 10884 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10885 | cat >>confdefs.h <<\_ACEOF |
| 10886 | #define TIME_WITH_SYS_TIME 1 |
| 10887 | _ACEOF |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 10888 | |
| 10889 | fi |
| 10890 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 10891 | |
Benjamin Kramer | 00622f7 | 2013-05-03 15:55:06 +0000 | [diff] [blame] | 10892 | ac_ext=cpp |
| 10893 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10894 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10895 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10896 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10897 | |
Rui Ueyama | 7ef5796 | 2014-10-27 08:03:21 +0000 | [diff] [blame] | 10898 | |
| 10899 | for ac_header in cxxabi.h |
| 10900 | do |
| 10901 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Rui Ueyama | 292fb6d | 2014-10-27 08:16:18 +0000 | [diff] [blame] | 10902 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Rui Ueyama | 7ef5796 | 2014-10-27 08:03:21 +0000 | [diff] [blame] | 10903 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10904 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Rui Ueyama | 7ef5796 | 2014-10-27 08:03:21 +0000 | [diff] [blame] | 10906 | else |
Rui Ueyama | 292fb6d | 2014-10-27 08:16:18 +0000 | [diff] [blame] | 10907 | cat >conftest.$ac_ext <<_ACEOF |
Rui Ueyama | 7ef5796 | 2014-10-27 08:03:21 +0000 | [diff] [blame] | 10908 | /* confdefs.h. */ |
| 10909 | _ACEOF |
| 10910 | cat confdefs.h >>conftest.$ac_ext |
| 10911 | cat >>conftest.$ac_ext <<_ACEOF |
| 10912 | /* end confdefs.h. */ |
Rui Ueyama | 292fb6d | 2014-10-27 08:16:18 +0000 | [diff] [blame] | 10913 | #include <stddef.h> |
| 10914 | |
| 10915 | |
Benjamin Kramer | 00622f7 | 2013-05-03 15:55:06 +0000 | [diff] [blame] | 10916 | #include <$ac_header> |
| 10917 | _ACEOF |
| 10918 | rm -f conftest.$ac_objext |
| 10919 | if { (ac_try="$ac_compile" |
| 10920 | case "(($ac_try" in |
| 10921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10922 | *) ac_try_echo=$ac_try;; |
| 10923 | esac |
| 10924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10925 | (eval "$ac_compile") 2>conftest.er1 |
| 10926 | ac_status=$? |
| 10927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10928 | rm -f conftest.er1 |
| 10929 | cat conftest.err >&5 |
| 10930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10931 | (exit $ac_status); } && |
| 10932 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 10933 | { (case "(($ac_try" in |
| 10934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10935 | *) ac_try_echo=$ac_try;; |
| 10936 | esac |
| 10937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10938 | (eval "$ac_try") 2>&5 |
| 10939 | ac_status=$? |
| 10940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10941 | (exit $ac_status); }; } && |
| 10942 | { ac_try='test -s conftest.$ac_objext' |
| 10943 | { (case "(($ac_try" in |
| 10944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10945 | *) ac_try_echo=$ac_try;; |
| 10946 | esac |
| 10947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10948 | (eval "$ac_try") 2>&5 |
| 10949 | ac_status=$? |
| 10950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10951 | (exit $ac_status); }; }; then |
Rui Ueyama | 292fb6d | 2014-10-27 08:16:18 +0000 | [diff] [blame] | 10952 | eval "$as_ac_Header=yes" |
Benjamin Kramer | 00622f7 | 2013-05-03 15:55:06 +0000 | [diff] [blame] | 10953 | else |
| 10954 | echo "$as_me: failed program was:" >&5 |
| 10955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10956 | |
Rui Ueyama | 292fb6d | 2014-10-27 08:16:18 +0000 | [diff] [blame] | 10957 | eval "$as_ac_Header=no" |
Benjamin Kramer | 00622f7 | 2013-05-03 15:55:06 +0000 | [diff] [blame] | 10958 | fi |
| 10959 | |
| 10960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Kramer | 00622f7 | 2013-05-03 15:55:06 +0000 | [diff] [blame] | 10961 | fi |
| 10962 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10963 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10964 | echo "${ECHO_T}$ac_res" >&6; } |
Benjamin Kramer | 00622f7 | 2013-05-03 15:55:06 +0000 | [diff] [blame] | 10965 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10966 | cat >>confdefs.h <<_ACEOF |
| 10967 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10968 | _ACEOF |
| 10969 | |
| 10970 | fi |
| 10971 | |
| 10972 | done |
| 10973 | |
| 10974 | ac_ext=c |
| 10975 | ac_cpp='$CPP $CPPFLAGS' |
| 10976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10979 | |
| 10980 | |
| 10981 | |
| 10982 | |
| 10983 | |
| 10984 | |
Rui Ueyama | 292fb6d | 2014-10-27 08:16:18 +0000 | [diff] [blame] | 10985 | |
Eric Christopher | 3053638 | 2013-07-26 17:13:47 +0000 | [diff] [blame] | 10986 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10987 | do |
| 10988 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10989 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10990 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10991 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10992 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10994 | fi |
| 10995 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10996 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10997 | echo "${ECHO_T}$ac_res" >&6; } |
| 10998 | else |
| 10999 | # Is the header compilable? |
| 11000 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11001 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11002 | cat >conftest.$ac_ext <<_ACEOF |
| 11003 | /* confdefs.h. */ |
| 11004 | _ACEOF |
| 11005 | cat confdefs.h >>conftest.$ac_ext |
| 11006 | cat >>conftest.$ac_ext <<_ACEOF |
| 11007 | /* end confdefs.h. */ |
| 11008 | $ac_includes_default |
| 11009 | #include <$ac_header> |
| 11010 | _ACEOF |
| 11011 | rm -f conftest.$ac_objext |
| 11012 | if { (ac_try="$ac_compile" |
| 11013 | case "(($ac_try" in |
| 11014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11015 | *) ac_try_echo=$ac_try;; |
| 11016 | esac |
| 11017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11018 | (eval "$ac_compile") 2>conftest.er1 |
| 11019 | ac_status=$? |
| 11020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11021 | rm -f conftest.er1 |
| 11022 | cat conftest.err >&5 |
| 11023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11024 | (exit $ac_status); } && |
| 11025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11026 | { (case "(($ac_try" in |
| 11027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11028 | *) ac_try_echo=$ac_try;; |
| 11029 | esac |
| 11030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11031 | (eval "$ac_try") 2>&5 |
| 11032 | ac_status=$? |
| 11033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11034 | (exit $ac_status); }; } && |
| 11035 | { ac_try='test -s conftest.$ac_objext' |
| 11036 | { (case "(($ac_try" in |
| 11037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11038 | *) ac_try_echo=$ac_try;; |
| 11039 | esac |
| 11040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11041 | (eval "$ac_try") 2>&5 |
| 11042 | ac_status=$? |
| 11043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11044 | (exit $ac_status); }; }; then |
| 11045 | ac_header_compiler=yes |
| 11046 | else |
| 11047 | echo "$as_me: failed program was:" >&5 |
| 11048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11049 | |
| 11050 | ac_header_compiler=no |
| 11051 | fi |
| 11052 | |
| 11053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11054 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11055 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11056 | |
| 11057 | # Is the header present? |
| 11058 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11059 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11060 | cat >conftest.$ac_ext <<_ACEOF |
| 11061 | /* confdefs.h. */ |
| 11062 | _ACEOF |
| 11063 | cat confdefs.h >>conftest.$ac_ext |
| 11064 | cat >>conftest.$ac_ext <<_ACEOF |
| 11065 | /* end confdefs.h. */ |
| 11066 | #include <$ac_header> |
| 11067 | _ACEOF |
| 11068 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11069 | case "(($ac_try" in |
| 11070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11071 | *) ac_try_echo=$ac_try;; |
| 11072 | esac |
| 11073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11074 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11075 | ac_status=$? |
| 11076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11077 | rm -f conftest.er1 |
| 11078 | cat conftest.err >&5 |
| 11079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11080 | (exit $ac_status); } >/dev/null; then |
| 11081 | if test -s conftest.err; then |
| 11082 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11083 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11084 | else |
| 11085 | ac_cpp_err= |
| 11086 | fi |
| 11087 | else |
| 11088 | ac_cpp_err=yes |
| 11089 | fi |
| 11090 | if test -z "$ac_cpp_err"; then |
| 11091 | ac_header_preproc=yes |
| 11092 | else |
| 11093 | echo "$as_me: failed program was:" >&5 |
| 11094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11095 | |
| 11096 | ac_header_preproc=no |
| 11097 | fi |
| 11098 | |
| 11099 | rm -f conftest.err conftest.$ac_ext |
| 11100 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11101 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11102 | |
| 11103 | # So? What about this header? |
| 11104 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11105 | yes:no: ) |
| 11106 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11107 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11108 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11109 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11110 | ac_header_preproc=yes |
| 11111 | ;; |
| 11112 | no:yes:* ) |
| 11113 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11114 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11115 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11116 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11117 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11118 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11119 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11120 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11121 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11122 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11123 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11124 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11125 | ( cat <<\_ASBOX |
Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11126 | ## ------------------------------------ ## |
| 11127 | ## Report this to http://llvm.org/bugs/ ## |
| 11128 | ## ------------------------------------ ## |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11129 | _ASBOX |
| 11130 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11131 | ;; |
| 11132 | esac |
| 11133 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11134 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11135 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11137 | else |
| 11138 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11139 | fi |
| 11140 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11141 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11142 | echo "${ECHO_T}$ac_res" >&6; } |
| 11143 | |
| 11144 | fi |
| 11145 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11146 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11147 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11148 | _ACEOF |
Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 11149 | |
| 11150 | fi |
Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 11151 | |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11152 | done |
Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 11153 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11154 | |
| 11155 | |
| 11156 | |
| 11157 | |
| 11158 | |
| 11159 | |
Douglas Gregor | b81294d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 11160 | 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] | 11161 | do |
| 11162 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11163 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11164 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11165 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11166 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11168 | fi |
| 11169 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11170 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11171 | echo "${ECHO_T}$ac_res" >&6; } |
| 11172 | else |
| 11173 | # Is the header compilable? |
| 11174 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11175 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11176 | cat >conftest.$ac_ext <<_ACEOF |
| 11177 | /* confdefs.h. */ |
| 11178 | _ACEOF |
| 11179 | cat confdefs.h >>conftest.$ac_ext |
| 11180 | cat >>conftest.$ac_ext <<_ACEOF |
| 11181 | /* end confdefs.h. */ |
| 11182 | $ac_includes_default |
| 11183 | #include <$ac_header> |
| 11184 | _ACEOF |
| 11185 | rm -f conftest.$ac_objext |
| 11186 | if { (ac_try="$ac_compile" |
| 11187 | case "(($ac_try" in |
| 11188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11189 | *) ac_try_echo=$ac_try;; |
| 11190 | esac |
| 11191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11192 | (eval "$ac_compile") 2>conftest.er1 |
| 11193 | ac_status=$? |
| 11194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11195 | rm -f conftest.er1 |
| 11196 | cat conftest.err >&5 |
| 11197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11198 | (exit $ac_status); } && |
| 11199 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11200 | { (case "(($ac_try" in |
| 11201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11202 | *) ac_try_echo=$ac_try;; |
| 11203 | esac |
| 11204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11205 | (eval "$ac_try") 2>&5 |
| 11206 | ac_status=$? |
| 11207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11208 | (exit $ac_status); }; } && |
| 11209 | { ac_try='test -s conftest.$ac_objext' |
| 11210 | { (case "(($ac_try" in |
| 11211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11212 | *) ac_try_echo=$ac_try;; |
| 11213 | esac |
| 11214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11215 | (eval "$ac_try") 2>&5 |
| 11216 | ac_status=$? |
| 11217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11218 | (exit $ac_status); }; }; then |
| 11219 | ac_header_compiler=yes |
| 11220 | else |
| 11221 | echo "$as_me: failed program was:" >&5 |
| 11222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11223 | |
| 11224 | ac_header_compiler=no |
| 11225 | fi |
| 11226 | |
| 11227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11228 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11229 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11230 | |
| 11231 | # Is the header present? |
| 11232 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11233 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11234 | cat >conftest.$ac_ext <<_ACEOF |
| 11235 | /* confdefs.h. */ |
| 11236 | _ACEOF |
| 11237 | cat confdefs.h >>conftest.$ac_ext |
| 11238 | cat >>conftest.$ac_ext <<_ACEOF |
| 11239 | /* end confdefs.h. */ |
| 11240 | #include <$ac_header> |
| 11241 | _ACEOF |
| 11242 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11243 | case "(($ac_try" in |
| 11244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11245 | *) ac_try_echo=$ac_try;; |
| 11246 | esac |
| 11247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11248 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11249 | ac_status=$? |
| 11250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11251 | rm -f conftest.er1 |
| 11252 | cat conftest.err >&5 |
| 11253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11254 | (exit $ac_status); } >/dev/null; then |
| 11255 | if test -s conftest.err; then |
| 11256 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11257 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11258 | else |
| 11259 | ac_cpp_err= |
| 11260 | fi |
| 11261 | else |
| 11262 | ac_cpp_err=yes |
| 11263 | fi |
| 11264 | if test -z "$ac_cpp_err"; then |
| 11265 | ac_header_preproc=yes |
| 11266 | else |
| 11267 | echo "$as_me: failed program was:" >&5 |
| 11268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11269 | |
| 11270 | ac_header_preproc=no |
| 11271 | fi |
| 11272 | |
| 11273 | rm -f conftest.err conftest.$ac_ext |
| 11274 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11275 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11276 | |
| 11277 | # So? What about this header? |
| 11278 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11279 | yes:no: ) |
| 11280 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11281 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11282 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11283 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11284 | ac_header_preproc=yes |
| 11285 | ;; |
| 11286 | no:yes:* ) |
| 11287 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11288 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11289 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11290 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11291 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11292 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11293 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11294 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11295 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11296 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11297 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11298 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11299 | ( cat <<\_ASBOX |
Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11300 | ## ------------------------------------ ## |
| 11301 | ## Report this to http://llvm.org/bugs/ ## |
| 11302 | ## ------------------------------------ ## |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11303 | _ASBOX |
| 11304 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11305 | ;; |
| 11306 | esac |
| 11307 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11308 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11309 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11311 | else |
| 11312 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11313 | fi |
| 11314 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11315 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11316 | echo "${ECHO_T}$ac_res" >&6; } |
| 11317 | |
| 11318 | fi |
| 11319 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11320 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11321 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11322 | _ACEOF |
| 11323 | |
| 11324 | fi |
| 11325 | |
| 11326 | done |
| 11327 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11328 | |
Eric Christopher | 3053638 | 2013-07-26 17:13:47 +0000 | [diff] [blame] | 11329 | for ac_header in utime.h |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11330 | do |
| 11331 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11332 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11333 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11334 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11335 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11337 | fi |
| 11338 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11339 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11340 | echo "${ECHO_T}$ac_res" >&6; } |
| 11341 | else |
| 11342 | # Is the header compilable? |
| 11343 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11344 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11345 | cat >conftest.$ac_ext <<_ACEOF |
| 11346 | /* confdefs.h. */ |
| 11347 | _ACEOF |
| 11348 | cat confdefs.h >>conftest.$ac_ext |
| 11349 | cat >>conftest.$ac_ext <<_ACEOF |
| 11350 | /* end confdefs.h. */ |
| 11351 | $ac_includes_default |
| 11352 | #include <$ac_header> |
| 11353 | _ACEOF |
| 11354 | rm -f conftest.$ac_objext |
| 11355 | if { (ac_try="$ac_compile" |
| 11356 | case "(($ac_try" in |
| 11357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11358 | *) ac_try_echo=$ac_try;; |
| 11359 | esac |
| 11360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11361 | (eval "$ac_compile") 2>conftest.er1 |
| 11362 | ac_status=$? |
| 11363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11364 | rm -f conftest.er1 |
| 11365 | cat conftest.err >&5 |
| 11366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11367 | (exit $ac_status); } && |
| 11368 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11369 | { (case "(($ac_try" in |
| 11370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11371 | *) ac_try_echo=$ac_try;; |
| 11372 | esac |
| 11373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11374 | (eval "$ac_try") 2>&5 |
| 11375 | ac_status=$? |
| 11376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11377 | (exit $ac_status); }; } && |
| 11378 | { ac_try='test -s conftest.$ac_objext' |
| 11379 | { (case "(($ac_try" in |
| 11380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11381 | *) ac_try_echo=$ac_try;; |
| 11382 | esac |
| 11383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11384 | (eval "$ac_try") 2>&5 |
| 11385 | ac_status=$? |
| 11386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11387 | (exit $ac_status); }; }; then |
| 11388 | ac_header_compiler=yes |
| 11389 | else |
| 11390 | echo "$as_me: failed program was:" >&5 |
| 11391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11392 | |
| 11393 | ac_header_compiler=no |
| 11394 | fi |
| 11395 | |
| 11396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11397 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11398 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11399 | |
| 11400 | # Is the header present? |
| 11401 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11402 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11403 | cat >conftest.$ac_ext <<_ACEOF |
| 11404 | /* confdefs.h. */ |
| 11405 | _ACEOF |
| 11406 | cat confdefs.h >>conftest.$ac_ext |
| 11407 | cat >>conftest.$ac_ext <<_ACEOF |
| 11408 | /* end confdefs.h. */ |
| 11409 | #include <$ac_header> |
| 11410 | _ACEOF |
| 11411 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11412 | case "(($ac_try" in |
| 11413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11414 | *) ac_try_echo=$ac_try;; |
| 11415 | esac |
| 11416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11417 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11418 | ac_status=$? |
| 11419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11420 | rm -f conftest.er1 |
| 11421 | cat conftest.err >&5 |
| 11422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11423 | (exit $ac_status); } >/dev/null; then |
| 11424 | if test -s conftest.err; then |
| 11425 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11426 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11427 | else |
| 11428 | ac_cpp_err= |
| 11429 | fi |
| 11430 | else |
| 11431 | ac_cpp_err=yes |
| 11432 | fi |
| 11433 | if test -z "$ac_cpp_err"; then |
| 11434 | ac_header_preproc=yes |
| 11435 | else |
| 11436 | echo "$as_me: failed program was:" >&5 |
| 11437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11438 | |
| 11439 | ac_header_preproc=no |
| 11440 | fi |
| 11441 | |
| 11442 | rm -f conftest.err conftest.$ac_ext |
| 11443 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11444 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11445 | |
| 11446 | # So? What about this header? |
| 11447 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11448 | yes:no: ) |
| 11449 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11450 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11451 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11452 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11453 | ac_header_preproc=yes |
| 11454 | ;; |
| 11455 | no:yes:* ) |
| 11456 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11457 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11458 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11459 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11460 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11461 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11462 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11463 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11464 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11465 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11466 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11467 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11468 | ( cat <<\_ASBOX |
Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11469 | ## ------------------------------------ ## |
| 11470 | ## Report this to http://llvm.org/bugs/ ## |
| 11471 | ## ------------------------------------ ## |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11472 | _ASBOX |
| 11473 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11474 | ;; |
| 11475 | esac |
| 11476 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11477 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11478 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11480 | else |
| 11481 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11482 | fi |
| 11483 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11484 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11485 | echo "${ECHO_T}$ac_res" >&6; } |
| 11486 | |
| 11487 | fi |
| 11488 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 11489 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11490 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 11491 | _ACEOF |
| 11492 | |
| 11493 | fi |
| 11494 | |
| 11495 | done |
Reid Spencer | 8bc110c | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 11496 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11497 | |
| 11498 | |
| 11499 | |
| 11500 | |
Daniel Dunbar | 7840c54 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 11501 | |
| 11502 | 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] | 11503 | do |
| 11504 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11505 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11506 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11507 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11508 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11510 | fi |
| 11511 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11512 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11513 | echo "${ECHO_T}$ac_res" >&6; } |
| 11514 | else |
| 11515 | # Is the header compilable? |
| 11516 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11517 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11518 | cat >conftest.$ac_ext <<_ACEOF |
| 11519 | /* confdefs.h. */ |
| 11520 | _ACEOF |
| 11521 | cat confdefs.h >>conftest.$ac_ext |
| 11522 | cat >>conftest.$ac_ext <<_ACEOF |
| 11523 | /* end confdefs.h. */ |
| 11524 | $ac_includes_default |
| 11525 | #include <$ac_header> |
| 11526 | _ACEOF |
| 11527 | rm -f conftest.$ac_objext |
| 11528 | if { (ac_try="$ac_compile" |
| 11529 | case "(($ac_try" in |
| 11530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11531 | *) ac_try_echo=$ac_try;; |
| 11532 | esac |
| 11533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11534 | (eval "$ac_compile") 2>conftest.er1 |
| 11535 | ac_status=$? |
| 11536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11537 | rm -f conftest.er1 |
| 11538 | cat conftest.err >&5 |
| 11539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11540 | (exit $ac_status); } && |
| 11541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11542 | { (case "(($ac_try" in |
| 11543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11544 | *) ac_try_echo=$ac_try;; |
| 11545 | esac |
| 11546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11547 | (eval "$ac_try") 2>&5 |
| 11548 | ac_status=$? |
| 11549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11550 | (exit $ac_status); }; } && |
| 11551 | { ac_try='test -s conftest.$ac_objext' |
| 11552 | { (case "(($ac_try" in |
| 11553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11554 | *) ac_try_echo=$ac_try;; |
| 11555 | esac |
| 11556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11557 | (eval "$ac_try") 2>&5 |
| 11558 | ac_status=$? |
| 11559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11560 | (exit $ac_status); }; }; then |
| 11561 | ac_header_compiler=yes |
| 11562 | else |
| 11563 | echo "$as_me: failed program was:" >&5 |
| 11564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11565 | |
| 11566 | ac_header_compiler=no |
| 11567 | fi |
| 11568 | |
| 11569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11570 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11571 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11572 | |
| 11573 | # Is the header present? |
| 11574 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11575 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11576 | cat >conftest.$ac_ext <<_ACEOF |
| 11577 | /* confdefs.h. */ |
| 11578 | _ACEOF |
| 11579 | cat confdefs.h >>conftest.$ac_ext |
| 11580 | cat >>conftest.$ac_ext <<_ACEOF |
| 11581 | /* end confdefs.h. */ |
| 11582 | #include <$ac_header> |
| 11583 | _ACEOF |
| 11584 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11585 | case "(($ac_try" in |
| 11586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11587 | *) ac_try_echo=$ac_try;; |
| 11588 | esac |
| 11589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11590 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11591 | ac_status=$? |
| 11592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11593 | rm -f conftest.er1 |
| 11594 | cat conftest.err >&5 |
| 11595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11596 | (exit $ac_status); } >/dev/null; then |
| 11597 | if test -s conftest.err; then |
| 11598 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11599 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11600 | else |
| 11601 | ac_cpp_err= |
| 11602 | fi |
| 11603 | else |
| 11604 | ac_cpp_err=yes |
| 11605 | fi |
| 11606 | if test -z "$ac_cpp_err"; then |
| 11607 | ac_header_preproc=yes |
| 11608 | else |
| 11609 | echo "$as_me: failed program was:" >&5 |
| 11610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11611 | |
| 11612 | ac_header_preproc=no |
| 11613 | fi |
| 11614 | |
| 11615 | rm -f conftest.err conftest.$ac_ext |
| 11616 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11617 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11618 | |
| 11619 | # So? What about this header? |
| 11620 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11621 | yes:no: ) |
| 11622 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11623 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11624 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11625 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11626 | ac_header_preproc=yes |
| 11627 | ;; |
| 11628 | no:yes:* ) |
| 11629 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11630 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11631 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11632 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11633 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11634 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11635 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11636 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11637 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11638 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11639 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11640 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11641 | ( cat <<\_ASBOX |
Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11642 | ## ------------------------------------ ## |
| 11643 | ## Report this to http://llvm.org/bugs/ ## |
| 11644 | ## ------------------------------------ ## |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11645 | _ASBOX |
| 11646 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11647 | ;; |
| 11648 | esac |
| 11649 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11650 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11651 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11653 | else |
| 11654 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11655 | fi |
| 11656 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11657 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11658 | echo "${ECHO_T}$ac_res" >&6; } |
| 11659 | |
| 11660 | fi |
| 11661 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11662 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11663 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | b92c7c2 | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 11664 | _ACEOF |
John Criswell | b92c7c2 | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 11665 | |
| 11666 | fi |
John Criswell | b92c7c2 | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 11667 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11668 | done |
| 11669 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11670 | |
| 11671 | |
| 11672 | |
Eric Christopher | 3053638 | 2013-07-26 17:13:47 +0000 | [diff] [blame] | 11673 | for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11674 | do |
| 11675 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11676 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11677 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11678 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11679 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11681 | fi |
| 11682 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11683 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11684 | echo "${ECHO_T}$ac_res" >&6; } |
| 11685 | else |
| 11686 | # Is the header compilable? |
| 11687 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11688 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11689 | cat >conftest.$ac_ext <<_ACEOF |
| 11690 | /* confdefs.h. */ |
| 11691 | _ACEOF |
| 11692 | cat confdefs.h >>conftest.$ac_ext |
| 11693 | cat >>conftest.$ac_ext <<_ACEOF |
| 11694 | /* end confdefs.h. */ |
| 11695 | $ac_includes_default |
| 11696 | #include <$ac_header> |
| 11697 | _ACEOF |
| 11698 | rm -f conftest.$ac_objext |
| 11699 | if { (ac_try="$ac_compile" |
| 11700 | case "(($ac_try" in |
| 11701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11702 | *) ac_try_echo=$ac_try;; |
| 11703 | esac |
| 11704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11705 | (eval "$ac_compile") 2>conftest.er1 |
| 11706 | ac_status=$? |
| 11707 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11708 | rm -f conftest.er1 |
| 11709 | cat conftest.err >&5 |
| 11710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11711 | (exit $ac_status); } && |
| 11712 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11713 | { (case "(($ac_try" in |
| 11714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11715 | *) ac_try_echo=$ac_try;; |
| 11716 | esac |
| 11717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11718 | (eval "$ac_try") 2>&5 |
| 11719 | ac_status=$? |
| 11720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11721 | (exit $ac_status); }; } && |
| 11722 | { ac_try='test -s conftest.$ac_objext' |
| 11723 | { (case "(($ac_try" in |
| 11724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11725 | *) ac_try_echo=$ac_try;; |
| 11726 | esac |
| 11727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11728 | (eval "$ac_try") 2>&5 |
| 11729 | ac_status=$? |
| 11730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11731 | (exit $ac_status); }; }; then |
| 11732 | ac_header_compiler=yes |
| 11733 | else |
| 11734 | echo "$as_me: failed program was:" >&5 |
| 11735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11736 | |
| 11737 | ac_header_compiler=no |
| 11738 | fi |
| 11739 | |
| 11740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11741 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11742 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11743 | |
| 11744 | # Is the header present? |
| 11745 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11746 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11747 | cat >conftest.$ac_ext <<_ACEOF |
| 11748 | /* confdefs.h. */ |
| 11749 | _ACEOF |
| 11750 | cat confdefs.h >>conftest.$ac_ext |
| 11751 | cat >>conftest.$ac_ext <<_ACEOF |
| 11752 | /* end confdefs.h. */ |
| 11753 | #include <$ac_header> |
| 11754 | _ACEOF |
| 11755 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11756 | case "(($ac_try" in |
| 11757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11758 | *) ac_try_echo=$ac_try;; |
| 11759 | esac |
| 11760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11761 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11762 | ac_status=$? |
| 11763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11764 | rm -f conftest.er1 |
| 11765 | cat conftest.err >&5 |
| 11766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11767 | (exit $ac_status); } >/dev/null; then |
| 11768 | if test -s conftest.err; then |
| 11769 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11770 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11771 | else |
| 11772 | ac_cpp_err= |
| 11773 | fi |
| 11774 | else |
| 11775 | ac_cpp_err=yes |
| 11776 | fi |
| 11777 | if test -z "$ac_cpp_err"; then |
| 11778 | ac_header_preproc=yes |
| 11779 | else |
| 11780 | echo "$as_me: failed program was:" >&5 |
| 11781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11782 | |
| 11783 | ac_header_preproc=no |
| 11784 | fi |
| 11785 | |
| 11786 | rm -f conftest.err conftest.$ac_ext |
| 11787 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11788 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11789 | |
| 11790 | # So? What about this header? |
| 11791 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11792 | yes:no: ) |
| 11793 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11794 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11795 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11796 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11797 | ac_header_preproc=yes |
| 11798 | ;; |
| 11799 | no:yes:* ) |
| 11800 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11801 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11802 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11803 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11804 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11805 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11806 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11807 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11808 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11809 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11810 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11811 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11812 | ( cat <<\_ASBOX |
Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11813 | ## ------------------------------------ ## |
| 11814 | ## Report this to http://llvm.org/bugs/ ## |
| 11815 | ## ------------------------------------ ## |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11816 | _ASBOX |
| 11817 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11818 | ;; |
| 11819 | esac |
| 11820 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11821 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11822 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11824 | else |
| 11825 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11826 | fi |
| 11827 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11828 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11829 | echo "${ECHO_T}$ac_res" >&6; } |
| 11830 | |
| 11831 | fi |
| 11832 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 973917a | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 11833 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11834 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 973917a | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 11835 | _ACEOF |
| 11836 | |
| 11837 | fi |
| 11838 | |
| 11839 | done |
| 11840 | |
Jeffrey Yasskin | 3ddd88f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 11841 | |
| 11842 | for ac_header in valgrind/valgrind.h |
| 11843 | do |
| 11844 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11845 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11846 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11847 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11848 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11850 | fi |
| 11851 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11852 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11853 | echo "${ECHO_T}$ac_res" >&6; } |
| 11854 | else |
| 11855 | # Is the header compilable? |
| 11856 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11857 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11858 | cat >conftest.$ac_ext <<_ACEOF |
| 11859 | /* confdefs.h. */ |
| 11860 | _ACEOF |
| 11861 | cat confdefs.h >>conftest.$ac_ext |
| 11862 | cat >>conftest.$ac_ext <<_ACEOF |
| 11863 | /* end confdefs.h. */ |
| 11864 | $ac_includes_default |
| 11865 | #include <$ac_header> |
| 11866 | _ACEOF |
| 11867 | rm -f conftest.$ac_objext |
| 11868 | if { (ac_try="$ac_compile" |
| 11869 | case "(($ac_try" in |
| 11870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11871 | *) ac_try_echo=$ac_try;; |
| 11872 | esac |
| 11873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11874 | (eval "$ac_compile") 2>conftest.er1 |
| 11875 | ac_status=$? |
| 11876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11877 | rm -f conftest.er1 |
| 11878 | cat conftest.err >&5 |
| 11879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11880 | (exit $ac_status); } && |
| 11881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11882 | { (case "(($ac_try" in |
| 11883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11884 | *) ac_try_echo=$ac_try;; |
| 11885 | esac |
| 11886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11887 | (eval "$ac_try") 2>&5 |
| 11888 | ac_status=$? |
| 11889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11890 | (exit $ac_status); }; } && |
| 11891 | { ac_try='test -s conftest.$ac_objext' |
| 11892 | { (case "(($ac_try" in |
| 11893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11894 | *) ac_try_echo=$ac_try;; |
| 11895 | esac |
| 11896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11897 | (eval "$ac_try") 2>&5 |
| 11898 | ac_status=$? |
| 11899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11900 | (exit $ac_status); }; }; then |
| 11901 | ac_header_compiler=yes |
| 11902 | else |
| 11903 | echo "$as_me: failed program was:" >&5 |
| 11904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11905 | |
| 11906 | ac_header_compiler=no |
| 11907 | fi |
| 11908 | |
| 11909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11910 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11911 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11912 | |
| 11913 | # Is the header present? |
| 11914 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11915 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11916 | cat >conftest.$ac_ext <<_ACEOF |
| 11917 | /* confdefs.h. */ |
| 11918 | _ACEOF |
| 11919 | cat confdefs.h >>conftest.$ac_ext |
| 11920 | cat >>conftest.$ac_ext <<_ACEOF |
| 11921 | /* end confdefs.h. */ |
| 11922 | #include <$ac_header> |
| 11923 | _ACEOF |
| 11924 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11925 | case "(($ac_try" in |
| 11926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11927 | *) ac_try_echo=$ac_try;; |
| 11928 | esac |
| 11929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11930 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11931 | ac_status=$? |
| 11932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11933 | rm -f conftest.er1 |
| 11934 | cat conftest.err >&5 |
| 11935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11936 | (exit $ac_status); } >/dev/null; then |
| 11937 | if test -s conftest.err; then |
| 11938 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11939 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11940 | else |
| 11941 | ac_cpp_err= |
| 11942 | fi |
| 11943 | else |
| 11944 | ac_cpp_err=yes |
| 11945 | fi |
| 11946 | if test -z "$ac_cpp_err"; then |
| 11947 | ac_header_preproc=yes |
| 11948 | else |
| 11949 | echo "$as_me: failed program was:" >&5 |
| 11950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11951 | |
| 11952 | ac_header_preproc=no |
| 11953 | fi |
| 11954 | |
| 11955 | rm -f conftest.err conftest.$ac_ext |
| 11956 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11957 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11958 | |
| 11959 | # So? What about this header? |
| 11960 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11961 | yes:no: ) |
| 11962 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11963 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11964 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11965 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11966 | ac_header_preproc=yes |
| 11967 | ;; |
| 11968 | no:yes:* ) |
| 11969 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11970 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11971 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11972 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11973 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11974 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11975 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11976 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11977 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11978 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11979 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11980 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11981 | ( cat <<\_ASBOX |
Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11982 | ## ------------------------------------ ## |
| 11983 | ## Report this to http://llvm.org/bugs/ ## |
| 11984 | ## ------------------------------------ ## |
Jeffrey Yasskin | 3ddd88f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 11985 | _ASBOX |
| 11986 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11987 | ;; |
| 11988 | esac |
| 11989 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11990 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11991 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11993 | else |
| 11994 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11995 | fi |
| 11996 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11997 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11998 | echo "${ECHO_T}$ac_res" >&6; } |
| 11999 | |
| 12000 | fi |
| 12001 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12002 | cat >>confdefs.h <<_ACEOF |
| 12003 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12004 | _ACEOF |
| 12005 | |
| 12006 | fi |
| 12007 | |
| 12008 | done |
| 12009 | |
Dan Gohman | df25777 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 12010 | |
| 12011 | for ac_header in fenv.h |
| 12012 | do |
| 12013 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12014 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12015 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12016 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12017 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12019 | fi |
| 12020 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12021 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12022 | echo "${ECHO_T}$ac_res" >&6; } |
| 12023 | else |
| 12024 | # Is the header compilable? |
| 12025 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12026 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12027 | cat >conftest.$ac_ext <<_ACEOF |
| 12028 | /* confdefs.h. */ |
| 12029 | _ACEOF |
| 12030 | cat confdefs.h >>conftest.$ac_ext |
| 12031 | cat >>conftest.$ac_ext <<_ACEOF |
| 12032 | /* end confdefs.h. */ |
| 12033 | $ac_includes_default |
| 12034 | #include <$ac_header> |
| 12035 | _ACEOF |
| 12036 | rm -f conftest.$ac_objext |
| 12037 | if { (ac_try="$ac_compile" |
| 12038 | case "(($ac_try" in |
| 12039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12040 | *) ac_try_echo=$ac_try;; |
| 12041 | esac |
| 12042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12043 | (eval "$ac_compile") 2>conftest.er1 |
| 12044 | ac_status=$? |
| 12045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12046 | rm -f conftest.er1 |
| 12047 | cat conftest.err >&5 |
| 12048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12049 | (exit $ac_status); } && |
| 12050 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12051 | { (case "(($ac_try" in |
| 12052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12053 | *) ac_try_echo=$ac_try;; |
| 12054 | esac |
| 12055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12056 | (eval "$ac_try") 2>&5 |
| 12057 | ac_status=$? |
| 12058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12059 | (exit $ac_status); }; } && |
| 12060 | { ac_try='test -s conftest.$ac_objext' |
| 12061 | { (case "(($ac_try" in |
| 12062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12063 | *) ac_try_echo=$ac_try;; |
| 12064 | esac |
| 12065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12066 | (eval "$ac_try") 2>&5 |
| 12067 | ac_status=$? |
| 12068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12069 | (exit $ac_status); }; }; then |
| 12070 | ac_header_compiler=yes |
| 12071 | else |
| 12072 | echo "$as_me: failed program was:" >&5 |
| 12073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12074 | |
| 12075 | ac_header_compiler=no |
| 12076 | fi |
| 12077 | |
| 12078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12079 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12080 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12081 | |
| 12082 | # Is the header present? |
| 12083 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12084 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12085 | cat >conftest.$ac_ext <<_ACEOF |
| 12086 | /* confdefs.h. */ |
| 12087 | _ACEOF |
| 12088 | cat confdefs.h >>conftest.$ac_ext |
| 12089 | cat >>conftest.$ac_ext <<_ACEOF |
| 12090 | /* end confdefs.h. */ |
| 12091 | #include <$ac_header> |
| 12092 | _ACEOF |
| 12093 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12094 | case "(($ac_try" in |
| 12095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12096 | *) ac_try_echo=$ac_try;; |
| 12097 | esac |
| 12098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12099 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12100 | ac_status=$? |
| 12101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12102 | rm -f conftest.er1 |
| 12103 | cat conftest.err >&5 |
| 12104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12105 | (exit $ac_status); } >/dev/null; then |
| 12106 | if test -s conftest.err; then |
| 12107 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12108 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12109 | else |
| 12110 | ac_cpp_err= |
| 12111 | fi |
| 12112 | else |
| 12113 | ac_cpp_err=yes |
| 12114 | fi |
| 12115 | if test -z "$ac_cpp_err"; then |
| 12116 | ac_header_preproc=yes |
| 12117 | else |
| 12118 | echo "$as_me: failed program was:" >&5 |
| 12119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12120 | |
| 12121 | ac_header_preproc=no |
| 12122 | fi |
| 12123 | |
| 12124 | rm -f conftest.err conftest.$ac_ext |
| 12125 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12126 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12127 | |
| 12128 | # So? What about this header? |
| 12129 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12130 | yes:no: ) |
| 12131 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12132 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12133 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12134 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12135 | ac_header_preproc=yes |
| 12136 | ;; |
| 12137 | no:yes:* ) |
| 12138 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12139 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12140 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12141 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12142 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12143 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12144 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12145 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12146 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12147 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12148 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12149 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12150 | ( cat <<\_ASBOX |
Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 12151 | ## ------------------------------------ ## |
| 12152 | ## Report this to http://llvm.org/bugs/ ## |
| 12153 | ## ------------------------------------ ## |
Dan Gohman | df25777 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 12154 | _ASBOX |
| 12155 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12156 | ;; |
| 12157 | esac |
| 12158 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12159 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12160 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12162 | else |
| 12163 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12164 | fi |
| 12165 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12166 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12167 | echo "${ECHO_T}$ac_res" >&6; } |
| 12168 | |
| 12169 | fi |
| 12170 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12171 | cat >>confdefs.h <<_ACEOF |
| 12172 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12173 | _ACEOF |
| 12174 | |
| 12175 | fi |
| 12176 | |
| 12177 | done |
| 12178 | |
Joerg Sonnenberger | 8a1177f | 2013-03-25 13:13:33 +0000 | [diff] [blame] | 12179 | { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5 |
| 12180 | echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; } |
| 12181 | if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then |
| 12182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12183 | else |
| 12184 | cat >conftest.$ac_ext <<_ACEOF |
| 12185 | /* confdefs.h. */ |
| 12186 | _ACEOF |
| 12187 | cat confdefs.h >>conftest.$ac_ext |
| 12188 | cat >>conftest.$ac_ext <<_ACEOF |
| 12189 | /* end confdefs.h. */ |
| 12190 | #include <fenv.h> |
| 12191 | |
| 12192 | int |
| 12193 | main () |
| 12194 | { |
| 12195 | #ifndef FE_ALL_EXCEPT |
| 12196 | char *p = (char *) FE_ALL_EXCEPT; |
| 12197 | return !p; |
| 12198 | #endif |
| 12199 | |
| 12200 | ; |
| 12201 | return 0; |
| 12202 | } |
| 12203 | _ACEOF |
| 12204 | rm -f conftest.$ac_objext |
| 12205 | if { (ac_try="$ac_compile" |
| 12206 | case "(($ac_try" in |
| 12207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12208 | *) ac_try_echo=$ac_try;; |
| 12209 | esac |
| 12210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12211 | (eval "$ac_compile") 2>conftest.er1 |
| 12212 | ac_status=$? |
| 12213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12214 | rm -f conftest.er1 |
| 12215 | cat conftest.err >&5 |
| 12216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12217 | (exit $ac_status); } && |
| 12218 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12219 | { (case "(($ac_try" in |
| 12220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12221 | *) ac_try_echo=$ac_try;; |
| 12222 | esac |
| 12223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12224 | (eval "$ac_try") 2>&5 |
| 12225 | ac_status=$? |
| 12226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12227 | (exit $ac_status); }; } && |
| 12228 | { ac_try='test -s conftest.$ac_objext' |
| 12229 | { (case "(($ac_try" in |
| 12230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12231 | *) ac_try_echo=$ac_try;; |
| 12232 | esac |
| 12233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12234 | (eval "$ac_try") 2>&5 |
| 12235 | ac_status=$? |
| 12236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12237 | (exit $ac_status); }; }; then |
| 12238 | ac_cv_have_decl_FE_ALL_EXCEPT=yes |
| 12239 | else |
| 12240 | echo "$as_me: failed program was:" >&5 |
| 12241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12242 | |
| 12243 | ac_cv_have_decl_FE_ALL_EXCEPT=no |
| 12244 | fi |
| 12245 | |
| 12246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12247 | fi |
| 12248 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5 |
| 12249 | echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; } |
| 12250 | if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then |
| 12251 | |
| 12252 | cat >>confdefs.h <<_ACEOF |
| 12253 | #define HAVE_DECL_FE_ALL_EXCEPT 1 |
| 12254 | _ACEOF |
| 12255 | |
| 12256 | |
| 12257 | else |
| 12258 | cat >>confdefs.h <<_ACEOF |
| 12259 | #define HAVE_DECL_FE_ALL_EXCEPT 0 |
| 12260 | _ACEOF |
| 12261 | |
| 12262 | |
| 12263 | fi |
| 12264 | { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5 |
| 12265 | echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; } |
| 12266 | if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then |
| 12267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12268 | else |
| 12269 | cat >conftest.$ac_ext <<_ACEOF |
| 12270 | /* confdefs.h. */ |
| 12271 | _ACEOF |
| 12272 | cat confdefs.h >>conftest.$ac_ext |
| 12273 | cat >>conftest.$ac_ext <<_ACEOF |
| 12274 | /* end confdefs.h. */ |
| 12275 | #include <fenv.h> |
| 12276 | |
| 12277 | int |
| 12278 | main () |
| 12279 | { |
| 12280 | #ifndef FE_INEXACT |
| 12281 | char *p = (char *) FE_INEXACT; |
| 12282 | return !p; |
| 12283 | #endif |
| 12284 | |
| 12285 | ; |
| 12286 | return 0; |
| 12287 | } |
| 12288 | _ACEOF |
| 12289 | rm -f conftest.$ac_objext |
| 12290 | if { (ac_try="$ac_compile" |
| 12291 | case "(($ac_try" in |
| 12292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12293 | *) ac_try_echo=$ac_try;; |
| 12294 | esac |
| 12295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12296 | (eval "$ac_compile") 2>conftest.er1 |
| 12297 | ac_status=$? |
| 12298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12299 | rm -f conftest.er1 |
| 12300 | cat conftest.err >&5 |
| 12301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12302 | (exit $ac_status); } && |
| 12303 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12304 | { (case "(($ac_try" in |
| 12305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12306 | *) ac_try_echo=$ac_try;; |
| 12307 | esac |
| 12308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12309 | (eval "$ac_try") 2>&5 |
| 12310 | ac_status=$? |
| 12311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12312 | (exit $ac_status); }; } && |
| 12313 | { ac_try='test -s conftest.$ac_objext' |
| 12314 | { (case "(($ac_try" in |
| 12315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12316 | *) ac_try_echo=$ac_try;; |
| 12317 | esac |
| 12318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12319 | (eval "$ac_try") 2>&5 |
| 12320 | ac_status=$? |
| 12321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12322 | (exit $ac_status); }; }; then |
| 12323 | ac_cv_have_decl_FE_INEXACT=yes |
| 12324 | else |
| 12325 | echo "$as_me: failed program was:" >&5 |
| 12326 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12327 | |
| 12328 | ac_cv_have_decl_FE_INEXACT=no |
| 12329 | fi |
| 12330 | |
| 12331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12332 | fi |
| 12333 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5 |
| 12334 | echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; } |
| 12335 | if test $ac_cv_have_decl_FE_INEXACT = yes; then |
| 12336 | |
| 12337 | cat >>confdefs.h <<_ACEOF |
| 12338 | #define HAVE_DECL_FE_INEXACT 1 |
| 12339 | _ACEOF |
| 12340 | |
| 12341 | |
| 12342 | else |
| 12343 | cat >>confdefs.h <<_ACEOF |
| 12344 | #define HAVE_DECL_FE_INEXACT 0 |
| 12345 | _ACEOF |
| 12346 | |
| 12347 | |
| 12348 | fi |
| 12349 | |
| 12350 | |
NAKAMURA Takumi | 4ad52a5 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 12351 | 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] | 12352 | |
| 12353 | for ac_header in pthread.h |
| 12354 | do |
| 12355 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12356 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12357 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12358 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12359 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12361 | fi |
| 12362 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12363 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12364 | echo "${ECHO_T}$ac_res" >&6; } |
| 12365 | else |
| 12366 | # Is the header compilable? |
| 12367 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12368 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12369 | cat >conftest.$ac_ext <<_ACEOF |
| 12370 | /* confdefs.h. */ |
| 12371 | _ACEOF |
| 12372 | cat confdefs.h >>conftest.$ac_ext |
| 12373 | cat >>conftest.$ac_ext <<_ACEOF |
| 12374 | /* end confdefs.h. */ |
| 12375 | $ac_includes_default |
| 12376 | #include <$ac_header> |
| 12377 | _ACEOF |
| 12378 | rm -f conftest.$ac_objext |
| 12379 | if { (ac_try="$ac_compile" |
| 12380 | case "(($ac_try" in |
| 12381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12382 | *) ac_try_echo=$ac_try;; |
| 12383 | esac |
| 12384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12385 | (eval "$ac_compile") 2>conftest.er1 |
| 12386 | ac_status=$? |
| 12387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12388 | rm -f conftest.er1 |
| 12389 | cat conftest.err >&5 |
| 12390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12391 | (exit $ac_status); } && |
| 12392 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12393 | { (case "(($ac_try" in |
| 12394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12395 | *) ac_try_echo=$ac_try;; |
| 12396 | esac |
| 12397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12398 | (eval "$ac_try") 2>&5 |
| 12399 | ac_status=$? |
| 12400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12401 | (exit $ac_status); }; } && |
| 12402 | { ac_try='test -s conftest.$ac_objext' |
| 12403 | { (case "(($ac_try" in |
| 12404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12405 | *) ac_try_echo=$ac_try;; |
| 12406 | esac |
| 12407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12408 | (eval "$ac_try") 2>&5 |
| 12409 | ac_status=$? |
| 12410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12411 | (exit $ac_status); }; }; then |
| 12412 | ac_header_compiler=yes |
| 12413 | else |
| 12414 | echo "$as_me: failed program was:" >&5 |
| 12415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12416 | |
| 12417 | ac_header_compiler=no |
| 12418 | fi |
| 12419 | |
| 12420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12421 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12422 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12423 | |
| 12424 | # Is the header present? |
| 12425 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12426 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12427 | cat >conftest.$ac_ext <<_ACEOF |
| 12428 | /* confdefs.h. */ |
| 12429 | _ACEOF |
| 12430 | cat confdefs.h >>conftest.$ac_ext |
| 12431 | cat >>conftest.$ac_ext <<_ACEOF |
| 12432 | /* end confdefs.h. */ |
| 12433 | #include <$ac_header> |
| 12434 | _ACEOF |
| 12435 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12436 | case "(($ac_try" in |
| 12437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12438 | *) ac_try_echo=$ac_try;; |
| 12439 | esac |
| 12440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12441 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12442 | ac_status=$? |
| 12443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12444 | rm -f conftest.er1 |
| 12445 | cat conftest.err >&5 |
| 12446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12447 | (exit $ac_status); } >/dev/null; then |
| 12448 | if test -s conftest.err; then |
| 12449 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12450 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12451 | else |
| 12452 | ac_cpp_err= |
| 12453 | fi |
| 12454 | else |
| 12455 | ac_cpp_err=yes |
| 12456 | fi |
| 12457 | if test -z "$ac_cpp_err"; then |
| 12458 | ac_header_preproc=yes |
| 12459 | else |
| 12460 | echo "$as_me: failed program was:" >&5 |
| 12461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12462 | |
| 12463 | ac_header_preproc=no |
| 12464 | fi |
| 12465 | |
| 12466 | rm -f conftest.err conftest.$ac_ext |
| 12467 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12468 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12469 | |
| 12470 | # So? What about this header? |
| 12471 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12472 | yes:no: ) |
| 12473 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12474 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12475 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12476 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12477 | ac_header_preproc=yes |
| 12478 | ;; |
| 12479 | no:yes:* ) |
| 12480 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12481 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12482 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12483 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12484 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12485 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12486 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12487 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12488 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12489 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12490 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12491 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12492 | ( cat <<\_ASBOX |
Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 12493 | ## ------------------------------------ ## |
| 12494 | ## Report this to http://llvm.org/bugs/ ## |
| 12495 | ## ------------------------------------ ## |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12496 | _ASBOX |
| 12497 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12498 | ;; |
| 12499 | esac |
| 12500 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12501 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12502 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12504 | else |
| 12505 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12506 | fi |
| 12507 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12508 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12509 | echo "${ECHO_T}$ac_res" >&6; } |
| 12510 | |
| 12511 | fi |
| 12512 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 12513 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12514 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 12515 | _ACEOF |
| 12516 | HAVE_PTHREAD=1 |
Reid Spencer | d439992 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 12517 | |
| 12518 | else |
| 12519 | HAVE_PTHREAD=0 |
Reid Spencer | f85fabeb | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 12520 | |
| 12521 | fi |
| 12522 | |
Reid Spencer | b813556 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 12523 | done |
Reid Spencer | d439992 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 12524 | |
| 12525 | else |
| 12526 | HAVE_PTHREAD=0 |
Reid Spencer | f85fabeb | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 12527 | |
| 12528 | fi |
Alexey Samsonov | 2fb337e | 2013-04-23 08:28:39 +0000 | [diff] [blame] | 12529 | if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then |
| 12530 | |
| 12531 | for ac_header in zlib.h |
| 12532 | do |
| 12533 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12534 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12535 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12536 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12537 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12539 | fi |
| 12540 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12541 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12542 | echo "${ECHO_T}$ac_res" >&6; } |
| 12543 | else |
| 12544 | # Is the header compilable? |
| 12545 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12546 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12547 | cat >conftest.$ac_ext <<_ACEOF |
| 12548 | /* confdefs.h. */ |
| 12549 | _ACEOF |
| 12550 | cat confdefs.h >>conftest.$ac_ext |
| 12551 | cat >>conftest.$ac_ext <<_ACEOF |
| 12552 | /* end confdefs.h. */ |
| 12553 | $ac_includes_default |
| 12554 | #include <$ac_header> |
| 12555 | _ACEOF |
| 12556 | rm -f conftest.$ac_objext |
| 12557 | if { (ac_try="$ac_compile" |
| 12558 | case "(($ac_try" in |
| 12559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12560 | *) ac_try_echo=$ac_try;; |
| 12561 | esac |
| 12562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12563 | (eval "$ac_compile") 2>conftest.er1 |
| 12564 | ac_status=$? |
| 12565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12566 | rm -f conftest.er1 |
| 12567 | cat conftest.err >&5 |
| 12568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12569 | (exit $ac_status); } && |
| 12570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12571 | { (case "(($ac_try" in |
| 12572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12573 | *) ac_try_echo=$ac_try;; |
| 12574 | esac |
| 12575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12576 | (eval "$ac_try") 2>&5 |
| 12577 | ac_status=$? |
| 12578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12579 | (exit $ac_status); }; } && |
| 12580 | { ac_try='test -s conftest.$ac_objext' |
| 12581 | { (case "(($ac_try" in |
| 12582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12583 | *) ac_try_echo=$ac_try;; |
| 12584 | esac |
| 12585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12586 | (eval "$ac_try") 2>&5 |
| 12587 | ac_status=$? |
| 12588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12589 | (exit $ac_status); }; }; then |
| 12590 | ac_header_compiler=yes |
| 12591 | else |
| 12592 | echo "$as_me: failed program was:" >&5 |
| 12593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12594 | |
| 12595 | ac_header_compiler=no |
| 12596 | fi |
| 12597 | |
| 12598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12599 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12600 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12601 | |
| 12602 | # Is the header present? |
| 12603 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12604 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12605 | cat >conftest.$ac_ext <<_ACEOF |
| 12606 | /* confdefs.h. */ |
| 12607 | _ACEOF |
| 12608 | cat confdefs.h >>conftest.$ac_ext |
| 12609 | cat >>conftest.$ac_ext <<_ACEOF |
| 12610 | /* end confdefs.h. */ |
| 12611 | #include <$ac_header> |
| 12612 | _ACEOF |
| 12613 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12614 | case "(($ac_try" in |
| 12615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12616 | *) ac_try_echo=$ac_try;; |
| 12617 | esac |
| 12618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12619 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12620 | ac_status=$? |
| 12621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12622 | rm -f conftest.er1 |
| 12623 | cat conftest.err >&5 |
| 12624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12625 | (exit $ac_status); } >/dev/null; then |
| 12626 | if test -s conftest.err; then |
| 12627 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12628 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12629 | else |
| 12630 | ac_cpp_err= |
| 12631 | fi |
| 12632 | else |
| 12633 | ac_cpp_err=yes |
| 12634 | fi |
| 12635 | if test -z "$ac_cpp_err"; then |
| 12636 | ac_header_preproc=yes |
| 12637 | else |
| 12638 | echo "$as_me: failed program was:" >&5 |
| 12639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12640 | |
| 12641 | ac_header_preproc=no |
| 12642 | fi |
| 12643 | |
| 12644 | rm -f conftest.err conftest.$ac_ext |
| 12645 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12646 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12647 | |
| 12648 | # So? What about this header? |
| 12649 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12650 | yes:no: ) |
| 12651 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12652 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12653 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12654 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12655 | ac_header_preproc=yes |
| 12656 | ;; |
| 12657 | no:yes:* ) |
| 12658 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12659 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12660 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12661 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12662 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12663 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12664 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12665 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12666 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12667 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12668 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12669 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12670 | ( cat <<\_ASBOX |
| 12671 | ## ------------------------------------ ## |
| 12672 | ## Report this to http://llvm.org/bugs/ ## |
| 12673 | ## ------------------------------------ ## |
| 12674 | _ASBOX |
| 12675 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12676 | ;; |
| 12677 | esac |
| 12678 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12679 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12680 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12682 | else |
| 12683 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12684 | fi |
| 12685 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12686 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12687 | echo "${ECHO_T}$ac_res" >&6; } |
| 12688 | |
| 12689 | fi |
| 12690 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12691 | cat >>confdefs.h <<_ACEOF |
| 12692 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12693 | _ACEOF |
| 12694 | HAVE_LIBZ=1 |
| 12695 | |
| 12696 | else |
| 12697 | HAVE_LIBZ=0 |
| 12698 | |
| 12699 | fi |
| 12700 | |
| 12701 | done |
| 12702 | |
| 12703 | else |
| 12704 | HAVE_LIBZ=0 |
| 12705 | |
| 12706 | fi |
Reid Spencer | d9f4f3b | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 12707 | |
Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12708 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12709 | |
| 12710 | |
| 12711 | for ac_header in ffi.h ffi/ffi.h |
| 12712 | do |
| 12713 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12714 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12715 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12716 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12717 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12719 | fi |
| 12720 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12721 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12722 | echo "${ECHO_T}$ac_res" >&6; } |
| 12723 | else |
| 12724 | # Is the header compilable? |
| 12725 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12726 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12727 | cat >conftest.$ac_ext <<_ACEOF |
| 12728 | /* confdefs.h. */ |
| 12729 | _ACEOF |
| 12730 | cat confdefs.h >>conftest.$ac_ext |
| 12731 | cat >>conftest.$ac_ext <<_ACEOF |
| 12732 | /* end confdefs.h. */ |
| 12733 | $ac_includes_default |
| 12734 | #include <$ac_header> |
| 12735 | _ACEOF |
| 12736 | rm -f conftest.$ac_objext |
| 12737 | if { (ac_try="$ac_compile" |
| 12738 | case "(($ac_try" in |
| 12739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12740 | *) ac_try_echo=$ac_try;; |
| 12741 | esac |
| 12742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12743 | (eval "$ac_compile") 2>conftest.er1 |
| 12744 | ac_status=$? |
| 12745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12746 | rm -f conftest.er1 |
| 12747 | cat conftest.err >&5 |
| 12748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12749 | (exit $ac_status); } && |
| 12750 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12751 | { (case "(($ac_try" in |
| 12752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12753 | *) ac_try_echo=$ac_try;; |
| 12754 | esac |
| 12755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12756 | (eval "$ac_try") 2>&5 |
| 12757 | ac_status=$? |
| 12758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12759 | (exit $ac_status); }; } && |
| 12760 | { ac_try='test -s conftest.$ac_objext' |
| 12761 | { (case "(($ac_try" in |
| 12762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12763 | *) ac_try_echo=$ac_try;; |
| 12764 | esac |
| 12765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12766 | (eval "$ac_try") 2>&5 |
| 12767 | ac_status=$? |
| 12768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12769 | (exit $ac_status); }; }; then |
| 12770 | ac_header_compiler=yes |
| 12771 | else |
| 12772 | echo "$as_me: failed program was:" >&5 |
| 12773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12774 | |
| 12775 | ac_header_compiler=no |
| 12776 | fi |
| 12777 | |
| 12778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12779 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12780 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12781 | |
| 12782 | # Is the header present? |
| 12783 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12784 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12785 | cat >conftest.$ac_ext <<_ACEOF |
| 12786 | /* confdefs.h. */ |
| 12787 | _ACEOF |
| 12788 | cat confdefs.h >>conftest.$ac_ext |
| 12789 | cat >>conftest.$ac_ext <<_ACEOF |
| 12790 | /* end confdefs.h. */ |
| 12791 | #include <$ac_header> |
| 12792 | _ACEOF |
| 12793 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12794 | case "(($ac_try" in |
| 12795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12796 | *) ac_try_echo=$ac_try;; |
| 12797 | esac |
| 12798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12799 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12800 | ac_status=$? |
| 12801 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12802 | rm -f conftest.er1 |
| 12803 | cat conftest.err >&5 |
| 12804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12805 | (exit $ac_status); } >/dev/null; then |
| 12806 | if test -s conftest.err; then |
| 12807 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12808 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12809 | else |
| 12810 | ac_cpp_err= |
| 12811 | fi |
| 12812 | else |
| 12813 | ac_cpp_err=yes |
| 12814 | fi |
| 12815 | if test -z "$ac_cpp_err"; then |
| 12816 | ac_header_preproc=yes |
| 12817 | else |
| 12818 | echo "$as_me: failed program was:" >&5 |
| 12819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12820 | |
| 12821 | ac_header_preproc=no |
| 12822 | fi |
| 12823 | |
| 12824 | rm -f conftest.err conftest.$ac_ext |
| 12825 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12826 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12827 | |
| 12828 | # So? What about this header? |
| 12829 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12830 | yes:no: ) |
| 12831 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12832 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12833 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12834 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12835 | ac_header_preproc=yes |
| 12836 | ;; |
| 12837 | no:yes:* ) |
| 12838 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12839 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12840 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12841 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12842 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12843 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12844 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12845 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12846 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12847 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12848 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12849 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12850 | ( cat <<\_ASBOX |
Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 12851 | ## ------------------------------------ ## |
| 12852 | ## Report this to http://llvm.org/bugs/ ## |
| 12853 | ## ------------------------------------ ## |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12854 | _ASBOX |
| 12855 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12856 | ;; |
| 12857 | esac |
| 12858 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12859 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12860 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12862 | else |
| 12863 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12864 | fi |
| 12865 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12866 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12867 | echo "${ECHO_T}$ac_res" >&6; } |
| 12868 | |
| 12869 | fi |
| 12870 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12871 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12872 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12873 | _ACEOF |
Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12874 | |
| 12875 | fi |
| 12876 | |
| 12877 | done |
| 12878 | |
Nick Lewycky | 8667990 | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12879 | fi |
Nick Lewycky | 11e9214 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12880 | |
Nick Lewycky | c94134d | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 12881 | |
Eric Christopher | e9c1bb6 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 12882 | for ac_header in CrashReporterClient.h |
| 12883 | do |
| 12884 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12885 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12886 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12887 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12888 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12890 | fi |
| 12891 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12892 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12893 | echo "${ECHO_T}$ac_res" >&6; } |
| 12894 | else |
| 12895 | # Is the header compilable? |
| 12896 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12897 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12898 | cat >conftest.$ac_ext <<_ACEOF |
| 12899 | /* confdefs.h. */ |
| 12900 | _ACEOF |
| 12901 | cat confdefs.h >>conftest.$ac_ext |
| 12902 | cat >>conftest.$ac_ext <<_ACEOF |
| 12903 | /* end confdefs.h. */ |
| 12904 | $ac_includes_default |
| 12905 | #include <$ac_header> |
| 12906 | _ACEOF |
| 12907 | rm -f conftest.$ac_objext |
| 12908 | if { (ac_try="$ac_compile" |
| 12909 | case "(($ac_try" in |
| 12910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12911 | *) ac_try_echo=$ac_try;; |
| 12912 | esac |
| 12913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12914 | (eval "$ac_compile") 2>conftest.er1 |
| 12915 | ac_status=$? |
| 12916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12917 | rm -f conftest.er1 |
| 12918 | cat conftest.err >&5 |
| 12919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12920 | (exit $ac_status); } && |
| 12921 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12922 | { (case "(($ac_try" in |
| 12923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12924 | *) ac_try_echo=$ac_try;; |
| 12925 | esac |
| 12926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12927 | (eval "$ac_try") 2>&5 |
| 12928 | ac_status=$? |
| 12929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12930 | (exit $ac_status); }; } && |
| 12931 | { ac_try='test -s conftest.$ac_objext' |
| 12932 | { (case "(($ac_try" in |
| 12933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12934 | *) ac_try_echo=$ac_try;; |
| 12935 | esac |
| 12936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12937 | (eval "$ac_try") 2>&5 |
| 12938 | ac_status=$? |
| 12939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12940 | (exit $ac_status); }; }; then |
| 12941 | ac_header_compiler=yes |
| 12942 | else |
| 12943 | echo "$as_me: failed program was:" >&5 |
| 12944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12945 | |
| 12946 | ac_header_compiler=no |
| 12947 | fi |
| 12948 | |
| 12949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12950 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12951 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12952 | |
| 12953 | # Is the header present? |
| 12954 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12955 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12956 | cat >conftest.$ac_ext <<_ACEOF |
| 12957 | /* confdefs.h. */ |
| 12958 | _ACEOF |
| 12959 | cat confdefs.h >>conftest.$ac_ext |
| 12960 | cat >>conftest.$ac_ext <<_ACEOF |
| 12961 | /* end confdefs.h. */ |
| 12962 | #include <$ac_header> |
| 12963 | _ACEOF |
| 12964 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12965 | case "(($ac_try" in |
| 12966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12967 | *) ac_try_echo=$ac_try;; |
| 12968 | esac |
| 12969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12970 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12971 | ac_status=$? |
| 12972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12973 | rm -f conftest.er1 |
| 12974 | cat conftest.err >&5 |
| 12975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12976 | (exit $ac_status); } >/dev/null; then |
| 12977 | if test -s conftest.err; then |
| 12978 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12979 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12980 | else |
| 12981 | ac_cpp_err= |
| 12982 | fi |
| 12983 | else |
| 12984 | ac_cpp_err=yes |
| 12985 | fi |
| 12986 | if test -z "$ac_cpp_err"; then |
| 12987 | ac_header_preproc=yes |
| 12988 | else |
| 12989 | echo "$as_me: failed program was:" >&5 |
| 12990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12991 | |
| 12992 | ac_header_preproc=no |
| 12993 | fi |
| 12994 | |
| 12995 | rm -f conftest.err conftest.$ac_ext |
| 12996 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12997 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12998 | |
| 12999 | # So? What about this header? |
| 13000 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13001 | yes:no: ) |
| 13002 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13003 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13004 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 13005 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 13006 | ac_header_preproc=yes |
| 13007 | ;; |
| 13008 | no:yes:* ) |
| 13009 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 13010 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 13011 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 13012 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 13013 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 13014 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 13015 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 13016 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13017 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 13018 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 13019 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 13020 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 13021 | ( cat <<\_ASBOX |
Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 13022 | ## ------------------------------------ ## |
| 13023 | ## Report this to http://llvm.org/bugs/ ## |
| 13024 | ## ------------------------------------ ## |
Eric Christopher | e9c1bb6 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 13025 | _ASBOX |
| 13026 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 13027 | ;; |
| 13028 | esac |
| 13029 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13030 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 13031 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 13032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13033 | else |
| 13034 | eval "$as_ac_Header=\$ac_header_preproc" |
| 13035 | fi |
| 13036 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 13037 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13038 | echo "${ECHO_T}$ac_res" >&6; } |
| 13039 | |
| 13040 | fi |
| 13041 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13042 | cat >>confdefs.h <<_ACEOF |
| 13043 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13044 | _ACEOF |
| 13045 | |
| 13046 | fi |
| 13047 | |
| 13048 | done |
| 13049 | |
| 13050 | |
Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 13051 | { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 |
| 13052 | echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } |
Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 13053 | cat >conftest.$ac_ext <<_ACEOF |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 13054 | |
| 13055 | /* confdefs.h. */ |
Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 13056 | _ACEOF |
| 13057 | cat confdefs.h >>conftest.$ac_ext |
| 13058 | cat >>conftest.$ac_ext <<_ACEOF |
| 13059 | /* end confdefs.h. */ |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 13060 | |
| 13061 | extern const char *__crashreporter_info__; |
| 13062 | int main() { |
| 13063 | __crashreporter_info__ = "test"; |
| 13064 | return 0; |
| 13065 | } |
| 13066 | |
Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 13067 | |
Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 13068 | _ACEOF |
| 13069 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13070 | if { (ac_try="$ac_link" |
| 13071 | case "(($ac_try" in |
| 13072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13073 | *) ac_try_echo=$ac_try;; |
| 13074 | esac |
| 13075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13076 | (eval "$ac_link") 2>conftest.er1 |
| 13077 | ac_status=$? |
| 13078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13079 | rm -f conftest.er1 |
| 13080 | cat conftest.err >&5 |
| 13081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13082 | (exit $ac_status); } && |
| 13083 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13084 | { (case "(($ac_try" in |
| 13085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13086 | *) ac_try_echo=$ac_try;; |
| 13087 | esac |
| 13088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13089 | (eval "$ac_try") 2>&5 |
| 13090 | ac_status=$? |
| 13091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13092 | (exit $ac_status); }; } && |
| 13093 | { ac_try='test -s conftest$ac_exeext' |
| 13094 | { (case "(($ac_try" in |
| 13095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13096 | *) ac_try_echo=$ac_try;; |
| 13097 | esac |
| 13098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13099 | (eval "$ac_try") 2>&5 |
| 13100 | ac_status=$? |
| 13101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13102 | (exit $ac_status); }; }; then |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 13103 | |
Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 13104 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13105 | echo "${ECHO_T}yes" >&6; } |
Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 13106 | |
| 13107 | cat >>confdefs.h <<\_ACEOF |
| 13108 | #define HAVE_CRASHREPORTER_INFO 1 |
| 13109 | _ACEOF |
| 13110 | |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 13111 | |
Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 13112 | else |
| 13113 | echo "$as_me: failed program was:" >&5 |
| 13114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13115 | |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 13116 | |
| 13117 | { echo "$as_me:$LINENO: result: no" >&5 |
Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 13118 | echo "${ECHO_T}no" >&6; } |
| 13119 | |
| 13120 | cat >>confdefs.h <<\_ACEOF |
| 13121 | #define HAVE_CRASHREPORTER_INFO 0 |
| 13122 | _ACEOF |
| 13123 | |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 13124 | |
Eric Christopher | ca46673 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 13125 | fi |
Eric Christopher | e9c1bb6 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 13126 | |
Eric Christopher | ba4f772 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 13127 | rm -f core conftest.err conftest.$ac_objext \ |
| 13128 | conftest$ac_exeext conftest.$ac_ext |
| 13129 | |
| 13130 | |
Reid Spencer | d9f4f3b | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 13131 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13132 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 13133 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 13134 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 13135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 13136 | else |
| 13137 | |
Reid Spencer | 7b7ab9c | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 13138 | ac_ext=cpp |
| 13139 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13140 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13141 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13142 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 13143 | |
Eric Christopher | f0ee6a1 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 13144 | ac_save_CXXFLAGS=$CXXFLAGS |
Eric Christopher | 8e52bdc | 2012-04-02 06:54:01 +0000 | [diff] [blame] | 13145 | CXXFLAGS="$CXXFLAGS -pedantic" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13146 | if test "$cross_compiling" = yes; then |
Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 13147 | ac_cv_huge_val_sanity=yes |
| 13148 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13149 | cat >conftest.$ac_ext <<_ACEOF |
| 13150 | /* confdefs.h. */ |
| 13151 | _ACEOF |
| 13152 | cat confdefs.h >>conftest.$ac_ext |
| 13153 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 13154 | /* end confdefs.h. */ |
| 13155 | #include <math.h> |
| 13156 | int |
| 13157 | main () |
| 13158 | { |
| 13159 | double x = HUGE_VAL; return x != x; |
| 13160 | ; |
| 13161 | return 0; |
| 13162 | } |
| 13163 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13164 | rm -f conftest$ac_exeext |
| 13165 | if { (ac_try="$ac_link" |
| 13166 | case "(($ac_try" in |
| 13167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13168 | *) ac_try_echo=$ac_try;; |
| 13169 | esac |
| 13170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13171 | (eval "$ac_link") 2>&5 |
| 13172 | ac_status=$? |
| 13173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13174 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13175 | { (case "(($ac_try" in |
| 13176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13177 | *) ac_try_echo=$ac_try;; |
| 13178 | esac |
| 13179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13180 | (eval "$ac_try") 2>&5 |
| 13181 | ac_status=$? |
| 13182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13183 | (exit $ac_status); }; }; then |
Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 13184 | ac_cv_huge_val_sanity=yes |
| 13185 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13186 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13187 | echo "$as_me: failed program was:" >&5 |
| 13188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13189 | |
| 13190 | ( exit $ac_status ) |
| 13191 | ac_cv_huge_val_sanity=no |
Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 13192 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13193 | 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] | 13194 | fi |
| 13195 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13196 | |
Eric Christopher | f0ee6a1 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 13197 | CXXFLAGS=$ac_save_CXXFLAGS |
Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 13198 | ac_ext=c |
| 13199 | ac_cpp='$CPP $CPPFLAGS' |
| 13200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13203 | |
| 13204 | |
| 13205 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13206 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 13207 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | 128ae10 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 13208 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 13209 | |
| 13210 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13211 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 13212 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 13213 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 13214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13215 | else |
| 13216 | cat >conftest.$ac_ext <<_ACEOF |
| 13217 | /* confdefs.h. */ |
| 13218 | _ACEOF |
| 13219 | cat confdefs.h >>conftest.$ac_ext |
| 13220 | cat >>conftest.$ac_ext <<_ACEOF |
| 13221 | /* end confdefs.h. */ |
| 13222 | $ac_includes_default |
| 13223 | typedef pid_t ac__type_new_; |
| 13224 | int |
| 13225 | main () |
| 13226 | { |
| 13227 | if ((ac__type_new_ *) 0) |
| 13228 | return 0; |
| 13229 | if (sizeof (ac__type_new_)) |
| 13230 | return 0; |
| 13231 | ; |
| 13232 | return 0; |
| 13233 | } |
| 13234 | _ACEOF |
| 13235 | rm -f conftest.$ac_objext |
| 13236 | if { (ac_try="$ac_compile" |
| 13237 | case "(($ac_try" in |
| 13238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13239 | *) ac_try_echo=$ac_try;; |
| 13240 | esac |
| 13241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13242 | (eval "$ac_compile") 2>conftest.er1 |
| 13243 | ac_status=$? |
| 13244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13245 | rm -f conftest.er1 |
| 13246 | cat conftest.err >&5 |
| 13247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13248 | (exit $ac_status); } && |
| 13249 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13250 | { (case "(($ac_try" in |
| 13251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13252 | *) ac_try_echo=$ac_try;; |
| 13253 | esac |
| 13254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13255 | (eval "$ac_try") 2>&5 |
| 13256 | ac_status=$? |
| 13257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13258 | (exit $ac_status); }; } && |
| 13259 | { ac_try='test -s conftest.$ac_objext' |
| 13260 | { (case "(($ac_try" in |
| 13261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13262 | *) ac_try_echo=$ac_try;; |
| 13263 | esac |
| 13264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13265 | (eval "$ac_try") 2>&5 |
| 13266 | ac_status=$? |
| 13267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13268 | (exit $ac_status); }; }; then |
| 13269 | ac_cv_type_pid_t=yes |
| 13270 | else |
| 13271 | echo "$as_me: failed program was:" >&5 |
| 13272 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13273 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13274 | ac_cv_type_pid_t=no |
| 13275 | fi |
| 13276 | |
| 13277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13278 | fi |
| 13279 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 13280 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 13281 | if test $ac_cv_type_pid_t = yes; then |
| 13282 | : |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13283 | else |
| 13284 | |
| 13285 | cat >>confdefs.h <<_ACEOF |
| 13286 | #define pid_t int |
| 13287 | _ACEOF |
| 13288 | |
| 13289 | fi |
| 13290 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13291 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 13292 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 13293 | if test "${ac_cv_type_size_t+set}" = set; then |
| 13294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13295 | else |
| 13296 | cat >conftest.$ac_ext <<_ACEOF |
| 13297 | /* confdefs.h. */ |
| 13298 | _ACEOF |
| 13299 | cat confdefs.h >>conftest.$ac_ext |
| 13300 | cat >>conftest.$ac_ext <<_ACEOF |
| 13301 | /* end confdefs.h. */ |
| 13302 | $ac_includes_default |
| 13303 | typedef size_t ac__type_new_; |
| 13304 | int |
| 13305 | main () |
| 13306 | { |
| 13307 | if ((ac__type_new_ *) 0) |
| 13308 | return 0; |
| 13309 | if (sizeof (ac__type_new_)) |
| 13310 | return 0; |
| 13311 | ; |
| 13312 | return 0; |
| 13313 | } |
| 13314 | _ACEOF |
| 13315 | rm -f conftest.$ac_objext |
| 13316 | if { (ac_try="$ac_compile" |
| 13317 | case "(($ac_try" in |
| 13318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13319 | *) ac_try_echo=$ac_try;; |
| 13320 | esac |
| 13321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13322 | (eval "$ac_compile") 2>conftest.er1 |
| 13323 | ac_status=$? |
| 13324 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13325 | rm -f conftest.er1 |
| 13326 | cat conftest.err >&5 |
| 13327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13328 | (exit $ac_status); } && |
| 13329 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13330 | { (case "(($ac_try" in |
| 13331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13332 | *) ac_try_echo=$ac_try;; |
| 13333 | esac |
| 13334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13335 | (eval "$ac_try") 2>&5 |
| 13336 | ac_status=$? |
| 13337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13338 | (exit $ac_status); }; } && |
| 13339 | { ac_try='test -s conftest.$ac_objext' |
| 13340 | { (case "(($ac_try" in |
| 13341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13342 | *) ac_try_echo=$ac_try;; |
| 13343 | esac |
| 13344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13345 | (eval "$ac_try") 2>&5 |
| 13346 | ac_status=$? |
| 13347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13348 | (exit $ac_status); }; }; then |
| 13349 | ac_cv_type_size_t=yes |
| 13350 | else |
| 13351 | echo "$as_me: failed program was:" >&5 |
| 13352 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13353 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13354 | ac_cv_type_size_t=no |
| 13355 | fi |
| 13356 | |
| 13357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13358 | fi |
| 13359 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 13360 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 13361 | if test $ac_cv_type_size_t = yes; then |
| 13362 | : |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13363 | else |
| 13364 | |
| 13365 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13366 | #define size_t unsigned int |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13367 | _ACEOF |
| 13368 | |
| 13369 | fi |
| 13370 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13371 | |
| 13372 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 13373 | #define RETSIGTYPE void |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13374 | _ACEOF |
| 13375 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13376 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 13377 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 13378 | if test "${ac_cv_struct_tm+set}" = set; then |
| 13379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13380 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13381 | cat >conftest.$ac_ext <<_ACEOF |
| 13382 | /* confdefs.h. */ |
| 13383 | _ACEOF |
| 13384 | cat confdefs.h >>conftest.$ac_ext |
| 13385 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13386 | /* end confdefs.h. */ |
| 13387 | #include <sys/types.h> |
| 13388 | #include <time.h> |
| 13389 | |
| 13390 | int |
| 13391 | main () |
| 13392 | { |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13393 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13394 | ; |
| 13395 | return 0; |
| 13396 | } |
| 13397 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13398 | rm -f conftest.$ac_objext |
| 13399 | if { (ac_try="$ac_compile" |
| 13400 | case "(($ac_try" in |
| 13401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13402 | *) ac_try_echo=$ac_try;; |
| 13403 | esac |
| 13404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13405 | (eval "$ac_compile") 2>conftest.er1 |
| 13406 | ac_status=$? |
| 13407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13408 | rm -f conftest.er1 |
| 13409 | cat conftest.err >&5 |
| 13410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13411 | (exit $ac_status); } && |
| 13412 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13413 | { (case "(($ac_try" in |
| 13414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13415 | *) ac_try_echo=$ac_try;; |
| 13416 | esac |
| 13417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13418 | (eval "$ac_try") 2>&5 |
| 13419 | ac_status=$? |
| 13420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13421 | (exit $ac_status); }; } && |
| 13422 | { ac_try='test -s conftest.$ac_objext' |
| 13423 | { (case "(($ac_try" in |
| 13424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13425 | *) ac_try_echo=$ac_try;; |
| 13426 | esac |
| 13427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13428 | (eval "$ac_try") 2>&5 |
| 13429 | ac_status=$? |
| 13430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13431 | (exit $ac_status); }; }; then |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13432 | ac_cv_struct_tm=time.h |
| 13433 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13434 | echo "$as_me: failed program was:" >&5 |
| 13435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13436 | |
| 13437 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13438 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13439 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13441 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13442 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 13443 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13444 | if test $ac_cv_struct_tm = sys/time.h; then |
| 13445 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13446 | cat >>confdefs.h <<\_ACEOF |
| 13447 | #define TM_IN_SYS_TIME 1 |
| 13448 | _ACEOF |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13449 | |
| 13450 | fi |
| 13451 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13452 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 13453 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 13454 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 13455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13456 | else |
| 13457 | cat >conftest.$ac_ext <<_ACEOF |
| 13458 | /* confdefs.h. */ |
| 13459 | _ACEOF |
| 13460 | cat confdefs.h >>conftest.$ac_ext |
| 13461 | cat >>conftest.$ac_ext <<_ACEOF |
| 13462 | /* end confdefs.h. */ |
| 13463 | $ac_includes_default |
| 13464 | typedef int64_t ac__type_new_; |
| 13465 | int |
| 13466 | main () |
| 13467 | { |
| 13468 | if ((ac__type_new_ *) 0) |
| 13469 | return 0; |
| 13470 | if (sizeof (ac__type_new_)) |
| 13471 | return 0; |
| 13472 | ; |
| 13473 | return 0; |
| 13474 | } |
| 13475 | _ACEOF |
| 13476 | rm -f conftest.$ac_objext |
| 13477 | if { (ac_try="$ac_compile" |
| 13478 | case "(($ac_try" in |
| 13479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13480 | *) ac_try_echo=$ac_try;; |
| 13481 | esac |
| 13482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13483 | (eval "$ac_compile") 2>conftest.er1 |
| 13484 | ac_status=$? |
| 13485 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13486 | rm -f conftest.er1 |
| 13487 | cat conftest.err >&5 |
| 13488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13489 | (exit $ac_status); } && |
| 13490 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13491 | { (case "(($ac_try" in |
| 13492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13493 | *) ac_try_echo=$ac_try;; |
| 13494 | esac |
| 13495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13496 | (eval "$ac_try") 2>&5 |
| 13497 | ac_status=$? |
| 13498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13499 | (exit $ac_status); }; } && |
| 13500 | { ac_try='test -s conftest.$ac_objext' |
| 13501 | { (case "(($ac_try" in |
| 13502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13503 | *) ac_try_echo=$ac_try;; |
| 13504 | esac |
| 13505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13506 | (eval "$ac_try") 2>&5 |
| 13507 | ac_status=$? |
| 13508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13509 | (exit $ac_status); }; }; then |
| 13510 | ac_cv_type_int64_t=yes |
| 13511 | else |
| 13512 | echo "$as_me: failed program was:" >&5 |
| 13513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13514 | |
| 13515 | ac_cv_type_int64_t=no |
| 13516 | fi |
| 13517 | |
| 13518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13519 | fi |
| 13520 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 13521 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 13522 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13523 | |
| 13524 | cat >>confdefs.h <<_ACEOF |
| 13525 | #define HAVE_INT64_T 1 |
| 13526 | _ACEOF |
| 13527 | |
| 13528 | |
| 13529 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13530 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 13531 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 13532 | { (exit 1); exit 1; }; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13533 | fi |
| 13534 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13535 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 13536 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 13537 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 13538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13539 | else |
| 13540 | cat >conftest.$ac_ext <<_ACEOF |
| 13541 | /* confdefs.h. */ |
| 13542 | _ACEOF |
| 13543 | cat confdefs.h >>conftest.$ac_ext |
| 13544 | cat >>conftest.$ac_ext <<_ACEOF |
| 13545 | /* end confdefs.h. */ |
| 13546 | $ac_includes_default |
| 13547 | typedef uint64_t ac__type_new_; |
| 13548 | int |
| 13549 | main () |
| 13550 | { |
| 13551 | if ((ac__type_new_ *) 0) |
| 13552 | return 0; |
| 13553 | if (sizeof (ac__type_new_)) |
| 13554 | return 0; |
| 13555 | ; |
| 13556 | return 0; |
| 13557 | } |
| 13558 | _ACEOF |
| 13559 | rm -f conftest.$ac_objext |
| 13560 | if { (ac_try="$ac_compile" |
| 13561 | case "(($ac_try" in |
| 13562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13563 | *) ac_try_echo=$ac_try;; |
| 13564 | esac |
| 13565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13566 | (eval "$ac_compile") 2>conftest.er1 |
| 13567 | ac_status=$? |
| 13568 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13569 | rm -f conftest.er1 |
| 13570 | cat conftest.err >&5 |
| 13571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13572 | (exit $ac_status); } && |
| 13573 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13574 | { (case "(($ac_try" in |
| 13575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13576 | *) ac_try_echo=$ac_try;; |
| 13577 | esac |
| 13578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13579 | (eval "$ac_try") 2>&5 |
| 13580 | ac_status=$? |
| 13581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13582 | (exit $ac_status); }; } && |
| 13583 | { ac_try='test -s conftest.$ac_objext' |
| 13584 | { (case "(($ac_try" in |
| 13585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13586 | *) ac_try_echo=$ac_try;; |
| 13587 | esac |
| 13588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13589 | (eval "$ac_try") 2>&5 |
| 13590 | ac_status=$? |
| 13591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13592 | (exit $ac_status); }; }; then |
| 13593 | ac_cv_type_uint64_t=yes |
| 13594 | else |
| 13595 | echo "$as_me: failed program was:" >&5 |
| 13596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13597 | |
| 13598 | ac_cv_type_uint64_t=no |
| 13599 | fi |
| 13600 | |
| 13601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13602 | fi |
| 13603 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 13604 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 13605 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13606 | |
| 13607 | cat >>confdefs.h <<_ACEOF |
| 13608 | #define HAVE_UINT64_T 1 |
| 13609 | _ACEOF |
| 13610 | |
| 13611 | |
| 13612 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13613 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 13614 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 13615 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 13616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13617 | else |
| 13618 | cat >conftest.$ac_ext <<_ACEOF |
| 13619 | /* confdefs.h. */ |
| 13620 | _ACEOF |
| 13621 | cat confdefs.h >>conftest.$ac_ext |
| 13622 | cat >>conftest.$ac_ext <<_ACEOF |
| 13623 | /* end confdefs.h. */ |
| 13624 | $ac_includes_default |
| 13625 | typedef u_int64_t ac__type_new_; |
| 13626 | int |
| 13627 | main () |
| 13628 | { |
| 13629 | if ((ac__type_new_ *) 0) |
| 13630 | return 0; |
| 13631 | if (sizeof (ac__type_new_)) |
| 13632 | return 0; |
| 13633 | ; |
| 13634 | return 0; |
| 13635 | } |
| 13636 | _ACEOF |
| 13637 | rm -f conftest.$ac_objext |
| 13638 | if { (ac_try="$ac_compile" |
| 13639 | case "(($ac_try" in |
| 13640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13641 | *) ac_try_echo=$ac_try;; |
| 13642 | esac |
| 13643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13644 | (eval "$ac_compile") 2>conftest.er1 |
| 13645 | ac_status=$? |
| 13646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13647 | rm -f conftest.er1 |
| 13648 | cat conftest.err >&5 |
| 13649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13650 | (exit $ac_status); } && |
| 13651 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13652 | { (case "(($ac_try" in |
| 13653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13654 | *) ac_try_echo=$ac_try;; |
| 13655 | esac |
| 13656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13657 | (eval "$ac_try") 2>&5 |
| 13658 | ac_status=$? |
| 13659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13660 | (exit $ac_status); }; } && |
| 13661 | { ac_try='test -s conftest.$ac_objext' |
| 13662 | { (case "(($ac_try" in |
| 13663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13664 | *) ac_try_echo=$ac_try;; |
| 13665 | esac |
| 13666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13667 | (eval "$ac_try") 2>&5 |
| 13668 | ac_status=$? |
| 13669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13670 | (exit $ac_status); }; }; then |
| 13671 | ac_cv_type_u_int64_t=yes |
| 13672 | else |
| 13673 | echo "$as_me: failed program was:" >&5 |
| 13674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13675 | |
| 13676 | ac_cv_type_u_int64_t=no |
| 13677 | fi |
| 13678 | |
| 13679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13680 | fi |
| 13681 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 13682 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 13683 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | d672a3d | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 13684 | |
| 13685 | cat >>confdefs.h <<_ACEOF |
| 13686 | #define HAVE_U_INT64_T 1 |
| 13687 | _ACEOF |
| 13688 | |
| 13689 | |
Misha Brukman | cb46e66 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 13690 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13691 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 13692 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 13693 | { (exit 1); exit 1; }; } |
Misha Brukman | cb46e66 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 13694 | fi |
| 13695 | |
John Criswell | d672a3d | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 13696 | fi |
| 13697 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13698 | |
| 13699 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13700 | |
| 13701 | |
Benjamin Kramer | 37dce44 | 2015-03-09 18:35:18 +0000 | [diff] [blame] | 13702 | for ac_func in backtrace getcwd |
Owen Anderson | 132ae8b | 2013-02-07 00:21:34 +0000 | [diff] [blame] | 13703 | do |
| 13704 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13705 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13706 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 13707 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 13708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13709 | else |
| 13710 | cat >conftest.$ac_ext <<_ACEOF |
| 13711 | /* confdefs.h. */ |
| 13712 | _ACEOF |
| 13713 | cat confdefs.h >>conftest.$ac_ext |
| 13714 | cat >>conftest.$ac_ext <<_ACEOF |
| 13715 | /* end confdefs.h. */ |
| 13716 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13717 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13718 | #define $ac_func innocuous_$ac_func |
| 13719 | |
| 13720 | /* System header to define __stub macros and hopefully few prototypes, |
| 13721 | which can conflict with char $ac_func (); below. |
| 13722 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13723 | <limits.h> exists even on freestanding compilers. */ |
| 13724 | |
| 13725 | #ifdef __STDC__ |
| 13726 | # include <limits.h> |
| 13727 | #else |
| 13728 | # include <assert.h> |
| 13729 | #endif |
| 13730 | |
| 13731 | #undef $ac_func |
| 13732 | |
| 13733 | /* Override any GCC internal prototype to avoid an error. |
| 13734 | Use char because int might match the return type of a GCC |
| 13735 | builtin and then its argument prototype would still apply. */ |
| 13736 | #ifdef __cplusplus |
| 13737 | extern "C" |
| 13738 | #endif |
| 13739 | char $ac_func (); |
| 13740 | /* The GNU C library defines this for functions which it implements |
| 13741 | to always fail with ENOSYS. Some functions are actually named |
| 13742 | something starting with __ and the normal name is an alias. */ |
| 13743 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 13744 | choke me |
| 13745 | #endif |
| 13746 | |
| 13747 | int |
| 13748 | main () |
| 13749 | { |
| 13750 | return $ac_func (); |
| 13751 | ; |
| 13752 | return 0; |
| 13753 | } |
| 13754 | _ACEOF |
| 13755 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13756 | if { (ac_try="$ac_link" |
| 13757 | case "(($ac_try" in |
| 13758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13759 | *) ac_try_echo=$ac_try;; |
| 13760 | esac |
| 13761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13762 | (eval "$ac_link") 2>conftest.er1 |
| 13763 | ac_status=$? |
| 13764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13765 | rm -f conftest.er1 |
| 13766 | cat conftest.err >&5 |
| 13767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13768 | (exit $ac_status); } && |
| 13769 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13770 | { (case "(($ac_try" in |
| 13771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13772 | *) ac_try_echo=$ac_try;; |
| 13773 | esac |
| 13774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13775 | (eval "$ac_try") 2>&5 |
| 13776 | ac_status=$? |
| 13777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13778 | (exit $ac_status); }; } && |
| 13779 | { ac_try='test -s conftest$ac_exeext' |
| 13780 | { (case "(($ac_try" in |
| 13781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13782 | *) ac_try_echo=$ac_try;; |
| 13783 | esac |
| 13784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13785 | (eval "$ac_try") 2>&5 |
| 13786 | ac_status=$? |
| 13787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13788 | (exit $ac_status); }; }; then |
| 13789 | eval "$as_ac_var=yes" |
| 13790 | else |
| 13791 | echo "$as_me: failed program was:" >&5 |
| 13792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13793 | |
| 13794 | eval "$as_ac_var=no" |
| 13795 | fi |
| 13796 | |
| 13797 | rm -f core conftest.err conftest.$ac_objext \ |
| 13798 | conftest$ac_exeext conftest.$ac_ext |
| 13799 | fi |
| 13800 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13801 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13802 | echo "${ECHO_T}$ac_res" >&6; } |
| 13803 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13804 | cat >>confdefs.h <<_ACEOF |
| 13805 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13806 | _ACEOF |
| 13807 | |
| 13808 | fi |
| 13809 | done |
| 13810 | |
| 13811 | |
| 13812 | |
| 13813 | |
| 13814 | |
| 13815 | |
Reid Spencer | edd2ccc | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 13816 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13817 | do |
| 13818 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13819 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13820 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 13821 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 13822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13823 | else |
| 13824 | cat >conftest.$ac_ext <<_ACEOF |
| 13825 | /* confdefs.h. */ |
| 13826 | _ACEOF |
| 13827 | cat confdefs.h >>conftest.$ac_ext |
| 13828 | cat >>conftest.$ac_ext <<_ACEOF |
| 13829 | /* end confdefs.h. */ |
| 13830 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13831 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13832 | #define $ac_func innocuous_$ac_func |
| 13833 | |
| 13834 | /* System header to define __stub macros and hopefully few prototypes, |
| 13835 | which can conflict with char $ac_func (); below. |
| 13836 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13837 | <limits.h> exists even on freestanding compilers. */ |
| 13838 | |
| 13839 | #ifdef __STDC__ |
| 13840 | # include <limits.h> |
| 13841 | #else |
| 13842 | # include <assert.h> |
| 13843 | #endif |
| 13844 | |
| 13845 | #undef $ac_func |
| 13846 | |
| 13847 | /* Override any GCC internal prototype to avoid an error. |
| 13848 | Use char because int might match the return type of a GCC |
| 13849 | builtin and then its argument prototype would still apply. */ |
| 13850 | #ifdef __cplusplus |
| 13851 | extern "C" |
| 13852 | #endif |
| 13853 | char $ac_func (); |
| 13854 | /* The GNU C library defines this for functions which it implements |
| 13855 | to always fail with ENOSYS. Some functions are actually named |
| 13856 | something starting with __ and the normal name is an alias. */ |
| 13857 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 13858 | choke me |
| 13859 | #endif |
| 13860 | |
| 13861 | int |
| 13862 | main () |
| 13863 | { |
| 13864 | return $ac_func (); |
| 13865 | ; |
| 13866 | return 0; |
| 13867 | } |
| 13868 | _ACEOF |
| 13869 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13870 | if { (ac_try="$ac_link" |
| 13871 | case "(($ac_try" in |
| 13872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13873 | *) ac_try_echo=$ac_try;; |
| 13874 | esac |
| 13875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13876 | (eval "$ac_link") 2>conftest.er1 |
| 13877 | ac_status=$? |
| 13878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13879 | rm -f conftest.er1 |
| 13880 | cat conftest.err >&5 |
| 13881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13882 | (exit $ac_status); } && |
| 13883 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13884 | { (case "(($ac_try" in |
| 13885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13886 | *) ac_try_echo=$ac_try;; |
| 13887 | esac |
| 13888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13889 | (eval "$ac_try") 2>&5 |
| 13890 | ac_status=$? |
| 13891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13892 | (exit $ac_status); }; } && |
| 13893 | { ac_try='test -s conftest$ac_exeext' |
| 13894 | { (case "(($ac_try" in |
| 13895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13896 | *) ac_try_echo=$ac_try;; |
| 13897 | esac |
| 13898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13899 | (eval "$ac_try") 2>&5 |
| 13900 | ac_status=$? |
| 13901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13902 | (exit $ac_status); }; }; then |
| 13903 | eval "$as_ac_var=yes" |
| 13904 | else |
| 13905 | echo "$as_me: failed program was:" >&5 |
| 13906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13907 | |
| 13908 | eval "$as_ac_var=no" |
| 13909 | fi |
| 13910 | |
| 13911 | rm -f core conftest.err conftest.$ac_objext \ |
| 13912 | conftest$ac_exeext conftest.$ac_ext |
| 13913 | fi |
| 13914 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13915 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13916 | echo "${ECHO_T}$ac_res" >&6; } |
| 13917 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | edd2ccc | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 13918 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13919 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | edd2ccc | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 13920 | _ACEOF |
| 13921 | |
| 13922 | fi |
| 13923 | done |
| 13924 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13925 | |
| 13926 | |
| 13927 | |
Reid Spencer | edd2ccc | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 13928 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13929 | do |
| 13930 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13931 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13932 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 13933 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 13934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13935 | else |
| 13936 | cat >conftest.$ac_ext <<_ACEOF |
| 13937 | /* confdefs.h. */ |
| 13938 | _ACEOF |
| 13939 | cat confdefs.h >>conftest.$ac_ext |
| 13940 | cat >>conftest.$ac_ext <<_ACEOF |
| 13941 | /* end confdefs.h. */ |
| 13942 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13943 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13944 | #define $ac_func innocuous_$ac_func |
| 13945 | |
| 13946 | /* System header to define __stub macros and hopefully few prototypes, |
| 13947 | which can conflict with char $ac_func (); below. |
| 13948 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13949 | <limits.h> exists even on freestanding compilers. */ |
| 13950 | |
| 13951 | #ifdef __STDC__ |
| 13952 | # include <limits.h> |
| 13953 | #else |
| 13954 | # include <assert.h> |
| 13955 | #endif |
| 13956 | |
| 13957 | #undef $ac_func |
| 13958 | |
| 13959 | /* Override any GCC internal prototype to avoid an error. |
| 13960 | Use char because int might match the return type of a GCC |
| 13961 | builtin and then its argument prototype would still apply. */ |
| 13962 | #ifdef __cplusplus |
| 13963 | extern "C" |
| 13964 | #endif |
| 13965 | char $ac_func (); |
| 13966 | /* The GNU C library defines this for functions which it implements |
| 13967 | to always fail with ENOSYS. Some functions are actually named |
| 13968 | something starting with __ and the normal name is an alias. */ |
| 13969 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 13970 | choke me |
| 13971 | #endif |
| 13972 | |
| 13973 | int |
| 13974 | main () |
| 13975 | { |
| 13976 | return $ac_func (); |
| 13977 | ; |
| 13978 | return 0; |
| 13979 | } |
| 13980 | _ACEOF |
| 13981 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13982 | if { (ac_try="$ac_link" |
| 13983 | case "(($ac_try" in |
| 13984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13985 | *) ac_try_echo=$ac_try;; |
| 13986 | esac |
| 13987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13988 | (eval "$ac_link") 2>conftest.er1 |
| 13989 | ac_status=$? |
| 13990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13991 | rm -f conftest.er1 |
| 13992 | cat conftest.err >&5 |
| 13993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13994 | (exit $ac_status); } && |
| 13995 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13996 | { (case "(($ac_try" in |
| 13997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13998 | *) ac_try_echo=$ac_try;; |
| 13999 | esac |
| 14000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14001 | (eval "$ac_try") 2>&5 |
| 14002 | ac_status=$? |
| 14003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14004 | (exit $ac_status); }; } && |
| 14005 | { ac_try='test -s conftest$ac_exeext' |
| 14006 | { (case "(($ac_try" in |
| 14007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14008 | *) ac_try_echo=$ac_try;; |
| 14009 | esac |
| 14010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14011 | (eval "$ac_try") 2>&5 |
| 14012 | ac_status=$? |
| 14013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14014 | (exit $ac_status); }; }; then |
| 14015 | eval "$as_ac_var=yes" |
| 14016 | else |
| 14017 | echo "$as_me: failed program was:" >&5 |
| 14018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14019 | |
| 14020 | eval "$as_ac_var=no" |
| 14021 | fi |
| 14022 | |
| 14023 | rm -f core conftest.err conftest.$ac_objext \ |
| 14024 | conftest$ac_exeext conftest.$ac_ext |
| 14025 | fi |
| 14026 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14027 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14028 | echo "${ECHO_T}$ac_res" >&6; } |
| 14029 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | a609b65 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 14030 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14031 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | a609b65 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 14032 | _ACEOF |
| 14033 | |
| 14034 | fi |
| 14035 | done |
| 14036 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14037 | |
| 14038 | |
| 14039 | |
| 14040 | |
| 14041 | |
Eric Christopher | dea3bda | 2010-04-16 05:14:21 +0000 | [diff] [blame] | 14042 | |
Eric Christopher | 3053638 | 2013-07-26 17:13:47 +0000 | [diff] [blame] | 14043 | for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14044 | do |
| 14045 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14046 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14047 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14048 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14050 | else |
| 14051 | cat >conftest.$ac_ext <<_ACEOF |
| 14052 | /* confdefs.h. */ |
| 14053 | _ACEOF |
| 14054 | cat confdefs.h >>conftest.$ac_ext |
| 14055 | cat >>conftest.$ac_ext <<_ACEOF |
| 14056 | /* end confdefs.h. */ |
| 14057 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14058 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14059 | #define $ac_func innocuous_$ac_func |
| 14060 | |
| 14061 | /* System header to define __stub macros and hopefully few prototypes, |
| 14062 | which can conflict with char $ac_func (); below. |
| 14063 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14064 | <limits.h> exists even on freestanding compilers. */ |
| 14065 | |
| 14066 | #ifdef __STDC__ |
| 14067 | # include <limits.h> |
| 14068 | #else |
| 14069 | # include <assert.h> |
| 14070 | #endif |
| 14071 | |
| 14072 | #undef $ac_func |
| 14073 | |
| 14074 | /* Override any GCC internal prototype to avoid an error. |
| 14075 | Use char because int might match the return type of a GCC |
| 14076 | builtin and then its argument prototype would still apply. */ |
| 14077 | #ifdef __cplusplus |
| 14078 | extern "C" |
| 14079 | #endif |
| 14080 | char $ac_func (); |
| 14081 | /* The GNU C library defines this for functions which it implements |
| 14082 | to always fail with ENOSYS. Some functions are actually named |
| 14083 | something starting with __ and the normal name is an alias. */ |
| 14084 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 14085 | choke me |
| 14086 | #endif |
| 14087 | |
| 14088 | int |
| 14089 | main () |
| 14090 | { |
| 14091 | return $ac_func (); |
| 14092 | ; |
| 14093 | return 0; |
| 14094 | } |
| 14095 | _ACEOF |
| 14096 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14097 | if { (ac_try="$ac_link" |
| 14098 | case "(($ac_try" in |
| 14099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14100 | *) ac_try_echo=$ac_try;; |
| 14101 | esac |
| 14102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14103 | (eval "$ac_link") 2>conftest.er1 |
| 14104 | ac_status=$? |
| 14105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14106 | rm -f conftest.er1 |
| 14107 | cat conftest.err >&5 |
| 14108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14109 | (exit $ac_status); } && |
| 14110 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14111 | { (case "(($ac_try" in |
| 14112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14113 | *) ac_try_echo=$ac_try;; |
| 14114 | esac |
| 14115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14116 | (eval "$ac_try") 2>&5 |
| 14117 | ac_status=$? |
| 14118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14119 | (exit $ac_status); }; } && |
| 14120 | { ac_try='test -s conftest$ac_exeext' |
| 14121 | { (case "(($ac_try" in |
| 14122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14123 | *) ac_try_echo=$ac_try;; |
| 14124 | esac |
| 14125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14126 | (eval "$ac_try") 2>&5 |
| 14127 | ac_status=$? |
| 14128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14129 | (exit $ac_status); }; }; then |
| 14130 | eval "$as_ac_var=yes" |
| 14131 | else |
| 14132 | echo "$as_me: failed program was:" >&5 |
| 14133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14134 | |
| 14135 | eval "$as_ac_var=no" |
| 14136 | fi |
| 14137 | |
| 14138 | rm -f core conftest.err conftest.$ac_objext \ |
| 14139 | conftest$ac_exeext conftest.$ac_ext |
| 14140 | fi |
| 14141 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14142 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14143 | echo "${ECHO_T}$ac_res" >&6; } |
| 14144 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 246676d | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 14145 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14146 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 246676d | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 14147 | _ACEOF |
| 14148 | |
| 14149 | fi |
| 14150 | done |
Reid Spencer | a609b65 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 14151 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14152 | |
| 14153 | |
| 14154 | |
Todd Fiala | 4ccfe39 | 2014-02-05 05:04:36 +0000 | [diff] [blame] | 14155 | for ac_func in strerror strerror_r setenv |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14156 | do |
| 14157 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14158 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14159 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14160 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14162 | else |
| 14163 | cat >conftest.$ac_ext <<_ACEOF |
| 14164 | /* confdefs.h. */ |
| 14165 | _ACEOF |
| 14166 | cat confdefs.h >>conftest.$ac_ext |
| 14167 | cat >>conftest.$ac_ext <<_ACEOF |
| 14168 | /* end confdefs.h. */ |
| 14169 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14170 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14171 | #define $ac_func innocuous_$ac_func |
| 14172 | |
| 14173 | /* System header to define __stub macros and hopefully few prototypes, |
| 14174 | which can conflict with char $ac_func (); below. |
| 14175 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14176 | <limits.h> exists even on freestanding compilers. */ |
| 14177 | |
| 14178 | #ifdef __STDC__ |
| 14179 | # include <limits.h> |
| 14180 | #else |
| 14181 | # include <assert.h> |
| 14182 | #endif |
| 14183 | |
| 14184 | #undef $ac_func |
| 14185 | |
| 14186 | /* Override any GCC internal prototype to avoid an error. |
| 14187 | Use char because int might match the return type of a GCC |
| 14188 | builtin and then its argument prototype would still apply. */ |
| 14189 | #ifdef __cplusplus |
| 14190 | extern "C" |
| 14191 | #endif |
| 14192 | char $ac_func (); |
| 14193 | /* The GNU C library defines this for functions which it implements |
| 14194 | to always fail with ENOSYS. Some functions are actually named |
| 14195 | something starting with __ and the normal name is an alias. */ |
| 14196 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 14197 | choke me |
| 14198 | #endif |
| 14199 | |
| 14200 | int |
| 14201 | main () |
| 14202 | { |
| 14203 | return $ac_func (); |
| 14204 | ; |
| 14205 | return 0; |
| 14206 | } |
| 14207 | _ACEOF |
| 14208 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14209 | if { (ac_try="$ac_link" |
| 14210 | case "(($ac_try" in |
| 14211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14212 | *) ac_try_echo=$ac_try;; |
| 14213 | esac |
| 14214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14215 | (eval "$ac_link") 2>conftest.er1 |
| 14216 | ac_status=$? |
| 14217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14218 | rm -f conftest.er1 |
| 14219 | cat conftest.err >&5 |
| 14220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14221 | (exit $ac_status); } && |
| 14222 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14223 | { (case "(($ac_try" in |
| 14224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14225 | *) ac_try_echo=$ac_try;; |
| 14226 | esac |
| 14227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14228 | (eval "$ac_try") 2>&5 |
| 14229 | ac_status=$? |
| 14230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14231 | (exit $ac_status); }; } && |
| 14232 | { ac_try='test -s conftest$ac_exeext' |
| 14233 | { (case "(($ac_try" in |
| 14234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14235 | *) ac_try_echo=$ac_try;; |
| 14236 | esac |
| 14237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14238 | (eval "$ac_try") 2>&5 |
| 14239 | ac_status=$? |
| 14240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14241 | (exit $ac_status); }; }; then |
| 14242 | eval "$as_ac_var=yes" |
| 14243 | else |
| 14244 | echo "$as_me: failed program was:" >&5 |
| 14245 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14246 | |
| 14247 | eval "$as_ac_var=no" |
| 14248 | fi |
| 14249 | |
| 14250 | rm -f core conftest.err conftest.$ac_objext \ |
| 14251 | conftest$ac_exeext conftest.$ac_ext |
| 14252 | fi |
| 14253 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14254 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14255 | echo "${ECHO_T}$ac_res" >&6; } |
| 14256 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 14257 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14258 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 14259 | _ACEOF |
| 14260 | |
| 14261 | fi |
| 14262 | done |
| 14263 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14264 | |
| 14265 | |
| 14266 | |
| 14267 | |
Chris Lattner | 8147902 | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 14268 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14269 | do |
| 14270 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14271 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14272 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14273 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14275 | else |
| 14276 | cat >conftest.$ac_ext <<_ACEOF |
| 14277 | /* confdefs.h. */ |
| 14278 | _ACEOF |
| 14279 | cat confdefs.h >>conftest.$ac_ext |
| 14280 | cat >>conftest.$ac_ext <<_ACEOF |
| 14281 | /* end confdefs.h. */ |
| 14282 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14283 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14284 | #define $ac_func innocuous_$ac_func |
| 14285 | |
| 14286 | /* System header to define __stub macros and hopefully few prototypes, |
| 14287 | which can conflict with char $ac_func (); below. |
| 14288 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14289 | <limits.h> exists even on freestanding compilers. */ |
| 14290 | |
| 14291 | #ifdef __STDC__ |
| 14292 | # include <limits.h> |
| 14293 | #else |
| 14294 | # include <assert.h> |
| 14295 | #endif |
| 14296 | |
| 14297 | #undef $ac_func |
| 14298 | |
| 14299 | /* Override any GCC internal prototype to avoid an error. |
| 14300 | Use char because int might match the return type of a GCC |
| 14301 | builtin and then its argument prototype would still apply. */ |
| 14302 | #ifdef __cplusplus |
| 14303 | extern "C" |
| 14304 | #endif |
| 14305 | char $ac_func (); |
| 14306 | /* The GNU C library defines this for functions which it implements |
| 14307 | to always fail with ENOSYS. Some functions are actually named |
| 14308 | something starting with __ and the normal name is an alias. */ |
| 14309 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 14310 | choke me |
| 14311 | #endif |
| 14312 | |
| 14313 | int |
| 14314 | main () |
| 14315 | { |
| 14316 | return $ac_func (); |
| 14317 | ; |
| 14318 | return 0; |
| 14319 | } |
| 14320 | _ACEOF |
| 14321 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14322 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 14329 | ac_status=$? |
| 14330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14331 | rm -f conftest.er1 |
| 14332 | cat conftest.err >&5 |
| 14333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14334 | (exit $ac_status); } && |
| 14335 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14336 | { (case "(($ac_try" in |
| 14337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14338 | *) ac_try_echo=$ac_try;; |
| 14339 | esac |
| 14340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14341 | (eval "$ac_try") 2>&5 |
| 14342 | ac_status=$? |
| 14343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14344 | (exit $ac_status); }; } && |
| 14345 | { ac_try='test -s conftest$ac_exeext' |
| 14346 | { (case "(($ac_try" in |
| 14347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14348 | *) ac_try_echo=$ac_try;; |
| 14349 | esac |
| 14350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14351 | (eval "$ac_try") 2>&5 |
| 14352 | ac_status=$? |
| 14353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14354 | (exit $ac_status); }; }; then |
| 14355 | eval "$as_ac_var=yes" |
| 14356 | else |
| 14357 | echo "$as_me: failed program was:" >&5 |
| 14358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14359 | |
| 14360 | eval "$as_ac_var=no" |
| 14361 | fi |
| 14362 | |
| 14363 | rm -f core conftest.err conftest.$ac_objext \ |
| 14364 | conftest$ac_exeext conftest.$ac_ext |
| 14365 | fi |
| 14366 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14367 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14368 | echo "${ECHO_T}$ac_res" >&6; } |
| 14369 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14370 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14371 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14372 | _ACEOF |
| 14373 | |
| 14374 | fi |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14375 | done |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14376 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14377 | |
| 14378 | |
| 14379 | |
| 14380 | |
Daniel Dunbar | 7840c54 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 14381 | |
| 14382 | for ac_func in setjmp longjmp sigsetjmp siglongjmp writev |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14383 | do |
| 14384 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14385 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14386 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14387 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14389 | else |
| 14390 | cat >conftest.$ac_ext <<_ACEOF |
| 14391 | /* confdefs.h. */ |
| 14392 | _ACEOF |
| 14393 | cat confdefs.h >>conftest.$ac_ext |
| 14394 | cat >>conftest.$ac_ext <<_ACEOF |
| 14395 | /* end confdefs.h. */ |
| 14396 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14397 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14398 | #define $ac_func innocuous_$ac_func |
| 14399 | |
| 14400 | /* System header to define __stub macros and hopefully few prototypes, |
| 14401 | which can conflict with char $ac_func (); below. |
| 14402 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14403 | <limits.h> exists even on freestanding compilers. */ |
| 14404 | |
| 14405 | #ifdef __STDC__ |
| 14406 | # include <limits.h> |
| 14407 | #else |
| 14408 | # include <assert.h> |
| 14409 | #endif |
| 14410 | |
| 14411 | #undef $ac_func |
| 14412 | |
| 14413 | /* Override any GCC internal prototype to avoid an error. |
| 14414 | Use char because int might match the return type of a GCC |
| 14415 | builtin and then its argument prototype would still apply. */ |
| 14416 | #ifdef __cplusplus |
| 14417 | extern "C" |
| 14418 | #endif |
| 14419 | char $ac_func (); |
| 14420 | /* The GNU C library defines this for functions which it implements |
| 14421 | to always fail with ENOSYS. Some functions are actually named |
| 14422 | something starting with __ and the normal name is an alias. */ |
| 14423 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 14424 | choke me |
| 14425 | #endif |
| 14426 | |
| 14427 | int |
| 14428 | main () |
| 14429 | { |
| 14430 | return $ac_func (); |
| 14431 | ; |
| 14432 | return 0; |
| 14433 | } |
| 14434 | _ACEOF |
| 14435 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14436 | if { (ac_try="$ac_link" |
| 14437 | case "(($ac_try" in |
| 14438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14439 | *) ac_try_echo=$ac_try;; |
| 14440 | esac |
| 14441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14442 | (eval "$ac_link") 2>conftest.er1 |
| 14443 | ac_status=$? |
| 14444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14445 | rm -f conftest.er1 |
| 14446 | cat conftest.err >&5 |
| 14447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14448 | (exit $ac_status); } && |
| 14449 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14450 | { (case "(($ac_try" in |
| 14451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14452 | *) ac_try_echo=$ac_try;; |
| 14453 | esac |
| 14454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14455 | (eval "$ac_try") 2>&5 |
| 14456 | ac_status=$? |
| 14457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14458 | (exit $ac_status); }; } && |
| 14459 | { ac_try='test -s conftest$ac_exeext' |
| 14460 | { (case "(($ac_try" in |
| 14461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14462 | *) ac_try_echo=$ac_try;; |
| 14463 | esac |
| 14464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14465 | (eval "$ac_try") 2>&5 |
| 14466 | ac_status=$? |
| 14467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14468 | (exit $ac_status); }; }; then |
| 14469 | eval "$as_ac_var=yes" |
| 14470 | else |
| 14471 | echo "$as_me: failed program was:" >&5 |
| 14472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14473 | |
| 14474 | eval "$as_ac_var=no" |
| 14475 | fi |
| 14476 | |
| 14477 | rm -f core conftest.err conftest.$ac_objext \ |
| 14478 | conftest$ac_exeext conftest.$ac_ext |
| 14479 | fi |
| 14480 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14481 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14482 | echo "${ECHO_T}$ac_res" >&6; } |
| 14483 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | a31ac4e | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 14484 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14485 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | a31ac4e | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 14486 | _ACEOF |
| 14487 | |
| 14488 | fi |
| 14489 | done |
| 14490 | |
Eric Christopher | a24dc7f | 2013-07-04 01:10:38 +0000 | [diff] [blame] | 14491 | |
| 14492 | |
| 14493 | for ac_func in futimes futimens |
| 14494 | do |
| 14495 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14496 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14497 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14498 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14500 | else |
| 14501 | cat >conftest.$ac_ext <<_ACEOF |
| 14502 | /* confdefs.h. */ |
| 14503 | _ACEOF |
| 14504 | cat confdefs.h >>conftest.$ac_ext |
| 14505 | cat >>conftest.$ac_ext <<_ACEOF |
| 14506 | /* end confdefs.h. */ |
| 14507 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14508 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14509 | #define $ac_func innocuous_$ac_func |
| 14510 | |
| 14511 | /* System header to define __stub macros and hopefully few prototypes, |
| 14512 | which can conflict with char $ac_func (); below. |
| 14513 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14514 | <limits.h> exists even on freestanding compilers. */ |
| 14515 | |
| 14516 | #ifdef __STDC__ |
| 14517 | # include <limits.h> |
| 14518 | #else |
| 14519 | # include <assert.h> |
| 14520 | #endif |
| 14521 | |
| 14522 | #undef $ac_func |
| 14523 | |
| 14524 | /* Override any GCC internal prototype to avoid an error. |
| 14525 | Use char because int might match the return type of a GCC |
| 14526 | builtin and then its argument prototype would still apply. */ |
| 14527 | #ifdef __cplusplus |
| 14528 | extern "C" |
| 14529 | #endif |
| 14530 | char $ac_func (); |
| 14531 | /* The GNU C library defines this for functions which it implements |
| 14532 | to always fail with ENOSYS. Some functions are actually named |
| 14533 | something starting with __ and the normal name is an alias. */ |
| 14534 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 14535 | choke me |
| 14536 | #endif |
| 14537 | |
| 14538 | int |
| 14539 | main () |
| 14540 | { |
| 14541 | return $ac_func (); |
| 14542 | ; |
| 14543 | return 0; |
| 14544 | } |
| 14545 | _ACEOF |
| 14546 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14547 | if { (ac_try="$ac_link" |
| 14548 | case "(($ac_try" in |
| 14549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14550 | *) ac_try_echo=$ac_try;; |
| 14551 | esac |
| 14552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14553 | (eval "$ac_link") 2>conftest.er1 |
| 14554 | ac_status=$? |
| 14555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14556 | rm -f conftest.er1 |
| 14557 | cat conftest.err >&5 |
| 14558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14559 | (exit $ac_status); } && |
| 14560 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14561 | { (case "(($ac_try" in |
| 14562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14563 | *) ac_try_echo=$ac_try;; |
| 14564 | esac |
| 14565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14566 | (eval "$ac_try") 2>&5 |
| 14567 | ac_status=$? |
| 14568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14569 | (exit $ac_status); }; } && |
| 14570 | { ac_try='test -s conftest$ac_exeext' |
| 14571 | { (case "(($ac_try" in |
| 14572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14573 | *) ac_try_echo=$ac_try;; |
| 14574 | esac |
| 14575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14576 | (eval "$ac_try") 2>&5 |
| 14577 | ac_status=$? |
| 14578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14579 | (exit $ac_status); }; }; then |
| 14580 | eval "$as_ac_var=yes" |
| 14581 | else |
| 14582 | echo "$as_me: failed program was:" >&5 |
| 14583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14584 | |
| 14585 | eval "$as_ac_var=no" |
| 14586 | fi |
| 14587 | |
| 14588 | rm -f core conftest.err conftest.$ac_objext \ |
| 14589 | conftest$ac_exeext conftest.$ac_ext |
| 14590 | fi |
| 14591 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14592 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14593 | echo "${ECHO_T}$ac_res" >&6; } |
| 14594 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14595 | cat >>confdefs.h <<_ACEOF |
| 14596 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14597 | _ACEOF |
| 14598 | |
| 14599 | fi |
| 14600 | done |
| 14601 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14602 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 14603 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 14604 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 14605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14606 | else |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14607 | ac_ext=c |
John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 14608 | ac_cpp='$CPP $CPPFLAGS' |
| 14609 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14610 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14611 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14612 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14613 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8de4605 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 14614 | llvmac_cv_c_printf_a=no |
John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 14615 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14616 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14617 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14618 | /* confdefs.h. */ |
| 14619 | _ACEOF |
| 14620 | cat confdefs.h >>conftest.$ac_ext |
| 14621 | cat >>conftest.$ac_ext <<_ACEOF |
| 14622 | /* end confdefs.h. */ |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 14623 | |
John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 14624 | #include <stdio.h> |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14625 | #include <stdlib.h> |
| 14626 | |
John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 14627 | int |
| 14628 | main () |
| 14629 | { |
| 14630 | |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14631 | volatile double A, B; |
| 14632 | char Buffer[100]; |
| 14633 | A = 1; |
| 14634 | A /= 10.0; |
| 14635 | sprintf(Buffer, "%a", A); |
| 14636 | B = atof(Buffer); |
| 14637 | if (A != B) |
| 14638 | return (1); |
| 14639 | if (A != 0x1.999999999999ap-4) |
| 14640 | return (1); |
| 14641 | return (0); |
John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 14642 | ; |
| 14643 | return 0; |
| 14644 | } |
| 14645 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14646 | rm -f conftest$ac_exeext |
| 14647 | if { (ac_try="$ac_link" |
| 14648 | case "(($ac_try" in |
| 14649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14650 | *) ac_try_echo=$ac_try;; |
| 14651 | esac |
| 14652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14653 | (eval "$ac_link") 2>&5 |
| 14654 | ac_status=$? |
| 14655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14656 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14657 | { (case "(($ac_try" in |
| 14658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14659 | *) ac_try_echo=$ac_try;; |
| 14660 | esac |
| 14661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14662 | (eval "$ac_try") 2>&5 |
| 14663 | ac_status=$? |
| 14664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14665 | (exit $ac_status); }; }; then |
Reid Spencer | 8de4605 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 14666 | llvm_cv_c_printf_a=yes |
John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 14667 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14668 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14669 | echo "$as_me: failed program was:" >&5 |
| 14670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14671 | |
| 14672 | ( exit $ac_status ) |
| 14673 | llvmac_cv_c_printf_a=no |
John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 14674 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14675 | 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] | 14676 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14677 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14678 | |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14679 | ac_ext=c |
John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 14680 | ac_cpp='$CPP $CPPFLAGS' |
| 14681 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14682 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14683 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14684 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14685 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14686 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 14687 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 8de4605 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 14688 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 14689 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14690 | cat >>confdefs.h <<\_ACEOF |
| 14691 | #define HAVE_PRINTF_A 1 |
| 14692 | _ACEOF |
John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 14693 | |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14694 | fi |
John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 14695 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14696 | |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 14697 | |
| 14698 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14699 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 14700 | if test "${ac_cv_func_rand48+set}" = set; then |
| 14701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14702 | else |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 14703 | |
| 14704 | ac_ext=cpp |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14705 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 14706 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14707 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14708 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 14709 | |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 14710 | cat >conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14711 | /* confdefs.h. */ |
| 14712 | _ACEOF |
| 14713 | cat confdefs.h >>conftest.$ac_ext |
| 14714 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14715 | /* end confdefs.h. */ |
| 14716 | #include <stdlib.h> |
| 14717 | int |
| 14718 | main () |
| 14719 | { |
| 14720 | srand48(0);lrand48();drand48(); |
| 14721 | ; |
| 14722 | return 0; |
| 14723 | } |
| 14724 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14725 | rm -f conftest.$ac_objext |
| 14726 | if { (ac_try="$ac_compile" |
| 14727 | case "(($ac_try" in |
| 14728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14729 | *) ac_try_echo=$ac_try;; |
| 14730 | esac |
| 14731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14732 | (eval "$ac_compile") 2>conftest.er1 |
| 14733 | ac_status=$? |
| 14734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14735 | rm -f conftest.er1 |
| 14736 | cat conftest.err >&5 |
| 14737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14738 | (exit $ac_status); } && |
| 14739 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 14740 | { (case "(($ac_try" in |
| 14741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14742 | *) ac_try_echo=$ac_try;; |
| 14743 | esac |
| 14744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14745 | (eval "$ac_try") 2>&5 |
| 14746 | ac_status=$? |
| 14747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14748 | (exit $ac_status); }; } && |
| 14749 | { ac_try='test -s conftest.$ac_objext' |
| 14750 | { (case "(($ac_try" in |
| 14751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14752 | *) ac_try_echo=$ac_try;; |
| 14753 | esac |
| 14754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14755 | (eval "$ac_try") 2>&5 |
| 14756 | ac_status=$? |
| 14757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14758 | (exit $ac_status); }; }; then |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14759 | ac_cv_func_rand48=yes |
| 14760 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14761 | echo "$as_me: failed program was:" >&5 |
| 14762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14763 | |
| 14764 | ac_cv_func_rand48=no |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14765 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14766 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 14768 | ac_ext=c |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14769 | ac_cpp='$CPP $CPPFLAGS' |
| 14770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14773 | |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 14774 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14775 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14776 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 14777 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14778 | |
| 14779 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 14780 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14781 | cat >>confdefs.h <<\_ACEOF |
| 14782 | #define HAVE_RAND48 1 |
| 14783 | _ACEOF |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14784 | |
| 14785 | fi |
John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 14786 | |
| 14787 | |
Todd Fiala | 4ccfe39 | 2014-02-05 05:04:36 +0000 | [diff] [blame] | 14788 | { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5 |
| 14789 | echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; } |
| 14790 | if test "${ac_cv_have_decl_arc4random+set}" = set; then |
| 14791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14792 | else |
| 14793 | cat >conftest.$ac_ext <<_ACEOF |
| 14794 | /* confdefs.h. */ |
| 14795 | _ACEOF |
| 14796 | cat confdefs.h >>conftest.$ac_ext |
| 14797 | cat >>conftest.$ac_ext <<_ACEOF |
| 14798 | /* end confdefs.h. */ |
| 14799 | $ac_includes_default |
| 14800 | int |
| 14801 | main () |
| 14802 | { |
| 14803 | #ifndef arc4random |
| 14804 | char *p = (char *) arc4random; |
| 14805 | return !p; |
| 14806 | #endif |
| 14807 | |
| 14808 | ; |
| 14809 | return 0; |
| 14810 | } |
| 14811 | _ACEOF |
| 14812 | rm -f conftest.$ac_objext |
| 14813 | if { (ac_try="$ac_compile" |
| 14814 | case "(($ac_try" in |
| 14815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14816 | *) ac_try_echo=$ac_try;; |
| 14817 | esac |
| 14818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14819 | (eval "$ac_compile") 2>conftest.er1 |
| 14820 | ac_status=$? |
| 14821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14822 | rm -f conftest.er1 |
| 14823 | cat conftest.err >&5 |
| 14824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14825 | (exit $ac_status); } && |
| 14826 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14827 | { (case "(($ac_try" in |
| 14828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14829 | *) ac_try_echo=$ac_try;; |
| 14830 | esac |
| 14831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14832 | (eval "$ac_try") 2>&5 |
| 14833 | ac_status=$? |
| 14834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14835 | (exit $ac_status); }; } && |
| 14836 | { ac_try='test -s conftest.$ac_objext' |
| 14837 | { (case "(($ac_try" in |
| 14838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14839 | *) ac_try_echo=$ac_try;; |
| 14840 | esac |
| 14841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14842 | (eval "$ac_try") 2>&5 |
| 14843 | ac_status=$? |
| 14844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14845 | (exit $ac_status); }; }; then |
| 14846 | ac_cv_have_decl_arc4random=yes |
| 14847 | else |
| 14848 | echo "$as_me: failed program was:" >&5 |
| 14849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14850 | |
| 14851 | ac_cv_have_decl_arc4random=no |
| 14852 | fi |
| 14853 | |
| 14854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14855 | fi |
| 14856 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5 |
| 14857 | echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; } |
| 14858 | if test $ac_cv_have_decl_arc4random = yes; then |
| 14859 | |
| 14860 | cat >>confdefs.h <<_ACEOF |
| 14861 | #define HAVE_DECL_ARC4RANDOM 1 |
| 14862 | _ACEOF |
| 14863 | |
| 14864 | |
| 14865 | else |
| 14866 | cat >>confdefs.h <<_ACEOF |
| 14867 | #define HAVE_DECL_ARC4RANDOM 0 |
| 14868 | _ACEOF |
| 14869 | |
| 14870 | |
| 14871 | fi |
| 14872 | |
| 14873 | |
| 14874 | |
NAKAMURA Takumi | 18911180 | 2011-02-09 04:18:48 +0000 | [diff] [blame] | 14875 | { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 |
| 14876 | echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } |
| 14877 | if test "${ac_cv_have_decl_strerror_s+set}" = set; then |
| 14878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14879 | else |
| 14880 | cat >conftest.$ac_ext <<_ACEOF |
| 14881 | /* confdefs.h. */ |
| 14882 | _ACEOF |
| 14883 | cat confdefs.h >>conftest.$ac_ext |
| 14884 | cat >>conftest.$ac_ext <<_ACEOF |
| 14885 | /* end confdefs.h. */ |
| 14886 | $ac_includes_default |
| 14887 | int |
| 14888 | main () |
| 14889 | { |
| 14890 | #ifndef strerror_s |
| 14891 | char *p = (char *) strerror_s; |
| 14892 | return !p; |
| 14893 | #endif |
| 14894 | |
| 14895 | ; |
| 14896 | return 0; |
| 14897 | } |
| 14898 | _ACEOF |
| 14899 | rm -f conftest.$ac_objext |
| 14900 | if { (ac_try="$ac_compile" |
| 14901 | case "(($ac_try" in |
| 14902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14903 | *) ac_try_echo=$ac_try;; |
| 14904 | esac |
| 14905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14906 | (eval "$ac_compile") 2>conftest.er1 |
| 14907 | ac_status=$? |
| 14908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14909 | rm -f conftest.er1 |
| 14910 | cat conftest.err >&5 |
| 14911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14912 | (exit $ac_status); } && |
| 14913 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14914 | { (case "(($ac_try" in |
| 14915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14916 | *) ac_try_echo=$ac_try;; |
| 14917 | esac |
| 14918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14919 | (eval "$ac_try") 2>&5 |
| 14920 | ac_status=$? |
| 14921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14922 | (exit $ac_status); }; } && |
| 14923 | { ac_try='test -s conftest.$ac_objext' |
| 14924 | { (case "(($ac_try" in |
| 14925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14926 | *) ac_try_echo=$ac_try;; |
| 14927 | esac |
| 14928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14929 | (eval "$ac_try") 2>&5 |
| 14930 | ac_status=$? |
| 14931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14932 | (exit $ac_status); }; }; then |
| 14933 | ac_cv_have_decl_strerror_s=yes |
| 14934 | else |
| 14935 | echo "$as_me: failed program was:" >&5 |
| 14936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14937 | |
| 14938 | ac_cv_have_decl_strerror_s=no |
| 14939 | fi |
| 14940 | |
| 14941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14942 | fi |
| 14943 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 |
| 14944 | echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } |
| 14945 | if test $ac_cv_have_decl_strerror_s = yes; then |
| 14946 | |
| 14947 | cat >>confdefs.h <<_ACEOF |
| 14948 | #define HAVE_DECL_STRERROR_S 1 |
| 14949 | _ACEOF |
| 14950 | |
| 14951 | |
| 14952 | else |
| 14953 | cat >>confdefs.h <<_ACEOF |
| 14954 | #define HAVE_DECL_STRERROR_S 0 |
| 14955 | _ACEOF |
| 14956 | |
| 14957 | |
| 14958 | fi |
| 14959 | |
| 14960 | |
| 14961 | |
NAKAMURA Takumi | 03a541f | 2011-02-05 15:11:53 +0000 | [diff] [blame] | 14962 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 14963 | { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 |
| 14964 | echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } |
| 14965 | if test "${ac_cv_lib_gcc__alloca+set}" = set; then |
| 14966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14967 | else |
| 14968 | ac_check_lib_save_LIBS=$LIBS |
| 14969 | LIBS="-lgcc $LIBS" |
| 14970 | cat >conftest.$ac_ext <<_ACEOF |
| 14971 | /* confdefs.h. */ |
| 14972 | _ACEOF |
| 14973 | cat confdefs.h >>conftest.$ac_ext |
| 14974 | cat >>conftest.$ac_ext <<_ACEOF |
| 14975 | /* end confdefs.h. */ |
| 14976 | |
| 14977 | /* Override any GCC internal prototype to avoid an error. |
| 14978 | Use char because int might match the return type of a GCC |
| 14979 | builtin and then its argument prototype would still apply. */ |
| 14980 | #ifdef __cplusplus |
| 14981 | extern "C" |
| 14982 | #endif |
| 14983 | char _alloca (); |
| 14984 | int |
| 14985 | main () |
| 14986 | { |
| 14987 | return _alloca (); |
| 14988 | ; |
| 14989 | return 0; |
| 14990 | } |
| 14991 | _ACEOF |
| 14992 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14993 | if { (ac_try="$ac_link" |
| 14994 | case "(($ac_try" in |
| 14995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14996 | *) ac_try_echo=$ac_try;; |
| 14997 | esac |
| 14998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14999 | (eval "$ac_link") 2>conftest.er1 |
| 15000 | ac_status=$? |
| 15001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15002 | rm -f conftest.er1 |
| 15003 | cat conftest.err >&5 |
| 15004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15005 | (exit $ac_status); } && |
| 15006 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15007 | { (case "(($ac_try" in |
| 15008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15009 | *) ac_try_echo=$ac_try;; |
| 15010 | esac |
| 15011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15012 | (eval "$ac_try") 2>&5 |
| 15013 | ac_status=$? |
| 15014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15015 | (exit $ac_status); }; } && |
| 15016 | { ac_try='test -s conftest$ac_exeext' |
| 15017 | { (case "(($ac_try" in |
| 15018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15019 | *) ac_try_echo=$ac_try;; |
| 15020 | esac |
| 15021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15022 | (eval "$ac_try") 2>&5 |
| 15023 | ac_status=$? |
| 15024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15025 | (exit $ac_status); }; }; then |
| 15026 | ac_cv_lib_gcc__alloca=yes |
| 15027 | else |
| 15028 | echo "$as_me: failed program was:" >&5 |
| 15029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15030 | |
| 15031 | ac_cv_lib_gcc__alloca=no |
| 15032 | fi |
| 15033 | |
| 15034 | rm -f core conftest.err conftest.$ac_objext \ |
| 15035 | conftest$ac_exeext conftest.$ac_ext |
| 15036 | LIBS=$ac_check_lib_save_LIBS |
| 15037 | fi |
| 15038 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 |
| 15039 | echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } |
| 15040 | if test $ac_cv_lib_gcc__alloca = yes; then |
| 15041 | |
| 15042 | cat >>confdefs.h <<\_ACEOF |
| 15043 | #define HAVE__ALLOCA 1 |
| 15044 | _ACEOF |
| 15045 | |
| 15046 | fi |
| 15047 | |
| 15048 | { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 |
| 15049 | echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } |
| 15050 | if test "${ac_cv_lib_gcc___alloca+set}" = set; then |
| 15051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15052 | else |
| 15053 | ac_check_lib_save_LIBS=$LIBS |
| 15054 | LIBS="-lgcc $LIBS" |
| 15055 | cat >conftest.$ac_ext <<_ACEOF |
| 15056 | /* confdefs.h. */ |
| 15057 | _ACEOF |
| 15058 | cat confdefs.h >>conftest.$ac_ext |
| 15059 | cat >>conftest.$ac_ext <<_ACEOF |
| 15060 | /* end confdefs.h. */ |
| 15061 | |
| 15062 | /* Override any GCC internal prototype to avoid an error. |
| 15063 | Use char because int might match the return type of a GCC |
| 15064 | builtin and then its argument prototype would still apply. */ |
| 15065 | #ifdef __cplusplus |
| 15066 | extern "C" |
| 15067 | #endif |
| 15068 | char __alloca (); |
| 15069 | int |
| 15070 | main () |
| 15071 | { |
| 15072 | return __alloca (); |
| 15073 | ; |
| 15074 | return 0; |
| 15075 | } |
| 15076 | _ACEOF |
| 15077 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15078 | if { (ac_try="$ac_link" |
| 15079 | case "(($ac_try" in |
| 15080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15081 | *) ac_try_echo=$ac_try;; |
| 15082 | esac |
| 15083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15084 | (eval "$ac_link") 2>conftest.er1 |
| 15085 | ac_status=$? |
| 15086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15087 | rm -f conftest.er1 |
| 15088 | cat conftest.err >&5 |
| 15089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15090 | (exit $ac_status); } && |
| 15091 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15092 | { (case "(($ac_try" in |
| 15093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15094 | *) ac_try_echo=$ac_try;; |
| 15095 | esac |
| 15096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15097 | (eval "$ac_try") 2>&5 |
| 15098 | ac_status=$? |
| 15099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15100 | (exit $ac_status); }; } && |
| 15101 | { ac_try='test -s conftest$ac_exeext' |
| 15102 | { (case "(($ac_try" in |
| 15103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15104 | *) ac_try_echo=$ac_try;; |
| 15105 | esac |
| 15106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15107 | (eval "$ac_try") 2>&5 |
| 15108 | ac_status=$? |
| 15109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15110 | (exit $ac_status); }; }; then |
| 15111 | ac_cv_lib_gcc___alloca=yes |
| 15112 | else |
| 15113 | echo "$as_me: failed program was:" >&5 |
| 15114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15115 | |
| 15116 | ac_cv_lib_gcc___alloca=no |
| 15117 | fi |
| 15118 | |
| 15119 | rm -f core conftest.err conftest.$ac_objext \ |
| 15120 | conftest$ac_exeext conftest.$ac_ext |
| 15121 | LIBS=$ac_check_lib_save_LIBS |
| 15122 | fi |
| 15123 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 |
| 15124 | echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } |
| 15125 | if test $ac_cv_lib_gcc___alloca = yes; then |
| 15126 | |
| 15127 | cat >>confdefs.h <<\_ACEOF |
| 15128 | #define HAVE___ALLOCA 1 |
| 15129 | _ACEOF |
| 15130 | |
| 15131 | fi |
| 15132 | |
| 15133 | { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 |
| 15134 | echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } |
| 15135 | if test "${ac_cv_lib_gcc___chkstk+set}" = set; then |
| 15136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15137 | else |
| 15138 | ac_check_lib_save_LIBS=$LIBS |
| 15139 | LIBS="-lgcc $LIBS" |
| 15140 | cat >conftest.$ac_ext <<_ACEOF |
| 15141 | /* confdefs.h. */ |
| 15142 | _ACEOF |
| 15143 | cat confdefs.h >>conftest.$ac_ext |
| 15144 | cat >>conftest.$ac_ext <<_ACEOF |
| 15145 | /* end confdefs.h. */ |
| 15146 | |
| 15147 | /* Override any GCC internal prototype to avoid an error. |
| 15148 | Use char because int might match the return type of a GCC |
| 15149 | builtin and then its argument prototype would still apply. */ |
| 15150 | #ifdef __cplusplus |
| 15151 | extern "C" |
| 15152 | #endif |
| 15153 | char __chkstk (); |
| 15154 | int |
| 15155 | main () |
| 15156 | { |
| 15157 | return __chkstk (); |
| 15158 | ; |
| 15159 | return 0; |
| 15160 | } |
| 15161 | _ACEOF |
| 15162 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15163 | if { (ac_try="$ac_link" |
| 15164 | case "(($ac_try" in |
| 15165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15166 | *) ac_try_echo=$ac_try;; |
| 15167 | esac |
| 15168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15169 | (eval "$ac_link") 2>conftest.er1 |
| 15170 | ac_status=$? |
| 15171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15172 | rm -f conftest.er1 |
| 15173 | cat conftest.err >&5 |
| 15174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15175 | (exit $ac_status); } && |
| 15176 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15177 | { (case "(($ac_try" in |
| 15178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15179 | *) ac_try_echo=$ac_try;; |
| 15180 | esac |
| 15181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15182 | (eval "$ac_try") 2>&5 |
| 15183 | ac_status=$? |
| 15184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15185 | (exit $ac_status); }; } && |
| 15186 | { ac_try='test -s conftest$ac_exeext' |
| 15187 | { (case "(($ac_try" in |
| 15188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15189 | *) ac_try_echo=$ac_try;; |
| 15190 | esac |
| 15191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15192 | (eval "$ac_try") 2>&5 |
| 15193 | ac_status=$? |
| 15194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15195 | (exit $ac_status); }; }; then |
| 15196 | ac_cv_lib_gcc___chkstk=yes |
| 15197 | else |
| 15198 | echo "$as_me: failed program was:" >&5 |
| 15199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15200 | |
| 15201 | ac_cv_lib_gcc___chkstk=no |
| 15202 | fi |
| 15203 | |
| 15204 | rm -f core conftest.err conftest.$ac_objext \ |
| 15205 | conftest$ac_exeext conftest.$ac_ext |
| 15206 | LIBS=$ac_check_lib_save_LIBS |
| 15207 | fi |
| 15208 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 |
| 15209 | echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } |
| 15210 | if test $ac_cv_lib_gcc___chkstk = yes; then |
| 15211 | |
| 15212 | cat >>confdefs.h <<\_ACEOF |
| 15213 | #define HAVE___CHKSTK 1 |
| 15214 | _ACEOF |
| 15215 | |
| 15216 | fi |
| 15217 | |
NAKAMURA Takumi | 7885507 | 2015-01-30 13:01:19 +0000 | [diff] [blame] | 15218 | { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5 |
| 15219 | echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; } |
| 15220 | if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then |
| 15221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15222 | else |
| 15223 | ac_check_lib_save_LIBS=$LIBS |
| 15224 | LIBS="-lgcc $LIBS" |
| 15225 | cat >conftest.$ac_ext <<_ACEOF |
| 15226 | /* confdefs.h. */ |
| 15227 | _ACEOF |
| 15228 | cat confdefs.h >>conftest.$ac_ext |
| 15229 | cat >>conftest.$ac_ext <<_ACEOF |
| 15230 | /* end confdefs.h. */ |
| 15231 | |
| 15232 | /* Override any GCC internal prototype to avoid an error. |
| 15233 | Use char because int might match the return type of a GCC |
| 15234 | builtin and then its argument prototype would still apply. */ |
| 15235 | #ifdef __cplusplus |
| 15236 | extern "C" |
| 15237 | #endif |
| 15238 | char __chkstk_ms (); |
| 15239 | int |
| 15240 | main () |
| 15241 | { |
| 15242 | return __chkstk_ms (); |
| 15243 | ; |
| 15244 | return 0; |
| 15245 | } |
| 15246 | _ACEOF |
| 15247 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15248 | if { (ac_try="$ac_link" |
| 15249 | case "(($ac_try" in |
| 15250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15251 | *) ac_try_echo=$ac_try;; |
| 15252 | esac |
| 15253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15254 | (eval "$ac_link") 2>conftest.er1 |
| 15255 | ac_status=$? |
| 15256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15257 | rm -f conftest.er1 |
| 15258 | cat conftest.err >&5 |
| 15259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15260 | (exit $ac_status); } && |
| 15261 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15262 | { (case "(($ac_try" in |
| 15263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15264 | *) ac_try_echo=$ac_try;; |
| 15265 | esac |
| 15266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15267 | (eval "$ac_try") 2>&5 |
| 15268 | ac_status=$? |
| 15269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15270 | (exit $ac_status); }; } && |
| 15271 | { ac_try='test -s conftest$ac_exeext' |
| 15272 | { (case "(($ac_try" in |
| 15273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15274 | *) ac_try_echo=$ac_try;; |
| 15275 | esac |
| 15276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15277 | (eval "$ac_try") 2>&5 |
| 15278 | ac_status=$? |
| 15279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15280 | (exit $ac_status); }; }; then |
| 15281 | ac_cv_lib_gcc___chkstk_ms=yes |
| 15282 | else |
| 15283 | echo "$as_me: failed program was:" >&5 |
| 15284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15285 | |
| 15286 | ac_cv_lib_gcc___chkstk_ms=no |
| 15287 | fi |
| 15288 | |
| 15289 | rm -f core conftest.err conftest.$ac_objext \ |
| 15290 | conftest$ac_exeext conftest.$ac_ext |
| 15291 | LIBS=$ac_check_lib_save_LIBS |
| 15292 | fi |
| 15293 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5 |
| 15294 | echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; } |
| 15295 | if test $ac_cv_lib_gcc___chkstk_ms = yes; then |
| 15296 | |
| 15297 | cat >>confdefs.h <<\_ACEOF |
| 15298 | #define HAVE___CHKSTK_MS 1 |
| 15299 | _ACEOF |
| 15300 | |
| 15301 | fi |
| 15302 | |
NAKAMURA Takumi | 03a541f | 2011-02-05 15:11:53 +0000 | [diff] [blame] | 15303 | { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 |
| 15304 | echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } |
| 15305 | if test "${ac_cv_lib_gcc____chkstk+set}" = set; then |
| 15306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15307 | else |
| 15308 | ac_check_lib_save_LIBS=$LIBS |
| 15309 | LIBS="-lgcc $LIBS" |
| 15310 | cat >conftest.$ac_ext <<_ACEOF |
| 15311 | /* confdefs.h. */ |
| 15312 | _ACEOF |
| 15313 | cat confdefs.h >>conftest.$ac_ext |
| 15314 | cat >>conftest.$ac_ext <<_ACEOF |
| 15315 | /* end confdefs.h. */ |
| 15316 | |
| 15317 | /* Override any GCC internal prototype to avoid an error. |
| 15318 | Use char because int might match the return type of a GCC |
| 15319 | builtin and then its argument prototype would still apply. */ |
| 15320 | #ifdef __cplusplus |
| 15321 | extern "C" |
| 15322 | #endif |
| 15323 | char ___chkstk (); |
| 15324 | int |
| 15325 | main () |
| 15326 | { |
| 15327 | return ___chkstk (); |
| 15328 | ; |
| 15329 | return 0; |
| 15330 | } |
| 15331 | _ACEOF |
| 15332 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15333 | if { (ac_try="$ac_link" |
| 15334 | case "(($ac_try" in |
| 15335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15336 | *) ac_try_echo=$ac_try;; |
| 15337 | esac |
| 15338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15339 | (eval "$ac_link") 2>conftest.er1 |
| 15340 | ac_status=$? |
| 15341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15342 | rm -f conftest.er1 |
| 15343 | cat conftest.err >&5 |
| 15344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15345 | (exit $ac_status); } && |
| 15346 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15347 | { (case "(($ac_try" in |
| 15348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15349 | *) ac_try_echo=$ac_try;; |
| 15350 | esac |
| 15351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15352 | (eval "$ac_try") 2>&5 |
| 15353 | ac_status=$? |
| 15354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15355 | (exit $ac_status); }; } && |
| 15356 | { ac_try='test -s conftest$ac_exeext' |
| 15357 | { (case "(($ac_try" in |
| 15358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15359 | *) ac_try_echo=$ac_try;; |
| 15360 | esac |
| 15361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15362 | (eval "$ac_try") 2>&5 |
| 15363 | ac_status=$? |
| 15364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15365 | (exit $ac_status); }; }; then |
| 15366 | ac_cv_lib_gcc____chkstk=yes |
| 15367 | else |
| 15368 | echo "$as_me: failed program was:" >&5 |
| 15369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15370 | |
| 15371 | ac_cv_lib_gcc____chkstk=no |
| 15372 | fi |
| 15373 | |
| 15374 | rm -f core conftest.err conftest.$ac_objext \ |
| 15375 | conftest$ac_exeext conftest.$ac_ext |
| 15376 | LIBS=$ac_check_lib_save_LIBS |
| 15377 | fi |
| 15378 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 |
| 15379 | echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } |
| 15380 | if test $ac_cv_lib_gcc____chkstk = yes; then |
| 15381 | |
| 15382 | cat >>confdefs.h <<\_ACEOF |
| 15383 | #define HAVE____CHKSTK 1 |
| 15384 | _ACEOF |
| 15385 | |
| 15386 | fi |
| 15387 | |
NAKAMURA Takumi | 7885507 | 2015-01-30 13:01:19 +0000 | [diff] [blame] | 15388 | { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5 |
| 15389 | echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; } |
| 15390 | if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then |
| 15391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15392 | else |
| 15393 | ac_check_lib_save_LIBS=$LIBS |
| 15394 | LIBS="-lgcc $LIBS" |
| 15395 | cat >conftest.$ac_ext <<_ACEOF |
| 15396 | /* confdefs.h. */ |
| 15397 | _ACEOF |
| 15398 | cat confdefs.h >>conftest.$ac_ext |
| 15399 | cat >>conftest.$ac_ext <<_ACEOF |
| 15400 | /* end confdefs.h. */ |
| 15401 | |
| 15402 | /* Override any GCC internal prototype to avoid an error. |
| 15403 | Use char because int might match the return type of a GCC |
| 15404 | builtin and then its argument prototype would still apply. */ |
| 15405 | #ifdef __cplusplus |
| 15406 | extern "C" |
| 15407 | #endif |
| 15408 | char ___chkstk_ms (); |
| 15409 | int |
| 15410 | main () |
| 15411 | { |
| 15412 | return ___chkstk_ms (); |
| 15413 | ; |
| 15414 | return 0; |
| 15415 | } |
| 15416 | _ACEOF |
| 15417 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15418 | if { (ac_try="$ac_link" |
| 15419 | case "(($ac_try" in |
| 15420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15421 | *) ac_try_echo=$ac_try;; |
| 15422 | esac |
| 15423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15424 | (eval "$ac_link") 2>conftest.er1 |
| 15425 | ac_status=$? |
| 15426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15427 | rm -f conftest.er1 |
| 15428 | cat conftest.err >&5 |
| 15429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15430 | (exit $ac_status); } && |
| 15431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15432 | { (case "(($ac_try" in |
| 15433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15434 | *) ac_try_echo=$ac_try;; |
| 15435 | esac |
| 15436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15437 | (eval "$ac_try") 2>&5 |
| 15438 | ac_status=$? |
| 15439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15440 | (exit $ac_status); }; } && |
| 15441 | { ac_try='test -s conftest$ac_exeext' |
| 15442 | { (case "(($ac_try" in |
| 15443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15444 | *) ac_try_echo=$ac_try;; |
| 15445 | esac |
| 15446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15447 | (eval "$ac_try") 2>&5 |
| 15448 | ac_status=$? |
| 15449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15450 | (exit $ac_status); }; }; then |
| 15451 | ac_cv_lib_gcc____chkstk_ms=yes |
| 15452 | else |
| 15453 | echo "$as_me: failed program was:" >&5 |
| 15454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15455 | |
| 15456 | ac_cv_lib_gcc____chkstk_ms=no |
| 15457 | fi |
| 15458 | |
| 15459 | rm -f core conftest.err conftest.$ac_objext \ |
| 15460 | conftest$ac_exeext conftest.$ac_ext |
| 15461 | LIBS=$ac_check_lib_save_LIBS |
| 15462 | fi |
| 15463 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5 |
| 15464 | echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; } |
| 15465 | if test $ac_cv_lib_gcc____chkstk_ms = yes; then |
| 15466 | |
| 15467 | cat >>confdefs.h <<\_ACEOF |
| 15468 | #define HAVE____CHKSTK_MS 1 |
| 15469 | _ACEOF |
| 15470 | |
| 15471 | fi |
| 15472 | |
NAKAMURA Takumi | 03a541f | 2011-02-05 15:11:53 +0000 | [diff] [blame] | 15473 | |
| 15474 | { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 |
| 15475 | echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } |
| 15476 | if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then |
| 15477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15478 | else |
| 15479 | ac_check_lib_save_LIBS=$LIBS |
| 15480 | LIBS="-lgcc $LIBS" |
| 15481 | cat >conftest.$ac_ext <<_ACEOF |
| 15482 | /* confdefs.h. */ |
| 15483 | _ACEOF |
| 15484 | cat confdefs.h >>conftest.$ac_ext |
| 15485 | cat >>conftest.$ac_ext <<_ACEOF |
| 15486 | /* end confdefs.h. */ |
| 15487 | |
| 15488 | /* Override any GCC internal prototype to avoid an error. |
| 15489 | Use char because int might match the return type of a GCC |
| 15490 | builtin and then its argument prototype would still apply. */ |
| 15491 | #ifdef __cplusplus |
| 15492 | extern "C" |
| 15493 | #endif |
| 15494 | char __ashldi3 (); |
| 15495 | int |
| 15496 | main () |
| 15497 | { |
| 15498 | return __ashldi3 (); |
| 15499 | ; |
| 15500 | return 0; |
| 15501 | } |
| 15502 | _ACEOF |
| 15503 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15504 | if { (ac_try="$ac_link" |
| 15505 | case "(($ac_try" in |
| 15506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15507 | *) ac_try_echo=$ac_try;; |
| 15508 | esac |
| 15509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15510 | (eval "$ac_link") 2>conftest.er1 |
| 15511 | ac_status=$? |
| 15512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15513 | rm -f conftest.er1 |
| 15514 | cat conftest.err >&5 |
| 15515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15516 | (exit $ac_status); } && |
| 15517 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15518 | { (case "(($ac_try" in |
| 15519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15520 | *) ac_try_echo=$ac_try;; |
| 15521 | esac |
| 15522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15523 | (eval "$ac_try") 2>&5 |
| 15524 | ac_status=$? |
| 15525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15526 | (exit $ac_status); }; } && |
| 15527 | { ac_try='test -s conftest$ac_exeext' |
| 15528 | { (case "(($ac_try" in |
| 15529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15530 | *) ac_try_echo=$ac_try;; |
| 15531 | esac |
| 15532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15533 | (eval "$ac_try") 2>&5 |
| 15534 | ac_status=$? |
| 15535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15536 | (exit $ac_status); }; }; then |
| 15537 | ac_cv_lib_gcc___ashldi3=yes |
| 15538 | else |
| 15539 | echo "$as_me: failed program was:" >&5 |
| 15540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15541 | |
| 15542 | ac_cv_lib_gcc___ashldi3=no |
| 15543 | fi |
| 15544 | |
| 15545 | rm -f core conftest.err conftest.$ac_objext \ |
| 15546 | conftest$ac_exeext conftest.$ac_ext |
| 15547 | LIBS=$ac_check_lib_save_LIBS |
| 15548 | fi |
| 15549 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 |
| 15550 | echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } |
| 15551 | if test $ac_cv_lib_gcc___ashldi3 = yes; then |
| 15552 | |
| 15553 | cat >>confdefs.h <<\_ACEOF |
| 15554 | #define HAVE___ASHLDI3 1 |
| 15555 | _ACEOF |
| 15556 | |
| 15557 | fi |
| 15558 | |
| 15559 | { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 |
| 15560 | echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } |
| 15561 | if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then |
| 15562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15563 | else |
| 15564 | ac_check_lib_save_LIBS=$LIBS |
| 15565 | LIBS="-lgcc $LIBS" |
| 15566 | cat >conftest.$ac_ext <<_ACEOF |
| 15567 | /* confdefs.h. */ |
| 15568 | _ACEOF |
| 15569 | cat confdefs.h >>conftest.$ac_ext |
| 15570 | cat >>conftest.$ac_ext <<_ACEOF |
| 15571 | /* end confdefs.h. */ |
| 15572 | |
| 15573 | /* Override any GCC internal prototype to avoid an error. |
| 15574 | Use char because int might match the return type of a GCC |
| 15575 | builtin and then its argument prototype would still apply. */ |
| 15576 | #ifdef __cplusplus |
| 15577 | extern "C" |
| 15578 | #endif |
| 15579 | char __ashrdi3 (); |
| 15580 | int |
| 15581 | main () |
| 15582 | { |
| 15583 | return __ashrdi3 (); |
| 15584 | ; |
| 15585 | return 0; |
| 15586 | } |
| 15587 | _ACEOF |
| 15588 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15589 | if { (ac_try="$ac_link" |
| 15590 | case "(($ac_try" in |
| 15591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15592 | *) ac_try_echo=$ac_try;; |
| 15593 | esac |
| 15594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15595 | (eval "$ac_link") 2>conftest.er1 |
| 15596 | ac_status=$? |
| 15597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15598 | rm -f conftest.er1 |
| 15599 | cat conftest.err >&5 |
| 15600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15601 | (exit $ac_status); } && |
| 15602 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15603 | { (case "(($ac_try" in |
| 15604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15605 | *) ac_try_echo=$ac_try;; |
| 15606 | esac |
| 15607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15608 | (eval "$ac_try") 2>&5 |
| 15609 | ac_status=$? |
| 15610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15611 | (exit $ac_status); }; } && |
| 15612 | { ac_try='test -s conftest$ac_exeext' |
| 15613 | { (case "(($ac_try" in |
| 15614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15615 | *) ac_try_echo=$ac_try;; |
| 15616 | esac |
| 15617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15618 | (eval "$ac_try") 2>&5 |
| 15619 | ac_status=$? |
| 15620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15621 | (exit $ac_status); }; }; then |
| 15622 | ac_cv_lib_gcc___ashrdi3=yes |
| 15623 | else |
| 15624 | echo "$as_me: failed program was:" >&5 |
| 15625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15626 | |
| 15627 | ac_cv_lib_gcc___ashrdi3=no |
| 15628 | fi |
| 15629 | |
| 15630 | rm -f core conftest.err conftest.$ac_objext \ |
| 15631 | conftest$ac_exeext conftest.$ac_ext |
| 15632 | LIBS=$ac_check_lib_save_LIBS |
| 15633 | fi |
| 15634 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 |
| 15635 | echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } |
| 15636 | if test $ac_cv_lib_gcc___ashrdi3 = yes; then |
| 15637 | |
| 15638 | cat >>confdefs.h <<\_ACEOF |
| 15639 | #define HAVE___ASHRDI3 1 |
| 15640 | _ACEOF |
| 15641 | |
| 15642 | fi |
| 15643 | |
| 15644 | { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 |
| 15645 | echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } |
| 15646 | if test "${ac_cv_lib_gcc___divdi3+set}" = set; then |
| 15647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15648 | else |
| 15649 | ac_check_lib_save_LIBS=$LIBS |
| 15650 | LIBS="-lgcc $LIBS" |
| 15651 | cat >conftest.$ac_ext <<_ACEOF |
| 15652 | /* confdefs.h. */ |
| 15653 | _ACEOF |
| 15654 | cat confdefs.h >>conftest.$ac_ext |
| 15655 | cat >>conftest.$ac_ext <<_ACEOF |
| 15656 | /* end confdefs.h. */ |
| 15657 | |
| 15658 | /* Override any GCC internal prototype to avoid an error. |
| 15659 | Use char because int might match the return type of a GCC |
| 15660 | builtin and then its argument prototype would still apply. */ |
| 15661 | #ifdef __cplusplus |
| 15662 | extern "C" |
| 15663 | #endif |
| 15664 | char __divdi3 (); |
| 15665 | int |
| 15666 | main () |
| 15667 | { |
| 15668 | return __divdi3 (); |
| 15669 | ; |
| 15670 | return 0; |
| 15671 | } |
| 15672 | _ACEOF |
| 15673 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15674 | if { (ac_try="$ac_link" |
| 15675 | case "(($ac_try" in |
| 15676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15677 | *) ac_try_echo=$ac_try;; |
| 15678 | esac |
| 15679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15680 | (eval "$ac_link") 2>conftest.er1 |
| 15681 | ac_status=$? |
| 15682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15683 | rm -f conftest.er1 |
| 15684 | cat conftest.err >&5 |
| 15685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15686 | (exit $ac_status); } && |
| 15687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15688 | { (case "(($ac_try" in |
| 15689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15690 | *) ac_try_echo=$ac_try;; |
| 15691 | esac |
| 15692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15693 | (eval "$ac_try") 2>&5 |
| 15694 | ac_status=$? |
| 15695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15696 | (exit $ac_status); }; } && |
| 15697 | { ac_try='test -s conftest$ac_exeext' |
| 15698 | { (case "(($ac_try" in |
| 15699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15700 | *) ac_try_echo=$ac_try;; |
| 15701 | esac |
| 15702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15703 | (eval "$ac_try") 2>&5 |
| 15704 | ac_status=$? |
| 15705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15706 | (exit $ac_status); }; }; then |
| 15707 | ac_cv_lib_gcc___divdi3=yes |
| 15708 | else |
| 15709 | echo "$as_me: failed program was:" >&5 |
| 15710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15711 | |
| 15712 | ac_cv_lib_gcc___divdi3=no |
| 15713 | fi |
| 15714 | |
| 15715 | rm -f core conftest.err conftest.$ac_objext \ |
| 15716 | conftest$ac_exeext conftest.$ac_ext |
| 15717 | LIBS=$ac_check_lib_save_LIBS |
| 15718 | fi |
| 15719 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 |
| 15720 | echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } |
| 15721 | if test $ac_cv_lib_gcc___divdi3 = yes; then |
| 15722 | |
| 15723 | cat >>confdefs.h <<\_ACEOF |
| 15724 | #define HAVE___DIVDI3 1 |
| 15725 | _ACEOF |
| 15726 | |
| 15727 | fi |
| 15728 | |
| 15729 | { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 |
| 15730 | echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } |
| 15731 | if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then |
| 15732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15733 | else |
| 15734 | ac_check_lib_save_LIBS=$LIBS |
| 15735 | LIBS="-lgcc $LIBS" |
| 15736 | cat >conftest.$ac_ext <<_ACEOF |
| 15737 | /* confdefs.h. */ |
| 15738 | _ACEOF |
| 15739 | cat confdefs.h >>conftest.$ac_ext |
| 15740 | cat >>conftest.$ac_ext <<_ACEOF |
| 15741 | /* end confdefs.h. */ |
| 15742 | |
| 15743 | /* Override any GCC internal prototype to avoid an error. |
| 15744 | Use char because int might match the return type of a GCC |
| 15745 | builtin and then its argument prototype would still apply. */ |
| 15746 | #ifdef __cplusplus |
| 15747 | extern "C" |
| 15748 | #endif |
| 15749 | char __fixdfdi (); |
| 15750 | int |
| 15751 | main () |
| 15752 | { |
| 15753 | return __fixdfdi (); |
| 15754 | ; |
| 15755 | return 0; |
| 15756 | } |
| 15757 | _ACEOF |
| 15758 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15759 | if { (ac_try="$ac_link" |
| 15760 | case "(($ac_try" in |
| 15761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15762 | *) ac_try_echo=$ac_try;; |
| 15763 | esac |
| 15764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15765 | (eval "$ac_link") 2>conftest.er1 |
| 15766 | ac_status=$? |
| 15767 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15768 | rm -f conftest.er1 |
| 15769 | cat conftest.err >&5 |
| 15770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15771 | (exit $ac_status); } && |
| 15772 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15773 | { (case "(($ac_try" in |
| 15774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15775 | *) ac_try_echo=$ac_try;; |
| 15776 | esac |
| 15777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15778 | (eval "$ac_try") 2>&5 |
| 15779 | ac_status=$? |
| 15780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15781 | (exit $ac_status); }; } && |
| 15782 | { ac_try='test -s conftest$ac_exeext' |
| 15783 | { (case "(($ac_try" in |
| 15784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15785 | *) ac_try_echo=$ac_try;; |
| 15786 | esac |
| 15787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15788 | (eval "$ac_try") 2>&5 |
| 15789 | ac_status=$? |
| 15790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15791 | (exit $ac_status); }; }; then |
| 15792 | ac_cv_lib_gcc___fixdfdi=yes |
| 15793 | else |
| 15794 | echo "$as_me: failed program was:" >&5 |
| 15795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15796 | |
| 15797 | ac_cv_lib_gcc___fixdfdi=no |
| 15798 | fi |
| 15799 | |
| 15800 | rm -f core conftest.err conftest.$ac_objext \ |
| 15801 | conftest$ac_exeext conftest.$ac_ext |
| 15802 | LIBS=$ac_check_lib_save_LIBS |
| 15803 | fi |
| 15804 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 |
| 15805 | echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } |
| 15806 | if test $ac_cv_lib_gcc___fixdfdi = yes; then |
| 15807 | |
| 15808 | cat >>confdefs.h <<\_ACEOF |
| 15809 | #define HAVE___FIXDFDI 1 |
| 15810 | _ACEOF |
| 15811 | |
| 15812 | fi |
| 15813 | |
| 15814 | { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 |
| 15815 | echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } |
| 15816 | if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then |
| 15817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15818 | else |
| 15819 | ac_check_lib_save_LIBS=$LIBS |
| 15820 | LIBS="-lgcc $LIBS" |
| 15821 | cat >conftest.$ac_ext <<_ACEOF |
| 15822 | /* confdefs.h. */ |
| 15823 | _ACEOF |
| 15824 | cat confdefs.h >>conftest.$ac_ext |
| 15825 | cat >>conftest.$ac_ext <<_ACEOF |
| 15826 | /* end confdefs.h. */ |
| 15827 | |
| 15828 | /* Override any GCC internal prototype to avoid an error. |
| 15829 | Use char because int might match the return type of a GCC |
| 15830 | builtin and then its argument prototype would still apply. */ |
| 15831 | #ifdef __cplusplus |
| 15832 | extern "C" |
| 15833 | #endif |
| 15834 | char __fixsfdi (); |
| 15835 | int |
| 15836 | main () |
| 15837 | { |
| 15838 | return __fixsfdi (); |
| 15839 | ; |
| 15840 | return 0; |
| 15841 | } |
| 15842 | _ACEOF |
| 15843 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15844 | if { (ac_try="$ac_link" |
| 15845 | case "(($ac_try" in |
| 15846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15847 | *) ac_try_echo=$ac_try;; |
| 15848 | esac |
| 15849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15850 | (eval "$ac_link") 2>conftest.er1 |
| 15851 | ac_status=$? |
| 15852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15853 | rm -f conftest.er1 |
| 15854 | cat conftest.err >&5 |
| 15855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15856 | (exit $ac_status); } && |
| 15857 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15858 | { (case "(($ac_try" in |
| 15859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15860 | *) ac_try_echo=$ac_try;; |
| 15861 | esac |
| 15862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15863 | (eval "$ac_try") 2>&5 |
| 15864 | ac_status=$? |
| 15865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15866 | (exit $ac_status); }; } && |
| 15867 | { ac_try='test -s conftest$ac_exeext' |
| 15868 | { (case "(($ac_try" in |
| 15869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15870 | *) ac_try_echo=$ac_try;; |
| 15871 | esac |
| 15872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15873 | (eval "$ac_try") 2>&5 |
| 15874 | ac_status=$? |
| 15875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15876 | (exit $ac_status); }; }; then |
| 15877 | ac_cv_lib_gcc___fixsfdi=yes |
| 15878 | else |
| 15879 | echo "$as_me: failed program was:" >&5 |
| 15880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15881 | |
| 15882 | ac_cv_lib_gcc___fixsfdi=no |
| 15883 | fi |
| 15884 | |
| 15885 | rm -f core conftest.err conftest.$ac_objext \ |
| 15886 | conftest$ac_exeext conftest.$ac_ext |
| 15887 | LIBS=$ac_check_lib_save_LIBS |
| 15888 | fi |
| 15889 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 |
| 15890 | echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } |
| 15891 | if test $ac_cv_lib_gcc___fixsfdi = yes; then |
| 15892 | |
| 15893 | cat >>confdefs.h <<\_ACEOF |
| 15894 | #define HAVE___FIXSFDI 1 |
| 15895 | _ACEOF |
| 15896 | |
| 15897 | fi |
| 15898 | |
| 15899 | { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 |
| 15900 | echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } |
| 15901 | if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then |
| 15902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15903 | else |
| 15904 | ac_check_lib_save_LIBS=$LIBS |
| 15905 | LIBS="-lgcc $LIBS" |
| 15906 | cat >conftest.$ac_ext <<_ACEOF |
| 15907 | /* confdefs.h. */ |
| 15908 | _ACEOF |
| 15909 | cat confdefs.h >>conftest.$ac_ext |
| 15910 | cat >>conftest.$ac_ext <<_ACEOF |
| 15911 | /* end confdefs.h. */ |
| 15912 | |
| 15913 | /* Override any GCC internal prototype to avoid an error. |
| 15914 | Use char because int might match the return type of a GCC |
| 15915 | builtin and then its argument prototype would still apply. */ |
| 15916 | #ifdef __cplusplus |
| 15917 | extern "C" |
| 15918 | #endif |
| 15919 | char __floatdidf (); |
| 15920 | int |
| 15921 | main () |
| 15922 | { |
| 15923 | return __floatdidf (); |
| 15924 | ; |
| 15925 | return 0; |
| 15926 | } |
| 15927 | _ACEOF |
| 15928 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15929 | if { (ac_try="$ac_link" |
| 15930 | case "(($ac_try" in |
| 15931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15932 | *) ac_try_echo=$ac_try;; |
| 15933 | esac |
| 15934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15935 | (eval "$ac_link") 2>conftest.er1 |
| 15936 | ac_status=$? |
| 15937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15938 | rm -f conftest.er1 |
| 15939 | cat conftest.err >&5 |
| 15940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15941 | (exit $ac_status); } && |
| 15942 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15943 | { (case "(($ac_try" in |
| 15944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15945 | *) ac_try_echo=$ac_try;; |
| 15946 | esac |
| 15947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15948 | (eval "$ac_try") 2>&5 |
| 15949 | ac_status=$? |
| 15950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15951 | (exit $ac_status); }; } && |
| 15952 | { ac_try='test -s conftest$ac_exeext' |
| 15953 | { (case "(($ac_try" in |
| 15954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15955 | *) ac_try_echo=$ac_try;; |
| 15956 | esac |
| 15957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15958 | (eval "$ac_try") 2>&5 |
| 15959 | ac_status=$? |
| 15960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15961 | (exit $ac_status); }; }; then |
| 15962 | ac_cv_lib_gcc___floatdidf=yes |
| 15963 | else |
| 15964 | echo "$as_me: failed program was:" >&5 |
| 15965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15966 | |
| 15967 | ac_cv_lib_gcc___floatdidf=no |
| 15968 | fi |
| 15969 | |
| 15970 | rm -f core conftest.err conftest.$ac_objext \ |
| 15971 | conftest$ac_exeext conftest.$ac_ext |
| 15972 | LIBS=$ac_check_lib_save_LIBS |
| 15973 | fi |
| 15974 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 |
| 15975 | echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } |
| 15976 | if test $ac_cv_lib_gcc___floatdidf = yes; then |
| 15977 | |
| 15978 | cat >>confdefs.h <<\_ACEOF |
| 15979 | #define HAVE___FLOATDIDF 1 |
| 15980 | _ACEOF |
| 15981 | |
| 15982 | fi |
| 15983 | |
| 15984 | { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 |
| 15985 | echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } |
| 15986 | if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then |
| 15987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15988 | else |
| 15989 | ac_check_lib_save_LIBS=$LIBS |
| 15990 | LIBS="-lgcc $LIBS" |
| 15991 | cat >conftest.$ac_ext <<_ACEOF |
| 15992 | /* confdefs.h. */ |
| 15993 | _ACEOF |
| 15994 | cat confdefs.h >>conftest.$ac_ext |
| 15995 | cat >>conftest.$ac_ext <<_ACEOF |
| 15996 | /* end confdefs.h. */ |
| 15997 | |
| 15998 | /* Override any GCC internal prototype to avoid an error. |
| 15999 | Use char because int might match the return type of a GCC |
| 16000 | builtin and then its argument prototype would still apply. */ |
| 16001 | #ifdef __cplusplus |
| 16002 | extern "C" |
| 16003 | #endif |
| 16004 | char __lshrdi3 (); |
| 16005 | int |
| 16006 | main () |
| 16007 | { |
| 16008 | return __lshrdi3 (); |
| 16009 | ; |
| 16010 | return 0; |
| 16011 | } |
| 16012 | _ACEOF |
| 16013 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16014 | if { (ac_try="$ac_link" |
| 16015 | case "(($ac_try" in |
| 16016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16017 | *) ac_try_echo=$ac_try;; |
| 16018 | esac |
| 16019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16020 | (eval "$ac_link") 2>conftest.er1 |
| 16021 | ac_status=$? |
| 16022 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16023 | rm -f conftest.er1 |
| 16024 | cat conftest.err >&5 |
| 16025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16026 | (exit $ac_status); } && |
| 16027 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16028 | { (case "(($ac_try" in |
| 16029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16030 | *) ac_try_echo=$ac_try;; |
| 16031 | esac |
| 16032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16033 | (eval "$ac_try") 2>&5 |
| 16034 | ac_status=$? |
| 16035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16036 | (exit $ac_status); }; } && |
| 16037 | { ac_try='test -s conftest$ac_exeext' |
| 16038 | { (case "(($ac_try" in |
| 16039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16040 | *) ac_try_echo=$ac_try;; |
| 16041 | esac |
| 16042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16043 | (eval "$ac_try") 2>&5 |
| 16044 | ac_status=$? |
| 16045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16046 | (exit $ac_status); }; }; then |
| 16047 | ac_cv_lib_gcc___lshrdi3=yes |
| 16048 | else |
| 16049 | echo "$as_me: failed program was:" >&5 |
| 16050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16051 | |
| 16052 | ac_cv_lib_gcc___lshrdi3=no |
| 16053 | fi |
| 16054 | |
| 16055 | rm -f core conftest.err conftest.$ac_objext \ |
| 16056 | conftest$ac_exeext conftest.$ac_ext |
| 16057 | LIBS=$ac_check_lib_save_LIBS |
| 16058 | fi |
| 16059 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 |
| 16060 | echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } |
| 16061 | if test $ac_cv_lib_gcc___lshrdi3 = yes; then |
| 16062 | |
| 16063 | cat >>confdefs.h <<\_ACEOF |
| 16064 | #define HAVE___LSHRDI3 1 |
| 16065 | _ACEOF |
| 16066 | |
| 16067 | fi |
| 16068 | |
| 16069 | { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 |
| 16070 | echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } |
| 16071 | if test "${ac_cv_lib_gcc___moddi3+set}" = set; then |
| 16072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16073 | else |
| 16074 | ac_check_lib_save_LIBS=$LIBS |
| 16075 | LIBS="-lgcc $LIBS" |
| 16076 | cat >conftest.$ac_ext <<_ACEOF |
| 16077 | /* confdefs.h. */ |
| 16078 | _ACEOF |
| 16079 | cat confdefs.h >>conftest.$ac_ext |
| 16080 | cat >>conftest.$ac_ext <<_ACEOF |
| 16081 | /* end confdefs.h. */ |
| 16082 | |
| 16083 | /* Override any GCC internal prototype to avoid an error. |
| 16084 | Use char because int might match the return type of a GCC |
| 16085 | builtin and then its argument prototype would still apply. */ |
| 16086 | #ifdef __cplusplus |
| 16087 | extern "C" |
| 16088 | #endif |
| 16089 | char __moddi3 (); |
| 16090 | int |
| 16091 | main () |
| 16092 | { |
| 16093 | return __moddi3 (); |
| 16094 | ; |
| 16095 | return 0; |
| 16096 | } |
| 16097 | _ACEOF |
| 16098 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16099 | if { (ac_try="$ac_link" |
| 16100 | case "(($ac_try" in |
| 16101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16102 | *) ac_try_echo=$ac_try;; |
| 16103 | esac |
| 16104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16105 | (eval "$ac_link") 2>conftest.er1 |
| 16106 | ac_status=$? |
| 16107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16108 | rm -f conftest.er1 |
| 16109 | cat conftest.err >&5 |
| 16110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16111 | (exit $ac_status); } && |
| 16112 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16113 | { (case "(($ac_try" in |
| 16114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16115 | *) ac_try_echo=$ac_try;; |
| 16116 | esac |
| 16117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16118 | (eval "$ac_try") 2>&5 |
| 16119 | ac_status=$? |
| 16120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16121 | (exit $ac_status); }; } && |
| 16122 | { ac_try='test -s conftest$ac_exeext' |
| 16123 | { (case "(($ac_try" in |
| 16124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16125 | *) ac_try_echo=$ac_try;; |
| 16126 | esac |
| 16127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16128 | (eval "$ac_try") 2>&5 |
| 16129 | ac_status=$? |
| 16130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16131 | (exit $ac_status); }; }; then |
| 16132 | ac_cv_lib_gcc___moddi3=yes |
| 16133 | else |
| 16134 | echo "$as_me: failed program was:" >&5 |
| 16135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16136 | |
| 16137 | ac_cv_lib_gcc___moddi3=no |
| 16138 | fi |
| 16139 | |
| 16140 | rm -f core conftest.err conftest.$ac_objext \ |
| 16141 | conftest$ac_exeext conftest.$ac_ext |
| 16142 | LIBS=$ac_check_lib_save_LIBS |
| 16143 | fi |
| 16144 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 |
| 16145 | echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } |
| 16146 | if test $ac_cv_lib_gcc___moddi3 = yes; then |
| 16147 | |
| 16148 | cat >>confdefs.h <<\_ACEOF |
| 16149 | #define HAVE___MODDI3 1 |
| 16150 | _ACEOF |
| 16151 | |
| 16152 | fi |
| 16153 | |
| 16154 | { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 |
| 16155 | echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } |
| 16156 | if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then |
| 16157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16158 | else |
| 16159 | ac_check_lib_save_LIBS=$LIBS |
| 16160 | LIBS="-lgcc $LIBS" |
| 16161 | cat >conftest.$ac_ext <<_ACEOF |
| 16162 | /* confdefs.h. */ |
| 16163 | _ACEOF |
| 16164 | cat confdefs.h >>conftest.$ac_ext |
| 16165 | cat >>conftest.$ac_ext <<_ACEOF |
| 16166 | /* end confdefs.h. */ |
| 16167 | |
| 16168 | /* Override any GCC internal prototype to avoid an error. |
| 16169 | Use char because int might match the return type of a GCC |
| 16170 | builtin and then its argument prototype would still apply. */ |
| 16171 | #ifdef __cplusplus |
| 16172 | extern "C" |
| 16173 | #endif |
| 16174 | char __udivdi3 (); |
| 16175 | int |
| 16176 | main () |
| 16177 | { |
| 16178 | return __udivdi3 (); |
| 16179 | ; |
| 16180 | return 0; |
| 16181 | } |
| 16182 | _ACEOF |
| 16183 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16184 | if { (ac_try="$ac_link" |
| 16185 | case "(($ac_try" in |
| 16186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16187 | *) ac_try_echo=$ac_try;; |
| 16188 | esac |
| 16189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16190 | (eval "$ac_link") 2>conftest.er1 |
| 16191 | ac_status=$? |
| 16192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16193 | rm -f conftest.er1 |
| 16194 | cat conftest.err >&5 |
| 16195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16196 | (exit $ac_status); } && |
| 16197 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16198 | { (case "(($ac_try" in |
| 16199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16200 | *) ac_try_echo=$ac_try;; |
| 16201 | esac |
| 16202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16203 | (eval "$ac_try") 2>&5 |
| 16204 | ac_status=$? |
| 16205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16206 | (exit $ac_status); }; } && |
| 16207 | { ac_try='test -s conftest$ac_exeext' |
| 16208 | { (case "(($ac_try" in |
| 16209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16210 | *) ac_try_echo=$ac_try;; |
| 16211 | esac |
| 16212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16213 | (eval "$ac_try") 2>&5 |
| 16214 | ac_status=$? |
| 16215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16216 | (exit $ac_status); }; }; then |
| 16217 | ac_cv_lib_gcc___udivdi3=yes |
| 16218 | else |
| 16219 | echo "$as_me: failed program was:" >&5 |
| 16220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16221 | |
| 16222 | ac_cv_lib_gcc___udivdi3=no |
| 16223 | fi |
| 16224 | |
| 16225 | rm -f core conftest.err conftest.$ac_objext \ |
| 16226 | conftest$ac_exeext conftest.$ac_ext |
| 16227 | LIBS=$ac_check_lib_save_LIBS |
| 16228 | fi |
| 16229 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 |
| 16230 | echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } |
| 16231 | if test $ac_cv_lib_gcc___udivdi3 = yes; then |
| 16232 | |
| 16233 | cat >>confdefs.h <<\_ACEOF |
| 16234 | #define HAVE___UDIVDI3 1 |
| 16235 | _ACEOF |
| 16236 | |
| 16237 | fi |
| 16238 | |
| 16239 | { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 |
| 16240 | echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } |
| 16241 | if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then |
| 16242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16243 | else |
| 16244 | ac_check_lib_save_LIBS=$LIBS |
| 16245 | LIBS="-lgcc $LIBS" |
| 16246 | cat >conftest.$ac_ext <<_ACEOF |
| 16247 | /* confdefs.h. */ |
| 16248 | _ACEOF |
| 16249 | cat confdefs.h >>conftest.$ac_ext |
| 16250 | cat >>conftest.$ac_ext <<_ACEOF |
| 16251 | /* end confdefs.h. */ |
| 16252 | |
| 16253 | /* Override any GCC internal prototype to avoid an error. |
| 16254 | Use char because int might match the return type of a GCC |
| 16255 | builtin and then its argument prototype would still apply. */ |
| 16256 | #ifdef __cplusplus |
| 16257 | extern "C" |
| 16258 | #endif |
| 16259 | char __umoddi3 (); |
| 16260 | int |
| 16261 | main () |
| 16262 | { |
| 16263 | return __umoddi3 (); |
| 16264 | ; |
| 16265 | return 0; |
| 16266 | } |
| 16267 | _ACEOF |
| 16268 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16269 | if { (ac_try="$ac_link" |
| 16270 | case "(($ac_try" in |
| 16271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16272 | *) ac_try_echo=$ac_try;; |
| 16273 | esac |
| 16274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16275 | (eval "$ac_link") 2>conftest.er1 |
| 16276 | ac_status=$? |
| 16277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16278 | rm -f conftest.er1 |
| 16279 | cat conftest.err >&5 |
| 16280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16281 | (exit $ac_status); } && |
| 16282 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16283 | { (case "(($ac_try" in |
| 16284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16285 | *) ac_try_echo=$ac_try;; |
| 16286 | esac |
| 16287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16288 | (eval "$ac_try") 2>&5 |
| 16289 | ac_status=$? |
| 16290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16291 | (exit $ac_status); }; } && |
| 16292 | { ac_try='test -s conftest$ac_exeext' |
| 16293 | { (case "(($ac_try" in |
| 16294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16295 | *) ac_try_echo=$ac_try;; |
| 16296 | esac |
| 16297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16298 | (eval "$ac_try") 2>&5 |
| 16299 | ac_status=$? |
| 16300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16301 | (exit $ac_status); }; }; then |
| 16302 | ac_cv_lib_gcc___umoddi3=yes |
| 16303 | else |
| 16304 | echo "$as_me: failed program was:" >&5 |
| 16305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16306 | |
| 16307 | ac_cv_lib_gcc___umoddi3=no |
| 16308 | fi |
| 16309 | |
| 16310 | rm -f core conftest.err conftest.$ac_objext \ |
| 16311 | conftest$ac_exeext conftest.$ac_ext |
| 16312 | LIBS=$ac_check_lib_save_LIBS |
| 16313 | fi |
| 16314 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 |
| 16315 | echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } |
| 16316 | if test $ac_cv_lib_gcc___umoddi3 = yes; then |
| 16317 | |
| 16318 | cat >>confdefs.h <<\_ACEOF |
| 16319 | #define HAVE___UMODDI3 1 |
| 16320 | _ACEOF |
| 16321 | |
| 16322 | fi |
| 16323 | |
| 16324 | |
| 16325 | { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 |
| 16326 | echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } |
| 16327 | if test "${ac_cv_lib_gcc___main+set}" = set; then |
| 16328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16329 | else |
| 16330 | ac_check_lib_save_LIBS=$LIBS |
| 16331 | LIBS="-lgcc $LIBS" |
| 16332 | cat >conftest.$ac_ext <<_ACEOF |
| 16333 | /* confdefs.h. */ |
| 16334 | _ACEOF |
| 16335 | cat confdefs.h >>conftest.$ac_ext |
| 16336 | cat >>conftest.$ac_ext <<_ACEOF |
| 16337 | /* end confdefs.h. */ |
| 16338 | |
| 16339 | /* Override any GCC internal prototype to avoid an error. |
| 16340 | Use char because int might match the return type of a GCC |
| 16341 | builtin and then its argument prototype would still apply. */ |
| 16342 | #ifdef __cplusplus |
| 16343 | extern "C" |
| 16344 | #endif |
| 16345 | char __main (); |
| 16346 | int |
| 16347 | main () |
| 16348 | { |
| 16349 | return __main (); |
| 16350 | ; |
| 16351 | return 0; |
| 16352 | } |
| 16353 | _ACEOF |
| 16354 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16355 | if { (ac_try="$ac_link" |
| 16356 | case "(($ac_try" in |
| 16357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16358 | *) ac_try_echo=$ac_try;; |
| 16359 | esac |
| 16360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16361 | (eval "$ac_link") 2>conftest.er1 |
| 16362 | ac_status=$? |
| 16363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16364 | rm -f conftest.er1 |
| 16365 | cat conftest.err >&5 |
| 16366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16367 | (exit $ac_status); } && |
| 16368 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16369 | { (case "(($ac_try" in |
| 16370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16371 | *) ac_try_echo=$ac_try;; |
| 16372 | esac |
| 16373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16374 | (eval "$ac_try") 2>&5 |
| 16375 | ac_status=$? |
| 16376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16377 | (exit $ac_status); }; } && |
| 16378 | { ac_try='test -s conftest$ac_exeext' |
| 16379 | { (case "(($ac_try" in |
| 16380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16381 | *) ac_try_echo=$ac_try;; |
| 16382 | esac |
| 16383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16384 | (eval "$ac_try") 2>&5 |
| 16385 | ac_status=$? |
| 16386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16387 | (exit $ac_status); }; }; then |
| 16388 | ac_cv_lib_gcc___main=yes |
| 16389 | else |
| 16390 | echo "$as_me: failed program was:" >&5 |
| 16391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16392 | |
| 16393 | ac_cv_lib_gcc___main=no |
| 16394 | fi |
| 16395 | |
| 16396 | rm -f core conftest.err conftest.$ac_objext \ |
| 16397 | conftest$ac_exeext conftest.$ac_ext |
| 16398 | LIBS=$ac_check_lib_save_LIBS |
| 16399 | fi |
| 16400 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 |
| 16401 | echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } |
| 16402 | if test $ac_cv_lib_gcc___main = yes; then |
| 16403 | |
| 16404 | cat >>confdefs.h <<\_ACEOF |
| 16405 | #define HAVE___MAIN 1 |
| 16406 | _ACEOF |
| 16407 | |
| 16408 | fi |
| 16409 | |
| 16410 | { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 |
| 16411 | echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } |
| 16412 | if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then |
| 16413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16414 | else |
| 16415 | ac_check_lib_save_LIBS=$LIBS |
| 16416 | LIBS="-lgcc $LIBS" |
| 16417 | cat >conftest.$ac_ext <<_ACEOF |
| 16418 | /* confdefs.h. */ |
| 16419 | _ACEOF |
| 16420 | cat confdefs.h >>conftest.$ac_ext |
| 16421 | cat >>conftest.$ac_ext <<_ACEOF |
| 16422 | /* end confdefs.h. */ |
| 16423 | |
| 16424 | /* Override any GCC internal prototype to avoid an error. |
| 16425 | Use char because int might match the return type of a GCC |
| 16426 | builtin and then its argument prototype would still apply. */ |
| 16427 | #ifdef __cplusplus |
| 16428 | extern "C" |
| 16429 | #endif |
| 16430 | char __cmpdi2 (); |
| 16431 | int |
| 16432 | main () |
| 16433 | { |
| 16434 | return __cmpdi2 (); |
| 16435 | ; |
| 16436 | return 0; |
| 16437 | } |
| 16438 | _ACEOF |
| 16439 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16440 | if { (ac_try="$ac_link" |
| 16441 | case "(($ac_try" in |
| 16442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16443 | *) ac_try_echo=$ac_try;; |
| 16444 | esac |
| 16445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16446 | (eval "$ac_link") 2>conftest.er1 |
| 16447 | ac_status=$? |
| 16448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16449 | rm -f conftest.er1 |
| 16450 | cat conftest.err >&5 |
| 16451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16452 | (exit $ac_status); } && |
| 16453 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16454 | { (case "(($ac_try" in |
| 16455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16456 | *) ac_try_echo=$ac_try;; |
| 16457 | esac |
| 16458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16459 | (eval "$ac_try") 2>&5 |
| 16460 | ac_status=$? |
| 16461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16462 | (exit $ac_status); }; } && |
| 16463 | { ac_try='test -s conftest$ac_exeext' |
| 16464 | { (case "(($ac_try" in |
| 16465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16466 | *) ac_try_echo=$ac_try;; |
| 16467 | esac |
| 16468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16469 | (eval "$ac_try") 2>&5 |
| 16470 | ac_status=$? |
| 16471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16472 | (exit $ac_status); }; }; then |
| 16473 | ac_cv_lib_gcc___cmpdi2=yes |
| 16474 | else |
| 16475 | echo "$as_me: failed program was:" >&5 |
| 16476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16477 | |
| 16478 | ac_cv_lib_gcc___cmpdi2=no |
| 16479 | fi |
| 16480 | |
| 16481 | rm -f core conftest.err conftest.$ac_objext \ |
| 16482 | conftest$ac_exeext conftest.$ac_ext |
| 16483 | LIBS=$ac_check_lib_save_LIBS |
| 16484 | fi |
| 16485 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 |
| 16486 | echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } |
| 16487 | if test $ac_cv_lib_gcc___cmpdi2 = yes; then |
| 16488 | |
| 16489 | cat >>confdefs.h <<\_ACEOF |
| 16490 | #define HAVE___CMPDI2 1 |
| 16491 | _ACEOF |
| 16492 | |
| 16493 | fi |
| 16494 | |
| 16495 | fi |
| 16496 | |
NAKAMURA Takumi | 4471f82 | 2011-05-01 13:29:49 +0000 | [diff] [blame] | 16497 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 16498 | { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 |
| 16499 | echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } |
| 16500 | cat >conftest.$ac_ext <<_ACEOF |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 16501 | |
| 16502 | /* confdefs.h. */ |
| 16503 | _ACEOF |
| 16504 | cat confdefs.h >>conftest.$ac_ext |
| 16505 | cat >>conftest.$ac_ext <<_ACEOF |
| 16506 | /* end confdefs.h. */ |
| 16507 | |
| 16508 | #include <windows.h> |
| 16509 | #include <imagehlp.h> |
| 16510 | extern void foo(PENUMLOADED_MODULES_CALLBACK); |
| 16511 | extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); |
| 16512 | |
| 16513 | |
NAKAMURA Takumi | 4471f82 | 2011-05-01 13:29:49 +0000 | [diff] [blame] | 16514 | _ACEOF |
| 16515 | rm -f conftest.$ac_objext |
| 16516 | if { (ac_try="$ac_compile" |
| 16517 | case "(($ac_try" in |
| 16518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16519 | *) ac_try_echo=$ac_try;; |
| 16520 | esac |
| 16521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16522 | (eval "$ac_compile") 2>conftest.er1 |
| 16523 | ac_status=$? |
| 16524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16525 | rm -f conftest.er1 |
| 16526 | cat conftest.err >&5 |
| 16527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16528 | (exit $ac_status); } && |
| 16529 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16530 | { (case "(($ac_try" in |
| 16531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16532 | *) ac_try_echo=$ac_try;; |
| 16533 | esac |
| 16534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16535 | (eval "$ac_try") 2>&5 |
| 16536 | ac_status=$? |
| 16537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16538 | (exit $ac_status); }; } && |
| 16539 | { ac_try='test -s conftest.$ac_objext' |
| 16540 | { (case "(($ac_try" in |
| 16541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16542 | *) ac_try_echo=$ac_try;; |
| 16543 | esac |
| 16544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16545 | (eval "$ac_try") 2>&5 |
| 16546 | ac_status=$? |
| 16547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16548 | (exit $ac_status); }; }; then |
| 16549 | |
| 16550 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16551 | echo "${ECHO_T}yes" >&6; } |
| 16552 | llvm_cv_win32_elmcb_pcstr="PCSTR" |
| 16553 | |
| 16554 | else |
| 16555 | echo "$as_me: failed program was:" >&5 |
| 16556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16557 | |
| 16558 | |
| 16559 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16560 | echo "${ECHO_T}no" >&6; } |
| 16561 | llvm_cv_win32_elmcb_pcstr="PSTR" |
| 16562 | |
| 16563 | fi |
| 16564 | |
| 16565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16566 | |
| 16567 | cat >>confdefs.h <<_ACEOF |
| 16568 | #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr |
| 16569 | _ACEOF |
| 16570 | |
| 16571 | fi |
| 16572 | |
Reid Spencer | dfda061 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 16573 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16574 | |
| 16575 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16576 | for ac_header in stdlib.h unistd.h |
| 16577 | do |
| 16578 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16579 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16580 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16581 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16582 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16584 | fi |
| 16585 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16586 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16587 | echo "${ECHO_T}$ac_res" >&6; } |
| 16588 | else |
| 16589 | # Is the header compilable? |
| 16590 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16591 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16592 | cat >conftest.$ac_ext <<_ACEOF |
| 16593 | /* confdefs.h. */ |
| 16594 | _ACEOF |
| 16595 | cat confdefs.h >>conftest.$ac_ext |
| 16596 | cat >>conftest.$ac_ext <<_ACEOF |
| 16597 | /* end confdefs.h. */ |
| 16598 | $ac_includes_default |
| 16599 | #include <$ac_header> |
| 16600 | _ACEOF |
| 16601 | rm -f conftest.$ac_objext |
| 16602 | if { (ac_try="$ac_compile" |
| 16603 | case "(($ac_try" in |
| 16604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16605 | *) ac_try_echo=$ac_try;; |
| 16606 | esac |
| 16607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16608 | (eval "$ac_compile") 2>conftest.er1 |
| 16609 | ac_status=$? |
| 16610 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16611 | rm -f conftest.er1 |
| 16612 | cat conftest.err >&5 |
| 16613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16614 | (exit $ac_status); } && |
| 16615 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16616 | { (case "(($ac_try" in |
| 16617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16618 | *) ac_try_echo=$ac_try;; |
| 16619 | esac |
| 16620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16621 | (eval "$ac_try") 2>&5 |
| 16622 | ac_status=$? |
| 16623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16624 | (exit $ac_status); }; } && |
| 16625 | { ac_try='test -s conftest.$ac_objext' |
| 16626 | { (case "(($ac_try" in |
| 16627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16628 | *) ac_try_echo=$ac_try;; |
| 16629 | esac |
| 16630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16631 | (eval "$ac_try") 2>&5 |
| 16632 | ac_status=$? |
| 16633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16634 | (exit $ac_status); }; }; then |
| 16635 | ac_header_compiler=yes |
| 16636 | else |
| 16637 | echo "$as_me: failed program was:" >&5 |
| 16638 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16639 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16640 | ac_header_compiler=no |
| 16641 | fi |
| 16642 | |
| 16643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16644 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16645 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16646 | |
| 16647 | # Is the header present? |
| 16648 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16649 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16650 | cat >conftest.$ac_ext <<_ACEOF |
| 16651 | /* confdefs.h. */ |
| 16652 | _ACEOF |
| 16653 | cat confdefs.h >>conftest.$ac_ext |
| 16654 | cat >>conftest.$ac_ext <<_ACEOF |
| 16655 | /* end confdefs.h. */ |
| 16656 | #include <$ac_header> |
| 16657 | _ACEOF |
| 16658 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 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_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16665 | ac_status=$? |
| 16666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16667 | rm -f conftest.er1 |
| 16668 | cat conftest.err >&5 |
| 16669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16670 | (exit $ac_status); } >/dev/null; then |
| 16671 | if test -s conftest.err; then |
| 16672 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16673 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16674 | else |
| 16675 | ac_cpp_err= |
| 16676 | fi |
| 16677 | else |
| 16678 | ac_cpp_err=yes |
| 16679 | fi |
| 16680 | if test -z "$ac_cpp_err"; then |
| 16681 | ac_header_preproc=yes |
| 16682 | else |
| 16683 | echo "$as_me: failed program was:" >&5 |
| 16684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16685 | |
| 16686 | ac_header_preproc=no |
| 16687 | fi |
| 16688 | |
| 16689 | rm -f conftest.err conftest.$ac_ext |
| 16690 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16691 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16692 | |
| 16693 | # So? What about this header? |
| 16694 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16695 | yes:no: ) |
| 16696 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16697 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16698 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16699 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16700 | ac_header_preproc=yes |
| 16701 | ;; |
| 16702 | no:yes:* ) |
| 16703 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16704 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16705 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16706 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16707 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16708 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16709 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16710 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16711 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16712 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16713 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16714 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16715 | ( cat <<\_ASBOX |
Eric Christopher | afbe752 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 16716 | ## ------------------------------------ ## |
| 16717 | ## Report this to http://llvm.org/bugs/ ## |
| 16718 | ## ------------------------------------ ## |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16719 | _ASBOX |
| 16720 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16721 | ;; |
| 16722 | esac |
| 16723 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16724 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16725 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16727 | else |
| 16728 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16729 | fi |
| 16730 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16731 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16732 | echo "${ECHO_T}$ac_res" >&6; } |
| 16733 | |
| 16734 | fi |
| 16735 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16736 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16737 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16738 | _ACEOF |
| 16739 | |
| 16740 | fi |
| 16741 | |
| 16742 | done |
| 16743 | |
| 16744 | |
| 16745 | for ac_func in getpagesize |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16746 | do |
| 16747 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16748 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16749 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16750 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16752 | else |
| 16753 | cat >conftest.$ac_ext <<_ACEOF |
| 16754 | /* confdefs.h. */ |
| 16755 | _ACEOF |
| 16756 | cat confdefs.h >>conftest.$ac_ext |
| 16757 | cat >>conftest.$ac_ext <<_ACEOF |
| 16758 | /* end confdefs.h. */ |
| 16759 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16760 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16761 | #define $ac_func innocuous_$ac_func |
| 16762 | |
| 16763 | /* System header to define __stub macros and hopefully few prototypes, |
| 16764 | which can conflict with char $ac_func (); below. |
| 16765 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16766 | <limits.h> exists even on freestanding compilers. */ |
| 16767 | |
| 16768 | #ifdef __STDC__ |
| 16769 | # include <limits.h> |
| 16770 | #else |
| 16771 | # include <assert.h> |
| 16772 | #endif |
| 16773 | |
| 16774 | #undef $ac_func |
| 16775 | |
| 16776 | /* Override any GCC internal prototype to avoid an error. |
| 16777 | Use char because int might match the return type of a GCC |
| 16778 | builtin and then its argument prototype would still apply. */ |
| 16779 | #ifdef __cplusplus |
| 16780 | extern "C" |
| 16781 | #endif |
| 16782 | char $ac_func (); |
| 16783 | /* The GNU C library defines this for functions which it implements |
| 16784 | to always fail with ENOSYS. Some functions are actually named |
| 16785 | something starting with __ and the normal name is an alias. */ |
| 16786 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 16787 | choke me |
| 16788 | #endif |
| 16789 | |
| 16790 | int |
| 16791 | main () |
| 16792 | { |
| 16793 | return $ac_func (); |
| 16794 | ; |
| 16795 | return 0; |
| 16796 | } |
| 16797 | _ACEOF |
| 16798 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16799 | if { (ac_try="$ac_link" |
| 16800 | case "(($ac_try" in |
| 16801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16802 | *) ac_try_echo=$ac_try;; |
| 16803 | esac |
| 16804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16805 | (eval "$ac_link") 2>conftest.er1 |
| 16806 | ac_status=$? |
| 16807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16808 | rm -f conftest.er1 |
| 16809 | cat conftest.err >&5 |
| 16810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16811 | (exit $ac_status); } && |
| 16812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16813 | { (case "(($ac_try" in |
| 16814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16815 | *) ac_try_echo=$ac_try;; |
| 16816 | esac |
| 16817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16818 | (eval "$ac_try") 2>&5 |
| 16819 | ac_status=$? |
| 16820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16821 | (exit $ac_status); }; } && |
| 16822 | { ac_try='test -s conftest$ac_exeext' |
| 16823 | { (case "(($ac_try" in |
| 16824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16825 | *) ac_try_echo=$ac_try;; |
| 16826 | esac |
| 16827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16828 | (eval "$ac_try") 2>&5 |
| 16829 | ac_status=$? |
| 16830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16831 | (exit $ac_status); }; }; then |
| 16832 | eval "$as_ac_var=yes" |
| 16833 | else |
| 16834 | echo "$as_me: failed program was:" >&5 |
| 16835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16836 | |
| 16837 | eval "$as_ac_var=no" |
| 16838 | fi |
| 16839 | |
| 16840 | rm -f core conftest.err conftest.$ac_objext \ |
| 16841 | conftest$ac_exeext conftest.$ac_ext |
| 16842 | fi |
| 16843 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16844 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16845 | echo "${ECHO_T}$ac_res" >&6; } |
| 16846 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16847 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16848 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16849 | _ACEOF |
| 16850 | |
| 16851 | fi |
| 16852 | done |
| 16853 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16854 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 16855 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 16856 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 16857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16858 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16859 | if test "$cross_compiling" = yes; then |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16860 | ac_cv_func_mmap_fixed_mapped=no |
| 16861 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16862 | cat >conftest.$ac_ext <<_ACEOF |
| 16863 | /* confdefs.h. */ |
| 16864 | _ACEOF |
| 16865 | cat confdefs.h >>conftest.$ac_ext |
| 16866 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16867 | /* end confdefs.h. */ |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16868 | $ac_includes_default |
| 16869 | /* malloc might have been renamed as rpl_malloc. */ |
| 16870 | #undef malloc |
| 16871 | |
| 16872 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 16873 | Here is a matrix of mmap possibilities: |
| 16874 | mmap private not fixed |
| 16875 | mmap private fixed at somewhere currently unmapped |
| 16876 | mmap private fixed at somewhere already mapped |
| 16877 | mmap shared not fixed |
| 16878 | mmap shared fixed at somewhere currently unmapped |
| 16879 | mmap shared fixed at somewhere already mapped |
| 16880 | For private mappings, we should verify that changes cannot be read() |
| 16881 | back from the file, nor mmap's back from the file at a different |
| 16882 | address. (There have been systems where private was not correctly |
| 16883 | implemented like the infamous i386 svr4.0, and systems where the |
| 16884 | VM page cache was not coherent with the file system buffer cache |
| 16885 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 16886 | For shared mappings, we should conversely verify that changes get |
| 16887 | propagated back to all the places they're supposed to be. |
| 16888 | |
| 16889 | Grep wants private fixed already mapped. |
| 16890 | The main things grep needs to know about mmap are: |
| 16891 | * does it exist and is it safe to write into the mmap'd area |
| 16892 | * how to use it (BSD variants) */ |
| 16893 | |
| 16894 | #include <fcntl.h> |
| 16895 | #include <sys/mman.h> |
| 16896 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16897 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16898 | char *malloc (); |
| 16899 | #endif |
| 16900 | |
| 16901 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16902 | #if !HAVE_GETPAGESIZE |
| 16903 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 16904 | # if !HAVE_SYS_PARAM_H |
| 16905 | # define HAVE_SYS_PARAM_H 1 |
| 16906 | # endif |
| 16907 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16908 | # ifdef _SC_PAGESIZE |
| 16909 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 16910 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16911 | # if HAVE_SYS_PARAM_H |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16912 | # include <sys/param.h> |
| 16913 | # ifdef EXEC_PAGESIZE |
| 16914 | # define getpagesize() EXEC_PAGESIZE |
| 16915 | # else /* no EXEC_PAGESIZE */ |
| 16916 | # ifdef NBPG |
| 16917 | # define getpagesize() NBPG * CLSIZE |
| 16918 | # ifndef CLSIZE |
| 16919 | # define CLSIZE 1 |
| 16920 | # endif /* no CLSIZE */ |
| 16921 | # else /* no NBPG */ |
| 16922 | # ifdef NBPC |
| 16923 | # define getpagesize() NBPC |
| 16924 | # else /* no NBPC */ |
| 16925 | # ifdef PAGESIZE |
| 16926 | # define getpagesize() PAGESIZE |
| 16927 | # endif /* PAGESIZE */ |
| 16928 | # endif /* no NBPC */ |
| 16929 | # endif /* no NBPG */ |
| 16930 | # endif /* no EXEC_PAGESIZE */ |
| 16931 | # else /* no HAVE_SYS_PARAM_H */ |
| 16932 | # define getpagesize() 8192 /* punt totally */ |
| 16933 | # endif /* no HAVE_SYS_PARAM_H */ |
| 16934 | # endif /* no _SC_PAGESIZE */ |
| 16935 | |
| 16936 | #endif /* no HAVE_GETPAGESIZE */ |
| 16937 | |
| 16938 | int |
| 16939 | main () |
| 16940 | { |
| 16941 | char *data, *data2, *data3; |
| 16942 | int i, pagesize; |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16943 | int fd; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16944 | |
| 16945 | pagesize = getpagesize (); |
| 16946 | |
| 16947 | /* First, make a file with some known garbage in it. */ |
| 16948 | data = (char *) malloc (pagesize); |
| 16949 | if (!data) |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16950 | return 1; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16951 | for (i = 0; i < pagesize; ++i) |
| 16952 | *(data + i) = rand (); |
| 16953 | umask (0); |
| 16954 | fd = creat ("conftest.mmap", 0600); |
| 16955 | if (fd < 0) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16956 | return 1; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16957 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16958 | return 1; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16959 | close (fd); |
| 16960 | |
| 16961 | /* Next, try to mmap the file at a fixed address which already has |
| 16962 | something else allocated at it. If we can, also make sure that |
| 16963 | we see the same garbage. */ |
| 16964 | fd = open ("conftest.mmap", O_RDWR); |
| 16965 | if (fd < 0) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16966 | return 1; |
| 16967 | data2 = (char *) malloc (2 * pagesize); |
| 16968 | if (!data2) |
| 16969 | return 1; |
| 16970 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16971 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16972 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16973 | return 1; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16974 | for (i = 0; i < pagesize; ++i) |
| 16975 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16976 | return 1; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16977 | |
| 16978 | /* Finally, make sure that changes to the mapped area do not |
| 16979 | percolate back to the file as seen by read(). (This is a bug on |
| 16980 | some variants of i386 svr4.0.) */ |
| 16981 | for (i = 0; i < pagesize; ++i) |
| 16982 | *(data2 + i) = *(data2 + i) + 1; |
| 16983 | data3 = (char *) malloc (pagesize); |
| 16984 | if (!data3) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16985 | return 1; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16986 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16987 | return 1; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16988 | for (i = 0; i < pagesize; ++i) |
| 16989 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16990 | return 1; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16991 | close (fd); |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16992 | return 0; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16993 | } |
| 16994 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16995 | rm -f conftest$ac_exeext |
| 16996 | if { (ac_try="$ac_link" |
| 16997 | case "(($ac_try" in |
| 16998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16999 | *) ac_try_echo=$ac_try;; |
| 17000 | esac |
| 17001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17002 | (eval "$ac_link") 2>&5 |
| 17003 | ac_status=$? |
| 17004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17005 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17006 | { (case "(($ac_try" in |
| 17007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17008 | *) ac_try_echo=$ac_try;; |
| 17009 | esac |
| 17010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17011 | (eval "$ac_try") 2>&5 |
| 17012 | ac_status=$? |
| 17013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17014 | (exit $ac_status); }; }; then |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17015 | ac_cv_func_mmap_fixed_mapped=yes |
| 17016 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17017 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17018 | echo "$as_me: failed program was:" >&5 |
| 17019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17020 | |
| 17021 | ( exit $ac_status ) |
| 17022 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17023 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17024 | 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] | 17025 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17026 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17027 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17028 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17029 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 17030 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17031 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 17032 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17033 | cat >>confdefs.h <<\_ACEOF |
| 17034 | #define HAVE_MMAP 1 |
| 17035 | _ACEOF |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17036 | |
| 17037 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17038 | rm -f conftest.mmap |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17039 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17040 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 17041 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 17042 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 17043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17044 | else |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17045 | ac_ext=c |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17046 | ac_cpp='$CPP $CPPFLAGS' |
| 17047 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17048 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17049 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17050 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17051 | if test "$cross_compiling" = yes; then |
Reid Spencer | 5a6815d | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 17052 | ac_cv_func_mmap_file=no |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17053 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17054 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 17055 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17056 | /* confdefs.h. */ |
| 17057 | _ACEOF |
| 17058 | cat confdefs.h >>conftest.$ac_ext |
| 17059 | cat >>conftest.$ac_ext <<_ACEOF |
| 17060 | /* end confdefs.h. */ |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17061 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17062 | #include <sys/types.h> |
John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 17063 | #include <sys/mman.h> |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17064 | #include <fcntl.h> |
Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 17065 | |
| 17066 | int |
| 17067 | main () |
| 17068 | { |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17069 | |
| 17070 | int fd; |
Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 17071 | fd = creat ("foo",0777); |
| 17072 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 17073 | unlink ("foo"); |
Reid Spencer | 5a6815d | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 17074 | return (fd != (int) MAP_FAILED); |
Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 17075 | ; |
| 17076 | return 0; |
| 17077 | } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17078 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17079 | rm -f conftest$ac_exeext |
| 17080 | if { (ac_try="$ac_link" |
| 17081 | case "(($ac_try" in |
| 17082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17083 | *) ac_try_echo=$ac_try;; |
| 17084 | esac |
| 17085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17086 | (eval "$ac_link") 2>&5 |
| 17087 | ac_status=$? |
| 17088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17089 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17090 | { (case "(($ac_try" in |
| 17091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17092 | *) ac_try_echo=$ac_try;; |
| 17093 | esac |
| 17094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17095 | (eval "$ac_try") 2>&5 |
| 17096 | ac_status=$? |
| 17097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17098 | (exit $ac_status); }; }; then |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17099 | ac_cv_func_mmap_file=yes |
| 17100 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17101 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17102 | echo "$as_me: failed program was:" >&5 |
| 17103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17104 | |
| 17105 | ( exit $ac_status ) |
| 17106 | ac_cv_func_mmap_file=no |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17107 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17108 | 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] | 17109 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17110 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17111 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17112 | ac_ext=c |
| 17113 | ac_cpp='$CPP $CPPFLAGS' |
| 17114 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17115 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17116 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17117 | |
| 17118 | |
| 17119 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17120 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 17121 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17122 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 17123 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17124 | cat >>confdefs.h <<\_ACEOF |
| 17125 | #define HAVE_MMAP_FILE |
| 17126 | _ACEOF |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17127 | |
| 17128 | MMAP_FILE=yes |
| 17129 | |
| 17130 | fi |
| 17131 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17132 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 17133 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 17134 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 17135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17136 | else |
Reid Spencer | 3d745d4 | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 17137 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17138 | ac_cv_need_dev_zero_for_mmap=yes |
| 17139 | else |
| 17140 | ac_cv_need_dev_zero_for_mmap=no |
| 17141 | fi |
| 17142 | |
| 17143 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17144 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 17145 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17146 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 17147 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17148 | cat >>confdefs.h <<\_ACEOF |
| 17149 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 17150 | _ACEOF |
Reid Spencer | b668158 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17151 | |
| 17152 | fi |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17153 | |
Reid Spencer | dfda061 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 17154 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 17155 | then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17156 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 17157 | 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] | 17158 | fi |
| 17159 | if test "$ac_cv_func_mmap_file" = "no" |
| 17160 | then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17161 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 17162 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | dfda061 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 17163 | fi |
John Criswell | b65ddad | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 17164 | fi |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17165 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17166 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 17167 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
Eric Christopher | f7eb811 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 17168 | ac_ext=cpp |
| 17169 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17170 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17171 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17172 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17173 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17174 | cat >conftest.$ac_ext <<_ACEOF |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 17175 | |
| 17176 | /* confdefs.h. */ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17177 | _ACEOF |
| 17178 | cat confdefs.h >>conftest.$ac_ext |
| 17179 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 17180 | /* end confdefs.h. */ |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 17181 | |
| 17182 | int main() { |
| 17183 | volatile unsigned long val = 1; |
| 17184 | __sync_synchronize(); |
| 17185 | __sync_val_compare_and_swap(&val, 1, 0); |
| 17186 | __sync_add_and_fetch(&val, 1); |
| 17187 | __sync_sub_and_fetch(&val, 1); |
| 17188 | return 0; |
| 17189 | } |
| 17190 | |
Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 17191 | |
| 17192 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17193 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17194 | if { (ac_try="$ac_link" |
| 17195 | case "(($ac_try" in |
| 17196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17197 | *) ac_try_echo=$ac_try;; |
| 17198 | esac |
| 17199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17200 | (eval "$ac_link") 2>conftest.er1 |
| 17201 | ac_status=$? |
| 17202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17203 | rm -f conftest.er1 |
| 17204 | cat conftest.err >&5 |
| 17205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17206 | (exit $ac_status); } && |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 17207 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17208 | { (case "(($ac_try" in |
| 17209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17210 | *) ac_try_echo=$ac_try;; |
| 17211 | esac |
| 17212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17213 | (eval "$ac_try") 2>&5 |
| 17214 | ac_status=$? |
| 17215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17216 | (exit $ac_status); }; } && |
| 17217 | { ac_try='test -s conftest$ac_exeext' |
| 17218 | { (case "(($ac_try" in |
| 17219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17220 | *) ac_try_echo=$ac_try;; |
| 17221 | esac |
| 17222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17223 | (eval "$ac_try") 2>&5 |
| 17224 | ac_status=$? |
| 17225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17226 | (exit $ac_status); }; }; then |
Eric Christopher | f7eb811 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 17227 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17228 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17229 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 17230 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17231 | cat >>confdefs.h <<\_ACEOF |
Eric Christopher | 4418a60 | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 17232 | #define LLVM_HAS_ATOMICS 1 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17233 | _ACEOF |
Owen Anderson | af5db83 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 17234 | |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 17235 | |
Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 17236 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17237 | echo "$as_me: failed program was:" >&5 |
| 17238 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 17239 | |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 17240 | |
| 17241 | { echo "$as_me:$LINENO: result: no" >&5 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17242 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 17243 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17244 | cat >>confdefs.h <<\_ACEOF |
Eric Christopher | 4418a60 | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 17245 | #define LLVM_HAS_ATOMICS 0 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17246 | _ACEOF |
| 17247 | |
| 17248 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 17249 | echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 17250 | |
Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 17251 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17252 | |
Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 17253 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17254 | conftest$ac_exeext conftest.$ac_ext |
NAKAMURA Takumi | e5bc87c | 2013-01-30 01:37:55 +0000 | [diff] [blame] | 17255 | ac_ext=c |
| 17256 | ac_cpp='$CPP $CPPFLAGS' |
| 17257 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17258 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17259 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17260 | |
Owen Anderson | b9509c5 | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 17261 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17262 | |
Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 17263 | 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] | 17264 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 17265 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 17266 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 17267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 17268 | else |
| 17269 | ac_ext=c |
| 17270 | ac_cpp='$CPP $CPPFLAGS' |
| 17271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17274 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17275 | cat >conftest.$ac_ext <<_ACEOF |
| 17276 | /* confdefs.h. */ |
| 17277 | _ACEOF |
| 17278 | cat confdefs.h >>conftest.$ac_ext |
| 17279 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 17280 | /* end confdefs.h. */ |
| 17281 | #ifndef __x86_64__ |
| 17282 | error: Not x86-64 even if uname says so! |
| 17283 | #endif |
| 17284 | |
| 17285 | int |
| 17286 | main () |
| 17287 | { |
| 17288 | |
| 17289 | ; |
| 17290 | return 0; |
| 17291 | } |
| 17292 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17293 | rm -f conftest.$ac_objext |
| 17294 | if { (ac_try="$ac_compile" |
| 17295 | case "(($ac_try" in |
| 17296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17297 | *) ac_try_echo=$ac_try;; |
| 17298 | esac |
| 17299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17300 | (eval "$ac_compile") 2>conftest.er1 |
| 17301 | ac_status=$? |
| 17302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17303 | rm -f conftest.er1 |
| 17304 | cat conftest.err >&5 |
| 17305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17306 | (exit $ac_status); } && |
| 17307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17308 | { (case "(($ac_try" in |
| 17309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17310 | *) ac_try_echo=$ac_try;; |
| 17311 | esac |
| 17312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17313 | (eval "$ac_try") 2>&5 |
| 17314 | ac_status=$? |
| 17315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17316 | (exit $ac_status); }; } && |
| 17317 | { ac_try='test -s conftest.$ac_objext' |
| 17318 | { (case "(($ac_try" in |
| 17319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17320 | *) ac_try_echo=$ac_try;; |
| 17321 | esac |
| 17322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17323 | (eval "$ac_try") 2>&5 |
| 17324 | ac_status=$? |
| 17325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17326 | (exit $ac_status); }; }; then |
Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 17327 | llvm_cv_linux_mixed=no |
| 17328 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17329 | echo "$as_me: failed program was:" >&5 |
| 17330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17331 | |
| 17332 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 17333 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17334 | |
Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 17335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17336 | ac_ext=c |
| 17337 | ac_cpp='$CPP $CPPFLAGS' |
| 17338 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17339 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17340 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17341 | |
| 17342 | |
| 17343 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17344 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 17345 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 9b3f716 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 17346 | |
| 17347 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 17348 | llvm_cv_target_arch="x86" |
| 17349 | ARCH="x86" |
| 17350 | fi |
| 17351 | fi |
| 17352 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17353 | |
Reid Spencer | 32046f7 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 17354 | for ac_func in __dso_handle |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17355 | do |
| 17356 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17357 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17358 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17359 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17361 | else |
| 17362 | cat >conftest.$ac_ext <<_ACEOF |
| 17363 | /* confdefs.h. */ |
| 17364 | _ACEOF |
| 17365 | cat confdefs.h >>conftest.$ac_ext |
| 17366 | cat >>conftest.$ac_ext <<_ACEOF |
| 17367 | /* end confdefs.h. */ |
| 17368 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17369 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17370 | #define $ac_func innocuous_$ac_func |
| 17371 | |
| 17372 | /* System header to define __stub macros and hopefully few prototypes, |
| 17373 | which can conflict with char $ac_func (); below. |
| 17374 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17375 | <limits.h> exists even on freestanding compilers. */ |
| 17376 | |
| 17377 | #ifdef __STDC__ |
| 17378 | # include <limits.h> |
| 17379 | #else |
| 17380 | # include <assert.h> |
| 17381 | #endif |
| 17382 | |
| 17383 | #undef $ac_func |
| 17384 | |
| 17385 | /* Override any GCC internal prototype to avoid an error. |
| 17386 | Use char because int might match the return type of a GCC |
| 17387 | builtin and then its argument prototype would still apply. */ |
| 17388 | #ifdef __cplusplus |
| 17389 | extern "C" |
| 17390 | #endif |
| 17391 | char $ac_func (); |
| 17392 | /* The GNU C library defines this for functions which it implements |
| 17393 | to always fail with ENOSYS. Some functions are actually named |
| 17394 | something starting with __ and the normal name is an alias. */ |
| 17395 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17396 | choke me |
| 17397 | #endif |
| 17398 | |
| 17399 | int |
| 17400 | main () |
| 17401 | { |
| 17402 | return $ac_func (); |
| 17403 | ; |
| 17404 | return 0; |
| 17405 | } |
| 17406 | _ACEOF |
| 17407 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17408 | if { (ac_try="$ac_link" |
| 17409 | case "(($ac_try" in |
| 17410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17411 | *) ac_try_echo=$ac_try;; |
| 17412 | esac |
| 17413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17414 | (eval "$ac_link") 2>conftest.er1 |
| 17415 | ac_status=$? |
| 17416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17417 | rm -f conftest.er1 |
| 17418 | cat conftest.err >&5 |
| 17419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17420 | (exit $ac_status); } && |
| 17421 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17422 | { (case "(($ac_try" in |
| 17423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17424 | *) ac_try_echo=$ac_try;; |
| 17425 | esac |
| 17426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17427 | (eval "$ac_try") 2>&5 |
| 17428 | ac_status=$? |
| 17429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17430 | (exit $ac_status); }; } && |
| 17431 | { ac_try='test -s conftest$ac_exeext' |
| 17432 | { (case "(($ac_try" in |
| 17433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17434 | *) ac_try_echo=$ac_try;; |
| 17435 | esac |
| 17436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17437 | (eval "$ac_try") 2>&5 |
| 17438 | ac_status=$? |
| 17439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17440 | (exit $ac_status); }; }; then |
| 17441 | eval "$as_ac_var=yes" |
| 17442 | else |
| 17443 | echo "$as_me: failed program was:" >&5 |
| 17444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17445 | |
| 17446 | eval "$as_ac_var=no" |
| 17447 | fi |
| 17448 | |
| 17449 | rm -f core conftest.err conftest.$ac_objext \ |
| 17450 | conftest$ac_exeext conftest.$ac_ext |
| 17451 | fi |
| 17452 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17453 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17454 | echo "${ECHO_T}$ac_res" >&6; } |
| 17455 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 32046f7 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 17456 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17457 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 32046f7 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 17458 | _ACEOF |
| 17459 | |
| 17460 | fi |
| 17461 | done |
| 17462 | |
| 17463 | |
Rafael Espindola | fd1355a | 2014-02-28 18:17:54 +0000 | [diff] [blame] | 17464 | SHLIBEXT=$llvm_shlib_ext |
Brian Gaeke | a240452 | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 17465 | |
| 17466 | |
Jeff Cohen | c5e5b27 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 17467 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 40f1b13 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 17468 | prefix="/usr/local" |
| 17469 | fi |
Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 17470 | eval LLVM_PREFIX="${prefix}"; |
| 17471 | eval LLVM_BINDIR="${prefix}/bin"; |
Reid Spencer | 0194c9a | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 17472 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
Eric Christopher | b3762a0 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 17473 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; |
Reid Spencer | 0194c9a | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 17474 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 17475 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 17476 | eval LLVM_INFODIR="${prefix}/info"; |
| 17477 | eval LLVM_MANDIR="${prefix}/man"; |
| 17478 | LLVM_CONFIGTIME=`date` |
| 17479 | |
| 17480 | |
| 17481 | |
| 17482 | |
| 17483 | |
| 17484 | |
| 17485 | |
| 17486 | |
| 17487 | |
| 17488 | |
Daniel Dunbar | 9370ecf | 2012-03-02 16:24:21 +0000 | [diff] [blame] | 17489 | if test "${ENABLE_TIMESTAMPS}" = "0"; then |
| 17490 | LLVM_CONFIGTIME="(timestamp not enabled)" |
| 17491 | fi |
| 17492 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17493 | |
Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 17494 | cat >>confdefs.h <<_ACEOF |
| 17495 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 17496 | _ACEOF |
| 17497 | |
| 17498 | |
| 17499 | cat >>confdefs.h <<_ACEOF |
| 17500 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 17501 | _ACEOF |
| 17502 | |
| 17503 | |
| 17504 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 17505 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 17506 | _ACEOF |
| 17507 | |
| 17508 | |
| 17509 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 80f35e0 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 17510 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 17511 | _ACEOF |
| 17512 | |
| 17513 | |
| 17514 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | 288adf1 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 17515 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 17516 | _ACEOF |
| 17517 | |
| 17518 | |
| 17519 | cat >>confdefs.h <<_ACEOF |
| 17520 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 17521 | _ACEOF |
| 17522 | |
| 17523 | |
| 17524 | cat >>confdefs.h <<_ACEOF |
| 17525 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 17526 | _ACEOF |
| 17527 | |
| 17528 | |
| 17529 | cat >>confdefs.h <<_ACEOF |
| 17530 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 17531 | _ACEOF |
| 17532 | |
| 17533 | |
| 17534 | cat >>confdefs.h <<_ACEOF |
| 17535 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 17536 | _ACEOF |
| 17537 | |
| 17538 | |
Eric Christopher | e62b441 | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 17539 | cat >>confdefs.h <<_ACEOF |
Tim Northover | fee13d1 | 2013-05-04 07:36:23 +0000 | [diff] [blame] | 17540 | #define LLVM_HOST_TRIPLE "$host" |
NAKAMURA Takumi | 43652ae | 2012-07-22 03:04:52 +0000 | [diff] [blame] | 17541 | _ACEOF |
| 17542 | |
| 17543 | |
| 17544 | cat >>confdefs.h <<_ACEOF |
Sebastian Pop | ec2fb22 | 2011-11-01 21:31:44 +0000 | [diff] [blame] | 17545 | #define LLVM_DEFAULT_TARGET_TRIPLE "$target" |
Eric Christopher | e62b441 | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 17546 | _ACEOF |
| 17547 | |
| 17548 | |
Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 17549 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 17550 | BINDINGS_TO_BUILD="" |
Peter Zotov | 668f967 | 2014-10-30 08:29:45 +0000 | [diff] [blame] | 17551 | if test "x$OCAMLFIND" != x ; then |
Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 17552 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 17553 | fi |
Peter Collingbourne | 82e3e37 | 2014-10-16 22:48:02 +0000 | [diff] [blame] | 17554 | if test "x$GO" != x ; then |
| 17555 | if $GO run ${srcdir}/bindings/go/conftest.go ; then |
| 17556 | BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD" |
| 17557 | fi |
| 17558 | fi |
Gordon Henriksen | e61dd67 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 17559 | fi |
| 17560 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 17561 | |
| 17562 | |
Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 17563 | binding_prereqs_failed=0 |
| 17564 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 17565 | case "$a_binding" in |
| 17566 | ocaml) |
Peter Zotov | 668f967 | 2014-10-30 08:29:45 +0000 | [diff] [blame] | 17567 | if test "x$OCAMLFIND" = x ; then |
| 17568 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5 |
| 17569 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;} |
Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 17570 | binding_prereqs_failed=1 |
| 17571 | fi |
Peter Zotov | 668f967 | 2014-10-30 08:29:45 +0000 | [diff] [blame] | 17572 | |
| 17573 | if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then |
| 17574 | HAVE_OCAMLOPT=1 |
| 17575 | else |
| 17576 | HAVE_OCAMLOPT=0 |
| 17577 | fi |
| 17578 | |
| 17579 | |
| 17580 | if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then |
| 17581 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5 |
| 17582 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;} |
Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 17583 | binding_prereqs_failed=1 |
| 17584 | fi |
Peter Zotov | 668f967 | 2014-10-30 08:29:45 +0000 | [diff] [blame] | 17585 | |
| 17586 | if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then |
| 17587 | HAVE_OCAML_OUNIT=1 |
| 17588 | else |
| 17589 | HAVE_OCAML_OUNIT=0 |
| 17590 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5 |
| 17591 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;} |
Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 17592 | fi |
Peter Zotov | 668f967 | 2014-10-30 08:29:45 +0000 | [diff] [blame] | 17593 | |
| 17594 | |
Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 17595 | if test "x$with_ocaml_libdir" != xauto ; then |
| 17596 | OCAML_LIBDIR=$with_ocaml_libdir |
| 17597 | |
| 17598 | else |
Peter Zotov | 668f967 | 2014-10-30 08:29:45 +0000 | [diff] [blame] | 17599 | ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`" |
Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 17600 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 17601 | then |
| 17602 | # ocaml stdlib is beneath our prefix; use stdlib |
| 17603 | OCAML_LIBDIR=$ocaml_stdlib |
| 17604 | |
| 17605 | else |
| 17606 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
Rafael Espindola | b58973f | 2013-06-11 18:52:11 +0000 | [diff] [blame] | 17607 | OCAML_LIBDIR=${prefix}/lib/ocaml |
Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 17608 | |
| 17609 | fi |
| 17610 | fi |
| 17611 | ;; |
Peter Collingbourne | 82e3e37 | 2014-10-16 22:48:02 +0000 | [diff] [blame] | 17612 | go) |
| 17613 | if test "x$GO" = x ; then |
| 17614 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5 |
| 17615 | echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;} |
| 17616 | binding_prereqs_failed=1 |
| 17617 | else |
| 17618 | if $GO run ${srcdir}/bindings/go/conftest.go ; then |
| 17619 | : |
| 17620 | else |
| 17621 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5 |
| 17622 | echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;} |
| 17623 | binding_prereqs_failed=1 |
| 17624 | fi |
| 17625 | fi |
| 17626 | ;; |
Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 17627 | esac |
| 17628 | done |
| 17629 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17630 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 17631 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 17632 | { (exit 1); exit 1; }; } |
Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 17633 | fi |
| 17634 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17635 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 17636 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 17637 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 17638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 17639 | else |
| 17640 | ac_ext=cpp |
| 17641 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17642 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17643 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17644 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17645 | |
| 17646 | oldcxxflags="$CXXFLAGS" |
NAKAMURA Takumi | 652e013 | 2012-02-19 12:05:12 +0000 | [diff] [blame] | 17647 | CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17648 | cat >conftest.$ac_ext <<_ACEOF |
| 17649 | /* confdefs.h. */ |
| 17650 | _ACEOF |
| 17651 | cat confdefs.h >>conftest.$ac_ext |
| 17652 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 17653 | /* end confdefs.h. */ |
Benjamin Kramer | 54671a7 | 2011-12-22 22:50:44 +0000 | [diff] [blame] | 17654 | template <typename T> struct X { void __attribute__((noinline)) f() {} }; |
Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 17655 | int |
| 17656 | main () |
| 17657 | { |
Benjamin Kramer | 942b287 | 2011-12-22 22:25:26 +0000 | [diff] [blame] | 17658 | X<int>().f(); |
Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 17659 | ; |
| 17660 | return 0; |
| 17661 | } |
| 17662 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17663 | rm -f conftest.$ac_objext |
| 17664 | if { (ac_try="$ac_compile" |
| 17665 | case "(($ac_try" in |
| 17666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17667 | *) ac_try_echo=$ac_try;; |
| 17668 | esac |
| 17669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17670 | (eval "$ac_compile") 2>conftest.er1 |
| 17671 | ac_status=$? |
| 17672 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17673 | rm -f conftest.er1 |
| 17674 | cat conftest.err >&5 |
| 17675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17676 | (exit $ac_status); } && |
| 17677 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 17678 | { (case "(($ac_try" in |
| 17679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17680 | *) ac_try_echo=$ac_try;; |
| 17681 | esac |
| 17682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17683 | (eval "$ac_try") 2>&5 |
| 17684 | ac_status=$? |
| 17685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17686 | (exit $ac_status); }; } && |
| 17687 | { ac_try='test -s conftest.$ac_objext' |
| 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_try") 2>&5 |
| 17694 | ac_status=$? |
| 17695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17696 | (exit $ac_status); }; }; then |
Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 17697 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 17698 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17699 | echo "$as_me: failed program was:" >&5 |
| 17700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17701 | |
| 17702 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 17703 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17704 | |
Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 17705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17706 | CXXFLAGS="$oldcxxflags" |
| 17707 | ac_ext=c |
| 17708 | ac_cpp='$CPP $CPPFLAGS' |
| 17709 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17710 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17711 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17712 | |
| 17713 | |
| 17714 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17715 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 17716 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | 8eec985 | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 17717 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 17718 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 17719 | |
| 17720 | else |
| 17721 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 17722 | |
| 17723 | fi |
| 17724 | |
Gordon Henriksen | da5d5b5 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 17725 | |
Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 17726 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 17727 | RPATH="-Wl,-R" |
| 17728 | else |
| 17729 | RPATH="-Wl,-rpath" |
| 17730 | fi |
| 17731 | |
| 17732 | |
| 17733 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
Bob Wilson | 8d7e690 | 2013-08-02 22:51:11 +0000 | [diff] [blame] | 17734 | RDYNAMIC="-rdynamic" |
Nick Lewycky | c540cc6 | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 17735 | else |
| 17736 | RDYNAMIC="" |
| 17737 | fi |
Nick Lewycky | ed8472e | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 17738 | |
| 17739 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17740 | |
Eric Christopher | 97014d8 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 17741 | 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] | 17742 | |
Eric Christopher | 41983c6 | 2010-08-08 09:20:39 +0000 | [diff] [blame] | 17743 | |
| 17744 | |
| 17745 | |
| 17746 | |
| 17747 | |
Douglas Gregor | 1b731d5 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 17748 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 17749 | |
| 17750 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 17751 | |
Jeffrey Yasskin | 563033b | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 17752 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 17753 | |
Daniel Dunbar | 3202720 | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 17754 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 17755 | |
Michael J. Spencer | 447762d | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 17756 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17757 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17758 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17759 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17760 | |
Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 17761 | |
Reid Spencer | 1277ba2 | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 17762 | ac_config_files="$ac_config_files llvm.spec" |
| 17763 | |
| 17764 | |
Peter Collingbourne | 5ac59df | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 17765 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
| 17766 | |
Eric Christopher | f132989 | 2012-02-02 00:16:55 +0000 | [diff] [blame] | 17767 | |
Dylan Noblesmith | e21a3b2 | 2012-02-04 02:41:36 +0000 | [diff] [blame] | 17768 | if test "${clang_src_root}" = ""; then |
Eric Christopher | dc51a5d | 2012-02-02 01:11:30 +0000 | [diff] [blame] | 17769 | clang_src_root="$srcdir/tools/clang" |
Eric Christopher | 7f977de | 2012-02-02 00:19:05 +0000 | [diff] [blame] | 17770 | fi |
Eric Christopher | f132989 | 2012-02-02 00:16:55 +0000 | [diff] [blame] | 17771 | if test -f ${clang_src_root}/README.txt; then |
Chandler Carruth | 9db2b52 | 2014-12-29 11:58:17 +0000 | [diff] [blame] | 17772 | |
| 17773 | cat >>confdefs.h <<_ACEOF |
| 17774 | #define CLANG_LIBDIR_SUFFIX "" |
| 17775 | _ACEOF |
| 17776 | |
| 17777 | |
Dylan Noblesmith | a7a29c17 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 17778 | configh="include/clang/Config/config.h" |
| 17779 | doxy="docs/doxygen.cfg" |
| 17780 | 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] | 17781 | |
Dylan Noblesmith | a7a29c17 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 17782 | 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] | 17783 | |
| 17784 | fi |
| 17785 | |
Torok Edwin | 229f8d7 | 2011-10-14 20:38:02 +0000 | [diff] [blame] | 17786 | ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" |
Reid Spencer | 6f682b7 | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 17787 | |
Eric Christopher | 49709ad | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 17788 | |
Jordan Rose | 3c837ab | 2012-10-01 18:40:32 +0000 | [diff] [blame] | 17789 | test "x$program_prefix" = "xNONE" && program_prefix="" |
| 17790 | |
| 17791 | |
| 17792 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17793 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | eeedeaf | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 17794 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17795 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17796 | |
| 17797 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17798 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17799 | |
| 17800 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17801 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17802 | |
| 17803 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17804 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17805 | |
| 17806 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17807 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17808 | |
| 17809 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17810 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17811 | |
| 17812 | |
Bill Wendling | 7c53a18 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 17813 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 17814 | |
| 17815 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17816 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17817 | |
| 17818 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17819 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17820 | |
| 17821 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17822 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17823 | |
| 17824 | |
Gordon Henriksen | 6ab5c57 | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 17825 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 17826 | |
| 17827 | |
| 17828 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 17829 | |
| 17830 | |
Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17831 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17832 | cat >confcache <<\_ACEOF |
| 17833 | # This file is a shell script that caches the results of configure |
| 17834 | # tests run on this system so they can be shared between configure |
| 17835 | # scripts and configure runs, see configure's option --config-cache. |
| 17836 | # It is not useful on other systems. If it contains results you don't |
| 17837 | # want to keep, you may remove or edit it. |
| 17838 | # |
| 17839 | # config.status only pays attention to the cache file if you give it |
| 17840 | # the --recheck option to rerun configure. |
| 17841 | # |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17842 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17843 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 17844 | # following values. |
| 17845 | |
| 17846 | _ACEOF |
| 17847 | |
| 17848 | # The following way of writing the cache mishandles newlines in values, |
| 17849 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17850 | # So, we kill variables containing newlines. |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17851 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 17852 | # 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] | 17853 | ( |
| 17854 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 17855 | eval ac_val=\$$ac_var |
| 17856 | case $ac_val in #( |
| 17857 | *${as_nl}*) |
| 17858 | case $ac_var in #( |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17859 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 17860 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17861 | esac |
| 17862 | case $ac_var in #( |
| 17863 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17864 | *) $as_unset $ac_var ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17865 | esac ;; |
| 17866 | esac |
| 17867 | done |
| 17868 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17869 | (set) 2>&1 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17870 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 17871 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17872 | # `set' does not quote correctly, so add quotes (double-quote |
| 17873 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17874 | sed -n \ |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17875 | "s/'/'\\\\''/g; |
| 17876 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17877 | ;; #( |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17878 | *) |
| 17879 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17880 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17881 | ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17882 | esac | |
| 17883 | sort |
| 17884 | ) | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17885 | sed ' |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17886 | /^ac_cv_env_/b end |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17887 | t clear |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17888 | :clear |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17889 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 17890 | t end |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17891 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 17892 | :end' >>confcache |
| 17893 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 17894 | if test -w "$cache_file"; then |
| 17895 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17896 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 17897 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17898 | cat confcache >$cache_file |
| 17899 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17900 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 17901 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17902 | fi |
| 17903 | fi |
| 17904 | rm -f confcache |
| 17905 | |
| 17906 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 17907 | # Let make expand exec_prefix. |
| 17908 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 17909 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17910 | DEFS=-DHAVE_CONFIG_H |
| 17911 | |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17912 | ac_libobjs= |
| 17913 | ac_ltlibobjs= |
| 17914 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 17915 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17916 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17917 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17918 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 17919 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17920 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 17921 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17922 | done |
| 17923 | LIBOBJS=$ac_libobjs |
| 17924 | |
| 17925 | LTLIBOBJS=$ac_ltlibobjs |
| 17926 | |
| 17927 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17928 | |
| 17929 | : ${CONFIG_STATUS=./config.status} |
| 17930 | ac_clean_files_save=$ac_clean_files |
| 17931 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17932 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 17933 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 17934 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17935 | #! $SHELL |
| 17936 | # Generated by $as_me. |
| 17937 | # Run this file to recreate the current configuration. |
| 17938 | # Compiler output produced by configure, useful for debugging |
| 17939 | # configure, is in config.log if it exists. |
| 17940 | |
| 17941 | debug=false |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17942 | ac_cs_recheck=false |
| 17943 | ac_cs_silent=false |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17944 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17945 | _ACEOF |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17946 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17947 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17948 | ## --------------------- ## |
| 17949 | ## M4sh Initialization. ## |
| 17950 | ## --------------------- ## |
| 17951 | |
| 17952 | # Be Bourne compatible |
| 17953 | 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] | 17954 | emulate sh |
| 17955 | NULLCMD=: |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17956 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17957 | # is contrary to our usage. Disable this feature. |
| 17958 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17959 | setopt NO_GLOB_SUBST |
| 17960 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17961 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17962 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17963 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 17964 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17965 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17966 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17967 | # PATH needs CR |
| 17968 | # Avoid depending upon Character Ranges. |
| 17969 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 17970 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 17971 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 17972 | as_cr_digits='0123456789' |
| 17973 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17974 | |
| 17975 | # The user is always right. |
| 17976 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17977 | echo "#! /bin/sh" >conf$$.sh |
| 17978 | echo "exit 0" >>conf$$.sh |
| 17979 | chmod +x conf$$.sh |
| 17980 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 17981 | PATH_SEPARATOR=';' |
| 17982 | else |
| 17983 | PATH_SEPARATOR=: |
| 17984 | fi |
| 17985 | rm -f conf$$.sh |
| 17986 | fi |
| 17987 | |
| 17988 | # Support unset when possible. |
| 17989 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 17990 | as_unset=unset |
| 17991 | else |
| 17992 | as_unset=false |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17993 | fi |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17994 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17995 | |
| 17996 | # IFS |
| 17997 | # We need space, tab and new line, in precisely that order. Quoting is |
| 17998 | # there to prevent editors from complaining about space-tab. |
| 17999 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 18000 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18001 | as_nl=' |
| 18002 | ' |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18003 | IFS=" "" $as_nl" |
| 18004 | |
| 18005 | # 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] | 18006 | case $0 in |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18007 | *[\\/]* ) as_myself=$0 ;; |
| 18008 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18009 | for as_dir in $PATH |
| 18010 | do |
| 18011 | IFS=$as_save_IFS |
| 18012 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18013 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 18014 | done |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18015 | IFS=$as_save_IFS |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18016 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18017 | ;; |
| 18018 | esac |
| 18019 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 18020 | # in which case we are not to be found in the path. |
| 18021 | if test "x$as_myself" = x; then |
| 18022 | as_myself=$0 |
| 18023 | fi |
| 18024 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18025 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 18026 | { (exit 1); exit 1; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18027 | fi |
| 18028 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18029 | # Work around bugs in pre-3.0 UWIN ksh. |
| 18030 | for as_var in ENV MAIL MAILPATH |
| 18031 | 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] | 18032 | done |
| 18033 | PS1='$ ' |
| 18034 | PS2='> ' |
| 18035 | PS4='+ ' |
| 18036 | |
| 18037 | # NLS nuisances. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18038 | for as_var in \ |
| 18039 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 18040 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 18041 | LC_TELEPHONE LC_TIME |
| 18042 | do |
| 18043 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 18044 | eval $as_var=C; export $as_var |
| 18045 | else |
| 18046 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18047 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18048 | done |
Torok Edwin | aec0633 | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18049 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18050 | # Required to use basename. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18051 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 18052 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 18053 | as_expr=expr |
| 18054 | else |
| 18055 | as_expr=false |
| 18056 | fi |
| 18057 | |
| 18058 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 18059 | as_basename=basename |
| 18060 | else |
| 18061 | as_basename=false |
| 18062 | fi |
| 18063 | |
| 18064 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18065 | # Name of the executable. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18066 | as_me=`$as_basename -- "$0" || |
| 18067 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 18068 | X"$0" : 'X\(//\)$' \| \ |
| 18069 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18070 | echo X/"$0" | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18071 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 18072 | s//\1/ |
| 18073 | q |
| 18074 | } |
| 18075 | /^X\/\(\/\/\)$/{ |
| 18076 | s//\1/ |
| 18077 | q |
| 18078 | } |
| 18079 | /^X\/\(\/\).*/{ |
| 18080 | s//\1/ |
| 18081 | q |
| 18082 | } |
| 18083 | s/.*/./; q'` |
| 18084 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18085 | # CDPATH. |
| 18086 | $as_unset CDPATH |
| 18087 | |
| 18088 | |
| 18089 | |
| 18090 | as_lineno_1=$LINENO |
| 18091 | as_lineno_2=$LINENO |
| 18092 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 18093 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 18094 | |
| 18095 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 18096 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 18097 | # line-number line after each line using $LINENO; the second 'sed' |
| 18098 | # does the real work. The second script uses 'N' to pair each |
| 18099 | # line-number line with the line containing $LINENO, and appends |
| 18100 | # trailing '-' during substitution so that $LINENO is not a special |
| 18101 | # case at line end. |
| 18102 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 18103 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 18104 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 18105 | sed -n ' |
| 18106 | p |
| 18107 | /[$]LINENO/= |
| 18108 | ' <$as_myself | |
| 18109 | sed ' |
| 18110 | s/[$]LINENO.*/&-/ |
| 18111 | t lineno |
| 18112 | b |
| 18113 | :lineno |
| 18114 | N |
| 18115 | :loop |
| 18116 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 18117 | t loop |
| 18118 | s/-\n.*// |
| 18119 | ' >$as_me.lineno && |
| 18120 | chmod +x "$as_me.lineno" || |
| 18121 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 18122 | { (exit 1); exit 1; }; } |
| 18123 | |
| 18124 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 18125 | # (the dirname of $[0] is not the place where we might find the |
| 18126 | # original and so on. Autoconf is especially sensitive to this). |
| 18127 | . "./$as_me.lineno" |
| 18128 | # Exit status is that of the last command. |
| 18129 | exit |
| 18130 | } |
| 18131 | |
| 18132 | |
| 18133 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 18134 | as_dirname=dirname |
| 18135 | else |
| 18136 | as_dirname=false |
| 18137 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18138 | |
| 18139 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18140 | case `echo -n x` in |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18141 | -n*) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18142 | case `echo 'x\c'` in |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18143 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18144 | *) ECHO_C='\c';; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18145 | esac;; |
| 18146 | *) |
| 18147 | ECHO_N='-n';; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18148 | esac |
| 18149 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18150 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 18151 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 18152 | as_expr=expr |
| 18153 | else |
| 18154 | as_expr=false |
| 18155 | fi |
| 18156 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18157 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18158 | if test -d conf$$.dir; then |
| 18159 | rm -f conf$$.dir/conf$$.file |
| 18160 | else |
| 18161 | rm -f conf$$.dir |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18162 | mkdir conf$$.dir |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18163 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18164 | echo >conf$$.file |
| 18165 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 18166 | as_ln_s='ln -s' |
| 18167 | # ... but there are two gotchas: |
| 18168 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 18169 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 18170 | # In both cases, we have to default to `cp -p'. |
| 18171 | 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] | 18172 | as_ln_s='cp -p' |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18173 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 18174 | as_ln_s=ln |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18175 | else |
| 18176 | as_ln_s='cp -p' |
| 18177 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18178 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 18179 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18180 | |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18181 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18182 | as_mkdir_p=: |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18183 | else |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18184 | test -d ./-p && rmdir ./-p |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18185 | as_mkdir_p=false |
| 18186 | fi |
| 18187 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18188 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 18189 | # systems may use methods other than mode bits to determine executability. |
| 18190 | cat >conf$$.file <<_ASEOF |
| 18191 | #! /bin/sh |
| 18192 | exit 0 |
| 18193 | _ASEOF |
| 18194 | chmod +x conf$$.file |
| 18195 | if test -x conf$$.file >/dev/null 2>&1; then |
| 18196 | as_executable_p="test -x" |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18197 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18198 | as_executable_p=: |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18199 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18200 | rm -f conf$$.file |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18201 | |
| 18202 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18203 | 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] | 18204 | |
| 18205 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18206 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18207 | |
| 18208 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18209 | exec 6>&1 |
| 18210 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18211 | # 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] | 18212 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18213 | # values after options handling. |
| 18214 | ac_log=" |
Hans Wennborg | d94a5f0 | 2015-01-14 17:38:03 +0000 | [diff] [blame] | 18215 | This file was extended by LLVM $as_me 3.7.0svn, which was |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18216 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18217 | |
| 18218 | CONFIG_FILES = $CONFIG_FILES |
| 18219 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 18220 | CONFIG_LINKS = $CONFIG_LINKS |
| 18221 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 18222 | $ $0 $@ |
| 18223 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18224 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 18225 | " |
| 18226 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18227 | _ACEOF |
| 18228 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18229 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18230 | # Files that config.status was made for. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18231 | config_files="$ac_config_files" |
| 18232 | config_headers="$ac_config_headers" |
| 18233 | config_commands="$ac_config_commands" |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18234 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18235 | _ACEOF |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18236 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18237 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18238 | ac_cs_usage="\ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18239 | \`$as_me' instantiates files from templates according to the |
| 18240 | current configuration. |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18241 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18242 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18243 | |
| 18244 | -h, --help print this help, then exit |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18245 | -V, --version print version number, then exit |
| 18246 | -q, --quiet do not print progress messages |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18247 | -d, --debug don't remove temporary files |
| 18248 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18249 | --file=FILE[:TEMPLATE] |
| 18250 | instantiate the configuration file FILE |
| 18251 | --header=FILE[:TEMPLATE] |
| 18252 | instantiate the configuration header FILE |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18253 | |
| 18254 | Configuration files: |
| 18255 | $config_files |
| 18256 | |
| 18257 | Configuration headers: |
| 18258 | $config_headers |
| 18259 | |
John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 18260 | Configuration commands: |
| 18261 | $config_commands |
| 18262 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18263 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18264 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18265 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18266 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18267 | ac_cs_version="\\ |
Hans Wennborg | d94a5f0 | 2015-01-14 17:38:03 +0000 | [diff] [blame] | 18268 | LLVM config.status 3.7.0svn |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18269 | configured by $0, generated by GNU Autoconf 2.60, |
| 18270 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18271 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18272 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18273 | This config.status script is free software; the Free Software Foundation |
| 18274 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18275 | |
| 18276 | ac_pwd='$ac_pwd' |
| 18277 | srcdir='$srcdir' |
| 18278 | INSTALL='$INSTALL' |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18279 | _ACEOF |
| 18280 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18281 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18282 | # If no file are specified by the user, then we need to provide default |
| 18283 | # 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] | 18284 | ac_need_defaults=: |
| 18285 | while test $# != 0 |
| 18286 | do |
| 18287 | case $1 in |
| 18288 | --*=*) |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18289 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 18290 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18291 | ac_shift=: |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18292 | ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18293 | *) |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18294 | ac_option=$1 |
| 18295 | ac_optarg=$2 |
| 18296 | ac_shift=shift |
| 18297 | ;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18298 | esac |
| 18299 | |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18300 | case $ac_option in |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18301 | # Handling of the options. |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18302 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 18303 | ac_cs_recheck=: ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18304 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18305 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18306 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18307 | debug=: ;; |
| 18308 | --file | --fil | --fi | --f ) |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18309 | $ac_shift |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18310 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18311 | ac_need_defaults=false;; |
| 18312 | --header | --heade | --head | --hea ) |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18313 | $ac_shift |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18314 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18315 | ac_need_defaults=false;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18316 | --he | --h) |
| 18317 | # Conflict between --help and --header |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18318 | { echo "$as_me: error: ambiguous option: $1 |
| 18319 | Try \`$0 --help' for more information." >&2 |
| 18320 | { (exit 1); exit 1; }; };; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18321 | --help | --hel | -h ) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18322 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18323 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 18324 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 18325 | ac_cs_silent=: ;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18326 | |
| 18327 | # This is an error. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18328 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 18329 | Try \`$0 --help' for more information." >&2 |
| 18330 | { (exit 1); exit 1; }; } ;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18331 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18332 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18333 | ac_need_defaults=false ;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18334 | |
| 18335 | esac |
| 18336 | shift |
| 18337 | done |
| 18338 | |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18339 | ac_configure_extra_args= |
| 18340 | |
| 18341 | if $ac_cs_silent; then |
| 18342 | exec 6>/dev/null |
| 18343 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 18344 | fi |
| 18345 | |
| 18346 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18347 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18348 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18349 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 18350 | CONFIG_SHELL=$SHELL |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18351 | export CONFIG_SHELL |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18352 | 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] | 18353 | fi |
| 18354 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18355 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18356 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18357 | exec 5>>config.log |
| 18358 | { |
| 18359 | echo |
| 18360 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 18361 | ## Running $as_me. ## |
| 18362 | _ASBOX |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18363 | echo "$ac_log" |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18364 | } >&5 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18365 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18366 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18367 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 18368 | # |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18369 | # INIT-COMMANDS |
John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 18370 | # |
Reid Spencer | eeedeaf | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 18371 | llvm_src="${srcdir}" |
John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 18372 | |
| 18373 | _ACEOF |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18374 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18375 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18376 | |
| 18377 | # Handling of arguments. |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18378 | for ac_config_target in $ac_config_targets |
| 18379 | do |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18380 | case $ac_config_target in |
| 18381 | "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] | 18382 | "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] | 18383 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 18384 | "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] | 18385 | "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] | 18386 | "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] | 18387 | "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] | 18388 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | 1277ba2 | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 18389 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Peter Collingbourne | 5ac59df | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 18390 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Dylan Noblesmith | a7a29c17 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 18391 | "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;; |
| 18392 | "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] | 18393 | "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] | 18394 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 18395 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 18396 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 18397 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 18398 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18399 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 18400 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | 7c53a18 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 18401 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18402 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 18403 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 18404 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 6ab5c57 | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 18405 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 18406 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18407 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18408 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 18409 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 18410 | { (exit 1); exit 1; }; };; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18411 | esac |
| 18412 | done |
| 18413 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18414 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18415 | # If the user did not use the arguments to specify the items to instantiate, |
| 18416 | # then the envvar interface is used. Set only those that are not. |
| 18417 | # We use the long form for the default assignment because of an extremely |
| 18418 | # bizarre bug on SunOS 4.1.3. |
| 18419 | if $ac_need_defaults; then |
| 18420 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 18421 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 18422 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18423 | fi |
| 18424 | |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18425 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18426 | # 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] | 18427 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18428 | # Hook for its removal unless debugging. |
| 18429 | # Note that there is a small window in which the directory will not be cleaned: |
| 18430 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18431 | $debug || |
| 18432 | { |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18433 | tmp= |
| 18434 | trap 'exit_status=$? |
| 18435 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 18436 | ' 0 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18437 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18438 | } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18439 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18440 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18441 | { |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18442 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18443 | test -n "$tmp" && test -d "$tmp" |
| 18444 | } || |
| 18445 | { |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18446 | tmp=./conf$$-$RANDOM |
| 18447 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18448 | } || |
| 18449 | { |
| 18450 | echo "$me: cannot create a temporary directory in ." >&2 |
| 18451 | { (exit 1); exit 1; } |
| 18452 | } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18453 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18454 | # |
| 18455 | # Set up the sed scripts for CONFIG_FILES section. |
| 18456 | # |
| 18457 | |
| 18458 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 18459 | # This happens for instance when ./config.status config.h |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18460 | if test -n "$CONFIG_FILES"; then |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18461 | |
| 18462 | _ACEOF |
| 18463 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18464 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18465 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18466 | ac_delim='%!_!# ' |
| 18467 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18468 | cat >conf$$subs.sed <<_ACEOF |
| 18469 | SHELL!$SHELL$ac_delim |
| 18470 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 18471 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 18472 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 18473 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 18474 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 18475 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 18476 | exec_prefix!$exec_prefix$ac_delim |
| 18477 | prefix!$prefix$ac_delim |
| 18478 | program_transform_name!$program_transform_name$ac_delim |
| 18479 | bindir!$bindir$ac_delim |
| 18480 | sbindir!$sbindir$ac_delim |
| 18481 | libexecdir!$libexecdir$ac_delim |
| 18482 | datarootdir!$datarootdir$ac_delim |
| 18483 | datadir!$datadir$ac_delim |
| 18484 | sysconfdir!$sysconfdir$ac_delim |
| 18485 | sharedstatedir!$sharedstatedir$ac_delim |
| 18486 | localstatedir!$localstatedir$ac_delim |
| 18487 | includedir!$includedir$ac_delim |
| 18488 | oldincludedir!$oldincludedir$ac_delim |
| 18489 | docdir!$docdir$ac_delim |
| 18490 | infodir!$infodir$ac_delim |
| 18491 | htmldir!$htmldir$ac_delim |
| 18492 | dvidir!$dvidir$ac_delim |
| 18493 | pdfdir!$pdfdir$ac_delim |
| 18494 | psdir!$psdir$ac_delim |
| 18495 | libdir!$libdir$ac_delim |
| 18496 | localedir!$localedir$ac_delim |
| 18497 | mandir!$mandir$ac_delim |
| 18498 | DEFS!$DEFS$ac_delim |
| 18499 | ECHO_C!$ECHO_C$ac_delim |
| 18500 | ECHO_N!$ECHO_N$ac_delim |
| 18501 | ECHO_T!$ECHO_T$ac_delim |
| 18502 | LIBS!$LIBS$ac_delim |
| 18503 | build_alias!$build_alias$ac_delim |
| 18504 | host_alias!$host_alias$ac_delim |
| 18505 | target_alias!$target_alias$ac_delim |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 18506 | LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim |
| 18507 | LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim |
Tom Stellard | e6ba81d | 2014-03-03 15:22:00 +0000 | [diff] [blame] | 18508 | LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim |
| 18509 | LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18510 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 18511 | CC!$CC$ac_delim |
| 18512 | CFLAGS!$CFLAGS$ac_delim |
| 18513 | LDFLAGS!$LDFLAGS$ac_delim |
| 18514 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 18515 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 18516 | EXEEXT!$EXEEXT$ac_delim |
| 18517 | OBJEXT!$OBJEXT$ac_delim |
| 18518 | CXX!$CXX$ac_delim |
| 18519 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 18520 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 18521 | CPP!$CPP$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18522 | subdirs!$subdirs$ac_delim |
Tobias Grosser | ea9dca4 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 18523 | ENABLE_POLLY!$ENABLE_POLLY$ac_delim |
| 18524 | LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18525 | build!$build$ac_delim |
| 18526 | build_cpu!$build_cpu$ac_delim |
| 18527 | build_vendor!$build_vendor$ac_delim |
| 18528 | build_os!$build_os$ac_delim |
| 18529 | host!$host$ac_delim |
| 18530 | host_cpu!$host_cpu$ac_delim |
| 18531 | host_vendor!$host_vendor$ac_delim |
| 18532 | host_os!$host_os$ac_delim |
| 18533 | target!$target$ac_delim |
| 18534 | target_cpu!$target_cpu$ac_delim |
| 18535 | target_vendor!$target_vendor$ac_delim |
| 18536 | target_os!$target_os$ac_delim |
| 18537 | OS!$OS$ac_delim |
| 18538 | HOST_OS!$HOST_OS$ac_delim |
| 18539 | TARGET_OS!$TARGET_OS$ac_delim |
| 18540 | LINKALL!$LINKALL$ac_delim |
| 18541 | NOLINKALL!$NOLINKALL$ac_delim |
| 18542 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 18543 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 18544 | ARCH!$ARCH$ac_delim |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 18545 | LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim |
Danil Malyshev | 7c5db45 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 18546 | HOST_ARCH!$HOST_ARCH$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18547 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 18548 | BUILD_CC!$BUILD_CC$ac_delim |
| 18549 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 18550 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 18551 | CVSBUILD!$CVSBUILD$ac_delim |
Eric Christopher | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 18552 | ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim |
Chandler Carruth | bbae512 | 2014-03-01 03:33:08 +0000 | [diff] [blame] | 18553 | ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim |
Eric Christopher | f1bd770 | 2013-06-25 01:12:25 +0000 | [diff] [blame] | 18554 | ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim |
Roman Divacky | f2bb66b | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 18555 | ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim |
Rafael Espindola | e33f06c | 2014-03-10 16:58:35 +0000 | [diff] [blame] | 18556 | CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim |
Roman Divacky | f2bb66b | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 18557 | ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18558 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 18559 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 18560 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
Eric Christopher | 8486401 | 2012-08-03 19:58:20 +0000 | [diff] [blame] | 18561 | ENABLE_WERROR!$ENABLE_WERROR$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18562 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 18563 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 18564 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
Eric Christopher | 14b76d5 | 2014-07-28 22:00:44 +0000 | [diff] [blame] | 18565 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18566 | _ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18567 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18568 | 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] | 18569 | break |
| 18570 | elif $ac_last_try; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18571 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 18572 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 18573 | { (exit 1); exit 1; }; } |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18574 | else |
| 18575 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18576 | fi |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18577 | done |
| 18578 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18579 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 18580 | if test -n "$ac_eof"; then |
| 18581 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 18582 | ac_eof=`expr $ac_eof + 1` |
| 18583 | fi |
| 18584 | |
| 18585 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18586 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 18587 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18588 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18589 | sed ' |
| 18590 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 18591 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 18592 | :n |
| 18593 | t n |
| 18594 | s/'"$ac_delim"'$/,g/; t |
| 18595 | s/$/\\/; p |
| 18596 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 18597 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 18598 | rm -f conf$$subs.sed |
| 18599 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18600 | CEOF$ac_eof |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18601 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18602 | |
| 18603 | |
| 18604 | ac_delim='%!_!# ' |
| 18605 | for ac_last_try in false false false false false :; do |
| 18606 | cat >conf$$subs.sed <<_ACEOF |
Tom Stellard | e6ba81d | 2014-03-03 15:22:00 +0000 | [diff] [blame] | 18607 | KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim |
| 18608 | JIT!$JIT$ac_delim |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 18609 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 18610 | TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim |
| 18611 | ENABLE_DOCS!$ENABLE_DOCS$ac_delim |
| 18612 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
Roman Divacky | f2bb66b | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 18613 | LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim |
Daniel Dunbar | 39c0462 | 2012-08-14 18:14:22 +0000 | [diff] [blame] | 18614 | ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim |
Alexey Samsonov | 2fb337e | 2013-04-23 08:28:39 +0000 | [diff] [blame] | 18615 | LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim |
Eric Christopher | 8486401 | 2012-08-03 19:58:20 +0000 | [diff] [blame] | 18616 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Eric Christopher | 04e3597 | 2012-08-03 19:47:14 +0000 | [diff] [blame] | 18617 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
Danil Malyshev | 7c5db45 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 18618 | ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim |
Eric Christopher | 1094ded | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 18619 | ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 18620 | ALL_TARGETS!$ALL_TARGETS$ac_delim |
Eric Christopher | 5883971 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 18621 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 18622 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 18623 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
NAKAMURA Takumi | 495afdf | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 18624 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
NAKAMURA Takumi | c6fce17 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 18625 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
Jeffrey Yasskin | 6b718f7 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 18626 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Daniel Dunbar | 49b962c | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 18627 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
Daniel Dunbar | 3b95df8 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 18628 | EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim |
NAKAMURA Takumi | 914f192 | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 18629 | CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim |
Daniel Dunbar | 49b962c | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 18630 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 18631 | ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim |
Bob Wilson | 3f35470 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 18632 | INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18633 | ifGNUmake!$ifGNUmake$ac_delim |
| 18634 | LN_S!$LN_S$ac_delim |
Rafael Espindola | fd1355a | 2014-02-28 18:17:54 +0000 | [diff] [blame] | 18635 | NM!$NM$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18636 | CMP!$CMP$ac_delim |
| 18637 | CP!$CP$ac_delim |
| 18638 | DATE!$DATE$ac_delim |
| 18639 | FIND!$FIND$ac_delim |
Eric Christopher | d7ed36b | 2014-01-09 01:09:57 +0000 | [diff] [blame] | 18640 | GREP!$GREP$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18641 | MKDIR!$MKDIR$ac_delim |
| 18642 | MV!$MV$ac_delim |
| 18643 | RANLIB!$RANLIB$ac_delim |
| 18644 | AR!$AR$ac_delim |
| 18645 | RM!$RM$ac_delim |
| 18646 | SED!$SED$ac_delim |
| 18647 | TAR!$TAR$ac_delim |
| 18648 | BINPWD!$BINPWD$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18649 | DOT!$DOT$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18650 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 18651 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 18652 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 18653 | BZIP2!$BZIP2$ac_delim |
mike-m | e08af30 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 18654 | CAT!$CAT$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18655 | DOXYGEN!$DOXYGEN$ac_delim |
Daniel Dunbar | d188882 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 18656 | GROFF!$GROFF$ac_delim |
Eric Christopher | 7756089 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 18657 | GZIPBIN!$GZIPBIN$ac_delim |
Daniel Dunbar | d188882 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 18658 | PDFROFF!$PDFROFF$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18659 | ZIP!$ZIP$ac_delim |
Peter Collingbourne | 82e3e37 | 2014-10-16 22:48:02 +0000 | [diff] [blame] | 18660 | GO!$GO$ac_delim |
Peter Zotov | 668f967 | 2014-10-30 08:29:45 +0000 | [diff] [blame] | 18661 | OCAMLFIND!$OCAMLFIND$ac_delim |
Daniel Dunbar | d188882 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 18662 | GAS!$GAS$ac_delim |
Dan Gohman | b7edb42 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 18663 | HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim |
Eric Christopher | d7ed36b | 2014-01-09 01:09:57 +0000 | [diff] [blame] | 18664 | EGREP!$EGREP$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18665 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 18666 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
Rafael Espindola | 42e94d1 | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 18667 | COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim |
David Greene | 9ff8d47 | 2013-01-09 22:11:13 +0000 | [diff] [blame] | 18668 | NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim |
| 18669 | NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim |
Eric Christopher | 65ec83b | 2014-11-05 00:35:15 +0000 | [diff] [blame] | 18670 | NO_COMMENT!$NO_COMMENT$ac_delim |
Saleem Abdulrasool | a166574 | 2013-01-30 04:44:17 +0000 | [diff] [blame] | 18671 | PYTHON!$PYTHON$ac_delim |
NAKAMURA Takumi | 84e8530 | 2014-02-09 16:36:42 +0000 | [diff] [blame] | 18672 | HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim |
| 18673 | HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18674 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
Eli Bendersky | 5262ad2 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 18675 | USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim |
Eric Christopher | c807c53 | 2012-08-03 19:47:19 +0000 | [diff] [blame] | 18676 | XML2CONFIG!$XML2CONFIG$ac_delim |
| 18677 | LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim |
| 18678 | LIBXML2_INC!$LIBXML2_INC$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18679 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
Alexey Samsonov | 2fb337e | 2013-04-23 08:28:39 +0000 | [diff] [blame] | 18680 | HAVE_LIBZ!$HAVE_LIBZ$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18681 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 18682 | MMAP_FILE!$MMAP_FILE$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18683 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 18684 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 18685 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18686 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 18687 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 18688 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
Rafael Espindola | 11ac853 | 2014-02-28 16:16:51 +0000 | [diff] [blame] | 18689 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
Rafael Espindola | fd1355a | 2014-02-28 18:17:54 +0000 | [diff] [blame] | 18690 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 18691 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
Eric Christopher | 14b76d5 | 2014-07-28 22:00:44 +0000 | [diff] [blame] | 18692 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 18693 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
Peter Zotov | 668f967 | 2014-10-30 08:29:45 +0000 | [diff] [blame] | 18694 | HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim |
| 18695 | HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim |
Eric Christopher | 14b76d5 | 2014-07-28 22:00:44 +0000 | [diff] [blame] | 18696 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 18697 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 18698 | RPATH!$RPATH$ac_delim |
| 18699 | RDYNAMIC!$RDYNAMIC$ac_delim |
| 18700 | program_prefix!$program_prefix$ac_delim |
| 18701 | LIBOBJS!$LIBOBJS$ac_delim |
| 18702 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18703 | _ACEOF |
| 18704 | |
Eric Christopher | 65ec83b | 2014-11-05 00:35:15 +0000 | [diff] [blame] | 18705 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18706 | break |
| 18707 | elif $ac_last_try; then |
| 18708 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 18709 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 18710 | { (exit 1); exit 1; }; } |
| 18711 | else |
| 18712 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 18713 | fi |
| 18714 | done |
| 18715 | |
| 18716 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 18717 | if test -n "$ac_eof"; then |
| 18718 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 18719 | ac_eof=`expr $ac_eof + 1` |
| 18720 | fi |
| 18721 | |
| 18722 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18723 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
Eric Christopher | 65ec83b | 2014-11-05 00:35:15 +0000 | [diff] [blame] | 18724 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Roman Divacky | f2bb66b | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 18725 | _ACEOF |
| 18726 | sed ' |
| 18727 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 18728 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 18729 | :n |
| 18730 | t n |
| 18731 | s/'"$ac_delim"'$/,g/; t |
| 18732 | s/$/\\/; p |
| 18733 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 18734 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 18735 | rm -f conf$$subs.sed |
| 18736 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18737 | CEOF$ac_eof |
| 18738 | _ACEOF |
| 18739 | |
| 18740 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18741 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 18742 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 18743 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 18744 | # (actually we leave an empty line to preserve line numbers). |
| 18745 | if test "x$srcdir" = x.; then |
| 18746 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 18747 | s/:*\$(srcdir):*/:/ |
| 18748 | s/:*\${srcdir}:*/:/ |
| 18749 | s/:*@srcdir@:*/:/ |
| 18750 | s/^\([^=]*=[ ]*\):*/\1/ |
| 18751 | s/:*$// |
| 18752 | s/^[^=]*=[ ]*$// |
| 18753 | }' |
| 18754 | fi |
| 18755 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18756 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18757 | fi # test -n "$CONFIG_FILES" |
| 18758 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18759 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18760 | 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] | 18761 | do |
| 18762 | case $ac_tag in |
| 18763 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 18764 | esac |
| 18765 | case $ac_mode$ac_tag in |
| 18766 | :[FHL]*:*);; |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18767 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 18768 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 18769 | { (exit 1); exit 1; }; };; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18770 | :[FH]-) ac_tag=-:-;; |
| 18771 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 18772 | esac |
| 18773 | ac_save_IFS=$IFS |
| 18774 | IFS=: |
| 18775 | set x $ac_tag |
| 18776 | IFS=$ac_save_IFS |
| 18777 | shift |
| 18778 | ac_file=$1 |
| 18779 | shift |
| 18780 | |
| 18781 | case $ac_mode in |
| 18782 | :L) ac_source=$1;; |
| 18783 | :[FH]) |
| 18784 | ac_file_inputs= |
| 18785 | for ac_f |
| 18786 | do |
| 18787 | case $ac_f in |
| 18788 | -) ac_f="$tmp/stdin";; |
| 18789 | *) # Look for the file first in the build tree, then in the source tree |
| 18790 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 18791 | # because $ac_f cannot contain `:'. |
| 18792 | test -f "$ac_f" || |
| 18793 | case $ac_f in |
| 18794 | [\\/$]*) false;; |
| 18795 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 18796 | esac || |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18797 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 18798 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 18799 | { (exit 1); exit 1; }; };; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18800 | esac |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18801 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18802 | done |
| 18803 | |
| 18804 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 18805 | # use $as_me), people would be surprised to read: |
| 18806 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18807 | configure_input="Generated from "`IFS=: |
| 18808 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18809 | if test x"$ac_file" != x-; then |
| 18810 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18811 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 18812 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18813 | fi |
| 18814 | |
| 18815 | case $ac_tag in |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18816 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18817 | esac |
| 18818 | ;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18819 | esac |
| 18820 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18821 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18822 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18823 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 18824 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18825 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18826 | echo X"$ac_file" | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18827 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 18828 | s//\1/ |
| 18829 | q |
| 18830 | } |
| 18831 | /^X\(\/\/\)[^/].*/{ |
| 18832 | s//\1/ |
| 18833 | q |
| 18834 | } |
| 18835 | /^X\(\/\/\)$/{ |
| 18836 | s//\1/ |
| 18837 | q |
| 18838 | } |
| 18839 | /^X\(\/\).*/{ |
| 18840 | s//\1/ |
| 18841 | q |
| 18842 | } |
| 18843 | s/.*/./; q'` |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18844 | { as_dir="$ac_dir" |
| 18845 | case $as_dir in #( |
| 18846 | -*) as_dir=./$as_dir;; |
| 18847 | esac |
| 18848 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 18849 | as_dirs= |
| 18850 | while :; do |
| 18851 | case $as_dir in #( |
| 18852 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 18853 | *) as_qdir=$as_dir;; |
| 18854 | esac |
| 18855 | as_dirs="'$as_qdir' $as_dirs" |
| 18856 | as_dir=`$as_dirname -- "$as_dir" || |
| 18857 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18858 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 18859 | X"$as_dir" : 'X\(//\)$' \| \ |
| 18860 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 18861 | echo X"$as_dir" | |
| 18862 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 18863 | s//\1/ |
| 18864 | q |
| 18865 | } |
| 18866 | /^X\(\/\/\)[^/].*/{ |
| 18867 | s//\1/ |
| 18868 | q |
| 18869 | } |
| 18870 | /^X\(\/\/\)$/{ |
| 18871 | s//\1/ |
| 18872 | q |
| 18873 | } |
| 18874 | /^X\(\/\).*/{ |
| 18875 | s//\1/ |
| 18876 | q |
| 18877 | } |
| 18878 | s/.*/./; q'` |
| 18879 | test -d "$as_dir" && break |
| 18880 | done |
| 18881 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 18882 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 18883 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 18884 | { (exit 1); exit 1; }; }; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18885 | ac_builddir=. |
| 18886 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18887 | case "$ac_dir" in |
| 18888 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 18889 | *) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18890 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18891 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18892 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18893 | case $ac_top_builddir_sub in |
| 18894 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 18895 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 18896 | esac ;; |
| 18897 | esac |
| 18898 | ac_abs_top_builddir=$ac_pwd |
| 18899 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 18900 | # for backward compatibility: |
| 18901 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18902 | |
| 18903 | case $srcdir in |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18904 | .) # We are building in place. |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18905 | ac_srcdir=. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18906 | ac_top_srcdir=$ac_top_builddir_sub |
| 18907 | ac_abs_top_srcdir=$ac_pwd ;; |
| 18908 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18909 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18910 | ac_top_srcdir=$srcdir |
| 18911 | ac_abs_top_srcdir=$srcdir ;; |
| 18912 | *) # Relative name. |
| 18913 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 18914 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 18915 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18916 | esac |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18917 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18918 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18919 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18920 | case $ac_mode in |
| 18921 | :F) |
| 18922 | # |
| 18923 | # CONFIG_FILE |
| 18924 | # |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18925 | |
| 18926 | case $INSTALL in |
| 18927 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18928 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18929 | esac |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18930 | _ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18931 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18932 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18933 | # If the template does not know about datarootdir, expand it. |
| 18934 | # FIXME: This hack should be removed a few years after 2.60. |
| 18935 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18936 | |
| 18937 | case `sed -n '/datarootdir/ { |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18938 | p |
| 18939 | q |
| 18940 | } |
| 18941 | /@datadir@/p |
| 18942 | /@docdir@/p |
| 18943 | /@infodir@/p |
| 18944 | /@localedir@/p |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18945 | /@mandir@/p |
| 18946 | ' $ac_file_inputs` in |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18947 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 18948 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18949 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 18950 | 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] | 18951 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18952 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18953 | ac_datarootdir_hack=' |
| 18954 | s&@datadir@&$datadir&g |
| 18955 | s&@docdir@&$docdir&g |
| 18956 | s&@infodir@&$infodir&g |
| 18957 | s&@localedir@&$localedir&g |
| 18958 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18959 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18960 | esac |
| 18961 | _ACEOF |
| 18962 | |
| 18963 | # Neutralize VPATH when `$srcdir' = `.'. |
| 18964 | # Shell code in configure.ac might set extrasub. |
| 18965 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18966 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18967 | sed "$ac_vpsub |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18968 | $extrasub |
| 18969 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18970 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18971 | :t |
| 18972 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18973 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18974 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 18975 | s&@srcdir@&$ac_srcdir&;t t |
| 18976 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 18977 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 18978 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 18979 | s&@builddir@&$ac_builddir&;t t |
| 18980 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 18981 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 18982 | s&@INSTALL@&$ac_INSTALL&;t t |
| 18983 | $ac_datarootdir_hack |
Eric Christopher | 65ec83b | 2014-11-05 00:35:15 +0000 | [diff] [blame] | 18984 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18985 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18986 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 18987 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 18988 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18989 | { 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] | 18990 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18991 | 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] | 18992 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18993 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18994 | rm -f "$tmp/stdin" |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18995 | case $ac_file in |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18996 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 18997 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 18998 | esac |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18999 | ;; |
| 19000 | :H) |
| 19001 | # |
| 19002 | # CONFIG_HEADER |
| 19003 | # |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19004 | _ACEOF |
| 19005 | |
| 19006 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 19007 | # substitutes the proper values into config.h.in to produce config.h. |
| 19008 | rm -f conftest.defines conftest.tail |
| 19009 | # First, append a space to every undef/define line, to ease matching. |
| 19010 | echo 's/$/ /' >conftest.defines |
| 19011 | # Then, protect against being on the right side of a sed subst, or in |
| 19012 | # an unquoted here document, in config.status. If some macros were |
| 19013 | # called several times there might be several #defines for the same |
| 19014 | # symbol, which is useless. But do not sort them, since the last |
| 19015 | # AC_DEFINE must be honored. |
| 19016 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 19017 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 19018 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 19019 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 19020 | # just an empty string. |
| 19021 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 19022 | ac_dB='\\)[ (].*,\\1define\\2' |
| 19023 | ac_dC=' ' |
| 19024 | ac_dD=' ,' |
| 19025 | |
| 19026 | uniq confdefs.h | |
| 19027 | sed -n ' |
| 19028 | t rset |
| 19029 | :rset |
| 19030 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 19031 | t ok |
| 19032 | d |
| 19033 | :ok |
| 19034 | s/[\\&,]/\\&/g |
| 19035 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 19036 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 19037 | ' >>conftest.defines |
| 19038 | |
| 19039 | # Remove the space that was appended to ease matching. |
| 19040 | # Then replace #undef with comments. This is necessary, for |
| 19041 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 19042 | # on some systems where configure will not decide to define it. |
| 19043 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 19044 | echo 's/ $// |
| 19045 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 19046 | |
| 19047 | # Break up conftest.defines: |
| 19048 | ac_max_sed_lines=50 |
| 19049 | |
| 19050 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 19051 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 19052 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 19053 | # et cetera. |
| 19054 | ac_in='$ac_file_inputs' |
| 19055 | ac_out='"$tmp/out1"' |
| 19056 | ac_nxt='"$tmp/out2"' |
| 19057 | |
| 19058 | while : |
| 19059 | do |
| 19060 | # Write a here document: |
| 19061 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19062 | # First, check the format of the line: |
| 19063 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 19064 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 19065 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 19066 | b |
| 19067 | :def |
| 19068 | _ACEOF |
| 19069 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 19070 | echo 'CEOF |
| 19071 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 19072 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 19073 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 19074 | grep . conftest.tail >/dev/null || break |
| 19075 | rm -f conftest.defines |
| 19076 | mv conftest.tail conftest.defines |
| 19077 | done |
| 19078 | rm -f conftest.defines conftest.tail |
| 19079 | |
| 19080 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 19081 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19082 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19083 | echo "/* $configure_input */" >"$tmp/config.h" |
| 19084 | cat "$ac_result" >>"$tmp/config.h" |
| 19085 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 19086 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 19087 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19088 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19089 | rm -f $ac_file |
| 19090 | mv "$tmp/config.h" $ac_file |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19091 | fi |
| 19092 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19093 | echo "/* $configure_input */" |
| 19094 | cat "$ac_result" |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19095 | fi |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19096 | rm -f "$tmp/out12" |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19097 | ;; |
John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 19098 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19099 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 19100 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19101 | ;; |
John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 19102 | esac |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19103 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19104 | |
| 19105 | case $ac_file$ac_mode in |
| 19106 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 19107 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19108 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 19109 | ${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] | 19110 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 19111 | ${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] | 19112 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 19113 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19114 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 19115 | ${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] | 19116 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 19117 | ${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] | 19118 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 19119 | ${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] | 19120 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 19121 | ${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] | 19122 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 19123 | ${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] | 19124 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 19125 | ${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] | 19126 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | d70eebe | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 19127 | ${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] | 19128 | "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] | 19129 | ${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] | 19130 | |
| 19131 | esac |
| 19132 | done # for ac_tag |
| 19133 | |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19134 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19135 | { (exit 0); exit 0; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19136 | _ACEOF |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19137 | chmod +x $CONFIG_STATUS |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19138 | ac_clean_files=$ac_clean_files_save |
| 19139 | |
| 19140 | |
| 19141 | # configure is writing to config.log, and then calls config.status. |
| 19142 | # config.status does its own redirection, appending to config.log. |
| 19143 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 19144 | # by configure, so config.status won't be able to write to it; its |
| 19145 | # output is simply discarded. So we exec the FD to /dev/null, |
| 19146 | # effectively closing config.log, so it can be properly (re)opened and |
| 19147 | # appended to by config.status. When coming back to configure, we |
| 19148 | # need to make the FD available again. |
| 19149 | if test "$no_create" != yes; then |
| 19150 | ac_cs_success=: |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19151 | ac_config_status_args= |
| 19152 | test "$silent" = yes && |
| 19153 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19154 | exec 5>/dev/null |
John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19155 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19156 | exec 5>>config.log |
| 19157 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 19158 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19159 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19160 | fi |
| 19161 | |
John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 19162 | # |
| 19163 | # CONFIG_SUBDIRS section. |
| 19164 | # |
| 19165 | if test "$no_recursion" != yes; then |
| 19166 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19167 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 19168 | ac_sub_configure_args= |
| 19169 | ac_prev= |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19170 | eval "set x $ac_configure_args" |
| 19171 | shift |
| 19172 | for ac_arg |
| 19173 | do |
John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 19174 | if test -n "$ac_prev"; then |
| 19175 | ac_prev= |
| 19176 | continue |
| 19177 | fi |
| 19178 | case $ac_arg in |
| 19179 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 19180 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 19181 | ac_prev=cache_file ;; |
| 19182 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 19183 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 19184 | | --c=*) |
| 19185 | ;; |
| 19186 | --config-cache | -C) |
| 19187 | ;; |
| 19188 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 19189 | ac_prev=srcdir ;; |
| 19190 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 19191 | ;; |
| 19192 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 19193 | ac_prev=prefix ;; |
| 19194 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 19195 | ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19196 | *) |
| 19197 | case $ac_arg in |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19198 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19199 | esac |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19200 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 19201 | esac |
| 19202 | done |
| 19203 | |
| 19204 | # Always prepend --prefix to ensure using the same prefix |
| 19205 | # in subdir configurations. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19206 | ac_arg="--prefix=$prefix" |
| 19207 | case $ac_arg in |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19208 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19209 | esac |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19210 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 19211 | |
| 19212 | ac_popdir=`pwd` |
| 19213 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 19214 | |
| 19215 | # Do not complain, so a configure script can configure whichever |
| 19216 | # parts of a large source tree are present. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19217 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 19218 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19219 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19220 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 19221 | echo "$ac_msg" >&6 |
| 19222 | { as_dir="$ac_dir" |
| 19223 | case $as_dir in #( |
| 19224 | -*) as_dir=./$as_dir;; |
| 19225 | esac |
| 19226 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 19227 | as_dirs= |
| 19228 | while :; do |
| 19229 | case $as_dir in #( |
| 19230 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 19231 | *) as_qdir=$as_dir;; |
| 19232 | esac |
| 19233 | as_dirs="'$as_qdir' $as_dirs" |
| 19234 | as_dir=`$as_dirname -- "$as_dir" || |
| 19235 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19236 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 19237 | X"$as_dir" : 'X\(//\)$' \| \ |
| 19238 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 19239 | echo X"$as_dir" | |
| 19240 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19241 | s//\1/ |
| 19242 | q |
| 19243 | } |
| 19244 | /^X\(\/\/\)[^/].*/{ |
| 19245 | s//\1/ |
| 19246 | q |
| 19247 | } |
| 19248 | /^X\(\/\/\)$/{ |
| 19249 | s//\1/ |
| 19250 | q |
| 19251 | } |
| 19252 | /^X\(\/\).*/{ |
| 19253 | s//\1/ |
| 19254 | q |
| 19255 | } |
| 19256 | s/.*/./; q'` |
| 19257 | test -d "$as_dir" && break |
| 19258 | done |
| 19259 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 19260 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 19261 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 19262 | { (exit 1); exit 1; }; }; } |
John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 19263 | ac_builddir=. |
| 19264 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19265 | case "$ac_dir" in |
| 19266 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 19267 | *) |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19268 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19269 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19270 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19271 | case $ac_top_builddir_sub in |
| 19272 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 19273 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 19274 | esac ;; |
| 19275 | esac |
| 19276 | ac_abs_top_builddir=$ac_pwd |
| 19277 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 19278 | # for backward compatibility: |
| 19279 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 19280 | |
| 19281 | case $srcdir in |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19282 | .) # We are building in place. |
John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 19283 | ac_srcdir=. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19284 | ac_top_srcdir=$ac_top_builddir_sub |
| 19285 | ac_abs_top_srcdir=$ac_pwd ;; |
| 19286 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 19287 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19288 | ac_top_srcdir=$srcdir |
| 19289 | ac_abs_top_srcdir=$srcdir ;; |
| 19290 | *) # Relative name. |
| 19291 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 19292 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 19293 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 19294 | esac |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19295 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 19296 | |
| 19297 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19298 | cd "$ac_dir" |
John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 19299 | |
| 19300 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19301 | if test -f "$ac_srcdir/configure.gnu"; then |
| 19302 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 19303 | elif test -f "$ac_srcdir/configure"; then |
| 19304 | ac_sub_configure=$ac_srcdir/configure |
| 19305 | elif test -f "$ac_srcdir/configure.in"; then |
| 19306 | # This should be Cygnus configure. |
| 19307 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 19308 | else |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19309 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 19310 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 19311 | ac_sub_configure= |
| 19312 | fi |
| 19313 | |
| 19314 | # The recursion is here. |
| 19315 | if test -n "$ac_sub_configure"; then |
| 19316 | # Make the cache file name correct relative to the subdirectory. |
| 19317 | case $cache_file in |
| 19318 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19319 | *) # Relative name. |
| 19320 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 19321 | esac |
| 19322 | |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19323 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 19324 | 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] | 19325 | # The eval makes quoting arguments work. |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19326 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 19327 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | bf5ce0a | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19328 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 19329 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 19330 | { (exit 1); exit 1; }; } |
John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 19331 | fi |
| 19332 | |
Reid Spencer | 0b52e2f | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19333 | cd "$ac_popdir" |
John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 19334 | done |
| 19335 | fi |
| 19336 | |