John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 2.7svn. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 6 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 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 | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11 | # |
Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13 | ## --------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## --------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17 | # Be Bourne compatible |
| 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19 | emulate sh |
| 20 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
| 25 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 | fi |
Jeffrey Yasskin | 1611ebb | 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 | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31 | |
Jeffrey Yasskin | 1611ebb | 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 | 0c38eaf | 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 | 1611ebb | 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 | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 58 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 59 | |
Reid Spencer | a773bd5 | 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 | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 66 | as_nl=' |
| 67 | ' |
Reid Spencer | a773bd5 | 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 | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 71 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 72 | *[\\/]* ) as_myself=$0 ;; |
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 0c38eaf | 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 | 1611ebb | 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 | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 80 | IFS=$as_save_IFS |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 81 | |
Reid Spencer | a773bd5 | 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 | 1611ebb | 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 | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 92 | fi |
| 93 | |
Jeffrey Yasskin | 1611ebb | 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 | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 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 | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 107 | do |
Jeffrey Yasskin | 1611ebb | 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 | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 110 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 112 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 113 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 114 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 115 | # Required to use basename. |
Reid Spencer | a773bd5 | 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 | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 130 | # Name of the executable. |
Reid Spencer | a773bd5 | 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 | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 135 | echo X/"$0" | |
Reid Spencer | a773bd5 | 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 | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 150 | # CDPATH. |
| 151 | $as_unset CDPATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 152 | |
| 153 | |
Jeffrey Yasskin | 1611ebb | 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 | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 436 | sed -n ' |
| 437 | p |
| 438 | /[$]LINENO/= |
| 439 | ' <$as_myself | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 440 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 441 | s/[$]LINENO.*/&-/ |
| 442 | t lineno |
| 443 | b |
| 444 | :lineno |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 445 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 446 | :loop |
| 447 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 448 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 449 | s/-\n.*// |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 450 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 451 | chmod +x "$as_me.lineno" || |
Jeffrey Yasskin | 1611ebb | 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 | 0c38eaf | 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 | a773bd5 | 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 | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 459 | # Exit status is that of the last command. |
| 460 | exit |
| 461 | } |
| 462 | |
Jeffrey Yasskin | 1611ebb | 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 | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 470 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 471 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 472 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 473 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 474 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 475 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 476 | esac;; |
| 477 | *) |
| 478 | ECHO_N='-n';; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 479 | esac |
| 480 | |
Jeffrey Yasskin | 1611ebb | 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 | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 488 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 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 | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 493 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 494 | fi |
Jeffrey Yasskin | 1611ebb | 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 | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 503 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 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 | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 506 | else |
| 507 | as_ln_s='cp -p' |
| 508 | fi |
Reid Spencer | a773bd5 | 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 | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 511 | |
| 512 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 513 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 514 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 515 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 516 | as_mkdir_p=false |
| 517 | fi |
| 518 | |
Jeffrey Yasskin | 1611ebb | 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 | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 528 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 529 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 530 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 531 | rm -f conf$$.file |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 532 | |
| 533 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 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 | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 535 | |
| 536 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 538 | |
| 539 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 540 | |
| 541 | exec 7<&0 </dev/null 6>&1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 542 | |
John Criswell | 7a73b80 | 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 | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 548 | # |
| 549 | # Initializations. |
| 550 | # |
| 551 | ac_default_prefix=/usr/local |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 552 | ac_clean_files= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 553 | ac_config_libobj_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 554 | LIBOBJS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 555 | cross_compiling=no |
| 556 | subdirs= |
| 557 | MFLAGS= |
| 558 | MAKEFLAGS= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 559 | SHELL=${CONFIG_SHELL-/bin/sh} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 560 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 561 | # Identity of this package. |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 562 | PACKAGE_NAME='llvm' |
Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 563 | PACKAGE_TARNAME='-llvm-' |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='2.7svn' |
| 565 | PACKAGE_STRING='llvm 2.7svn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 566 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
| 567 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 568 | ac_unique_file="lib/VMCore/Module.cpp" |
John Criswell | 7a73b80 | 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 | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 572 | #if HAVE_SYS_TYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 573 | # include <sys/types.h> |
| 574 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 575 | #if HAVE_SYS_STAT_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 576 | # include <sys/stat.h> |
| 577 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 578 | #if STDC_HEADERS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 579 | # include <stdlib.h> |
| 580 | # include <stddef.h> |
| 581 | #else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 582 | # if HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 583 | # include <stdlib.h> |
| 584 | # endif |
| 585 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 586 | #if HAVE_STRING_H |
| 587 | # if !STDC_HEADERS && HAVE_MEMORY_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 588 | # include <memory.h> |
| 589 | # endif |
| 590 | # include <string.h> |
| 591 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 592 | #if HAVE_STRINGS_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 593 | # include <strings.h> |
| 594 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 595 | #if HAVE_INTTYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 596 | # include <inttypes.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 597 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 598 | #if HAVE_STDINT_H |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 599 | # include <stdint.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 600 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 601 | #if HAVE_UNISTD_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 602 | # include <unistd.h> |
| 603 | #endif" |
| 604 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 605 | ac_subst_vars='SHELL |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 606 | PATH_SEPARATOR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 607 | PACKAGE_NAME |
| 608 | PACKAGE_TARNAME |
| 609 | PACKAGE_VERSION |
| 610 | PACKAGE_STRING |
| 611 | PACKAGE_BUGREPORT |
| 612 | exec_prefix |
| 613 | prefix |
| 614 | program_transform_name |
| 615 | bindir |
| 616 | sbindir |
| 617 | libexecdir |
| 618 | datarootdir |
| 619 | datadir |
| 620 | sysconfdir |
| 621 | sharedstatedir |
| 622 | localstatedir |
| 623 | includedir |
| 624 | oldincludedir |
| 625 | docdir |
| 626 | infodir |
| 627 | htmldir |
| 628 | dvidir |
| 629 | pdfdir |
| 630 | psdir |
| 631 | libdir |
| 632 | localedir |
| 633 | mandir |
| 634 | DEFS |
| 635 | ECHO_C |
| 636 | ECHO_N |
| 637 | ECHO_T |
| 638 | LIBS |
| 639 | build_alias |
| 640 | host_alias |
| 641 | target_alias |
| 642 | LLVM_COPYRIGHT |
| 643 | subdirs |
| 644 | build |
| 645 | build_cpu |
| 646 | build_vendor |
| 647 | build_os |
| 648 | host |
| 649 | host_cpu |
| 650 | host_vendor |
| 651 | host_os |
| 652 | target |
| 653 | target_cpu |
| 654 | target_vendor |
| 655 | target_os |
| 656 | OS |
| 657 | HOST_OS |
| 658 | TARGET_OS |
| 659 | LINKALL |
| 660 | NOLINKALL |
| 661 | LLVM_ON_UNIX |
| 662 | LLVM_ON_WIN32 |
| 663 | ARCH |
| 664 | ENDIAN |
| 665 | CC |
| 666 | CFLAGS |
| 667 | LDFLAGS |
| 668 | CPPFLAGS |
| 669 | ac_ct_CC |
| 670 | EXEEXT |
| 671 | OBJEXT |
| 672 | CPP |
| 673 | GREP |
| 674 | EGREP |
| 675 | LLVM_CROSS_COMPILING |
| 676 | BUILD_CC |
| 677 | BUILD_EXEEXT |
| 678 | BUILD_CXX |
| 679 | CVSBUILD |
| 680 | ENABLE_OPTIMIZED |
| 681 | ENABLE_PROFILING |
| 682 | DISABLE_ASSERTIONS |
| 683 | ENABLE_EXPENSIVE_CHECKS |
| 684 | EXPENSIVE_CHECKS |
| 685 | DEBUG_RUNTIME |
| 686 | DEBUG_SYMBOLS |
| 687 | JIT |
| 688 | TARGET_HAS_JIT |
| 689 | ENABLE_DOXYGEN |
| 690 | ENABLE_THREADS |
| 691 | ENABLE_PIC |
| 692 | TARGETS_TO_BUILD |
| 693 | LLVM_ENUM_TARGETS |
| 694 | LLVM_ENUM_ASM_PRINTERS |
| 695 | LLVM_ENUM_ASM_PARSERS |
| 696 | LLVM_ENUM_DISASSEMBLERS |
| 697 | ENABLE_CBE_PRINTF_A |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 698 | CLANGPATH |
| 699 | CLANGXXPATH |
| 700 | ENABLE_BUILT_CLANG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 701 | OPTIMIZE_OPTION |
| 702 | EXTRA_OPTIONS |
| 703 | BINUTILS_INCDIR |
| 704 | ENABLE_LLVMC_DYNAMIC |
| 705 | ENABLE_LLVMC_DYNAMIC_PLUGINS |
| 706 | CXX |
| 707 | CXXFLAGS |
| 708 | ac_ct_CXX |
| 709 | NM |
| 710 | ifGNUmake |
| 711 | LN_S |
| 712 | CMP |
| 713 | CP |
| 714 | DATE |
| 715 | FIND |
| 716 | MKDIR |
| 717 | MV |
| 718 | RANLIB |
| 719 | AR |
| 720 | RM |
| 721 | SED |
| 722 | TAR |
| 723 | BINPWD |
| 724 | GRAPHVIZ |
| 725 | DOT |
| 726 | FDP |
| 727 | NEATO |
| 728 | TWOPI |
| 729 | CIRCO |
| 730 | GV |
| 731 | DOTTY |
| 732 | PERL |
| 733 | HAVE_PERL |
| 734 | INSTALL_PROGRAM |
| 735 | INSTALL_SCRIPT |
| 736 | INSTALL_DATA |
| 737 | BZIP2 |
| 738 | DOXYGEN |
| 739 | GROFF |
| 740 | GZIP |
| 741 | POD2HTML |
| 742 | POD2MAN |
| 743 | RUNTEST |
| 744 | TCLSH |
| 745 | ZIP |
| 746 | OCAMLC |
| 747 | OCAMLOPT |
| 748 | OCAMLDEP |
| 749 | OCAMLDOC |
| 750 | GAS |
| 751 | INSTALL_LTDL_TRUE |
| 752 | INSTALL_LTDL_FALSE |
| 753 | CONVENIENCE_LTDL_TRUE |
| 754 | CONVENIENCE_LTDL_FALSE |
| 755 | LIBADD_DL |
| 756 | LLVMGCCCOMMAND |
| 757 | LLVMGXXCOMMAND |
| 758 | LLVMGCC |
| 759 | LLVMGXX |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 760 | LLVMCC_OPTION |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 761 | NO_VARIADIC_MACROS |
| 762 | NO_MISSING_FIELD_INITIALIZERS |
| 763 | USE_UDIS86 |
| 764 | USE_OPROFILE |
| 765 | HAVE_PTHREAD |
| 766 | HUGE_VAL_SANITY |
| 767 | MMAP_FILE |
| 768 | LLVMCC1 |
| 769 | LLVMCC1PLUS |
| 770 | LLVMGCCDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 771 | LLVMGCC_LANGS |
| 772 | SHLIBEXT |
| 773 | LLVM_PREFIX |
| 774 | LLVM_BINDIR |
| 775 | LLVM_LIBDIR |
| 776 | LLVM_DATADIR |
| 777 | LLVM_DOCSDIR |
| 778 | LLVM_ETCDIR |
| 779 | LLVM_INCLUDEDIR |
| 780 | LLVM_INFODIR |
| 781 | LLVM_MANDIR |
| 782 | LLVM_CONFIGTIME |
| 783 | BINDINGS_TO_BUILD |
| 784 | ALL_BINDINGS |
| 785 | OCAML_LIBDIR |
| 786 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 787 | RPATH |
| 788 | RDYNAMIC |
| 789 | LIBOBJS |
| 790 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 791 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 792 | ac_precious_vars='build_alias |
| 793 | host_alias |
| 794 | target_alias |
| 795 | CC |
| 796 | CFLAGS |
| 797 | LDFLAGS |
| 798 | CPPFLAGS |
| 799 | CPP |
| 800 | CXX |
| 801 | CXXFLAGS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 802 | CCC' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 803 | ac_subdirs_all='projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 804 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 805 | projects/llvm-stacker |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 806 | projects/llvm-test |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 807 | projects/test-suite |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 808 | projects/llvm-reopt |
| 809 | projects/llvm-gcc |
| 810 | projects/llvm-java |
| 811 | projects/llvm-tv |
| 812 | projects/llvm-poolalloc |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 813 | projects/poolalloc |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 814 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 815 | |
| 816 | # Initialize some variables set by options. |
| 817 | ac_init_help= |
| 818 | ac_init_version=false |
| 819 | # The variables have the same names as the options, with |
| 820 | # dashes changed to underlines. |
| 821 | cache_file=/dev/null |
| 822 | exec_prefix=NONE |
| 823 | no_create= |
| 824 | no_recursion= |
| 825 | prefix=NONE |
| 826 | program_prefix=NONE |
| 827 | program_suffix=NONE |
| 828 | program_transform_name=s,x,x, |
| 829 | silent= |
| 830 | site= |
| 831 | srcdir= |
| 832 | verbose= |
| 833 | x_includes=NONE |
| 834 | x_libraries=NONE |
| 835 | |
| 836 | # Installation directory options. |
| 837 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 838 | # and all the variables that are supposed to be based on exec_prefix |
| 839 | # by default will actually change. |
| 840 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 841 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 842 | bindir='${exec_prefix}/bin' |
| 843 | sbindir='${exec_prefix}/sbin' |
| 844 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 845 | datarootdir='${prefix}/share' |
| 846 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 847 | sysconfdir='${prefix}/etc' |
| 848 | sharedstatedir='${prefix}/com' |
| 849 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 850 | includedir='${prefix}/include' |
| 851 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 852 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 853 | infodir='${datarootdir}/info' |
| 854 | htmldir='${docdir}' |
| 855 | dvidir='${docdir}' |
| 856 | pdfdir='${docdir}' |
| 857 | psdir='${docdir}' |
| 858 | libdir='${exec_prefix}/lib' |
| 859 | localedir='${datarootdir}/locale' |
| 860 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 861 | |
| 862 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 863 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 864 | for ac_option |
| 865 | do |
| 866 | # If the previous option needs an argument, assign it. |
| 867 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 868 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 869 | ac_prev= |
| 870 | continue |
| 871 | fi |
| 872 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 873 | case $ac_option in |
| 874 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 875 | *) ac_optarg=yes ;; |
| 876 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 877 | |
| 878 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 880 | case $ac_dashdash$ac_option in |
| 881 | --) |
| 882 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 883 | |
| 884 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 885 | ac_prev=bindir ;; |
| 886 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 887 | bindir=$ac_optarg ;; |
| 888 | |
| 889 | -build | --build | --buil | --bui | --bu) |
| 890 | ac_prev=build_alias ;; |
| 891 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 892 | build_alias=$ac_optarg ;; |
| 893 | |
| 894 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 895 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 896 | ac_prev=cache_file ;; |
| 897 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 898 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 899 | cache_file=$ac_optarg ;; |
| 900 | |
| 901 | --config-cache | -C) |
| 902 | cache_file=config.cache ;; |
| 903 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 904 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 905 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 906 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 907 | datadir=$ac_optarg ;; |
| 908 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 909 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 910 | | --dataroo | --dataro | --datar) |
| 911 | ac_prev=datarootdir ;; |
| 912 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 913 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 914 | datarootdir=$ac_optarg ;; |
| 915 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 916 | -disable-* | --disable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 917 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 918 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 919 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 920 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 921 | { (exit 1); exit 1; }; } |
| 922 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 923 | eval enable_$ac_feature=no ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 924 | |
| 925 | -docdir | --docdir | --docdi | --doc | --do) |
| 926 | ac_prev=docdir ;; |
| 927 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 928 | docdir=$ac_optarg ;; |
| 929 | |
| 930 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 931 | ac_prev=dvidir ;; |
| 932 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 933 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 934 | |
| 935 | -enable-* | --enable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 936 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 937 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 938 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 939 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 940 | { (exit 1); exit 1; }; } |
| 941 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 942 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 943 | |
| 944 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 945 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 946 | | --exec | --exe | --ex) |
| 947 | ac_prev=exec_prefix ;; |
| 948 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 949 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 950 | | --exec=* | --exe=* | --ex=*) |
| 951 | exec_prefix=$ac_optarg ;; |
| 952 | |
| 953 | -gas | --gas | --ga | --g) |
| 954 | # Obsolete; use --with-gas. |
| 955 | with_gas=yes ;; |
| 956 | |
| 957 | -help | --help | --hel | --he | -h) |
| 958 | ac_init_help=long ;; |
| 959 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 960 | ac_init_help=recursive ;; |
| 961 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 962 | ac_init_help=short ;; |
| 963 | |
| 964 | -host | --host | --hos | --ho) |
| 965 | ac_prev=host_alias ;; |
| 966 | -host=* | --host=* | --hos=* | --ho=*) |
| 967 | host_alias=$ac_optarg ;; |
| 968 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 969 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 970 | ac_prev=htmldir ;; |
| 971 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 972 | | --ht=*) |
| 973 | htmldir=$ac_optarg ;; |
| 974 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 975 | -includedir | --includedir | --includedi | --included | --include \ |
| 976 | | --includ | --inclu | --incl | --inc) |
| 977 | ac_prev=includedir ;; |
| 978 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 979 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 980 | includedir=$ac_optarg ;; |
| 981 | |
| 982 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 983 | ac_prev=infodir ;; |
| 984 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 985 | infodir=$ac_optarg ;; |
| 986 | |
| 987 | -libdir | --libdir | --libdi | --libd) |
| 988 | ac_prev=libdir ;; |
| 989 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 990 | libdir=$ac_optarg ;; |
| 991 | |
| 992 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 993 | | --libexe | --libex | --libe) |
| 994 | ac_prev=libexecdir ;; |
| 995 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 996 | | --libexe=* | --libex=* | --libe=*) |
| 997 | libexecdir=$ac_optarg ;; |
| 998 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 999 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1000 | ac_prev=localedir ;; |
| 1001 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1002 | localedir=$ac_optarg ;; |
| 1003 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1004 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1005 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1006 | ac_prev=localstatedir ;; |
| 1007 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1008 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1009 | localstatedir=$ac_optarg ;; |
| 1010 | |
| 1011 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1012 | ac_prev=mandir ;; |
| 1013 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1014 | mandir=$ac_optarg ;; |
| 1015 | |
| 1016 | -nfp | --nfp | --nf) |
| 1017 | # Obsolete; use --without-fp. |
| 1018 | with_fp=no ;; |
| 1019 | |
| 1020 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1021 | | --no-cr | --no-c | -n) |
| 1022 | no_create=yes ;; |
| 1023 | |
| 1024 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1025 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1026 | no_recursion=yes ;; |
| 1027 | |
| 1028 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1029 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1030 | | --oldin | --oldi | --old | --ol | --o) |
| 1031 | ac_prev=oldincludedir ;; |
| 1032 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1033 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1034 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1035 | oldincludedir=$ac_optarg ;; |
| 1036 | |
| 1037 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1038 | ac_prev=prefix ;; |
| 1039 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1040 | prefix=$ac_optarg ;; |
| 1041 | |
| 1042 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1043 | | --program-pre | --program-pr | --program-p) |
| 1044 | ac_prev=program_prefix ;; |
| 1045 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1046 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1047 | program_prefix=$ac_optarg ;; |
| 1048 | |
| 1049 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1050 | | --program-suf | --program-su | --program-s) |
| 1051 | ac_prev=program_suffix ;; |
| 1052 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1053 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1054 | program_suffix=$ac_optarg ;; |
| 1055 | |
| 1056 | -program-transform-name | --program-transform-name \ |
| 1057 | | --program-transform-nam | --program-transform-na \ |
| 1058 | | --program-transform-n | --program-transform- \ |
| 1059 | | --program-transform | --program-transfor \ |
| 1060 | | --program-transfo | --program-transf \ |
| 1061 | | --program-trans | --program-tran \ |
| 1062 | | --progr-tra | --program-tr | --program-t) |
| 1063 | ac_prev=program_transform_name ;; |
| 1064 | -program-transform-name=* | --program-transform-name=* \ |
| 1065 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1066 | | --program-transform-n=* | --program-transform-=* \ |
| 1067 | | --program-transform=* | --program-transfor=* \ |
| 1068 | | --program-transfo=* | --program-transf=* \ |
| 1069 | | --program-trans=* | --program-tran=* \ |
| 1070 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1071 | program_transform_name=$ac_optarg ;; |
| 1072 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1073 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1074 | ac_prev=pdfdir ;; |
| 1075 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1076 | pdfdir=$ac_optarg ;; |
| 1077 | |
| 1078 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1079 | ac_prev=psdir ;; |
| 1080 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1081 | psdir=$ac_optarg ;; |
| 1082 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1083 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1084 | | -silent | --silent | --silen | --sile | --sil) |
| 1085 | silent=yes ;; |
| 1086 | |
| 1087 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1088 | ac_prev=sbindir ;; |
| 1089 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1090 | | --sbi=* | --sb=*) |
| 1091 | sbindir=$ac_optarg ;; |
| 1092 | |
| 1093 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1094 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1095 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1096 | | --sha | --sh) |
| 1097 | ac_prev=sharedstatedir ;; |
| 1098 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1099 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1100 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1101 | | --sha=* | --sh=*) |
| 1102 | sharedstatedir=$ac_optarg ;; |
| 1103 | |
| 1104 | -site | --site | --sit) |
| 1105 | ac_prev=site ;; |
| 1106 | -site=* | --site=* | --sit=*) |
| 1107 | site=$ac_optarg ;; |
| 1108 | |
| 1109 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1110 | ac_prev=srcdir ;; |
| 1111 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1112 | srcdir=$ac_optarg ;; |
| 1113 | |
| 1114 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1115 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1116 | ac_prev=sysconfdir ;; |
| 1117 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1118 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1119 | sysconfdir=$ac_optarg ;; |
| 1120 | |
| 1121 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1122 | ac_prev=target_alias ;; |
| 1123 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1124 | target_alias=$ac_optarg ;; |
| 1125 | |
| 1126 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1127 | verbose=yes ;; |
| 1128 | |
| 1129 | -version | --version | --versio | --versi | --vers | -V) |
| 1130 | ac_init_version=: ;; |
| 1131 | |
| 1132 | -with-* | --with-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1133 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1134 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1135 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1136 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1137 | { (exit 1); exit 1; }; } |
| 1138 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1139 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1140 | |
| 1141 | -without-* | --without-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1142 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1143 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1144 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1145 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1146 | { (exit 1); exit 1; }; } |
| 1147 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1148 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1149 | |
| 1150 | --x) |
| 1151 | # Obsolete; use --with-x. |
| 1152 | with_x=yes ;; |
| 1153 | |
| 1154 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1155 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1156 | ac_prev=x_includes ;; |
| 1157 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1158 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1159 | x_includes=$ac_optarg ;; |
| 1160 | |
| 1161 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1162 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1163 | ac_prev=x_libraries ;; |
| 1164 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1165 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1166 | x_libraries=$ac_optarg ;; |
| 1167 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1168 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1169 | Try \`$0 --help' for more information." >&2 |
| 1170 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1171 | ;; |
| 1172 | |
| 1173 | *=*) |
| 1174 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1175 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1176 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1177 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1178 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1179 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1180 | export $ac_envvar ;; |
| 1181 | |
| 1182 | *) |
| 1183 | # FIXME: should be removed in autoconf 3.0. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1184 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1185 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1186 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1187 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1188 | ;; |
| 1189 | |
| 1190 | esac |
| 1191 | done |
| 1192 | |
| 1193 | if test -n "$ac_prev"; then |
| 1194 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1195 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1196 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1197 | fi |
| 1198 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1199 | # Be sure to have absolute directory names. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1200 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1201 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1202 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1203 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1204 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1205 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1206 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1207 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1208 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1209 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1210 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1211 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1212 | done |
| 1213 | |
| 1214 | # There might be people who depend on the old broken behavior: `$host' |
| 1215 | # used to hold the argument of --host etc. |
| 1216 | # FIXME: To remove some day. |
| 1217 | build=$build_alias |
| 1218 | host=$host_alias |
| 1219 | target=$target_alias |
| 1220 | |
| 1221 | # FIXME: To remove some day. |
| 1222 | if test "x$host_alias" != x; then |
| 1223 | if test "x$build_alias" = x; then |
| 1224 | cross_compiling=maybe |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1225 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1226 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1227 | elif test "x$build_alias" != "x$host_alias"; then |
| 1228 | cross_compiling=yes |
| 1229 | fi |
| 1230 | fi |
| 1231 | |
| 1232 | ac_tool_prefix= |
| 1233 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1234 | |
| 1235 | test "$silent" = yes && exec 6>/dev/null |
| 1236 | |
| 1237 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1238 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1239 | ac_ls_di=`ls -di .` && |
| 1240 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1241 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1242 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1243 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1244 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1245 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1246 | |
| 1247 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1248 | # Find the source files, if location was not specified. |
| 1249 | if test -z "$srcdir"; then |
| 1250 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1251 | # Try the directory containing this script, then the parent directory. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1252 | ac_confdir=`$as_dirname -- "$0" || |
| 1253 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1254 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1255 | X"$0" : 'X\(//\)$' \| \ |
| 1256 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1257 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1258 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1259 | s//\1/ |
| 1260 | q |
| 1261 | } |
| 1262 | /^X\(\/\/\)[^/].*/{ |
| 1263 | s//\1/ |
| 1264 | q |
| 1265 | } |
| 1266 | /^X\(\/\/\)$/{ |
| 1267 | s//\1/ |
| 1268 | q |
| 1269 | } |
| 1270 | /^X\(\/\).*/{ |
| 1271 | s//\1/ |
| 1272 | q |
| 1273 | } |
| 1274 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1275 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1276 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1277 | srcdir=.. |
| 1278 | fi |
| 1279 | else |
| 1280 | ac_srcdir_defaulted=no |
| 1281 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1282 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1283 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1284 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1285 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1286 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1287 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1288 | ac_abs_confdir=`( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1289 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1290 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1291 | pwd)` |
| 1292 | # When building in place, set srcdir=. |
| 1293 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1294 | srcdir=. |
| 1295 | fi |
| 1296 | # Remove unnecessary trailing slashes from srcdir. |
| 1297 | # Double slashes in file names in object file debugging info |
| 1298 | # mess up M-x gdb in Emacs. |
| 1299 | case $srcdir in |
| 1300 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1301 | esac |
| 1302 | for ac_var in $ac_precious_vars; do |
| 1303 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1304 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1305 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1306 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1307 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1308 | |
| 1309 | # |
| 1310 | # Report the --help message. |
| 1311 | # |
| 1312 | if test "$ac_init_help" = "long"; then |
| 1313 | # Omit some internal or obsolete options to make the list less imposing. |
| 1314 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1315 | cat <<_ACEOF |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1316 | \`configure' configures llvm 2.7svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1317 | |
| 1318 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1319 | |
| 1320 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1321 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1322 | |
| 1323 | Defaults for the options are specified in brackets. |
| 1324 | |
| 1325 | Configuration: |
| 1326 | -h, --help display this help and exit |
| 1327 | --help=short display options specific to this package |
| 1328 | --help=recursive display the short help of all the included packages |
| 1329 | -V, --version display version information and exit |
| 1330 | -q, --quiet, --silent do not print \`checking...' messages |
| 1331 | --cache-file=FILE cache test results in FILE [disabled] |
| 1332 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1333 | -n, --no-create do not create output files |
| 1334 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1335 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1336 | Installation directories: |
| 1337 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1338 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1339 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1340 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1341 | |
| 1342 | By default, \`make install' will install all the files in |
| 1343 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1344 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1345 | for instance \`--prefix=\$HOME'. |
| 1346 | |
| 1347 | For better control, use the options below. |
| 1348 | |
| 1349 | Fine tuning of the installation directories: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1350 | --bindir=DIR user executables [EPREFIX/bin] |
| 1351 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1352 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1353 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1354 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1355 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1356 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1357 | --includedir=DIR C header files [PREFIX/include] |
| 1358 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1359 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1360 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1361 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1362 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1363 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1364 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1365 | --htmldir=DIR html documentation [DOCDIR] |
| 1366 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1367 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1368 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1369 | _ACEOF |
| 1370 | |
| 1371 | cat <<\_ACEOF |
| 1372 | |
| 1373 | System types: |
| 1374 | --build=BUILD configure for building on BUILD [guessed] |
| 1375 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1376 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1377 | _ACEOF |
| 1378 | fi |
| 1379 | |
| 1380 | if test -n "$ac_init_help"; then |
| 1381 | case $ac_init_help in |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1382 | short | recursive ) echo "Configuration of llvm 2.7svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1383 | esac |
| 1384 | cat <<\_ACEOF |
| 1385 | |
| 1386 | Optional Features: |
| 1387 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1388 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1389 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1390 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1391 | --enable-assertions Compile with assertion checks enabled (default is |
| 1392 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1393 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1394 | Compile with expensive debug checks enabled (default |
| 1395 | is NO) |
| 1396 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1397 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1398 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1399 | optimization is on and YES if it's off) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1400 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1401 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1402 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1403 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1404 | is YES) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1405 | --enable-targets Build specific host targets: all or |
| 1406 | target1,target2,... Valid targets are: host, x86, |
| 1407 | x86_64, sparc, powerpc, alpha, arm, mips, spu, |
| 1408 | pic16, xcore, msp430, systemz, blackfin, cbe, msil, |
| 1409 | and cpp (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1410 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1411 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1412 | --enable-bindings Build specific language bindings: |
| 1413 | all,auto,none,{binding-name} (default=auto) |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1414 | --enable-libffi Check for the presence of libffi (default is NO) |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 1415 | --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on |
| 1416 | Win32) |
| 1417 | --enable-llvmc-dynamic-plugins |
| 1418 | Enable dynamic LLVMC plugins (default is YES) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1419 | --enable-ltdl-install install libltdl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1420 | |
| 1421 | Optional Packages: |
| 1422 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1423 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1424 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1425 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1426 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1427 | searches PATH) |
| 1428 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1429 | searches PATH) |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 1430 | --with-clang Specify location of clang compiler (default is |
| 1431 | --with-built-clang) |
| 1432 | --with-built-clang Use the compiled Clang as the LLVM compiler |
| 1433 | (default=check) |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1434 | --with-optimize-option Select the compiler options to use for optimized |
| 1435 | builds |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1436 | --with-extra-options Specify additional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1437 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1438 | is stdlib) |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1439 | --with-c-include-dirs Colon separated list of directories clang will |
| 1440 | search for headers |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 1441 | --with-cxx-include-root Directory with the libstdc++ headers. |
| 1442 | --with-cxx-include-arch Architecture of the libstdc++ headers. |
| 1443 | --with-cxx-include-32bit-dir |
| 1444 | 32 bit multilib dir. |
| 1445 | --with-cxx-include-64bit-dir |
| 1446 | 64 bit multilib directory. |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1447 | --with-binutils-include Specify path to binutils/include/ containing |
| 1448 | plugin-api.h file for gold plugin. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1449 | --with-tclinclude directory where tcl headers are |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 1450 | --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc, |
| 1451 | clang, or none; default=check) |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1452 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1453 | --with-oprofile=<prefix> |
| 1454 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1455 | |
| 1456 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1457 | CC C compiler command |
| 1458 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1459 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1460 | nonstandard directory <lib dir> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1461 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1462 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1463 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1464 | CXX C++ compiler command |
| 1465 | CXXFLAGS C++ compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1466 | |
| 1467 | Use these variables to override the choices made by `configure' or to help |
| 1468 | it to find libraries and programs with nonstandard names/locations. |
| 1469 | |
| 1470 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1471 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1472 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1473 | fi |
| 1474 | |
| 1475 | if test "$ac_init_help" = "recursive"; then |
| 1476 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1477 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1478 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1479 | ac_builddir=. |
| 1480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1481 | case "$ac_dir" in |
| 1482 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1483 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1484 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1485 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1486 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1487 | case $ac_top_builddir_sub in |
| 1488 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1489 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1490 | esac ;; |
| 1491 | esac |
| 1492 | ac_abs_top_builddir=$ac_pwd |
| 1493 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1494 | # for backward compatibility: |
| 1495 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1496 | |
| 1497 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1498 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1499 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1500 | ac_top_srcdir=$ac_top_builddir_sub |
| 1501 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1502 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1503 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1504 | ac_top_srcdir=$srcdir |
| 1505 | ac_abs_top_srcdir=$srcdir ;; |
| 1506 | *) # Relative name. |
| 1507 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1508 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1509 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1510 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1511 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1512 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1513 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1514 | # Check for guested configure. |
| 1515 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1516 | echo && |
| 1517 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1518 | elif test -f "$ac_srcdir/configure"; then |
| 1519 | echo && |
| 1520 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1521 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1522 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1523 | fi || ac_status=$? |
| 1524 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1525 | done |
| 1526 | fi |
| 1527 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1528 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1529 | if $ac_init_version; then |
| 1530 | cat <<\_ACEOF |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1531 | llvm configure 2.7svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1532 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1533 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1534 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1535 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1536 | This configure script is free software; the Free Software Foundation |
| 1537 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1538 | |
Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 1539 | Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1540 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1541 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1542 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1543 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1544 | This file contains any messages produced by compilers while |
| 1545 | running configure, to aid debugging if configure makes a mistake. |
| 1546 | |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1547 | It was created by llvm $as_me 2.7svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1548 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1549 | |
| 1550 | $ $0 $@ |
| 1551 | |
| 1552 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1553 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1554 | { |
| 1555 | cat <<_ASUNAME |
| 1556 | ## --------- ## |
| 1557 | ## Platform. ## |
| 1558 | ## --------- ## |
| 1559 | |
| 1560 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1561 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1562 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1563 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1564 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1565 | |
| 1566 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1567 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1568 | |
| 1569 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1570 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1571 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1572 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1573 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1574 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1575 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1576 | |
| 1577 | _ASUNAME |
| 1578 | |
| 1579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1580 | for as_dir in $PATH |
| 1581 | do |
| 1582 | IFS=$as_save_IFS |
| 1583 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1584 | echo "PATH: $as_dir" |
| 1585 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1586 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1587 | |
| 1588 | } >&5 |
| 1589 | |
| 1590 | cat >&5 <<_ACEOF |
| 1591 | |
| 1592 | |
| 1593 | ## ----------- ## |
| 1594 | ## Core tests. ## |
| 1595 | ## ----------- ## |
| 1596 | |
| 1597 | _ACEOF |
| 1598 | |
| 1599 | |
| 1600 | # Keep a trace of the command line. |
| 1601 | # Strip out --no-create and --no-recursion so they do not pile up. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1602 | # Strip out --silent because we don't want to record it for future runs. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1603 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1604 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1605 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1606 | ac_configure_args0= |
| 1607 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1608 | ac_must_keep_next=false |
| 1609 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1610 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1611 | for ac_arg |
| 1612 | do |
| 1613 | case $ac_arg in |
| 1614 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1615 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1616 | | -silent | --silent | --silen | --sile | --sil) |
| 1617 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1618 | *\'*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1619 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1620 | esac |
| 1621 | case $ac_pass in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1622 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1623 | 2) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1624 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1625 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1626 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1627 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1628 | case $ac_arg in |
| 1629 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1630 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1631 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1632 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1633 | case "$ac_configure_args0 " in |
| 1634 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1635 | esac |
| 1636 | ;; |
| 1637 | -* ) ac_must_keep_next=true ;; |
| 1638 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1639 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1640 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1641 | ;; |
| 1642 | esac |
| 1643 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1644 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1645 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1646 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1647 | |
| 1648 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1649 | # config.log. We remove comments because anyway the quotes in there |
| 1650 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1651 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1652 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1653 | trap 'exit_status=$? |
| 1654 | # Save into config.log some information that might help in debugging. |
| 1655 | { |
| 1656 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1657 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1658 | cat <<\_ASBOX |
| 1659 | ## ---------------- ## |
| 1660 | ## Cache variables. ## |
| 1661 | ## ---------------- ## |
| 1662 | _ASBOX |
| 1663 | echo |
| 1664 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1665 | ( |
| 1666 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1667 | eval ac_val=\$$ac_var |
| 1668 | case $ac_val in #( |
| 1669 | *${as_nl}*) |
| 1670 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1671 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1672 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1673 | esac |
| 1674 | case $ac_var in #( |
| 1675 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1676 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1677 | esac ;; |
| 1678 | esac |
| 1679 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1680 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1681 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1682 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1683 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1684 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1685 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1686 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1687 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1688 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1689 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1690 | esac | |
| 1691 | sort |
| 1692 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1693 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1694 | |
| 1695 | cat <<\_ASBOX |
| 1696 | ## ----------------- ## |
| 1697 | ## Output variables. ## |
| 1698 | ## ----------------- ## |
| 1699 | _ASBOX |
| 1700 | echo |
| 1701 | for ac_var in $ac_subst_vars |
| 1702 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1703 | eval ac_val=\$$ac_var |
| 1704 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1705 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1706 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1707 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1708 | done | sort |
| 1709 | echo |
| 1710 | |
| 1711 | if test -n "$ac_subst_files"; then |
| 1712 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1713 | ## ------------------- ## |
| 1714 | ## File substitutions. ## |
| 1715 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1716 | _ASBOX |
| 1717 | echo |
| 1718 | for ac_var in $ac_subst_files |
| 1719 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1720 | eval ac_val=\$$ac_var |
| 1721 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1722 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1723 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1724 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1725 | done | sort |
| 1726 | echo |
| 1727 | fi |
| 1728 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1729 | if test -s confdefs.h; then |
| 1730 | cat <<\_ASBOX |
| 1731 | ## ----------- ## |
| 1732 | ## confdefs.h. ## |
| 1733 | ## ----------- ## |
| 1734 | _ASBOX |
| 1735 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1736 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1737 | echo |
| 1738 | fi |
| 1739 | test "$ac_signal" != 0 && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1740 | echo "$as_me: caught signal $ac_signal" |
| 1741 | echo "$as_me: exit $exit_status" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1742 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1743 | rm -f core *.core core.conftest.* && |
| 1744 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1745 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1746 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1747 | for ac_signal in 1 2 13 15; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1748 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1749 | done |
| 1750 | ac_signal=0 |
| 1751 | |
| 1752 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1753 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1754 | |
| 1755 | # Predefined preprocessor variables. |
| 1756 | |
| 1757 | cat >>confdefs.h <<_ACEOF |
| 1758 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1759 | _ACEOF |
| 1760 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1761 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1762 | cat >>confdefs.h <<_ACEOF |
| 1763 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1764 | _ACEOF |
| 1765 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1766 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1767 | cat >>confdefs.h <<_ACEOF |
| 1768 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1769 | _ACEOF |
| 1770 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1771 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1772 | cat >>confdefs.h <<_ACEOF |
| 1773 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1774 | _ACEOF |
| 1775 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1776 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1777 | cat >>confdefs.h <<_ACEOF |
| 1778 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1779 | _ACEOF |
| 1780 | |
| 1781 | |
| 1782 | # Let the site file select an alternate cache file if it wants to. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1783 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1784 | if test -n "$CONFIG_SITE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1785 | set x "$CONFIG_SITE" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1786 | elif test "x$prefix" != xNONE; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1787 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1788 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1789 | set x "$ac_default_prefix/share/config.site" \ |
| 1790 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1791 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1792 | shift |
| 1793 | for ac_site_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1794 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1795 | if test -r "$ac_site_file"; then |
| 1796 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1797 | echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1798 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1799 | . "$ac_site_file" |
| 1800 | fi |
| 1801 | done |
| 1802 | |
| 1803 | if test -r "$cache_file"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1804 | # Some versions of bash will fail to source /dev/null (special |
| 1805 | # files actually), so we avoid doing that. |
| 1806 | if test -f "$cache_file"; then |
| 1807 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1808 | echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1809 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1810 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1811 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1812 | esac |
| 1813 | fi |
| 1814 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1815 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1816 | echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1817 | >$cache_file |
| 1818 | fi |
| 1819 | |
| 1820 | # Check that the precious variables saved in the cache have kept the same |
| 1821 | # value. |
| 1822 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1823 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1824 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1825 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1826 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1827 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1828 | case $ac_old_set,$ac_new_set in |
| 1829 | set,) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1830 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1831 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1832 | ac_cache_corrupted=: ;; |
| 1833 | ,set) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1834 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1835 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1836 | ac_cache_corrupted=: ;; |
| 1837 | ,);; |
| 1838 | *) |
| 1839 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1840 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1841 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1842 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1843 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1844 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1845 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1846 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1847 | fi;; |
| 1848 | esac |
| 1849 | # Pass precious variables to config.status. |
| 1850 | if test "$ac_new_set" = set; then |
| 1851 | case $ac_new_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1852 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1853 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1854 | esac |
| 1855 | case " $ac_configure_args " in |
| 1856 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1857 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1858 | esac |
| 1859 | fi |
| 1860 | done |
| 1861 | if $ac_cache_corrupted; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1862 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1863 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1864 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1865 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1866 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1867 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1868 | |
| 1869 | |
| 1870 | |
| 1871 | |
| 1872 | |
| 1873 | |
| 1874 | |
| 1875 | |
| 1876 | |
| 1877 | |
| 1878 | |
| 1879 | |
| 1880 | |
| 1881 | |
| 1882 | |
| 1883 | |
| 1884 | |
| 1885 | |
| 1886 | |
| 1887 | |
| 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1892 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1893 | ac_ext=c |
| 1894 | ac_cpp='$CPP $CPPFLAGS' |
| 1895 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1896 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1897 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1898 | |
| 1899 | |
| 1900 | |
Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 1901 | LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1902 | |
| 1903 | |
| 1904 | |
| 1905 | |
| 1906 | |
| 1907 | |
| 1908 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1909 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1910 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1911 | if test -f "$ac_dir/install-sh"; then |
| 1912 | ac_aux_dir=$ac_dir |
| 1913 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1914 | break |
| 1915 | elif test -f "$ac_dir/install.sh"; then |
| 1916 | ac_aux_dir=$ac_dir |
| 1917 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1918 | break |
| 1919 | elif test -f "$ac_dir/shtool"; then |
| 1920 | ac_aux_dir=$ac_dir |
| 1921 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1922 | break |
| 1923 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1924 | done |
| 1925 | if test -z "$ac_aux_dir"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1926 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1927 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
| 1928 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1929 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1930 | |
| 1931 | # These three variables are undocumented and unsupported, |
| 1932 | # and are intended to be withdrawn in a future Autoconf release. |
| 1933 | # They can cause serious problems if a builder's source tree is in a directory |
| 1934 | # whose full name contains unusual characters. |
| 1935 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1936 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1937 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1938 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1939 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1940 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1941 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1942 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1943 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
| 1944 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1945 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1946 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1947 | fi |
| 1948 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1949 | for i in `ls ${srcdir}/projects` |
| 1950 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1951 | if test -d ${srcdir}/projects/${i} ; then |
| 1952 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1953 | CVS) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1954 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1955 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1956 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 1957 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1958 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1959 | ;; |
Tanya Lattner | b70e452 | 2008-06-24 17:49:13 +0000 | [diff] [blame] | 1960 | # llvm-test is the old name of the test-suite, kept here for backwards |
| 1961 | # compatibility |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 1962 | llvm-test) subdirs="$subdirs projects/llvm-test" |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1963 | ;; |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 1964 | test-suite) subdirs="$subdirs projects/test-suite" |
| 1965 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1966 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1967 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1968 | llvm-gcc) subdirs="$subdirs projects/llvm-gcc" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1969 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1970 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 1971 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1972 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1973 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1974 | llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 1975 | ;; |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 1976 | poolalloc) subdirs="$subdirs projects/poolalloc" |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 1977 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1978 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 1979 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1980 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1981 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 1982 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 1983 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1984 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1985 | fi |
| 1986 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 1987 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1988 | |
| 1989 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1990 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1991 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1992 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 1993 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1994 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1995 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1996 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 1997 | if test "${ac_cv_build+set}" = set; then |
| 1998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1999 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2000 | ac_build_alias=$build_alias |
| 2001 | test "x$ac_build_alias" = x && |
| 2002 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2003 | test "x$ac_build_alias" = x && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2004 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2005 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2006 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2007 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2008 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2009 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 2010 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2011 | |
| 2012 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2013 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2014 | echo "${ECHO_T}$ac_cv_build" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2015 | case $ac_cv_build in |
| 2016 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2017 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2018 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2019 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2020 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2021 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2022 | ac_save_IFS=$IFS; IFS='-' |
| 2023 | set x $ac_cv_build |
| 2024 | shift |
| 2025 | build_cpu=$1 |
| 2026 | build_vendor=$2 |
| 2027 | shift; shift |
| 2028 | # Remember, the first character of IFS is used to create $*, |
| 2029 | # except with old shells: |
| 2030 | build_os=$* |
| 2031 | IFS=$ac_save_IFS |
| 2032 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2033 | |
| 2034 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2035 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2036 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 2037 | if test "${ac_cv_host+set}" = set; then |
| 2038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2039 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2040 | if test "x$host_alias" = x; then |
| 2041 | ac_cv_host=$ac_cv_build |
| 2042 | else |
| 2043 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2044 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2045 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 2046 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2047 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2048 | |
| 2049 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2050 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2051 | echo "${ECHO_T}$ac_cv_host" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2052 | case $ac_cv_host in |
| 2053 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2054 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2055 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2056 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2057 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2058 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2059 | ac_save_IFS=$IFS; IFS='-' |
| 2060 | set x $ac_cv_host |
| 2061 | shift |
| 2062 | host_cpu=$1 |
| 2063 | host_vendor=$2 |
| 2064 | shift; shift |
| 2065 | # Remember, the first character of IFS is used to create $*, |
| 2066 | # except with old shells: |
| 2067 | host_os=$* |
| 2068 | IFS=$ac_save_IFS |
| 2069 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2070 | |
| 2071 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2072 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2073 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 2074 | if test "${ac_cv_target+set}" = set; then |
| 2075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2076 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2077 | if test "x$target_alias" = x; then |
| 2078 | ac_cv_target=$ac_cv_host |
| 2079 | else |
| 2080 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2081 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2082 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 2083 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2084 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2085 | |
| 2086 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2087 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2088 | echo "${ECHO_T}$ac_cv_target" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2089 | case $ac_cv_target in |
| 2090 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2091 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2092 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2093 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2094 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2095 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2096 | ac_save_IFS=$IFS; IFS='-' |
| 2097 | set x $ac_cv_target |
| 2098 | shift |
| 2099 | target_cpu=$1 |
| 2100 | target_vendor=$2 |
| 2101 | shift; shift |
| 2102 | # Remember, the first character of IFS is used to create $*, |
| 2103 | # except with old shells: |
| 2104 | target_os=$* |
| 2105 | IFS=$ac_save_IFS |
| 2106 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2107 | |
| 2108 | |
| 2109 | # The aliases save the names the user supplied, while $host etc. |
| 2110 | # will get canonicalized. |
| 2111 | test -n "$target_alias" && |
| 2112 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2113 | NONENONEs,x,x, && |
| 2114 | program_prefix=${target_alias}- |
| 2115 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2116 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2117 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 2118 | if test "${llvm_cv_os_type+set}" = set; then |
| 2119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2120 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2121 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2122 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2123 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2124 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2125 | llvm_cv_os_type="AIX" |
| 2126 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2127 | *-*-irix*) |
| 2128 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2129 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2130 | llvm_cv_os_type="IRIX" |
| 2131 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2132 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2133 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2134 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2135 | llvm_cv_os_type="Cygwin" |
| 2136 | llvm_cv_platform_type="Unix" ;; |
| 2137 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2138 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2139 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2140 | llvm_cv_os_type="Darwin" |
| 2141 | llvm_cv_platform_type="Unix" ;; |
| 2142 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2143 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2144 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2145 | llvm_cv_os_type="FreeBSD" |
| 2146 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2147 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2148 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2149 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2150 | llvm_cv_os_type="OpenBSD" |
| 2151 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2152 | *-*-netbsd*) |
| 2153 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2154 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2155 | llvm_cv_os_type="NetBSD" |
| 2156 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2157 | *-*-dragonfly*) |
| 2158 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2159 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2160 | llvm_cv_os_type="DragonFly" |
| 2161 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2162 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2163 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2164 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2165 | llvm_cv_os_type="HP-UX" |
| 2166 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2167 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2168 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2169 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2170 | llvm_cv_os_type="Interix" |
| 2171 | llvm_cv_platform_type="Unix" ;; |
| 2172 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2173 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2174 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2175 | llvm_cv_os_type="Linux" |
| 2176 | llvm_cv_platform_type="Unix" ;; |
| 2177 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2178 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2179 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2180 | llvm_cv_os_type="SunOS" |
| 2181 | llvm_cv_platform_type="Unix" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2182 | *-*-auroraux*) |
| 2183 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2184 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 2185 | llvm_cv_os_type="AuroraUX" |
| 2186 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2187 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2188 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2189 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2190 | llvm_cv_os_type="Win32" |
| 2191 | llvm_cv_platform_type="Win32" ;; |
| 2192 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2193 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2194 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2195 | llvm_cv_os_type="MingW" |
| 2196 | llvm_cv_platform_type="Win32" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2197 | *-*-haiku*) |
| 2198 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2199 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2200 | llvm_cv_os_type="Haiku" |
| 2201 | llvm_cv_platform_type="Unix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2202 | *-unknown-eabi*) |
| 2203 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2204 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2205 | llvm_cv_os_type="Freestanding" |
| 2206 | llvm_cv_platform_type="Unix" ;; |
| 2207 | *-unknown-elf*) |
| 2208 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2209 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2210 | llvm_cv_os_type="Freestanding" |
| 2211 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2212 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2213 | llvm_cv_link_all_option="" |
| 2214 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2215 | llvm_cv_os_type="Unknown" |
| 2216 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2217 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2218 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2219 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2220 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2221 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2222 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 2223 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 2224 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 2225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2226 | else |
| 2227 | case $target in |
| 2228 | *-*-aix*) |
| 2229 | llvm_cv_target_os_type="AIX" ;; |
| 2230 | *-*-irix*) |
| 2231 | llvm_cv_target_os_type="IRIX" ;; |
| 2232 | *-*-cygwin*) |
| 2233 | llvm_cv_target_os_type="Cygwin" ;; |
| 2234 | *-*-darwin*) |
| 2235 | llvm_cv_target_os_type="Darwin" ;; |
| 2236 | *-*-freebsd*) |
| 2237 | llvm_cv_target_os_type="FreeBSD" ;; |
| 2238 | *-*-openbsd*) |
| 2239 | llvm_cv_target_os_type="OpenBSD" ;; |
| 2240 | *-*-netbsd*) |
| 2241 | llvm_cv_target_os_type="NetBSD" ;; |
| 2242 | *-*-dragonfly*) |
| 2243 | llvm_cv_target_os_type="DragonFly" ;; |
| 2244 | *-*-hpux*) |
| 2245 | llvm_cv_target_os_type="HP-UX" ;; |
| 2246 | *-*-interix*) |
| 2247 | llvm_cv_target_os_type="Interix" ;; |
| 2248 | *-*-linux*) |
| 2249 | llvm_cv_target_os_type="Linux" ;; |
| 2250 | *-*-solaris*) |
| 2251 | llvm_cv_target_os_type="SunOS" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2252 | *-*-auroraux*) |
| 2253 | llvm_cv_target_os_type="AuroraUX" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2254 | *-*-win32*) |
| 2255 | llvm_cv_target_os_type="Win32" ;; |
| 2256 | *-*-mingw*) |
| 2257 | llvm_cv_target_os_type="MingW" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2258 | *-*-haiku*) |
| 2259 | llvm_cv_target_os_type="Haiku" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2260 | *-unknown-eabi*) |
| 2261 | llvm_cv_target_os_type="Freestanding" ;; |
| 2262 | *) |
| 2263 | llvm_cv_target_os_type="Unknown" ;; |
| 2264 | esac |
| 2265 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2266 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 2267 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2268 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2269 | if test "$llvm_cv_os_type" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2270 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2271 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 2272 | { (exit 1); exit 1; }; } |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 2273 | fi |
| 2274 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2275 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2276 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2277 | HOST_OS=$llvm_cv_os_type |
| 2278 | |
| 2279 | TARGET_OS=$llvm_cv_target_os_type |
| 2280 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2281 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2282 | LINKALL=$llvm_cv_link_all_option |
| 2283 | |
| 2284 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2285 | |
| 2286 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2287 | case $llvm_cv_platform_type in |
| 2288 | Unix) |
| 2289 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2290 | cat >>confdefs.h <<\_ACEOF |
| 2291 | #define LLVM_ON_UNIX 1 |
| 2292 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2293 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2294 | LLVM_ON_UNIX=1 |
| 2295 | |
| 2296 | LLVM_ON_WIN32=0 |
| 2297 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2298 | ;; |
| 2299 | Win32) |
| 2300 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2301 | cat >>confdefs.h <<\_ACEOF |
| 2302 | #define LLVM_ON_WIN32 1 |
| 2303 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2304 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2305 | LLVM_ON_UNIX=0 |
| 2306 | |
| 2307 | LLVM_ON_WIN32=1 |
| 2308 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2309 | ;; |
| 2310 | esac |
| 2311 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2312 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2313 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 2314 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2316 | else |
| 2317 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2318 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2319 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2320 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2321 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2322 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2323 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2324 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2325 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2326 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2327 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2328 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 2329 | bfin-*) llvm_cv_target_arch="Blackfin" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 2330 | microblaze-*) llvm_cv_target_arch="MBlaze" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2331 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2332 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2333 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2334 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2335 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2336 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2337 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2338 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2339 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2340 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2341 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 2342 | # Determine the LLVM native architecture for the target |
| 2343 | case "$llvm_cv_target_arch" in |
| 2344 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2345 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2346 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2347 | esac |
| 2348 | |
| 2349 | ARCH=$llvm_cv_target_arch |
| 2350 | |
| 2351 | |
| 2352 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2353 | ac_cpp='$CPP $CPPFLAGS' |
| 2354 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2355 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2356 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2357 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2358 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2359 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2360 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2361 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2362 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2364 | else |
| 2365 | if test -n "$CC"; then |
| 2366 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2367 | else |
| 2368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2369 | for as_dir in $PATH |
| 2370 | do |
| 2371 | IFS=$as_save_IFS |
| 2372 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2373 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2374 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2375 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2376 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2377 | break 2 |
| 2378 | fi |
| 2379 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2380 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2381 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2382 | |
| 2383 | fi |
| 2384 | fi |
| 2385 | CC=$ac_cv_prog_CC |
| 2386 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2387 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2388 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2389 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2390 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2391 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2392 | fi |
| 2393 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2394 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2395 | fi |
| 2396 | if test -z "$ac_cv_prog_CC"; then |
| 2397 | ac_ct_CC=$CC |
| 2398 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2399 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2400 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2401 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2402 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2404 | else |
| 2405 | if test -n "$ac_ct_CC"; then |
| 2406 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2407 | else |
| 2408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2409 | for as_dir in $PATH |
| 2410 | do |
| 2411 | IFS=$as_save_IFS |
| 2412 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2413 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2414 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2415 | ac_cv_prog_ac_ct_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2416 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2417 | break 2 |
| 2418 | fi |
| 2419 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2420 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2421 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2422 | |
| 2423 | fi |
| 2424 | fi |
| 2425 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2426 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2427 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2428 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2429 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2430 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2431 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2432 | fi |
| 2433 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2434 | if test "x$ac_ct_CC" = x; then |
| 2435 | CC="" |
| 2436 | else |
| 2437 | case $cross_compiling:$ac_tool_warned in |
| 2438 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2439 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2440 | whose name does not start with the host triplet. If you think this |
| 2441 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2442 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2443 | whose name does not start with the host triplet. If you think this |
| 2444 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2445 | ac_tool_warned=yes ;; |
| 2446 | esac |
| 2447 | CC=$ac_ct_CC |
| 2448 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2449 | else |
| 2450 | CC="$ac_cv_prog_CC" |
| 2451 | fi |
| 2452 | |
| 2453 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2454 | if test -n "$ac_tool_prefix"; then |
| 2455 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2456 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2457 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2458 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2459 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2461 | else |
| 2462 | if test -n "$CC"; then |
| 2463 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2464 | else |
| 2465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2466 | for as_dir in $PATH |
| 2467 | do |
| 2468 | IFS=$as_save_IFS |
| 2469 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2470 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2471 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2472 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2473 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2474 | break 2 |
| 2475 | fi |
| 2476 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2477 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2478 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2479 | |
| 2480 | fi |
| 2481 | fi |
| 2482 | CC=$ac_cv_prog_CC |
| 2483 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2484 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2485 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2486 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2487 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2488 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2489 | fi |
| 2490 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2491 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2492 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2493 | fi |
| 2494 | if test -z "$CC"; then |
| 2495 | # Extract the first word of "cc", so it can be a program name with args. |
| 2496 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2497 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2499 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2501 | else |
| 2502 | if test -n "$CC"; then |
| 2503 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2504 | else |
| 2505 | ac_prog_rejected=no |
| 2506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2507 | for as_dir in $PATH |
| 2508 | do |
| 2509 | IFS=$as_save_IFS |
| 2510 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2511 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2512 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2513 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2514 | ac_prog_rejected=yes |
| 2515 | continue |
| 2516 | fi |
| 2517 | ac_cv_prog_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2518 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2519 | break 2 |
| 2520 | fi |
| 2521 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2522 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2523 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2524 | |
| 2525 | if test $ac_prog_rejected = yes; then |
| 2526 | # We found a bogon in the path, so make sure we never use it. |
| 2527 | set dummy $ac_cv_prog_CC |
| 2528 | shift |
| 2529 | if test $# != 0; then |
| 2530 | # We chose a different compiler from the bogus one. |
| 2531 | # However, it has the same basename, so the bogon will be chosen |
| 2532 | # first if we set CC to just the basename; use the full file name. |
| 2533 | shift |
| 2534 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2535 | fi |
| 2536 | fi |
| 2537 | fi |
| 2538 | fi |
| 2539 | CC=$ac_cv_prog_CC |
| 2540 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2541 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2542 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2543 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2544 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2545 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2546 | fi |
| 2547 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2548 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2549 | fi |
| 2550 | if test -z "$CC"; then |
| 2551 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2552 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2553 | do |
| 2554 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2555 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2556 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2557 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2558 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2560 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2561 | if test -n "$CC"; then |
| 2562 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2563 | else |
| 2564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2565 | for as_dir in $PATH |
| 2566 | do |
| 2567 | IFS=$as_save_IFS |
| 2568 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2569 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2570 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2571 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2573 | break 2 |
| 2574 | fi |
| 2575 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2576 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2577 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2578 | |
| 2579 | fi |
| 2580 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2581 | CC=$ac_cv_prog_CC |
| 2582 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2583 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2584 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2585 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2586 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2587 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2588 | fi |
| 2589 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2590 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2591 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2592 | done |
| 2593 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2594 | if test -z "$CC"; then |
| 2595 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2596 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2597 | do |
| 2598 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2599 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2600 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2602 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2604 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2605 | if test -n "$ac_ct_CC"; then |
| 2606 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2607 | else |
| 2608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2609 | for as_dir in $PATH |
| 2610 | do |
| 2611 | IFS=$as_save_IFS |
| 2612 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2613 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2614 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2615 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2616 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2617 | break 2 |
| 2618 | fi |
| 2619 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2620 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2621 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2622 | |
| 2623 | fi |
| 2624 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2625 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2626 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2627 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2628 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2629 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2630 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2631 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2632 | fi |
| 2633 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2634 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2635 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2636 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2637 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2638 | if test "x$ac_ct_CC" = x; then |
| 2639 | CC="" |
| 2640 | else |
| 2641 | case $cross_compiling:$ac_tool_warned in |
| 2642 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2643 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2644 | whose name does not start with the host triplet. If you think this |
| 2645 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2646 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2647 | whose name does not start with the host triplet. If you think this |
| 2648 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2649 | ac_tool_warned=yes ;; |
| 2650 | esac |
| 2651 | CC=$ac_ct_CC |
| 2652 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2653 | fi |
| 2654 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2655 | fi |
| 2656 | |
| 2657 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2658 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2659 | See \`config.log' for more details." >&5 |
| 2660 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2661 | See \`config.log' for more details." >&2;} |
| 2662 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2663 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2664 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2665 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2666 | ac_compiler=`set X $ac_compile; echo $2` |
| 2667 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2668 | case "(($ac_try" in |
| 2669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2670 | *) ac_try_echo=$ac_try;; |
| 2671 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2673 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2674 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2676 | (exit $ac_status); } |
| 2677 | { (ac_try="$ac_compiler -v >&5" |
| 2678 | case "(($ac_try" in |
| 2679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2680 | *) ac_try_echo=$ac_try;; |
| 2681 | esac |
| 2682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2683 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2684 | ac_status=$? |
| 2685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2686 | (exit $ac_status); } |
| 2687 | { (ac_try="$ac_compiler -V >&5" |
| 2688 | case "(($ac_try" in |
| 2689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2690 | *) ac_try_echo=$ac_try;; |
| 2691 | esac |
| 2692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2693 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2694 | ac_status=$? |
| 2695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2696 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2697 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2698 | cat >conftest.$ac_ext <<_ACEOF |
| 2699 | /* confdefs.h. */ |
| 2700 | _ACEOF |
| 2701 | cat confdefs.h >>conftest.$ac_ext |
| 2702 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2703 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2704 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2705 | int |
| 2706 | main () |
| 2707 | { |
| 2708 | |
| 2709 | ; |
| 2710 | return 0; |
| 2711 | } |
| 2712 | _ACEOF |
| 2713 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2714 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2715 | # Try to create an executable without -o first, disregard a.out. |
| 2716 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2717 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2718 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2719 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2720 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2721 | # |
| 2722 | # List of possible output files, starting from the most likely. |
| 2723 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2724 | # only as a last resort. b.out is created by i960 compilers. |
| 2725 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2726 | # |
| 2727 | # The IRIX 6 linker writes into existing files which may not be |
| 2728 | # executable, retaining their permissions. Remove them first so a |
| 2729 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2730 | ac_rmfiles= |
| 2731 | for ac_file in $ac_files |
| 2732 | do |
| 2733 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2734 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2735 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2736 | esac |
| 2737 | done |
| 2738 | rm -f $ac_rmfiles |
| 2739 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2740 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2741 | case "(($ac_try" in |
| 2742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2743 | *) ac_try_echo=$ac_try;; |
| 2744 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2746 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2747 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2749 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2750 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2751 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2752 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2753 | # so that the user can short-circuit this test for compilers unknown to |
| 2754 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2755 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2756 | do |
| 2757 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2758 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2759 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2760 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2761 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2762 | # We found the default executable, but exeext='' is most |
| 2763 | # certainly right. |
| 2764 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2765 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2766 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2767 | then :; else |
| 2768 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2769 | fi |
| 2770 | # We set ac_cv_exeext here because the later test for it is not |
| 2771 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2772 | # argument, so we may need to know it at that point already. |
| 2773 | # Even if this section looks crufty: it has the advantage of |
| 2774 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2775 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2776 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2777 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2778 | esac |
| 2779 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2780 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2781 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2782 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2783 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2785 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2786 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2787 | See \`config.log' for more details." >&5 |
| 2788 | echo "$as_me: error: C compiler cannot create executables |
| 2789 | See \`config.log' for more details." >&2;} |
| 2790 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2791 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2792 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2793 | ac_exeext=$ac_cv_exeext |
| 2794 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2795 | echo "${ECHO_T}$ac_file" >&6; } |
| 2796 | |
| 2797 | # Check that the compiler produces executables we can run. If not, either |
| 2798 | # the compiler is broken, or we cross compile. |
| 2799 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2800 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2801 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2802 | # If not cross compiling, check that we can run a simple program. |
| 2803 | if test "$cross_compiling" != yes; then |
| 2804 | if { ac_try='./$ac_file' |
| 2805 | { (case "(($ac_try" in |
| 2806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2807 | *) ac_try_echo=$ac_try;; |
| 2808 | esac |
| 2809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2810 | (eval "$ac_try") 2>&5 |
| 2811 | ac_status=$? |
| 2812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2813 | (exit $ac_status); }; }; then |
| 2814 | cross_compiling=no |
| 2815 | else |
| 2816 | if test "$cross_compiling" = maybe; then |
| 2817 | cross_compiling=yes |
| 2818 | else |
| 2819 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2820 | If you meant to cross compile, use \`--host'. |
| 2821 | See \`config.log' for more details." >&5 |
| 2822 | echo "$as_me: error: cannot run C compiled programs. |
| 2823 | If you meant to cross compile, use \`--host'. |
| 2824 | See \`config.log' for more details." >&2;} |
| 2825 | { (exit 1); exit 1; }; } |
| 2826 | fi |
| 2827 | fi |
| 2828 | fi |
| 2829 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2830 | echo "${ECHO_T}yes" >&6; } |
| 2831 | |
| 2832 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2833 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2834 | # Check that the compiler produces executables we can run. If not, either |
| 2835 | # the compiler is broken, or we cross compile. |
| 2836 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2837 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2838 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2839 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2840 | |
| 2841 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2842 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2843 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2844 | case "(($ac_try" in |
| 2845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2846 | *) ac_try_echo=$ac_try;; |
| 2847 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2849 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2850 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2852 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2853 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2854 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2855 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2856 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2857 | for ac_file in conftest.exe conftest conftest.*; do |
| 2858 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2859 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2860 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2861 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2862 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2863 | * ) break;; |
| 2864 | esac |
| 2865 | done |
| 2866 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2867 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2868 | See \`config.log' for more details." >&5 |
| 2869 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2870 | See \`config.log' for more details." >&2;} |
| 2871 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2872 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2873 | |
| 2874 | rm -f conftest$ac_cv_exeext |
| 2875 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2876 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2877 | |
| 2878 | rm -f conftest.$ac_ext |
| 2879 | EXEEXT=$ac_cv_exeext |
| 2880 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2881 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2882 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2883 | if test "${ac_cv_objext+set}" = set; then |
| 2884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2885 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2886 | cat >conftest.$ac_ext <<_ACEOF |
| 2887 | /* confdefs.h. */ |
| 2888 | _ACEOF |
| 2889 | cat confdefs.h >>conftest.$ac_ext |
| 2890 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2891 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2892 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2893 | int |
| 2894 | main () |
| 2895 | { |
| 2896 | |
| 2897 | ; |
| 2898 | return 0; |
| 2899 | } |
| 2900 | _ACEOF |
| 2901 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2902 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2903 | case "(($ac_try" in |
| 2904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2905 | *) ac_try_echo=$ac_try;; |
| 2906 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2908 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2909 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2911 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2912 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2913 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2914 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2915 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2916 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2917 | break;; |
| 2918 | esac |
| 2919 | done |
| 2920 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2921 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2923 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2924 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2925 | See \`config.log' for more details." >&5 |
| 2926 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2927 | See \`config.log' for more details." >&2;} |
| 2928 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2929 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2930 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2931 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2932 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2933 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2934 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2935 | OBJEXT=$ac_cv_objext |
| 2936 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2937 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2938 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2939 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2941 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2942 | cat >conftest.$ac_ext <<_ACEOF |
| 2943 | /* confdefs.h. */ |
| 2944 | _ACEOF |
| 2945 | cat confdefs.h >>conftest.$ac_ext |
| 2946 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2947 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2948 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2949 | int |
| 2950 | main () |
| 2951 | { |
| 2952 | #ifndef __GNUC__ |
| 2953 | choke me |
| 2954 | #endif |
| 2955 | |
| 2956 | ; |
| 2957 | return 0; |
| 2958 | } |
| 2959 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2960 | rm -f conftest.$ac_objext |
| 2961 | if { (ac_try="$ac_compile" |
| 2962 | case "(($ac_try" in |
| 2963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2964 | *) ac_try_echo=$ac_try;; |
| 2965 | esac |
| 2966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2967 | (eval "$ac_compile") 2>conftest.er1 |
| 2968 | ac_status=$? |
| 2969 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2970 | rm -f conftest.er1 |
| 2971 | cat conftest.err >&5 |
| 2972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2973 | (exit $ac_status); } && |
| 2974 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2975 | { (case "(($ac_try" in |
| 2976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2977 | *) ac_try_echo=$ac_try;; |
| 2978 | esac |
| 2979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2980 | (eval "$ac_try") 2>&5 |
| 2981 | ac_status=$? |
| 2982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2983 | (exit $ac_status); }; } && |
| 2984 | { ac_try='test -s conftest.$ac_objext' |
| 2985 | { (case "(($ac_try" in |
| 2986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2987 | *) ac_try_echo=$ac_try;; |
| 2988 | esac |
| 2989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2990 | (eval "$ac_try") 2>&5 |
| 2991 | ac_status=$? |
| 2992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2993 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2994 | ac_compiler_gnu=yes |
| 2995 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2996 | echo "$as_me: failed program was:" >&5 |
| 2997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2998 | |
| 2999 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3000 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3001 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3003 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3004 | |
| 3005 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3006 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3007 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3008 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3009 | ac_test_CFLAGS=${CFLAGS+set} |
| 3010 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3011 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3012 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 3013 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3015 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3016 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3017 | ac_c_werror_flag=yes |
| 3018 | ac_cv_prog_cc_g=no |
| 3019 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3020 | cat >conftest.$ac_ext <<_ACEOF |
| 3021 | /* confdefs.h. */ |
| 3022 | _ACEOF |
| 3023 | cat confdefs.h >>conftest.$ac_ext |
| 3024 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3025 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3026 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3027 | int |
| 3028 | main () |
| 3029 | { |
| 3030 | |
| 3031 | ; |
| 3032 | return 0; |
| 3033 | } |
| 3034 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3035 | rm -f conftest.$ac_objext |
| 3036 | if { (ac_try="$ac_compile" |
| 3037 | case "(($ac_try" in |
| 3038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3039 | *) ac_try_echo=$ac_try;; |
| 3040 | esac |
| 3041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3042 | (eval "$ac_compile") 2>conftest.er1 |
| 3043 | ac_status=$? |
| 3044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3045 | rm -f conftest.er1 |
| 3046 | cat conftest.err >&5 |
| 3047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3048 | (exit $ac_status); } && |
| 3049 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3050 | { (case "(($ac_try" in |
| 3051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3052 | *) ac_try_echo=$ac_try;; |
| 3053 | esac |
| 3054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3055 | (eval "$ac_try") 2>&5 |
| 3056 | ac_status=$? |
| 3057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3058 | (exit $ac_status); }; } && |
| 3059 | { ac_try='test -s conftest.$ac_objext' |
| 3060 | { (case "(($ac_try" in |
| 3061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3062 | *) ac_try_echo=$ac_try;; |
| 3063 | esac |
| 3064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3065 | (eval "$ac_try") 2>&5 |
| 3066 | ac_status=$? |
| 3067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3068 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3069 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3070 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3071 | echo "$as_me: failed program was:" >&5 |
| 3072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3073 | |
| 3074 | CFLAGS="" |
| 3075 | cat >conftest.$ac_ext <<_ACEOF |
| 3076 | /* confdefs.h. */ |
| 3077 | _ACEOF |
| 3078 | cat confdefs.h >>conftest.$ac_ext |
| 3079 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3080 | /* end confdefs.h. */ |
| 3081 | |
| 3082 | int |
| 3083 | main () |
| 3084 | { |
| 3085 | |
| 3086 | ; |
| 3087 | return 0; |
| 3088 | } |
| 3089 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3090 | rm -f conftest.$ac_objext |
| 3091 | if { (ac_try="$ac_compile" |
| 3092 | case "(($ac_try" in |
| 3093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3094 | *) ac_try_echo=$ac_try;; |
| 3095 | esac |
| 3096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3097 | (eval "$ac_compile") 2>conftest.er1 |
| 3098 | ac_status=$? |
| 3099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3100 | rm -f conftest.er1 |
| 3101 | cat conftest.err >&5 |
| 3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3103 | (exit $ac_status); } && |
| 3104 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3105 | { (case "(($ac_try" in |
| 3106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3107 | *) ac_try_echo=$ac_try;; |
| 3108 | esac |
| 3109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3110 | (eval "$ac_try") 2>&5 |
| 3111 | ac_status=$? |
| 3112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3113 | (exit $ac_status); }; } && |
| 3114 | { ac_try='test -s conftest.$ac_objext' |
| 3115 | { (case "(($ac_try" in |
| 3116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3117 | *) ac_try_echo=$ac_try;; |
| 3118 | esac |
| 3119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3120 | (eval "$ac_try") 2>&5 |
| 3121 | ac_status=$? |
| 3122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3123 | (exit $ac_status); }; }; then |
| 3124 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3125 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3126 | echo "$as_me: failed program was:" >&5 |
| 3127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3128 | |
| 3129 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3130 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3131 | cat >conftest.$ac_ext <<_ACEOF |
| 3132 | /* confdefs.h. */ |
| 3133 | _ACEOF |
| 3134 | cat confdefs.h >>conftest.$ac_ext |
| 3135 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3136 | /* end confdefs.h. */ |
| 3137 | |
| 3138 | int |
| 3139 | main () |
| 3140 | { |
| 3141 | |
| 3142 | ; |
| 3143 | return 0; |
| 3144 | } |
| 3145 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3146 | rm -f conftest.$ac_objext |
| 3147 | if { (ac_try="$ac_compile" |
| 3148 | case "(($ac_try" in |
| 3149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3150 | *) ac_try_echo=$ac_try;; |
| 3151 | esac |
| 3152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3153 | (eval "$ac_compile") 2>conftest.er1 |
| 3154 | ac_status=$? |
| 3155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3156 | rm -f conftest.er1 |
| 3157 | cat conftest.err >&5 |
| 3158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3159 | (exit $ac_status); } && |
| 3160 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3161 | { (case "(($ac_try" in |
| 3162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3163 | *) ac_try_echo=$ac_try;; |
| 3164 | esac |
| 3165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3166 | (eval "$ac_try") 2>&5 |
| 3167 | ac_status=$? |
| 3168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3169 | (exit $ac_status); }; } && |
| 3170 | { ac_try='test -s conftest.$ac_objext' |
| 3171 | { (case "(($ac_try" in |
| 3172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3173 | *) ac_try_echo=$ac_try;; |
| 3174 | esac |
| 3175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3176 | (eval "$ac_try") 2>&5 |
| 3177 | ac_status=$? |
| 3178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3179 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3180 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3181 | else |
| 3182 | echo "$as_me: failed program was:" >&5 |
| 3183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3184 | |
| 3185 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3186 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3187 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3189 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3190 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3192 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3193 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3195 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3196 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3197 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3198 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3199 | if test "$ac_test_CFLAGS" = set; then |
| 3200 | CFLAGS=$ac_save_CFLAGS |
| 3201 | elif test $ac_cv_prog_cc_g = yes; then |
| 3202 | if test "$GCC" = yes; then |
| 3203 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3204 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3205 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3206 | fi |
| 3207 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3208 | if test "$GCC" = yes; then |
| 3209 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3210 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3211 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3212 | fi |
| 3213 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3214 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3215 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3216 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 3217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3218 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3219 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3220 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3221 | cat >conftest.$ac_ext <<_ACEOF |
| 3222 | /* confdefs.h. */ |
| 3223 | _ACEOF |
| 3224 | cat confdefs.h >>conftest.$ac_ext |
| 3225 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3226 | /* end confdefs.h. */ |
| 3227 | #include <stdarg.h> |
| 3228 | #include <stdio.h> |
| 3229 | #include <sys/types.h> |
| 3230 | #include <sys/stat.h> |
| 3231 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3232 | struct buf { int x; }; |
| 3233 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3234 | static char *e (p, i) |
| 3235 | char **p; |
| 3236 | int i; |
| 3237 | { |
| 3238 | return p[i]; |
| 3239 | } |
| 3240 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3241 | { |
| 3242 | char *s; |
| 3243 | va_list v; |
| 3244 | va_start (v,p); |
| 3245 | s = g (p, va_arg (v,int)); |
| 3246 | va_end (v); |
| 3247 | return s; |
| 3248 | } |
| 3249 | |
| 3250 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3251 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3252 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3253 | as 'x'. The following induces an error, until -std is added to get |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3254 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3255 | array size at least. It's necessary to write '\x00'==0 to get something |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3256 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3257 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3258 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3259 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3260 | inside strings and character constants. */ |
| 3261 | #define FOO(x) 'x' |
| 3262 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3263 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3264 | int test (int i, double x); |
| 3265 | struct s1 {int (*f) (int a);}; |
| 3266 | struct s2 {int (*f) (double a);}; |
| 3267 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3268 | int argc; |
| 3269 | char **argv; |
| 3270 | int |
| 3271 | main () |
| 3272 | { |
| 3273 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3274 | ; |
| 3275 | return 0; |
| 3276 | } |
| 3277 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3278 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3279 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3280 | do |
| 3281 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3282 | rm -f conftest.$ac_objext |
| 3283 | if { (ac_try="$ac_compile" |
| 3284 | case "(($ac_try" in |
| 3285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3286 | *) ac_try_echo=$ac_try;; |
| 3287 | esac |
| 3288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3289 | (eval "$ac_compile") 2>conftest.er1 |
| 3290 | ac_status=$? |
| 3291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3292 | rm -f conftest.er1 |
| 3293 | cat conftest.err >&5 |
| 3294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3295 | (exit $ac_status); } && |
| 3296 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3297 | { (case "(($ac_try" in |
| 3298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3299 | *) ac_try_echo=$ac_try;; |
| 3300 | esac |
| 3301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3302 | (eval "$ac_try") 2>&5 |
| 3303 | ac_status=$? |
| 3304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3305 | (exit $ac_status); }; } && |
| 3306 | { ac_try='test -s conftest.$ac_objext' |
| 3307 | { (case "(($ac_try" in |
| 3308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3309 | *) ac_try_echo=$ac_try;; |
| 3310 | esac |
| 3311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3312 | (eval "$ac_try") 2>&5 |
| 3313 | ac_status=$? |
| 3314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3315 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3316 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3317 | else |
| 3318 | echo "$as_me: failed program was:" >&5 |
| 3319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3320 | |
| 3321 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3322 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3323 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3324 | rm -f core conftest.err conftest.$ac_objext |
| 3325 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3326 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3327 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3328 | CC=$ac_save_CC |
| 3329 | |
| 3330 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3331 | # AC_CACHE_VAL |
| 3332 | case "x$ac_cv_prog_cc_c89" in |
| 3333 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3334 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3335 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3336 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3337 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3338 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3339 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3340 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3341 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3342 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3343 | esac |
| 3344 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3345 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3346 | ac_ext=c |
| 3347 | ac_cpp='$CPP $CPPFLAGS' |
| 3348 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3349 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3350 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3351 | |
| 3352 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3353 | ac_ext=c |
| 3354 | ac_cpp='$CPP $CPPFLAGS' |
| 3355 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3356 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3357 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3358 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3359 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3360 | # On Suns, sometimes $CPP names a directory. |
| 3361 | if test -n "$CPP" && test -d "$CPP"; then |
| 3362 | CPP= |
| 3363 | fi |
| 3364 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3365 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3367 | else |
| 3368 | # Double quotes because CPP needs to be expanded |
| 3369 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3370 | do |
| 3371 | ac_preproc_ok=false |
| 3372 | for ac_c_preproc_warn_flag in '' yes |
| 3373 | do |
| 3374 | # Use a header file that comes with gcc, so configuring glibc |
| 3375 | # with a fresh cross-compiler works. |
| 3376 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3377 | # <limits.h> exists even on freestanding compilers. |
| 3378 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3379 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3380 | cat >conftest.$ac_ext <<_ACEOF |
| 3381 | /* confdefs.h. */ |
| 3382 | _ACEOF |
| 3383 | cat confdefs.h >>conftest.$ac_ext |
| 3384 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3385 | /* end confdefs.h. */ |
| 3386 | #ifdef __STDC__ |
| 3387 | # include <limits.h> |
| 3388 | #else |
| 3389 | # include <assert.h> |
| 3390 | #endif |
| 3391 | Syntax error |
| 3392 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3393 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3394 | case "(($ac_try" in |
| 3395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3396 | *) ac_try_echo=$ac_try;; |
| 3397 | esac |
| 3398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3399 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3400 | ac_status=$? |
| 3401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3402 | rm -f conftest.er1 |
| 3403 | cat conftest.err >&5 |
| 3404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3405 | (exit $ac_status); } >/dev/null; then |
| 3406 | if test -s conftest.err; then |
| 3407 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3408 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3409 | else |
| 3410 | ac_cpp_err= |
| 3411 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3412 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3413 | ac_cpp_err=yes |
| 3414 | fi |
| 3415 | if test -z "$ac_cpp_err"; then |
| 3416 | : |
| 3417 | else |
| 3418 | echo "$as_me: failed program was:" >&5 |
| 3419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3420 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3421 | # Broken: fails on valid input. |
| 3422 | continue |
| 3423 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3424 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3425 | rm -f conftest.err conftest.$ac_ext |
| 3426 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3427 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3428 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3429 | cat >conftest.$ac_ext <<_ACEOF |
| 3430 | /* confdefs.h. */ |
| 3431 | _ACEOF |
| 3432 | cat confdefs.h >>conftest.$ac_ext |
| 3433 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3434 | /* end confdefs.h. */ |
| 3435 | #include <ac_nonexistent.h> |
| 3436 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3437 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3438 | case "(($ac_try" in |
| 3439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3440 | *) ac_try_echo=$ac_try;; |
| 3441 | esac |
| 3442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3443 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3444 | ac_status=$? |
| 3445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3446 | rm -f conftest.er1 |
| 3447 | cat conftest.err >&5 |
| 3448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3449 | (exit $ac_status); } >/dev/null; then |
| 3450 | if test -s conftest.err; then |
| 3451 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3452 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3453 | else |
| 3454 | ac_cpp_err= |
| 3455 | fi |
| 3456 | else |
| 3457 | ac_cpp_err=yes |
| 3458 | fi |
| 3459 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3460 | # Broken: success on invalid input. |
| 3461 | continue |
| 3462 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3463 | echo "$as_me: failed program was:" >&5 |
| 3464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3465 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3466 | # Passes both tests. |
| 3467 | ac_preproc_ok=: |
| 3468 | break |
| 3469 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3470 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3471 | rm -f conftest.err conftest.$ac_ext |
| 3472 | |
| 3473 | done |
| 3474 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3475 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3476 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3477 | break |
| 3478 | fi |
| 3479 | |
| 3480 | done |
| 3481 | ac_cv_prog_CPP=$CPP |
| 3482 | |
| 3483 | fi |
| 3484 | CPP=$ac_cv_prog_CPP |
| 3485 | else |
| 3486 | ac_cv_prog_CPP=$CPP |
| 3487 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3488 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3489 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3490 | ac_preproc_ok=false |
| 3491 | for ac_c_preproc_warn_flag in '' yes |
| 3492 | do |
| 3493 | # Use a header file that comes with gcc, so configuring glibc |
| 3494 | # with a fresh cross-compiler works. |
| 3495 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3496 | # <limits.h> exists even on freestanding compilers. |
| 3497 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3498 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3499 | cat >conftest.$ac_ext <<_ACEOF |
| 3500 | /* confdefs.h. */ |
| 3501 | _ACEOF |
| 3502 | cat confdefs.h >>conftest.$ac_ext |
| 3503 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3504 | /* end confdefs.h. */ |
| 3505 | #ifdef __STDC__ |
| 3506 | # include <limits.h> |
| 3507 | #else |
| 3508 | # include <assert.h> |
| 3509 | #endif |
| 3510 | Syntax error |
| 3511 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3512 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3513 | case "(($ac_try" in |
| 3514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3515 | *) ac_try_echo=$ac_try;; |
| 3516 | esac |
| 3517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3518 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3519 | ac_status=$? |
| 3520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3521 | rm -f conftest.er1 |
| 3522 | cat conftest.err >&5 |
| 3523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3524 | (exit $ac_status); } >/dev/null; then |
| 3525 | if test -s conftest.err; then |
| 3526 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3527 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3528 | else |
| 3529 | ac_cpp_err= |
| 3530 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3531 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3532 | ac_cpp_err=yes |
| 3533 | fi |
| 3534 | if test -z "$ac_cpp_err"; then |
| 3535 | : |
| 3536 | else |
| 3537 | echo "$as_me: failed program was:" >&5 |
| 3538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3539 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3540 | # Broken: fails on valid input. |
| 3541 | continue |
| 3542 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3543 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3544 | rm -f conftest.err conftest.$ac_ext |
| 3545 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3546 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3547 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3548 | cat >conftest.$ac_ext <<_ACEOF |
| 3549 | /* confdefs.h. */ |
| 3550 | _ACEOF |
| 3551 | cat confdefs.h >>conftest.$ac_ext |
| 3552 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3553 | /* end confdefs.h. */ |
| 3554 | #include <ac_nonexistent.h> |
| 3555 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3556 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 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_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3563 | ac_status=$? |
| 3564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3565 | rm -f conftest.er1 |
| 3566 | cat conftest.err >&5 |
| 3567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3568 | (exit $ac_status); } >/dev/null; then |
| 3569 | if test -s conftest.err; then |
| 3570 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3571 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3572 | else |
| 3573 | ac_cpp_err= |
| 3574 | fi |
| 3575 | else |
| 3576 | ac_cpp_err=yes |
| 3577 | fi |
| 3578 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3579 | # Broken: success on invalid input. |
| 3580 | continue |
| 3581 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3582 | echo "$as_me: failed program was:" >&5 |
| 3583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3584 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3585 | # Passes both tests. |
| 3586 | ac_preproc_ok=: |
| 3587 | break |
| 3588 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3589 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3590 | rm -f conftest.err conftest.$ac_ext |
| 3591 | |
| 3592 | done |
| 3593 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3594 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3595 | if $ac_preproc_ok; then |
| 3596 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3597 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3598 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3599 | See \`config.log' for more details." >&5 |
| 3600 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3601 | See \`config.log' for more details." >&2;} |
| 3602 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3603 | fi |
| 3604 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3605 | ac_ext=c |
| 3606 | ac_cpp='$CPP $CPPFLAGS' |
| 3607 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3608 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3609 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3610 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3611 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3612 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3613 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3614 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3616 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3617 | # Extract the first word of "grep ggrep" to use in msg output |
| 3618 | if test -z "$GREP"; then |
| 3619 | set dummy grep ggrep; ac_prog_name=$2 |
| 3620 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3622 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3623 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3624 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3626 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3627 | do |
| 3628 | IFS=$as_save_IFS |
| 3629 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3630 | for ac_prog in grep ggrep; do |
| 3631 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3632 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3633 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3634 | # Check for GNU ac_path_GREP and select it if it is found. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3635 | # Check for GNU $ac_path_GREP |
| 3636 | case `"$ac_path_GREP" --version 2>&1` in |
| 3637 | *GNU*) |
| 3638 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3639 | *) |
| 3640 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3641 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3642 | while : |
| 3643 | do |
| 3644 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3645 | mv "conftest.tmp" "conftest.in" |
| 3646 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3647 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3648 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3649 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3650 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3651 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3652 | # Best one so far, save it but keep looking for a better one |
| 3653 | ac_cv_path_GREP="$ac_path_GREP" |
| 3654 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3655 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3656 | # 10*(2^10) chars as input seems more than enough |
| 3657 | test $ac_count -gt 10 && break |
| 3658 | done |
| 3659 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3660 | esac |
| 3661 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3662 | |
| 3663 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3664 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3665 | done |
| 3666 | |
| 3667 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3668 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3669 | |
| 3670 | |
| 3671 | fi |
| 3672 | |
| 3673 | GREP="$ac_cv_path_GREP" |
| 3674 | if test -z "$GREP"; then |
| 3675 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3676 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3677 | { (exit 1); exit 1; }; } |
| 3678 | fi |
| 3679 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3680 | else |
| 3681 | ac_cv_path_GREP=$GREP |
| 3682 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3683 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3685 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3686 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3687 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3688 | GREP="$ac_cv_path_GREP" |
| 3689 | |
| 3690 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3691 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3692 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3693 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3695 | else |
| 3696 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3697 | then ac_cv_path_EGREP="$GREP -E" |
| 3698 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3699 | # Extract the first word of "egrep" to use in msg output |
| 3700 | if test -z "$EGREP"; then |
| 3701 | set dummy egrep; ac_prog_name=$2 |
| 3702 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3704 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3705 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3706 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3708 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3709 | do |
| 3710 | IFS=$as_save_IFS |
| 3711 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3712 | for ac_prog in egrep; do |
| 3713 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3714 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3715 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3716 | # Check for GNU ac_path_EGREP and select it if it is found. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3717 | # Check for GNU $ac_path_EGREP |
| 3718 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3719 | *GNU*) |
| 3720 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3721 | *) |
| 3722 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3723 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3724 | while : |
| 3725 | do |
| 3726 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3727 | mv "conftest.tmp" "conftest.in" |
| 3728 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3729 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3730 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3731 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3732 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3733 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3734 | # Best one so far, save it but keep looking for a better one |
| 3735 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3736 | ac_path_EGREP_max=$ac_count |
| 3737 | fi |
| 3738 | # 10*(2^10) chars as input seems more than enough |
| 3739 | test $ac_count -gt 10 && break |
| 3740 | done |
| 3741 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3742 | esac |
| 3743 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3744 | |
| 3745 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3746 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3747 | done |
| 3748 | |
| 3749 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3750 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3751 | |
| 3752 | |
| 3753 | fi |
| 3754 | |
| 3755 | EGREP="$ac_cv_path_EGREP" |
| 3756 | if test -z "$EGREP"; then |
| 3757 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3758 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3759 | { (exit 1); exit 1; }; } |
| 3760 | fi |
| 3761 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3762 | else |
| 3763 | ac_cv_path_EGREP=$EGREP |
| 3764 | fi |
| 3765 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3766 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3767 | fi |
| 3768 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3769 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3770 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3771 | EGREP="$ac_cv_path_EGREP" |
| 3772 | |
| 3773 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3774 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3775 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 3776 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3778 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3779 | cat >conftest.$ac_ext <<_ACEOF |
| 3780 | /* confdefs.h. */ |
| 3781 | _ACEOF |
| 3782 | cat confdefs.h >>conftest.$ac_ext |
| 3783 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3784 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3785 | #include <stdlib.h> |
| 3786 | #include <stdarg.h> |
| 3787 | #include <string.h> |
| 3788 | #include <float.h> |
| 3789 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3790 | int |
| 3791 | main () |
| 3792 | { |
| 3793 | |
| 3794 | ; |
| 3795 | return 0; |
| 3796 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3797 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3798 | rm -f conftest.$ac_objext |
| 3799 | if { (ac_try="$ac_compile" |
| 3800 | case "(($ac_try" in |
| 3801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3802 | *) ac_try_echo=$ac_try;; |
| 3803 | esac |
| 3804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3805 | (eval "$ac_compile") 2>conftest.er1 |
| 3806 | ac_status=$? |
| 3807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3808 | rm -f conftest.er1 |
| 3809 | cat conftest.err >&5 |
| 3810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3811 | (exit $ac_status); } && |
| 3812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3813 | { (case "(($ac_try" in |
| 3814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3815 | *) ac_try_echo=$ac_try;; |
| 3816 | esac |
| 3817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3818 | (eval "$ac_try") 2>&5 |
| 3819 | ac_status=$? |
| 3820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3821 | (exit $ac_status); }; } && |
| 3822 | { ac_try='test -s conftest.$ac_objext' |
| 3823 | { (case "(($ac_try" in |
| 3824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3825 | *) ac_try_echo=$ac_try;; |
| 3826 | esac |
| 3827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3828 | (eval "$ac_try") 2>&5 |
| 3829 | ac_status=$? |
| 3830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3831 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3832 | ac_cv_header_stdc=yes |
| 3833 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3834 | echo "$as_me: failed program was:" >&5 |
| 3835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3836 | |
| 3837 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3838 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3839 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3841 | |
| 3842 | if test $ac_cv_header_stdc = yes; then |
| 3843 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3844 | cat >conftest.$ac_ext <<_ACEOF |
| 3845 | /* confdefs.h. */ |
| 3846 | _ACEOF |
| 3847 | cat confdefs.h >>conftest.$ac_ext |
| 3848 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3849 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3850 | #include <string.h> |
| 3851 | |
| 3852 | _ACEOF |
| 3853 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3854 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3855 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3856 | else |
| 3857 | ac_cv_header_stdc=no |
| 3858 | fi |
| 3859 | rm -f conftest* |
| 3860 | |
| 3861 | fi |
| 3862 | |
| 3863 | if test $ac_cv_header_stdc = yes; then |
| 3864 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3865 | cat >conftest.$ac_ext <<_ACEOF |
| 3866 | /* confdefs.h. */ |
| 3867 | _ACEOF |
| 3868 | cat confdefs.h >>conftest.$ac_ext |
| 3869 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3870 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3871 | #include <stdlib.h> |
| 3872 | |
| 3873 | _ACEOF |
| 3874 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3875 | $EGREP "free" >/dev/null 2>&1; then |
| 3876 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3877 | else |
| 3878 | ac_cv_header_stdc=no |
| 3879 | fi |
| 3880 | rm -f conftest* |
| 3881 | |
| 3882 | fi |
| 3883 | |
| 3884 | if test $ac_cv_header_stdc = yes; then |
| 3885 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3886 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3887 | : |
| 3888 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3889 | cat >conftest.$ac_ext <<_ACEOF |
| 3890 | /* confdefs.h. */ |
| 3891 | _ACEOF |
| 3892 | cat confdefs.h >>conftest.$ac_ext |
| 3893 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3894 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3895 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3896 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3897 | #if ((' ' & 0x0FF) == 0x020) |
| 3898 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3899 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3900 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3901 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3902 | (('a' <= (c) && (c) <= 'i') \ |
| 3903 | || ('j' <= (c) && (c) <= 'r') \ |
| 3904 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3905 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3906 | #endif |
| 3907 | |
| 3908 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3909 | int |
| 3910 | main () |
| 3911 | { |
| 3912 | int i; |
| 3913 | for (i = 0; i < 256; i++) |
| 3914 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3915 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3916 | return 2; |
| 3917 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3918 | } |
| 3919 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3920 | rm -f conftest$ac_exeext |
| 3921 | if { (ac_try="$ac_link" |
| 3922 | case "(($ac_try" in |
| 3923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3924 | *) ac_try_echo=$ac_try;; |
| 3925 | esac |
| 3926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3927 | (eval "$ac_link") 2>&5 |
| 3928 | ac_status=$? |
| 3929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3930 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3931 | { (case "(($ac_try" in |
| 3932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3933 | *) ac_try_echo=$ac_try;; |
| 3934 | esac |
| 3935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3936 | (eval "$ac_try") 2>&5 |
| 3937 | ac_status=$? |
| 3938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3939 | (exit $ac_status); }; }; then |
| 3940 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3941 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3942 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3943 | echo "$as_me: failed program was:" >&5 |
| 3944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3945 | |
| 3946 | ( exit $ac_status ) |
| 3947 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3948 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3949 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3950 | fi |
| 3951 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3952 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3953 | fi |
| 3954 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3955 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3956 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3957 | if test $ac_cv_header_stdc = yes; then |
| 3958 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3959 | cat >>confdefs.h <<\_ACEOF |
| 3960 | #define STDC_HEADERS 1 |
| 3961 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3962 | |
| 3963 | fi |
| 3964 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3965 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3966 | |
| 3967 | |
| 3968 | |
| 3969 | |
| 3970 | |
| 3971 | |
| 3972 | |
| 3973 | |
| 3974 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3975 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3976 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3977 | do |
| 3978 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3979 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3980 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3981 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3983 | else |
| 3984 | cat >conftest.$ac_ext <<_ACEOF |
| 3985 | /* confdefs.h. */ |
| 3986 | _ACEOF |
| 3987 | cat confdefs.h >>conftest.$ac_ext |
| 3988 | cat >>conftest.$ac_ext <<_ACEOF |
| 3989 | /* end confdefs.h. */ |
| 3990 | $ac_includes_default |
| 3991 | |
| 3992 | #include <$ac_header> |
| 3993 | _ACEOF |
| 3994 | rm -f conftest.$ac_objext |
| 3995 | if { (ac_try="$ac_compile" |
| 3996 | case "(($ac_try" in |
| 3997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3998 | *) ac_try_echo=$ac_try;; |
| 3999 | esac |
| 4000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4001 | (eval "$ac_compile") 2>conftest.er1 |
| 4002 | ac_status=$? |
| 4003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4004 | rm -f conftest.er1 |
| 4005 | cat conftest.err >&5 |
| 4006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4007 | (exit $ac_status); } && |
| 4008 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4009 | { (case "(($ac_try" in |
| 4010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4011 | *) ac_try_echo=$ac_try;; |
| 4012 | esac |
| 4013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4014 | (eval "$ac_try") 2>&5 |
| 4015 | ac_status=$? |
| 4016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4017 | (exit $ac_status); }; } && |
| 4018 | { ac_try='test -s conftest.$ac_objext' |
| 4019 | { (case "(($ac_try" in |
| 4020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4021 | *) ac_try_echo=$ac_try;; |
| 4022 | esac |
| 4023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4024 | (eval "$ac_try") 2>&5 |
| 4025 | ac_status=$? |
| 4026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4027 | (exit $ac_status); }; }; then |
| 4028 | eval "$as_ac_Header=yes" |
| 4029 | else |
| 4030 | echo "$as_me: failed program was:" >&5 |
| 4031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4032 | |
| 4033 | eval "$as_ac_Header=no" |
| 4034 | fi |
| 4035 | |
| 4036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4037 | fi |
| 4038 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4039 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4040 | echo "${ECHO_T}$ac_res" >&6; } |
| 4041 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4042 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4043 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4044 | _ACEOF |
| 4045 | |
| 4046 | fi |
| 4047 | |
| 4048 | done |
| 4049 | |
| 4050 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4051 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4052 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4053 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4055 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4056 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4057 | cat >conftest.$ac_ext <<_ACEOF |
| 4058 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4059 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4060 | cat confdefs.h >>conftest.$ac_ext |
| 4061 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4062 | /* end confdefs.h. */ |
| 4063 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4064 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4065 | |
| 4066 | int |
| 4067 | main () |
| 4068 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4069 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4070 | bogus endian macros |
| 4071 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4072 | |
| 4073 | ; |
| 4074 | return 0; |
| 4075 | } |
| 4076 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4077 | rm -f conftest.$ac_objext |
| 4078 | if { (ac_try="$ac_compile" |
| 4079 | case "(($ac_try" in |
| 4080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4081 | *) ac_try_echo=$ac_try;; |
| 4082 | esac |
| 4083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4084 | (eval "$ac_compile") 2>conftest.er1 |
| 4085 | ac_status=$? |
| 4086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4087 | rm -f conftest.er1 |
| 4088 | cat conftest.err >&5 |
| 4089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4090 | (exit $ac_status); } && |
| 4091 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4092 | { (case "(($ac_try" in |
| 4093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4094 | *) ac_try_echo=$ac_try;; |
| 4095 | esac |
| 4096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4097 | (eval "$ac_try") 2>&5 |
| 4098 | ac_status=$? |
| 4099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4100 | (exit $ac_status); }; } && |
| 4101 | { ac_try='test -s conftest.$ac_objext' |
| 4102 | { (case "(($ac_try" in |
| 4103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4104 | *) ac_try_echo=$ac_try;; |
| 4105 | esac |
| 4106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4107 | (eval "$ac_try") 2>&5 |
| 4108 | ac_status=$? |
| 4109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4110 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4111 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4112 | cat >conftest.$ac_ext <<_ACEOF |
| 4113 | /* confdefs.h. */ |
| 4114 | _ACEOF |
| 4115 | cat confdefs.h >>conftest.$ac_ext |
| 4116 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4117 | /* end confdefs.h. */ |
| 4118 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4119 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4120 | |
| 4121 | int |
| 4122 | main () |
| 4123 | { |
| 4124 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4125 | not big endian |
| 4126 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4127 | |
| 4128 | ; |
| 4129 | return 0; |
| 4130 | } |
| 4131 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4132 | rm -f conftest.$ac_objext |
| 4133 | if { (ac_try="$ac_compile" |
| 4134 | case "(($ac_try" in |
| 4135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4136 | *) ac_try_echo=$ac_try;; |
| 4137 | esac |
| 4138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4139 | (eval "$ac_compile") 2>conftest.er1 |
| 4140 | ac_status=$? |
| 4141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4142 | rm -f conftest.er1 |
| 4143 | cat conftest.err >&5 |
| 4144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4145 | (exit $ac_status); } && |
| 4146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4147 | { (case "(($ac_try" in |
| 4148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4149 | *) ac_try_echo=$ac_try;; |
| 4150 | esac |
| 4151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4152 | (eval "$ac_try") 2>&5 |
| 4153 | ac_status=$? |
| 4154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4155 | (exit $ac_status); }; } && |
| 4156 | { ac_try='test -s conftest.$ac_objext' |
| 4157 | { (case "(($ac_try" in |
| 4158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4159 | *) ac_try_echo=$ac_try;; |
| 4160 | esac |
| 4161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4162 | (eval "$ac_try") 2>&5 |
| 4163 | ac_status=$? |
| 4164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4165 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4166 | ac_cv_c_bigendian=yes |
| 4167 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4168 | echo "$as_me: failed program was:" >&5 |
| 4169 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4170 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4171 | ac_cv_c_bigendian=no |
| 4172 | fi |
| 4173 | |
| 4174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4175 | else |
| 4176 | echo "$as_me: failed program was:" >&5 |
| 4177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4178 | |
| 4179 | # It does not; compile a test program. |
| 4180 | if test "$cross_compiling" = yes; then |
| 4181 | # try to guess the endianness by grepping values into an object file |
| 4182 | ac_cv_c_bigendian=unknown |
| 4183 | cat >conftest.$ac_ext <<_ACEOF |
| 4184 | /* confdefs.h. */ |
| 4185 | _ACEOF |
| 4186 | cat confdefs.h >>conftest.$ac_ext |
| 4187 | cat >>conftest.$ac_ext <<_ACEOF |
| 4188 | /* end confdefs.h. */ |
| 4189 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4190 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4191 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4192 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4193 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4194 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4195 | int |
| 4196 | main () |
| 4197 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4198 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4199 | ; |
| 4200 | return 0; |
| 4201 | } |
| 4202 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4203 | rm -f conftest.$ac_objext |
| 4204 | if { (ac_try="$ac_compile" |
| 4205 | case "(($ac_try" in |
| 4206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4207 | *) ac_try_echo=$ac_try;; |
| 4208 | esac |
| 4209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4210 | (eval "$ac_compile") 2>conftest.er1 |
| 4211 | ac_status=$? |
| 4212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4213 | rm -f conftest.er1 |
| 4214 | cat conftest.err >&5 |
| 4215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4216 | (exit $ac_status); } && |
| 4217 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4218 | { (case "(($ac_try" in |
| 4219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4220 | *) ac_try_echo=$ac_try;; |
| 4221 | esac |
| 4222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4223 | (eval "$ac_try") 2>&5 |
| 4224 | ac_status=$? |
| 4225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4226 | (exit $ac_status); }; } && |
| 4227 | { ac_try='test -s conftest.$ac_objext' |
| 4228 | { (case "(($ac_try" in |
| 4229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4230 | *) ac_try_echo=$ac_try;; |
| 4231 | esac |
| 4232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4233 | (eval "$ac_try") 2>&5 |
| 4234 | ac_status=$? |
| 4235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4236 | (exit $ac_status); }; }; then |
| 4237 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4238 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4239 | fi |
| 4240 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4241 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4242 | ac_cv_c_bigendian=no |
| 4243 | else |
| 4244 | # finding both strings is unlikely to happen, but who knows? |
| 4245 | ac_cv_c_bigendian=unknown |
| 4246 | fi |
| 4247 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4248 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4249 | echo "$as_me: failed program was:" >&5 |
| 4250 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4251 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4252 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4253 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4254 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4256 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4257 | cat >conftest.$ac_ext <<_ACEOF |
| 4258 | /* confdefs.h. */ |
| 4259 | _ACEOF |
| 4260 | cat confdefs.h >>conftest.$ac_ext |
| 4261 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4262 | /* end confdefs.h. */ |
| 4263 | $ac_includes_default |
| 4264 | int |
| 4265 | main () |
| 4266 | { |
| 4267 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4268 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4269 | union |
| 4270 | { |
| 4271 | long int l; |
| 4272 | char c[sizeof (long int)]; |
| 4273 | } u; |
| 4274 | u.l = 1; |
| 4275 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4276 | |
| 4277 | ; |
| 4278 | return 0; |
| 4279 | } |
| 4280 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4281 | rm -f conftest$ac_exeext |
| 4282 | if { (ac_try="$ac_link" |
| 4283 | case "(($ac_try" in |
| 4284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4285 | *) ac_try_echo=$ac_try;; |
| 4286 | esac |
| 4287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4288 | (eval "$ac_link") 2>&5 |
| 4289 | ac_status=$? |
| 4290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4291 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4292 | { (case "(($ac_try" in |
| 4293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4294 | *) ac_try_echo=$ac_try;; |
| 4295 | esac |
| 4296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4297 | (eval "$ac_try") 2>&5 |
| 4298 | ac_status=$? |
| 4299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4300 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4301 | ac_cv_c_bigendian=no |
| 4302 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4303 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4304 | echo "$as_me: failed program was:" >&5 |
| 4305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4306 | |
| 4307 | ( exit $ac_status ) |
| 4308 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4309 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4310 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4311 | fi |
| 4312 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4313 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4314 | fi |
| 4315 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4317 | fi |
| 4318 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4319 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4320 | case $ac_cv_c_bigendian in |
| 4321 | yes) |
| 4322 | ENDIAN=big |
| 4323 | ;; |
| 4324 | no) |
| 4325 | ENDIAN=little |
| 4326 | ;; |
| 4327 | *) |
| 4328 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4329 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4330 | echo "$as_me: error: unknown endianness |
| 4331 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4332 | { (exit 1); exit 1; }; } ;; |
| 4333 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4334 | |
| 4335 | |
| 4336 | if test "$cross_compiling" = yes; then |
| 4337 | LLVM_CROSS_COMPILING=1 |
| 4338 | |
| 4339 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4340 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4341 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4342 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4344 | else |
| 4345 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4346 | ac_cv_build_exeext=.exe |
| 4347 | else |
| 4348 | ac_build_prefix=${build_alias}- |
| 4349 | |
| 4350 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4351 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4352 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4353 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4354 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4356 | else |
| 4357 | if test -n "$BUILD_CC"; then |
| 4358 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4359 | else |
| 4360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4361 | for as_dir in $PATH |
| 4362 | do |
| 4363 | IFS=$as_save_IFS |
| 4364 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4365 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4367 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4368 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4369 | break 2 |
| 4370 | fi |
| 4371 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4372 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4373 | IFS=$as_save_IFS |
| 4374 | |
| 4375 | fi |
| 4376 | fi |
| 4377 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4378 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4379 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4380 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4381 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4382 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4383 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4384 | fi |
| 4385 | |
| 4386 | |
| 4387 | if test -z "$BUILD_CC"; then |
| 4388 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4389 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4390 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4391 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4392 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4394 | else |
| 4395 | if test -n "$BUILD_CC"; then |
| 4396 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4397 | else |
| 4398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4399 | for as_dir in $PATH |
| 4400 | do |
| 4401 | IFS=$as_save_IFS |
| 4402 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4403 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4404 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4405 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4406 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4407 | break 2 |
| 4408 | fi |
| 4409 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4410 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4411 | IFS=$as_save_IFS |
| 4412 | |
| 4413 | fi |
| 4414 | fi |
| 4415 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4416 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4417 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4418 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4419 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4420 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4421 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4422 | fi |
| 4423 | |
| 4424 | |
| 4425 | if test -z "$BUILD_CC"; then |
| 4426 | # Extract the first word of "cc", so it can be a program name with args. |
| 4427 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4428 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4430 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4432 | else |
| 4433 | if test -n "$BUILD_CC"; then |
| 4434 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4435 | else |
| 4436 | ac_prog_rejected=no |
| 4437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4438 | for as_dir in $PATH |
| 4439 | do |
| 4440 | IFS=$as_save_IFS |
| 4441 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4442 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4443 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4444 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4445 | ac_prog_rejected=yes |
| 4446 | continue |
| 4447 | fi |
| 4448 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4449 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4450 | break 2 |
| 4451 | fi |
| 4452 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4453 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4454 | IFS=$as_save_IFS |
| 4455 | |
| 4456 | if test $ac_prog_rejected = yes; then |
| 4457 | # We found a bogon in the path, so make sure we never use it. |
| 4458 | set dummy $ac_cv_prog_BUILD_CC |
| 4459 | shift |
| 4460 | if test $# != 0; then |
| 4461 | # We chose a different compiler from the bogus one. |
| 4462 | # However, it has the same basename, so the bogon will be chosen |
| 4463 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4464 | shift |
| 4465 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4466 | fi |
| 4467 | fi |
| 4468 | fi |
| 4469 | fi |
| 4470 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4471 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4472 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4473 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4474 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4475 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4476 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4477 | fi |
| 4478 | |
| 4479 | |
| 4480 | fi |
| 4481 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4482 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4483 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4484 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4485 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4486 | rm -f conftest* |
| 4487 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4488 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4489 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4490 | (eval $ac_build_link) 2>&5 |
| 4491 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4493 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4494 | for file in conftest.*; do |
| 4495 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4496 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4497 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4498 | esac |
| 4499 | done |
| 4500 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4501 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4502 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4503 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4504 | fi |
| 4505 | rm -f conftest* |
| 4506 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4507 | fi |
| 4508 | fi |
| 4509 | |
| 4510 | BUILD_EXEEXT="" |
| 4511 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4512 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4513 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4514 | ac_build_exeext=$BUILD_EXEEXT |
| 4515 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4516 | ac_build_prefix=${build_alias}- |
| 4517 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4518 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4519 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4521 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4523 | else |
| 4524 | if test -n "$BUILD_CXX"; then |
| 4525 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4526 | else |
| 4527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4528 | for as_dir in $PATH |
| 4529 | do |
| 4530 | IFS=$as_save_IFS |
| 4531 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4532 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4533 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4534 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4535 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4536 | break 2 |
| 4537 | fi |
| 4538 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4539 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4540 | IFS=$as_save_IFS |
| 4541 | |
| 4542 | fi |
| 4543 | fi |
| 4544 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4545 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4546 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4547 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4548 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4549 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4550 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4551 | fi |
| 4552 | |
| 4553 | |
| 4554 | if test -z "$BUILD_CXX"; then |
| 4555 | # Extract the first word of "g++", so it can be a program name with args. |
| 4556 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4557 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4559 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4561 | else |
| 4562 | if test -n "$BUILD_CXX"; then |
| 4563 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4564 | else |
| 4565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4566 | for as_dir in $PATH |
| 4567 | do |
| 4568 | IFS=$as_save_IFS |
| 4569 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4570 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4571 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4572 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4574 | break 2 |
| 4575 | fi |
| 4576 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4577 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4578 | IFS=$as_save_IFS |
| 4579 | |
| 4580 | fi |
| 4581 | fi |
| 4582 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4583 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4584 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4585 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4586 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4587 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4588 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4589 | fi |
| 4590 | |
| 4591 | |
| 4592 | if test -z "$BUILD_CXX"; then |
| 4593 | # Extract the first word of "c++", so it can be a program name with args. |
| 4594 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4595 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4597 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4599 | else |
| 4600 | if test -n "$BUILD_CXX"; then |
| 4601 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4602 | else |
| 4603 | ac_prog_rejected=no |
| 4604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4605 | for as_dir in $PATH |
| 4606 | do |
| 4607 | IFS=$as_save_IFS |
| 4608 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4609 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4610 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4611 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4612 | ac_prog_rejected=yes |
| 4613 | continue |
| 4614 | fi |
| 4615 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4616 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4617 | break 2 |
| 4618 | fi |
| 4619 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4620 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4621 | IFS=$as_save_IFS |
| 4622 | |
| 4623 | if test $ac_prog_rejected = yes; then |
| 4624 | # We found a bogon in the path, so make sure we never use it. |
| 4625 | set dummy $ac_cv_prog_BUILD_CXX |
| 4626 | shift |
| 4627 | if test $# != 0; then |
| 4628 | # We chose a different compiler from the bogus one. |
| 4629 | # However, it has the same basename, so the bogon will be chosen |
| 4630 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4631 | shift |
| 4632 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4633 | fi |
| 4634 | fi |
| 4635 | fi |
| 4636 | fi |
| 4637 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4638 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4639 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4640 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4641 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4642 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4643 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4644 | fi |
| 4645 | |
| 4646 | |
| 4647 | fi |
| 4648 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4649 | else |
| 4650 | LLVM_CROSS_COMPILING=0 |
| 4651 | |
| 4652 | fi |
| 4653 | |
Nick Lewycky | 5b28f86 | 2009-04-10 05:18:27 +0000 | [diff] [blame] | 4654 | if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4655 | cvsbuild="yes" |
| 4656 | optimize="no" |
| 4657 | CVSBUILD=CVSBUILD=1 |
| 4658 | |
| 4659 | else |
| 4660 | cvsbuild="no" |
| 4661 | optimize="yes" |
| 4662 | fi |
| 4663 | |
| 4664 | |
| 4665 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4666 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4667 | enableval=$enable_optimized; |
| 4668 | else |
| 4669 | enableval=$optimize |
| 4670 | fi |
| 4671 | |
| 4672 | if test ${enableval} = "no" ; then |
| 4673 | ENABLE_OPTIMIZED= |
| 4674 | |
| 4675 | else |
| 4676 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4677 | |
| 4678 | fi |
| 4679 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4680 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4681 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4682 | enableval=$enable_profiling; |
| 4683 | else |
| 4684 | enableval="no" |
| 4685 | fi |
| 4686 | |
| 4687 | if test ${enableval} = "no" ; then |
| 4688 | ENABLE_PROFILING= |
| 4689 | |
| 4690 | else |
| 4691 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4692 | |
| 4693 | fi |
| 4694 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4695 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4696 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4697 | enableval=$enable_assertions; |
| 4698 | else |
| 4699 | enableval="yes" |
| 4700 | fi |
| 4701 | |
| 4702 | if test ${enableval} = "yes" ; then |
| 4703 | DISABLE_ASSERTIONS= |
| 4704 | |
| 4705 | else |
| 4706 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4707 | |
| 4708 | fi |
| 4709 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4710 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4711 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4712 | enableval=$enable_expensive_checks; |
| 4713 | else |
| 4714 | enableval="no" |
| 4715 | fi |
| 4716 | |
| 4717 | if test ${enableval} = "yes" ; then |
| 4718 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4719 | |
| 4720 | EXPENSIVE_CHECKS=yes |
| 4721 | |
| 4722 | else |
| 4723 | ENABLE_EXPENSIVE_CHECKS= |
| 4724 | |
| 4725 | EXPENSIVE_CHECKS=no |
| 4726 | |
| 4727 | fi |
| 4728 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4729 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4730 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4731 | enableval=$enable_debug_runtime; |
| 4732 | else |
| 4733 | enableval=no |
| 4734 | fi |
| 4735 | |
| 4736 | if test ${enableval} = "no" ; then |
| 4737 | DEBUG_RUNTIME= |
| 4738 | |
| 4739 | else |
| 4740 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4741 | |
| 4742 | fi |
| 4743 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4744 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4745 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4746 | enableval=$enable_debug_symbols; |
| 4747 | else |
| 4748 | enableval=no |
| 4749 | fi |
| 4750 | |
| 4751 | if test ${enableval} = "no" ; then |
| 4752 | DEBUG_SYMBOLS= |
| 4753 | |
| 4754 | else |
| 4755 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 4756 | |
| 4757 | fi |
| 4758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4759 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4760 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4761 | enableval=$enable_jit; |
| 4762 | else |
| 4763 | enableval=default |
| 4764 | fi |
| 4765 | |
| 4766 | if test ${enableval} = "no" |
| 4767 | then |
| 4768 | JIT= |
| 4769 | |
| 4770 | else |
| 4771 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4772 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4773 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4774 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4775 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4776 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4777 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4778 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4779 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4780 | Alpha) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4781 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 4782 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4783 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4784 | Mips) TARGET_HAS_JIT=0 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4785 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4786 | PIC16) TARGET_HAS_JIT=0 |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4787 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4788 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4789 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4790 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4791 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4792 | SystemZ) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4793 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4794 | Blackfin) TARGET_HAS_JIT=0 |
| 4795 | ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4796 | MBlaze) TARGET_HAS_JIT=0 |
| 4797 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4798 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4799 | ;; |
| 4800 | esac |
| 4801 | fi |
| 4802 | |
| 4803 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4804 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4805 | enableval=$enable_doxygen; |
| 4806 | else |
| 4807 | enableval=default |
| 4808 | fi |
| 4809 | |
| 4810 | case "$enableval" in |
| 4811 | yes) ENABLE_DOXYGEN=1 |
| 4812 | ;; |
| 4813 | no) ENABLE_DOXYGEN=0 |
| 4814 | ;; |
| 4815 | default) ENABLE_DOXYGEN=0 |
| 4816 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4817 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4818 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4819 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4820 | esac |
| 4821 | |
| 4822 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4823 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4824 | enableval=$enable_threads; |
| 4825 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4826 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4827 | fi |
| 4828 | |
| 4829 | case "$enableval" in |
| 4830 | yes) ENABLE_THREADS=1 |
| 4831 | ;; |
| 4832 | no) ENABLE_THREADS=0 |
| 4833 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4834 | default) ENABLE_THREADS=1 |
| 4835 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4836 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4837 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4838 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4839 | esac |
| 4840 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 4841 | cat >>confdefs.h <<_ACEOF |
| 4842 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4843 | _ACEOF |
| 4844 | |
| 4845 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4846 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4847 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4848 | enableval=$enable_pic; |
| 4849 | else |
| 4850 | enableval=default |
| 4851 | fi |
| 4852 | |
| 4853 | case "$enableval" in |
| 4854 | yes) ENABLE_PIC=1 |
| 4855 | ;; |
| 4856 | no) ENABLE_PIC=0 |
| 4857 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4858 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4859 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4860 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4861 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4862 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4863 | esac |
| 4864 | |
| 4865 | cat >>confdefs.h <<_ACEOF |
| 4866 | #define ENABLE_PIC $ENABLE_PIC |
| 4867 | _ACEOF |
| 4868 | |
| 4869 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4870 | TARGETS_TO_BUILD="" |
| 4871 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4872 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4873 | enableval=$enable_targets; |
| 4874 | else |
| 4875 | enableval=all |
| 4876 | fi |
| 4877 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4878 | if test "$enableval" = host-only ; then |
| 4879 | enableval=host |
| 4880 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4881 | case "$enableval" in |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4882 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4883 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4884 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4885 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4886 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4887 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4888 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4889 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4890 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4891 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 4892 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4893 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4894 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4895 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 4896 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 4897 | blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 4898 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 4899 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
| 4900 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4901 | mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4902 | host) case "$llvm_cv_target_arch" in |
| 4903 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4904 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4905 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4906 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4907 | Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4908 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4909 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4910 | MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4911 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4912 | PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4913 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4914 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 6ca835d | 2010-01-05 20:45:43 +0000 | [diff] [blame] | 4915 | s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4916 | Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4917 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4918 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4919 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4920 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4921 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4922 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4923 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4924 | esac |
| 4925 | done |
| 4926 | ;; |
| 4927 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4928 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4929 | |
| 4930 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4931 | # Determine whether we are building LLVM support for the native architecture. |
| 4932 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 4933 | for a_target in $TARGETS_TO_BUILD; do |
| 4934 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4935 | LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4936 | |
| 4937 | cat >>confdefs.h <<_ACEOF |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4938 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4939 | _ACEOF |
| 4940 | |
| 4941 | fi |
| 4942 | done |
| 4943 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4944 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual |
| 4945 | # target feature def files. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4946 | LLVM_ENUM_TARGETS="" |
| 4947 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 4948 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4949 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4950 | for target_to_build in $TARGETS_TO_BUILD; do |
| 4951 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
| 4952 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then |
| 4953 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 4954 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 4955 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 4956 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 4957 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4958 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 4959 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 4960 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4961 | done |
| 4962 | |
| 4963 | |
| 4964 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 4965 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4966 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4967 | # Check whether --enable-cbe-printf-a was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4968 | if test "${enable_cbe_printf_a+set}" = set; then |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4969 | enableval=$enable_cbe_printf_a; |
| 4970 | else |
| 4971 | enableval=default |
| 4972 | fi |
| 4973 | |
| 4974 | case "$enableval" in |
| 4975 | yes) ENABLE_CBE_PRINTF_A=1 |
| 4976 | ;; |
| 4977 | no) ENABLE_CBE_PRINTF_A=0 |
| 4978 | ;; |
| 4979 | default) ENABLE_CBE_PRINTF_A=1 |
| 4980 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4981 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 4982 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 4983 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4984 | esac |
| 4985 | |
| 4986 | cat >>confdefs.h <<_ACEOF |
| 4987 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 4988 | _ACEOF |
| 4989 | |
| 4990 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4991 | |
| 4992 | # Check whether --with-llvmgccdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4993 | if test "${with_llvmgccdir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4994 | withval=$with_llvmgccdir; |
| 4995 | else |
| 4996 | withval=default |
| 4997 | fi |
| 4998 | |
| 4999 | case "$withval" in |
| 5000 | default) WITH_LLVMGCCDIR=default ;; |
| 5001 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5002 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 5003 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 5004 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5005 | esac |
| 5006 | |
| 5007 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5008 | # Check whether --with-llvmgcc was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5009 | if test "${with_llvmgcc+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5010 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 5011 | WITH_LLVMGCCDIR="" |
| 5012 | fi |
| 5013 | |
| 5014 | |
| 5015 | |
| 5016 | # Check whether --with-llvmgxx was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5017 | if test "${with_llvmgxx+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5018 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5019 | WITH_LLVMGCCDIR="" |
| 5020 | fi |
| 5021 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5022 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5023 | if test -n "$LLVMGCC"; then |
| 5024 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5025 | fi |
| 5026 | |
| 5027 | if test -n "$LLVMGXX"; then |
| 5028 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5029 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5030 | |
| 5031 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5032 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5033 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5034 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5035 | fi |
| 5036 | |
| 5037 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5038 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5039 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5040 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5041 | fi |
| 5042 | |
| 5043 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 5044 | # Check whether --with-clang was given. |
| 5045 | if test "${with_clang+set}" = set; then |
| 5046 | withval=$with_clang; |
| 5047 | else |
| 5048 | with_clang=default |
| 5049 | fi |
| 5050 | |
| 5051 | |
| 5052 | |
| 5053 | # Check whether --with-built-clang was given. |
| 5054 | if test "${with_built_clang+set}" = set; then |
| 5055 | withval=$with_built_clang; |
| 5056 | else |
| 5057 | with_built_clang=check |
| 5058 | fi |
| 5059 | |
| 5060 | |
| 5061 | { echo "$as_me:$LINENO: checking clang compiler" >&5 |
| 5062 | echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; } |
| 5063 | WITH_CLANGPATH="" |
| 5064 | WITH_BUILT_CLANG=0 |
| 5065 | if test "$with_clang" != "default"; then |
| 5066 | WITH_CLANGPATH="$with_clang" |
| 5067 | if ! test -x "$WITH_CLANGPATH"; then |
| 5068 | { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5 |
| 5069 | echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;} |
| 5070 | { (exit 1); exit 1; }; } |
| 5071 | fi |
| 5072 | elif test "$with_built_clang" = "yes"; then |
| 5073 | WITH_BUILT_CLANG=1 |
| 5074 | elif test "$with_built_clang" = "no"; then |
| 5075 | WITH_BUILT_CLANG=0 |
| 5076 | else |
| 5077 | if test "$with_built_clang" != "check"; then |
| 5078 | { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5 |
| 5079 | echo "$as_me: error: invalid value for --with-built-clang." >&2;} |
| 5080 | { (exit 1); exit 1; }; } |
| 5081 | fi |
| 5082 | |
| 5083 | if test -f ${srcdir}/tools/clang/README.txt; then |
| 5084 | WITH_BUILT_CLANG=1 |
| 5085 | fi |
| 5086 | fi |
| 5087 | |
| 5088 | if ! test -z "$WITH_CLANGPATH"; then |
| 5089 | { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5 |
| 5090 | echo "${ECHO_T}$WITH_CLANGPATH" >&6; } |
| 5091 | WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++` |
| 5092 | elif test "$WITH_BUILT_CLANG" = "1"; then |
| 5093 | { echo "$as_me:$LINENO: result: built" >&5 |
| 5094 | echo "${ECHO_T}built" >&6; } |
| 5095 | else |
| 5096 | { echo "$as_me:$LINENO: result: none" >&5 |
| 5097 | echo "${ECHO_T}none" >&6; } |
| 5098 | fi |
| 5099 | CLANGPATH=$WITH_CLANGPATH |
| 5100 | |
| 5101 | CLANGXXPATH=$WITH_CLANGXXPATH |
| 5102 | |
| 5103 | ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG |
| 5104 | |
| 5105 | |
| 5106 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5107 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5108 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5109 | withval=$with_optimize_option; |
| 5110 | else |
| 5111 | withval=default |
| 5112 | fi |
| 5113 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5114 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5115 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5116 | case "$withval" in |
| 5117 | default) |
| 5118 | case "$llvm_cv_os_type" in |
| 5119 | MingW) optimize_option=-O3 ;; |
| 5120 | *) optimize_option=-O2 ;; |
| 5121 | esac ;; |
| 5122 | *) optimize_option="$withval" ;; |
| 5123 | esac |
| 5124 | OPTIMIZE_OPTION=$optimize_option |
| 5125 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5126 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5127 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5128 | |
| 5129 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5130 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5131 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5132 | withval=$with_extra_options; |
| 5133 | else |
| 5134 | withval=default |
| 5135 | fi |
| 5136 | |
| 5137 | case "$withval" in |
| 5138 | default) EXTRA_OPTIONS= ;; |
| 5139 | *) EXTRA_OPTIONS=$withval ;; |
| 5140 | esac |
| 5141 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5142 | |
| 5143 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5144 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5145 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5146 | enableval=$enable_bindings; |
| 5147 | else |
| 5148 | enableval=default |
| 5149 | fi |
| 5150 | |
| 5151 | BINDINGS_TO_BUILD="" |
| 5152 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5153 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5154 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5155 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5156 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5157 | case "$a_binding" in |
| 5158 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5159 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5160 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5161 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5162 | esac |
| 5163 | done |
| 5164 | ;; |
| 5165 | esac |
| 5166 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5167 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5168 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5169 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5170 | withval=$with_ocaml_libdir; |
| 5171 | else |
| 5172 | withval=auto |
| 5173 | fi |
| 5174 | |
| 5175 | case "$withval" in |
| 5176 | auto) with_ocaml_libdir="$withval" ;; |
| 5177 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5178 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5179 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5180 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5181 | esac |
| 5182 | |
| 5183 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5184 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5185 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5186 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5187 | else |
| 5188 | withval="" |
| 5189 | fi |
| 5190 | |
| 5191 | |
| 5192 | cat >>confdefs.h <<_ACEOF |
| 5193 | #define C_INCLUDE_DIRS "$withval" |
| 5194 | _ACEOF |
| 5195 | |
| 5196 | |
| 5197 | |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5198 | # Check whether --with-cxx-include-root was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5199 | if test "${with_cxx_include_root+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5200 | withval=$with_cxx_include_root; |
| 5201 | else |
| 5202 | withval="" |
| 5203 | fi |
| 5204 | |
| 5205 | |
| 5206 | cat >>confdefs.h <<_ACEOF |
| 5207 | #define CXX_INCLUDE_ROOT "$withval" |
| 5208 | _ACEOF |
| 5209 | |
| 5210 | |
| 5211 | |
| 5212 | # Check whether --with-cxx-include-arch was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5213 | if test "${with_cxx_include_arch+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5214 | withval=$with_cxx_include_arch; |
| 5215 | else |
| 5216 | withval="" |
| 5217 | fi |
| 5218 | |
| 5219 | |
| 5220 | cat >>confdefs.h <<_ACEOF |
| 5221 | #define CXX_INCLUDE_ARCH "$withval" |
| 5222 | _ACEOF |
| 5223 | |
| 5224 | |
| 5225 | |
| 5226 | # Check whether --with-cxx-include-32bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5227 | if test "${with_cxx_include_32bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5228 | withval=$with_cxx_include_32bit_dir; |
| 5229 | else |
| 5230 | withval="" |
| 5231 | fi |
| 5232 | |
| 5233 | |
| 5234 | cat >>confdefs.h <<_ACEOF |
| 5235 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5236 | _ACEOF |
| 5237 | |
| 5238 | |
| 5239 | |
| 5240 | # Check whether --with-cxx-include-64bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5241 | if test "${with_cxx_include_64bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5242 | withval=$with_cxx_include_64bit_dir; |
| 5243 | else |
| 5244 | withval="" |
| 5245 | fi |
| 5246 | |
| 5247 | |
| 5248 | cat >>confdefs.h <<_ACEOF |
| 5249 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5250 | _ACEOF |
| 5251 | |
| 5252 | |
| 5253 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5254 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5255 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5256 | withval=$with_binutils_include; |
| 5257 | else |
| 5258 | withval=default |
| 5259 | fi |
| 5260 | |
| 5261 | case "$withval" in |
| 5262 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5263 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5264 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5265 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5266 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5267 | esac |
| 5268 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5269 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5270 | |
| 5271 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5272 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5273 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5274 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5275 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5276 | fi |
| 5277 | fi |
| 5278 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5279 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5280 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5281 | enableval=$enable_libffi; case "$enableval" in |
| 5282 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5283 | no) llvm_cv_enable_libffi="no" ;; |
| 5284 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5285 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5286 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5287 | esac |
| 5288 | else |
| 5289 | llvm_cv_enable_libffi=no |
| 5290 | fi |
| 5291 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5292 | |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5293 | if test "$llvm_cv_os_type" = "Win32" ; then |
| 5294 | llvmc_dynamic="yes" |
| 5295 | else |
| 5296 | llvmc_dynamic="no" |
| 5297 | fi |
| 5298 | |
| 5299 | # Check whether --enable-llvmc-dynamic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5300 | if test "${enable_llvmc_dynamic+set}" = set; then |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5301 | enableval=$enable_llvmc_dynamic; |
| 5302 | else |
| 5303 | enableval=$llvmc_dynamic |
| 5304 | fi |
| 5305 | |
| 5306 | if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then |
| 5307 | ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1 |
| 5308 | |
| 5309 | else |
| 5310 | ENABLE_LLVMC_DYNAMIC= |
| 5311 | |
| 5312 | fi |
| 5313 | |
| 5314 | # Check whether --enable-llvmc-dynamic-plugins was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5315 | if test "${enable_llvmc_dynamic_plugins+set}" = set; then |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5316 | enableval=$enable_llvmc_dynamic_plugins; |
| 5317 | else |
| 5318 | enableval=yes |
| 5319 | fi |
| 5320 | |
| 5321 | if test ${enableval} = "yes" ; then |
| 5322 | ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1 |
| 5323 | |
| 5324 | else |
| 5325 | ENABLE_LLVMC_DYNAMIC_PLUGINS= |
| 5326 | |
| 5327 | fi |
| 5328 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5329 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5330 | ac_ext=c |
| 5331 | ac_cpp='$CPP $CPPFLAGS' |
| 5332 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5333 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5334 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5335 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5336 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5337 | # On Suns, sometimes $CPP names a directory. |
| 5338 | if test -n "$CPP" && test -d "$CPP"; then |
| 5339 | CPP= |
| 5340 | fi |
| 5341 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5342 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5344 | else |
| 5345 | # Double quotes because CPP needs to be expanded |
| 5346 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5347 | do |
| 5348 | ac_preproc_ok=false |
| 5349 | for ac_c_preproc_warn_flag in '' yes |
| 5350 | do |
| 5351 | # Use a header file that comes with gcc, so configuring glibc |
| 5352 | # with a fresh cross-compiler works. |
| 5353 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5354 | # <limits.h> exists even on freestanding compilers. |
| 5355 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5356 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5357 | cat >conftest.$ac_ext <<_ACEOF |
| 5358 | /* confdefs.h. */ |
| 5359 | _ACEOF |
| 5360 | cat confdefs.h >>conftest.$ac_ext |
| 5361 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5362 | /* end confdefs.h. */ |
| 5363 | #ifdef __STDC__ |
| 5364 | # include <limits.h> |
| 5365 | #else |
| 5366 | # include <assert.h> |
| 5367 | #endif |
| 5368 | Syntax error |
| 5369 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5370 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5371 | case "(($ac_try" in |
| 5372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5373 | *) ac_try_echo=$ac_try;; |
| 5374 | esac |
| 5375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5376 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5377 | ac_status=$? |
| 5378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5379 | rm -f conftest.er1 |
| 5380 | cat conftest.err >&5 |
| 5381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5382 | (exit $ac_status); } >/dev/null; then |
| 5383 | if test -s conftest.err; then |
| 5384 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5385 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5386 | else |
| 5387 | ac_cpp_err= |
| 5388 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5389 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5390 | ac_cpp_err=yes |
| 5391 | fi |
| 5392 | if test -z "$ac_cpp_err"; then |
| 5393 | : |
| 5394 | else |
| 5395 | echo "$as_me: failed program was:" >&5 |
| 5396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5397 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5398 | # Broken: fails on valid input. |
| 5399 | continue |
| 5400 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5401 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5402 | rm -f conftest.err conftest.$ac_ext |
| 5403 | |
| 5404 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5405 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5406 | cat >conftest.$ac_ext <<_ACEOF |
| 5407 | /* confdefs.h. */ |
| 5408 | _ACEOF |
| 5409 | cat confdefs.h >>conftest.$ac_ext |
| 5410 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5411 | /* end confdefs.h. */ |
| 5412 | #include <ac_nonexistent.h> |
| 5413 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5414 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5415 | case "(($ac_try" in |
| 5416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5417 | *) ac_try_echo=$ac_try;; |
| 5418 | esac |
| 5419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5420 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5421 | ac_status=$? |
| 5422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5423 | rm -f conftest.er1 |
| 5424 | cat conftest.err >&5 |
| 5425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5426 | (exit $ac_status); } >/dev/null; then |
| 5427 | if test -s conftest.err; then |
| 5428 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5429 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5430 | else |
| 5431 | ac_cpp_err= |
| 5432 | fi |
| 5433 | else |
| 5434 | ac_cpp_err=yes |
| 5435 | fi |
| 5436 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5437 | # Broken: success on invalid input. |
| 5438 | continue |
| 5439 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5440 | echo "$as_me: failed program was:" >&5 |
| 5441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5442 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5443 | # Passes both tests. |
| 5444 | ac_preproc_ok=: |
| 5445 | break |
| 5446 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5447 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5448 | rm -f conftest.err conftest.$ac_ext |
| 5449 | |
| 5450 | done |
| 5451 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5452 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5453 | if $ac_preproc_ok; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5454 | break |
| 5455 | fi |
| 5456 | |
| 5457 | done |
| 5458 | ac_cv_prog_CPP=$CPP |
| 5459 | |
| 5460 | fi |
| 5461 | CPP=$ac_cv_prog_CPP |
| 5462 | else |
| 5463 | ac_cv_prog_CPP=$CPP |
| 5464 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5465 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5466 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5467 | ac_preproc_ok=false |
| 5468 | for ac_c_preproc_warn_flag in '' yes |
| 5469 | do |
| 5470 | # Use a header file that comes with gcc, so configuring glibc |
| 5471 | # with a fresh cross-compiler works. |
| 5472 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5473 | # <limits.h> exists even on freestanding compilers. |
| 5474 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5475 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5476 | cat >conftest.$ac_ext <<_ACEOF |
| 5477 | /* confdefs.h. */ |
| 5478 | _ACEOF |
| 5479 | cat confdefs.h >>conftest.$ac_ext |
| 5480 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5481 | /* end confdefs.h. */ |
| 5482 | #ifdef __STDC__ |
| 5483 | # include <limits.h> |
| 5484 | #else |
| 5485 | # include <assert.h> |
| 5486 | #endif |
| 5487 | Syntax error |
| 5488 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5489 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5490 | case "(($ac_try" in |
| 5491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5492 | *) ac_try_echo=$ac_try;; |
| 5493 | esac |
| 5494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5495 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5496 | ac_status=$? |
| 5497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5498 | rm -f conftest.er1 |
| 5499 | cat conftest.err >&5 |
| 5500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5501 | (exit $ac_status); } >/dev/null; then |
| 5502 | if test -s conftest.err; then |
| 5503 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5504 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5505 | else |
| 5506 | ac_cpp_err= |
| 5507 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5508 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5509 | ac_cpp_err=yes |
| 5510 | fi |
| 5511 | if test -z "$ac_cpp_err"; then |
| 5512 | : |
| 5513 | else |
| 5514 | echo "$as_me: failed program was:" >&5 |
| 5515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5516 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5517 | # Broken: fails on valid input. |
| 5518 | continue |
| 5519 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5520 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5521 | rm -f conftest.err conftest.$ac_ext |
| 5522 | |
| 5523 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5524 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5525 | cat >conftest.$ac_ext <<_ACEOF |
| 5526 | /* confdefs.h. */ |
| 5527 | _ACEOF |
| 5528 | cat confdefs.h >>conftest.$ac_ext |
| 5529 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5530 | /* end confdefs.h. */ |
| 5531 | #include <ac_nonexistent.h> |
| 5532 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5533 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5534 | case "(($ac_try" in |
| 5535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5536 | *) ac_try_echo=$ac_try;; |
| 5537 | esac |
| 5538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5539 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5540 | ac_status=$? |
| 5541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5542 | rm -f conftest.er1 |
| 5543 | cat conftest.err >&5 |
| 5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5545 | (exit $ac_status); } >/dev/null; then |
| 5546 | if test -s conftest.err; then |
| 5547 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5548 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5549 | else |
| 5550 | ac_cpp_err= |
| 5551 | fi |
| 5552 | else |
| 5553 | ac_cpp_err=yes |
| 5554 | fi |
| 5555 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5556 | # Broken: success on invalid input. |
| 5557 | continue |
| 5558 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5559 | echo "$as_me: failed program was:" >&5 |
| 5560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5561 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5562 | # Passes both tests. |
| 5563 | ac_preproc_ok=: |
| 5564 | break |
| 5565 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5566 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5567 | rm -f conftest.err conftest.$ac_ext |
| 5568 | |
| 5569 | done |
| 5570 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5571 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5572 | if $ac_preproc_ok; then |
| 5573 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5574 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5575 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5576 | See \`config.log' for more details." >&5 |
| 5577 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5578 | See \`config.log' for more details." >&2;} |
| 5579 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5580 | fi |
| 5581 | |
| 5582 | ac_ext=c |
| 5583 | ac_cpp='$CPP $CPPFLAGS' |
| 5584 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5585 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5586 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5587 | |
| 5588 | ac_ext=c |
| 5589 | ac_cpp='$CPP $CPPFLAGS' |
| 5590 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5591 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5592 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5593 | if test -n "$ac_tool_prefix"; then |
| 5594 | for ac_prog in gcc |
| 5595 | do |
| 5596 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5597 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5598 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5600 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5602 | else |
| 5603 | if test -n "$CC"; then |
| 5604 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5605 | else |
| 5606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5607 | for as_dir in $PATH |
| 5608 | do |
| 5609 | IFS=$as_save_IFS |
| 5610 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5611 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5612 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5613 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5614 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5615 | break 2 |
| 5616 | fi |
| 5617 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5618 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5619 | IFS=$as_save_IFS |
| 5620 | |
| 5621 | fi |
| 5622 | fi |
| 5623 | CC=$ac_cv_prog_CC |
| 5624 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5625 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5626 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5627 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5628 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5629 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5630 | fi |
| 5631 | |
| 5632 | |
| 5633 | test -n "$CC" && break |
| 5634 | done |
| 5635 | fi |
| 5636 | if test -z "$CC"; then |
| 5637 | ac_ct_CC=$CC |
| 5638 | for ac_prog in gcc |
| 5639 | do |
| 5640 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5641 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5642 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5644 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5646 | else |
| 5647 | if test -n "$ac_ct_CC"; then |
| 5648 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5649 | else |
| 5650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5651 | for as_dir in $PATH |
| 5652 | do |
| 5653 | IFS=$as_save_IFS |
| 5654 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5655 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5656 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5657 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5659 | break 2 |
| 5660 | fi |
| 5661 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5662 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5663 | IFS=$as_save_IFS |
| 5664 | |
| 5665 | fi |
| 5666 | fi |
| 5667 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5668 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5669 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5670 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5671 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5672 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5673 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5674 | fi |
| 5675 | |
| 5676 | |
| 5677 | test -n "$ac_ct_CC" && break |
| 5678 | done |
| 5679 | |
| 5680 | if test "x$ac_ct_CC" = x; then |
| 5681 | CC="" |
| 5682 | else |
| 5683 | case $cross_compiling:$ac_tool_warned in |
| 5684 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5685 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5686 | whose name does not start with the host triplet. If you think this |
| 5687 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5688 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5689 | whose name does not start with the host triplet. If you think this |
| 5690 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5691 | ac_tool_warned=yes ;; |
| 5692 | esac |
| 5693 | CC=$ac_ct_CC |
| 5694 | fi |
| 5695 | fi |
| 5696 | |
| 5697 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5698 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5699 | See \`config.log' for more details." >&5 |
| 5700 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5701 | See \`config.log' for more details." >&2;} |
| 5702 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5703 | |
| 5704 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5705 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5706 | ac_compiler=`set X $ac_compile; echo $2` |
| 5707 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5708 | case "(($ac_try" in |
| 5709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5710 | *) ac_try_echo=$ac_try;; |
| 5711 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5713 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5714 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5716 | (exit $ac_status); } |
| 5717 | { (ac_try="$ac_compiler -v >&5" |
| 5718 | case "(($ac_try" in |
| 5719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5720 | *) ac_try_echo=$ac_try;; |
| 5721 | esac |
| 5722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5723 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5724 | ac_status=$? |
| 5725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5726 | (exit $ac_status); } |
| 5727 | { (ac_try="$ac_compiler -V >&5" |
| 5728 | case "(($ac_try" in |
| 5729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5730 | *) ac_try_echo=$ac_try;; |
| 5731 | esac |
| 5732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5733 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5734 | ac_status=$? |
| 5735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5736 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5737 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5738 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5739 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5740 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5742 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5743 | cat >conftest.$ac_ext <<_ACEOF |
| 5744 | /* confdefs.h. */ |
| 5745 | _ACEOF |
| 5746 | cat confdefs.h >>conftest.$ac_ext |
| 5747 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5748 | /* end confdefs.h. */ |
| 5749 | |
| 5750 | int |
| 5751 | main () |
| 5752 | { |
| 5753 | #ifndef __GNUC__ |
| 5754 | choke me |
| 5755 | #endif |
| 5756 | |
| 5757 | ; |
| 5758 | return 0; |
| 5759 | } |
| 5760 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5761 | rm -f conftest.$ac_objext |
| 5762 | if { (ac_try="$ac_compile" |
| 5763 | case "(($ac_try" in |
| 5764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5765 | *) ac_try_echo=$ac_try;; |
| 5766 | esac |
| 5767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5768 | (eval "$ac_compile") 2>conftest.er1 |
| 5769 | ac_status=$? |
| 5770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5771 | rm -f conftest.er1 |
| 5772 | cat conftest.err >&5 |
| 5773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5774 | (exit $ac_status); } && |
| 5775 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5776 | { (case "(($ac_try" in |
| 5777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5778 | *) ac_try_echo=$ac_try;; |
| 5779 | esac |
| 5780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5781 | (eval "$ac_try") 2>&5 |
| 5782 | ac_status=$? |
| 5783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5784 | (exit $ac_status); }; } && |
| 5785 | { ac_try='test -s conftest.$ac_objext' |
| 5786 | { (case "(($ac_try" in |
| 5787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5788 | *) ac_try_echo=$ac_try;; |
| 5789 | esac |
| 5790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5791 | (eval "$ac_try") 2>&5 |
| 5792 | ac_status=$? |
| 5793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5794 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5795 | ac_compiler_gnu=yes |
| 5796 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5797 | echo "$as_me: failed program was:" >&5 |
| 5798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5799 | |
| 5800 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5801 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5802 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5804 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5805 | |
| 5806 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5807 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5808 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5809 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5810 | ac_test_CFLAGS=${CFLAGS+set} |
| 5811 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5812 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5813 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5814 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5816 | else |
| 5817 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5818 | ac_c_werror_flag=yes |
| 5819 | ac_cv_prog_cc_g=no |
| 5820 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5821 | cat >conftest.$ac_ext <<_ACEOF |
| 5822 | /* confdefs.h. */ |
| 5823 | _ACEOF |
| 5824 | cat confdefs.h >>conftest.$ac_ext |
| 5825 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5826 | /* end confdefs.h. */ |
| 5827 | |
| 5828 | int |
| 5829 | main () |
| 5830 | { |
| 5831 | |
| 5832 | ; |
| 5833 | return 0; |
| 5834 | } |
| 5835 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5836 | rm -f conftest.$ac_objext |
| 5837 | if { (ac_try="$ac_compile" |
| 5838 | case "(($ac_try" in |
| 5839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5840 | *) ac_try_echo=$ac_try;; |
| 5841 | esac |
| 5842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5843 | (eval "$ac_compile") 2>conftest.er1 |
| 5844 | ac_status=$? |
| 5845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5846 | rm -f conftest.er1 |
| 5847 | cat conftest.err >&5 |
| 5848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5849 | (exit $ac_status); } && |
| 5850 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5851 | { (case "(($ac_try" in |
| 5852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5853 | *) ac_try_echo=$ac_try;; |
| 5854 | esac |
| 5855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5856 | (eval "$ac_try") 2>&5 |
| 5857 | ac_status=$? |
| 5858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5859 | (exit $ac_status); }; } && |
| 5860 | { ac_try='test -s conftest.$ac_objext' |
| 5861 | { (case "(($ac_try" in |
| 5862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5863 | *) ac_try_echo=$ac_try;; |
| 5864 | esac |
| 5865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5866 | (eval "$ac_try") 2>&5 |
| 5867 | ac_status=$? |
| 5868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5869 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5870 | ac_cv_prog_cc_g=yes |
| 5871 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5872 | echo "$as_me: failed program was:" >&5 |
| 5873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5874 | |
| 5875 | CFLAGS="" |
| 5876 | cat >conftest.$ac_ext <<_ACEOF |
| 5877 | /* confdefs.h. */ |
| 5878 | _ACEOF |
| 5879 | cat confdefs.h >>conftest.$ac_ext |
| 5880 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5881 | /* end confdefs.h. */ |
| 5882 | |
| 5883 | int |
| 5884 | main () |
| 5885 | { |
| 5886 | |
| 5887 | ; |
| 5888 | return 0; |
| 5889 | } |
| 5890 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5891 | rm -f conftest.$ac_objext |
| 5892 | if { (ac_try="$ac_compile" |
| 5893 | case "(($ac_try" in |
| 5894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5895 | *) ac_try_echo=$ac_try;; |
| 5896 | esac |
| 5897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5898 | (eval "$ac_compile") 2>conftest.er1 |
| 5899 | ac_status=$? |
| 5900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5901 | rm -f conftest.er1 |
| 5902 | cat conftest.err >&5 |
| 5903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5904 | (exit $ac_status); } && |
| 5905 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5906 | { (case "(($ac_try" in |
| 5907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5908 | *) ac_try_echo=$ac_try;; |
| 5909 | esac |
| 5910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5911 | (eval "$ac_try") 2>&5 |
| 5912 | ac_status=$? |
| 5913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5914 | (exit $ac_status); }; } && |
| 5915 | { ac_try='test -s conftest.$ac_objext' |
| 5916 | { (case "(($ac_try" in |
| 5917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5918 | *) ac_try_echo=$ac_try;; |
| 5919 | esac |
| 5920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5921 | (eval "$ac_try") 2>&5 |
| 5922 | ac_status=$? |
| 5923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5924 | (exit $ac_status); }; }; then |
| 5925 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5926 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5927 | echo "$as_me: failed program was:" >&5 |
| 5928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5929 | |
| 5930 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5931 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5932 | cat >conftest.$ac_ext <<_ACEOF |
| 5933 | /* confdefs.h. */ |
| 5934 | _ACEOF |
| 5935 | cat confdefs.h >>conftest.$ac_ext |
| 5936 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5937 | /* end confdefs.h. */ |
| 5938 | |
| 5939 | int |
| 5940 | main () |
| 5941 | { |
| 5942 | |
| 5943 | ; |
| 5944 | return 0; |
| 5945 | } |
| 5946 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5947 | rm -f conftest.$ac_objext |
| 5948 | if { (ac_try="$ac_compile" |
| 5949 | case "(($ac_try" in |
| 5950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5951 | *) ac_try_echo=$ac_try;; |
| 5952 | esac |
| 5953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5954 | (eval "$ac_compile") 2>conftest.er1 |
| 5955 | ac_status=$? |
| 5956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5957 | rm -f conftest.er1 |
| 5958 | cat conftest.err >&5 |
| 5959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5960 | (exit $ac_status); } && |
| 5961 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5962 | { (case "(($ac_try" in |
| 5963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5964 | *) ac_try_echo=$ac_try;; |
| 5965 | esac |
| 5966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5967 | (eval "$ac_try") 2>&5 |
| 5968 | ac_status=$? |
| 5969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5970 | (exit $ac_status); }; } && |
| 5971 | { ac_try='test -s conftest.$ac_objext' |
| 5972 | { (case "(($ac_try" in |
| 5973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5974 | *) ac_try_echo=$ac_try;; |
| 5975 | esac |
| 5976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5977 | (eval "$ac_try") 2>&5 |
| 5978 | ac_status=$? |
| 5979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5980 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5981 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5982 | else |
| 5983 | echo "$as_me: failed program was:" >&5 |
| 5984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5985 | |
| 5986 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5987 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5988 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5990 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5991 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5993 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5994 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5996 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5997 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5998 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5999 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6000 | if test "$ac_test_CFLAGS" = set; then |
| 6001 | CFLAGS=$ac_save_CFLAGS |
| 6002 | elif test $ac_cv_prog_cc_g = yes; then |
| 6003 | if test "$GCC" = yes; then |
| 6004 | CFLAGS="-g -O2" |
| 6005 | else |
| 6006 | CFLAGS="-g" |
| 6007 | fi |
| 6008 | else |
| 6009 | if test "$GCC" = yes; then |
| 6010 | CFLAGS="-O2" |
| 6011 | else |
| 6012 | CFLAGS= |
| 6013 | fi |
| 6014 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6015 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 6016 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 6017 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 6018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6019 | else |
| 6020 | ac_cv_prog_cc_c89=no |
| 6021 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6022 | cat >conftest.$ac_ext <<_ACEOF |
| 6023 | /* confdefs.h. */ |
| 6024 | _ACEOF |
| 6025 | cat confdefs.h >>conftest.$ac_ext |
| 6026 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6027 | /* end confdefs.h. */ |
| 6028 | #include <stdarg.h> |
| 6029 | #include <stdio.h> |
| 6030 | #include <sys/types.h> |
| 6031 | #include <sys/stat.h> |
| 6032 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6033 | struct buf { int x; }; |
| 6034 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6035 | static char *e (p, i) |
| 6036 | char **p; |
| 6037 | int i; |
| 6038 | { |
| 6039 | return p[i]; |
| 6040 | } |
| 6041 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6042 | { |
| 6043 | char *s; |
| 6044 | va_list v; |
| 6045 | va_start (v,p); |
| 6046 | s = g (p, va_arg (v,int)); |
| 6047 | va_end (v); |
| 6048 | return s; |
| 6049 | } |
| 6050 | |
| 6051 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6052 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6053 | These don't provoke an error unfortunately, instead are silently treated |
| 6054 | as 'x'. The following induces an error, until -std is added to get |
| 6055 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6056 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6057 | that's true only with -std. */ |
| 6058 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6059 | |
| 6060 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6061 | inside strings and character constants. */ |
| 6062 | #define FOO(x) 'x' |
| 6063 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6064 | |
| 6065 | int test (int i, double x); |
| 6066 | struct s1 {int (*f) (int a);}; |
| 6067 | struct s2 {int (*f) (double a);}; |
| 6068 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6069 | int argc; |
| 6070 | char **argv; |
| 6071 | int |
| 6072 | main () |
| 6073 | { |
| 6074 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6075 | ; |
| 6076 | return 0; |
| 6077 | } |
| 6078 | _ACEOF |
| 6079 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6080 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6081 | do |
| 6082 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6083 | rm -f conftest.$ac_objext |
| 6084 | if { (ac_try="$ac_compile" |
| 6085 | case "(($ac_try" in |
| 6086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6087 | *) ac_try_echo=$ac_try;; |
| 6088 | esac |
| 6089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6090 | (eval "$ac_compile") 2>conftest.er1 |
| 6091 | ac_status=$? |
| 6092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6093 | rm -f conftest.er1 |
| 6094 | cat conftest.err >&5 |
| 6095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6096 | (exit $ac_status); } && |
| 6097 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6098 | { (case "(($ac_try" in |
| 6099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6100 | *) ac_try_echo=$ac_try;; |
| 6101 | esac |
| 6102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6103 | (eval "$ac_try") 2>&5 |
| 6104 | ac_status=$? |
| 6105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6106 | (exit $ac_status); }; } && |
| 6107 | { ac_try='test -s conftest.$ac_objext' |
| 6108 | { (case "(($ac_try" in |
| 6109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6110 | *) ac_try_echo=$ac_try;; |
| 6111 | esac |
| 6112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6113 | (eval "$ac_try") 2>&5 |
| 6114 | ac_status=$? |
| 6115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6116 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6117 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6118 | else |
| 6119 | echo "$as_me: failed program was:" >&5 |
| 6120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6121 | |
| 6122 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6123 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6124 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6125 | rm -f core conftest.err conftest.$ac_objext |
| 6126 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6127 | done |
| 6128 | rm -f conftest.$ac_ext |
| 6129 | CC=$ac_save_CC |
| 6130 | |
| 6131 | fi |
| 6132 | # AC_CACHE_VAL |
| 6133 | case "x$ac_cv_prog_cc_c89" in |
| 6134 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6135 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6136 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6137 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6138 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6139 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6140 | *) |
| 6141 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6142 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6143 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6144 | esac |
| 6145 | |
| 6146 | |
| 6147 | ac_ext=c |
| 6148 | ac_cpp='$CPP $CPPFLAGS' |
| 6149 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6150 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6151 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6152 | |
| 6153 | ac_ext=cpp |
| 6154 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6155 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6156 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6157 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6158 | if test -z "$CXX"; then |
| 6159 | if test -n "$CCC"; then |
| 6160 | CXX=$CCC |
| 6161 | else |
| 6162 | if test -n "$ac_tool_prefix"; then |
| 6163 | for ac_prog in g++ |
| 6164 | do |
| 6165 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6166 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6167 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6169 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 6170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6171 | else |
| 6172 | if test -n "$CXX"; then |
| 6173 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6174 | else |
| 6175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6176 | for as_dir in $PATH |
| 6177 | do |
| 6178 | IFS=$as_save_IFS |
| 6179 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6180 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6181 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6182 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6183 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6184 | break 2 |
| 6185 | fi |
| 6186 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6187 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6188 | IFS=$as_save_IFS |
| 6189 | |
| 6190 | fi |
| 6191 | fi |
| 6192 | CXX=$ac_cv_prog_CXX |
| 6193 | if test -n "$CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6194 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6195 | echo "${ECHO_T}$CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6196 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6197 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6198 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6199 | fi |
| 6200 | |
| 6201 | |
| 6202 | test -n "$CXX" && break |
| 6203 | done |
| 6204 | fi |
| 6205 | if test -z "$CXX"; then |
| 6206 | ac_ct_CXX=$CXX |
| 6207 | for ac_prog in g++ |
| 6208 | do |
| 6209 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6210 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6211 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6212 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6213 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6215 | else |
| 6216 | if test -n "$ac_ct_CXX"; then |
| 6217 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6218 | else |
| 6219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6220 | for as_dir in $PATH |
| 6221 | do |
| 6222 | IFS=$as_save_IFS |
| 6223 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6224 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6225 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6226 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6227 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6228 | break 2 |
| 6229 | fi |
| 6230 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6231 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6232 | IFS=$as_save_IFS |
| 6233 | |
| 6234 | fi |
| 6235 | fi |
| 6236 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6237 | if test -n "$ac_ct_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6238 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6239 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6240 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6241 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6242 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6243 | fi |
| 6244 | |
| 6245 | |
| 6246 | test -n "$ac_ct_CXX" && break |
| 6247 | done |
| 6248 | |
| 6249 | if test "x$ac_ct_CXX" = x; then |
| 6250 | CXX="g++" |
| 6251 | else |
| 6252 | case $cross_compiling:$ac_tool_warned in |
| 6253 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6254 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6255 | whose name does not start with the host triplet. If you think this |
| 6256 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6257 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6258 | whose name does not start with the host triplet. If you think this |
| 6259 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6260 | ac_tool_warned=yes ;; |
| 6261 | esac |
| 6262 | CXX=$ac_ct_CXX |
| 6263 | fi |
| 6264 | fi |
| 6265 | |
| 6266 | fi |
| 6267 | fi |
| 6268 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6269 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6270 | ac_compiler=`set X $ac_compile; echo $2` |
| 6271 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6272 | case "(($ac_try" in |
| 6273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6274 | *) ac_try_echo=$ac_try;; |
| 6275 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6277 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6278 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6280 | (exit $ac_status); } |
| 6281 | { (ac_try="$ac_compiler -v >&5" |
| 6282 | case "(($ac_try" in |
| 6283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6284 | *) ac_try_echo=$ac_try;; |
| 6285 | esac |
| 6286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6287 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6288 | ac_status=$? |
| 6289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6290 | (exit $ac_status); } |
| 6291 | { (ac_try="$ac_compiler -V >&5" |
| 6292 | case "(($ac_try" in |
| 6293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6294 | *) ac_try_echo=$ac_try;; |
| 6295 | esac |
| 6296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6297 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6298 | ac_status=$? |
| 6299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6300 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6301 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6302 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6303 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6304 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6306 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6307 | cat >conftest.$ac_ext <<_ACEOF |
| 6308 | /* confdefs.h. */ |
| 6309 | _ACEOF |
| 6310 | cat confdefs.h >>conftest.$ac_ext |
| 6311 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6312 | /* end confdefs.h. */ |
| 6313 | |
| 6314 | int |
| 6315 | main () |
| 6316 | { |
| 6317 | #ifndef __GNUC__ |
| 6318 | choke me |
| 6319 | #endif |
| 6320 | |
| 6321 | ; |
| 6322 | return 0; |
| 6323 | } |
| 6324 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6325 | rm -f conftest.$ac_objext |
| 6326 | if { (ac_try="$ac_compile" |
| 6327 | case "(($ac_try" in |
| 6328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6329 | *) ac_try_echo=$ac_try;; |
| 6330 | esac |
| 6331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6332 | (eval "$ac_compile") 2>conftest.er1 |
| 6333 | ac_status=$? |
| 6334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6335 | rm -f conftest.er1 |
| 6336 | cat conftest.err >&5 |
| 6337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6338 | (exit $ac_status); } && |
| 6339 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6340 | { (case "(($ac_try" in |
| 6341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6342 | *) ac_try_echo=$ac_try;; |
| 6343 | esac |
| 6344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6345 | (eval "$ac_try") 2>&5 |
| 6346 | ac_status=$? |
| 6347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6348 | (exit $ac_status); }; } && |
| 6349 | { ac_try='test -s conftest.$ac_objext' |
| 6350 | { (case "(($ac_try" in |
| 6351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6352 | *) ac_try_echo=$ac_try;; |
| 6353 | esac |
| 6354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6355 | (eval "$ac_try") 2>&5 |
| 6356 | ac_status=$? |
| 6357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6358 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6359 | ac_compiler_gnu=yes |
| 6360 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6361 | echo "$as_me: failed program was:" >&5 |
| 6362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6363 | |
| 6364 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6365 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6366 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6368 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6369 | |
| 6370 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6371 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6372 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6373 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6374 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6375 | ac_save_CXXFLAGS=$CXXFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6376 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6377 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6378 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6380 | else |
| 6381 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6382 | ac_cxx_werror_flag=yes |
| 6383 | ac_cv_prog_cxx_g=no |
| 6384 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6385 | cat >conftest.$ac_ext <<_ACEOF |
| 6386 | /* confdefs.h. */ |
| 6387 | _ACEOF |
| 6388 | cat confdefs.h >>conftest.$ac_ext |
| 6389 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6390 | /* end confdefs.h. */ |
| 6391 | |
| 6392 | int |
| 6393 | main () |
| 6394 | { |
| 6395 | |
| 6396 | ; |
| 6397 | return 0; |
| 6398 | } |
| 6399 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6400 | rm -f conftest.$ac_objext |
| 6401 | if { (ac_try="$ac_compile" |
| 6402 | case "(($ac_try" in |
| 6403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6404 | *) ac_try_echo=$ac_try;; |
| 6405 | esac |
| 6406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6407 | (eval "$ac_compile") 2>conftest.er1 |
| 6408 | ac_status=$? |
| 6409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6410 | rm -f conftest.er1 |
| 6411 | cat conftest.err >&5 |
| 6412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6413 | (exit $ac_status); } && |
| 6414 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6415 | { (case "(($ac_try" in |
| 6416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6417 | *) ac_try_echo=$ac_try;; |
| 6418 | esac |
| 6419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6420 | (eval "$ac_try") 2>&5 |
| 6421 | ac_status=$? |
| 6422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6423 | (exit $ac_status); }; } && |
| 6424 | { ac_try='test -s conftest.$ac_objext' |
| 6425 | { (case "(($ac_try" in |
| 6426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6427 | *) ac_try_echo=$ac_try;; |
| 6428 | esac |
| 6429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6430 | (eval "$ac_try") 2>&5 |
| 6431 | ac_status=$? |
| 6432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6433 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6434 | ac_cv_prog_cxx_g=yes |
| 6435 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6436 | echo "$as_me: failed program was:" >&5 |
| 6437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6438 | |
| 6439 | CXXFLAGS="" |
| 6440 | cat >conftest.$ac_ext <<_ACEOF |
| 6441 | /* confdefs.h. */ |
| 6442 | _ACEOF |
| 6443 | cat confdefs.h >>conftest.$ac_ext |
| 6444 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6445 | /* end confdefs.h. */ |
| 6446 | |
| 6447 | int |
| 6448 | main () |
| 6449 | { |
| 6450 | |
| 6451 | ; |
| 6452 | return 0; |
| 6453 | } |
| 6454 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6455 | rm -f conftest.$ac_objext |
| 6456 | if { (ac_try="$ac_compile" |
| 6457 | case "(($ac_try" in |
| 6458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6459 | *) ac_try_echo=$ac_try;; |
| 6460 | esac |
| 6461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6462 | (eval "$ac_compile") 2>conftest.er1 |
| 6463 | ac_status=$? |
| 6464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6465 | rm -f conftest.er1 |
| 6466 | cat conftest.err >&5 |
| 6467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6468 | (exit $ac_status); } && |
| 6469 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6470 | { (case "(($ac_try" in |
| 6471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6472 | *) ac_try_echo=$ac_try;; |
| 6473 | esac |
| 6474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6475 | (eval "$ac_try") 2>&5 |
| 6476 | ac_status=$? |
| 6477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6478 | (exit $ac_status); }; } && |
| 6479 | { ac_try='test -s conftest.$ac_objext' |
| 6480 | { (case "(($ac_try" in |
| 6481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6482 | *) ac_try_echo=$ac_try;; |
| 6483 | esac |
| 6484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6485 | (eval "$ac_try") 2>&5 |
| 6486 | ac_status=$? |
| 6487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6488 | (exit $ac_status); }; }; then |
| 6489 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6490 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6491 | echo "$as_me: failed program was:" >&5 |
| 6492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6493 | |
| 6494 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6495 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6496 | cat >conftest.$ac_ext <<_ACEOF |
| 6497 | /* confdefs.h. */ |
| 6498 | _ACEOF |
| 6499 | cat confdefs.h >>conftest.$ac_ext |
| 6500 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6501 | /* end confdefs.h. */ |
| 6502 | |
| 6503 | int |
| 6504 | main () |
| 6505 | { |
| 6506 | |
| 6507 | ; |
| 6508 | return 0; |
| 6509 | } |
| 6510 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6511 | rm -f conftest.$ac_objext |
| 6512 | if { (ac_try="$ac_compile" |
| 6513 | case "(($ac_try" in |
| 6514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6515 | *) ac_try_echo=$ac_try;; |
| 6516 | esac |
| 6517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6518 | (eval "$ac_compile") 2>conftest.er1 |
| 6519 | ac_status=$? |
| 6520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6521 | rm -f conftest.er1 |
| 6522 | cat conftest.err >&5 |
| 6523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6524 | (exit $ac_status); } && |
| 6525 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6526 | { (case "(($ac_try" in |
| 6527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6528 | *) ac_try_echo=$ac_try;; |
| 6529 | esac |
| 6530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6531 | (eval "$ac_try") 2>&5 |
| 6532 | ac_status=$? |
| 6533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6534 | (exit $ac_status); }; } && |
| 6535 | { ac_try='test -s conftest.$ac_objext' |
| 6536 | { (case "(($ac_try" in |
| 6537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6538 | *) ac_try_echo=$ac_try;; |
| 6539 | esac |
| 6540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6541 | (eval "$ac_try") 2>&5 |
| 6542 | ac_status=$? |
| 6543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6544 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6545 | ac_cv_prog_cxx_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6546 | else |
| 6547 | echo "$as_me: failed program was:" >&5 |
| 6548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6549 | |
| 6550 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6551 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6552 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6554 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6555 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6557 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6558 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6560 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6561 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6562 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6563 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6564 | if test "$ac_test_CXXFLAGS" = set; then |
| 6565 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6566 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6567 | if test "$GXX" = yes; then |
| 6568 | CXXFLAGS="-g -O2" |
| 6569 | else |
| 6570 | CXXFLAGS="-g" |
| 6571 | fi |
| 6572 | else |
| 6573 | if test "$GXX" = yes; then |
| 6574 | CXXFLAGS="-O2" |
| 6575 | else |
| 6576 | CXXFLAGS= |
| 6577 | fi |
| 6578 | fi |
| 6579 | ac_ext=c |
| 6580 | ac_cpp='$CPP $CPPFLAGS' |
| 6581 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6582 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6583 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6584 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6585 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6586 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6587 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6588 | if test "${lt_cv_path_NM+set}" = set; then |
| 6589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6590 | else |
| 6591 | if test -n "$NM"; then |
| 6592 | # Let the user override the test. |
| 6593 | lt_cv_path_NM="$NM" |
| 6594 | else |
| 6595 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6596 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6597 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6598 | fi |
| 6599 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6600 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6601 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6602 | IFS="$lt_save_ifs" |
| 6603 | test -z "$ac_dir" && ac_dir=. |
| 6604 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6605 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6606 | # Check to see if the nm accepts a BSD-compat flag. |
| 6607 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6608 | # nm: unknown option "B" ignored |
| 6609 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6610 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6611 | */dev/null* | *'Invalid file or object type'*) |
| 6612 | lt_cv_path_NM="$tmp_nm -B" |
| 6613 | break |
| 6614 | ;; |
| 6615 | *) |
| 6616 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6617 | */dev/null*) |
| 6618 | lt_cv_path_NM="$tmp_nm -p" |
| 6619 | break |
| 6620 | ;; |
| 6621 | *) |
| 6622 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6623 | continue # so that we can try to find one that supports BSD flags |
| 6624 | ;; |
| 6625 | esac |
| 6626 | ;; |
| 6627 | esac |
| 6628 | fi |
| 6629 | done |
| 6630 | IFS="$lt_save_ifs" |
| 6631 | done |
| 6632 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6633 | fi |
| 6634 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6635 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6636 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6637 | NM="$lt_cv_path_NM" |
| 6638 | |
| 6639 | |
| 6640 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6641 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6642 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6643 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6645 | else |
| 6646 | llvm_cv_gnu_make_command='' |
| 6647 | for a in "$MAKE" make gmake gnumake ; do |
| 6648 | if test -z "$a" ; then continue ; fi ; |
| 6649 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6650 | then |
| 6651 | llvm_cv_gnu_make_command=$a ; |
| 6652 | break; |
| 6653 | fi |
| 6654 | done |
| 6655 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6656 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6657 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6658 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6659 | ifGNUmake='' ; |
| 6660 | else |
| 6661 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6662 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6663 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6664 | fi |
| 6665 | |
| 6666 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6667 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6668 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6669 | LN_S=$as_ln_s |
| 6670 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6671 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6672 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6673 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6674 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6675 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6676 | fi |
| 6677 | |
| 6678 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6679 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6680 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6681 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6682 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6684 | else |
| 6685 | case $CMP in |
| 6686 | [\\/]* | ?:[\\/]*) |
| 6687 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6688 | ;; |
| 6689 | *) |
| 6690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6691 | for as_dir in $PATH |
| 6692 | do |
| 6693 | IFS=$as_save_IFS |
| 6694 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6695 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6696 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6697 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6698 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6699 | break 2 |
| 6700 | fi |
| 6701 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6702 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6703 | IFS=$as_save_IFS |
| 6704 | |
| 6705 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6706 | ;; |
| 6707 | esac |
| 6708 | fi |
| 6709 | CMP=$ac_cv_path_CMP |
| 6710 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6711 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6712 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6713 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6714 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6715 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6716 | fi |
| 6717 | |
| 6718 | |
| 6719 | # Extract the first word of "cp", so it can be a program name with args. |
| 6720 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6721 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6722 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6723 | if test "${ac_cv_path_CP+set}" = set; then |
| 6724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6725 | else |
| 6726 | case $CP in |
| 6727 | [\\/]* | ?:[\\/]*) |
| 6728 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6729 | ;; |
| 6730 | *) |
| 6731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6732 | for as_dir in $PATH |
| 6733 | do |
| 6734 | IFS=$as_save_IFS |
| 6735 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6736 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6737 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6738 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6739 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6740 | break 2 |
| 6741 | fi |
| 6742 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6743 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6744 | IFS=$as_save_IFS |
| 6745 | |
| 6746 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6747 | ;; |
| 6748 | esac |
| 6749 | fi |
| 6750 | CP=$ac_cv_path_CP |
| 6751 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6752 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6753 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6754 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6755 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6756 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6757 | fi |
| 6758 | |
| 6759 | |
| 6760 | # Extract the first word of "date", so it can be a program name with args. |
| 6761 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6762 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6763 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6764 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6766 | else |
| 6767 | case $DATE in |
| 6768 | [\\/]* | ?:[\\/]*) |
| 6769 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6770 | ;; |
| 6771 | *) |
| 6772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6773 | for as_dir in $PATH |
| 6774 | do |
| 6775 | IFS=$as_save_IFS |
| 6776 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6777 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6778 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6779 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6780 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6781 | break 2 |
| 6782 | fi |
| 6783 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6784 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6785 | IFS=$as_save_IFS |
| 6786 | |
| 6787 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6788 | ;; |
| 6789 | esac |
| 6790 | fi |
| 6791 | DATE=$ac_cv_path_DATE |
| 6792 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6793 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6794 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6795 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6796 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6797 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6798 | fi |
| 6799 | |
| 6800 | |
| 6801 | # Extract the first word of "find", so it can be a program name with args. |
| 6802 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6803 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6804 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6805 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6807 | else |
| 6808 | case $FIND in |
| 6809 | [\\/]* | ?:[\\/]*) |
| 6810 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6811 | ;; |
| 6812 | *) |
| 6813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6814 | for as_dir in $PATH |
| 6815 | do |
| 6816 | IFS=$as_save_IFS |
| 6817 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6818 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6819 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6820 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6821 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6822 | break 2 |
| 6823 | fi |
| 6824 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6825 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6826 | IFS=$as_save_IFS |
| 6827 | |
| 6828 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6829 | ;; |
| 6830 | esac |
| 6831 | fi |
| 6832 | FIND=$ac_cv_path_FIND |
| 6833 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6834 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6835 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6836 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6837 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6838 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6839 | fi |
| 6840 | |
| 6841 | |
| 6842 | # Extract the first word of "grep", so it can be a program name with args. |
| 6843 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6844 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6846 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6848 | else |
| 6849 | case $GREP in |
| 6850 | [\\/]* | ?:[\\/]*) |
| 6851 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6852 | ;; |
| 6853 | *) |
| 6854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6855 | for as_dir in $PATH |
| 6856 | do |
| 6857 | IFS=$as_save_IFS |
| 6858 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6859 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6860 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6861 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6862 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6863 | break 2 |
| 6864 | fi |
| 6865 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6866 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6867 | IFS=$as_save_IFS |
| 6868 | |
| 6869 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6870 | ;; |
| 6871 | esac |
| 6872 | fi |
| 6873 | GREP=$ac_cv_path_GREP |
| 6874 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6875 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6876 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6877 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6878 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6879 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6880 | fi |
| 6881 | |
| 6882 | |
| 6883 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6884 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6885 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6886 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6887 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6889 | else |
| 6890 | case $MKDIR in |
| 6891 | [\\/]* | ?:[\\/]*) |
| 6892 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6893 | ;; |
| 6894 | *) |
| 6895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6896 | for as_dir in $PATH |
| 6897 | do |
| 6898 | IFS=$as_save_IFS |
| 6899 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6900 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6901 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6902 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6903 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6904 | break 2 |
| 6905 | fi |
| 6906 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6907 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6908 | IFS=$as_save_IFS |
| 6909 | |
| 6910 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6911 | ;; |
| 6912 | esac |
| 6913 | fi |
| 6914 | MKDIR=$ac_cv_path_MKDIR |
| 6915 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6916 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6917 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6918 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6919 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6920 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6921 | fi |
| 6922 | |
| 6923 | |
| 6924 | # Extract the first word of "mv", so it can be a program name with args. |
| 6925 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6926 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6927 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6928 | if test "${ac_cv_path_MV+set}" = set; then |
| 6929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6930 | else |
| 6931 | case $MV in |
| 6932 | [\\/]* | ?:[\\/]*) |
| 6933 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6934 | ;; |
| 6935 | *) |
| 6936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6937 | for as_dir in $PATH |
| 6938 | do |
| 6939 | IFS=$as_save_IFS |
| 6940 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6941 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6942 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6943 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6944 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6945 | break 2 |
| 6946 | fi |
| 6947 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6948 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6949 | IFS=$as_save_IFS |
| 6950 | |
| 6951 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6952 | ;; |
| 6953 | esac |
| 6954 | fi |
| 6955 | MV=$ac_cv_path_MV |
| 6956 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6957 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6958 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6959 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6960 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6961 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6962 | fi |
| 6963 | |
| 6964 | |
| 6965 | if test -n "$ac_tool_prefix"; then |
| 6966 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6967 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6968 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6969 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6970 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6972 | else |
| 6973 | if test -n "$RANLIB"; then |
| 6974 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6975 | else |
| 6976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6977 | for as_dir in $PATH |
| 6978 | do |
| 6979 | IFS=$as_save_IFS |
| 6980 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6981 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6982 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6983 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6984 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6985 | break 2 |
| 6986 | fi |
| 6987 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6988 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6989 | IFS=$as_save_IFS |
| 6990 | |
| 6991 | fi |
| 6992 | fi |
| 6993 | RANLIB=$ac_cv_prog_RANLIB |
| 6994 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6995 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6996 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6997 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6998 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6999 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7000 | fi |
| 7001 | |
| 7002 | |
| 7003 | fi |
| 7004 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7005 | ac_ct_RANLIB=$RANLIB |
| 7006 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7007 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7008 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7009 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7010 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 7011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7012 | else |
| 7013 | if test -n "$ac_ct_RANLIB"; then |
| 7014 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7015 | else |
| 7016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7017 | for as_dir in $PATH |
| 7018 | do |
| 7019 | IFS=$as_save_IFS |
| 7020 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7021 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7022 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7023 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7024 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7025 | break 2 |
| 7026 | fi |
| 7027 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7028 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7029 | IFS=$as_save_IFS |
| 7030 | |
| 7031 | fi |
| 7032 | fi |
| 7033 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7034 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7035 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7036 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7037 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7038 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7039 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7040 | fi |
| 7041 | |
| 7042 | if test "x$ac_ct_RANLIB" = x; then |
| 7043 | RANLIB=":" |
| 7044 | else |
| 7045 | case $cross_compiling:$ac_tool_warned in |
| 7046 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7047 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7048 | whose name does not start with the host triplet. If you think this |
| 7049 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7050 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7051 | whose name does not start with the host triplet. If you think this |
| 7052 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7053 | ac_tool_warned=yes ;; |
| 7054 | esac |
| 7055 | RANLIB=$ac_ct_RANLIB |
| 7056 | fi |
| 7057 | else |
| 7058 | RANLIB="$ac_cv_prog_RANLIB" |
| 7059 | fi |
| 7060 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7061 | if test -n "$ac_tool_prefix"; then |
| 7062 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 7063 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7064 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7066 | if test "${ac_cv_prog_AR+set}" = set; then |
| 7067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7068 | else |
| 7069 | if test -n "$AR"; then |
| 7070 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7071 | else |
| 7072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7073 | for as_dir in $PATH |
| 7074 | do |
| 7075 | IFS=$as_save_IFS |
| 7076 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7077 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7078 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7079 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7080 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7081 | break 2 |
| 7082 | fi |
| 7083 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7084 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7085 | IFS=$as_save_IFS |
| 7086 | |
| 7087 | fi |
| 7088 | fi |
| 7089 | AR=$ac_cv_prog_AR |
| 7090 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7091 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 7092 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7093 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7094 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7095 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7096 | fi |
| 7097 | |
| 7098 | |
| 7099 | fi |
| 7100 | if test -z "$ac_cv_prog_AR"; then |
| 7101 | ac_ct_AR=$AR |
| 7102 | # Extract the first word of "ar", so it can be a program name with args. |
| 7103 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7104 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7105 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7106 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 7107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7108 | else |
| 7109 | if test -n "$ac_ct_AR"; then |
| 7110 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7111 | else |
| 7112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7113 | for as_dir in $PATH |
| 7114 | do |
| 7115 | IFS=$as_save_IFS |
| 7116 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7117 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7119 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7120 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7121 | break 2 |
| 7122 | fi |
| 7123 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7124 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7125 | IFS=$as_save_IFS |
| 7126 | |
| 7127 | fi |
| 7128 | fi |
| 7129 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7130 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7131 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 7132 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7133 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7134 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7135 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7136 | fi |
| 7137 | |
| 7138 | if test "x$ac_ct_AR" = x; then |
| 7139 | AR="false" |
| 7140 | else |
| 7141 | case $cross_compiling:$ac_tool_warned in |
| 7142 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7143 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7144 | whose name does not start with the host triplet. If you think this |
| 7145 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7146 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7147 | whose name does not start with the host triplet. If you think this |
| 7148 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7149 | ac_tool_warned=yes ;; |
| 7150 | esac |
| 7151 | AR=$ac_ct_AR |
| 7152 | fi |
| 7153 | else |
| 7154 | AR="$ac_cv_prog_AR" |
| 7155 | fi |
| 7156 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7157 | # Extract the first word of "rm", so it can be a program name with args. |
| 7158 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7159 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7160 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7161 | if test "${ac_cv_path_RM+set}" = set; then |
| 7162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7163 | else |
| 7164 | case $RM in |
| 7165 | [\\/]* | ?:[\\/]*) |
| 7166 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7167 | ;; |
| 7168 | *) |
| 7169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7170 | for as_dir in $PATH |
| 7171 | do |
| 7172 | IFS=$as_save_IFS |
| 7173 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7174 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7175 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7176 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7177 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7178 | break 2 |
| 7179 | fi |
| 7180 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7181 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7182 | IFS=$as_save_IFS |
| 7183 | |
| 7184 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7185 | ;; |
| 7186 | esac |
| 7187 | fi |
| 7188 | RM=$ac_cv_path_RM |
| 7189 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7190 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7191 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7192 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7193 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7194 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7195 | fi |
| 7196 | |
| 7197 | |
| 7198 | # Extract the first word of "sed", so it can be a program name with args. |
| 7199 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7200 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7201 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7202 | if test "${ac_cv_path_SED+set}" = set; then |
| 7203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7204 | else |
| 7205 | case $SED in |
| 7206 | [\\/]* | ?:[\\/]*) |
| 7207 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7208 | ;; |
| 7209 | *) |
| 7210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7211 | for as_dir in $PATH |
| 7212 | do |
| 7213 | IFS=$as_save_IFS |
| 7214 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7215 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7216 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7217 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7218 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7219 | break 2 |
| 7220 | fi |
| 7221 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7222 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7223 | IFS=$as_save_IFS |
| 7224 | |
| 7225 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7226 | ;; |
| 7227 | esac |
| 7228 | fi |
| 7229 | SED=$ac_cv_path_SED |
| 7230 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7231 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7232 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7233 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7234 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7235 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7236 | fi |
| 7237 | |
| 7238 | |
| 7239 | # Extract the first word of "tar", so it can be a program name with args. |
| 7240 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7241 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7242 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7243 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7245 | else |
| 7246 | case $TAR in |
| 7247 | [\\/]* | ?:[\\/]*) |
| 7248 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7249 | ;; |
| 7250 | *) |
| 7251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7252 | for as_dir in $PATH |
| 7253 | do |
| 7254 | IFS=$as_save_IFS |
| 7255 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7256 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7257 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7258 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7259 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7260 | break 2 |
| 7261 | fi |
| 7262 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7263 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7264 | IFS=$as_save_IFS |
| 7265 | |
| 7266 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7267 | ;; |
| 7268 | esac |
| 7269 | fi |
| 7270 | TAR=$ac_cv_path_TAR |
| 7271 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7272 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7273 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7274 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7275 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7276 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7277 | fi |
| 7278 | |
| 7279 | |
| 7280 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7281 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7282 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7283 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7284 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7286 | else |
| 7287 | case $BINPWD in |
| 7288 | [\\/]* | ?:[\\/]*) |
| 7289 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7290 | ;; |
| 7291 | *) |
| 7292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7293 | for as_dir in $PATH |
| 7294 | do |
| 7295 | IFS=$as_save_IFS |
| 7296 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7297 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7298 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7299 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7300 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7301 | break 2 |
| 7302 | fi |
| 7303 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7304 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7305 | IFS=$as_save_IFS |
| 7306 | |
| 7307 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7308 | ;; |
| 7309 | esac |
| 7310 | fi |
| 7311 | BINPWD=$ac_cv_path_BINPWD |
| 7312 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7313 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7314 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7315 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7316 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7317 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7318 | fi |
| 7319 | |
| 7320 | |
| 7321 | |
| 7322 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7323 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7324 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7325 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7326 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7328 | else |
| 7329 | case $GRAPHVIZ in |
| 7330 | [\\/]* | ?:[\\/]*) |
| 7331 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7332 | ;; |
| 7333 | *) |
| 7334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7335 | for as_dir in $PATH |
| 7336 | do |
| 7337 | IFS=$as_save_IFS |
| 7338 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7339 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7340 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7341 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7342 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7343 | break 2 |
| 7344 | fi |
| 7345 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7346 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7347 | IFS=$as_save_IFS |
| 7348 | |
| 7349 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7350 | ;; |
| 7351 | esac |
| 7352 | fi |
| 7353 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7354 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7355 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7356 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7357 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7358 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7359 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7360 | fi |
| 7361 | |
| 7362 | |
| 7363 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7364 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7365 | cat >>confdefs.h <<\_ACEOF |
| 7366 | #define HAVE_GRAPHVIZ 1 |
| 7367 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7368 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7369 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7370 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7371 | fi |
| 7372 | |
| 7373 | cat >>confdefs.h <<_ACEOF |
| 7374 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7375 | _ACEOF |
| 7376 | |
| 7377 | fi |
| 7378 | # Extract the first word of "dot", so it can be a program name with args. |
| 7379 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7380 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7381 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7382 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7384 | else |
| 7385 | case $DOT in |
| 7386 | [\\/]* | ?:[\\/]*) |
| 7387 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7388 | ;; |
| 7389 | *) |
| 7390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7391 | for as_dir in $PATH |
| 7392 | do |
| 7393 | IFS=$as_save_IFS |
| 7394 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7395 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7396 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7397 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7398 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7399 | break 2 |
| 7400 | fi |
| 7401 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7402 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7403 | IFS=$as_save_IFS |
| 7404 | |
| 7405 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7406 | ;; |
| 7407 | esac |
| 7408 | fi |
| 7409 | DOT=$ac_cv_path_DOT |
| 7410 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7411 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7412 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7413 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7414 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7415 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7416 | fi |
| 7417 | |
| 7418 | |
| 7419 | if test "$DOT" != "echo dot" ; then |
| 7420 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7421 | cat >>confdefs.h <<\_ACEOF |
| 7422 | #define HAVE_DOT 1 |
| 7423 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7424 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7425 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7426 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7427 | fi |
| 7428 | |
| 7429 | cat >>confdefs.h <<_ACEOF |
| 7430 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7431 | _ACEOF |
| 7432 | |
| 7433 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7434 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7435 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7436 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7437 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7438 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7440 | else |
| 7441 | case $FDP in |
| 7442 | [\\/]* | ?:[\\/]*) |
| 7443 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7444 | ;; |
| 7445 | *) |
| 7446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7447 | for as_dir in $PATH |
| 7448 | do |
| 7449 | IFS=$as_save_IFS |
| 7450 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7451 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7452 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7453 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7454 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7455 | break 2 |
| 7456 | fi |
| 7457 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7458 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7459 | IFS=$as_save_IFS |
| 7460 | |
| 7461 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7462 | ;; |
| 7463 | esac |
| 7464 | fi |
| 7465 | FDP=$ac_cv_path_FDP |
| 7466 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7467 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7468 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7469 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7470 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7471 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7472 | fi |
| 7473 | |
| 7474 | |
| 7475 | if test "$FDP" != "echo fdp" ; then |
| 7476 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7477 | cat >>confdefs.h <<\_ACEOF |
| 7478 | #define HAVE_FDP 1 |
| 7479 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7480 | |
| 7481 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7482 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7483 | fi |
| 7484 | |
| 7485 | cat >>confdefs.h <<_ACEOF |
| 7486 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7487 | _ACEOF |
| 7488 | |
| 7489 | fi |
| 7490 | # Extract the first word of "neato", so it can be a program name with args. |
| 7491 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7492 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7494 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7496 | else |
| 7497 | case $NEATO in |
| 7498 | [\\/]* | ?:[\\/]*) |
| 7499 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7500 | ;; |
| 7501 | *) |
| 7502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7503 | for as_dir in $PATH |
| 7504 | do |
| 7505 | IFS=$as_save_IFS |
| 7506 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7507 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7508 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7509 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7510 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7511 | break 2 |
| 7512 | fi |
| 7513 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7514 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7515 | IFS=$as_save_IFS |
| 7516 | |
| 7517 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7518 | ;; |
| 7519 | esac |
| 7520 | fi |
| 7521 | NEATO=$ac_cv_path_NEATO |
| 7522 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7523 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7524 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7525 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7526 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7527 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7528 | fi |
| 7529 | |
| 7530 | |
| 7531 | if test "$NEATO" != "echo neato" ; then |
| 7532 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7533 | cat >>confdefs.h <<\_ACEOF |
| 7534 | #define HAVE_NEATO 1 |
| 7535 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7536 | |
| 7537 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7538 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7539 | fi |
| 7540 | |
| 7541 | cat >>confdefs.h <<_ACEOF |
| 7542 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7543 | _ACEOF |
| 7544 | |
| 7545 | fi |
| 7546 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7547 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7548 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7549 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7550 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7552 | else |
| 7553 | case $TWOPI in |
| 7554 | [\\/]* | ?:[\\/]*) |
| 7555 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7556 | ;; |
| 7557 | *) |
| 7558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7559 | for as_dir in $PATH |
| 7560 | do |
| 7561 | IFS=$as_save_IFS |
| 7562 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7563 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7564 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7565 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7567 | break 2 |
| 7568 | fi |
| 7569 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7570 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7571 | IFS=$as_save_IFS |
| 7572 | |
| 7573 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7574 | ;; |
| 7575 | esac |
| 7576 | fi |
| 7577 | TWOPI=$ac_cv_path_TWOPI |
| 7578 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7579 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7580 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7581 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7582 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7583 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7584 | fi |
| 7585 | |
| 7586 | |
| 7587 | if test "$TWOPI" != "echo twopi" ; then |
| 7588 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7589 | cat >>confdefs.h <<\_ACEOF |
| 7590 | #define HAVE_TWOPI 1 |
| 7591 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7592 | |
| 7593 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7594 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7595 | fi |
| 7596 | |
| 7597 | cat >>confdefs.h <<_ACEOF |
| 7598 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7599 | _ACEOF |
| 7600 | |
| 7601 | fi |
| 7602 | # Extract the first word of "circo", so it can be a program name with args. |
| 7603 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7604 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7605 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7606 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 7607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7608 | else |
| 7609 | case $CIRCO in |
| 7610 | [\\/]* | ?:[\\/]*) |
| 7611 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 7612 | ;; |
| 7613 | *) |
| 7614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7615 | for as_dir in $PATH |
| 7616 | do |
| 7617 | IFS=$as_save_IFS |
| 7618 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7619 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7620 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7621 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7622 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7623 | break 2 |
| 7624 | fi |
| 7625 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7626 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7627 | IFS=$as_save_IFS |
| 7628 | |
| 7629 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7630 | ;; |
| 7631 | esac |
| 7632 | fi |
| 7633 | CIRCO=$ac_cv_path_CIRCO |
| 7634 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7635 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7636 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7637 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7638 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7639 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7640 | fi |
| 7641 | |
| 7642 | |
| 7643 | if test "$CIRCO" != "echo circo" ; then |
| 7644 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7645 | cat >>confdefs.h <<\_ACEOF |
| 7646 | #define HAVE_CIRCO 1 |
| 7647 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7648 | |
| 7649 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7650 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7651 | fi |
| 7652 | |
| 7653 | cat >>confdefs.h <<_ACEOF |
| 7654 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7655 | _ACEOF |
| 7656 | |
| 7657 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7658 | for ac_prog in gv gsview32 |
| 7659 | do |
| 7660 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7661 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7662 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7663 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7664 | if test "${ac_cv_path_GV+set}" = set; then |
| 7665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7666 | else |
| 7667 | case $GV in |
| 7668 | [\\/]* | ?:[\\/]*) |
| 7669 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7670 | ;; |
| 7671 | *) |
| 7672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7673 | for as_dir in $PATH |
| 7674 | do |
| 7675 | IFS=$as_save_IFS |
| 7676 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7677 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7678 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7679 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7680 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7681 | break 2 |
| 7682 | fi |
| 7683 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7684 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7685 | IFS=$as_save_IFS |
| 7686 | |
| 7687 | ;; |
| 7688 | esac |
| 7689 | fi |
| 7690 | GV=$ac_cv_path_GV |
| 7691 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7692 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7693 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7694 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7695 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7696 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7697 | fi |
| 7698 | |
| 7699 | |
| 7700 | test -n "$GV" && break |
| 7701 | done |
| 7702 | test -n "$GV" || GV="echo gv" |
| 7703 | |
| 7704 | if test "$GV" != "echo gv" ; then |
| 7705 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7706 | cat >>confdefs.h <<\_ACEOF |
| 7707 | #define HAVE_GV 1 |
| 7708 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7709 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7710 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7711 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7712 | fi |
| 7713 | |
| 7714 | cat >>confdefs.h <<_ACEOF |
| 7715 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7716 | _ACEOF |
| 7717 | |
| 7718 | fi |
| 7719 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7720 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7721 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7722 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7723 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7725 | else |
| 7726 | case $DOTTY in |
| 7727 | [\\/]* | ?:[\\/]*) |
| 7728 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7729 | ;; |
| 7730 | *) |
| 7731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7732 | for as_dir in $PATH |
| 7733 | do |
| 7734 | IFS=$as_save_IFS |
| 7735 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7736 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7737 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7738 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7739 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7740 | break 2 |
| 7741 | fi |
| 7742 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7743 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7744 | IFS=$as_save_IFS |
| 7745 | |
| 7746 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7747 | ;; |
| 7748 | esac |
| 7749 | fi |
| 7750 | DOTTY=$ac_cv_path_DOTTY |
| 7751 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7752 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7753 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7754 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7755 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7756 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7757 | fi |
| 7758 | |
| 7759 | |
| 7760 | if test "$DOTTY" != "echo dotty" ; then |
| 7761 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7762 | cat >>confdefs.h <<\_ACEOF |
| 7763 | #define HAVE_DOTTY 1 |
| 7764 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7765 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7766 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7767 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7768 | fi |
| 7769 | |
| 7770 | cat >>confdefs.h <<_ACEOF |
| 7771 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7772 | _ACEOF |
| 7773 | |
| 7774 | fi |
| 7775 | |
| 7776 | |
| 7777 | # Extract the first word of "perl", so it can be a program name with args. |
| 7778 | set dummy perl; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7779 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7781 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7783 | else |
| 7784 | case $PERL in |
| 7785 | [\\/]* | ?:[\\/]*) |
| 7786 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7787 | ;; |
| 7788 | *) |
| 7789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7790 | for as_dir in $PATH |
| 7791 | do |
| 7792 | IFS=$as_save_IFS |
| 7793 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7794 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7795 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7796 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7797 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7798 | break 2 |
| 7799 | fi |
| 7800 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7801 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7802 | IFS=$as_save_IFS |
| 7803 | |
| 7804 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7805 | ;; |
| 7806 | esac |
| 7807 | fi |
| 7808 | PERL=$ac_cv_path_PERL |
| 7809 | if test -n "$PERL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7810 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7811 | echo "${ECHO_T}$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7812 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7813 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7814 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7815 | fi |
| 7816 | |
| 7817 | |
| 7818 | if test "$PERL" != "none"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7819 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7820 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7821 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7822 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7823 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7824 | else |
| 7825 | PERL=none |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7826 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7827 | echo "${ECHO_T}not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7828 | fi |
| 7829 | fi |
| 7830 | |
| 7831 | |
| 7832 | if test x"$PERL" = xnone; then |
| 7833 | HAVE_PERL=0 |
| 7834 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7835 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7836 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7837 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7838 | else |
| 7839 | HAVE_PERL=1 |
| 7840 | |
| 7841 | fi |
| 7842 | |
| 7843 | # Find a good install program. We prefer a C program (faster), |
| 7844 | # so one script is as good as another. But avoid the broken or |
| 7845 | # incompatible versions: |
| 7846 | # SysV /etc/install, /usr/sbin/install |
| 7847 | # SunOS /usr/etc/install |
| 7848 | # IRIX /sbin/install |
| 7849 | # AIX /bin/install |
| 7850 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7851 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7852 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7853 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7854 | # OS/2's system install, which has a completely different semantic |
| 7855 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7856 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7857 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7858 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7859 | if test "${ac_cv_path_install+set}" = set; then |
| 7860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7861 | else |
| 7862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7863 | for as_dir in $PATH |
| 7864 | do |
| 7865 | IFS=$as_save_IFS |
| 7866 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7867 | # Account for people who put trailing slashes in PATH elements. |
| 7868 | case $as_dir/ in |
| 7869 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7870 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7871 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7872 | /usr/ucb/* ) ;; |
| 7873 | *) |
| 7874 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7875 | # Don't use installbsd from OSF since it installs stuff as root |
| 7876 | # by default. |
| 7877 | for ac_prog in ginstall scoinst install; do |
| 7878 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7879 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7880 | if test $ac_prog = install && |
| 7881 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7882 | # AIX install. It has an incompatible calling convention. |
| 7883 | : |
| 7884 | elif test $ac_prog = install && |
| 7885 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7886 | # program-specific install script used by HP pwplus--don't use. |
| 7887 | : |
| 7888 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7889 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7890 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7891 | fi |
| 7892 | fi |
| 7893 | done |
| 7894 | done |
| 7895 | ;; |
| 7896 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7897 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7898 | IFS=$as_save_IFS |
| 7899 | |
| 7900 | |
| 7901 | fi |
| 7902 | if test "${ac_cv_path_install+set}" = set; then |
| 7903 | INSTALL=$ac_cv_path_install |
| 7904 | else |
| 7905 | # As a last resort, use the slow shell script. Don't cache a |
| 7906 | # value for INSTALL within a source directory, because that will |
| 7907 | # break other packages using the cache if that directory is |
| 7908 | # removed, or if the value is a relative name. |
| 7909 | INSTALL=$ac_install_sh |
| 7910 | fi |
| 7911 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7912 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7913 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7914 | |
| 7915 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7916 | # It thinks the first close brace ends the variable substitution. |
| 7917 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7918 | |
| 7919 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7920 | |
| 7921 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7922 | |
| 7923 | |
| 7924 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7925 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7926 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7927 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7928 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7930 | else |
| 7931 | case $BZIP2 in |
| 7932 | [\\/]* | ?:[\\/]*) |
| 7933 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7934 | ;; |
| 7935 | *) |
| 7936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7937 | for as_dir in $PATH |
| 7938 | do |
| 7939 | IFS=$as_save_IFS |
| 7940 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7941 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7942 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7943 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7944 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7945 | break 2 |
| 7946 | fi |
| 7947 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7948 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7949 | IFS=$as_save_IFS |
| 7950 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7951 | ;; |
| 7952 | esac |
| 7953 | fi |
| 7954 | BZIP2=$ac_cv_path_BZIP2 |
| 7955 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7956 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7957 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7958 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7959 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7960 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7961 | fi |
| 7962 | |
| 7963 | |
| 7964 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7965 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7966 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7967 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7968 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7970 | else |
| 7971 | case $DOXYGEN in |
| 7972 | [\\/]* | ?:[\\/]*) |
| 7973 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7974 | ;; |
| 7975 | *) |
| 7976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7977 | for as_dir in $PATH |
| 7978 | do |
| 7979 | IFS=$as_save_IFS |
| 7980 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7981 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7982 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7983 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7984 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7985 | break 2 |
| 7986 | fi |
| 7987 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7988 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7989 | IFS=$as_save_IFS |
| 7990 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7991 | ;; |
| 7992 | esac |
| 7993 | fi |
| 7994 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7995 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7996 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7997 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7998 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7999 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8000 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8001 | fi |
| 8002 | |
| 8003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8004 | # Extract the first word of "groff", so it can be a program name with args. |
| 8005 | set dummy groff; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8006 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8007 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8008 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 8009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8010 | else |
| 8011 | case $GROFF in |
| 8012 | [\\/]* | ?:[\\/]*) |
| 8013 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 8014 | ;; |
| 8015 | *) |
| 8016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8017 | for as_dir in $PATH |
| 8018 | do |
| 8019 | IFS=$as_save_IFS |
| 8020 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8021 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8022 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8023 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8024 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8025 | break 2 |
| 8026 | fi |
| 8027 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8028 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8029 | IFS=$as_save_IFS |
| 8030 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8031 | ;; |
| 8032 | esac |
| 8033 | fi |
| 8034 | GROFF=$ac_cv_path_GROFF |
| 8035 | if test -n "$GROFF"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8036 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 8037 | echo "${ECHO_T}$GROFF" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8038 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8039 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8040 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8041 | fi |
| 8042 | |
| 8043 | |
| 8044 | # Extract the first word of "gzip", so it can be a program name with args. |
| 8045 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8046 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8047 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8048 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 8049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8050 | else |
| 8051 | case $GZIP in |
| 8052 | [\\/]* | ?:[\\/]*) |
| 8053 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 8054 | ;; |
| 8055 | *) |
| 8056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8057 | for as_dir in $PATH |
| 8058 | do |
| 8059 | IFS=$as_save_IFS |
| 8060 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8061 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8062 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8063 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8064 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8065 | break 2 |
| 8066 | fi |
| 8067 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8068 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8069 | IFS=$as_save_IFS |
| 8070 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8071 | ;; |
| 8072 | esac |
| 8073 | fi |
| 8074 | GZIP=$ac_cv_path_GZIP |
| 8075 | if test -n "$GZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8076 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 8077 | echo "${ECHO_T}$GZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8078 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8079 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8080 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8081 | fi |
| 8082 | |
| 8083 | |
| 8084 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 8085 | set dummy pod2html; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8086 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8087 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8088 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 8089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8090 | else |
| 8091 | case $POD2HTML in |
| 8092 | [\\/]* | ?:[\\/]*) |
| 8093 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 8094 | ;; |
| 8095 | *) |
| 8096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8097 | for as_dir in $PATH |
| 8098 | do |
| 8099 | IFS=$as_save_IFS |
| 8100 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8101 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8102 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8103 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8104 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8105 | break 2 |
| 8106 | fi |
| 8107 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8108 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8109 | IFS=$as_save_IFS |
| 8110 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8111 | ;; |
| 8112 | esac |
| 8113 | fi |
| 8114 | POD2HTML=$ac_cv_path_POD2HTML |
| 8115 | if test -n "$POD2HTML"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8116 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 8117 | echo "${ECHO_T}$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8118 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8119 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8120 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8121 | fi |
| 8122 | |
| 8123 | |
| 8124 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 8125 | set dummy pod2man; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8126 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8128 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 8129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8130 | else |
| 8131 | case $POD2MAN in |
| 8132 | [\\/]* | ?:[\\/]*) |
| 8133 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 8134 | ;; |
| 8135 | *) |
| 8136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8137 | for as_dir in $PATH |
| 8138 | do |
| 8139 | IFS=$as_save_IFS |
| 8140 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8141 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8142 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8143 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8144 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8145 | break 2 |
| 8146 | fi |
| 8147 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8148 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8149 | IFS=$as_save_IFS |
| 8150 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8151 | ;; |
| 8152 | esac |
| 8153 | fi |
| 8154 | POD2MAN=$ac_cv_path_POD2MAN |
| 8155 | if test -n "$POD2MAN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8156 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 8157 | echo "${ECHO_T}$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8158 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8159 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8160 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8161 | fi |
| 8162 | |
| 8163 | |
| 8164 | # Extract the first word of "runtest", so it can be a program name with args. |
| 8165 | set dummy runtest; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8166 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8167 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8168 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 8169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8170 | else |
| 8171 | case $RUNTEST in |
| 8172 | [\\/]* | ?:[\\/]*) |
| 8173 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 8174 | ;; |
| 8175 | *) |
| 8176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8177 | for as_dir in $PATH |
| 8178 | do |
| 8179 | IFS=$as_save_IFS |
| 8180 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8181 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8182 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8183 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8184 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8185 | break 2 |
| 8186 | fi |
| 8187 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8188 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8189 | IFS=$as_save_IFS |
| 8190 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8191 | ;; |
| 8192 | esac |
| 8193 | fi |
| 8194 | RUNTEST=$ac_cv_path_RUNTEST |
| 8195 | if test -n "$RUNTEST"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8196 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8197 | echo "${ECHO_T}$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8198 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8199 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8200 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8201 | fi |
| 8202 | |
| 8203 | |
| 8204 | |
| 8205 | no_itcl=true |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8206 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8207 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8208 | |
| 8209 | # Check whether --with-tclinclude was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8210 | if test "${with_tclinclude+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8211 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8212 | else |
| 8213 | with_tclinclude='' |
| 8214 | fi |
| 8215 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8216 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8218 | else |
| 8219 | |
| 8220 | if test x"${with_tclinclude}" != x ; then |
| 8221 | if test -f ${with_tclinclude}/tclsh ; then |
| 8222 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8223 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8224 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8225 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8226 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8227 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8228 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8229 | fi |
| 8230 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 8231 | fi |
| 8232 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8233 | |
| 8234 | if test x"${ac_cv_path_tclsh}" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8235 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8236 | echo "${ECHO_T}none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8237 | for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh |
| 8238 | do |
| 8239 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8240 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8241 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8242 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8243 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8245 | else |
| 8246 | case $TCLSH in |
| 8247 | [\\/]* | ?:[\\/]*) |
| 8248 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8249 | ;; |
| 8250 | *) |
| 8251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8252 | for as_dir in $PATH |
| 8253 | do |
| 8254 | IFS=$as_save_IFS |
| 8255 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8256 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8257 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8258 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8259 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8260 | break 2 |
| 8261 | fi |
| 8262 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8263 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8264 | IFS=$as_save_IFS |
| 8265 | |
| 8266 | ;; |
| 8267 | esac |
| 8268 | fi |
| 8269 | TCLSH=$ac_cv_path_TCLSH |
| 8270 | if test -n "$TCLSH"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8271 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8272 | echo "${ECHO_T}$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8273 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8274 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8275 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8276 | fi |
| 8277 | |
| 8278 | |
| 8279 | test -n "$TCLSH" && break |
| 8280 | done |
| 8281 | |
| 8282 | if test x"${TCLSH}" = x ; then |
| 8283 | ac_cv_path_tclsh=''; |
| 8284 | else |
| 8285 | ac_cv_path_tclsh="${TCLSH}"; |
| 8286 | fi |
| 8287 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8288 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8289 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8290 | TCLSH="${ac_cv_path_tclsh}" |
| 8291 | |
| 8292 | fi |
| 8293 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8294 | # Extract the first word of "zip", so it can be a program name with args. |
| 8295 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8296 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8298 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8300 | else |
| 8301 | case $ZIP in |
| 8302 | [\\/]* | ?:[\\/]*) |
| 8303 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8304 | ;; |
| 8305 | *) |
| 8306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8307 | for as_dir in $PATH |
| 8308 | do |
| 8309 | IFS=$as_save_IFS |
| 8310 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8311 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8312 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8313 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8314 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8315 | break 2 |
| 8316 | fi |
| 8317 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8318 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8319 | IFS=$as_save_IFS |
| 8320 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8321 | ;; |
| 8322 | esac |
| 8323 | fi |
| 8324 | ZIP=$ac_cv_path_ZIP |
| 8325 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8326 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8327 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8328 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8329 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8330 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8331 | fi |
| 8332 | |
| 8333 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8334 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8335 | do |
| 8336 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8337 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8338 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8339 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8340 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8342 | else |
| 8343 | case $OCAMLC in |
| 8344 | [\\/]* | ?:[\\/]*) |
| 8345 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8346 | ;; |
| 8347 | *) |
| 8348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8349 | for as_dir in $PATH |
| 8350 | do |
| 8351 | IFS=$as_save_IFS |
| 8352 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8353 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8354 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8355 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8356 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8357 | break 2 |
| 8358 | fi |
| 8359 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8360 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8361 | IFS=$as_save_IFS |
| 8362 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8363 | ;; |
| 8364 | esac |
| 8365 | fi |
| 8366 | OCAMLC=$ac_cv_path_OCAMLC |
| 8367 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8368 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8369 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8370 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8371 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8372 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8373 | fi |
| 8374 | |
| 8375 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8376 | test -n "$OCAMLC" && break |
| 8377 | done |
| 8378 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8379 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8380 | do |
| 8381 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8382 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8383 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8385 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8387 | else |
| 8388 | case $OCAMLOPT in |
| 8389 | [\\/]* | ?:[\\/]*) |
| 8390 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8391 | ;; |
| 8392 | *) |
| 8393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8394 | for as_dir in $PATH |
| 8395 | do |
| 8396 | IFS=$as_save_IFS |
| 8397 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8398 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8399 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8400 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8402 | break 2 |
| 8403 | fi |
| 8404 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8405 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8406 | IFS=$as_save_IFS |
| 8407 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8408 | ;; |
| 8409 | esac |
| 8410 | fi |
| 8411 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8412 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8413 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8414 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8415 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8416 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8417 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8418 | fi |
| 8419 | |
| 8420 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8421 | test -n "$OCAMLOPT" && break |
| 8422 | done |
| 8423 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8424 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8425 | do |
| 8426 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8427 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8428 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8430 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8432 | else |
| 8433 | case $OCAMLDEP in |
| 8434 | [\\/]* | ?:[\\/]*) |
| 8435 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8436 | ;; |
| 8437 | *) |
| 8438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8439 | for as_dir in $PATH |
| 8440 | do |
| 8441 | IFS=$as_save_IFS |
| 8442 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8443 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8444 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8445 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8446 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8447 | break 2 |
| 8448 | fi |
| 8449 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8450 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8451 | IFS=$as_save_IFS |
| 8452 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8453 | ;; |
| 8454 | esac |
| 8455 | fi |
| 8456 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8457 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8458 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8459 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8460 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8461 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8462 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8463 | fi |
| 8464 | |
| 8465 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8466 | test -n "$OCAMLDEP" && break |
| 8467 | done |
| 8468 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8469 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8470 | do |
| 8471 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8472 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8473 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8474 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8475 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8477 | else |
| 8478 | case $OCAMLDOC in |
| 8479 | [\\/]* | ?:[\\/]*) |
| 8480 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8481 | ;; |
| 8482 | *) |
| 8483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8484 | for as_dir in $PATH |
| 8485 | do |
| 8486 | IFS=$as_save_IFS |
| 8487 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8488 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8489 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8490 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8491 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8492 | break 2 |
| 8493 | fi |
| 8494 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8495 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8496 | IFS=$as_save_IFS |
| 8497 | |
| 8498 | ;; |
| 8499 | esac |
| 8500 | fi |
| 8501 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8502 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8503 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8504 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8505 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8506 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8507 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8508 | fi |
| 8509 | |
| 8510 | |
| 8511 | test -n "$OCAMLDOC" && break |
| 8512 | done |
| 8513 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8514 | for ac_prog in gas as |
| 8515 | do |
| 8516 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8517 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8518 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8519 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8520 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8522 | else |
| 8523 | case $GAS in |
| 8524 | [\\/]* | ?:[\\/]*) |
| 8525 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8526 | ;; |
| 8527 | *) |
| 8528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8529 | for as_dir in $PATH |
| 8530 | do |
| 8531 | IFS=$as_save_IFS |
| 8532 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8533 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8534 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8535 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8536 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8537 | break 2 |
| 8538 | fi |
| 8539 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8540 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8541 | IFS=$as_save_IFS |
| 8542 | |
| 8543 | ;; |
| 8544 | esac |
| 8545 | fi |
| 8546 | GAS=$ac_cv_path_GAS |
| 8547 | if test -n "$GAS"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8548 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8549 | echo "${ECHO_T}$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8550 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8551 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8552 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8553 | fi |
| 8554 | |
| 8555 | |
| 8556 | test -n "$GAS" && break |
| 8557 | done |
| 8558 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8559 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8560 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8561 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8562 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8564 | else |
| 8565 | ac_ext=c |
| 8566 | ac_cpp='$CPP $CPPFLAGS' |
| 8567 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8568 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8569 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8570 | |
| 8571 | oldcflags="$CFLAGS" |
| 8572 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8573 | cat >conftest.$ac_ext <<_ACEOF |
| 8574 | /* confdefs.h. */ |
| 8575 | _ACEOF |
| 8576 | cat confdefs.h >>conftest.$ac_ext |
| 8577 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8578 | /* end confdefs.h. */ |
| 8579 | |
| 8580 | int |
| 8581 | main () |
| 8582 | { |
| 8583 | int main() { return 0; } |
| 8584 | ; |
| 8585 | return 0; |
| 8586 | } |
| 8587 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8588 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8589 | if { (ac_try="$ac_link" |
| 8590 | case "(($ac_try" in |
| 8591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8592 | *) ac_try_echo=$ac_try;; |
| 8593 | esac |
| 8594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8595 | (eval "$ac_link") 2>conftest.er1 |
| 8596 | ac_status=$? |
| 8597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8598 | rm -f conftest.er1 |
| 8599 | cat conftest.err >&5 |
| 8600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8601 | (exit $ac_status); } && |
| 8602 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8603 | { (case "(($ac_try" in |
| 8604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8605 | *) ac_try_echo=$ac_try;; |
| 8606 | esac |
| 8607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8608 | (eval "$ac_try") 2>&5 |
| 8609 | ac_status=$? |
| 8610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8611 | (exit $ac_status); }; } && |
| 8612 | { ac_try='test -s conftest$ac_exeext' |
| 8613 | { (case "(($ac_try" in |
| 8614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8615 | *) ac_try_echo=$ac_try;; |
| 8616 | esac |
| 8617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8618 | (eval "$ac_try") 2>&5 |
| 8619 | ac_status=$? |
| 8620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8621 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8622 | llvm_cv_link_use_r=yes |
| 8623 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8624 | echo "$as_me: failed program was:" >&5 |
| 8625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8626 | |
| 8627 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8628 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8629 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8630 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8631 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8632 | CFLAGS="$oldcflags" |
| 8633 | ac_ext=c |
| 8634 | ac_cpp='$CPP $CPPFLAGS' |
| 8635 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8636 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8637 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8638 | |
| 8639 | |
| 8640 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8641 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8642 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8643 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8644 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8645 | cat >>confdefs.h <<\_ACEOF |
| 8646 | #define HAVE_LINK_R 1 |
| 8647 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8648 | |
| 8649 | fi |
| 8650 | |
| 8651 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8652 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8653 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8654 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8656 | else |
| 8657 | ac_ext=c |
| 8658 | ac_cpp='$CPP $CPPFLAGS' |
| 8659 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8660 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8661 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8662 | |
| 8663 | oldcflags="$CFLAGS" |
| 8664 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8665 | cat >conftest.$ac_ext <<_ACEOF |
| 8666 | /* confdefs.h. */ |
| 8667 | _ACEOF |
| 8668 | cat confdefs.h >>conftest.$ac_ext |
| 8669 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8670 | /* end confdefs.h. */ |
| 8671 | |
| 8672 | int |
| 8673 | main () |
| 8674 | { |
| 8675 | int main() { return 0; } |
| 8676 | ; |
| 8677 | return 0; |
| 8678 | } |
| 8679 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8680 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8681 | if { (ac_try="$ac_link" |
| 8682 | case "(($ac_try" in |
| 8683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8684 | *) ac_try_echo=$ac_try;; |
| 8685 | esac |
| 8686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8687 | (eval "$ac_link") 2>conftest.er1 |
| 8688 | ac_status=$? |
| 8689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8690 | rm -f conftest.er1 |
| 8691 | cat conftest.err >&5 |
| 8692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8693 | (exit $ac_status); } && |
| 8694 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8695 | { (case "(($ac_try" in |
| 8696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8697 | *) ac_try_echo=$ac_try;; |
| 8698 | esac |
| 8699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8700 | (eval "$ac_try") 2>&5 |
| 8701 | ac_status=$? |
| 8702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8703 | (exit $ac_status); }; } && |
| 8704 | { ac_try='test -s conftest$ac_exeext' |
| 8705 | { (case "(($ac_try" in |
| 8706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8707 | *) ac_try_echo=$ac_try;; |
| 8708 | esac |
| 8709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8710 | (eval "$ac_try") 2>&5 |
| 8711 | ac_status=$? |
| 8712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8713 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8714 | llvm_cv_link_use_export_dynamic=yes |
| 8715 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8716 | echo "$as_me: failed program was:" >&5 |
| 8717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8718 | |
| 8719 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8720 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8721 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8722 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8723 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8724 | CFLAGS="$oldcflags" |
| 8725 | ac_ext=c |
| 8726 | ac_cpp='$CPP $CPPFLAGS' |
| 8727 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8728 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8729 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8730 | |
| 8731 | |
| 8732 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8733 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 8734 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8735 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 8736 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8737 | cat >>confdefs.h <<\_ACEOF |
| 8738 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 8739 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8740 | |
| 8741 | fi |
| 8742 | |
| 8743 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8744 | |
| 8745 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8746 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8747 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8748 | if test "${ac_cv_c_const+set}" = set; then |
| 8749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8750 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8751 | cat >conftest.$ac_ext <<_ACEOF |
| 8752 | /* confdefs.h. */ |
| 8753 | _ACEOF |
| 8754 | cat confdefs.h >>conftest.$ac_ext |
| 8755 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8756 | /* end confdefs.h. */ |
| 8757 | |
| 8758 | int |
| 8759 | main () |
| 8760 | { |
| 8761 | /* FIXME: Include the comments suggested by Paul. */ |
| 8762 | #ifndef __cplusplus |
| 8763 | /* Ultrix mips cc rejects this. */ |
| 8764 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8765 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8766 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8767 | char const *const *ccp; |
| 8768 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8769 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8770 | struct point {int x, y;}; |
| 8771 | static struct point const zero = {0,0}; |
| 8772 | /* AIX XL C 1.02.0.0 rejects this. |
| 8773 | It does not let you subtract one const X* pointer from another in |
| 8774 | an arm of an if-expression whose if-part is not a constant |
| 8775 | expression */ |
| 8776 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8777 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8778 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8779 | ++ccp; |
| 8780 | p = (char**) ccp; |
| 8781 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8782 | { /* SCO 3.2v4 cc rejects this. */ |
| 8783 | char *t; |
| 8784 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8785 | |
| 8786 | *t++ = 0; |
| 8787 | if (s) return 0; |
| 8788 | } |
| 8789 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8790 | int x[] = {25, 17}; |
| 8791 | const int *foo = &x[0]; |
| 8792 | ++foo; |
| 8793 | } |
| 8794 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8795 | typedef const int *iptr; |
| 8796 | iptr p = 0; |
| 8797 | ++p; |
| 8798 | } |
| 8799 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8800 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8801 | struct s { int j; const int *ap[3]; }; |
| 8802 | struct s *b; b->j = 5; |
| 8803 | } |
| 8804 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8805 | const int foo = 10; |
| 8806 | if (!foo) return 0; |
| 8807 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8808 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8809 | #endif |
| 8810 | |
| 8811 | ; |
| 8812 | return 0; |
| 8813 | } |
| 8814 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8815 | rm -f conftest.$ac_objext |
| 8816 | if { (ac_try="$ac_compile" |
| 8817 | case "(($ac_try" in |
| 8818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8819 | *) ac_try_echo=$ac_try;; |
| 8820 | esac |
| 8821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8822 | (eval "$ac_compile") 2>conftest.er1 |
| 8823 | ac_status=$? |
| 8824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8825 | rm -f conftest.er1 |
| 8826 | cat conftest.err >&5 |
| 8827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8828 | (exit $ac_status); } && |
| 8829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8830 | { (case "(($ac_try" in |
| 8831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8832 | *) ac_try_echo=$ac_try;; |
| 8833 | esac |
| 8834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8835 | (eval "$ac_try") 2>&5 |
| 8836 | ac_status=$? |
| 8837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8838 | (exit $ac_status); }; } && |
| 8839 | { ac_try='test -s conftest.$ac_objext' |
| 8840 | { (case "(($ac_try" in |
| 8841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8842 | *) ac_try_echo=$ac_try;; |
| 8843 | esac |
| 8844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8845 | (eval "$ac_try") 2>&5 |
| 8846 | ac_status=$? |
| 8847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8848 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8849 | ac_cv_c_const=yes |
| 8850 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8851 | echo "$as_me: failed program was:" >&5 |
| 8852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8853 | |
| 8854 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8855 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8856 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8858 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8859 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8860 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8861 | if test $ac_cv_c_const = no; then |
| 8862 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8863 | cat >>confdefs.h <<\_ACEOF |
| 8864 | #define const |
| 8865 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8866 | |
| 8867 | fi |
| 8868 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8869 | |
| 8870 | |
| 8871 | |
| 8872 | |
| 8873 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8874 | ac_header_dirent=no |
| 8875 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8876 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 8877 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8878 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8879 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8881 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8882 | cat >conftest.$ac_ext <<_ACEOF |
| 8883 | /* confdefs.h. */ |
| 8884 | _ACEOF |
| 8885 | cat confdefs.h >>conftest.$ac_ext |
| 8886 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8887 | /* end confdefs.h. */ |
| 8888 | #include <sys/types.h> |
| 8889 | #include <$ac_hdr> |
| 8890 | |
| 8891 | int |
| 8892 | main () |
| 8893 | { |
| 8894 | if ((DIR *) 0) |
| 8895 | return 0; |
| 8896 | ; |
| 8897 | return 0; |
| 8898 | } |
| 8899 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8900 | rm -f conftest.$ac_objext |
| 8901 | if { (ac_try="$ac_compile" |
| 8902 | case "(($ac_try" in |
| 8903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8904 | *) ac_try_echo=$ac_try;; |
| 8905 | esac |
| 8906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8907 | (eval "$ac_compile") 2>conftest.er1 |
| 8908 | ac_status=$? |
| 8909 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8910 | rm -f conftest.er1 |
| 8911 | cat conftest.err >&5 |
| 8912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8913 | (exit $ac_status); } && |
| 8914 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8915 | { (case "(($ac_try" in |
| 8916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8917 | *) ac_try_echo=$ac_try;; |
| 8918 | esac |
| 8919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8920 | (eval "$ac_try") 2>&5 |
| 8921 | ac_status=$? |
| 8922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8923 | (exit $ac_status); }; } && |
| 8924 | { ac_try='test -s conftest.$ac_objext' |
| 8925 | { (case "(($ac_try" in |
| 8926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8927 | *) ac_try_echo=$ac_try;; |
| 8928 | esac |
| 8929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8930 | (eval "$ac_try") 2>&5 |
| 8931 | ac_status=$? |
| 8932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8933 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8934 | eval "$as_ac_Header=yes" |
| 8935 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8936 | echo "$as_me: failed program was:" >&5 |
| 8937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8938 | |
| 8939 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8940 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8941 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8943 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8944 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8945 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8946 | echo "${ECHO_T}$ac_res" >&6; } |
| 8947 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8948 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8949 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8950 | _ACEOF |
| 8951 | |
| 8952 | ac_header_dirent=$ac_hdr; break |
| 8953 | fi |
| 8954 | |
| 8955 | done |
| 8956 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8957 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8958 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8959 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8960 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8962 | else |
| 8963 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8964 | cat >conftest.$ac_ext <<_ACEOF |
| 8965 | /* confdefs.h. */ |
| 8966 | _ACEOF |
| 8967 | cat confdefs.h >>conftest.$ac_ext |
| 8968 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8969 | /* end confdefs.h. */ |
| 8970 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8971 | /* Override any GCC internal prototype to avoid an error. |
| 8972 | Use char because int might match the return type of a GCC |
| 8973 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8974 | #ifdef __cplusplus |
| 8975 | extern "C" |
| 8976 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8977 | char opendir (); |
| 8978 | int |
| 8979 | main () |
| 8980 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8981 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8982 | ; |
| 8983 | return 0; |
| 8984 | } |
| 8985 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8986 | for ac_lib in '' dir; do |
| 8987 | if test -z "$ac_lib"; then |
| 8988 | ac_res="none required" |
| 8989 | else |
| 8990 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8991 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8992 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8993 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8994 | if { (ac_try="$ac_link" |
| 8995 | case "(($ac_try" in |
| 8996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8997 | *) ac_try_echo=$ac_try;; |
| 8998 | esac |
| 8999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9000 | (eval "$ac_link") 2>conftest.er1 |
| 9001 | ac_status=$? |
| 9002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9003 | rm -f conftest.er1 |
| 9004 | cat conftest.err >&5 |
| 9005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9006 | (exit $ac_status); } && |
| 9007 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9008 | { (case "(($ac_try" in |
| 9009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9010 | *) ac_try_echo=$ac_try;; |
| 9011 | esac |
| 9012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9013 | (eval "$ac_try") 2>&5 |
| 9014 | ac_status=$? |
| 9015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9016 | (exit $ac_status); }; } && |
| 9017 | { ac_try='test -s conftest$ac_exeext' |
| 9018 | { (case "(($ac_try" in |
| 9019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9020 | *) ac_try_echo=$ac_try;; |
| 9021 | esac |
| 9022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9023 | (eval "$ac_try") 2>&5 |
| 9024 | ac_status=$? |
| 9025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9026 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9027 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9028 | else |
| 9029 | echo "$as_me: failed program was:" >&5 |
| 9030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9031 | |
| 9032 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9033 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9034 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9035 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9036 | conftest$ac_exeext |
| 9037 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9038 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9039 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9040 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9041 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9042 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9043 | else |
| 9044 | ac_cv_search_opendir=no |
| 9045 | fi |
| 9046 | rm conftest.$ac_ext |
| 9047 | LIBS=$ac_func_search_save_LIBS |
| 9048 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9049 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9050 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9051 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9052 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9053 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9054 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9055 | fi |
| 9056 | |
| 9057 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9058 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9059 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9060 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9062 | else |
| 9063 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9064 | cat >conftest.$ac_ext <<_ACEOF |
| 9065 | /* confdefs.h. */ |
| 9066 | _ACEOF |
| 9067 | cat confdefs.h >>conftest.$ac_ext |
| 9068 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9069 | /* end confdefs.h. */ |
| 9070 | |
| 9071 | /* Override any GCC internal prototype to avoid an error. |
| 9072 | Use char because int might match the return type of a GCC |
| 9073 | builtin and then its argument prototype would still apply. */ |
| 9074 | #ifdef __cplusplus |
| 9075 | extern "C" |
| 9076 | #endif |
| 9077 | char opendir (); |
| 9078 | int |
| 9079 | main () |
| 9080 | { |
| 9081 | return opendir (); |
| 9082 | ; |
| 9083 | return 0; |
| 9084 | } |
| 9085 | _ACEOF |
| 9086 | for ac_lib in '' x; do |
| 9087 | if test -z "$ac_lib"; then |
| 9088 | ac_res="none required" |
| 9089 | else |
| 9090 | ac_res=-l$ac_lib |
| 9091 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9092 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9093 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9094 | if { (ac_try="$ac_link" |
| 9095 | case "(($ac_try" in |
| 9096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9097 | *) ac_try_echo=$ac_try;; |
| 9098 | esac |
| 9099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9100 | (eval "$ac_link") 2>conftest.er1 |
| 9101 | ac_status=$? |
| 9102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9103 | rm -f conftest.er1 |
| 9104 | cat conftest.err >&5 |
| 9105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9106 | (exit $ac_status); } && |
| 9107 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9108 | { (case "(($ac_try" in |
| 9109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9110 | *) ac_try_echo=$ac_try;; |
| 9111 | esac |
| 9112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9113 | (eval "$ac_try") 2>&5 |
| 9114 | ac_status=$? |
| 9115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9116 | (exit $ac_status); }; } && |
| 9117 | { ac_try='test -s conftest$ac_exeext' |
| 9118 | { (case "(($ac_try" in |
| 9119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9120 | *) ac_try_echo=$ac_try;; |
| 9121 | esac |
| 9122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9123 | (eval "$ac_try") 2>&5 |
| 9124 | ac_status=$? |
| 9125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9126 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9127 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9128 | else |
| 9129 | echo "$as_me: failed program was:" >&5 |
| 9130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9131 | |
| 9132 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9133 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9134 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9135 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9136 | conftest$ac_exeext |
| 9137 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9138 | break |
| 9139 | fi |
| 9140 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9141 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9142 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9143 | else |
| 9144 | ac_cv_search_opendir=no |
| 9145 | fi |
| 9146 | rm conftest.$ac_ext |
| 9147 | LIBS=$ac_func_search_save_LIBS |
| 9148 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9149 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9150 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9151 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9152 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9153 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9154 | |
| 9155 | fi |
| 9156 | |
| 9157 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9158 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9159 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9160 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9161 | do |
| 9162 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9163 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9164 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9165 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9166 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9168 | fi |
| 9169 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9170 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9171 | echo "${ECHO_T}$ac_res" >&6; } |
| 9172 | else |
| 9173 | # Is the header compilable? |
| 9174 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9175 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 9176 | cat >conftest.$ac_ext <<_ACEOF |
| 9177 | /* confdefs.h. */ |
| 9178 | _ACEOF |
| 9179 | cat confdefs.h >>conftest.$ac_ext |
| 9180 | cat >>conftest.$ac_ext <<_ACEOF |
| 9181 | /* end confdefs.h. */ |
| 9182 | $ac_includes_default |
| 9183 | #include <$ac_header> |
| 9184 | _ACEOF |
| 9185 | rm -f conftest.$ac_objext |
| 9186 | if { (ac_try="$ac_compile" |
| 9187 | case "(($ac_try" in |
| 9188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9189 | *) ac_try_echo=$ac_try;; |
| 9190 | esac |
| 9191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9192 | (eval "$ac_compile") 2>conftest.er1 |
| 9193 | ac_status=$? |
| 9194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9195 | rm -f conftest.er1 |
| 9196 | cat conftest.err >&5 |
| 9197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9198 | (exit $ac_status); } && |
| 9199 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9200 | { (case "(($ac_try" in |
| 9201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9202 | *) ac_try_echo=$ac_try;; |
| 9203 | esac |
| 9204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9205 | (eval "$ac_try") 2>&5 |
| 9206 | ac_status=$? |
| 9207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9208 | (exit $ac_status); }; } && |
| 9209 | { ac_try='test -s conftest.$ac_objext' |
| 9210 | { (case "(($ac_try" in |
| 9211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9212 | *) ac_try_echo=$ac_try;; |
| 9213 | esac |
| 9214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9215 | (eval "$ac_try") 2>&5 |
| 9216 | ac_status=$? |
| 9217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9218 | (exit $ac_status); }; }; then |
| 9219 | ac_header_compiler=yes |
| 9220 | else |
| 9221 | echo "$as_me: failed program was:" >&5 |
| 9222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9223 | |
| 9224 | ac_header_compiler=no |
| 9225 | fi |
| 9226 | |
| 9227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9228 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9229 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9230 | |
| 9231 | # Is the header present? |
| 9232 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9233 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 9234 | cat >conftest.$ac_ext <<_ACEOF |
| 9235 | /* confdefs.h. */ |
| 9236 | _ACEOF |
| 9237 | cat confdefs.h >>conftest.$ac_ext |
| 9238 | cat >>conftest.$ac_ext <<_ACEOF |
| 9239 | /* end confdefs.h. */ |
| 9240 | #include <$ac_header> |
| 9241 | _ACEOF |
| 9242 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9243 | case "(($ac_try" in |
| 9244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9245 | *) ac_try_echo=$ac_try;; |
| 9246 | esac |
| 9247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9248 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9249 | ac_status=$? |
| 9250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9251 | rm -f conftest.er1 |
| 9252 | cat conftest.err >&5 |
| 9253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9254 | (exit $ac_status); } >/dev/null; then |
| 9255 | if test -s conftest.err; then |
| 9256 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9257 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9258 | else |
| 9259 | ac_cpp_err= |
| 9260 | fi |
| 9261 | else |
| 9262 | ac_cpp_err=yes |
| 9263 | fi |
| 9264 | if test -z "$ac_cpp_err"; then |
| 9265 | ac_header_preproc=yes |
| 9266 | else |
| 9267 | echo "$as_me: failed program was:" >&5 |
| 9268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9269 | |
| 9270 | ac_header_preproc=no |
| 9271 | fi |
| 9272 | |
| 9273 | rm -f conftest.err conftest.$ac_ext |
| 9274 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9275 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9276 | |
| 9277 | # So? What about this header? |
| 9278 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9279 | yes:no: ) |
| 9280 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9281 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9282 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9283 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9284 | ac_header_preproc=yes |
| 9285 | ;; |
| 9286 | no:yes:* ) |
| 9287 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9288 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9289 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9290 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9291 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9292 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9293 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9294 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9295 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9296 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9297 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9298 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9299 | ( cat <<\_ASBOX |
| 9300 | ## ----------------------------------- ## |
| 9301 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9302 | ## ----------------------------------- ## |
| 9303 | _ASBOX |
| 9304 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 9305 | ;; |
| 9306 | esac |
| 9307 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9308 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9309 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9311 | else |
| 9312 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9313 | fi |
| 9314 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9315 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9316 | echo "${ECHO_T}$ac_res" >&6; } |
| 9317 | |
| 9318 | fi |
| 9319 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9320 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9321 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9322 | _ACEOF |
| 9323 | |
| 9324 | fi |
| 9325 | |
| 9326 | done |
| 9327 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9328 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9329 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9330 | enableval=$enable_ltdl_install; |
| 9331 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9332 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9333 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9334 | |
| 9335 | |
| 9336 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9337 | INSTALL_LTDL_TRUE= |
| 9338 | INSTALL_LTDL_FALSE='#' |
| 9339 | else |
| 9340 | INSTALL_LTDL_TRUE='#' |
| 9341 | INSTALL_LTDL_FALSE= |
| 9342 | fi |
| 9343 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9344 | |
| 9345 | |
| 9346 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9347 | CONVENIENCE_LTDL_TRUE= |
| 9348 | CONVENIENCE_LTDL_FALSE='#' |
| 9349 | else |
| 9350 | CONVENIENCE_LTDL_TRUE='#' |
| 9351 | CONVENIENCE_LTDL_FALSE= |
| 9352 | fi |
| 9353 | |
| 9354 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9355 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9356 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9357 | library_names_spec= |
| 9358 | libname_spec='lib$name' |
| 9359 | soname_spec= |
| 9360 | shrext_cmds=".so" |
| 9361 | postinstall_cmds= |
| 9362 | postuninstall_cmds= |
| 9363 | finish_cmds= |
| 9364 | finish_eval= |
| 9365 | shlibpath_var= |
| 9366 | shlibpath_overrides_runpath=unknown |
| 9367 | version_type=none |
| 9368 | dynamic_linker="$host_os ld.so" |
| 9369 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9370 | if test "$GCC" = yes; then |
| 9371 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9372 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9373 | # if the path contains ";" then we assume it to be the separator |
| 9374 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9375 | # assumed that no part of a normal pathname contains ";" but that should |
| 9376 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9377 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9378 | else |
| 9379 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9380 | fi |
| 9381 | else |
| 9382 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9383 | fi |
| 9384 | need_lib_prefix=unknown |
| 9385 | hardcode_into_libs=no |
| 9386 | |
| 9387 | # when you set need_version to no, make sure it does not cause -set_version |
| 9388 | # flags to be left without arguments |
| 9389 | need_version=unknown |
| 9390 | |
| 9391 | case $host_os in |
| 9392 | aix3*) |
| 9393 | version_type=linux |
| 9394 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9395 | shlibpath_var=LIBPATH |
| 9396 | |
| 9397 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9398 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9399 | ;; |
| 9400 | |
| 9401 | aix4* | aix5*) |
| 9402 | version_type=linux |
| 9403 | need_lib_prefix=no |
| 9404 | need_version=no |
| 9405 | hardcode_into_libs=yes |
| 9406 | if test "$host_cpu" = ia64; then |
| 9407 | # AIX 5 supports IA64 |
| 9408 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9409 | shlibpath_var=LD_LIBRARY_PATH |
| 9410 | else |
| 9411 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9412 | # for dependence libraries. The import file would start with |
| 9413 | # the line `#! .'. This would cause the generated library to |
| 9414 | # depend on `.', always an invalid library. This was fixed in |
| 9415 | # development snapshots of GCC prior to 3.0. |
| 9416 | case $host_os in |
| 9417 | aix4 | aix4.[01] | aix4.[01].*) |
| 9418 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9419 | echo ' yes ' |
| 9420 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9421 | : |
| 9422 | else |
| 9423 | can_build_shared=no |
| 9424 | fi |
| 9425 | ;; |
| 9426 | esac |
| 9427 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9428 | # soname into executable. Probably we can add versioning support to |
| 9429 | # collect2, so additional links can be useful in future. |
| 9430 | if test "$aix_use_runtimelinking" = yes; then |
| 9431 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9432 | # instead of lib<name>.a to let people know that these are not |
| 9433 | # typical AIX shared libraries. |
| 9434 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9435 | else |
| 9436 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9437 | # and later when we are not doing run time linking. |
| 9438 | library_names_spec='${libname}${release}.a $libname.a' |
| 9439 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9440 | fi |
| 9441 | shlibpath_var=LIBPATH |
| 9442 | fi |
| 9443 | ;; |
| 9444 | |
| 9445 | amigaos*) |
| 9446 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9447 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9448 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 9449 | ;; |
| 9450 | |
| 9451 | beos*) |
| 9452 | library_names_spec='${libname}${shared_ext}' |
| 9453 | dynamic_linker="$host_os ld.so" |
| 9454 | shlibpath_var=LIBRARY_PATH |
| 9455 | ;; |
| 9456 | |
| 9457 | bsdi[45]*) |
| 9458 | version_type=linux |
| 9459 | need_version=no |
| 9460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9461 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9462 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9463 | shlibpath_var=LD_LIBRARY_PATH |
| 9464 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9465 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9466 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9467 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9468 | # libtool to hard-code these into programs |
| 9469 | ;; |
| 9470 | |
| 9471 | cygwin* | mingw* | pw32*) |
| 9472 | version_type=windows |
| 9473 | shrext_cmds=".dll" |
| 9474 | need_version=no |
| 9475 | need_lib_prefix=no |
| 9476 | |
| 9477 | case $GCC,$host_os in |
| 9478 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9479 | library_names_spec='$libname.dll.a' |
| 9480 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9481 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9482 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9483 | dldir=$destdir/`dirname \$dlpath`~ |
| 9484 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9485 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9486 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9487 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9488 | dlpath=$dir/\$dldll~ |
| 9489 | $rm \$dlpath' |
| 9490 | shlibpath_overrides_runpath=yes |
| 9491 | |
| 9492 | case $host_os in |
| 9493 | cygwin*) |
| 9494 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9495 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9496 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9497 | ;; |
| 9498 | mingw*) |
| 9499 | # MinGW DLLs use traditional 'lib' prefix |
| 9500 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9501 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9502 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9503 | # It is most probably a Windows format PATH printed by |
| 9504 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9505 | # path with ; separators, and with drive letters. We can handle the |
| 9506 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9507 | # especially as we might pass files found there to a mingw objdump, |
| 9508 | # which wouldn't understand a cygwinified path. Ahh. |
| 9509 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9510 | else |
| 9511 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9512 | fi |
| 9513 | ;; |
| 9514 | pw32*) |
| 9515 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9516 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9517 | ;; |
| 9518 | esac |
| 9519 | ;; |
| 9520 | |
| 9521 | *) |
| 9522 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9523 | ;; |
| 9524 | esac |
| 9525 | dynamic_linker='Win32 ld.exe' |
| 9526 | # FIXME: first we should search . and the directory the executable is in |
| 9527 | shlibpath_var=PATH |
| 9528 | ;; |
| 9529 | |
| 9530 | darwin* | rhapsody*) |
| 9531 | dynamic_linker="$host_os dyld" |
| 9532 | version_type=darwin |
| 9533 | need_lib_prefix=no |
| 9534 | need_version=no |
| 9535 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9536 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9537 | shlibpath_overrides_runpath=yes |
| 9538 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9539 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9540 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9541 | if test "$GCC" = yes; then |
| 9542 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 9543 | else |
| 9544 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9545 | fi |
| 9546 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9547 | ;; |
| 9548 | |
| 9549 | dgux*) |
| 9550 | version_type=linux |
| 9551 | need_lib_prefix=no |
| 9552 | need_version=no |
| 9553 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9554 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9555 | shlibpath_var=LD_LIBRARY_PATH |
| 9556 | ;; |
| 9557 | |
| 9558 | freebsd1*) |
| 9559 | dynamic_linker=no |
| 9560 | ;; |
| 9561 | |
| 9562 | kfreebsd*-gnu) |
| 9563 | version_type=linux |
| 9564 | need_lib_prefix=no |
| 9565 | need_version=no |
| 9566 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9567 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9568 | shlibpath_var=LD_LIBRARY_PATH |
| 9569 | shlibpath_overrides_runpath=no |
| 9570 | hardcode_into_libs=yes |
| 9571 | dynamic_linker='GNU ld.so' |
| 9572 | ;; |
| 9573 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9574 | freebsd* | dragonfly*) |
| 9575 | # DragonFly does not have aout. When/if they implement a new |
| 9576 | # versioning mechanism, adjust this. |
| 9577 | if test -x /usr/bin/objformat; then |
| 9578 | objformat=`/usr/bin/objformat` |
| 9579 | else |
| 9580 | case $host_os in |
| 9581 | freebsd[123]*) objformat=aout ;; |
| 9582 | *) objformat=elf ;; |
| 9583 | esac |
| 9584 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9585 | version_type=freebsd-$objformat |
| 9586 | case $version_type in |
| 9587 | freebsd-elf*) |
| 9588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9589 | need_version=no |
| 9590 | need_lib_prefix=no |
| 9591 | ;; |
| 9592 | freebsd-*) |
| 9593 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9594 | need_version=yes |
| 9595 | ;; |
| 9596 | esac |
| 9597 | shlibpath_var=LD_LIBRARY_PATH |
| 9598 | case $host_os in |
| 9599 | freebsd2*) |
| 9600 | shlibpath_overrides_runpath=yes |
| 9601 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9602 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9603 | shlibpath_overrides_runpath=yes |
| 9604 | hardcode_into_libs=yes |
| 9605 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9606 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9607 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9608 | shlibpath_overrides_runpath=no |
| 9609 | hardcode_into_libs=yes |
| 9610 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9611 | freebsd*) # from 4.6 on |
| 9612 | shlibpath_overrides_runpath=yes |
| 9613 | hardcode_into_libs=yes |
| 9614 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9615 | esac |
| 9616 | ;; |
| 9617 | |
| 9618 | gnu*) |
| 9619 | version_type=linux |
| 9620 | need_lib_prefix=no |
| 9621 | need_version=no |
| 9622 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9623 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9624 | shlibpath_var=LD_LIBRARY_PATH |
| 9625 | hardcode_into_libs=yes |
| 9626 | ;; |
| 9627 | |
| 9628 | hpux9* | hpux10* | hpux11*) |
| 9629 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9630 | # link against other versions. |
| 9631 | version_type=sunos |
| 9632 | need_lib_prefix=no |
| 9633 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9634 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9635 | ia64*) |
| 9636 | shrext_cmds='.so' |
| 9637 | hardcode_into_libs=yes |
| 9638 | dynamic_linker="$host_os dld.so" |
| 9639 | shlibpath_var=LD_LIBRARY_PATH |
| 9640 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9641 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9642 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9643 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9644 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9645 | else |
| 9646 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9647 | fi |
| 9648 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9649 | ;; |
| 9650 | hppa*64*) |
| 9651 | shrext_cmds='.sl' |
| 9652 | hardcode_into_libs=yes |
| 9653 | dynamic_linker="$host_os dld.sl" |
| 9654 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9655 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9657 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9658 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9659 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9660 | ;; |
| 9661 | *) |
| 9662 | shrext_cmds='.sl' |
| 9663 | dynamic_linker="$host_os dld.sl" |
| 9664 | shlibpath_var=SHLIB_PATH |
| 9665 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9666 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9667 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9668 | ;; |
| 9669 | esac |
| 9670 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9671 | postinstall_cmds='chmod 555 $lib' |
| 9672 | ;; |
| 9673 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9674 | interix3*) |
| 9675 | version_type=linux |
| 9676 | need_lib_prefix=no |
| 9677 | need_version=no |
| 9678 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9679 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9680 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9681 | shlibpath_var=LD_LIBRARY_PATH |
| 9682 | shlibpath_overrides_runpath=no |
| 9683 | hardcode_into_libs=yes |
| 9684 | ;; |
| 9685 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9686 | irix5* | irix6* | nonstopux*) |
| 9687 | case $host_os in |
| 9688 | nonstopux*) version_type=nonstopux ;; |
| 9689 | *) |
| 9690 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9691 | version_type=linux |
| 9692 | else |
| 9693 | version_type=irix |
| 9694 | fi ;; |
| 9695 | esac |
| 9696 | need_lib_prefix=no |
| 9697 | need_version=no |
| 9698 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9699 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9700 | case $host_os in |
| 9701 | irix5* | nonstopux*) |
| 9702 | libsuff= shlibsuff= |
| 9703 | ;; |
| 9704 | *) |
| 9705 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9706 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9707 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9708 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9709 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9710 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9711 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9712 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9713 | esac |
| 9714 | ;; |
| 9715 | esac |
| 9716 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9717 | shlibpath_overrides_runpath=no |
| 9718 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9719 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9720 | hardcode_into_libs=yes |
| 9721 | ;; |
| 9722 | |
| 9723 | # No shared lib support for Linux oldld, aout, or coff. |
| 9724 | linux*oldld* | linux*aout* | linux*coff*) |
| 9725 | dynamic_linker=no |
| 9726 | ;; |
| 9727 | |
| 9728 | # This must be Linux ELF. |
| 9729 | linux*) |
| 9730 | version_type=linux |
| 9731 | need_lib_prefix=no |
| 9732 | need_version=no |
| 9733 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9734 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9735 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9736 | shlibpath_var=LD_LIBRARY_PATH |
| 9737 | shlibpath_overrides_runpath=no |
| 9738 | # This implies no fast_install, which is unacceptable. |
| 9739 | # Some rework will be needed to allow for fast_install |
| 9740 | # before this can be enabled. |
| 9741 | hardcode_into_libs=yes |
| 9742 | |
| 9743 | # Append ld.so.conf contents to the search path |
| 9744 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9745 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9746 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9747 | fi |
| 9748 | |
| 9749 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9750 | # powerpc, because MkLinux only supported shared libraries with the |
| 9751 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9752 | # most powerpc-linux boxes support dynamic linking these days and |
| 9753 | # people can always --disable-shared, the test was removed, and we |
| 9754 | # assume the GNU/Linux dynamic linker is in use. |
| 9755 | dynamic_linker='GNU/Linux ld.so' |
| 9756 | ;; |
| 9757 | |
| 9758 | knetbsd*-gnu) |
| 9759 | version_type=linux |
| 9760 | need_lib_prefix=no |
| 9761 | need_version=no |
| 9762 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9763 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9764 | shlibpath_var=LD_LIBRARY_PATH |
| 9765 | shlibpath_overrides_runpath=no |
| 9766 | hardcode_into_libs=yes |
| 9767 | dynamic_linker='GNU ld.so' |
| 9768 | ;; |
| 9769 | |
| 9770 | netbsd*) |
| 9771 | version_type=sunos |
| 9772 | need_lib_prefix=no |
| 9773 | need_version=no |
| 9774 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9775 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9776 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9777 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9778 | else |
| 9779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9780 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9781 | dynamic_linker='NetBSD ld.elf_so' |
| 9782 | fi |
| 9783 | shlibpath_var=LD_LIBRARY_PATH |
| 9784 | shlibpath_overrides_runpath=yes |
| 9785 | hardcode_into_libs=yes |
| 9786 | ;; |
| 9787 | |
| 9788 | newsos6) |
| 9789 | version_type=linux |
| 9790 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9791 | shlibpath_var=LD_LIBRARY_PATH |
| 9792 | shlibpath_overrides_runpath=yes |
| 9793 | ;; |
| 9794 | |
| 9795 | nto-qnx*) |
| 9796 | version_type=linux |
| 9797 | need_lib_prefix=no |
| 9798 | need_version=no |
| 9799 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9800 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9801 | shlibpath_var=LD_LIBRARY_PATH |
| 9802 | shlibpath_overrides_runpath=yes |
| 9803 | ;; |
| 9804 | |
| 9805 | openbsd*) |
| 9806 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9807 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9808 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9809 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9810 | case $host_os in |
| 9811 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9812 | *) need_version=no ;; |
| 9813 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9814 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9815 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9816 | shlibpath_var=LD_LIBRARY_PATH |
| 9817 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9818 | case $host_os in |
| 9819 | openbsd2.[89] | openbsd2.[89].*) |
| 9820 | shlibpath_overrides_runpath=no |
| 9821 | ;; |
| 9822 | *) |
| 9823 | shlibpath_overrides_runpath=yes |
| 9824 | ;; |
| 9825 | esac |
| 9826 | else |
| 9827 | shlibpath_overrides_runpath=yes |
| 9828 | fi |
| 9829 | ;; |
| 9830 | |
| 9831 | os2*) |
| 9832 | libname_spec='$name' |
| 9833 | shrext_cmds=".dll" |
| 9834 | need_lib_prefix=no |
| 9835 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9836 | dynamic_linker='OS/2 ld.exe' |
| 9837 | shlibpath_var=LIBPATH |
| 9838 | ;; |
| 9839 | |
| 9840 | osf3* | osf4* | osf5*) |
| 9841 | version_type=osf |
| 9842 | need_lib_prefix=no |
| 9843 | need_version=no |
| 9844 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9845 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9846 | shlibpath_var=LD_LIBRARY_PATH |
| 9847 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9848 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9849 | ;; |
| 9850 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9851 | solaris*) |
| 9852 | version_type=linux |
| 9853 | need_lib_prefix=no |
| 9854 | need_version=no |
| 9855 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9856 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9857 | shlibpath_var=LD_LIBRARY_PATH |
| 9858 | shlibpath_overrides_runpath=yes |
| 9859 | hardcode_into_libs=yes |
| 9860 | # ldd complains unless libraries are executable |
| 9861 | postinstall_cmds='chmod +x $lib' |
| 9862 | ;; |
| 9863 | |
| 9864 | sunos4*) |
| 9865 | version_type=sunos |
| 9866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9867 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9868 | shlibpath_var=LD_LIBRARY_PATH |
| 9869 | shlibpath_overrides_runpath=yes |
| 9870 | if test "$with_gnu_ld" = yes; then |
| 9871 | need_lib_prefix=no |
| 9872 | fi |
| 9873 | need_version=yes |
| 9874 | ;; |
| 9875 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9876 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9877 | version_type=linux |
| 9878 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9879 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9880 | shlibpath_var=LD_LIBRARY_PATH |
| 9881 | case $host_vendor in |
| 9882 | sni) |
| 9883 | shlibpath_overrides_runpath=no |
| 9884 | need_lib_prefix=no |
| 9885 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9886 | runpath_var=LD_RUN_PATH |
| 9887 | ;; |
| 9888 | siemens) |
| 9889 | need_lib_prefix=no |
| 9890 | ;; |
| 9891 | motorola) |
| 9892 | need_lib_prefix=no |
| 9893 | need_version=no |
| 9894 | shlibpath_overrides_runpath=no |
| 9895 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9896 | ;; |
| 9897 | esac |
| 9898 | ;; |
| 9899 | |
| 9900 | sysv4*MP*) |
| 9901 | if test -d /usr/nec ;then |
| 9902 | version_type=linux |
| 9903 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9904 | soname_spec='$libname${shared_ext}.$major' |
| 9905 | shlibpath_var=LD_LIBRARY_PATH |
| 9906 | fi |
| 9907 | ;; |
| 9908 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9909 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9910 | version_type=freebsd-elf |
| 9911 | need_lib_prefix=no |
| 9912 | need_version=no |
| 9913 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9914 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9915 | shlibpath_var=LD_LIBRARY_PATH |
| 9916 | hardcode_into_libs=yes |
| 9917 | if test "$with_gnu_ld" = yes; then |
| 9918 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9919 | shlibpath_overrides_runpath=no |
| 9920 | else |
| 9921 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9922 | shlibpath_overrides_runpath=yes |
| 9923 | case $host_os in |
| 9924 | sco3.2v5*) |
| 9925 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9926 | ;; |
| 9927 | esac |
| 9928 | fi |
| 9929 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9930 | ;; |
| 9931 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9932 | uts4*) |
| 9933 | version_type=linux |
| 9934 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9935 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9936 | shlibpath_var=LD_LIBRARY_PATH |
| 9937 | ;; |
| 9938 | |
| 9939 | *) |
| 9940 | dynamic_linker=no |
| 9941 | ;; |
| 9942 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9943 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9944 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9945 | test "$dynamic_linker" = no && can_build_shared=no |
| 9946 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9947 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9948 | if test "$GCC" = yes; then |
| 9949 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9950 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9951 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9952 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9953 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9954 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 9955 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9957 | else |
| 9958 | |
| 9959 | module=yes |
| 9960 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9961 | |
| 9962 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9963 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9964 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9965 | if test -n "$libltdl_cv_shlibext"; then |
| 9966 | |
| 9967 | cat >>confdefs.h <<_ACEOF |
| 9968 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9969 | _ACEOF |
| 9970 | |
| 9971 | fi |
| 9972 | |
| 9973 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9974 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9975 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 9976 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9978 | else |
| 9979 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9980 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9981 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9982 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9983 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9984 | |
| 9985 | cat >>confdefs.h <<_ACEOF |
| 9986 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9987 | _ACEOF |
| 9988 | |
| 9989 | fi |
| 9990 | |
| 9991 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9992 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9993 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 9994 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9996 | else |
| 9997 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9998 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9999 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 10000 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10001 | if test -n "$libltdl_cv_sys_search_path"; then |
| 10002 | sys_search_path= |
| 10003 | for dir in $libltdl_cv_sys_search_path; do |
| 10004 | if test -z "$sys_search_path"; then |
| 10005 | sys_search_path="$dir" |
| 10006 | else |
| 10007 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 10008 | fi |
| 10009 | done |
| 10010 | |
| 10011 | cat >>confdefs.h <<_ACEOF |
| 10012 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 10013 | _ACEOF |
| 10014 | |
| 10015 | fi |
| 10016 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10017 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 10018 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 10019 | if test "${libltdl_cv_objdir+set}" = set; then |
| 10020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10021 | else |
| 10022 | libltdl_cv_objdir="$objdir" |
| 10023 | if test -n "$objdir"; then |
| 10024 | : |
| 10025 | else |
| 10026 | rm -f .libs 2>/dev/null |
| 10027 | mkdir .libs 2>/dev/null |
| 10028 | if test -d .libs; then |
| 10029 | libltdl_cv_objdir=.libs |
| 10030 | else |
| 10031 | # MS-DOS does not allow filenames that begin with a dot. |
| 10032 | libltdl_cv_objdir=_libs |
| 10033 | fi |
| 10034 | rmdir .libs 2>/dev/null |
| 10035 | fi |
| 10036 | |
| 10037 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10038 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 10039 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10040 | |
| 10041 | cat >>confdefs.h <<_ACEOF |
| 10042 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 10043 | _ACEOF |
| 10044 | |
| 10045 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10046 | |
| 10047 | |
| 10048 | |
| 10049 | |
| 10050 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10051 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 10052 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 10053 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 10054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10055 | else |
| 10056 | |
| 10057 | # These are sane defaults that work on at least a few old systems. |
| 10058 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 10059 | |
| 10060 | # Character class describing NM global symbol codes. |
| 10061 | symcode='[BCDEGRST]' |
| 10062 | |
| 10063 | # Regexp to match symbols that can be accessed directly from C. |
| 10064 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 10065 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10066 | # Transform an extracted symbol line into a proper C declaration |
| 10067 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 10068 | |
| 10069 | # Transform an extracted symbol line into symbol name and symbol address |
| 10070 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 10071 | |
| 10072 | # Define system-specific variables. |
| 10073 | case $host_os in |
| 10074 | aix*) |
| 10075 | symcode='[BCDT]' |
| 10076 | ;; |
| 10077 | cygwin* | mingw* | pw32*) |
| 10078 | symcode='[ABCDGISTW]' |
| 10079 | ;; |
| 10080 | hpux*) # Its linker distinguishes data from code symbols |
| 10081 | if test "$host_cpu" = ia64; then |
| 10082 | symcode='[ABCDEGRST]' |
| 10083 | fi |
| 10084 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10085 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 10086 | ;; |
| 10087 | linux*) |
| 10088 | if test "$host_cpu" = ia64; then |
| 10089 | symcode='[ABCDGIRSTW]' |
| 10090 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10091 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 10092 | fi |
| 10093 | ;; |
| 10094 | irix* | nonstopux*) |
| 10095 | symcode='[BCDEGRST]' |
| 10096 | ;; |
| 10097 | osf*) |
| 10098 | symcode='[BCDEGQRST]' |
| 10099 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10100 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10101 | symcode='[BDRT]' |
| 10102 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10103 | sco3.2v5*) |
| 10104 | symcode='[DT]' |
| 10105 | ;; |
| 10106 | sysv4.2uw2*) |
| 10107 | symcode='[DT]' |
| 10108 | ;; |
| 10109 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 10110 | symcode='[ABDT]' |
| 10111 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10112 | sysv4) |
| 10113 | symcode='[DFNSTU]' |
| 10114 | ;; |
| 10115 | esac |
| 10116 | |
| 10117 | # Handle CRLF in mingw tool chain |
| 10118 | opt_cr= |
| 10119 | case $build_os in |
| 10120 | mingw*) |
| 10121 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 10122 | ;; |
| 10123 | esac |
| 10124 | |
| 10125 | # If we're using GNU nm, then use its standard symbol codes. |
| 10126 | case `$NM -V 2>&1` in |
| 10127 | *GNU* | *'with BFD'*) |
| 10128 | symcode='[ABCDGIRSTW]' ;; |
| 10129 | esac |
| 10130 | |
| 10131 | # Try without a prefix undercore, then with it. |
| 10132 | for ac_symprfx in "" "_"; do |
| 10133 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10134 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 10135 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 10136 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10137 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10138 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10139 | |
| 10140 | # Check to see that the pipe works correctly. |
| 10141 | pipe_works=no |
| 10142 | |
| 10143 | rm -f conftest* |
| 10144 | cat > conftest.$ac_ext <<EOF |
| 10145 | #ifdef __cplusplus |
| 10146 | extern "C" { |
| 10147 | #endif |
| 10148 | char nm_test_var; |
| 10149 | void nm_test_func(){} |
| 10150 | #ifdef __cplusplus |
| 10151 | } |
| 10152 | #endif |
| 10153 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 10154 | EOF |
| 10155 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10157 | (eval $ac_compile) 2>&5 |
| 10158 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10160 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10161 | # Now try to grab the symbols. |
| 10162 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10163 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10164 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 10165 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10167 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10168 | # Try sorting and uniquifying the output. |
| 10169 | if sort "$nlist" | uniq > "$nlist"T; then |
| 10170 | mv -f "$nlist"T "$nlist" |
| 10171 | else |
| 10172 | rm -f "$nlist"T |
| 10173 | fi |
| 10174 | |
| 10175 | # Make sure that we snagged all the symbols we need. |
| 10176 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 10177 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 10178 | cat <<EOF > conftest.$ac_ext |
| 10179 | #ifdef __cplusplus |
| 10180 | extern "C" { |
| 10181 | #endif |
| 10182 | |
| 10183 | EOF |
| 10184 | # Now generate the symbol file. |
| 10185 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 10186 | |
| 10187 | cat <<EOF >> conftest.$ac_ext |
| 10188 | #if defined (__STDC__) && __STDC__ |
| 10189 | # define lt_ptr_t void * |
| 10190 | #else |
| 10191 | # define lt_ptr_t char * |
| 10192 | # define const |
| 10193 | #endif |
| 10194 | |
| 10195 | /* The mapping between symbol names and symbols. */ |
| 10196 | const struct { |
| 10197 | const char *name; |
| 10198 | lt_ptr_t address; |
| 10199 | } |
| 10200 | lt_preloaded_symbols[] = |
| 10201 | { |
| 10202 | EOF |
| 10203 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10204 | cat <<\EOF >> conftest.$ac_ext |
| 10205 | {0, (lt_ptr_t) 0} |
| 10206 | }; |
| 10207 | |
| 10208 | #ifdef __cplusplus |
| 10209 | } |
| 10210 | #endif |
| 10211 | EOF |
| 10212 | # Now try linking the two files. |
| 10213 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10214 | lt_save_LIBS="$LIBS" |
| 10215 | lt_save_CFLAGS="$CFLAGS" |
| 10216 | LIBS="conftstm.$ac_objext" |
| 10217 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10218 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10219 | (eval $ac_link) 2>&5 |
| 10220 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10222 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10223 | pipe_works=yes |
| 10224 | fi |
| 10225 | LIBS="$lt_save_LIBS" |
| 10226 | CFLAGS="$lt_save_CFLAGS" |
| 10227 | else |
| 10228 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10229 | fi |
| 10230 | else |
| 10231 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10232 | fi |
| 10233 | else |
| 10234 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10235 | fi |
| 10236 | else |
| 10237 | echo "$progname: failed program was:" >&5 |
| 10238 | cat conftest.$ac_ext >&5 |
| 10239 | fi |
| 10240 | rm -f conftest* conftst* |
| 10241 | |
| 10242 | # Do not use the global_symbol_pipe unless it works. |
| 10243 | if test "$pipe_works" = yes; then |
| 10244 | break |
| 10245 | else |
| 10246 | lt_cv_sys_global_symbol_pipe= |
| 10247 | fi |
| 10248 | done |
| 10249 | |
| 10250 | fi |
| 10251 | |
| 10252 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10253 | lt_cv_sys_global_symbol_to_cdecl= |
| 10254 | fi |
| 10255 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10256 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10257 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10258 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10259 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10260 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10261 | fi |
| 10262 | |
| 10263 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10264 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10265 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 10266 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10268 | else |
| 10269 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10270 | libltdl_cv_preloaded_symbols=yes |
| 10271 | else |
| 10272 | libltdl_cv_preloaded_symbols=no |
| 10273 | fi |
| 10274 | |
| 10275 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10276 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10277 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10278 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10279 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10280 | cat >>confdefs.h <<\_ACEOF |
| 10281 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10282 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10283 | |
| 10284 | fi |
| 10285 | |
| 10286 | LIBADD_DL= |
| 10287 | |
| 10288 | ac_ext=c |
| 10289 | ac_cpp='$CPP $CPPFLAGS' |
| 10290 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10291 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10292 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10293 | |
| 10294 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10295 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10296 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 10297 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10299 | else |
| 10300 | cat >conftest.$ac_ext <<_ACEOF |
| 10301 | /* confdefs.h. */ |
| 10302 | _ACEOF |
| 10303 | cat confdefs.h >>conftest.$ac_ext |
| 10304 | cat >>conftest.$ac_ext <<_ACEOF |
| 10305 | /* end confdefs.h. */ |
| 10306 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10307 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10308 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10309 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10310 | /* System header to define __stub macros and hopefully few prototypes, |
| 10311 | which can conflict with char shl_load (); below. |
| 10312 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10313 | <limits.h> exists even on freestanding compilers. */ |
| 10314 | |
| 10315 | #ifdef __STDC__ |
| 10316 | # include <limits.h> |
| 10317 | #else |
| 10318 | # include <assert.h> |
| 10319 | #endif |
| 10320 | |
| 10321 | #undef shl_load |
| 10322 | |
| 10323 | /* Override any GCC internal prototype to avoid an error. |
| 10324 | Use char because int might match the return type of a GCC |
| 10325 | builtin and then its argument prototype would still apply. */ |
| 10326 | #ifdef __cplusplus |
| 10327 | extern "C" |
| 10328 | #endif |
| 10329 | char shl_load (); |
| 10330 | /* The GNU C library defines this for functions which it implements |
| 10331 | to always fail with ENOSYS. Some functions are actually named |
| 10332 | something starting with __ and the normal name is an alias. */ |
| 10333 | #if defined __stub_shl_load || defined __stub___shl_load |
| 10334 | choke me |
| 10335 | #endif |
| 10336 | |
| 10337 | int |
| 10338 | main () |
| 10339 | { |
| 10340 | return shl_load (); |
| 10341 | ; |
| 10342 | return 0; |
| 10343 | } |
| 10344 | _ACEOF |
| 10345 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10346 | if { (ac_try="$ac_link" |
| 10347 | case "(($ac_try" in |
| 10348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10349 | *) ac_try_echo=$ac_try;; |
| 10350 | esac |
| 10351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10352 | (eval "$ac_link") 2>conftest.er1 |
| 10353 | ac_status=$? |
| 10354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10355 | rm -f conftest.er1 |
| 10356 | cat conftest.err >&5 |
| 10357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10358 | (exit $ac_status); } && |
| 10359 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10360 | { (case "(($ac_try" in |
| 10361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10362 | *) ac_try_echo=$ac_try;; |
| 10363 | esac |
| 10364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10365 | (eval "$ac_try") 2>&5 |
| 10366 | ac_status=$? |
| 10367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10368 | (exit $ac_status); }; } && |
| 10369 | { ac_try='test -s conftest$ac_exeext' |
| 10370 | { (case "(($ac_try" in |
| 10371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10372 | *) ac_try_echo=$ac_try;; |
| 10373 | esac |
| 10374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10375 | (eval "$ac_try") 2>&5 |
| 10376 | ac_status=$? |
| 10377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10378 | (exit $ac_status); }; }; then |
| 10379 | ac_cv_func_shl_load=yes |
| 10380 | else |
| 10381 | echo "$as_me: failed program was:" >&5 |
| 10382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10383 | |
| 10384 | ac_cv_func_shl_load=no |
| 10385 | fi |
| 10386 | |
| 10387 | rm -f core conftest.err conftest.$ac_objext \ |
| 10388 | conftest$ac_exeext conftest.$ac_ext |
| 10389 | fi |
| 10390 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10391 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 10392 | if test $ac_cv_func_shl_load = yes; then |
| 10393 | |
| 10394 | cat >>confdefs.h <<\_ACEOF |
| 10395 | #define HAVE_SHL_LOAD 1 |
| 10396 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10397 | |
| 10398 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10399 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10400 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 10401 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10403 | else |
| 10404 | ac_check_lib_save_LIBS=$LIBS |
| 10405 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10406 | cat >conftest.$ac_ext <<_ACEOF |
| 10407 | /* confdefs.h. */ |
| 10408 | _ACEOF |
| 10409 | cat confdefs.h >>conftest.$ac_ext |
| 10410 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10411 | /* end confdefs.h. */ |
| 10412 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10413 | /* Override any GCC internal prototype to avoid an error. |
| 10414 | Use char because int might match the return type of a GCC |
| 10415 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10416 | #ifdef __cplusplus |
| 10417 | extern "C" |
| 10418 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10419 | char shl_load (); |
| 10420 | int |
| 10421 | main () |
| 10422 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10423 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10424 | ; |
| 10425 | return 0; |
| 10426 | } |
| 10427 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10428 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10429 | if { (ac_try="$ac_link" |
| 10430 | case "(($ac_try" in |
| 10431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10432 | *) ac_try_echo=$ac_try;; |
| 10433 | esac |
| 10434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10435 | (eval "$ac_link") 2>conftest.er1 |
| 10436 | ac_status=$? |
| 10437 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10438 | rm -f conftest.er1 |
| 10439 | cat conftest.err >&5 |
| 10440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10441 | (exit $ac_status); } && |
| 10442 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10443 | { (case "(($ac_try" in |
| 10444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10445 | *) ac_try_echo=$ac_try;; |
| 10446 | esac |
| 10447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10448 | (eval "$ac_try") 2>&5 |
| 10449 | ac_status=$? |
| 10450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10451 | (exit $ac_status); }; } && |
| 10452 | { ac_try='test -s conftest$ac_exeext' |
| 10453 | { (case "(($ac_try" in |
| 10454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10455 | *) ac_try_echo=$ac_try;; |
| 10456 | esac |
| 10457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10458 | (eval "$ac_try") 2>&5 |
| 10459 | ac_status=$? |
| 10460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10461 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10462 | ac_cv_lib_dld_shl_load=yes |
| 10463 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10464 | echo "$as_me: failed program was:" >&5 |
| 10465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10466 | |
| 10467 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10468 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10469 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10470 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10471 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10472 | LIBS=$ac_check_lib_save_LIBS |
| 10473 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10474 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10475 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 10476 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10477 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10478 | cat >>confdefs.h <<\_ACEOF |
| 10479 | #define HAVE_SHL_LOAD 1 |
| 10480 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10481 | |
| 10482 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10483 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10484 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10485 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 10486 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10488 | else |
| 10489 | ac_check_lib_save_LIBS=$LIBS |
| 10490 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10491 | cat >conftest.$ac_ext <<_ACEOF |
| 10492 | /* confdefs.h. */ |
| 10493 | _ACEOF |
| 10494 | cat confdefs.h >>conftest.$ac_ext |
| 10495 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10496 | /* end confdefs.h. */ |
| 10497 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10498 | /* Override any GCC internal prototype to avoid an error. |
| 10499 | Use char because int might match the return type of a GCC |
| 10500 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10501 | #ifdef __cplusplus |
| 10502 | extern "C" |
| 10503 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10504 | char dlopen (); |
| 10505 | int |
| 10506 | main () |
| 10507 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10508 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10509 | ; |
| 10510 | return 0; |
| 10511 | } |
| 10512 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10513 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10514 | if { (ac_try="$ac_link" |
| 10515 | case "(($ac_try" in |
| 10516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10517 | *) ac_try_echo=$ac_try;; |
| 10518 | esac |
| 10519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10520 | (eval "$ac_link") 2>conftest.er1 |
| 10521 | ac_status=$? |
| 10522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10523 | rm -f conftest.er1 |
| 10524 | cat conftest.err >&5 |
| 10525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10526 | (exit $ac_status); } && |
| 10527 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10528 | { (case "(($ac_try" in |
| 10529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10530 | *) ac_try_echo=$ac_try;; |
| 10531 | esac |
| 10532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10533 | (eval "$ac_try") 2>&5 |
| 10534 | ac_status=$? |
| 10535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10536 | (exit $ac_status); }; } && |
| 10537 | { ac_try='test -s conftest$ac_exeext' |
| 10538 | { (case "(($ac_try" in |
| 10539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10540 | *) ac_try_echo=$ac_try;; |
| 10541 | esac |
| 10542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10543 | (eval "$ac_try") 2>&5 |
| 10544 | ac_status=$? |
| 10545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10546 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10547 | ac_cv_lib_dl_dlopen=yes |
| 10548 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10549 | echo "$as_me: failed program was:" >&5 |
| 10550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10551 | |
| 10552 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10553 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10554 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10555 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10556 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10557 | LIBS=$ac_check_lib_save_LIBS |
| 10558 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10559 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10560 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 10561 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10562 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10563 | cat >>confdefs.h <<\_ACEOF |
| 10564 | #define HAVE_LIBDL 1 |
| 10565 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10566 | |
| 10567 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10568 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10569 | cat >conftest.$ac_ext <<_ACEOF |
| 10570 | /* confdefs.h. */ |
| 10571 | _ACEOF |
| 10572 | cat confdefs.h >>conftest.$ac_ext |
| 10573 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10574 | /* end confdefs.h. */ |
| 10575 | #if HAVE_DLFCN_H |
| 10576 | # include <dlfcn.h> |
| 10577 | #endif |
| 10578 | |
| 10579 | int |
| 10580 | main () |
| 10581 | { |
| 10582 | dlopen(0, 0); |
| 10583 | ; |
| 10584 | return 0; |
| 10585 | } |
| 10586 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10587 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10588 | if { (ac_try="$ac_link" |
| 10589 | case "(($ac_try" in |
| 10590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10591 | *) ac_try_echo=$ac_try;; |
| 10592 | esac |
| 10593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10594 | (eval "$ac_link") 2>conftest.er1 |
| 10595 | ac_status=$? |
| 10596 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10597 | rm -f conftest.er1 |
| 10598 | cat conftest.err >&5 |
| 10599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10600 | (exit $ac_status); } && |
| 10601 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10602 | { (case "(($ac_try" in |
| 10603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10604 | *) ac_try_echo=$ac_try;; |
| 10605 | esac |
| 10606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10607 | (eval "$ac_try") 2>&5 |
| 10608 | ac_status=$? |
| 10609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10610 | (exit $ac_status); }; } && |
| 10611 | { ac_try='test -s conftest$ac_exeext' |
| 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_try") 2>&5 |
| 10618 | ac_status=$? |
| 10619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10620 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10621 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10622 | cat >>confdefs.h <<\_ACEOF |
| 10623 | #define HAVE_LIBDL 1 |
| 10624 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10625 | libltdl_cv_func_dlopen="yes" |
| 10626 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10627 | echo "$as_me: failed program was:" >&5 |
| 10628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10629 | |
| 10630 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10631 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 10632 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10634 | else |
| 10635 | ac_check_lib_save_LIBS=$LIBS |
| 10636 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10637 | cat >conftest.$ac_ext <<_ACEOF |
| 10638 | /* confdefs.h. */ |
| 10639 | _ACEOF |
| 10640 | cat confdefs.h >>conftest.$ac_ext |
| 10641 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10642 | /* end confdefs.h. */ |
| 10643 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10644 | /* Override any GCC internal prototype to avoid an error. |
| 10645 | Use char because int might match the return type of a GCC |
| 10646 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10647 | #ifdef __cplusplus |
| 10648 | extern "C" |
| 10649 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10650 | char dlopen (); |
| 10651 | int |
| 10652 | main () |
| 10653 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10654 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10655 | ; |
| 10656 | return 0; |
| 10657 | } |
| 10658 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10659 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10660 | if { (ac_try="$ac_link" |
| 10661 | case "(($ac_try" in |
| 10662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10663 | *) ac_try_echo=$ac_try;; |
| 10664 | esac |
| 10665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10666 | (eval "$ac_link") 2>conftest.er1 |
| 10667 | ac_status=$? |
| 10668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10669 | rm -f conftest.er1 |
| 10670 | cat conftest.err >&5 |
| 10671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10672 | (exit $ac_status); } && |
| 10673 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10674 | { (case "(($ac_try" in |
| 10675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10676 | *) ac_try_echo=$ac_try;; |
| 10677 | esac |
| 10678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10679 | (eval "$ac_try") 2>&5 |
| 10680 | ac_status=$? |
| 10681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10682 | (exit $ac_status); }; } && |
| 10683 | { ac_try='test -s conftest$ac_exeext' |
| 10684 | { (case "(($ac_try" in |
| 10685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10686 | *) ac_try_echo=$ac_try;; |
| 10687 | esac |
| 10688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10689 | (eval "$ac_try") 2>&5 |
| 10690 | ac_status=$? |
| 10691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10692 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10693 | ac_cv_lib_svld_dlopen=yes |
| 10694 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10695 | echo "$as_me: failed program was:" >&5 |
| 10696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10697 | |
| 10698 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10699 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10700 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10701 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10702 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10703 | LIBS=$ac_check_lib_save_LIBS |
| 10704 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10705 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10706 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 10707 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10708 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10709 | cat >>confdefs.h <<\_ACEOF |
| 10710 | #define HAVE_LIBDL 1 |
| 10711 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10712 | |
| 10713 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10714 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10715 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10716 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 10717 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10719 | else |
| 10720 | ac_check_lib_save_LIBS=$LIBS |
| 10721 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10722 | cat >conftest.$ac_ext <<_ACEOF |
| 10723 | /* confdefs.h. */ |
| 10724 | _ACEOF |
| 10725 | cat confdefs.h >>conftest.$ac_ext |
| 10726 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10727 | /* end confdefs.h. */ |
| 10728 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10729 | /* Override any GCC internal prototype to avoid an error. |
| 10730 | Use char because int might match the return type of a GCC |
| 10731 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10732 | #ifdef __cplusplus |
| 10733 | extern "C" |
| 10734 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10735 | char dld_link (); |
| 10736 | int |
| 10737 | main () |
| 10738 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10739 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10740 | ; |
| 10741 | return 0; |
| 10742 | } |
| 10743 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10744 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10745 | if { (ac_try="$ac_link" |
| 10746 | case "(($ac_try" in |
| 10747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10748 | *) ac_try_echo=$ac_try;; |
| 10749 | esac |
| 10750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10751 | (eval "$ac_link") 2>conftest.er1 |
| 10752 | ac_status=$? |
| 10753 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10754 | rm -f conftest.er1 |
| 10755 | cat conftest.err >&5 |
| 10756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10757 | (exit $ac_status); } && |
| 10758 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10759 | { (case "(($ac_try" in |
| 10760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10761 | *) ac_try_echo=$ac_try;; |
| 10762 | esac |
| 10763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10764 | (eval "$ac_try") 2>&5 |
| 10765 | ac_status=$? |
| 10766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10767 | (exit $ac_status); }; } && |
| 10768 | { ac_try='test -s conftest$ac_exeext' |
| 10769 | { (case "(($ac_try" in |
| 10770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10771 | *) ac_try_echo=$ac_try;; |
| 10772 | esac |
| 10773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10774 | (eval "$ac_try") 2>&5 |
| 10775 | ac_status=$? |
| 10776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10777 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10778 | ac_cv_lib_dld_dld_link=yes |
| 10779 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10780 | echo "$as_me: failed program was:" >&5 |
| 10781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10782 | |
| 10783 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10784 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10785 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10786 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10787 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10788 | LIBS=$ac_check_lib_save_LIBS |
| 10789 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10790 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10791 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 10792 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10793 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10794 | cat >>confdefs.h <<\_ACEOF |
| 10795 | #define HAVE_DLD 1 |
| 10796 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10797 | |
| 10798 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10799 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10800 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10801 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 10802 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10804 | else |
| 10805 | cat >conftest.$ac_ext <<_ACEOF |
| 10806 | /* confdefs.h. */ |
| 10807 | _ACEOF |
| 10808 | cat confdefs.h >>conftest.$ac_ext |
| 10809 | cat >>conftest.$ac_ext <<_ACEOF |
| 10810 | /* end confdefs.h. */ |
| 10811 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10812 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10813 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10814 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10815 | /* System header to define __stub macros and hopefully few prototypes, |
| 10816 | which can conflict with char _dyld_func_lookup (); below. |
| 10817 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10818 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10819 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10820 | #ifdef __STDC__ |
| 10821 | # include <limits.h> |
| 10822 | #else |
| 10823 | # include <assert.h> |
| 10824 | #endif |
| 10825 | |
| 10826 | #undef _dyld_func_lookup |
| 10827 | |
| 10828 | /* Override any GCC internal prototype to avoid an error. |
| 10829 | Use char because int might match the return type of a GCC |
| 10830 | builtin and then its argument prototype would still apply. */ |
| 10831 | #ifdef __cplusplus |
| 10832 | extern "C" |
| 10833 | #endif |
| 10834 | char _dyld_func_lookup (); |
| 10835 | /* The GNU C library defines this for functions which it implements |
| 10836 | to always fail with ENOSYS. Some functions are actually named |
| 10837 | something starting with __ and the normal name is an alias. */ |
| 10838 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 10839 | choke me |
| 10840 | #endif |
| 10841 | |
| 10842 | int |
| 10843 | main () |
| 10844 | { |
| 10845 | return _dyld_func_lookup (); |
| 10846 | ; |
| 10847 | return 0; |
| 10848 | } |
| 10849 | _ACEOF |
| 10850 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10851 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 10858 | ac_status=$? |
| 10859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10860 | rm -f conftest.er1 |
| 10861 | cat conftest.err >&5 |
| 10862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10863 | (exit $ac_status); } && |
| 10864 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10865 | { (case "(($ac_try" in |
| 10866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10867 | *) ac_try_echo=$ac_try;; |
| 10868 | esac |
| 10869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10870 | (eval "$ac_try") 2>&5 |
| 10871 | ac_status=$? |
| 10872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10873 | (exit $ac_status); }; } && |
| 10874 | { ac_try='test -s conftest$ac_exeext' |
| 10875 | { (case "(($ac_try" in |
| 10876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10877 | *) ac_try_echo=$ac_try;; |
| 10878 | esac |
| 10879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10880 | (eval "$ac_try") 2>&5 |
| 10881 | ac_status=$? |
| 10882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10883 | (exit $ac_status); }; }; then |
| 10884 | ac_cv_func__dyld_func_lookup=yes |
| 10885 | else |
| 10886 | echo "$as_me: failed program was:" >&5 |
| 10887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10888 | |
| 10889 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10890 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10891 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10892 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10893 | conftest$ac_exeext conftest.$ac_ext |
| 10894 | fi |
| 10895 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10896 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 10897 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10898 | |
| 10899 | cat >>confdefs.h <<\_ACEOF |
| 10900 | #define HAVE_DYLD 1 |
| 10901 | _ACEOF |
| 10902 | |
| 10903 | fi |
| 10904 | |
| 10905 | |
| 10906 | fi |
| 10907 | |
| 10908 | |
| 10909 | fi |
| 10910 | |
| 10911 | |
| 10912 | fi |
| 10913 | |
| 10914 | rm -f core conftest.err conftest.$ac_objext \ |
| 10915 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10916 | |
| 10917 | fi |
| 10918 | |
| 10919 | |
| 10920 | fi |
| 10921 | |
| 10922 | |
| 10923 | fi |
| 10924 | |
| 10925 | |
| 10926 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10927 | then |
| 10928 | lt_save_LIBS="$LIBS" |
| 10929 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10930 | |
| 10931 | for ac_func in dlerror |
| 10932 | do |
| 10933 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10934 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10935 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10936 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10938 | else |
| 10939 | cat >conftest.$ac_ext <<_ACEOF |
| 10940 | /* confdefs.h. */ |
| 10941 | _ACEOF |
| 10942 | cat confdefs.h >>conftest.$ac_ext |
| 10943 | cat >>conftest.$ac_ext <<_ACEOF |
| 10944 | /* end confdefs.h. */ |
| 10945 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10946 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10947 | #define $ac_func innocuous_$ac_func |
| 10948 | |
| 10949 | /* System header to define __stub macros and hopefully few prototypes, |
| 10950 | which can conflict with char $ac_func (); below. |
| 10951 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10952 | <limits.h> exists even on freestanding compilers. */ |
| 10953 | |
| 10954 | #ifdef __STDC__ |
| 10955 | # include <limits.h> |
| 10956 | #else |
| 10957 | # include <assert.h> |
| 10958 | #endif |
| 10959 | |
| 10960 | #undef $ac_func |
| 10961 | |
| 10962 | /* Override any GCC internal prototype to avoid an error. |
| 10963 | Use char because int might match the return type of a GCC |
| 10964 | builtin and then its argument prototype would still apply. */ |
| 10965 | #ifdef __cplusplus |
| 10966 | extern "C" |
| 10967 | #endif |
| 10968 | char $ac_func (); |
| 10969 | /* The GNU C library defines this for functions which it implements |
| 10970 | to always fail with ENOSYS. Some functions are actually named |
| 10971 | something starting with __ and the normal name is an alias. */ |
| 10972 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 10973 | choke me |
| 10974 | #endif |
| 10975 | |
| 10976 | int |
| 10977 | main () |
| 10978 | { |
| 10979 | return $ac_func (); |
| 10980 | ; |
| 10981 | return 0; |
| 10982 | } |
| 10983 | _ACEOF |
| 10984 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10985 | if { (ac_try="$ac_link" |
| 10986 | case "(($ac_try" in |
| 10987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10988 | *) ac_try_echo=$ac_try;; |
| 10989 | esac |
| 10990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10991 | (eval "$ac_link") 2>conftest.er1 |
| 10992 | ac_status=$? |
| 10993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10994 | rm -f conftest.er1 |
| 10995 | cat conftest.err >&5 |
| 10996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10997 | (exit $ac_status); } && |
| 10998 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10999 | { (case "(($ac_try" in |
| 11000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11001 | *) ac_try_echo=$ac_try;; |
| 11002 | esac |
| 11003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11004 | (eval "$ac_try") 2>&5 |
| 11005 | ac_status=$? |
| 11006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11007 | (exit $ac_status); }; } && |
| 11008 | { ac_try='test -s conftest$ac_exeext' |
| 11009 | { (case "(($ac_try" in |
| 11010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11011 | *) ac_try_echo=$ac_try;; |
| 11012 | esac |
| 11013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11014 | (eval "$ac_try") 2>&5 |
| 11015 | ac_status=$? |
| 11016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11017 | (exit $ac_status); }; }; then |
| 11018 | eval "$as_ac_var=yes" |
| 11019 | else |
| 11020 | echo "$as_me: failed program was:" >&5 |
| 11021 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11022 | |
| 11023 | eval "$as_ac_var=no" |
| 11024 | fi |
| 11025 | |
| 11026 | rm -f core conftest.err conftest.$ac_objext \ |
| 11027 | conftest$ac_exeext conftest.$ac_ext |
| 11028 | fi |
| 11029 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11030 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11031 | echo "${ECHO_T}$ac_res" >&6; } |
| 11032 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11033 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11034 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11035 | _ACEOF |
| 11036 | |
| 11037 | fi |
| 11038 | done |
| 11039 | |
| 11040 | LIBS="$lt_save_LIBS" |
| 11041 | fi |
| 11042 | ac_ext=c |
| 11043 | ac_cpp='$CPP $CPPFLAGS' |
| 11044 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11045 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11046 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11047 | |
| 11048 | |
| 11049 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11050 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 11051 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 11052 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 11053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11054 | else |
| 11055 | ac_cv_sys_symbol_underscore=no |
| 11056 | cat > conftest.$ac_ext <<EOF |
| 11057 | void nm_test_func(){} |
| 11058 | int main(){nm_test_func;return 0;} |
| 11059 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11061 | (eval $ac_compile) 2>&5 |
| 11062 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11064 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11065 | # Now try to grab the symbols. |
| 11066 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11067 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11068 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 11069 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11071 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11072 | # See whether the symbols have a leading underscore. |
| 11073 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 11074 | ac_cv_sys_symbol_underscore=yes |
| 11075 | else |
| 11076 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 11077 | : |
| 11078 | else |
| 11079 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 11080 | fi |
| 11081 | fi |
| 11082 | else |
| 11083 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11084 | fi |
| 11085 | else |
| 11086 | echo "configure: failed program was:" >&5 |
| 11087 | cat conftest.c >&5 |
| 11088 | fi |
| 11089 | rm -rf conftest* |
| 11090 | |
| 11091 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11092 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 11093 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11094 | |
| 11095 | |
| 11096 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 11097 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 11098 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11099 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 11100 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 11101 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 11102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11103 | else |
| 11104 | libltdl_cv_need_uscore=unknown |
| 11105 | save_LIBS="$LIBS" |
| 11106 | LIBS="$LIBS $LIBADD_DL" |
| 11107 | if test "$cross_compiling" = yes; then : |
| 11108 | libltdl_cv_need_uscore=cross |
| 11109 | else |
| 11110 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11111 | lt_status=$lt_dlunknown |
| 11112 | cat > conftest.$ac_ext <<EOF |
Jeffrey Yasskin | 407fbdd | 2010-02-23 20:53:37 +0000 | [diff] [blame] | 11113 | #line 11108 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11114 | #include "confdefs.h" |
| 11115 | |
| 11116 | #if HAVE_DLFCN_H |
| 11117 | #include <dlfcn.h> |
| 11118 | #endif |
| 11119 | |
| 11120 | #include <stdio.h> |
| 11121 | |
| 11122 | #ifdef RTLD_GLOBAL |
| 11123 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11124 | #else |
| 11125 | # ifdef DL_GLOBAL |
| 11126 | # define LT_DLGLOBAL DL_GLOBAL |
| 11127 | # else |
| 11128 | # define LT_DLGLOBAL 0 |
| 11129 | # endif |
| 11130 | #endif |
| 11131 | |
| 11132 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11133 | find out it does not work in some platform. */ |
| 11134 | #ifndef LT_DLLAZY_OR_NOW |
| 11135 | # ifdef RTLD_LAZY |
| 11136 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11137 | # else |
| 11138 | # ifdef DL_LAZY |
| 11139 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11140 | # else |
| 11141 | # ifdef RTLD_NOW |
| 11142 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11143 | # else |
| 11144 | # ifdef DL_NOW |
| 11145 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11146 | # else |
| 11147 | # define LT_DLLAZY_OR_NOW 0 |
| 11148 | # endif |
| 11149 | # endif |
| 11150 | # endif |
| 11151 | # endif |
| 11152 | #endif |
| 11153 | |
| 11154 | #ifdef __cplusplus |
| 11155 | extern "C" void exit (int); |
| 11156 | #endif |
| 11157 | |
| 11158 | void fnord() { int i=42;} |
| 11159 | int main () |
| 11160 | { |
| 11161 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11162 | int status = $lt_dlunknown; |
| 11163 | |
| 11164 | if (self) |
| 11165 | { |
| 11166 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11167 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11168 | /* dlclose (self); */ |
| 11169 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11170 | else |
| 11171 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11172 | |
| 11173 | exit (status); |
| 11174 | } |
| 11175 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11177 | (eval $ac_link) 2>&5 |
| 11178 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11180 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11181 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11182 | lt_status=$? |
| 11183 | case x$lt_status in |
| 11184 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 11185 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11186 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11187 | esac |
| 11188 | else : |
| 11189 | # compilation failed |
| 11190 | |
| 11191 | fi |
| 11192 | fi |
| 11193 | rm -fr conftest* |
| 11194 | |
| 11195 | LIBS="$save_LIBS" |
| 11196 | |
| 11197 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11198 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 11199 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11200 | fi |
| 11201 | fi |
| 11202 | |
| 11203 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11204 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11205 | cat >>confdefs.h <<\_ACEOF |
| 11206 | #define NEED_USCORE 1 |
| 11207 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11208 | |
| 11209 | fi |
| 11210 | |
| 11211 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11212 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11213 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 11214 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11216 | else |
| 11217 | # PORTME does your system automatically load deplibs for dlopen? |
| 11218 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11219 | # For now, we just catch OSes we know something about -- in the |
| 11220 | # future, we'll try test this programmatically. |
| 11221 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11222 | case "$host_os" in |
| 11223 | aix3*|aix4.1.*|aix4.2.*) |
| 11224 | # Unknown whether this is true for these versions of AIX, but |
| 11225 | # we want this `case' here to explicitly catch those versions. |
| 11226 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11227 | ;; |
| 11228 | aix[45]*) |
| 11229 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11230 | ;; |
| 11231 | darwin*) |
| 11232 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11233 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11234 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11235 | ;; |
| 11236 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11237 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11238 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11239 | ;; |
| 11240 | hpux10*|hpux11*) |
| 11241 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11242 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11243 | interix*) |
| 11244 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11245 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11246 | irix[12345]*|irix6.[01]*) |
| 11247 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11248 | # know how it worked for any of those versions. |
| 11249 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11250 | ;; |
| 11251 | irix*) |
| 11252 | # The case above catches anything before 6.2, and it's known that |
| 11253 | # at 6.2 and later dlopen does load deplibs. |
| 11254 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11255 | ;; |
| 11256 | netbsd*) |
| 11257 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11258 | ;; |
| 11259 | openbsd*) |
| 11260 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11261 | ;; |
| 11262 | osf[1234]*) |
| 11263 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11264 | # it did *not* use an RPATH in a shared library to find objects the |
| 11265 | # library depends on, so we explictly say `no'. |
| 11266 | libltdl_cv_sys_dlopen_deplibs=no |
| 11267 | ;; |
| 11268 | osf5.0|osf5.0a|osf5.1) |
| 11269 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11270 | # it even uses RPATH in a shared library to search for shared objects |
| 11271 | # that the library depends on, but there's no easy way to know if that |
| 11272 | # patch is installed. Since this is the case, all we can really |
| 11273 | # say is unknown -- it depends on the patch being installed. If |
| 11274 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11275 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11276 | ;; |
| 11277 | osf*) |
| 11278 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11279 | # the comments above for what we know about them. |
| 11280 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11281 | # is used to find them so we can finally say `yes'. |
| 11282 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11283 | ;; |
| 11284 | solaris*) |
| 11285 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11286 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11287 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11288 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11289 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11290 | esac |
| 11291 | |
| 11292 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11293 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11294 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11295 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11296 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11297 | cat >>confdefs.h <<\_ACEOF |
| 11298 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11299 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11300 | |
| 11301 | fi |
| 11302 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11303 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11304 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11305 | do |
| 11306 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11307 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11308 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11309 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11310 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11312 | fi |
| 11313 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11314 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11315 | echo "${ECHO_T}$ac_res" >&6; } |
| 11316 | else |
| 11317 | # Is the header compilable? |
| 11318 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11319 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11320 | cat >conftest.$ac_ext <<_ACEOF |
| 11321 | /* confdefs.h. */ |
| 11322 | _ACEOF |
| 11323 | cat confdefs.h >>conftest.$ac_ext |
| 11324 | cat >>conftest.$ac_ext <<_ACEOF |
| 11325 | /* end confdefs.h. */ |
| 11326 | $ac_includes_default |
| 11327 | #include <$ac_header> |
| 11328 | _ACEOF |
| 11329 | rm -f conftest.$ac_objext |
| 11330 | if { (ac_try="$ac_compile" |
| 11331 | case "(($ac_try" in |
| 11332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11333 | *) ac_try_echo=$ac_try;; |
| 11334 | esac |
| 11335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11336 | (eval "$ac_compile") 2>conftest.er1 |
| 11337 | ac_status=$? |
| 11338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11339 | rm -f conftest.er1 |
| 11340 | cat conftest.err >&5 |
| 11341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11342 | (exit $ac_status); } && |
| 11343 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11344 | { (case "(($ac_try" in |
| 11345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11346 | *) ac_try_echo=$ac_try;; |
| 11347 | esac |
| 11348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11349 | (eval "$ac_try") 2>&5 |
| 11350 | ac_status=$? |
| 11351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11352 | (exit $ac_status); }; } && |
| 11353 | { ac_try='test -s conftest.$ac_objext' |
| 11354 | { (case "(($ac_try" in |
| 11355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11356 | *) ac_try_echo=$ac_try;; |
| 11357 | esac |
| 11358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11359 | (eval "$ac_try") 2>&5 |
| 11360 | ac_status=$? |
| 11361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11362 | (exit $ac_status); }; }; then |
| 11363 | ac_header_compiler=yes |
| 11364 | else |
| 11365 | echo "$as_me: failed program was:" >&5 |
| 11366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11367 | |
| 11368 | ac_header_compiler=no |
| 11369 | fi |
| 11370 | |
| 11371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11372 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11373 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11374 | |
| 11375 | # Is the header present? |
| 11376 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11377 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11378 | cat >conftest.$ac_ext <<_ACEOF |
| 11379 | /* confdefs.h. */ |
| 11380 | _ACEOF |
| 11381 | cat confdefs.h >>conftest.$ac_ext |
| 11382 | cat >>conftest.$ac_ext <<_ACEOF |
| 11383 | /* end confdefs.h. */ |
| 11384 | #include <$ac_header> |
| 11385 | _ACEOF |
| 11386 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11387 | case "(($ac_try" in |
| 11388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11389 | *) ac_try_echo=$ac_try;; |
| 11390 | esac |
| 11391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11392 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11393 | ac_status=$? |
| 11394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11395 | rm -f conftest.er1 |
| 11396 | cat conftest.err >&5 |
| 11397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11398 | (exit $ac_status); } >/dev/null; then |
| 11399 | if test -s conftest.err; then |
| 11400 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11401 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11402 | else |
| 11403 | ac_cpp_err= |
| 11404 | fi |
| 11405 | else |
| 11406 | ac_cpp_err=yes |
| 11407 | fi |
| 11408 | if test -z "$ac_cpp_err"; then |
| 11409 | ac_header_preproc=yes |
| 11410 | else |
| 11411 | echo "$as_me: failed program was:" >&5 |
| 11412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11413 | |
| 11414 | ac_header_preproc=no |
| 11415 | fi |
| 11416 | |
| 11417 | rm -f conftest.err conftest.$ac_ext |
| 11418 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11419 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11420 | |
| 11421 | # So? What about this header? |
| 11422 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11423 | yes:no: ) |
| 11424 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11425 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11426 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11427 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11428 | ac_header_preproc=yes |
| 11429 | ;; |
| 11430 | no:yes:* ) |
| 11431 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11432 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11433 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11434 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11435 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11436 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11437 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11438 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11439 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11440 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11441 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11442 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11443 | ( cat <<\_ASBOX |
| 11444 | ## ----------------------------------- ## |
| 11445 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11446 | ## ----------------------------------- ## |
| 11447 | _ASBOX |
| 11448 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11449 | ;; |
| 11450 | esac |
| 11451 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11452 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11453 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11455 | else |
| 11456 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11457 | fi |
| 11458 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11459 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11460 | echo "${ECHO_T}$ac_res" >&6; } |
| 11461 | |
| 11462 | fi |
| 11463 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11464 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11465 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11466 | _ACEOF |
| 11467 | |
| 11468 | fi |
| 11469 | |
| 11470 | done |
| 11471 | |
| 11472 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11473 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11474 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 11475 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11477 | else |
| 11478 | cat >conftest.$ac_ext <<_ACEOF |
| 11479 | /* confdefs.h. */ |
| 11480 | _ACEOF |
| 11481 | cat confdefs.h >>conftest.$ac_ext |
| 11482 | cat >>conftest.$ac_ext <<_ACEOF |
| 11483 | /* end confdefs.h. */ |
| 11484 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11485 | # include <argz.h> |
| 11486 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11487 | |
| 11488 | typedef error_t ac__type_new_; |
| 11489 | int |
| 11490 | main () |
| 11491 | { |
| 11492 | if ((ac__type_new_ *) 0) |
| 11493 | return 0; |
| 11494 | if (sizeof (ac__type_new_)) |
| 11495 | return 0; |
| 11496 | ; |
| 11497 | return 0; |
| 11498 | } |
| 11499 | _ACEOF |
| 11500 | rm -f conftest.$ac_objext |
| 11501 | if { (ac_try="$ac_compile" |
| 11502 | case "(($ac_try" in |
| 11503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11504 | *) ac_try_echo=$ac_try;; |
| 11505 | esac |
| 11506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11507 | (eval "$ac_compile") 2>conftest.er1 |
| 11508 | ac_status=$? |
| 11509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11510 | rm -f conftest.er1 |
| 11511 | cat conftest.err >&5 |
| 11512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11513 | (exit $ac_status); } && |
| 11514 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11515 | { (case "(($ac_try" in |
| 11516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11517 | *) ac_try_echo=$ac_try;; |
| 11518 | esac |
| 11519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11520 | (eval "$ac_try") 2>&5 |
| 11521 | ac_status=$? |
| 11522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11523 | (exit $ac_status); }; } && |
| 11524 | { ac_try='test -s conftest.$ac_objext' |
| 11525 | { (case "(($ac_try" in |
| 11526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11527 | *) ac_try_echo=$ac_try;; |
| 11528 | esac |
| 11529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11530 | (eval "$ac_try") 2>&5 |
| 11531 | ac_status=$? |
| 11532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11533 | (exit $ac_status); }; }; then |
| 11534 | ac_cv_type_error_t=yes |
| 11535 | else |
| 11536 | echo "$as_me: failed program was:" >&5 |
| 11537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11538 | |
| 11539 | ac_cv_type_error_t=no |
| 11540 | fi |
| 11541 | |
| 11542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11543 | fi |
| 11544 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11545 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 11546 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11547 | |
| 11548 | cat >>confdefs.h <<_ACEOF |
| 11549 | #define HAVE_ERROR_T 1 |
| 11550 | _ACEOF |
| 11551 | |
| 11552 | |
| 11553 | else |
| 11554 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11555 | cat >>confdefs.h <<\_ACEOF |
| 11556 | #define error_t int |
| 11557 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11558 | |
| 11559 | fi |
| 11560 | |
| 11561 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11562 | |
| 11563 | |
| 11564 | |
| 11565 | |
| 11566 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11567 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11568 | do |
| 11569 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11570 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11571 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11572 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11574 | else |
| 11575 | cat >conftest.$ac_ext <<_ACEOF |
| 11576 | /* confdefs.h. */ |
| 11577 | _ACEOF |
| 11578 | cat confdefs.h >>conftest.$ac_ext |
| 11579 | cat >>conftest.$ac_ext <<_ACEOF |
| 11580 | /* end confdefs.h. */ |
| 11581 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11582 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11583 | #define $ac_func innocuous_$ac_func |
| 11584 | |
| 11585 | /* System header to define __stub macros and hopefully few prototypes, |
| 11586 | which can conflict with char $ac_func (); below. |
| 11587 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11588 | <limits.h> exists even on freestanding compilers. */ |
| 11589 | |
| 11590 | #ifdef __STDC__ |
| 11591 | # include <limits.h> |
| 11592 | #else |
| 11593 | # include <assert.h> |
| 11594 | #endif |
| 11595 | |
| 11596 | #undef $ac_func |
| 11597 | |
| 11598 | /* Override any GCC internal prototype to avoid an error. |
| 11599 | Use char because int might match the return type of a GCC |
| 11600 | builtin and then its argument prototype would still apply. */ |
| 11601 | #ifdef __cplusplus |
| 11602 | extern "C" |
| 11603 | #endif |
| 11604 | char $ac_func (); |
| 11605 | /* The GNU C library defines this for functions which it implements |
| 11606 | to always fail with ENOSYS. Some functions are actually named |
| 11607 | something starting with __ and the normal name is an alias. */ |
| 11608 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11609 | choke me |
| 11610 | #endif |
| 11611 | |
| 11612 | int |
| 11613 | main () |
| 11614 | { |
| 11615 | return $ac_func (); |
| 11616 | ; |
| 11617 | return 0; |
| 11618 | } |
| 11619 | _ACEOF |
| 11620 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11621 | if { (ac_try="$ac_link" |
| 11622 | case "(($ac_try" in |
| 11623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11624 | *) ac_try_echo=$ac_try;; |
| 11625 | esac |
| 11626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11627 | (eval "$ac_link") 2>conftest.er1 |
| 11628 | ac_status=$? |
| 11629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11630 | rm -f conftest.er1 |
| 11631 | cat conftest.err >&5 |
| 11632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11633 | (exit $ac_status); } && |
| 11634 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11635 | { (case "(($ac_try" in |
| 11636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11637 | *) ac_try_echo=$ac_try;; |
| 11638 | esac |
| 11639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11640 | (eval "$ac_try") 2>&5 |
| 11641 | ac_status=$? |
| 11642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11643 | (exit $ac_status); }; } && |
| 11644 | { ac_try='test -s conftest$ac_exeext' |
| 11645 | { (case "(($ac_try" in |
| 11646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11647 | *) ac_try_echo=$ac_try;; |
| 11648 | esac |
| 11649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11650 | (eval "$ac_try") 2>&5 |
| 11651 | ac_status=$? |
| 11652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11653 | (exit $ac_status); }; }; then |
| 11654 | eval "$as_ac_var=yes" |
| 11655 | else |
| 11656 | echo "$as_me: failed program was:" >&5 |
| 11657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11658 | |
| 11659 | eval "$as_ac_var=no" |
| 11660 | fi |
| 11661 | |
| 11662 | rm -f core conftest.err conftest.$ac_objext \ |
| 11663 | conftest$ac_exeext conftest.$ac_ext |
| 11664 | fi |
| 11665 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11666 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11667 | echo "${ECHO_T}$ac_res" >&6; } |
| 11668 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11669 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11670 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11671 | _ACEOF |
| 11672 | |
| 11673 | fi |
| 11674 | done |
| 11675 | |
| 11676 | |
| 11677 | |
| 11678 | |
| 11679 | |
| 11680 | |
| 11681 | |
| 11682 | |
| 11683 | |
| 11684 | |
| 11685 | |
| 11686 | |
| 11687 | |
| 11688 | |
| 11689 | |
| 11690 | |
| 11691 | |
| 11692 | |
| 11693 | |
| 11694 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11695 | |
| 11696 | |
| 11697 | |
| 11698 | |
| 11699 | |
| 11700 | |
| 11701 | |
| 11702 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11703 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11704 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11705 | do |
| 11706 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11707 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11708 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11709 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11710 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11712 | fi |
| 11713 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11714 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11715 | echo "${ECHO_T}$ac_res" >&6; } |
| 11716 | else |
| 11717 | # Is the header compilable? |
| 11718 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11719 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11720 | cat >conftest.$ac_ext <<_ACEOF |
| 11721 | /* confdefs.h. */ |
| 11722 | _ACEOF |
| 11723 | cat confdefs.h >>conftest.$ac_ext |
| 11724 | cat >>conftest.$ac_ext <<_ACEOF |
| 11725 | /* end confdefs.h. */ |
| 11726 | $ac_includes_default |
| 11727 | #include <$ac_header> |
| 11728 | _ACEOF |
| 11729 | rm -f conftest.$ac_objext |
| 11730 | if { (ac_try="$ac_compile" |
| 11731 | case "(($ac_try" in |
| 11732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11733 | *) ac_try_echo=$ac_try;; |
| 11734 | esac |
| 11735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11736 | (eval "$ac_compile") 2>conftest.er1 |
| 11737 | ac_status=$? |
| 11738 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11739 | rm -f conftest.er1 |
| 11740 | cat conftest.err >&5 |
| 11741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11742 | (exit $ac_status); } && |
| 11743 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11744 | { (case "(($ac_try" in |
| 11745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11746 | *) ac_try_echo=$ac_try;; |
| 11747 | esac |
| 11748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11749 | (eval "$ac_try") 2>&5 |
| 11750 | ac_status=$? |
| 11751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11752 | (exit $ac_status); }; } && |
| 11753 | { ac_try='test -s conftest.$ac_objext' |
| 11754 | { (case "(($ac_try" in |
| 11755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11756 | *) ac_try_echo=$ac_try;; |
| 11757 | esac |
| 11758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11759 | (eval "$ac_try") 2>&5 |
| 11760 | ac_status=$? |
| 11761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11762 | (exit $ac_status); }; }; then |
| 11763 | ac_header_compiler=yes |
| 11764 | else |
| 11765 | echo "$as_me: failed program was:" >&5 |
| 11766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11767 | |
| 11768 | ac_header_compiler=no |
| 11769 | fi |
| 11770 | |
| 11771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11772 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11773 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11774 | |
| 11775 | # Is the header present? |
| 11776 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11777 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11778 | cat >conftest.$ac_ext <<_ACEOF |
| 11779 | /* confdefs.h. */ |
| 11780 | _ACEOF |
| 11781 | cat confdefs.h >>conftest.$ac_ext |
| 11782 | cat >>conftest.$ac_ext <<_ACEOF |
| 11783 | /* end confdefs.h. */ |
| 11784 | #include <$ac_header> |
| 11785 | _ACEOF |
| 11786 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11787 | case "(($ac_try" in |
| 11788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11789 | *) ac_try_echo=$ac_try;; |
| 11790 | esac |
| 11791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11792 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11793 | ac_status=$? |
| 11794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11795 | rm -f conftest.er1 |
| 11796 | cat conftest.err >&5 |
| 11797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11798 | (exit $ac_status); } >/dev/null; then |
| 11799 | if test -s conftest.err; then |
| 11800 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11801 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11802 | else |
| 11803 | ac_cpp_err= |
| 11804 | fi |
| 11805 | else |
| 11806 | ac_cpp_err=yes |
| 11807 | fi |
| 11808 | if test -z "$ac_cpp_err"; then |
| 11809 | ac_header_preproc=yes |
| 11810 | else |
| 11811 | echo "$as_me: failed program was:" >&5 |
| 11812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11813 | |
| 11814 | ac_header_preproc=no |
| 11815 | fi |
| 11816 | |
| 11817 | rm -f conftest.err conftest.$ac_ext |
| 11818 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11819 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11820 | |
| 11821 | # So? What about this header? |
| 11822 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11823 | yes:no: ) |
| 11824 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11825 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11826 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11827 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11828 | ac_header_preproc=yes |
| 11829 | ;; |
| 11830 | no:yes:* ) |
| 11831 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11832 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11833 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11834 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11835 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11836 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11837 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11838 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11839 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11840 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11841 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11842 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11843 | ( cat <<\_ASBOX |
| 11844 | ## ----------------------------------- ## |
| 11845 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11846 | ## ----------------------------------- ## |
| 11847 | _ASBOX |
| 11848 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11849 | ;; |
| 11850 | esac |
| 11851 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11852 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11853 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11855 | else |
| 11856 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11857 | fi |
| 11858 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11859 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11860 | echo "${ECHO_T}$ac_res" >&6; } |
| 11861 | |
| 11862 | fi |
| 11863 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11864 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11865 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11866 | _ACEOF |
| 11867 | |
| 11868 | fi |
| 11869 | |
| 11870 | done |
| 11871 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11872 | |
| 11873 | |
| 11874 | |
| 11875 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11876 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11877 | do |
| 11878 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11879 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11880 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11881 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11882 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11884 | fi |
| 11885 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11886 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11887 | echo "${ECHO_T}$ac_res" >&6; } |
| 11888 | else |
| 11889 | # Is the header compilable? |
| 11890 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11891 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11892 | cat >conftest.$ac_ext <<_ACEOF |
| 11893 | /* confdefs.h. */ |
| 11894 | _ACEOF |
| 11895 | cat confdefs.h >>conftest.$ac_ext |
| 11896 | cat >>conftest.$ac_ext <<_ACEOF |
| 11897 | /* end confdefs.h. */ |
| 11898 | $ac_includes_default |
| 11899 | #include <$ac_header> |
| 11900 | _ACEOF |
| 11901 | rm -f conftest.$ac_objext |
| 11902 | if { (ac_try="$ac_compile" |
| 11903 | case "(($ac_try" in |
| 11904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11905 | *) ac_try_echo=$ac_try;; |
| 11906 | esac |
| 11907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11908 | (eval "$ac_compile") 2>conftest.er1 |
| 11909 | ac_status=$? |
| 11910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11911 | rm -f conftest.er1 |
| 11912 | cat conftest.err >&5 |
| 11913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11914 | (exit $ac_status); } && |
| 11915 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11916 | { (case "(($ac_try" in |
| 11917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11918 | *) ac_try_echo=$ac_try;; |
| 11919 | esac |
| 11920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11921 | (eval "$ac_try") 2>&5 |
| 11922 | ac_status=$? |
| 11923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11924 | (exit $ac_status); }; } && |
| 11925 | { ac_try='test -s conftest.$ac_objext' |
| 11926 | { (case "(($ac_try" in |
| 11927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11928 | *) ac_try_echo=$ac_try;; |
| 11929 | esac |
| 11930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11931 | (eval "$ac_try") 2>&5 |
| 11932 | ac_status=$? |
| 11933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11934 | (exit $ac_status); }; }; then |
| 11935 | ac_header_compiler=yes |
| 11936 | else |
| 11937 | echo "$as_me: failed program was:" >&5 |
| 11938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11939 | |
| 11940 | ac_header_compiler=no |
| 11941 | fi |
| 11942 | |
| 11943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11944 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11945 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11946 | |
| 11947 | # Is the header present? |
| 11948 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11949 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11950 | cat >conftest.$ac_ext <<_ACEOF |
| 11951 | /* confdefs.h. */ |
| 11952 | _ACEOF |
| 11953 | cat confdefs.h >>conftest.$ac_ext |
| 11954 | cat >>conftest.$ac_ext <<_ACEOF |
| 11955 | /* end confdefs.h. */ |
| 11956 | #include <$ac_header> |
| 11957 | _ACEOF |
| 11958 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11959 | case "(($ac_try" in |
| 11960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11961 | *) ac_try_echo=$ac_try;; |
| 11962 | esac |
| 11963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11964 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11965 | ac_status=$? |
| 11966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11967 | rm -f conftest.er1 |
| 11968 | cat conftest.err >&5 |
| 11969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11970 | (exit $ac_status); } >/dev/null; then |
| 11971 | if test -s conftest.err; then |
| 11972 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11973 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11974 | else |
| 11975 | ac_cpp_err= |
| 11976 | fi |
| 11977 | else |
| 11978 | ac_cpp_err=yes |
| 11979 | fi |
| 11980 | if test -z "$ac_cpp_err"; then |
| 11981 | ac_header_preproc=yes |
| 11982 | else |
| 11983 | echo "$as_me: failed program was:" >&5 |
| 11984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11985 | |
| 11986 | ac_header_preproc=no |
| 11987 | fi |
| 11988 | |
| 11989 | rm -f conftest.err conftest.$ac_ext |
| 11990 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11991 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11992 | |
| 11993 | # So? What about this header? |
| 11994 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11995 | yes:no: ) |
| 11996 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11997 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11998 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11999 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12000 | ac_header_preproc=yes |
| 12001 | ;; |
| 12002 | no:yes:* ) |
| 12003 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12004 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12005 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12006 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12007 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12008 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12009 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12010 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12011 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12012 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12013 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12014 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12015 | ( cat <<\_ASBOX |
| 12016 | ## ----------------------------------- ## |
| 12017 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12018 | ## ----------------------------------- ## |
| 12019 | _ASBOX |
| 12020 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12021 | ;; |
| 12022 | esac |
| 12023 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12024 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12025 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12027 | else |
| 12028 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12029 | fi |
| 12030 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12031 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12032 | echo "${ECHO_T}$ac_res" >&6; } |
| 12033 | |
| 12034 | fi |
| 12035 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12036 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12037 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12038 | _ACEOF |
| 12039 | |
| 12040 | fi |
| 12041 | |
| 12042 | done |
| 12043 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12044 | |
| 12045 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12046 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12047 | do |
| 12048 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12049 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12050 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12051 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12052 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12054 | fi |
| 12055 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12056 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12057 | echo "${ECHO_T}$ac_res" >&6; } |
| 12058 | else |
| 12059 | # Is the header compilable? |
| 12060 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12061 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12062 | cat >conftest.$ac_ext <<_ACEOF |
| 12063 | /* confdefs.h. */ |
| 12064 | _ACEOF |
| 12065 | cat confdefs.h >>conftest.$ac_ext |
| 12066 | cat >>conftest.$ac_ext <<_ACEOF |
| 12067 | /* end confdefs.h. */ |
| 12068 | $ac_includes_default |
| 12069 | #include <$ac_header> |
| 12070 | _ACEOF |
| 12071 | rm -f conftest.$ac_objext |
| 12072 | if { (ac_try="$ac_compile" |
| 12073 | case "(($ac_try" in |
| 12074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12075 | *) ac_try_echo=$ac_try;; |
| 12076 | esac |
| 12077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12078 | (eval "$ac_compile") 2>conftest.er1 |
| 12079 | ac_status=$? |
| 12080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12081 | rm -f conftest.er1 |
| 12082 | cat conftest.err >&5 |
| 12083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12084 | (exit $ac_status); } && |
| 12085 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12086 | { (case "(($ac_try" in |
| 12087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12088 | *) ac_try_echo=$ac_try;; |
| 12089 | esac |
| 12090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12091 | (eval "$ac_try") 2>&5 |
| 12092 | ac_status=$? |
| 12093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12094 | (exit $ac_status); }; } && |
| 12095 | { ac_try='test -s conftest.$ac_objext' |
| 12096 | { (case "(($ac_try" in |
| 12097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12098 | *) ac_try_echo=$ac_try;; |
| 12099 | esac |
| 12100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12101 | (eval "$ac_try") 2>&5 |
| 12102 | ac_status=$? |
| 12103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12104 | (exit $ac_status); }; }; then |
| 12105 | ac_header_compiler=yes |
| 12106 | else |
| 12107 | echo "$as_me: failed program was:" >&5 |
| 12108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12109 | |
| 12110 | ac_header_compiler=no |
| 12111 | fi |
| 12112 | |
| 12113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12114 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12115 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12116 | |
| 12117 | # Is the header present? |
| 12118 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12119 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12120 | cat >conftest.$ac_ext <<_ACEOF |
| 12121 | /* confdefs.h. */ |
| 12122 | _ACEOF |
| 12123 | cat confdefs.h >>conftest.$ac_ext |
| 12124 | cat >>conftest.$ac_ext <<_ACEOF |
| 12125 | /* end confdefs.h. */ |
| 12126 | #include <$ac_header> |
| 12127 | _ACEOF |
| 12128 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12129 | case "(($ac_try" in |
| 12130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12131 | *) ac_try_echo=$ac_try;; |
| 12132 | esac |
| 12133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12134 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12135 | ac_status=$? |
| 12136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12137 | rm -f conftest.er1 |
| 12138 | cat conftest.err >&5 |
| 12139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12140 | (exit $ac_status); } >/dev/null; then |
| 12141 | if test -s conftest.err; then |
| 12142 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12143 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12144 | else |
| 12145 | ac_cpp_err= |
| 12146 | fi |
| 12147 | else |
| 12148 | ac_cpp_err=yes |
| 12149 | fi |
| 12150 | if test -z "$ac_cpp_err"; then |
| 12151 | ac_header_preproc=yes |
| 12152 | else |
| 12153 | echo "$as_me: failed program was:" >&5 |
| 12154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12155 | |
| 12156 | ac_header_preproc=no |
| 12157 | fi |
| 12158 | |
| 12159 | rm -f conftest.err conftest.$ac_ext |
| 12160 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12161 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12162 | |
| 12163 | # So? What about this header? |
| 12164 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12165 | yes:no: ) |
| 12166 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12167 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12168 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12169 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12170 | ac_header_preproc=yes |
| 12171 | ;; |
| 12172 | no:yes:* ) |
| 12173 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12174 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12175 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12176 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12177 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12178 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12179 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12180 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12181 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12182 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12183 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12184 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12185 | ( cat <<\_ASBOX |
| 12186 | ## ----------------------------------- ## |
| 12187 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12188 | ## ----------------------------------- ## |
| 12189 | _ASBOX |
| 12190 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12191 | ;; |
| 12192 | esac |
| 12193 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12194 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12195 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12197 | else |
| 12198 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12199 | fi |
| 12200 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12201 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12202 | echo "${ECHO_T}$ac_res" >&6; } |
| 12203 | |
| 12204 | fi |
| 12205 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12206 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12207 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12208 | _ACEOF |
| 12209 | break |
| 12210 | fi |
| 12211 | |
| 12212 | done |
| 12213 | |
| 12214 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12215 | |
| 12216 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12217 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12218 | do |
| 12219 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12220 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12221 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12222 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12224 | else |
| 12225 | cat >conftest.$ac_ext <<_ACEOF |
| 12226 | /* confdefs.h. */ |
| 12227 | _ACEOF |
| 12228 | cat confdefs.h >>conftest.$ac_ext |
| 12229 | cat >>conftest.$ac_ext <<_ACEOF |
| 12230 | /* end confdefs.h. */ |
| 12231 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12232 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12233 | #define $ac_func innocuous_$ac_func |
| 12234 | |
| 12235 | /* System header to define __stub macros and hopefully few prototypes, |
| 12236 | which can conflict with char $ac_func (); below. |
| 12237 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12238 | <limits.h> exists even on freestanding compilers. */ |
| 12239 | |
| 12240 | #ifdef __STDC__ |
| 12241 | # include <limits.h> |
| 12242 | #else |
| 12243 | # include <assert.h> |
| 12244 | #endif |
| 12245 | |
| 12246 | #undef $ac_func |
| 12247 | |
| 12248 | /* Override any GCC internal prototype to avoid an error. |
| 12249 | Use char because int might match the return type of a GCC |
| 12250 | builtin and then its argument prototype would still apply. */ |
| 12251 | #ifdef __cplusplus |
| 12252 | extern "C" |
| 12253 | #endif |
| 12254 | char $ac_func (); |
| 12255 | /* The GNU C library defines this for functions which it implements |
| 12256 | to always fail with ENOSYS. Some functions are actually named |
| 12257 | something starting with __ and the normal name is an alias. */ |
| 12258 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12259 | choke me |
| 12260 | #endif |
| 12261 | |
| 12262 | int |
| 12263 | main () |
| 12264 | { |
| 12265 | return $ac_func (); |
| 12266 | ; |
| 12267 | return 0; |
| 12268 | } |
| 12269 | _ACEOF |
| 12270 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12271 | if { (ac_try="$ac_link" |
| 12272 | case "(($ac_try" in |
| 12273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12274 | *) ac_try_echo=$ac_try;; |
| 12275 | esac |
| 12276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12277 | (eval "$ac_link") 2>conftest.er1 |
| 12278 | ac_status=$? |
| 12279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12280 | rm -f conftest.er1 |
| 12281 | cat conftest.err >&5 |
| 12282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12283 | (exit $ac_status); } && |
| 12284 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12285 | { (case "(($ac_try" in |
| 12286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12287 | *) ac_try_echo=$ac_try;; |
| 12288 | esac |
| 12289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12290 | (eval "$ac_try") 2>&5 |
| 12291 | ac_status=$? |
| 12292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12293 | (exit $ac_status); }; } && |
| 12294 | { ac_try='test -s conftest$ac_exeext' |
| 12295 | { (case "(($ac_try" in |
| 12296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12297 | *) ac_try_echo=$ac_try;; |
| 12298 | esac |
| 12299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12300 | (eval "$ac_try") 2>&5 |
| 12301 | ac_status=$? |
| 12302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12303 | (exit $ac_status); }; }; then |
| 12304 | eval "$as_ac_var=yes" |
| 12305 | else |
| 12306 | echo "$as_me: failed program was:" >&5 |
| 12307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12308 | |
| 12309 | eval "$as_ac_var=no" |
| 12310 | fi |
| 12311 | |
| 12312 | rm -f core conftest.err conftest.$ac_objext \ |
| 12313 | conftest$ac_exeext conftest.$ac_ext |
| 12314 | fi |
| 12315 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12316 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12317 | echo "${ECHO_T}$ac_res" >&6; } |
| 12318 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12319 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12320 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12321 | _ACEOF |
| 12322 | break |
| 12323 | fi |
| 12324 | done |
| 12325 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12326 | |
| 12327 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12328 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12329 | do |
| 12330 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12331 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12332 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12333 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12335 | else |
| 12336 | cat >conftest.$ac_ext <<_ACEOF |
| 12337 | /* confdefs.h. */ |
| 12338 | _ACEOF |
| 12339 | cat confdefs.h >>conftest.$ac_ext |
| 12340 | cat >>conftest.$ac_ext <<_ACEOF |
| 12341 | /* end confdefs.h. */ |
| 12342 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12343 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12344 | #define $ac_func innocuous_$ac_func |
| 12345 | |
| 12346 | /* System header to define __stub macros and hopefully few prototypes, |
| 12347 | which can conflict with char $ac_func (); below. |
| 12348 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12349 | <limits.h> exists even on freestanding compilers. */ |
| 12350 | |
| 12351 | #ifdef __STDC__ |
| 12352 | # include <limits.h> |
| 12353 | #else |
| 12354 | # include <assert.h> |
| 12355 | #endif |
| 12356 | |
| 12357 | #undef $ac_func |
| 12358 | |
| 12359 | /* Override any GCC internal prototype to avoid an error. |
| 12360 | Use char because int might match the return type of a GCC |
| 12361 | builtin and then its argument prototype would still apply. */ |
| 12362 | #ifdef __cplusplus |
| 12363 | extern "C" |
| 12364 | #endif |
| 12365 | char $ac_func (); |
| 12366 | /* The GNU C library defines this for functions which it implements |
| 12367 | to always fail with ENOSYS. Some functions are actually named |
| 12368 | something starting with __ and the normal name is an alias. */ |
| 12369 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12370 | choke me |
| 12371 | #endif |
| 12372 | |
| 12373 | int |
| 12374 | main () |
| 12375 | { |
| 12376 | return $ac_func (); |
| 12377 | ; |
| 12378 | return 0; |
| 12379 | } |
| 12380 | _ACEOF |
| 12381 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12382 | if { (ac_try="$ac_link" |
| 12383 | case "(($ac_try" in |
| 12384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12385 | *) ac_try_echo=$ac_try;; |
| 12386 | esac |
| 12387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12388 | (eval "$ac_link") 2>conftest.er1 |
| 12389 | ac_status=$? |
| 12390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12391 | rm -f conftest.er1 |
| 12392 | cat conftest.err >&5 |
| 12393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12394 | (exit $ac_status); } && |
| 12395 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12396 | { (case "(($ac_try" in |
| 12397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12398 | *) ac_try_echo=$ac_try;; |
| 12399 | esac |
| 12400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12401 | (eval "$ac_try") 2>&5 |
| 12402 | ac_status=$? |
| 12403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12404 | (exit $ac_status); }; } && |
| 12405 | { ac_try='test -s conftest$ac_exeext' |
| 12406 | { (case "(($ac_try" in |
| 12407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12408 | *) ac_try_echo=$ac_try;; |
| 12409 | esac |
| 12410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12411 | (eval "$ac_try") 2>&5 |
| 12412 | ac_status=$? |
| 12413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12414 | (exit $ac_status); }; }; then |
| 12415 | eval "$as_ac_var=yes" |
| 12416 | else |
| 12417 | echo "$as_me: failed program was:" >&5 |
| 12418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12419 | |
| 12420 | eval "$as_ac_var=no" |
| 12421 | fi |
| 12422 | |
| 12423 | rm -f core conftest.err conftest.$ac_objext \ |
| 12424 | conftest$ac_exeext conftest.$ac_ext |
| 12425 | fi |
| 12426 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12427 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12428 | echo "${ECHO_T}$ac_res" >&6; } |
| 12429 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12430 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12431 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12432 | _ACEOF |
| 12433 | break |
| 12434 | fi |
| 12435 | done |
| 12436 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12437 | |
| 12438 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12439 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12440 | do |
| 12441 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12442 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12443 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12444 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12446 | else |
| 12447 | cat >conftest.$ac_ext <<_ACEOF |
| 12448 | /* confdefs.h. */ |
| 12449 | _ACEOF |
| 12450 | cat confdefs.h >>conftest.$ac_ext |
| 12451 | cat >>conftest.$ac_ext <<_ACEOF |
| 12452 | /* end confdefs.h. */ |
| 12453 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12454 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12455 | #define $ac_func innocuous_$ac_func |
| 12456 | |
| 12457 | /* System header to define __stub macros and hopefully few prototypes, |
| 12458 | which can conflict with char $ac_func (); below. |
| 12459 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12460 | <limits.h> exists even on freestanding compilers. */ |
| 12461 | |
| 12462 | #ifdef __STDC__ |
| 12463 | # include <limits.h> |
| 12464 | #else |
| 12465 | # include <assert.h> |
| 12466 | #endif |
| 12467 | |
| 12468 | #undef $ac_func |
| 12469 | |
| 12470 | /* Override any GCC internal prototype to avoid an error. |
| 12471 | Use char because int might match the return type of a GCC |
| 12472 | builtin and then its argument prototype would still apply. */ |
| 12473 | #ifdef __cplusplus |
| 12474 | extern "C" |
| 12475 | #endif |
| 12476 | char $ac_func (); |
| 12477 | /* The GNU C library defines this for functions which it implements |
| 12478 | to always fail with ENOSYS. Some functions are actually named |
| 12479 | something starting with __ and the normal name is an alias. */ |
| 12480 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12481 | choke me |
| 12482 | #endif |
| 12483 | |
| 12484 | int |
| 12485 | main () |
| 12486 | { |
| 12487 | return $ac_func (); |
| 12488 | ; |
| 12489 | return 0; |
| 12490 | } |
| 12491 | _ACEOF |
| 12492 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12493 | if { (ac_try="$ac_link" |
| 12494 | case "(($ac_try" in |
| 12495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12496 | *) ac_try_echo=$ac_try;; |
| 12497 | esac |
| 12498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12499 | (eval "$ac_link") 2>conftest.er1 |
| 12500 | ac_status=$? |
| 12501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12502 | rm -f conftest.er1 |
| 12503 | cat conftest.err >&5 |
| 12504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12505 | (exit $ac_status); } && |
| 12506 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12507 | { (case "(($ac_try" in |
| 12508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12509 | *) ac_try_echo=$ac_try;; |
| 12510 | esac |
| 12511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12512 | (eval "$ac_try") 2>&5 |
| 12513 | ac_status=$? |
| 12514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12515 | (exit $ac_status); }; } && |
| 12516 | { ac_try='test -s conftest$ac_exeext' |
| 12517 | { (case "(($ac_try" in |
| 12518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12519 | *) ac_try_echo=$ac_try;; |
| 12520 | esac |
| 12521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12522 | (eval "$ac_try") 2>&5 |
| 12523 | ac_status=$? |
| 12524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12525 | (exit $ac_status); }; }; then |
| 12526 | eval "$as_ac_var=yes" |
| 12527 | else |
| 12528 | echo "$as_me: failed program was:" >&5 |
| 12529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12530 | |
| 12531 | eval "$as_ac_var=no" |
| 12532 | fi |
| 12533 | |
| 12534 | rm -f core conftest.err conftest.$ac_objext \ |
| 12535 | conftest$ac_exeext conftest.$ac_ext |
| 12536 | fi |
| 12537 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12538 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12539 | echo "${ECHO_T}$ac_res" >&6; } |
| 12540 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12541 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12542 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12543 | _ACEOF |
| 12544 | break |
| 12545 | fi |
| 12546 | done |
| 12547 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12548 | |
| 12549 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12550 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12551 | do |
| 12552 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12553 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12554 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12555 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12557 | else |
| 12558 | cat >conftest.$ac_ext <<_ACEOF |
| 12559 | /* confdefs.h. */ |
| 12560 | _ACEOF |
| 12561 | cat confdefs.h >>conftest.$ac_ext |
| 12562 | cat >>conftest.$ac_ext <<_ACEOF |
| 12563 | /* end confdefs.h. */ |
| 12564 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12565 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12566 | #define $ac_func innocuous_$ac_func |
| 12567 | |
| 12568 | /* System header to define __stub macros and hopefully few prototypes, |
| 12569 | which can conflict with char $ac_func (); below. |
| 12570 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12571 | <limits.h> exists even on freestanding compilers. */ |
| 12572 | |
| 12573 | #ifdef __STDC__ |
| 12574 | # include <limits.h> |
| 12575 | #else |
| 12576 | # include <assert.h> |
| 12577 | #endif |
| 12578 | |
| 12579 | #undef $ac_func |
| 12580 | |
| 12581 | /* Override any GCC internal prototype to avoid an error. |
| 12582 | Use char because int might match the return type of a GCC |
| 12583 | builtin and then its argument prototype would still apply. */ |
| 12584 | #ifdef __cplusplus |
| 12585 | extern "C" |
| 12586 | #endif |
| 12587 | char $ac_func (); |
| 12588 | /* The GNU C library defines this for functions which it implements |
| 12589 | to always fail with ENOSYS. Some functions are actually named |
| 12590 | something starting with __ and the normal name is an alias. */ |
| 12591 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12592 | choke me |
| 12593 | #endif |
| 12594 | |
| 12595 | int |
| 12596 | main () |
| 12597 | { |
| 12598 | return $ac_func (); |
| 12599 | ; |
| 12600 | return 0; |
| 12601 | } |
| 12602 | _ACEOF |
| 12603 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12604 | if { (ac_try="$ac_link" |
| 12605 | case "(($ac_try" in |
| 12606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12607 | *) ac_try_echo=$ac_try;; |
| 12608 | esac |
| 12609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12610 | (eval "$ac_link") 2>conftest.er1 |
| 12611 | ac_status=$? |
| 12612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12613 | rm -f conftest.er1 |
| 12614 | cat conftest.err >&5 |
| 12615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12616 | (exit $ac_status); } && |
| 12617 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12618 | { (case "(($ac_try" in |
| 12619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12620 | *) ac_try_echo=$ac_try;; |
| 12621 | esac |
| 12622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12623 | (eval "$ac_try") 2>&5 |
| 12624 | ac_status=$? |
| 12625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12626 | (exit $ac_status); }; } && |
| 12627 | { ac_try='test -s conftest$ac_exeext' |
| 12628 | { (case "(($ac_try" in |
| 12629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12630 | *) ac_try_echo=$ac_try;; |
| 12631 | esac |
| 12632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12633 | (eval "$ac_try") 2>&5 |
| 12634 | ac_status=$? |
| 12635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12636 | (exit $ac_status); }; }; then |
| 12637 | eval "$as_ac_var=yes" |
| 12638 | else |
| 12639 | echo "$as_me: failed program was:" >&5 |
| 12640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12641 | |
| 12642 | eval "$as_ac_var=no" |
| 12643 | fi |
| 12644 | |
| 12645 | rm -f core conftest.err conftest.$ac_objext \ |
| 12646 | conftest$ac_exeext conftest.$ac_ext |
| 12647 | fi |
| 12648 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12649 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12650 | echo "${ECHO_T}$ac_res" >&6; } |
| 12651 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12652 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12653 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12654 | _ACEOF |
| 12655 | |
| 12656 | fi |
| 12657 | done |
| 12658 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12659 | |
| 12660 | |
| 12661 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12662 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12663 | do |
| 12664 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12665 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12666 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12667 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12669 | else |
| 12670 | cat >conftest.$ac_ext <<_ACEOF |
| 12671 | /* confdefs.h. */ |
| 12672 | _ACEOF |
| 12673 | cat confdefs.h >>conftest.$ac_ext |
| 12674 | cat >>conftest.$ac_ext <<_ACEOF |
| 12675 | /* end confdefs.h. */ |
| 12676 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12677 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12678 | #define $ac_func innocuous_$ac_func |
| 12679 | |
| 12680 | /* System header to define __stub macros and hopefully few prototypes, |
| 12681 | which can conflict with char $ac_func (); below. |
| 12682 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12683 | <limits.h> exists even on freestanding compilers. */ |
| 12684 | |
| 12685 | #ifdef __STDC__ |
| 12686 | # include <limits.h> |
| 12687 | #else |
| 12688 | # include <assert.h> |
| 12689 | #endif |
| 12690 | |
| 12691 | #undef $ac_func |
| 12692 | |
| 12693 | /* Override any GCC internal prototype to avoid an error. |
| 12694 | Use char because int might match the return type of a GCC |
| 12695 | builtin and then its argument prototype would still apply. */ |
| 12696 | #ifdef __cplusplus |
| 12697 | extern "C" |
| 12698 | #endif |
| 12699 | char $ac_func (); |
| 12700 | /* The GNU C library defines this for functions which it implements |
| 12701 | to always fail with ENOSYS. Some functions are actually named |
| 12702 | something starting with __ and the normal name is an alias. */ |
| 12703 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12704 | choke me |
| 12705 | #endif |
| 12706 | |
| 12707 | int |
| 12708 | main () |
| 12709 | { |
| 12710 | return $ac_func (); |
| 12711 | ; |
| 12712 | return 0; |
| 12713 | } |
| 12714 | _ACEOF |
| 12715 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12716 | if { (ac_try="$ac_link" |
| 12717 | case "(($ac_try" in |
| 12718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12719 | *) ac_try_echo=$ac_try;; |
| 12720 | esac |
| 12721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12722 | (eval "$ac_link") 2>conftest.er1 |
| 12723 | ac_status=$? |
| 12724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12725 | rm -f conftest.er1 |
| 12726 | cat conftest.err >&5 |
| 12727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12728 | (exit $ac_status); } && |
| 12729 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12730 | { (case "(($ac_try" in |
| 12731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12732 | *) ac_try_echo=$ac_try;; |
| 12733 | esac |
| 12734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12735 | (eval "$ac_try") 2>&5 |
| 12736 | ac_status=$? |
| 12737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12738 | (exit $ac_status); }; } && |
| 12739 | { ac_try='test -s conftest$ac_exeext' |
| 12740 | { (case "(($ac_try" in |
| 12741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12742 | *) ac_try_echo=$ac_try;; |
| 12743 | esac |
| 12744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12745 | (eval "$ac_try") 2>&5 |
| 12746 | ac_status=$? |
| 12747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12748 | (exit $ac_status); }; }; then |
| 12749 | eval "$as_ac_var=yes" |
| 12750 | else |
| 12751 | echo "$as_me: failed program was:" >&5 |
| 12752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12753 | |
| 12754 | eval "$as_ac_var=no" |
| 12755 | fi |
| 12756 | |
| 12757 | rm -f core conftest.err conftest.$ac_objext \ |
| 12758 | conftest$ac_exeext conftest.$ac_ext |
| 12759 | fi |
| 12760 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12761 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12762 | echo "${ECHO_T}$ac_res" >&6; } |
| 12763 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12764 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12765 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12766 | _ACEOF |
| 12767 | |
| 12768 | fi |
| 12769 | done |
| 12770 | |
| 12771 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 12772 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 12773 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 12774 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 12775 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12776 | LLVMGCCCOMMAND="$LLVMGCC" |
| 12777 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12778 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 12779 | |
| 12780 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 12781 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 12782 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 12783 | set dummy $LLVMGCC; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12784 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12785 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 12786 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 12787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12788 | else |
| 12789 | case $LLVMGCC in |
| 12790 | [\\/]* | ?:[\\/]*) |
| 12791 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 12792 | ;; |
| 12793 | *) |
| 12794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12795 | for as_dir in $PATH |
| 12796 | do |
| 12797 | IFS=$as_save_IFS |
| 12798 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12799 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12800 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12801 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12802 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12803 | break 2 |
| 12804 | fi |
| 12805 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12806 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12807 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12808 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12809 | ;; |
| 12810 | esac |
| 12811 | fi |
| 12812 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12813 | if test -n "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12814 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 12815 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12816 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12817 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12818 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12819 | fi |
| 12820 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12821 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 12822 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 12823 | set dummy $LLVMGXX; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12824 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12825 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 12826 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 12827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12828 | else |
| 12829 | case $LLVMGXX in |
| 12830 | [\\/]* | ?:[\\/]*) |
| 12831 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 12832 | ;; |
| 12833 | *) |
| 12834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12835 | for as_dir in $PATH |
| 12836 | do |
| 12837 | IFS=$as_save_IFS |
| 12838 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12839 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12841 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12843 | break 2 |
| 12844 | fi |
| 12845 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12846 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12847 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12848 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12849 | ;; |
| 12850 | esac |
| 12851 | fi |
| 12852 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12853 | if test -n "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12854 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 12855 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12856 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12857 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12858 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12859 | fi |
| 12860 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12861 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12862 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 12863 | if test -z "$LLVMGCC"; then |
| 12864 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12865 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 12866 | fi |
| 12867 | if test -z "$LLVMGXX"; then |
| 12868 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12869 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 12870 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12871 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12872 | LLVMGCC=$LLVMGCC |
| 12873 | |
| 12874 | LLVMGXX=$LLVMGXX |
| 12875 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12876 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 12877 | |
| 12878 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 12879 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12880 | fi |
| 12881 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12882 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 12883 | # Check whether --with-llvmcc was given. |
| 12884 | if test "${with_llvmcc+set}" = set; then |
| 12885 | withval=$with_llvmcc; |
| 12886 | else |
| 12887 | with_llvmcc=check |
| 12888 | fi |
| 12889 | |
| 12890 | { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5 |
| 12891 | echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; } |
| 12892 | if test "$with_llvmcc" != "check"; then |
| 12893 | if (test "$with_llvmcc" != "llvm-gcc" && |
| 12894 | test "$with_llvmcc" != "clang" && |
| 12895 | test "$with_llvmcc" != "none"); then |
| 12896 | { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5 |
| 12897 | echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;} |
| 12898 | { (exit 1); exit 1; }; } |
| 12899 | fi |
| 12900 | WITH_LLVMCC="$with_llvmcc" |
| 12901 | elif test -n "$LLVMGCC"; then |
| 12902 | WITH_LLVMCC=llvm-gcc |
| 12903 | elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then |
| 12904 | WITH_LLVMCC=clang |
| 12905 | else |
| 12906 | WITH_LLVMCC=none |
| 12907 | fi |
| 12908 | { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5 |
| 12909 | echo "${ECHO_T}$WITH_LLVMCC" >&6; } |
| 12910 | LLVMCC_OPTION=$WITH_LLVMCC |
| 12911 | |
| 12912 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12913 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 12914 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12915 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12916 | ICC=no |
| 12917 | IXX=no |
| 12918 | case $CC in |
| 12919 | icc*|icpc*) |
| 12920 | ICC=yes |
| 12921 | IXX=yes |
| 12922 | ;; |
| 12923 | *) |
| 12924 | ;; |
| 12925 | esac |
| 12926 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12927 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 12928 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12929 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 12930 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 12931 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12932 | fi |
| 12933 | |
| 12934 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 12935 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12936 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 12937 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 12938 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12939 | fi |
| 12940 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12941 | if test "$GCC" = "yes" |
| 12942 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12943 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12944 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 12945 | #error Unsupported GCC version |
| 12946 | #endif |
| 12947 | |
| 12948 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12949 | rm -f conftest.$ac_objext |
| 12950 | if { (ac_try="$ac_compile" |
| 12951 | case "(($ac_try" in |
| 12952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12953 | *) ac_try_echo=$ac_try;; |
| 12954 | esac |
| 12955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12956 | (eval "$ac_compile") 2>conftest.er1 |
| 12957 | ac_status=$? |
| 12958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12959 | rm -f conftest.er1 |
| 12960 | cat conftest.err >&5 |
| 12961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12962 | (exit $ac_status); } && |
| 12963 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12964 | { (case "(($ac_try" in |
| 12965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12966 | *) ac_try_echo=$ac_try;; |
| 12967 | esac |
| 12968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12969 | (eval "$ac_try") 2>&5 |
| 12970 | ac_status=$? |
| 12971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12972 | (exit $ac_status); }; } && |
| 12973 | { ac_try='test -s conftest.$ac_objext' |
| 12974 | { (case "(($ac_try" in |
| 12975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12976 | *) ac_try_echo=$ac_try;; |
| 12977 | esac |
| 12978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12979 | (eval "$ac_try") 2>&5 |
| 12980 | ac_status=$? |
| 12981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12982 | (exit $ac_status); }; }; then |
| 12983 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12984 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12985 | echo "$as_me: failed program was:" >&5 |
| 12986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12987 | |
| 12988 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 12989 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 12990 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12991 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12992 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12994 | fi |
| 12995 | |
| 12996 | if test -z "$llvm_cv_gnu_make_command" |
| 12997 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12998 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 12999 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 13000 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13001 | fi |
| 13002 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13003 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13004 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13005 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13006 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 13007 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13008 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 13009 | |
| 13010 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 13011 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13012 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 13013 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13014 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 13015 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13016 | |
| 13017 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 13018 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 13019 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 13020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13021 | else |
| 13022 | ac_check_lib_save_LIBS=$LIBS |
| 13023 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13024 | cat >conftest.$ac_ext <<_ACEOF |
| 13025 | /* confdefs.h. */ |
| 13026 | _ACEOF |
| 13027 | cat confdefs.h >>conftest.$ac_ext |
| 13028 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13029 | /* end confdefs.h. */ |
| 13030 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13031 | /* Override any GCC internal prototype to avoid an error. |
| 13032 | Use char because int might match the return type of a GCC |
| 13033 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13034 | #ifdef __cplusplus |
| 13035 | extern "C" |
| 13036 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13037 | char sin (); |
| 13038 | int |
| 13039 | main () |
| 13040 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13041 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13042 | ; |
| 13043 | return 0; |
| 13044 | } |
| 13045 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13046 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13047 | if { (ac_try="$ac_link" |
| 13048 | case "(($ac_try" in |
| 13049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13050 | *) ac_try_echo=$ac_try;; |
| 13051 | esac |
| 13052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13053 | (eval "$ac_link") 2>conftest.er1 |
| 13054 | ac_status=$? |
| 13055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13056 | rm -f conftest.er1 |
| 13057 | cat conftest.err >&5 |
| 13058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13059 | (exit $ac_status); } && |
| 13060 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13061 | { (case "(($ac_try" in |
| 13062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13063 | *) ac_try_echo=$ac_try;; |
| 13064 | esac |
| 13065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13066 | (eval "$ac_try") 2>&5 |
| 13067 | ac_status=$? |
| 13068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13069 | (exit $ac_status); }; } && |
| 13070 | { ac_try='test -s conftest$ac_exeext' |
| 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_try") 2>&5 |
| 13077 | ac_status=$? |
| 13078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13079 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13080 | ac_cv_lib_m_sin=yes |
| 13081 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13082 | echo "$as_me: failed program was:" >&5 |
| 13083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13084 | |
| 13085 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13086 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13087 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13088 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13089 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13090 | LIBS=$ac_check_lib_save_LIBS |
| 13091 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13092 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 13093 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 13094 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13095 | cat >>confdefs.h <<_ACEOF |
| 13096 | #define HAVE_LIBM 1 |
| 13097 | _ACEOF |
| 13098 | |
| 13099 | LIBS="-lm $LIBS" |
| 13100 | |
| 13101 | fi |
| 13102 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 13103 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13104 | |
| 13105 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 13106 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 13107 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 13108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13109 | else |
| 13110 | ac_check_lib_save_LIBS=$LIBS |
| 13111 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13112 | cat >conftest.$ac_ext <<_ACEOF |
| 13113 | /* confdefs.h. */ |
| 13114 | _ACEOF |
| 13115 | cat confdefs.h >>conftest.$ac_ext |
| 13116 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13117 | /* end confdefs.h. */ |
| 13118 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13119 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13120 | int |
| 13121 | main () |
| 13122 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13123 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13124 | ; |
| 13125 | return 0; |
| 13126 | } |
| 13127 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13128 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13129 | if { (ac_try="$ac_link" |
| 13130 | case "(($ac_try" in |
| 13131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13132 | *) ac_try_echo=$ac_try;; |
| 13133 | esac |
| 13134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13135 | (eval "$ac_link") 2>conftest.er1 |
| 13136 | ac_status=$? |
| 13137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13138 | rm -f conftest.er1 |
| 13139 | cat conftest.err >&5 |
| 13140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13141 | (exit $ac_status); } && |
| 13142 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13143 | { (case "(($ac_try" in |
| 13144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13145 | *) ac_try_echo=$ac_try;; |
| 13146 | esac |
| 13147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13148 | (eval "$ac_try") 2>&5 |
| 13149 | ac_status=$? |
| 13150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13151 | (exit $ac_status); }; } && |
| 13152 | { ac_try='test -s conftest$ac_exeext' |
| 13153 | { (case "(($ac_try" in |
| 13154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13155 | *) ac_try_echo=$ac_try;; |
| 13156 | esac |
| 13157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13158 | (eval "$ac_try") 2>&5 |
| 13159 | ac_status=$? |
| 13160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13161 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13162 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13163 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13164 | echo "$as_me: failed program was:" >&5 |
| 13165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13166 | |
| 13167 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13168 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13169 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13170 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13171 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13172 | LIBS=$ac_check_lib_save_LIBS |
| 13173 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13174 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 13175 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 13176 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13177 | cat >>confdefs.h <<_ACEOF |
| 13178 | #define HAVE_LIBIMAGEHLP 1 |
| 13179 | _ACEOF |
| 13180 | |
| 13181 | LIBS="-limagehlp $LIBS" |
| 13182 | |
| 13183 | fi |
| 13184 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13185 | |
| 13186 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 13187 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 13188 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 13189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13190 | else |
| 13191 | ac_check_lib_save_LIBS=$LIBS |
| 13192 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13193 | cat >conftest.$ac_ext <<_ACEOF |
| 13194 | /* confdefs.h. */ |
| 13195 | _ACEOF |
| 13196 | cat confdefs.h >>conftest.$ac_ext |
| 13197 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13198 | /* end confdefs.h. */ |
| 13199 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13200 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13201 | int |
| 13202 | main () |
| 13203 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13204 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13205 | ; |
| 13206 | return 0; |
| 13207 | } |
| 13208 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13209 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13210 | if { (ac_try="$ac_link" |
| 13211 | case "(($ac_try" in |
| 13212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13213 | *) ac_try_echo=$ac_try;; |
| 13214 | esac |
| 13215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13216 | (eval "$ac_link") 2>conftest.er1 |
| 13217 | ac_status=$? |
| 13218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13219 | rm -f conftest.er1 |
| 13220 | cat conftest.err >&5 |
| 13221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13222 | (exit $ac_status); } && |
| 13223 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13224 | { (case "(($ac_try" in |
| 13225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13226 | *) ac_try_echo=$ac_try;; |
| 13227 | esac |
| 13228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13229 | (eval "$ac_try") 2>&5 |
| 13230 | ac_status=$? |
| 13231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13232 | (exit $ac_status); }; } && |
| 13233 | { ac_try='test -s conftest$ac_exeext' |
| 13234 | { (case "(($ac_try" in |
| 13235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13236 | *) ac_try_echo=$ac_try;; |
| 13237 | esac |
| 13238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13239 | (eval "$ac_try") 2>&5 |
| 13240 | ac_status=$? |
| 13241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13242 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13243 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13244 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13245 | echo "$as_me: failed program was:" >&5 |
| 13246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13247 | |
| 13248 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13249 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13250 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13251 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13252 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13253 | LIBS=$ac_check_lib_save_LIBS |
| 13254 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13255 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 13256 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 13257 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13258 | cat >>confdefs.h <<_ACEOF |
| 13259 | #define HAVE_LIBPSAPI 1 |
| 13260 | _ACEOF |
| 13261 | |
| 13262 | LIBS="-lpsapi $LIBS" |
| 13263 | |
| 13264 | fi |
| 13265 | |
| 13266 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13267 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13268 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 13269 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 13270 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13272 | else |
| 13273 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13274 | cat >conftest.$ac_ext <<_ACEOF |
| 13275 | /* confdefs.h. */ |
| 13276 | _ACEOF |
| 13277 | cat confdefs.h >>conftest.$ac_ext |
| 13278 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13279 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13280 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13281 | /* Override any GCC internal prototype to avoid an error. |
| 13282 | Use char because int might match the return type of a GCC |
| 13283 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13284 | #ifdef __cplusplus |
| 13285 | extern "C" |
| 13286 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13287 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13288 | int |
| 13289 | main () |
| 13290 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13291 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13292 | ; |
| 13293 | return 0; |
| 13294 | } |
| 13295 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13296 | for ac_lib in '' dl; do |
| 13297 | if test -z "$ac_lib"; then |
| 13298 | ac_res="none required" |
| 13299 | else |
| 13300 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13301 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13302 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13303 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13304 | if { (ac_try="$ac_link" |
| 13305 | case "(($ac_try" in |
| 13306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13307 | *) ac_try_echo=$ac_try;; |
| 13308 | esac |
| 13309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13310 | (eval "$ac_link") 2>conftest.er1 |
| 13311 | ac_status=$? |
| 13312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13313 | rm -f conftest.er1 |
| 13314 | cat conftest.err >&5 |
| 13315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13316 | (exit $ac_status); } && |
| 13317 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13318 | { (case "(($ac_try" in |
| 13319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13320 | *) ac_try_echo=$ac_try;; |
| 13321 | esac |
| 13322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13323 | (eval "$ac_try") 2>&5 |
| 13324 | ac_status=$? |
| 13325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13326 | (exit $ac_status); }; } && |
| 13327 | { ac_try='test -s conftest$ac_exeext' |
| 13328 | { (case "(($ac_try" in |
| 13329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13330 | *) ac_try_echo=$ac_try;; |
| 13331 | esac |
| 13332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13333 | (eval "$ac_try") 2>&5 |
| 13334 | ac_status=$? |
| 13335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13336 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13337 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13338 | else |
| 13339 | echo "$as_me: failed program was:" >&5 |
| 13340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13341 | |
| 13342 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13343 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13344 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13345 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13346 | conftest$ac_exeext |
| 13347 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13348 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13349 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13350 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13351 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13352 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13353 | else |
| 13354 | ac_cv_search_dlopen=no |
| 13355 | fi |
| 13356 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13357 | LIBS=$ac_func_search_save_LIBS |
| 13358 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13359 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 13360 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13361 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13362 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13363 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13364 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13365 | cat >>confdefs.h <<\_ACEOF |
| 13366 | #define HAVE_DLOPEN 1 |
| 13367 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13368 | |
| 13369 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13370 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 13371 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13372 | fi |
| 13373 | |
| 13374 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13375 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13376 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 13377 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 13378 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13380 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13381 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13382 | cat >conftest.$ac_ext <<_ACEOF |
| 13383 | /* confdefs.h. */ |
| 13384 | _ACEOF |
| 13385 | cat confdefs.h >>conftest.$ac_ext |
| 13386 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13387 | /* end confdefs.h. */ |
| 13388 | |
| 13389 | /* Override any GCC internal prototype to avoid an error. |
| 13390 | Use char because int might match the return type of a GCC |
| 13391 | builtin and then its argument prototype would still apply. */ |
| 13392 | #ifdef __cplusplus |
| 13393 | extern "C" |
| 13394 | #endif |
| 13395 | char ffi_call (); |
| 13396 | int |
| 13397 | main () |
| 13398 | { |
| 13399 | return ffi_call (); |
| 13400 | ; |
| 13401 | return 0; |
| 13402 | } |
| 13403 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13404 | for ac_lib in '' ffi; do |
| 13405 | if test -z "$ac_lib"; then |
| 13406 | ac_res="none required" |
| 13407 | else |
| 13408 | ac_res=-l$ac_lib |
| 13409 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13410 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13411 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13412 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 13419 | ac_status=$? |
| 13420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13421 | rm -f conftest.er1 |
| 13422 | cat conftest.err >&5 |
| 13423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13424 | (exit $ac_status); } && |
| 13425 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13426 | { (case "(($ac_try" in |
| 13427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13428 | *) ac_try_echo=$ac_try;; |
| 13429 | esac |
| 13430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13431 | (eval "$ac_try") 2>&5 |
| 13432 | ac_status=$? |
| 13433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13434 | (exit $ac_status); }; } && |
| 13435 | { ac_try='test -s conftest$ac_exeext' |
| 13436 | { (case "(($ac_try" in |
| 13437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13438 | *) ac_try_echo=$ac_try;; |
| 13439 | esac |
| 13440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13441 | (eval "$ac_try") 2>&5 |
| 13442 | ac_status=$? |
| 13443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13444 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13445 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13446 | else |
| 13447 | echo "$as_me: failed program was:" >&5 |
| 13448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13449 | |
| 13450 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13451 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13452 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13453 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13454 | conftest$ac_exeext |
| 13455 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13456 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13457 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13458 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13459 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13460 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13461 | else |
| 13462 | ac_cv_search_ffi_call=no |
| 13463 | fi |
| 13464 | rm conftest.$ac_ext |
| 13465 | LIBS=$ac_func_search_save_LIBS |
| 13466 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13467 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 13468 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13469 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13470 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13471 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13472 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13473 | cat >>confdefs.h <<\_ACEOF |
| 13474 | #define HAVE_FFI_CALL 1 |
| 13475 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13476 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13477 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 13478 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 13479 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 13480 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13481 | fi |
| 13482 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13483 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13484 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13485 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 13486 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 13487 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13489 | else |
| 13490 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13491 | cat >conftest.$ac_ext <<_ACEOF |
| 13492 | /* confdefs.h. */ |
| 13493 | _ACEOF |
| 13494 | cat confdefs.h >>conftest.$ac_ext |
| 13495 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13496 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13497 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13498 | /* Override any GCC internal prototype to avoid an error. |
| 13499 | Use char because int might match the return type of a GCC |
| 13500 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13501 | #ifdef __cplusplus |
| 13502 | extern "C" |
| 13503 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13504 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13505 | int |
| 13506 | main () |
| 13507 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13508 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13509 | ; |
| 13510 | return 0; |
| 13511 | } |
| 13512 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13513 | for ac_lib in '' malloc; do |
| 13514 | if test -z "$ac_lib"; then |
| 13515 | ac_res="none required" |
| 13516 | else |
| 13517 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13518 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13519 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13520 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13521 | if { (ac_try="$ac_link" |
| 13522 | case "(($ac_try" in |
| 13523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13524 | *) ac_try_echo=$ac_try;; |
| 13525 | esac |
| 13526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13527 | (eval "$ac_link") 2>conftest.er1 |
| 13528 | ac_status=$? |
| 13529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13530 | rm -f conftest.er1 |
| 13531 | cat conftest.err >&5 |
| 13532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13533 | (exit $ac_status); } && |
| 13534 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13535 | { (case "(($ac_try" in |
| 13536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13537 | *) ac_try_echo=$ac_try;; |
| 13538 | esac |
| 13539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13540 | (eval "$ac_try") 2>&5 |
| 13541 | ac_status=$? |
| 13542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13543 | (exit $ac_status); }; } && |
| 13544 | { ac_try='test -s conftest$ac_exeext' |
| 13545 | { (case "(($ac_try" in |
| 13546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13547 | *) ac_try_echo=$ac_try;; |
| 13548 | esac |
| 13549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13550 | (eval "$ac_try") 2>&5 |
| 13551 | ac_status=$? |
| 13552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13553 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13554 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13555 | else |
| 13556 | echo "$as_me: failed program was:" >&5 |
| 13557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13558 | |
| 13559 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13560 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13561 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13562 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13563 | conftest$ac_exeext |
| 13564 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13565 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13566 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13567 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13568 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13569 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13570 | else |
| 13571 | ac_cv_search_mallinfo=no |
| 13572 | fi |
| 13573 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13574 | LIBS=$ac_func_search_save_LIBS |
| 13575 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13576 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 13577 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13578 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13579 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13580 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13581 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13582 | cat >>confdefs.h <<\_ACEOF |
| 13583 | #define HAVE_MALLINFO 1 |
| 13584 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13585 | |
| 13586 | fi |
| 13587 | |
| 13588 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13589 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13590 | |
| 13591 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 13592 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 13593 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 13594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13595 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13596 | ac_check_lib_save_LIBS=$LIBS |
| 13597 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13598 | cat >conftest.$ac_ext <<_ACEOF |
| 13599 | /* confdefs.h. */ |
| 13600 | _ACEOF |
| 13601 | cat confdefs.h >>conftest.$ac_ext |
| 13602 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13603 | /* end confdefs.h. */ |
| 13604 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13605 | /* Override any GCC internal prototype to avoid an error. |
| 13606 | Use char because int might match the return type of a GCC |
| 13607 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13608 | #ifdef __cplusplus |
| 13609 | extern "C" |
| 13610 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13611 | char pthread_mutex_init (); |
| 13612 | int |
| 13613 | main () |
| 13614 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13615 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13616 | ; |
| 13617 | return 0; |
| 13618 | } |
| 13619 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13620 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13621 | if { (ac_try="$ac_link" |
| 13622 | case "(($ac_try" in |
| 13623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13624 | *) ac_try_echo=$ac_try;; |
| 13625 | esac |
| 13626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13627 | (eval "$ac_link") 2>conftest.er1 |
| 13628 | ac_status=$? |
| 13629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13630 | rm -f conftest.er1 |
| 13631 | cat conftest.err >&5 |
| 13632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13633 | (exit $ac_status); } && |
| 13634 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13635 | { (case "(($ac_try" in |
| 13636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13637 | *) ac_try_echo=$ac_try;; |
| 13638 | esac |
| 13639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13640 | (eval "$ac_try") 2>&5 |
| 13641 | ac_status=$? |
| 13642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13643 | (exit $ac_status); }; } && |
| 13644 | { ac_try='test -s conftest$ac_exeext' |
| 13645 | { (case "(($ac_try" in |
| 13646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13647 | *) ac_try_echo=$ac_try;; |
| 13648 | esac |
| 13649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13650 | (eval "$ac_try") 2>&5 |
| 13651 | ac_status=$? |
| 13652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13653 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13654 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13655 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13656 | echo "$as_me: failed program was:" >&5 |
| 13657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13658 | |
| 13659 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13660 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13661 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13662 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13663 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13664 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13665 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13666 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 13667 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 13668 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13669 | cat >>confdefs.h <<_ACEOF |
| 13670 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 13671 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13672 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13673 | LIBS="-lpthread $LIBS" |
| 13674 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13675 | fi |
| 13676 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13677 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 13678 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 13679 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13681 | else |
| 13682 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13683 | cat >conftest.$ac_ext <<_ACEOF |
| 13684 | /* confdefs.h. */ |
| 13685 | _ACEOF |
| 13686 | cat confdefs.h >>conftest.$ac_ext |
| 13687 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13688 | /* end confdefs.h. */ |
| 13689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13690 | /* Override any GCC internal prototype to avoid an error. |
| 13691 | Use char because int might match the return type of a GCC |
| 13692 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13693 | #ifdef __cplusplus |
| 13694 | extern "C" |
| 13695 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13696 | char pthread_mutex_lock (); |
| 13697 | int |
| 13698 | main () |
| 13699 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13700 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13701 | ; |
| 13702 | return 0; |
| 13703 | } |
| 13704 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13705 | for ac_lib in '' pthread; do |
| 13706 | if test -z "$ac_lib"; then |
| 13707 | ac_res="none required" |
| 13708 | else |
| 13709 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13710 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13711 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13712 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13713 | if { (ac_try="$ac_link" |
| 13714 | case "(($ac_try" in |
| 13715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13716 | *) ac_try_echo=$ac_try;; |
| 13717 | esac |
| 13718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13719 | (eval "$ac_link") 2>conftest.er1 |
| 13720 | ac_status=$? |
| 13721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13722 | rm -f conftest.er1 |
| 13723 | cat conftest.err >&5 |
| 13724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13725 | (exit $ac_status); } && |
| 13726 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13727 | { (case "(($ac_try" in |
| 13728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13729 | *) ac_try_echo=$ac_try;; |
| 13730 | esac |
| 13731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13732 | (eval "$ac_try") 2>&5 |
| 13733 | ac_status=$? |
| 13734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13735 | (exit $ac_status); }; } && |
| 13736 | { ac_try='test -s conftest$ac_exeext' |
| 13737 | { (case "(($ac_try" in |
| 13738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13739 | *) ac_try_echo=$ac_try;; |
| 13740 | esac |
| 13741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13742 | (eval "$ac_try") 2>&5 |
| 13743 | ac_status=$? |
| 13744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13745 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13746 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13747 | else |
| 13748 | echo "$as_me: failed program was:" >&5 |
| 13749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13750 | |
| 13751 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13752 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13753 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13754 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13755 | conftest$ac_exeext |
| 13756 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13757 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13758 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13759 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13760 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13761 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13762 | else |
| 13763 | ac_cv_search_pthread_mutex_lock=no |
| 13764 | fi |
| 13765 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13766 | LIBS=$ac_func_search_save_LIBS |
| 13767 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13768 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 13769 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13770 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13771 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13772 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13773 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13774 | cat >>confdefs.h <<\_ACEOF |
| 13775 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 13776 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 13777 | |
| 13778 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13779 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13780 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 13781 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 13782 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13784 | else |
| 13785 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13786 | cat >conftest.$ac_ext <<_ACEOF |
| 13787 | /* confdefs.h. */ |
| 13788 | _ACEOF |
| 13789 | cat confdefs.h >>conftest.$ac_ext |
| 13790 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13791 | /* end confdefs.h. */ |
| 13792 | |
| 13793 | /* Override any GCC internal prototype to avoid an error. |
| 13794 | Use char because int might match the return type of a GCC |
| 13795 | builtin and then its argument prototype would still apply. */ |
| 13796 | #ifdef __cplusplus |
| 13797 | extern "C" |
| 13798 | #endif |
| 13799 | char pthread_rwlock_init (); |
| 13800 | int |
| 13801 | main () |
| 13802 | { |
| 13803 | return pthread_rwlock_init (); |
| 13804 | ; |
| 13805 | return 0; |
| 13806 | } |
| 13807 | _ACEOF |
| 13808 | for ac_lib in '' pthread; do |
| 13809 | if test -z "$ac_lib"; then |
| 13810 | ac_res="none required" |
| 13811 | else |
| 13812 | ac_res=-l$ac_lib |
| 13813 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13814 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13815 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13816 | if { (ac_try="$ac_link" |
| 13817 | case "(($ac_try" in |
| 13818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13819 | *) ac_try_echo=$ac_try;; |
| 13820 | esac |
| 13821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13822 | (eval "$ac_link") 2>conftest.er1 |
| 13823 | ac_status=$? |
| 13824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13825 | rm -f conftest.er1 |
| 13826 | cat conftest.err >&5 |
| 13827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13828 | (exit $ac_status); } && |
| 13829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13830 | { (case "(($ac_try" in |
| 13831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13832 | *) ac_try_echo=$ac_try;; |
| 13833 | esac |
| 13834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13835 | (eval "$ac_try") 2>&5 |
| 13836 | ac_status=$? |
| 13837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13838 | (exit $ac_status); }; } && |
| 13839 | { ac_try='test -s conftest$ac_exeext' |
| 13840 | { (case "(($ac_try" in |
| 13841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13842 | *) ac_try_echo=$ac_try;; |
| 13843 | esac |
| 13844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13845 | (eval "$ac_try") 2>&5 |
| 13846 | ac_status=$? |
| 13847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13848 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13849 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13850 | else |
| 13851 | echo "$as_me: failed program was:" >&5 |
| 13852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13853 | |
| 13854 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13855 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13856 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13857 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13858 | conftest$ac_exeext |
| 13859 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13860 | break |
| 13861 | fi |
| 13862 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13863 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13864 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13865 | else |
| 13866 | ac_cv_search_pthread_rwlock_init=no |
| 13867 | fi |
| 13868 | rm conftest.$ac_ext |
| 13869 | LIBS=$ac_func_search_save_LIBS |
| 13870 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13871 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 13872 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13873 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13874 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13875 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13876 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13877 | cat >>confdefs.h <<\_ACEOF |
| 13878 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 13879 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13880 | |
| 13881 | fi |
| 13882 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13883 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 13884 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 13885 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13887 | else |
| 13888 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13889 | cat >conftest.$ac_ext <<_ACEOF |
| 13890 | /* confdefs.h. */ |
| 13891 | _ACEOF |
| 13892 | cat confdefs.h >>conftest.$ac_ext |
| 13893 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13894 | /* end confdefs.h. */ |
| 13895 | |
| 13896 | /* Override any GCC internal prototype to avoid an error. |
| 13897 | Use char because int might match the return type of a GCC |
| 13898 | builtin and then its argument prototype would still apply. */ |
| 13899 | #ifdef __cplusplus |
| 13900 | extern "C" |
| 13901 | #endif |
| 13902 | char pthread_getspecific (); |
| 13903 | int |
| 13904 | main () |
| 13905 | { |
| 13906 | return pthread_getspecific (); |
| 13907 | ; |
| 13908 | return 0; |
| 13909 | } |
| 13910 | _ACEOF |
| 13911 | for ac_lib in '' pthread; do |
| 13912 | if test -z "$ac_lib"; then |
| 13913 | ac_res="none required" |
| 13914 | else |
| 13915 | ac_res=-l$ac_lib |
| 13916 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13917 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13918 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13919 | if { (ac_try="$ac_link" |
| 13920 | case "(($ac_try" in |
| 13921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13922 | *) ac_try_echo=$ac_try;; |
| 13923 | esac |
| 13924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13925 | (eval "$ac_link") 2>conftest.er1 |
| 13926 | ac_status=$? |
| 13927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13928 | rm -f conftest.er1 |
| 13929 | cat conftest.err >&5 |
| 13930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13931 | (exit $ac_status); } && |
| 13932 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13933 | { (case "(($ac_try" in |
| 13934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13935 | *) ac_try_echo=$ac_try;; |
| 13936 | esac |
| 13937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13938 | (eval "$ac_try") 2>&5 |
| 13939 | ac_status=$? |
| 13940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13941 | (exit $ac_status); }; } && |
| 13942 | { ac_try='test -s conftest$ac_exeext' |
| 13943 | { (case "(($ac_try" in |
| 13944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13945 | *) ac_try_echo=$ac_try;; |
| 13946 | esac |
| 13947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13948 | (eval "$ac_try") 2>&5 |
| 13949 | ac_status=$? |
| 13950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13951 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13952 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13953 | else |
| 13954 | echo "$as_me: failed program was:" >&5 |
| 13955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13956 | |
| 13957 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13958 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13959 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13960 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13961 | conftest$ac_exeext |
| 13962 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13963 | break |
| 13964 | fi |
| 13965 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13966 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13967 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13968 | else |
| 13969 | ac_cv_search_pthread_getspecific=no |
| 13970 | fi |
| 13971 | rm conftest.$ac_ext |
| 13972 | LIBS=$ac_func_search_save_LIBS |
| 13973 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13974 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 13975 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13976 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13977 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13978 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13979 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13980 | cat >>confdefs.h <<\_ACEOF |
| 13981 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 13982 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13983 | |
| 13984 | fi |
| 13985 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13986 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 13987 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13988 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13989 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13990 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13991 | withval=$with_udis86; |
| 13992 | USE_UDIS86=1 |
| 13993 | |
| 13994 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 13995 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13996 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 13997 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13998 | |
| 13999 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 14000 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 14001 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 14002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14003 | else |
| 14004 | ac_check_lib_save_LIBS=$LIBS |
| 14005 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14006 | cat >conftest.$ac_ext <<_ACEOF |
| 14007 | /* confdefs.h. */ |
| 14008 | _ACEOF |
| 14009 | cat confdefs.h >>conftest.$ac_ext |
| 14010 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14011 | /* end confdefs.h. */ |
| 14012 | |
| 14013 | /* Override any GCC internal prototype to avoid an error. |
| 14014 | Use char because int might match the return type of a GCC |
| 14015 | builtin and then its argument prototype would still apply. */ |
| 14016 | #ifdef __cplusplus |
| 14017 | extern "C" |
| 14018 | #endif |
| 14019 | char ud_init (); |
| 14020 | int |
| 14021 | main () |
| 14022 | { |
| 14023 | return ud_init (); |
| 14024 | ; |
| 14025 | return 0; |
| 14026 | } |
| 14027 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14028 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14029 | if { (ac_try="$ac_link" |
| 14030 | case "(($ac_try" in |
| 14031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14032 | *) ac_try_echo=$ac_try;; |
| 14033 | esac |
| 14034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14035 | (eval "$ac_link") 2>conftest.er1 |
| 14036 | ac_status=$? |
| 14037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14038 | rm -f conftest.er1 |
| 14039 | cat conftest.err >&5 |
| 14040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14041 | (exit $ac_status); } && |
| 14042 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14043 | { (case "(($ac_try" in |
| 14044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14045 | *) ac_try_echo=$ac_try;; |
| 14046 | esac |
| 14047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14048 | (eval "$ac_try") 2>&5 |
| 14049 | ac_status=$? |
| 14050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14051 | (exit $ac_status); }; } && |
| 14052 | { ac_try='test -s conftest$ac_exeext' |
| 14053 | { (case "(($ac_try" in |
| 14054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14055 | *) ac_try_echo=$ac_try;; |
| 14056 | esac |
| 14057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14058 | (eval "$ac_try") 2>&5 |
| 14059 | ac_status=$? |
| 14060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14061 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14062 | ac_cv_lib_udis86_ud_init=yes |
| 14063 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14064 | echo "$as_me: failed program was:" >&5 |
| 14065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14066 | |
| 14067 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14068 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14069 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14070 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14071 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14072 | LIBS=$ac_check_lib_save_LIBS |
| 14073 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14074 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 14075 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 14076 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14077 | cat >>confdefs.h <<_ACEOF |
| 14078 | #define HAVE_LIBUDIS86 1 |
| 14079 | _ACEOF |
| 14080 | |
| 14081 | LIBS="-ludis86 $LIBS" |
| 14082 | |
| 14083 | else |
| 14084 | |
| 14085 | echo "Error! You need to have libudis86 around." |
| 14086 | exit -1 |
| 14087 | |
| 14088 | fi |
| 14089 | |
| 14090 | |
| 14091 | else |
| 14092 | USE_UDIS86=0 |
| 14093 | |
| 14094 | fi |
| 14095 | |
| 14096 | |
| 14097 | cat >>confdefs.h <<_ACEOF |
| 14098 | #define USE_UDIS86 $USE_UDIS86 |
| 14099 | _ACEOF |
| 14100 | |
| 14101 | |
| 14102 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14103 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14104 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14105 | withval=$with_oprofile; |
| 14106 | USE_OPROFILE=1 |
| 14107 | |
| 14108 | case "$withval" in |
| 14109 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14110 | no) llvm_cv_oppath= |
| 14111 | USE_OPROFILE=0 |
| 14112 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14113 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 14114 | CPPFLAGS="-I${withval}/include";; |
| 14115 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14116 | if test -n "$llvm_cv_oppath" ; then |
| 14117 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14118 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 14119 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 14120 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14122 | else |
| 14123 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14124 | cat >conftest.$ac_ext <<_ACEOF |
| 14125 | /* confdefs.h. */ |
| 14126 | _ACEOF |
| 14127 | cat confdefs.h >>conftest.$ac_ext |
| 14128 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14129 | /* end confdefs.h. */ |
| 14130 | |
| 14131 | /* Override any GCC internal prototype to avoid an error. |
| 14132 | Use char because int might match the return type of a GCC |
| 14133 | builtin and then its argument prototype would still apply. */ |
| 14134 | #ifdef __cplusplus |
| 14135 | extern "C" |
| 14136 | #endif |
| 14137 | char bfd_init (); |
| 14138 | int |
| 14139 | main () |
| 14140 | { |
| 14141 | return bfd_init (); |
| 14142 | ; |
| 14143 | return 0; |
| 14144 | } |
| 14145 | _ACEOF |
| 14146 | for ac_lib in '' bfd; do |
| 14147 | if test -z "$ac_lib"; then |
| 14148 | ac_res="none required" |
| 14149 | else |
| 14150 | ac_res=-l$ac_lib |
| 14151 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14152 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14153 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14154 | if { (ac_try="$ac_link" |
| 14155 | case "(($ac_try" in |
| 14156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14157 | *) ac_try_echo=$ac_try;; |
| 14158 | esac |
| 14159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14160 | (eval "$ac_link") 2>conftest.er1 |
| 14161 | ac_status=$? |
| 14162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14163 | rm -f conftest.er1 |
| 14164 | cat conftest.err >&5 |
| 14165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14166 | (exit $ac_status); } && |
| 14167 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14168 | { (case "(($ac_try" in |
| 14169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14170 | *) ac_try_echo=$ac_try;; |
| 14171 | esac |
| 14172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14173 | (eval "$ac_try") 2>&5 |
| 14174 | ac_status=$? |
| 14175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14176 | (exit $ac_status); }; } && |
| 14177 | { ac_try='test -s conftest$ac_exeext' |
| 14178 | { (case "(($ac_try" in |
| 14179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14180 | *) ac_try_echo=$ac_try;; |
| 14181 | esac |
| 14182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14183 | (eval "$ac_try") 2>&5 |
| 14184 | ac_status=$? |
| 14185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14186 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14187 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14188 | else |
| 14189 | echo "$as_me: failed program was:" >&5 |
| 14190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14191 | |
| 14192 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14193 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14194 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14195 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14196 | conftest$ac_exeext |
| 14197 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14198 | break |
| 14199 | fi |
| 14200 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14201 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14202 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14203 | else |
| 14204 | ac_cv_search_bfd_init=no |
| 14205 | fi |
| 14206 | rm conftest.$ac_ext |
| 14207 | LIBS=$ac_func_search_save_LIBS |
| 14208 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14209 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 14210 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14211 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14212 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14213 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14214 | |
| 14215 | fi |
| 14216 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14217 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 14218 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 14219 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14221 | else |
| 14222 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14223 | cat >conftest.$ac_ext <<_ACEOF |
| 14224 | /* confdefs.h. */ |
| 14225 | _ACEOF |
| 14226 | cat confdefs.h >>conftest.$ac_ext |
| 14227 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14228 | /* end confdefs.h. */ |
| 14229 | |
| 14230 | /* Override any GCC internal prototype to avoid an error. |
| 14231 | Use char because int might match the return type of a GCC |
| 14232 | builtin and then its argument prototype would still apply. */ |
| 14233 | #ifdef __cplusplus |
| 14234 | extern "C" |
| 14235 | #endif |
| 14236 | char op_open_agent (); |
| 14237 | int |
| 14238 | main () |
| 14239 | { |
| 14240 | return op_open_agent (); |
| 14241 | ; |
| 14242 | return 0; |
| 14243 | } |
| 14244 | _ACEOF |
| 14245 | for ac_lib in '' opagent; do |
| 14246 | if test -z "$ac_lib"; then |
| 14247 | ac_res="none required" |
| 14248 | else |
| 14249 | ac_res=-l$ac_lib |
| 14250 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14251 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14252 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14253 | if { (ac_try="$ac_link" |
| 14254 | case "(($ac_try" in |
| 14255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14256 | *) ac_try_echo=$ac_try;; |
| 14257 | esac |
| 14258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14259 | (eval "$ac_link") 2>conftest.er1 |
| 14260 | ac_status=$? |
| 14261 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14262 | rm -f conftest.er1 |
| 14263 | cat conftest.err >&5 |
| 14264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14265 | (exit $ac_status); } && |
| 14266 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14267 | { (case "(($ac_try" in |
| 14268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14269 | *) ac_try_echo=$ac_try;; |
| 14270 | esac |
| 14271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14272 | (eval "$ac_try") 2>&5 |
| 14273 | ac_status=$? |
| 14274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14275 | (exit $ac_status); }; } && |
| 14276 | { ac_try='test -s conftest$ac_exeext' |
| 14277 | { (case "(($ac_try" in |
| 14278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14279 | *) ac_try_echo=$ac_try;; |
| 14280 | esac |
| 14281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14282 | (eval "$ac_try") 2>&5 |
| 14283 | ac_status=$? |
| 14284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14285 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14286 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14287 | else |
| 14288 | echo "$as_me: failed program was:" >&5 |
| 14289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14290 | |
| 14291 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14292 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14293 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14294 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14295 | conftest$ac_exeext |
| 14296 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14297 | break |
| 14298 | fi |
| 14299 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14300 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14301 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14302 | else |
| 14303 | ac_cv_search_op_open_agent=no |
| 14304 | fi |
| 14305 | rm conftest.$ac_ext |
| 14306 | LIBS=$ac_func_search_save_LIBS |
| 14307 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14308 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 14309 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14310 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14311 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14312 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14313 | |
| 14314 | else |
| 14315 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14316 | echo "Error! You need to have libopagent around." |
| 14317 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14318 | |
| 14319 | fi |
| 14320 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14321 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14322 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14323 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14324 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14326 | fi |
| 14327 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14328 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14329 | else |
| 14330 | # Is the header compilable? |
| 14331 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 14332 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 14333 | cat >conftest.$ac_ext <<_ACEOF |
| 14334 | /* confdefs.h. */ |
| 14335 | _ACEOF |
| 14336 | cat confdefs.h >>conftest.$ac_ext |
| 14337 | cat >>conftest.$ac_ext <<_ACEOF |
| 14338 | /* end confdefs.h. */ |
| 14339 | $ac_includes_default |
| 14340 | #include <opagent.h> |
| 14341 | _ACEOF |
| 14342 | rm -f conftest.$ac_objext |
| 14343 | if { (ac_try="$ac_compile" |
| 14344 | case "(($ac_try" in |
| 14345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14346 | *) ac_try_echo=$ac_try;; |
| 14347 | esac |
| 14348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14349 | (eval "$ac_compile") 2>conftest.er1 |
| 14350 | ac_status=$? |
| 14351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14352 | rm -f conftest.er1 |
| 14353 | cat conftest.err >&5 |
| 14354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14355 | (exit $ac_status); } && |
| 14356 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14357 | { (case "(($ac_try" in |
| 14358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14359 | *) ac_try_echo=$ac_try;; |
| 14360 | esac |
| 14361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14362 | (eval "$ac_try") 2>&5 |
| 14363 | ac_status=$? |
| 14364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14365 | (exit $ac_status); }; } && |
| 14366 | { ac_try='test -s conftest.$ac_objext' |
| 14367 | { (case "(($ac_try" in |
| 14368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14369 | *) ac_try_echo=$ac_try;; |
| 14370 | esac |
| 14371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14372 | (eval "$ac_try") 2>&5 |
| 14373 | ac_status=$? |
| 14374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14375 | (exit $ac_status); }; }; then |
| 14376 | ac_header_compiler=yes |
| 14377 | else |
| 14378 | echo "$as_me: failed program was:" >&5 |
| 14379 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14380 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14381 | ac_header_compiler=no |
| 14382 | fi |
| 14383 | |
| 14384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14385 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14386 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14387 | |
| 14388 | # Is the header present? |
| 14389 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 14390 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 14391 | cat >conftest.$ac_ext <<_ACEOF |
| 14392 | /* confdefs.h. */ |
| 14393 | _ACEOF |
| 14394 | cat confdefs.h >>conftest.$ac_ext |
| 14395 | cat >>conftest.$ac_ext <<_ACEOF |
| 14396 | /* end confdefs.h. */ |
| 14397 | #include <opagent.h> |
| 14398 | _ACEOF |
| 14399 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14400 | case "(($ac_try" in |
| 14401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14402 | *) ac_try_echo=$ac_try;; |
| 14403 | esac |
| 14404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14405 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14406 | ac_status=$? |
| 14407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14408 | rm -f conftest.er1 |
| 14409 | cat conftest.err >&5 |
| 14410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14411 | (exit $ac_status); } >/dev/null; then |
| 14412 | if test -s conftest.err; then |
| 14413 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14414 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14415 | else |
| 14416 | ac_cpp_err= |
| 14417 | fi |
| 14418 | else |
| 14419 | ac_cpp_err=yes |
| 14420 | fi |
| 14421 | if test -z "$ac_cpp_err"; then |
| 14422 | ac_header_preproc=yes |
| 14423 | else |
| 14424 | echo "$as_me: failed program was:" >&5 |
| 14425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14426 | |
| 14427 | ac_header_preproc=no |
| 14428 | fi |
| 14429 | |
| 14430 | rm -f conftest.err conftest.$ac_ext |
| 14431 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14432 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14433 | |
| 14434 | # So? What about this header? |
| 14435 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14436 | yes:no: ) |
| 14437 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14438 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14439 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 14440 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 14441 | ac_header_preproc=yes |
| 14442 | ;; |
| 14443 | no:yes:* ) |
| 14444 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 14445 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 14446 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 14447 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 14448 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 14449 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 14450 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14451 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14452 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 14453 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 14454 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 14455 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 14456 | ( cat <<\_ASBOX |
| 14457 | ## ----------------------------------- ## |
| 14458 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 14459 | ## ----------------------------------- ## |
| 14460 | _ASBOX |
| 14461 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14462 | ;; |
| 14463 | esac |
| 14464 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14465 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14466 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14468 | else |
| 14469 | ac_cv_header_opagent_h=$ac_header_preproc |
| 14470 | fi |
| 14471 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14472 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14473 | |
| 14474 | fi |
| 14475 | if test $ac_cv_header_opagent_h = yes; then |
| 14476 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14477 | else |
| 14478 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14479 | echo "Error! You need to have opagent.h around." |
| 14480 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14481 | |
| 14482 | fi |
| 14483 | |
| 14484 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14485 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14486 | |
| 14487 | else |
| 14488 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14489 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14490 | |
| 14491 | |
| 14492 | fi |
| 14493 | |
| 14494 | |
| 14495 | cat >>confdefs.h <<_ACEOF |
| 14496 | #define USE_OPROFILE $USE_OPROFILE |
| 14497 | _ACEOF |
| 14498 | |
| 14499 | |
| 14500 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14501 | |
| 14502 | |
| 14503 | |
| 14504 | |
| 14505 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14506 | ac_header_dirent=no |
| 14507 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14508 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 14509 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 14510 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 14511 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14513 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14514 | cat >conftest.$ac_ext <<_ACEOF |
| 14515 | /* confdefs.h. */ |
| 14516 | _ACEOF |
| 14517 | cat confdefs.h >>conftest.$ac_ext |
| 14518 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14519 | /* end confdefs.h. */ |
| 14520 | #include <sys/types.h> |
| 14521 | #include <$ac_hdr> |
| 14522 | |
| 14523 | int |
| 14524 | main () |
| 14525 | { |
| 14526 | if ((DIR *) 0) |
| 14527 | return 0; |
| 14528 | ; |
| 14529 | return 0; |
| 14530 | } |
| 14531 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14532 | rm -f conftest.$ac_objext |
| 14533 | if { (ac_try="$ac_compile" |
| 14534 | case "(($ac_try" in |
| 14535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14536 | *) ac_try_echo=$ac_try;; |
| 14537 | esac |
| 14538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14539 | (eval "$ac_compile") 2>conftest.er1 |
| 14540 | ac_status=$? |
| 14541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14542 | rm -f conftest.er1 |
| 14543 | cat conftest.err >&5 |
| 14544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14545 | (exit $ac_status); } && |
| 14546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14547 | { (case "(($ac_try" in |
| 14548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14549 | *) ac_try_echo=$ac_try;; |
| 14550 | esac |
| 14551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14552 | (eval "$ac_try") 2>&5 |
| 14553 | ac_status=$? |
| 14554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14555 | (exit $ac_status); }; } && |
| 14556 | { ac_try='test -s conftest.$ac_objext' |
| 14557 | { (case "(($ac_try" in |
| 14558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14559 | *) ac_try_echo=$ac_try;; |
| 14560 | esac |
| 14561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14562 | (eval "$ac_try") 2>&5 |
| 14563 | ac_status=$? |
| 14564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14565 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14566 | eval "$as_ac_Header=yes" |
| 14567 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14568 | echo "$as_me: failed program was:" >&5 |
| 14569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14570 | |
| 14571 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14572 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14573 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14575 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14576 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14577 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14578 | echo "${ECHO_T}$ac_res" >&6; } |
| 14579 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14580 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14581 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14582 | _ACEOF |
| 14583 | |
| 14584 | ac_header_dirent=$ac_hdr; break |
| 14585 | fi |
| 14586 | |
| 14587 | done |
| 14588 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 14589 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14590 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14591 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14592 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14594 | else |
| 14595 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14596 | cat >conftest.$ac_ext <<_ACEOF |
| 14597 | /* confdefs.h. */ |
| 14598 | _ACEOF |
| 14599 | cat confdefs.h >>conftest.$ac_ext |
| 14600 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14601 | /* end confdefs.h. */ |
| 14602 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14603 | /* Override any GCC internal prototype to avoid an error. |
| 14604 | Use char because int might match the return type of a GCC |
| 14605 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14606 | #ifdef __cplusplus |
| 14607 | extern "C" |
| 14608 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14609 | char opendir (); |
| 14610 | int |
| 14611 | main () |
| 14612 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14613 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14614 | ; |
| 14615 | return 0; |
| 14616 | } |
| 14617 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14618 | for ac_lib in '' dir; do |
| 14619 | if test -z "$ac_lib"; then |
| 14620 | ac_res="none required" |
| 14621 | else |
| 14622 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14623 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14624 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14625 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14626 | if { (ac_try="$ac_link" |
| 14627 | case "(($ac_try" in |
| 14628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14629 | *) ac_try_echo=$ac_try;; |
| 14630 | esac |
| 14631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14632 | (eval "$ac_link") 2>conftest.er1 |
| 14633 | ac_status=$? |
| 14634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14635 | rm -f conftest.er1 |
| 14636 | cat conftest.err >&5 |
| 14637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14638 | (exit $ac_status); } && |
| 14639 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14640 | { (case "(($ac_try" in |
| 14641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14642 | *) ac_try_echo=$ac_try;; |
| 14643 | esac |
| 14644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14645 | (eval "$ac_try") 2>&5 |
| 14646 | ac_status=$? |
| 14647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14648 | (exit $ac_status); }; } && |
| 14649 | { ac_try='test -s conftest$ac_exeext' |
| 14650 | { (case "(($ac_try" in |
| 14651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14652 | *) ac_try_echo=$ac_try;; |
| 14653 | esac |
| 14654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14655 | (eval "$ac_try") 2>&5 |
| 14656 | ac_status=$? |
| 14657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14658 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14659 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14660 | else |
| 14661 | echo "$as_me: failed program was:" >&5 |
| 14662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14663 | |
| 14664 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14665 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14666 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14667 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14668 | conftest$ac_exeext |
| 14669 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14670 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14671 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14672 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14673 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14674 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14675 | else |
| 14676 | ac_cv_search_opendir=no |
| 14677 | fi |
| 14678 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14679 | LIBS=$ac_func_search_save_LIBS |
| 14680 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14681 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14682 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14683 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14684 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14685 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14686 | |
| 14687 | fi |
| 14688 | |
| 14689 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14690 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14691 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14692 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14694 | else |
| 14695 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14696 | cat >conftest.$ac_ext <<_ACEOF |
| 14697 | /* confdefs.h. */ |
| 14698 | _ACEOF |
| 14699 | cat confdefs.h >>conftest.$ac_ext |
| 14700 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14701 | /* end confdefs.h. */ |
| 14702 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14703 | /* Override any GCC internal prototype to avoid an error. |
| 14704 | Use char because int might match the return type of a GCC |
| 14705 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14706 | #ifdef __cplusplus |
| 14707 | extern "C" |
| 14708 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14709 | char opendir (); |
| 14710 | int |
| 14711 | main () |
| 14712 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14713 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14714 | ; |
| 14715 | return 0; |
| 14716 | } |
| 14717 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14718 | for ac_lib in '' x; do |
| 14719 | if test -z "$ac_lib"; then |
| 14720 | ac_res="none required" |
| 14721 | else |
| 14722 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14723 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14724 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14725 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14726 | if { (ac_try="$ac_link" |
| 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_link") 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_c_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_exeext' |
| 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 | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14759 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14760 | else |
| 14761 | echo "$as_me: failed program was:" >&5 |
| 14762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14763 | |
| 14764 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14765 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14766 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14767 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14768 | conftest$ac_exeext |
| 14769 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14770 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14771 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14772 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14773 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14774 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14775 | else |
| 14776 | ac_cv_search_opendir=no |
| 14777 | fi |
| 14778 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14779 | LIBS=$ac_func_search_save_LIBS |
| 14780 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14781 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14782 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14783 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14784 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14785 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14786 | |
| 14787 | fi |
| 14788 | |
| 14789 | fi |
| 14790 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14791 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 14792 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 14793 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 14794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14795 | else |
| 14796 | ac_ext=c |
| 14797 | ac_cpp='$CPP $CPPFLAGS' |
| 14798 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14799 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14800 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14801 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14802 | cat >conftest.$ac_ext <<_ACEOF |
| 14803 | /* confdefs.h. */ |
| 14804 | _ACEOF |
| 14805 | cat confdefs.h >>conftest.$ac_ext |
| 14806 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14807 | /* end confdefs.h. */ |
| 14808 | #include <sys/mman.h> |
| 14809 | #include <unistd.h> |
| 14810 | #include <fcntl.h> |
| 14811 | int |
| 14812 | main () |
| 14813 | { |
| 14814 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 14815 | ; |
| 14816 | return 0; |
| 14817 | } |
| 14818 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14819 | rm -f conftest.$ac_objext |
| 14820 | if { (ac_try="$ac_compile" |
| 14821 | case "(($ac_try" in |
| 14822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14823 | *) ac_try_echo=$ac_try;; |
| 14824 | esac |
| 14825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14826 | (eval "$ac_compile") 2>conftest.er1 |
| 14827 | ac_status=$? |
| 14828 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14829 | rm -f conftest.er1 |
| 14830 | cat conftest.err >&5 |
| 14831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14832 | (exit $ac_status); } && |
| 14833 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14834 | { (case "(($ac_try" in |
| 14835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14836 | *) ac_try_echo=$ac_try;; |
| 14837 | esac |
| 14838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14839 | (eval "$ac_try") 2>&5 |
| 14840 | ac_status=$? |
| 14841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14842 | (exit $ac_status); }; } && |
| 14843 | { ac_try='test -s conftest.$ac_objext' |
| 14844 | { (case "(($ac_try" in |
| 14845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14846 | *) ac_try_echo=$ac_try;; |
| 14847 | esac |
| 14848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14849 | (eval "$ac_try") 2>&5 |
| 14850 | ac_status=$? |
| 14851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14852 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14853 | ac_cv_header_mmap_anon=yes |
| 14854 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14855 | echo "$as_me: failed program was:" >&5 |
| 14856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14857 | |
| 14858 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14859 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14860 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14862 | ac_ext=c |
| 14863 | ac_cpp='$CPP $CPPFLAGS' |
| 14864 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14865 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14866 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14867 | |
| 14868 | |
| 14869 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14870 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 14871 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14872 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 14873 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14874 | cat >>confdefs.h <<\_ACEOF |
| 14875 | #define HAVE_MMAP_ANONYMOUS 1 |
| 14876 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14877 | |
| 14878 | fi |
| 14879 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14880 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 14881 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 14882 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 14883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14884 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14885 | cat >conftest.$ac_ext <<_ACEOF |
| 14886 | /* confdefs.h. */ |
| 14887 | _ACEOF |
| 14888 | cat confdefs.h >>conftest.$ac_ext |
| 14889 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14890 | /* end confdefs.h. */ |
| 14891 | #include <sys/types.h> |
| 14892 | #include <sys/stat.h> |
| 14893 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14894 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14895 | # if S_ISBLK (S_IFDIR) |
| 14896 | You lose. |
| 14897 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14898 | #endif |
| 14899 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14900 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14901 | # if S_ISBLK (S_IFCHR) |
| 14902 | You lose. |
| 14903 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14904 | #endif |
| 14905 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14906 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14907 | # if S_ISLNK (S_IFREG) |
| 14908 | You lose. |
| 14909 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14910 | #endif |
| 14911 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14912 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14913 | # if S_ISSOCK (S_IFREG) |
| 14914 | You lose. |
| 14915 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14916 | #endif |
| 14917 | |
| 14918 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14919 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14920 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 14921 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14922 | else |
| 14923 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 14924 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14925 | rm -f conftest* |
| 14926 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14927 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14928 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 14929 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14930 | if test $ac_cv_header_stat_broken = yes; then |
| 14931 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14932 | cat >>confdefs.h <<\_ACEOF |
| 14933 | #define STAT_MACROS_BROKEN 1 |
| 14934 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14935 | |
| 14936 | fi |
| 14937 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14938 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 14939 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 14940 | if test "${ac_cv_header_stdc+set}" = set; then |
| 14941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14942 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14943 | cat >conftest.$ac_ext <<_ACEOF |
| 14944 | /* confdefs.h. */ |
| 14945 | _ACEOF |
| 14946 | cat confdefs.h >>conftest.$ac_ext |
| 14947 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14948 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14949 | #include <stdlib.h> |
| 14950 | #include <stdarg.h> |
| 14951 | #include <string.h> |
| 14952 | #include <float.h> |
| 14953 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14954 | int |
| 14955 | main () |
| 14956 | { |
| 14957 | |
| 14958 | ; |
| 14959 | return 0; |
| 14960 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14961 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14962 | rm -f conftest.$ac_objext |
| 14963 | if { (ac_try="$ac_compile" |
| 14964 | case "(($ac_try" in |
| 14965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14966 | *) ac_try_echo=$ac_try;; |
| 14967 | esac |
| 14968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14969 | (eval "$ac_compile") 2>conftest.er1 |
| 14970 | ac_status=$? |
| 14971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14972 | rm -f conftest.er1 |
| 14973 | cat conftest.err >&5 |
| 14974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14975 | (exit $ac_status); } && |
| 14976 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14977 | { (case "(($ac_try" in |
| 14978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14979 | *) ac_try_echo=$ac_try;; |
| 14980 | esac |
| 14981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14982 | (eval "$ac_try") 2>&5 |
| 14983 | ac_status=$? |
| 14984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14985 | (exit $ac_status); }; } && |
| 14986 | { ac_try='test -s conftest.$ac_objext' |
| 14987 | { (case "(($ac_try" in |
| 14988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14989 | *) ac_try_echo=$ac_try;; |
| 14990 | esac |
| 14991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14992 | (eval "$ac_try") 2>&5 |
| 14993 | ac_status=$? |
| 14994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14995 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14996 | ac_cv_header_stdc=yes |
| 14997 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14998 | echo "$as_me: failed program was:" >&5 |
| 14999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15000 | |
| 15001 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15002 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15005 | |
| 15006 | if test $ac_cv_header_stdc = yes; then |
| 15007 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15008 | cat >conftest.$ac_ext <<_ACEOF |
| 15009 | /* confdefs.h. */ |
| 15010 | _ACEOF |
| 15011 | cat confdefs.h >>conftest.$ac_ext |
| 15012 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15013 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15014 | #include <string.h> |
| 15015 | |
| 15016 | _ACEOF |
| 15017 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15018 | $EGREP "memchr" >/dev/null 2>&1; then |
| 15019 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15020 | else |
| 15021 | ac_cv_header_stdc=no |
| 15022 | fi |
| 15023 | rm -f conftest* |
| 15024 | |
| 15025 | fi |
| 15026 | |
| 15027 | if test $ac_cv_header_stdc = yes; then |
| 15028 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15029 | cat >conftest.$ac_ext <<_ACEOF |
| 15030 | /* confdefs.h. */ |
| 15031 | _ACEOF |
| 15032 | cat confdefs.h >>conftest.$ac_ext |
| 15033 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15034 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15035 | #include <stdlib.h> |
| 15036 | |
| 15037 | _ACEOF |
| 15038 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15039 | $EGREP "free" >/dev/null 2>&1; then |
| 15040 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15041 | else |
| 15042 | ac_cv_header_stdc=no |
| 15043 | fi |
| 15044 | rm -f conftest* |
| 15045 | |
| 15046 | fi |
| 15047 | |
| 15048 | if test $ac_cv_header_stdc = yes; then |
| 15049 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15050 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15051 | : |
| 15052 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15053 | cat >conftest.$ac_ext <<_ACEOF |
| 15054 | /* confdefs.h. */ |
| 15055 | _ACEOF |
| 15056 | cat confdefs.h >>conftest.$ac_ext |
| 15057 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15058 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15059 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15060 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15061 | #if ((' ' & 0x0FF) == 0x020) |
| 15062 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 15063 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 15064 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15065 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15066 | (('a' <= (c) && (c) <= 'i') \ |
| 15067 | || ('j' <= (c) && (c) <= 'r') \ |
| 15068 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15069 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 15070 | #endif |
| 15071 | |
| 15072 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 15073 | int |
| 15074 | main () |
| 15075 | { |
| 15076 | int i; |
| 15077 | for (i = 0; i < 256; i++) |
| 15078 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15079 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15080 | return 2; |
| 15081 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15082 | } |
| 15083 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15084 | rm -f conftest$ac_exeext |
| 15085 | if { (ac_try="$ac_link" |
| 15086 | case "(($ac_try" in |
| 15087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15088 | *) ac_try_echo=$ac_try;; |
| 15089 | esac |
| 15090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15091 | (eval "$ac_link") 2>&5 |
| 15092 | ac_status=$? |
| 15093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15094 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15095 | { (case "(($ac_try" in |
| 15096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15097 | *) ac_try_echo=$ac_try;; |
| 15098 | esac |
| 15099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15100 | (eval "$ac_try") 2>&5 |
| 15101 | ac_status=$? |
| 15102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15103 | (exit $ac_status); }; }; then |
| 15104 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15105 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15106 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15107 | echo "$as_me: failed program was:" >&5 |
| 15108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15109 | |
| 15110 | ( exit $ac_status ) |
| 15111 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15112 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15113 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15114 | fi |
| 15115 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15116 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15117 | fi |
| 15118 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15119 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 15120 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15121 | if test $ac_cv_header_stdc = yes; then |
| 15122 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15123 | cat >>confdefs.h <<\_ACEOF |
| 15124 | #define STDC_HEADERS 1 |
| 15125 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15126 | |
| 15127 | fi |
| 15128 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15129 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 15130 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 15131 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 15132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15133 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15134 | cat >conftest.$ac_ext <<_ACEOF |
| 15135 | /* confdefs.h. */ |
| 15136 | _ACEOF |
| 15137 | cat confdefs.h >>conftest.$ac_ext |
| 15138 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15139 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15140 | #include <sys/types.h> |
| 15141 | #include <sys/wait.h> |
| 15142 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15143 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15144 | #endif |
| 15145 | #ifndef WIFEXITED |
| 15146 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 15147 | #endif |
| 15148 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15149 | int |
| 15150 | main () |
| 15151 | { |
| 15152 | int s; |
| 15153 | wait (&s); |
| 15154 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 15155 | ; |
| 15156 | return 0; |
| 15157 | } |
| 15158 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15159 | rm -f conftest.$ac_objext |
| 15160 | if { (ac_try="$ac_compile" |
| 15161 | case "(($ac_try" in |
| 15162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15163 | *) ac_try_echo=$ac_try;; |
| 15164 | esac |
| 15165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15166 | (eval "$ac_compile") 2>conftest.er1 |
| 15167 | ac_status=$? |
| 15168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15169 | rm -f conftest.er1 |
| 15170 | cat conftest.err >&5 |
| 15171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15172 | (exit $ac_status); } && |
| 15173 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15174 | { (case "(($ac_try" in |
| 15175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15176 | *) ac_try_echo=$ac_try;; |
| 15177 | esac |
| 15178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15179 | (eval "$ac_try") 2>&5 |
| 15180 | ac_status=$? |
| 15181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15182 | (exit $ac_status); }; } && |
| 15183 | { ac_try='test -s conftest.$ac_objext' |
| 15184 | { (case "(($ac_try" in |
| 15185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15186 | *) ac_try_echo=$ac_try;; |
| 15187 | esac |
| 15188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15189 | (eval "$ac_try") 2>&5 |
| 15190 | ac_status=$? |
| 15191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15192 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15193 | ac_cv_header_sys_wait_h=yes |
| 15194 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15195 | echo "$as_me: failed program was:" >&5 |
| 15196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15197 | |
| 15198 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15199 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15200 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15202 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15203 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 15204 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15205 | if test $ac_cv_header_sys_wait_h = yes; then |
| 15206 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15207 | cat >>confdefs.h <<\_ACEOF |
| 15208 | #define HAVE_SYS_WAIT_H 1 |
| 15209 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15210 | |
| 15211 | fi |
| 15212 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15213 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15214 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 15215 | if test "${ac_cv_header_time+set}" = set; then |
| 15216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15217 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15218 | cat >conftest.$ac_ext <<_ACEOF |
| 15219 | /* confdefs.h. */ |
| 15220 | _ACEOF |
| 15221 | cat confdefs.h >>conftest.$ac_ext |
| 15222 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15223 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15224 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15225 | #include <sys/time.h> |
| 15226 | #include <time.h> |
| 15227 | |
| 15228 | int |
| 15229 | main () |
| 15230 | { |
| 15231 | if ((struct tm *) 0) |
| 15232 | return 0; |
| 15233 | ; |
| 15234 | return 0; |
| 15235 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15236 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15237 | rm -f conftest.$ac_objext |
| 15238 | if { (ac_try="$ac_compile" |
| 15239 | case "(($ac_try" in |
| 15240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15241 | *) ac_try_echo=$ac_try;; |
| 15242 | esac |
| 15243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15244 | (eval "$ac_compile") 2>conftest.er1 |
| 15245 | ac_status=$? |
| 15246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15247 | rm -f conftest.er1 |
| 15248 | cat conftest.err >&5 |
| 15249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15250 | (exit $ac_status); } && |
| 15251 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15252 | { (case "(($ac_try" in |
| 15253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15254 | *) ac_try_echo=$ac_try;; |
| 15255 | esac |
| 15256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15257 | (eval "$ac_try") 2>&5 |
| 15258 | ac_status=$? |
| 15259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15260 | (exit $ac_status); }; } && |
| 15261 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15271 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15272 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15273 | echo "$as_me: failed program was:" >&5 |
| 15274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15275 | |
| 15276 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15277 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15278 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15280 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15281 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15282 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15283 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15284 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15285 | cat >>confdefs.h <<\_ACEOF |
| 15286 | #define TIME_WITH_SYS_TIME 1 |
| 15287 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15288 | |
| 15289 | fi |
| 15290 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15291 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15292 | |
| 15293 | |
| 15294 | |
| 15295 | |
| 15296 | |
| 15297 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15298 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15299 | do |
| 15300 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15301 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15302 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15303 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15304 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15306 | fi |
| 15307 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15308 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15309 | echo "${ECHO_T}$ac_res" >&6; } |
| 15310 | else |
| 15311 | # Is the header compilable? |
| 15312 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15313 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15314 | cat >conftest.$ac_ext <<_ACEOF |
| 15315 | /* confdefs.h. */ |
| 15316 | _ACEOF |
| 15317 | cat confdefs.h >>conftest.$ac_ext |
| 15318 | cat >>conftest.$ac_ext <<_ACEOF |
| 15319 | /* end confdefs.h. */ |
| 15320 | $ac_includes_default |
| 15321 | #include <$ac_header> |
| 15322 | _ACEOF |
| 15323 | rm -f conftest.$ac_objext |
| 15324 | if { (ac_try="$ac_compile" |
| 15325 | case "(($ac_try" in |
| 15326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15327 | *) ac_try_echo=$ac_try;; |
| 15328 | esac |
| 15329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15330 | (eval "$ac_compile") 2>conftest.er1 |
| 15331 | ac_status=$? |
| 15332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15333 | rm -f conftest.er1 |
| 15334 | cat conftest.err >&5 |
| 15335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15336 | (exit $ac_status); } && |
| 15337 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15338 | { (case "(($ac_try" in |
| 15339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15340 | *) ac_try_echo=$ac_try;; |
| 15341 | esac |
| 15342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15343 | (eval "$ac_try") 2>&5 |
| 15344 | ac_status=$? |
| 15345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15346 | (exit $ac_status); }; } && |
| 15347 | { ac_try='test -s conftest.$ac_objext' |
| 15348 | { (case "(($ac_try" in |
| 15349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15350 | *) ac_try_echo=$ac_try;; |
| 15351 | esac |
| 15352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15353 | (eval "$ac_try") 2>&5 |
| 15354 | ac_status=$? |
| 15355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15356 | (exit $ac_status); }; }; then |
| 15357 | ac_header_compiler=yes |
| 15358 | else |
| 15359 | echo "$as_me: failed program was:" >&5 |
| 15360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15361 | |
| 15362 | ac_header_compiler=no |
| 15363 | fi |
| 15364 | |
| 15365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15366 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15367 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15368 | |
| 15369 | # Is the header present? |
| 15370 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15371 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15372 | cat >conftest.$ac_ext <<_ACEOF |
| 15373 | /* confdefs.h. */ |
| 15374 | _ACEOF |
| 15375 | cat confdefs.h >>conftest.$ac_ext |
| 15376 | cat >>conftest.$ac_ext <<_ACEOF |
| 15377 | /* end confdefs.h. */ |
| 15378 | #include <$ac_header> |
| 15379 | _ACEOF |
| 15380 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15381 | case "(($ac_try" in |
| 15382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15383 | *) ac_try_echo=$ac_try;; |
| 15384 | esac |
| 15385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15386 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15387 | ac_status=$? |
| 15388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15389 | rm -f conftest.er1 |
| 15390 | cat conftest.err >&5 |
| 15391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15392 | (exit $ac_status); } >/dev/null; then |
| 15393 | if test -s conftest.err; then |
| 15394 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15395 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15396 | else |
| 15397 | ac_cpp_err= |
| 15398 | fi |
| 15399 | else |
| 15400 | ac_cpp_err=yes |
| 15401 | fi |
| 15402 | if test -z "$ac_cpp_err"; then |
| 15403 | ac_header_preproc=yes |
| 15404 | else |
| 15405 | echo "$as_me: failed program was:" >&5 |
| 15406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15407 | |
| 15408 | ac_header_preproc=no |
| 15409 | fi |
| 15410 | |
| 15411 | rm -f conftest.err conftest.$ac_ext |
| 15412 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15413 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15414 | |
| 15415 | # So? What about this header? |
| 15416 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15417 | yes:no: ) |
| 15418 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15419 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15420 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15421 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15422 | ac_header_preproc=yes |
| 15423 | ;; |
| 15424 | no:yes:* ) |
| 15425 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15426 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15427 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15428 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15429 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15430 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15431 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15432 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15433 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15434 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15435 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15436 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15437 | ( cat <<\_ASBOX |
| 15438 | ## ----------------------------------- ## |
| 15439 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15440 | ## ----------------------------------- ## |
| 15441 | _ASBOX |
| 15442 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15443 | ;; |
| 15444 | esac |
| 15445 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15446 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15447 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15449 | else |
| 15450 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15451 | fi |
| 15452 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15453 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15454 | echo "${ECHO_T}$ac_res" >&6; } |
| 15455 | |
| 15456 | fi |
| 15457 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15458 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15459 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15460 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15461 | |
| 15462 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15463 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15464 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15465 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15466 | |
| 15467 | |
| 15468 | |
| 15469 | |
| 15470 | |
| 15471 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15472 | for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15473 | do |
| 15474 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15475 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15476 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15477 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15478 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15480 | fi |
| 15481 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15482 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15483 | echo "${ECHO_T}$ac_res" >&6; } |
| 15484 | else |
| 15485 | # Is the header compilable? |
| 15486 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15487 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15488 | cat >conftest.$ac_ext <<_ACEOF |
| 15489 | /* confdefs.h. */ |
| 15490 | _ACEOF |
| 15491 | cat confdefs.h >>conftest.$ac_ext |
| 15492 | cat >>conftest.$ac_ext <<_ACEOF |
| 15493 | /* end confdefs.h. */ |
| 15494 | $ac_includes_default |
| 15495 | #include <$ac_header> |
| 15496 | _ACEOF |
| 15497 | rm -f conftest.$ac_objext |
| 15498 | if { (ac_try="$ac_compile" |
| 15499 | case "(($ac_try" in |
| 15500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15501 | *) ac_try_echo=$ac_try;; |
| 15502 | esac |
| 15503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15504 | (eval "$ac_compile") 2>conftest.er1 |
| 15505 | ac_status=$? |
| 15506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15507 | rm -f conftest.er1 |
| 15508 | cat conftest.err >&5 |
| 15509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15510 | (exit $ac_status); } && |
| 15511 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15512 | { (case "(($ac_try" in |
| 15513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15514 | *) ac_try_echo=$ac_try;; |
| 15515 | esac |
| 15516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15517 | (eval "$ac_try") 2>&5 |
| 15518 | ac_status=$? |
| 15519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15520 | (exit $ac_status); }; } && |
| 15521 | { ac_try='test -s conftest.$ac_objext' |
| 15522 | { (case "(($ac_try" in |
| 15523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15524 | *) ac_try_echo=$ac_try;; |
| 15525 | esac |
| 15526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15527 | (eval "$ac_try") 2>&5 |
| 15528 | ac_status=$? |
| 15529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15530 | (exit $ac_status); }; }; then |
| 15531 | ac_header_compiler=yes |
| 15532 | else |
| 15533 | echo "$as_me: failed program was:" >&5 |
| 15534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15535 | |
| 15536 | ac_header_compiler=no |
| 15537 | fi |
| 15538 | |
| 15539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15540 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15541 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15542 | |
| 15543 | # Is the header present? |
| 15544 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15545 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15546 | cat >conftest.$ac_ext <<_ACEOF |
| 15547 | /* confdefs.h. */ |
| 15548 | _ACEOF |
| 15549 | cat confdefs.h >>conftest.$ac_ext |
| 15550 | cat >>conftest.$ac_ext <<_ACEOF |
| 15551 | /* end confdefs.h. */ |
| 15552 | #include <$ac_header> |
| 15553 | _ACEOF |
| 15554 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15555 | case "(($ac_try" in |
| 15556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15557 | *) ac_try_echo=$ac_try;; |
| 15558 | esac |
| 15559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15560 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15561 | ac_status=$? |
| 15562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15563 | rm -f conftest.er1 |
| 15564 | cat conftest.err >&5 |
| 15565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15566 | (exit $ac_status); } >/dev/null; then |
| 15567 | if test -s conftest.err; then |
| 15568 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15569 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15570 | else |
| 15571 | ac_cpp_err= |
| 15572 | fi |
| 15573 | else |
| 15574 | ac_cpp_err=yes |
| 15575 | fi |
| 15576 | if test -z "$ac_cpp_err"; then |
| 15577 | ac_header_preproc=yes |
| 15578 | else |
| 15579 | echo "$as_me: failed program was:" >&5 |
| 15580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15581 | |
| 15582 | ac_header_preproc=no |
| 15583 | fi |
| 15584 | |
| 15585 | rm -f conftest.err conftest.$ac_ext |
| 15586 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15587 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15588 | |
| 15589 | # So? What about this header? |
| 15590 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15591 | yes:no: ) |
| 15592 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15593 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15594 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15595 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15596 | ac_header_preproc=yes |
| 15597 | ;; |
| 15598 | no:yes:* ) |
| 15599 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15600 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15601 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15602 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15603 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15604 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15605 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15606 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15607 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15608 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15609 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15610 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15611 | ( cat <<\_ASBOX |
| 15612 | ## ----------------------------------- ## |
| 15613 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15614 | ## ----------------------------------- ## |
| 15615 | _ASBOX |
| 15616 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15617 | ;; |
| 15618 | esac |
| 15619 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15620 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15621 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15623 | else |
| 15624 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15625 | fi |
| 15626 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15627 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15628 | echo "${ECHO_T}$ac_res" >&6; } |
| 15629 | |
| 15630 | fi |
| 15631 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15632 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15633 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15634 | _ACEOF |
| 15635 | |
| 15636 | fi |
| 15637 | |
| 15638 | done |
| 15639 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15640 | |
| 15641 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15642 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15643 | do |
| 15644 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15645 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15646 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15647 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15648 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15650 | fi |
| 15651 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15652 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15653 | echo "${ECHO_T}$ac_res" >&6; } |
| 15654 | else |
| 15655 | # Is the header compilable? |
| 15656 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15657 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15658 | cat >conftest.$ac_ext <<_ACEOF |
| 15659 | /* confdefs.h. */ |
| 15660 | _ACEOF |
| 15661 | cat confdefs.h >>conftest.$ac_ext |
| 15662 | cat >>conftest.$ac_ext <<_ACEOF |
| 15663 | /* end confdefs.h. */ |
| 15664 | $ac_includes_default |
| 15665 | #include <$ac_header> |
| 15666 | _ACEOF |
| 15667 | rm -f conftest.$ac_objext |
| 15668 | if { (ac_try="$ac_compile" |
| 15669 | case "(($ac_try" in |
| 15670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15671 | *) ac_try_echo=$ac_try;; |
| 15672 | esac |
| 15673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15674 | (eval "$ac_compile") 2>conftest.er1 |
| 15675 | ac_status=$? |
| 15676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15677 | rm -f conftest.er1 |
| 15678 | cat conftest.err >&5 |
| 15679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15680 | (exit $ac_status); } && |
| 15681 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15682 | { (case "(($ac_try" in |
| 15683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15684 | *) ac_try_echo=$ac_try;; |
| 15685 | esac |
| 15686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15687 | (eval "$ac_try") 2>&5 |
| 15688 | ac_status=$? |
| 15689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15690 | (exit $ac_status); }; } && |
| 15691 | { ac_try='test -s conftest.$ac_objext' |
| 15692 | { (case "(($ac_try" in |
| 15693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15694 | *) ac_try_echo=$ac_try;; |
| 15695 | esac |
| 15696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15697 | (eval "$ac_try") 2>&5 |
| 15698 | ac_status=$? |
| 15699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15700 | (exit $ac_status); }; }; then |
| 15701 | ac_header_compiler=yes |
| 15702 | else |
| 15703 | echo "$as_me: failed program was:" >&5 |
| 15704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15705 | |
| 15706 | ac_header_compiler=no |
| 15707 | fi |
| 15708 | |
| 15709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15710 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15711 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15712 | |
| 15713 | # Is the header present? |
| 15714 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15715 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15716 | cat >conftest.$ac_ext <<_ACEOF |
| 15717 | /* confdefs.h. */ |
| 15718 | _ACEOF |
| 15719 | cat confdefs.h >>conftest.$ac_ext |
| 15720 | cat >>conftest.$ac_ext <<_ACEOF |
| 15721 | /* end confdefs.h. */ |
| 15722 | #include <$ac_header> |
| 15723 | _ACEOF |
| 15724 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15725 | case "(($ac_try" in |
| 15726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15727 | *) ac_try_echo=$ac_try;; |
| 15728 | esac |
| 15729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15730 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15731 | ac_status=$? |
| 15732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15733 | rm -f conftest.er1 |
| 15734 | cat conftest.err >&5 |
| 15735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15736 | (exit $ac_status); } >/dev/null; then |
| 15737 | if test -s conftest.err; then |
| 15738 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15739 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15740 | else |
| 15741 | ac_cpp_err= |
| 15742 | fi |
| 15743 | else |
| 15744 | ac_cpp_err=yes |
| 15745 | fi |
| 15746 | if test -z "$ac_cpp_err"; then |
| 15747 | ac_header_preproc=yes |
| 15748 | else |
| 15749 | echo "$as_me: failed program was:" >&5 |
| 15750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15751 | |
| 15752 | ac_header_preproc=no |
| 15753 | fi |
| 15754 | |
| 15755 | rm -f conftest.err conftest.$ac_ext |
| 15756 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15757 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15758 | |
| 15759 | # So? What about this header? |
| 15760 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15761 | yes:no: ) |
| 15762 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15763 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15764 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15765 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15766 | ac_header_preproc=yes |
| 15767 | ;; |
| 15768 | no:yes:* ) |
| 15769 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15770 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15771 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15772 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15773 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15774 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15775 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15776 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15777 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15778 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15779 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15780 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15781 | ( cat <<\_ASBOX |
| 15782 | ## ----------------------------------- ## |
| 15783 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15784 | ## ----------------------------------- ## |
| 15785 | _ASBOX |
| 15786 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15787 | ;; |
| 15788 | esac |
| 15789 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15790 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15791 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15793 | else |
| 15794 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15795 | fi |
| 15796 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15797 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15798 | echo "${ECHO_T}$ac_res" >&6; } |
| 15799 | |
| 15800 | fi |
| 15801 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15802 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15803 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15804 | _ACEOF |
| 15805 | |
| 15806 | fi |
| 15807 | |
| 15808 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15809 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15810 | |
| 15811 | |
| 15812 | |
| 15813 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15814 | for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15815 | do |
| 15816 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15817 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15818 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15819 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15820 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15822 | fi |
| 15823 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15824 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15825 | echo "${ECHO_T}$ac_res" >&6; } |
| 15826 | else |
| 15827 | # Is the header compilable? |
| 15828 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15829 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15830 | cat >conftest.$ac_ext <<_ACEOF |
| 15831 | /* confdefs.h. */ |
| 15832 | _ACEOF |
| 15833 | cat confdefs.h >>conftest.$ac_ext |
| 15834 | cat >>conftest.$ac_ext <<_ACEOF |
| 15835 | /* end confdefs.h. */ |
| 15836 | $ac_includes_default |
| 15837 | #include <$ac_header> |
| 15838 | _ACEOF |
| 15839 | rm -f conftest.$ac_objext |
| 15840 | if { (ac_try="$ac_compile" |
| 15841 | case "(($ac_try" in |
| 15842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15843 | *) ac_try_echo=$ac_try;; |
| 15844 | esac |
| 15845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15846 | (eval "$ac_compile") 2>conftest.er1 |
| 15847 | ac_status=$? |
| 15848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15849 | rm -f conftest.er1 |
| 15850 | cat conftest.err >&5 |
| 15851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15852 | (exit $ac_status); } && |
| 15853 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15854 | { (case "(($ac_try" in |
| 15855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15856 | *) ac_try_echo=$ac_try;; |
| 15857 | esac |
| 15858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15859 | (eval "$ac_try") 2>&5 |
| 15860 | ac_status=$? |
| 15861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15862 | (exit $ac_status); }; } && |
| 15863 | { ac_try='test -s conftest.$ac_objext' |
| 15864 | { (case "(($ac_try" in |
| 15865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15866 | *) ac_try_echo=$ac_try;; |
| 15867 | esac |
| 15868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15869 | (eval "$ac_try") 2>&5 |
| 15870 | ac_status=$? |
| 15871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15872 | (exit $ac_status); }; }; then |
| 15873 | ac_header_compiler=yes |
| 15874 | else |
| 15875 | echo "$as_me: failed program was:" >&5 |
| 15876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15877 | |
| 15878 | ac_header_compiler=no |
| 15879 | fi |
| 15880 | |
| 15881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15882 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15883 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15884 | |
| 15885 | # Is the header present? |
| 15886 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15887 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15888 | cat >conftest.$ac_ext <<_ACEOF |
| 15889 | /* confdefs.h. */ |
| 15890 | _ACEOF |
| 15891 | cat confdefs.h >>conftest.$ac_ext |
| 15892 | cat >>conftest.$ac_ext <<_ACEOF |
| 15893 | /* end confdefs.h. */ |
| 15894 | #include <$ac_header> |
| 15895 | _ACEOF |
| 15896 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15897 | case "(($ac_try" in |
| 15898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15899 | *) ac_try_echo=$ac_try;; |
| 15900 | esac |
| 15901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15902 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15903 | ac_status=$? |
| 15904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15905 | rm -f conftest.er1 |
| 15906 | cat conftest.err >&5 |
| 15907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15908 | (exit $ac_status); } >/dev/null; then |
| 15909 | if test -s conftest.err; then |
| 15910 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15911 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15912 | else |
| 15913 | ac_cpp_err= |
| 15914 | fi |
| 15915 | else |
| 15916 | ac_cpp_err=yes |
| 15917 | fi |
| 15918 | if test -z "$ac_cpp_err"; then |
| 15919 | ac_header_preproc=yes |
| 15920 | else |
| 15921 | echo "$as_me: failed program was:" >&5 |
| 15922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15923 | |
| 15924 | ac_header_preproc=no |
| 15925 | fi |
| 15926 | |
| 15927 | rm -f conftest.err conftest.$ac_ext |
| 15928 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15929 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15930 | |
| 15931 | # So? What about this header? |
| 15932 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15933 | yes:no: ) |
| 15934 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15935 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15936 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15937 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15938 | ac_header_preproc=yes |
| 15939 | ;; |
| 15940 | no:yes:* ) |
| 15941 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15942 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15943 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15944 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15945 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15946 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15947 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15948 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15949 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15950 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15951 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15952 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15953 | ( cat <<\_ASBOX |
| 15954 | ## ----------------------------------- ## |
| 15955 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15956 | ## ----------------------------------- ## |
| 15957 | _ASBOX |
| 15958 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15959 | ;; |
| 15960 | esac |
| 15961 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15962 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15963 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15965 | else |
| 15966 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15967 | fi |
| 15968 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15969 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15970 | echo "${ECHO_T}$ac_res" >&6; } |
| 15971 | |
| 15972 | fi |
| 15973 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15974 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15975 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15976 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15977 | |
| 15978 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15979 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15980 | done |
| 15981 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15982 | |
| 15983 | |
| 15984 | |
| 15985 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 15986 | for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15987 | do |
| 15988 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15989 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15990 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15991 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15992 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15994 | fi |
| 15995 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15996 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15997 | echo "${ECHO_T}$ac_res" >&6; } |
| 15998 | else |
| 15999 | # Is the header compilable? |
| 16000 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16001 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16002 | cat >conftest.$ac_ext <<_ACEOF |
| 16003 | /* confdefs.h. */ |
| 16004 | _ACEOF |
| 16005 | cat confdefs.h >>conftest.$ac_ext |
| 16006 | cat >>conftest.$ac_ext <<_ACEOF |
| 16007 | /* end confdefs.h. */ |
| 16008 | $ac_includes_default |
| 16009 | #include <$ac_header> |
| 16010 | _ACEOF |
| 16011 | rm -f conftest.$ac_objext |
| 16012 | if { (ac_try="$ac_compile" |
| 16013 | case "(($ac_try" in |
| 16014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16015 | *) ac_try_echo=$ac_try;; |
| 16016 | esac |
| 16017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16018 | (eval "$ac_compile") 2>conftest.er1 |
| 16019 | ac_status=$? |
| 16020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16021 | rm -f conftest.er1 |
| 16022 | cat conftest.err >&5 |
| 16023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16024 | (exit $ac_status); } && |
| 16025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16026 | { (case "(($ac_try" in |
| 16027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16028 | *) ac_try_echo=$ac_try;; |
| 16029 | esac |
| 16030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16031 | (eval "$ac_try") 2>&5 |
| 16032 | ac_status=$? |
| 16033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16034 | (exit $ac_status); }; } && |
| 16035 | { ac_try='test -s conftest.$ac_objext' |
| 16036 | { (case "(($ac_try" in |
| 16037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16038 | *) ac_try_echo=$ac_try;; |
| 16039 | esac |
| 16040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16041 | (eval "$ac_try") 2>&5 |
| 16042 | ac_status=$? |
| 16043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16044 | (exit $ac_status); }; }; then |
| 16045 | ac_header_compiler=yes |
| 16046 | else |
| 16047 | echo "$as_me: failed program was:" >&5 |
| 16048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16049 | |
| 16050 | ac_header_compiler=no |
| 16051 | fi |
| 16052 | |
| 16053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16054 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16055 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16056 | |
| 16057 | # Is the header present? |
| 16058 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16059 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16060 | cat >conftest.$ac_ext <<_ACEOF |
| 16061 | /* confdefs.h. */ |
| 16062 | _ACEOF |
| 16063 | cat confdefs.h >>conftest.$ac_ext |
| 16064 | cat >>conftest.$ac_ext <<_ACEOF |
| 16065 | /* end confdefs.h. */ |
| 16066 | #include <$ac_header> |
| 16067 | _ACEOF |
| 16068 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16069 | case "(($ac_try" in |
| 16070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16071 | *) ac_try_echo=$ac_try;; |
| 16072 | esac |
| 16073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16074 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16075 | ac_status=$? |
| 16076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16077 | rm -f conftest.er1 |
| 16078 | cat conftest.err >&5 |
| 16079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16080 | (exit $ac_status); } >/dev/null; then |
| 16081 | if test -s conftest.err; then |
| 16082 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16083 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16084 | else |
| 16085 | ac_cpp_err= |
| 16086 | fi |
| 16087 | else |
| 16088 | ac_cpp_err=yes |
| 16089 | fi |
| 16090 | if test -z "$ac_cpp_err"; then |
| 16091 | ac_header_preproc=yes |
| 16092 | else |
| 16093 | echo "$as_me: failed program was:" >&5 |
| 16094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16095 | |
| 16096 | ac_header_preproc=no |
| 16097 | fi |
| 16098 | |
| 16099 | rm -f conftest.err conftest.$ac_ext |
| 16100 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16101 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16102 | |
| 16103 | # So? What about this header? |
| 16104 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16105 | yes:no: ) |
| 16106 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16107 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16108 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16109 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16110 | ac_header_preproc=yes |
| 16111 | ;; |
| 16112 | no:yes:* ) |
| 16113 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16114 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16115 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16116 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16117 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16118 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16119 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16120 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16121 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16122 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16123 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16124 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16125 | ( cat <<\_ASBOX |
| 16126 | ## ----------------------------------- ## |
| 16127 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16128 | ## ----------------------------------- ## |
| 16129 | _ASBOX |
| 16130 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16131 | ;; |
| 16132 | esac |
| 16133 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16134 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16135 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16137 | else |
| 16138 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16139 | fi |
| 16140 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16141 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16142 | echo "${ECHO_T}$ac_res" >&6; } |
| 16143 | |
| 16144 | fi |
| 16145 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16146 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16147 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16148 | _ACEOF |
| 16149 | |
| 16150 | fi |
| 16151 | |
| 16152 | done |
| 16153 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16154 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16155 | |
| 16156 | for ac_header in pthread.h |
| 16157 | do |
| 16158 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16159 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16160 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16161 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16162 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16164 | fi |
| 16165 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16166 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16167 | echo "${ECHO_T}$ac_res" >&6; } |
| 16168 | else |
| 16169 | # Is the header compilable? |
| 16170 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16171 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16172 | cat >conftest.$ac_ext <<_ACEOF |
| 16173 | /* confdefs.h. */ |
| 16174 | _ACEOF |
| 16175 | cat confdefs.h >>conftest.$ac_ext |
| 16176 | cat >>conftest.$ac_ext <<_ACEOF |
| 16177 | /* end confdefs.h. */ |
| 16178 | $ac_includes_default |
| 16179 | #include <$ac_header> |
| 16180 | _ACEOF |
| 16181 | rm -f conftest.$ac_objext |
| 16182 | if { (ac_try="$ac_compile" |
| 16183 | case "(($ac_try" in |
| 16184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16185 | *) ac_try_echo=$ac_try;; |
| 16186 | esac |
| 16187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16188 | (eval "$ac_compile") 2>conftest.er1 |
| 16189 | ac_status=$? |
| 16190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16191 | rm -f conftest.er1 |
| 16192 | cat conftest.err >&5 |
| 16193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16194 | (exit $ac_status); } && |
| 16195 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16196 | { (case "(($ac_try" in |
| 16197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16198 | *) ac_try_echo=$ac_try;; |
| 16199 | esac |
| 16200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16201 | (eval "$ac_try") 2>&5 |
| 16202 | ac_status=$? |
| 16203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16204 | (exit $ac_status); }; } && |
| 16205 | { ac_try='test -s conftest.$ac_objext' |
| 16206 | { (case "(($ac_try" in |
| 16207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16208 | *) ac_try_echo=$ac_try;; |
| 16209 | esac |
| 16210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16211 | (eval "$ac_try") 2>&5 |
| 16212 | ac_status=$? |
| 16213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16214 | (exit $ac_status); }; }; then |
| 16215 | ac_header_compiler=yes |
| 16216 | else |
| 16217 | echo "$as_me: failed program was:" >&5 |
| 16218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16219 | |
| 16220 | ac_header_compiler=no |
| 16221 | fi |
| 16222 | |
| 16223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16224 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16225 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16226 | |
| 16227 | # Is the header present? |
| 16228 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16229 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16230 | cat >conftest.$ac_ext <<_ACEOF |
| 16231 | /* confdefs.h. */ |
| 16232 | _ACEOF |
| 16233 | cat confdefs.h >>conftest.$ac_ext |
| 16234 | cat >>conftest.$ac_ext <<_ACEOF |
| 16235 | /* end confdefs.h. */ |
| 16236 | #include <$ac_header> |
| 16237 | _ACEOF |
| 16238 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16239 | case "(($ac_try" in |
| 16240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16241 | *) ac_try_echo=$ac_try;; |
| 16242 | esac |
| 16243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16244 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16245 | ac_status=$? |
| 16246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16247 | rm -f conftest.er1 |
| 16248 | cat conftest.err >&5 |
| 16249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16250 | (exit $ac_status); } >/dev/null; then |
| 16251 | if test -s conftest.err; then |
| 16252 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16253 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16254 | else |
| 16255 | ac_cpp_err= |
| 16256 | fi |
| 16257 | else |
| 16258 | ac_cpp_err=yes |
| 16259 | fi |
| 16260 | if test -z "$ac_cpp_err"; then |
| 16261 | ac_header_preproc=yes |
| 16262 | else |
| 16263 | echo "$as_me: failed program was:" >&5 |
| 16264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16265 | |
| 16266 | ac_header_preproc=no |
| 16267 | fi |
| 16268 | |
| 16269 | rm -f conftest.err conftest.$ac_ext |
| 16270 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16271 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16272 | |
| 16273 | # So? What about this header? |
| 16274 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16275 | yes:no: ) |
| 16276 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16277 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16278 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16279 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16280 | ac_header_preproc=yes |
| 16281 | ;; |
| 16282 | no:yes:* ) |
| 16283 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16284 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16285 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16286 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16287 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16288 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16289 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16290 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16291 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16292 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16293 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16294 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16295 | ( cat <<\_ASBOX |
| 16296 | ## ----------------------------------- ## |
| 16297 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16298 | ## ----------------------------------- ## |
| 16299 | _ASBOX |
| 16300 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16301 | ;; |
| 16302 | esac |
| 16303 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16304 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16305 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16307 | else |
| 16308 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16309 | fi |
| 16310 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16311 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16312 | echo "${ECHO_T}$ac_res" >&6; } |
| 16313 | |
| 16314 | fi |
| 16315 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16316 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16317 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16318 | _ACEOF |
| 16319 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16320 | |
| 16321 | else |
| 16322 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16323 | |
| 16324 | fi |
| 16325 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16326 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16327 | |
| 16328 | else |
| 16329 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16330 | |
| 16331 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16332 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16333 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16334 | |
| 16335 | |
| 16336 | for ac_header in ffi.h ffi/ffi.h |
| 16337 | do |
| 16338 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16339 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16340 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16341 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16342 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16344 | fi |
| 16345 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16346 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16347 | echo "${ECHO_T}$ac_res" >&6; } |
| 16348 | else |
| 16349 | # Is the header compilable? |
| 16350 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16351 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16352 | cat >conftest.$ac_ext <<_ACEOF |
| 16353 | /* confdefs.h. */ |
| 16354 | _ACEOF |
| 16355 | cat confdefs.h >>conftest.$ac_ext |
| 16356 | cat >>conftest.$ac_ext <<_ACEOF |
| 16357 | /* end confdefs.h. */ |
| 16358 | $ac_includes_default |
| 16359 | #include <$ac_header> |
| 16360 | _ACEOF |
| 16361 | rm -f conftest.$ac_objext |
| 16362 | if { (ac_try="$ac_compile" |
| 16363 | case "(($ac_try" in |
| 16364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16365 | *) ac_try_echo=$ac_try;; |
| 16366 | esac |
| 16367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16368 | (eval "$ac_compile") 2>conftest.er1 |
| 16369 | ac_status=$? |
| 16370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16371 | rm -f conftest.er1 |
| 16372 | cat conftest.err >&5 |
| 16373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16374 | (exit $ac_status); } && |
| 16375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16376 | { (case "(($ac_try" in |
| 16377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16378 | *) ac_try_echo=$ac_try;; |
| 16379 | esac |
| 16380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16381 | (eval "$ac_try") 2>&5 |
| 16382 | ac_status=$? |
| 16383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16384 | (exit $ac_status); }; } && |
| 16385 | { ac_try='test -s conftest.$ac_objext' |
| 16386 | { (case "(($ac_try" in |
| 16387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16388 | *) ac_try_echo=$ac_try;; |
| 16389 | esac |
| 16390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16391 | (eval "$ac_try") 2>&5 |
| 16392 | ac_status=$? |
| 16393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16394 | (exit $ac_status); }; }; then |
| 16395 | ac_header_compiler=yes |
| 16396 | else |
| 16397 | echo "$as_me: failed program was:" >&5 |
| 16398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16399 | |
| 16400 | ac_header_compiler=no |
| 16401 | fi |
| 16402 | |
| 16403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16404 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16405 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16406 | |
| 16407 | # Is the header present? |
| 16408 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16409 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16410 | cat >conftest.$ac_ext <<_ACEOF |
| 16411 | /* confdefs.h. */ |
| 16412 | _ACEOF |
| 16413 | cat confdefs.h >>conftest.$ac_ext |
| 16414 | cat >>conftest.$ac_ext <<_ACEOF |
| 16415 | /* end confdefs.h. */ |
| 16416 | #include <$ac_header> |
| 16417 | _ACEOF |
| 16418 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16419 | case "(($ac_try" in |
| 16420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16421 | *) ac_try_echo=$ac_try;; |
| 16422 | esac |
| 16423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16424 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16425 | ac_status=$? |
| 16426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16427 | rm -f conftest.er1 |
| 16428 | cat conftest.err >&5 |
| 16429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16430 | (exit $ac_status); } >/dev/null; then |
| 16431 | if test -s conftest.err; then |
| 16432 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16433 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16434 | else |
| 16435 | ac_cpp_err= |
| 16436 | fi |
| 16437 | else |
| 16438 | ac_cpp_err=yes |
| 16439 | fi |
| 16440 | if test -z "$ac_cpp_err"; then |
| 16441 | ac_header_preproc=yes |
| 16442 | else |
| 16443 | echo "$as_me: failed program was:" >&5 |
| 16444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16445 | |
| 16446 | ac_header_preproc=no |
| 16447 | fi |
| 16448 | |
| 16449 | rm -f conftest.err conftest.$ac_ext |
| 16450 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16451 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16452 | |
| 16453 | # So? What about this header? |
| 16454 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16455 | yes:no: ) |
| 16456 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16457 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16458 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16459 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16460 | ac_header_preproc=yes |
| 16461 | ;; |
| 16462 | no:yes:* ) |
| 16463 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16464 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16465 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16466 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16467 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16468 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16469 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16470 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16471 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16472 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16473 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16474 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16475 | ( cat <<\_ASBOX |
| 16476 | ## ----------------------------------- ## |
| 16477 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16478 | ## ----------------------------------- ## |
| 16479 | _ASBOX |
| 16480 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16481 | ;; |
| 16482 | esac |
| 16483 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16484 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16485 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16487 | else |
| 16488 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16489 | fi |
| 16490 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16491 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16492 | echo "${ECHO_T}$ac_res" >&6; } |
| 16493 | |
| 16494 | fi |
| 16495 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16496 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16497 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16498 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16499 | |
| 16500 | fi |
| 16501 | |
| 16502 | done |
| 16503 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16504 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16505 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 16506 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16507 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16508 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16509 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 16510 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 16511 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 16512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16513 | else |
| 16514 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16515 | ac_ext=cpp |
| 16516 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16517 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16518 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16519 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16520 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16521 | CXXFLAGS=-pedantic |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16522 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16523 | ac_cv_huge_val_sanity=yes |
| 16524 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16525 | cat >conftest.$ac_ext <<_ACEOF |
| 16526 | /* confdefs.h. */ |
| 16527 | _ACEOF |
| 16528 | cat confdefs.h >>conftest.$ac_ext |
| 16529 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16530 | /* end confdefs.h. */ |
| 16531 | #include <math.h> |
| 16532 | int |
| 16533 | main () |
| 16534 | { |
| 16535 | double x = HUGE_VAL; return x != x; |
| 16536 | ; |
| 16537 | return 0; |
| 16538 | } |
| 16539 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16540 | rm -f conftest$ac_exeext |
| 16541 | if { (ac_try="$ac_link" |
| 16542 | case "(($ac_try" in |
| 16543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16544 | *) ac_try_echo=$ac_try;; |
| 16545 | esac |
| 16546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16547 | (eval "$ac_link") 2>&5 |
| 16548 | ac_status=$? |
| 16549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16550 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16551 | { (case "(($ac_try" in |
| 16552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16553 | *) ac_try_echo=$ac_try;; |
| 16554 | esac |
| 16555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16556 | (eval "$ac_try") 2>&5 |
| 16557 | ac_status=$? |
| 16558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16559 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16560 | ac_cv_huge_val_sanity=yes |
| 16561 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16562 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16563 | echo "$as_me: failed program was:" >&5 |
| 16564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16565 | |
| 16566 | ( exit $ac_status ) |
| 16567 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16568 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16569 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16570 | fi |
| 16571 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16572 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16573 | ac_ext=c |
| 16574 | ac_cpp='$CPP $CPPFLAGS' |
| 16575 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16576 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16577 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16578 | |
| 16579 | |
| 16580 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16581 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 16582 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16583 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 16584 | |
| 16585 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16586 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 16587 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 16588 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 16589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16590 | else |
| 16591 | cat >conftest.$ac_ext <<_ACEOF |
| 16592 | /* confdefs.h. */ |
| 16593 | _ACEOF |
| 16594 | cat confdefs.h >>conftest.$ac_ext |
| 16595 | cat >>conftest.$ac_ext <<_ACEOF |
| 16596 | /* end confdefs.h. */ |
| 16597 | $ac_includes_default |
| 16598 | typedef pid_t ac__type_new_; |
| 16599 | int |
| 16600 | main () |
| 16601 | { |
| 16602 | if ((ac__type_new_ *) 0) |
| 16603 | return 0; |
| 16604 | if (sizeof (ac__type_new_)) |
| 16605 | return 0; |
| 16606 | ; |
| 16607 | return 0; |
| 16608 | } |
| 16609 | _ACEOF |
| 16610 | rm -f conftest.$ac_objext |
| 16611 | if { (ac_try="$ac_compile" |
| 16612 | case "(($ac_try" in |
| 16613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16614 | *) ac_try_echo=$ac_try;; |
| 16615 | esac |
| 16616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16617 | (eval "$ac_compile") 2>conftest.er1 |
| 16618 | ac_status=$? |
| 16619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16620 | rm -f conftest.er1 |
| 16621 | cat conftest.err >&5 |
| 16622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16623 | (exit $ac_status); } && |
| 16624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16625 | { (case "(($ac_try" in |
| 16626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16627 | *) ac_try_echo=$ac_try;; |
| 16628 | esac |
| 16629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16630 | (eval "$ac_try") 2>&5 |
| 16631 | ac_status=$? |
| 16632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16633 | (exit $ac_status); }; } && |
| 16634 | { ac_try='test -s conftest.$ac_objext' |
| 16635 | { (case "(($ac_try" in |
| 16636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16637 | *) ac_try_echo=$ac_try;; |
| 16638 | esac |
| 16639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16640 | (eval "$ac_try") 2>&5 |
| 16641 | ac_status=$? |
| 16642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16643 | (exit $ac_status); }; }; then |
| 16644 | ac_cv_type_pid_t=yes |
| 16645 | else |
| 16646 | echo "$as_me: failed program was:" >&5 |
| 16647 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16648 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16649 | ac_cv_type_pid_t=no |
| 16650 | fi |
| 16651 | |
| 16652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16653 | fi |
| 16654 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 16655 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 16656 | if test $ac_cv_type_pid_t = yes; then |
| 16657 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16658 | else |
| 16659 | |
| 16660 | cat >>confdefs.h <<_ACEOF |
| 16661 | #define pid_t int |
| 16662 | _ACEOF |
| 16663 | |
| 16664 | fi |
| 16665 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16666 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 16667 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 16668 | if test "${ac_cv_type_size_t+set}" = set; then |
| 16669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16670 | else |
| 16671 | cat >conftest.$ac_ext <<_ACEOF |
| 16672 | /* confdefs.h. */ |
| 16673 | _ACEOF |
| 16674 | cat confdefs.h >>conftest.$ac_ext |
| 16675 | cat >>conftest.$ac_ext <<_ACEOF |
| 16676 | /* end confdefs.h. */ |
| 16677 | $ac_includes_default |
| 16678 | typedef size_t ac__type_new_; |
| 16679 | int |
| 16680 | main () |
| 16681 | { |
| 16682 | if ((ac__type_new_ *) 0) |
| 16683 | return 0; |
| 16684 | if (sizeof (ac__type_new_)) |
| 16685 | return 0; |
| 16686 | ; |
| 16687 | return 0; |
| 16688 | } |
| 16689 | _ACEOF |
| 16690 | rm -f conftest.$ac_objext |
| 16691 | if { (ac_try="$ac_compile" |
| 16692 | case "(($ac_try" in |
| 16693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16694 | *) ac_try_echo=$ac_try;; |
| 16695 | esac |
| 16696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16697 | (eval "$ac_compile") 2>conftest.er1 |
| 16698 | ac_status=$? |
| 16699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16700 | rm -f conftest.er1 |
| 16701 | cat conftest.err >&5 |
| 16702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16703 | (exit $ac_status); } && |
| 16704 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16705 | { (case "(($ac_try" in |
| 16706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16707 | *) ac_try_echo=$ac_try;; |
| 16708 | esac |
| 16709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16710 | (eval "$ac_try") 2>&5 |
| 16711 | ac_status=$? |
| 16712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16713 | (exit $ac_status); }; } && |
| 16714 | { ac_try='test -s conftest.$ac_objext' |
| 16715 | { (case "(($ac_try" in |
| 16716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16717 | *) ac_try_echo=$ac_try;; |
| 16718 | esac |
| 16719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16720 | (eval "$ac_try") 2>&5 |
| 16721 | ac_status=$? |
| 16722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16723 | (exit $ac_status); }; }; then |
| 16724 | ac_cv_type_size_t=yes |
| 16725 | else |
| 16726 | echo "$as_me: failed program was:" >&5 |
| 16727 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16728 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16729 | ac_cv_type_size_t=no |
| 16730 | fi |
| 16731 | |
| 16732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16733 | fi |
| 16734 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 16735 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 16736 | if test $ac_cv_type_size_t = yes; then |
| 16737 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16738 | else |
| 16739 | |
| 16740 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16741 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16742 | _ACEOF |
| 16743 | |
| 16744 | fi |
| 16745 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16746 | |
| 16747 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16748 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16749 | _ACEOF |
| 16750 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16751 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 16752 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 16753 | if test "${ac_cv_struct_tm+set}" = set; then |
| 16754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16755 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16756 | cat >conftest.$ac_ext <<_ACEOF |
| 16757 | /* confdefs.h. */ |
| 16758 | _ACEOF |
| 16759 | cat confdefs.h >>conftest.$ac_ext |
| 16760 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16761 | /* end confdefs.h. */ |
| 16762 | #include <sys/types.h> |
| 16763 | #include <time.h> |
| 16764 | |
| 16765 | int |
| 16766 | main () |
| 16767 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16768 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16769 | ; |
| 16770 | return 0; |
| 16771 | } |
| 16772 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16773 | rm -f conftest.$ac_objext |
| 16774 | if { (ac_try="$ac_compile" |
| 16775 | case "(($ac_try" in |
| 16776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16777 | *) ac_try_echo=$ac_try;; |
| 16778 | esac |
| 16779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16780 | (eval "$ac_compile") 2>conftest.er1 |
| 16781 | ac_status=$? |
| 16782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16783 | rm -f conftest.er1 |
| 16784 | cat conftest.err >&5 |
| 16785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16786 | (exit $ac_status); } && |
| 16787 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16788 | { (case "(($ac_try" in |
| 16789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16790 | *) ac_try_echo=$ac_try;; |
| 16791 | esac |
| 16792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16793 | (eval "$ac_try") 2>&5 |
| 16794 | ac_status=$? |
| 16795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16796 | (exit $ac_status); }; } && |
| 16797 | { ac_try='test -s conftest.$ac_objext' |
| 16798 | { (case "(($ac_try" in |
| 16799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16800 | *) ac_try_echo=$ac_try;; |
| 16801 | esac |
| 16802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16803 | (eval "$ac_try") 2>&5 |
| 16804 | ac_status=$? |
| 16805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16806 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16807 | ac_cv_struct_tm=time.h |
| 16808 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16809 | echo "$as_me: failed program was:" >&5 |
| 16810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16811 | |
| 16812 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16813 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16814 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16816 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16817 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 16818 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16819 | if test $ac_cv_struct_tm = sys/time.h; then |
| 16820 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16821 | cat >>confdefs.h <<\_ACEOF |
| 16822 | #define TM_IN_SYS_TIME 1 |
| 16823 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16824 | |
| 16825 | fi |
| 16826 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16827 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 16828 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 16829 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 16830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16831 | else |
| 16832 | cat >conftest.$ac_ext <<_ACEOF |
| 16833 | /* confdefs.h. */ |
| 16834 | _ACEOF |
| 16835 | cat confdefs.h >>conftest.$ac_ext |
| 16836 | cat >>conftest.$ac_ext <<_ACEOF |
| 16837 | /* end confdefs.h. */ |
| 16838 | $ac_includes_default |
| 16839 | typedef int64_t ac__type_new_; |
| 16840 | int |
| 16841 | main () |
| 16842 | { |
| 16843 | if ((ac__type_new_ *) 0) |
| 16844 | return 0; |
| 16845 | if (sizeof (ac__type_new_)) |
| 16846 | return 0; |
| 16847 | ; |
| 16848 | return 0; |
| 16849 | } |
| 16850 | _ACEOF |
| 16851 | rm -f conftest.$ac_objext |
| 16852 | if { (ac_try="$ac_compile" |
| 16853 | case "(($ac_try" in |
| 16854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16855 | *) ac_try_echo=$ac_try;; |
| 16856 | esac |
| 16857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16858 | (eval "$ac_compile") 2>conftest.er1 |
| 16859 | ac_status=$? |
| 16860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16861 | rm -f conftest.er1 |
| 16862 | cat conftest.err >&5 |
| 16863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16864 | (exit $ac_status); } && |
| 16865 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16866 | { (case "(($ac_try" in |
| 16867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16868 | *) ac_try_echo=$ac_try;; |
| 16869 | esac |
| 16870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16871 | (eval "$ac_try") 2>&5 |
| 16872 | ac_status=$? |
| 16873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16874 | (exit $ac_status); }; } && |
| 16875 | { ac_try='test -s conftest.$ac_objext' |
| 16876 | { (case "(($ac_try" in |
| 16877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16878 | *) ac_try_echo=$ac_try;; |
| 16879 | esac |
| 16880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16881 | (eval "$ac_try") 2>&5 |
| 16882 | ac_status=$? |
| 16883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16884 | (exit $ac_status); }; }; then |
| 16885 | ac_cv_type_int64_t=yes |
| 16886 | else |
| 16887 | echo "$as_me: failed program was:" >&5 |
| 16888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16889 | |
| 16890 | ac_cv_type_int64_t=no |
| 16891 | fi |
| 16892 | |
| 16893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16894 | fi |
| 16895 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 16896 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 16897 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16898 | |
| 16899 | cat >>confdefs.h <<_ACEOF |
| 16900 | #define HAVE_INT64_T 1 |
| 16901 | _ACEOF |
| 16902 | |
| 16903 | |
| 16904 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16905 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 16906 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 16907 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16908 | fi |
| 16909 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16910 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 16911 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 16912 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 16913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16914 | else |
| 16915 | cat >conftest.$ac_ext <<_ACEOF |
| 16916 | /* confdefs.h. */ |
| 16917 | _ACEOF |
| 16918 | cat confdefs.h >>conftest.$ac_ext |
| 16919 | cat >>conftest.$ac_ext <<_ACEOF |
| 16920 | /* end confdefs.h. */ |
| 16921 | $ac_includes_default |
| 16922 | typedef uint64_t ac__type_new_; |
| 16923 | int |
| 16924 | main () |
| 16925 | { |
| 16926 | if ((ac__type_new_ *) 0) |
| 16927 | return 0; |
| 16928 | if (sizeof (ac__type_new_)) |
| 16929 | return 0; |
| 16930 | ; |
| 16931 | return 0; |
| 16932 | } |
| 16933 | _ACEOF |
| 16934 | rm -f conftest.$ac_objext |
| 16935 | if { (ac_try="$ac_compile" |
| 16936 | case "(($ac_try" in |
| 16937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16938 | *) ac_try_echo=$ac_try;; |
| 16939 | esac |
| 16940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16941 | (eval "$ac_compile") 2>conftest.er1 |
| 16942 | ac_status=$? |
| 16943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16944 | rm -f conftest.er1 |
| 16945 | cat conftest.err >&5 |
| 16946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16947 | (exit $ac_status); } && |
| 16948 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16949 | { (case "(($ac_try" in |
| 16950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16951 | *) ac_try_echo=$ac_try;; |
| 16952 | esac |
| 16953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16954 | (eval "$ac_try") 2>&5 |
| 16955 | ac_status=$? |
| 16956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16957 | (exit $ac_status); }; } && |
| 16958 | { ac_try='test -s conftest.$ac_objext' |
| 16959 | { (case "(($ac_try" in |
| 16960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16961 | *) ac_try_echo=$ac_try;; |
| 16962 | esac |
| 16963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16964 | (eval "$ac_try") 2>&5 |
| 16965 | ac_status=$? |
| 16966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16967 | (exit $ac_status); }; }; then |
| 16968 | ac_cv_type_uint64_t=yes |
| 16969 | else |
| 16970 | echo "$as_me: failed program was:" >&5 |
| 16971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16972 | |
| 16973 | ac_cv_type_uint64_t=no |
| 16974 | fi |
| 16975 | |
| 16976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16977 | fi |
| 16978 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 16979 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 16980 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16981 | |
| 16982 | cat >>confdefs.h <<_ACEOF |
| 16983 | #define HAVE_UINT64_T 1 |
| 16984 | _ACEOF |
| 16985 | |
| 16986 | |
| 16987 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16988 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 16989 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 16990 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 16991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16992 | else |
| 16993 | cat >conftest.$ac_ext <<_ACEOF |
| 16994 | /* confdefs.h. */ |
| 16995 | _ACEOF |
| 16996 | cat confdefs.h >>conftest.$ac_ext |
| 16997 | cat >>conftest.$ac_ext <<_ACEOF |
| 16998 | /* end confdefs.h. */ |
| 16999 | $ac_includes_default |
| 17000 | typedef u_int64_t ac__type_new_; |
| 17001 | int |
| 17002 | main () |
| 17003 | { |
| 17004 | if ((ac__type_new_ *) 0) |
| 17005 | return 0; |
| 17006 | if (sizeof (ac__type_new_)) |
| 17007 | return 0; |
| 17008 | ; |
| 17009 | return 0; |
| 17010 | } |
| 17011 | _ACEOF |
| 17012 | rm -f conftest.$ac_objext |
| 17013 | if { (ac_try="$ac_compile" |
| 17014 | case "(($ac_try" in |
| 17015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17016 | *) ac_try_echo=$ac_try;; |
| 17017 | esac |
| 17018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17019 | (eval "$ac_compile") 2>conftest.er1 |
| 17020 | ac_status=$? |
| 17021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17022 | rm -f conftest.er1 |
| 17023 | cat conftest.err >&5 |
| 17024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17025 | (exit $ac_status); } && |
| 17026 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17027 | { (case "(($ac_try" in |
| 17028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17029 | *) ac_try_echo=$ac_try;; |
| 17030 | esac |
| 17031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17032 | (eval "$ac_try") 2>&5 |
| 17033 | ac_status=$? |
| 17034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17035 | (exit $ac_status); }; } && |
| 17036 | { ac_try='test -s conftest.$ac_objext' |
| 17037 | { (case "(($ac_try" in |
| 17038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17039 | *) ac_try_echo=$ac_try;; |
| 17040 | esac |
| 17041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17042 | (eval "$ac_try") 2>&5 |
| 17043 | ac_status=$? |
| 17044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17045 | (exit $ac_status); }; }; then |
| 17046 | ac_cv_type_u_int64_t=yes |
| 17047 | else |
| 17048 | echo "$as_me: failed program was:" >&5 |
| 17049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17050 | |
| 17051 | ac_cv_type_u_int64_t=no |
| 17052 | fi |
| 17053 | |
| 17054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17055 | fi |
| 17056 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 17057 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 17058 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17059 | |
| 17060 | cat >>confdefs.h <<_ACEOF |
| 17061 | #define HAVE_U_INT64_T 1 |
| 17062 | _ACEOF |
| 17063 | |
| 17064 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17065 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17066 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 17067 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 17068 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17069 | fi |
| 17070 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17071 | fi |
| 17072 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17073 | |
| 17074 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17075 | |
| 17076 | |
| 17077 | |
| 17078 | |
| 17079 | |
| 17080 | |
| 17081 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17082 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17083 | do |
| 17084 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17085 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17086 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17087 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17089 | else |
| 17090 | cat >conftest.$ac_ext <<_ACEOF |
| 17091 | /* confdefs.h. */ |
| 17092 | _ACEOF |
| 17093 | cat confdefs.h >>conftest.$ac_ext |
| 17094 | cat >>conftest.$ac_ext <<_ACEOF |
| 17095 | /* end confdefs.h. */ |
| 17096 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17097 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17098 | #define $ac_func innocuous_$ac_func |
| 17099 | |
| 17100 | /* System header to define __stub macros and hopefully few prototypes, |
| 17101 | which can conflict with char $ac_func (); below. |
| 17102 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17103 | <limits.h> exists even on freestanding compilers. */ |
| 17104 | |
| 17105 | #ifdef __STDC__ |
| 17106 | # include <limits.h> |
| 17107 | #else |
| 17108 | # include <assert.h> |
| 17109 | #endif |
| 17110 | |
| 17111 | #undef $ac_func |
| 17112 | |
| 17113 | /* Override any GCC internal prototype to avoid an error. |
| 17114 | Use char because int might match the return type of a GCC |
| 17115 | builtin and then its argument prototype would still apply. */ |
| 17116 | #ifdef __cplusplus |
| 17117 | extern "C" |
| 17118 | #endif |
| 17119 | char $ac_func (); |
| 17120 | /* The GNU C library defines this for functions which it implements |
| 17121 | to always fail with ENOSYS. Some functions are actually named |
| 17122 | something starting with __ and the normal name is an alias. */ |
| 17123 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17124 | choke me |
| 17125 | #endif |
| 17126 | |
| 17127 | int |
| 17128 | main () |
| 17129 | { |
| 17130 | return $ac_func (); |
| 17131 | ; |
| 17132 | return 0; |
| 17133 | } |
| 17134 | _ACEOF |
| 17135 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17136 | if { (ac_try="$ac_link" |
| 17137 | case "(($ac_try" in |
| 17138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17139 | *) ac_try_echo=$ac_try;; |
| 17140 | esac |
| 17141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17142 | (eval "$ac_link") 2>conftest.er1 |
| 17143 | ac_status=$? |
| 17144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17145 | rm -f conftest.er1 |
| 17146 | cat conftest.err >&5 |
| 17147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17148 | (exit $ac_status); } && |
| 17149 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17150 | { (case "(($ac_try" in |
| 17151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17152 | *) ac_try_echo=$ac_try;; |
| 17153 | esac |
| 17154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17155 | (eval "$ac_try") 2>&5 |
| 17156 | ac_status=$? |
| 17157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17158 | (exit $ac_status); }; } && |
| 17159 | { ac_try='test -s conftest$ac_exeext' |
| 17160 | { (case "(($ac_try" in |
| 17161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17162 | *) ac_try_echo=$ac_try;; |
| 17163 | esac |
| 17164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17165 | (eval "$ac_try") 2>&5 |
| 17166 | ac_status=$? |
| 17167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17168 | (exit $ac_status); }; }; then |
| 17169 | eval "$as_ac_var=yes" |
| 17170 | else |
| 17171 | echo "$as_me: failed program was:" >&5 |
| 17172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17173 | |
| 17174 | eval "$as_ac_var=no" |
| 17175 | fi |
| 17176 | |
| 17177 | rm -f core conftest.err conftest.$ac_objext \ |
| 17178 | conftest$ac_exeext conftest.$ac_ext |
| 17179 | fi |
| 17180 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17181 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17182 | echo "${ECHO_T}$ac_res" >&6; } |
| 17183 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17184 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17185 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17186 | _ACEOF |
| 17187 | |
| 17188 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17189 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17190 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17191 | |
| 17192 | |
| 17193 | |
| 17194 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17195 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17196 | do |
| 17197 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17198 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17199 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17200 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17202 | else |
| 17203 | cat >conftest.$ac_ext <<_ACEOF |
| 17204 | /* confdefs.h. */ |
| 17205 | _ACEOF |
| 17206 | cat confdefs.h >>conftest.$ac_ext |
| 17207 | cat >>conftest.$ac_ext <<_ACEOF |
| 17208 | /* end confdefs.h. */ |
| 17209 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17210 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17211 | #define $ac_func innocuous_$ac_func |
| 17212 | |
| 17213 | /* System header to define __stub macros and hopefully few prototypes, |
| 17214 | which can conflict with char $ac_func (); below. |
| 17215 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17216 | <limits.h> exists even on freestanding compilers. */ |
| 17217 | |
| 17218 | #ifdef __STDC__ |
| 17219 | # include <limits.h> |
| 17220 | #else |
| 17221 | # include <assert.h> |
| 17222 | #endif |
| 17223 | |
| 17224 | #undef $ac_func |
| 17225 | |
| 17226 | /* Override any GCC internal prototype to avoid an error. |
| 17227 | Use char because int might match the return type of a GCC |
| 17228 | builtin and then its argument prototype would still apply. */ |
| 17229 | #ifdef __cplusplus |
| 17230 | extern "C" |
| 17231 | #endif |
| 17232 | char $ac_func (); |
| 17233 | /* The GNU C library defines this for functions which it implements |
| 17234 | to always fail with ENOSYS. Some functions are actually named |
| 17235 | something starting with __ and the normal name is an alias. */ |
| 17236 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17237 | choke me |
| 17238 | #endif |
| 17239 | |
| 17240 | int |
| 17241 | main () |
| 17242 | { |
| 17243 | return $ac_func (); |
| 17244 | ; |
| 17245 | return 0; |
| 17246 | } |
| 17247 | _ACEOF |
| 17248 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17249 | if { (ac_try="$ac_link" |
| 17250 | case "(($ac_try" in |
| 17251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17252 | *) ac_try_echo=$ac_try;; |
| 17253 | esac |
| 17254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17255 | (eval "$ac_link") 2>conftest.er1 |
| 17256 | ac_status=$? |
| 17257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17258 | rm -f conftest.er1 |
| 17259 | cat conftest.err >&5 |
| 17260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17261 | (exit $ac_status); } && |
| 17262 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17263 | { (case "(($ac_try" in |
| 17264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17265 | *) ac_try_echo=$ac_try;; |
| 17266 | esac |
| 17267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17268 | (eval "$ac_try") 2>&5 |
| 17269 | ac_status=$? |
| 17270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17271 | (exit $ac_status); }; } && |
| 17272 | { ac_try='test -s conftest$ac_exeext' |
| 17273 | { (case "(($ac_try" in |
| 17274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17275 | *) ac_try_echo=$ac_try;; |
| 17276 | esac |
| 17277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17278 | (eval "$ac_try") 2>&5 |
| 17279 | ac_status=$? |
| 17280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17281 | (exit $ac_status); }; }; then |
| 17282 | eval "$as_ac_var=yes" |
| 17283 | else |
| 17284 | echo "$as_me: failed program was:" >&5 |
| 17285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17286 | |
| 17287 | eval "$as_ac_var=no" |
| 17288 | fi |
| 17289 | |
| 17290 | rm -f core conftest.err conftest.$ac_objext \ |
| 17291 | conftest$ac_exeext conftest.$ac_ext |
| 17292 | fi |
| 17293 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17294 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17295 | echo "${ECHO_T}$ac_res" >&6; } |
| 17296 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17297 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17298 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17299 | _ACEOF |
| 17300 | |
| 17301 | fi |
| 17302 | done |
| 17303 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17304 | |
| 17305 | |
| 17306 | |
| 17307 | |
| 17308 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17309 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17310 | do |
| 17311 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17312 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17313 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17314 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17316 | else |
| 17317 | cat >conftest.$ac_ext <<_ACEOF |
| 17318 | /* confdefs.h. */ |
| 17319 | _ACEOF |
| 17320 | cat confdefs.h >>conftest.$ac_ext |
| 17321 | cat >>conftest.$ac_ext <<_ACEOF |
| 17322 | /* end confdefs.h. */ |
| 17323 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17324 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17325 | #define $ac_func innocuous_$ac_func |
| 17326 | |
| 17327 | /* System header to define __stub macros and hopefully few prototypes, |
| 17328 | which can conflict with char $ac_func (); below. |
| 17329 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17330 | <limits.h> exists even on freestanding compilers. */ |
| 17331 | |
| 17332 | #ifdef __STDC__ |
| 17333 | # include <limits.h> |
| 17334 | #else |
| 17335 | # include <assert.h> |
| 17336 | #endif |
| 17337 | |
| 17338 | #undef $ac_func |
| 17339 | |
| 17340 | /* Override any GCC internal prototype to avoid an error. |
| 17341 | Use char because int might match the return type of a GCC |
| 17342 | builtin and then its argument prototype would still apply. */ |
| 17343 | #ifdef __cplusplus |
| 17344 | extern "C" |
| 17345 | #endif |
| 17346 | char $ac_func (); |
| 17347 | /* The GNU C library defines this for functions which it implements |
| 17348 | to always fail with ENOSYS. Some functions are actually named |
| 17349 | something starting with __ and the normal name is an alias. */ |
| 17350 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17351 | choke me |
| 17352 | #endif |
| 17353 | |
| 17354 | int |
| 17355 | main () |
| 17356 | { |
| 17357 | return $ac_func (); |
| 17358 | ; |
| 17359 | return 0; |
| 17360 | } |
| 17361 | _ACEOF |
| 17362 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17363 | if { (ac_try="$ac_link" |
| 17364 | case "(($ac_try" in |
| 17365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17366 | *) ac_try_echo=$ac_try;; |
| 17367 | esac |
| 17368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17369 | (eval "$ac_link") 2>conftest.er1 |
| 17370 | ac_status=$? |
| 17371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17372 | rm -f conftest.er1 |
| 17373 | cat conftest.err >&5 |
| 17374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17375 | (exit $ac_status); } && |
| 17376 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17377 | { (case "(($ac_try" in |
| 17378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17379 | *) ac_try_echo=$ac_try;; |
| 17380 | esac |
| 17381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17382 | (eval "$ac_try") 2>&5 |
| 17383 | ac_status=$? |
| 17384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17385 | (exit $ac_status); }; } && |
| 17386 | { ac_try='test -s conftest$ac_exeext' |
| 17387 | { (case "(($ac_try" in |
| 17388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17389 | *) ac_try_echo=$ac_try;; |
| 17390 | esac |
| 17391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17392 | (eval "$ac_try") 2>&5 |
| 17393 | ac_status=$? |
| 17394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17395 | (exit $ac_status); }; }; then |
| 17396 | eval "$as_ac_var=yes" |
| 17397 | else |
| 17398 | echo "$as_me: failed program was:" >&5 |
| 17399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17400 | |
| 17401 | eval "$as_ac_var=no" |
| 17402 | fi |
| 17403 | |
| 17404 | rm -f core conftest.err conftest.$ac_objext \ |
| 17405 | conftest$ac_exeext conftest.$ac_ext |
| 17406 | fi |
| 17407 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17408 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17409 | echo "${ECHO_T}$ac_res" >&6; } |
| 17410 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17411 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17412 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17413 | _ACEOF |
| 17414 | |
| 17415 | fi |
| 17416 | done |
| 17417 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17418 | |
| 17419 | |
| 17420 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17421 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17422 | do |
| 17423 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17424 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17425 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17426 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17428 | else |
| 17429 | cat >conftest.$ac_ext <<_ACEOF |
| 17430 | /* confdefs.h. */ |
| 17431 | _ACEOF |
| 17432 | cat confdefs.h >>conftest.$ac_ext |
| 17433 | cat >>conftest.$ac_ext <<_ACEOF |
| 17434 | /* end confdefs.h. */ |
| 17435 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17436 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17437 | #define $ac_func innocuous_$ac_func |
| 17438 | |
| 17439 | /* System header to define __stub macros and hopefully few prototypes, |
| 17440 | which can conflict with char $ac_func (); below. |
| 17441 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17442 | <limits.h> exists even on freestanding compilers. */ |
| 17443 | |
| 17444 | #ifdef __STDC__ |
| 17445 | # include <limits.h> |
| 17446 | #else |
| 17447 | # include <assert.h> |
| 17448 | #endif |
| 17449 | |
| 17450 | #undef $ac_func |
| 17451 | |
| 17452 | /* Override any GCC internal prototype to avoid an error. |
| 17453 | Use char because int might match the return type of a GCC |
| 17454 | builtin and then its argument prototype would still apply. */ |
| 17455 | #ifdef __cplusplus |
| 17456 | extern "C" |
| 17457 | #endif |
| 17458 | char $ac_func (); |
| 17459 | /* The GNU C library defines this for functions which it implements |
| 17460 | to always fail with ENOSYS. Some functions are actually named |
| 17461 | something starting with __ and the normal name is an alias. */ |
| 17462 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17463 | choke me |
| 17464 | #endif |
| 17465 | |
| 17466 | int |
| 17467 | main () |
| 17468 | { |
| 17469 | return $ac_func (); |
| 17470 | ; |
| 17471 | return 0; |
| 17472 | } |
| 17473 | _ACEOF |
| 17474 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17475 | if { (ac_try="$ac_link" |
| 17476 | case "(($ac_try" in |
| 17477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17478 | *) ac_try_echo=$ac_try;; |
| 17479 | esac |
| 17480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17481 | (eval "$ac_link") 2>conftest.er1 |
| 17482 | ac_status=$? |
| 17483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17484 | rm -f conftest.er1 |
| 17485 | cat conftest.err >&5 |
| 17486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17487 | (exit $ac_status); } && |
| 17488 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17489 | { (case "(($ac_try" in |
| 17490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17491 | *) ac_try_echo=$ac_try;; |
| 17492 | esac |
| 17493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17494 | (eval "$ac_try") 2>&5 |
| 17495 | ac_status=$? |
| 17496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17497 | (exit $ac_status); }; } && |
| 17498 | { ac_try='test -s conftest$ac_exeext' |
| 17499 | { (case "(($ac_try" in |
| 17500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17501 | *) ac_try_echo=$ac_try;; |
| 17502 | esac |
| 17503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17504 | (eval "$ac_try") 2>&5 |
| 17505 | ac_status=$? |
| 17506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17507 | (exit $ac_status); }; }; then |
| 17508 | eval "$as_ac_var=yes" |
| 17509 | else |
| 17510 | echo "$as_me: failed program was:" >&5 |
| 17511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17512 | |
| 17513 | eval "$as_ac_var=no" |
| 17514 | fi |
| 17515 | |
| 17516 | rm -f core conftest.err conftest.$ac_objext \ |
| 17517 | conftest$ac_exeext conftest.$ac_ext |
| 17518 | fi |
| 17519 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17520 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17521 | echo "${ECHO_T}$ac_res" >&6; } |
| 17522 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17523 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17524 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17525 | _ACEOF |
| 17526 | |
| 17527 | fi |
| 17528 | done |
| 17529 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17530 | |
| 17531 | |
| 17532 | |
| 17533 | |
| 17534 | |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17535 | for ac_func in mktemp realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17536 | do |
| 17537 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17538 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17539 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17540 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17542 | else |
| 17543 | cat >conftest.$ac_ext <<_ACEOF |
| 17544 | /* confdefs.h. */ |
| 17545 | _ACEOF |
| 17546 | cat confdefs.h >>conftest.$ac_ext |
| 17547 | cat >>conftest.$ac_ext <<_ACEOF |
| 17548 | /* end confdefs.h. */ |
| 17549 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17550 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17551 | #define $ac_func innocuous_$ac_func |
| 17552 | |
| 17553 | /* System header to define __stub macros and hopefully few prototypes, |
| 17554 | which can conflict with char $ac_func (); below. |
| 17555 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17556 | <limits.h> exists even on freestanding compilers. */ |
| 17557 | |
| 17558 | #ifdef __STDC__ |
| 17559 | # include <limits.h> |
| 17560 | #else |
| 17561 | # include <assert.h> |
| 17562 | #endif |
| 17563 | |
| 17564 | #undef $ac_func |
| 17565 | |
| 17566 | /* Override any GCC internal prototype to avoid an error. |
| 17567 | Use char because int might match the return type of a GCC |
| 17568 | builtin and then its argument prototype would still apply. */ |
| 17569 | #ifdef __cplusplus |
| 17570 | extern "C" |
| 17571 | #endif |
| 17572 | char $ac_func (); |
| 17573 | /* The GNU C library defines this for functions which it implements |
| 17574 | to always fail with ENOSYS. Some functions are actually named |
| 17575 | something starting with __ and the normal name is an alias. */ |
| 17576 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17577 | choke me |
| 17578 | #endif |
| 17579 | |
| 17580 | int |
| 17581 | main () |
| 17582 | { |
| 17583 | return $ac_func (); |
| 17584 | ; |
| 17585 | return 0; |
| 17586 | } |
| 17587 | _ACEOF |
| 17588 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17589 | if { (ac_try="$ac_link" |
| 17590 | case "(($ac_try" in |
| 17591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17592 | *) ac_try_echo=$ac_try;; |
| 17593 | esac |
| 17594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17595 | (eval "$ac_link") 2>conftest.er1 |
| 17596 | ac_status=$? |
| 17597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17598 | rm -f conftest.er1 |
| 17599 | cat conftest.err >&5 |
| 17600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17601 | (exit $ac_status); } && |
| 17602 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17603 | { (case "(($ac_try" in |
| 17604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17605 | *) ac_try_echo=$ac_try;; |
| 17606 | esac |
| 17607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17608 | (eval "$ac_try") 2>&5 |
| 17609 | ac_status=$? |
| 17610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17611 | (exit $ac_status); }; } && |
| 17612 | { ac_try='test -s conftest$ac_exeext' |
| 17613 | { (case "(($ac_try" in |
| 17614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17615 | *) ac_try_echo=$ac_try;; |
| 17616 | esac |
| 17617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17618 | (eval "$ac_try") 2>&5 |
| 17619 | ac_status=$? |
| 17620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17621 | (exit $ac_status); }; }; then |
| 17622 | eval "$as_ac_var=yes" |
| 17623 | else |
| 17624 | echo "$as_me: failed program was:" >&5 |
| 17625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17626 | |
| 17627 | eval "$as_ac_var=no" |
| 17628 | fi |
| 17629 | |
| 17630 | rm -f core conftest.err conftest.$ac_objext \ |
| 17631 | conftest$ac_exeext conftest.$ac_ext |
| 17632 | fi |
| 17633 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17634 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17635 | echo "${ECHO_T}$ac_res" >&6; } |
| 17636 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17637 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17638 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17639 | _ACEOF |
| 17640 | |
| 17641 | fi |
| 17642 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17643 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17644 | |
| 17645 | |
| 17646 | |
| 17647 | |
Jeffrey Yasskin | b7a8d40 | 2009-09-25 21:07:20 +0000 | [diff] [blame] | 17648 | for ac_func in strerror strerror_r strerror_s setenv |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17649 | do |
| 17650 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17651 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17652 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17653 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17655 | else |
| 17656 | cat >conftest.$ac_ext <<_ACEOF |
| 17657 | /* confdefs.h. */ |
| 17658 | _ACEOF |
| 17659 | cat confdefs.h >>conftest.$ac_ext |
| 17660 | cat >>conftest.$ac_ext <<_ACEOF |
| 17661 | /* end confdefs.h. */ |
| 17662 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17663 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17664 | #define $ac_func innocuous_$ac_func |
| 17665 | |
| 17666 | /* System header to define __stub macros and hopefully few prototypes, |
| 17667 | which can conflict with char $ac_func (); below. |
| 17668 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17669 | <limits.h> exists even on freestanding compilers. */ |
| 17670 | |
| 17671 | #ifdef __STDC__ |
| 17672 | # include <limits.h> |
| 17673 | #else |
| 17674 | # include <assert.h> |
| 17675 | #endif |
| 17676 | |
| 17677 | #undef $ac_func |
| 17678 | |
| 17679 | /* Override any GCC internal prototype to avoid an error. |
| 17680 | Use char because int might match the return type of a GCC |
| 17681 | builtin and then its argument prototype would still apply. */ |
| 17682 | #ifdef __cplusplus |
| 17683 | extern "C" |
| 17684 | #endif |
| 17685 | char $ac_func (); |
| 17686 | /* The GNU C library defines this for functions which it implements |
| 17687 | to always fail with ENOSYS. Some functions are actually named |
| 17688 | something starting with __ and the normal name is an alias. */ |
| 17689 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17690 | choke me |
| 17691 | #endif |
| 17692 | |
| 17693 | int |
| 17694 | main () |
| 17695 | { |
| 17696 | return $ac_func (); |
| 17697 | ; |
| 17698 | return 0; |
| 17699 | } |
| 17700 | _ACEOF |
| 17701 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17702 | if { (ac_try="$ac_link" |
| 17703 | case "(($ac_try" in |
| 17704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17705 | *) ac_try_echo=$ac_try;; |
| 17706 | esac |
| 17707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17708 | (eval "$ac_link") 2>conftest.er1 |
| 17709 | ac_status=$? |
| 17710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17711 | rm -f conftest.er1 |
| 17712 | cat conftest.err >&5 |
| 17713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17714 | (exit $ac_status); } && |
| 17715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17716 | { (case "(($ac_try" in |
| 17717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17718 | *) ac_try_echo=$ac_try;; |
| 17719 | esac |
| 17720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17721 | (eval "$ac_try") 2>&5 |
| 17722 | ac_status=$? |
| 17723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17724 | (exit $ac_status); }; } && |
| 17725 | { ac_try='test -s conftest$ac_exeext' |
| 17726 | { (case "(($ac_try" in |
| 17727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17728 | *) ac_try_echo=$ac_try;; |
| 17729 | esac |
| 17730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17731 | (eval "$ac_try") 2>&5 |
| 17732 | ac_status=$? |
| 17733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17734 | (exit $ac_status); }; }; then |
| 17735 | eval "$as_ac_var=yes" |
| 17736 | else |
| 17737 | echo "$as_me: failed program was:" >&5 |
| 17738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17739 | |
| 17740 | eval "$as_ac_var=no" |
| 17741 | fi |
| 17742 | |
| 17743 | rm -f core conftest.err conftest.$ac_objext \ |
| 17744 | conftest$ac_exeext conftest.$ac_ext |
| 17745 | fi |
| 17746 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17747 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17748 | echo "${ECHO_T}$ac_res" >&6; } |
| 17749 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17750 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17751 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17752 | _ACEOF |
| 17753 | |
| 17754 | fi |
| 17755 | done |
| 17756 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17757 | |
| 17758 | |
| 17759 | |
| 17760 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 17761 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17762 | do |
| 17763 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17764 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17765 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17766 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17768 | else |
| 17769 | cat >conftest.$ac_ext <<_ACEOF |
| 17770 | /* confdefs.h. */ |
| 17771 | _ACEOF |
| 17772 | cat confdefs.h >>conftest.$ac_ext |
| 17773 | cat >>conftest.$ac_ext <<_ACEOF |
| 17774 | /* end confdefs.h. */ |
| 17775 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17776 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17777 | #define $ac_func innocuous_$ac_func |
| 17778 | |
| 17779 | /* System header to define __stub macros and hopefully few prototypes, |
| 17780 | which can conflict with char $ac_func (); below. |
| 17781 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17782 | <limits.h> exists even on freestanding compilers. */ |
| 17783 | |
| 17784 | #ifdef __STDC__ |
| 17785 | # include <limits.h> |
| 17786 | #else |
| 17787 | # include <assert.h> |
| 17788 | #endif |
| 17789 | |
| 17790 | #undef $ac_func |
| 17791 | |
| 17792 | /* Override any GCC internal prototype to avoid an error. |
| 17793 | Use char because int might match the return type of a GCC |
| 17794 | builtin and then its argument prototype would still apply. */ |
| 17795 | #ifdef __cplusplus |
| 17796 | extern "C" |
| 17797 | #endif |
| 17798 | char $ac_func (); |
| 17799 | /* The GNU C library defines this for functions which it implements |
| 17800 | to always fail with ENOSYS. Some functions are actually named |
| 17801 | something starting with __ and the normal name is an alias. */ |
| 17802 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17803 | choke me |
| 17804 | #endif |
| 17805 | |
| 17806 | int |
| 17807 | main () |
| 17808 | { |
| 17809 | return $ac_func (); |
| 17810 | ; |
| 17811 | return 0; |
| 17812 | } |
| 17813 | _ACEOF |
| 17814 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17815 | if { (ac_try="$ac_link" |
| 17816 | case "(($ac_try" in |
| 17817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17818 | *) ac_try_echo=$ac_try;; |
| 17819 | esac |
| 17820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17821 | (eval "$ac_link") 2>conftest.er1 |
| 17822 | ac_status=$? |
| 17823 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17824 | rm -f conftest.er1 |
| 17825 | cat conftest.err >&5 |
| 17826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17827 | (exit $ac_status); } && |
| 17828 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17829 | { (case "(($ac_try" in |
| 17830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17831 | *) ac_try_echo=$ac_try;; |
| 17832 | esac |
| 17833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17834 | (eval "$ac_try") 2>&5 |
| 17835 | ac_status=$? |
| 17836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17837 | (exit $ac_status); }; } && |
| 17838 | { ac_try='test -s conftest$ac_exeext' |
| 17839 | { (case "(($ac_try" in |
| 17840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17841 | *) ac_try_echo=$ac_try;; |
| 17842 | esac |
| 17843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17844 | (eval "$ac_try") 2>&5 |
| 17845 | ac_status=$? |
| 17846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17847 | (exit $ac_status); }; }; then |
| 17848 | eval "$as_ac_var=yes" |
| 17849 | else |
| 17850 | echo "$as_me: failed program was:" >&5 |
| 17851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17852 | |
| 17853 | eval "$as_ac_var=no" |
| 17854 | fi |
| 17855 | |
| 17856 | rm -f core conftest.err conftest.$ac_objext \ |
| 17857 | conftest$ac_exeext conftest.$ac_ext |
| 17858 | fi |
| 17859 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17860 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17861 | echo "${ECHO_T}$ac_res" >&6; } |
| 17862 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17863 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17864 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17865 | _ACEOF |
| 17866 | |
| 17867 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17868 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17869 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17870 | |
| 17871 | |
| 17872 | |
| 17873 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 17874 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17875 | do |
| 17876 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17877 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17878 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17879 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17881 | else |
| 17882 | cat >conftest.$ac_ext <<_ACEOF |
| 17883 | /* confdefs.h. */ |
| 17884 | _ACEOF |
| 17885 | cat confdefs.h >>conftest.$ac_ext |
| 17886 | cat >>conftest.$ac_ext <<_ACEOF |
| 17887 | /* end confdefs.h. */ |
| 17888 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17889 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17890 | #define $ac_func innocuous_$ac_func |
| 17891 | |
| 17892 | /* System header to define __stub macros and hopefully few prototypes, |
| 17893 | which can conflict with char $ac_func (); below. |
| 17894 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17895 | <limits.h> exists even on freestanding compilers. */ |
| 17896 | |
| 17897 | #ifdef __STDC__ |
| 17898 | # include <limits.h> |
| 17899 | #else |
| 17900 | # include <assert.h> |
| 17901 | #endif |
| 17902 | |
| 17903 | #undef $ac_func |
| 17904 | |
| 17905 | /* Override any GCC internal prototype to avoid an error. |
| 17906 | Use char because int might match the return type of a GCC |
| 17907 | builtin and then its argument prototype would still apply. */ |
| 17908 | #ifdef __cplusplus |
| 17909 | extern "C" |
| 17910 | #endif |
| 17911 | char $ac_func (); |
| 17912 | /* The GNU C library defines this for functions which it implements |
| 17913 | to always fail with ENOSYS. Some functions are actually named |
| 17914 | something starting with __ and the normal name is an alias. */ |
| 17915 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17916 | choke me |
| 17917 | #endif |
| 17918 | |
| 17919 | int |
| 17920 | main () |
| 17921 | { |
| 17922 | return $ac_func (); |
| 17923 | ; |
| 17924 | return 0; |
| 17925 | } |
| 17926 | _ACEOF |
| 17927 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17928 | if { (ac_try="$ac_link" |
| 17929 | case "(($ac_try" in |
| 17930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17931 | *) ac_try_echo=$ac_try;; |
| 17932 | esac |
| 17933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17934 | (eval "$ac_link") 2>conftest.er1 |
| 17935 | ac_status=$? |
| 17936 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17937 | rm -f conftest.er1 |
| 17938 | cat conftest.err >&5 |
| 17939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17940 | (exit $ac_status); } && |
| 17941 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17942 | { (case "(($ac_try" in |
| 17943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17944 | *) ac_try_echo=$ac_try;; |
| 17945 | esac |
| 17946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17947 | (eval "$ac_try") 2>&5 |
| 17948 | ac_status=$? |
| 17949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17950 | (exit $ac_status); }; } && |
| 17951 | { ac_try='test -s conftest$ac_exeext' |
| 17952 | { (case "(($ac_try" in |
| 17953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17954 | *) ac_try_echo=$ac_try;; |
| 17955 | esac |
| 17956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17957 | (eval "$ac_try") 2>&5 |
| 17958 | ac_status=$? |
| 17959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17960 | (exit $ac_status); }; }; then |
| 17961 | eval "$as_ac_var=yes" |
| 17962 | else |
| 17963 | echo "$as_me: failed program was:" >&5 |
| 17964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17965 | |
| 17966 | eval "$as_ac_var=no" |
| 17967 | fi |
| 17968 | |
| 17969 | rm -f core conftest.err conftest.$ac_objext \ |
| 17970 | conftest$ac_exeext conftest.$ac_ext |
| 17971 | fi |
| 17972 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17973 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17974 | echo "${ECHO_T}$ac_res" >&6; } |
| 17975 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17976 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17977 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17978 | _ACEOF |
| 17979 | |
| 17980 | fi |
| 17981 | done |
| 17982 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17983 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 17984 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 17985 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 17986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17987 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17988 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17989 | ac_cpp='$CPP $CPPFLAGS' |
| 17990 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17991 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17992 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17993 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17994 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17995 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17996 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17997 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17998 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17999 | /* confdefs.h. */ |
| 18000 | _ACEOF |
| 18001 | cat confdefs.h >>conftest.$ac_ext |
| 18002 | cat >>conftest.$ac_ext <<_ACEOF |
| 18003 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18004 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18005 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18006 | #include <stdlib.h> |
| 18007 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18008 | int |
| 18009 | main () |
| 18010 | { |
| 18011 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18012 | volatile double A, B; |
| 18013 | char Buffer[100]; |
| 18014 | A = 1; |
| 18015 | A /= 10.0; |
| 18016 | sprintf(Buffer, "%a", A); |
| 18017 | B = atof(Buffer); |
| 18018 | if (A != B) |
| 18019 | return (1); |
| 18020 | if (A != 0x1.999999999999ap-4) |
| 18021 | return (1); |
| 18022 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18023 | ; |
| 18024 | return 0; |
| 18025 | } |
| 18026 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18027 | rm -f conftest$ac_exeext |
| 18028 | if { (ac_try="$ac_link" |
| 18029 | case "(($ac_try" in |
| 18030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18031 | *) ac_try_echo=$ac_try;; |
| 18032 | esac |
| 18033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18034 | (eval "$ac_link") 2>&5 |
| 18035 | ac_status=$? |
| 18036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18037 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18038 | { (case "(($ac_try" in |
| 18039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18040 | *) ac_try_echo=$ac_try;; |
| 18041 | esac |
| 18042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18043 | (eval "$ac_try") 2>&5 |
| 18044 | ac_status=$? |
| 18045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18046 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18047 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18048 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18049 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18050 | echo "$as_me: failed program was:" >&5 |
| 18051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18052 | |
| 18053 | ( exit $ac_status ) |
| 18054 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18055 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18056 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18057 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18058 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18059 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18060 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18061 | ac_cpp='$CPP $CPPFLAGS' |
| 18062 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18063 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18064 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18065 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18066 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18067 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 18068 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18069 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18070 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18071 | cat >>confdefs.h <<\_ACEOF |
| 18072 | #define HAVE_PRINTF_A 1 |
| 18073 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18074 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18075 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18076 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18077 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18078 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 18079 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 18080 | if test "${ac_cv_func_rand48+set}" = set; then |
| 18081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18082 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18083 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18084 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18085 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18086 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18087 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18088 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18089 | cat >conftest.$ac_ext <<_ACEOF |
| 18090 | /* confdefs.h. */ |
| 18091 | _ACEOF |
| 18092 | cat confdefs.h >>conftest.$ac_ext |
| 18093 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18094 | /* end confdefs.h. */ |
| 18095 | #include <stdlib.h> |
| 18096 | int |
| 18097 | main () |
| 18098 | { |
| 18099 | srand48(0);lrand48();drand48(); |
| 18100 | ; |
| 18101 | return 0; |
| 18102 | } |
| 18103 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18104 | rm -f conftest.$ac_objext |
| 18105 | if { (ac_try="$ac_compile" |
| 18106 | case "(($ac_try" in |
| 18107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18108 | *) ac_try_echo=$ac_try;; |
| 18109 | esac |
| 18110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18111 | (eval "$ac_compile") 2>conftest.er1 |
| 18112 | ac_status=$? |
| 18113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18114 | rm -f conftest.er1 |
| 18115 | cat conftest.err >&5 |
| 18116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18117 | (exit $ac_status); } && |
| 18118 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18119 | { (case "(($ac_try" in |
| 18120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18121 | *) ac_try_echo=$ac_try;; |
| 18122 | esac |
| 18123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18124 | (eval "$ac_try") 2>&5 |
| 18125 | ac_status=$? |
| 18126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18127 | (exit $ac_status); }; } && |
| 18128 | { ac_try='test -s conftest.$ac_objext' |
| 18129 | { (case "(($ac_try" in |
| 18130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18131 | *) ac_try_echo=$ac_try;; |
| 18132 | esac |
| 18133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18134 | (eval "$ac_try") 2>&5 |
| 18135 | ac_status=$? |
| 18136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18137 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18138 | ac_cv_func_rand48=yes |
| 18139 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18140 | echo "$as_me: failed program was:" >&5 |
| 18141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18142 | |
| 18143 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18144 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18145 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18147 | ac_ext=c |
| 18148 | ac_cpp='$CPP $CPPFLAGS' |
| 18149 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18150 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18151 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18152 | |
| 18153 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18154 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 18155 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18156 | |
| 18157 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 18158 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18159 | cat >>confdefs.h <<\_ACEOF |
| 18160 | #define HAVE_RAND48 1 |
| 18161 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18162 | |
| 18163 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 18164 | |
| 18165 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18166 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18167 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 18168 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 18169 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 18170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18171 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18172 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18173 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18174 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18175 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18176 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18177 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18178 | cat >conftest.$ac_ext <<_ACEOF |
| 18179 | /* confdefs.h. */ |
| 18180 | _ACEOF |
| 18181 | cat confdefs.h >>conftest.$ac_ext |
| 18182 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18183 | /* end confdefs.h. */ |
| 18184 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18185 | int |
| 18186 | main () |
| 18187 | { |
| 18188 | float f; isnan(f); |
| 18189 | ; |
| 18190 | return 0; |
| 18191 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18192 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18193 | rm -f conftest.$ac_objext |
| 18194 | if { (ac_try="$ac_compile" |
| 18195 | case "(($ac_try" in |
| 18196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18197 | *) ac_try_echo=$ac_try;; |
| 18198 | esac |
| 18199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18200 | (eval "$ac_compile") 2>conftest.er1 |
| 18201 | ac_status=$? |
| 18202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18203 | rm -f conftest.er1 |
| 18204 | cat conftest.err >&5 |
| 18205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18206 | (exit $ac_status); } && |
| 18207 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18208 | { (case "(($ac_try" in |
| 18209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18210 | *) ac_try_echo=$ac_try;; |
| 18211 | esac |
| 18212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18213 | (eval "$ac_try") 2>&5 |
| 18214 | ac_status=$? |
| 18215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18216 | (exit $ac_status); }; } && |
| 18217 | { ac_try='test -s conftest.$ac_objext' |
| 18218 | { (case "(($ac_try" in |
| 18219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18220 | *) ac_try_echo=$ac_try;; |
| 18221 | esac |
| 18222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18223 | (eval "$ac_try") 2>&5 |
| 18224 | ac_status=$? |
| 18225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18226 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18227 | ac_cv_func_isnan_in_math_h=yes |
| 18228 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18229 | echo "$as_me: failed program was:" >&5 |
| 18230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18231 | |
| 18232 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18233 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18234 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18236 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18237 | ac_cpp='$CPP $CPPFLAGS' |
| 18238 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18239 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18240 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18241 | |
| 18242 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18243 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 18244 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18245 | |
| 18246 | |
| 18247 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18248 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18249 | cat >>confdefs.h <<\_ACEOF |
| 18250 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 18251 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18252 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18253 | fi |
| 18254 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18255 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 18256 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 18257 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 18258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18259 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18260 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18261 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18262 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18263 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18264 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18265 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18266 | cat >conftest.$ac_ext <<_ACEOF |
| 18267 | /* confdefs.h. */ |
| 18268 | _ACEOF |
| 18269 | cat confdefs.h >>conftest.$ac_ext |
| 18270 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18271 | /* end confdefs.h. */ |
| 18272 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18273 | int |
| 18274 | main () |
| 18275 | { |
| 18276 | float f; isnan(f); |
| 18277 | ; |
| 18278 | return 0; |
| 18279 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18280 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18281 | rm -f conftest.$ac_objext |
| 18282 | if { (ac_try="$ac_compile" |
| 18283 | case "(($ac_try" in |
| 18284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18285 | *) ac_try_echo=$ac_try;; |
| 18286 | esac |
| 18287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18288 | (eval "$ac_compile") 2>conftest.er1 |
| 18289 | ac_status=$? |
| 18290 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18291 | rm -f conftest.er1 |
| 18292 | cat conftest.err >&5 |
| 18293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18294 | (exit $ac_status); } && |
| 18295 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18296 | { (case "(($ac_try" in |
| 18297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18298 | *) ac_try_echo=$ac_try;; |
| 18299 | esac |
| 18300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18301 | (eval "$ac_try") 2>&5 |
| 18302 | ac_status=$? |
| 18303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18304 | (exit $ac_status); }; } && |
| 18305 | { ac_try='test -s conftest.$ac_objext' |
| 18306 | { (case "(($ac_try" in |
| 18307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18308 | *) ac_try_echo=$ac_try;; |
| 18309 | esac |
| 18310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18311 | (eval "$ac_try") 2>&5 |
| 18312 | ac_status=$? |
| 18313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18314 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18315 | ac_cv_func_isnan_in_cmath=yes |
| 18316 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18317 | echo "$as_me: failed program was:" >&5 |
| 18318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18319 | |
| 18320 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18321 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18322 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18324 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18325 | ac_cpp='$CPP $CPPFLAGS' |
| 18326 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18327 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18328 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18329 | |
| 18330 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18331 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 18332 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18333 | |
| 18334 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18335 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18336 | cat >>confdefs.h <<\_ACEOF |
| 18337 | #define HAVE_ISNAN_IN_CMATH 1 |
| 18338 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18339 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18340 | fi |
| 18341 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18342 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 18343 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 18344 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 18345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18346 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18347 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18348 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18349 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18350 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18351 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18352 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18353 | cat >conftest.$ac_ext <<_ACEOF |
| 18354 | /* confdefs.h. */ |
| 18355 | _ACEOF |
| 18356 | cat confdefs.h >>conftest.$ac_ext |
| 18357 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18358 | /* end confdefs.h. */ |
| 18359 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18360 | int |
| 18361 | main () |
| 18362 | { |
| 18363 | float f; std::isnan(f); |
| 18364 | ; |
| 18365 | return 0; |
| 18366 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18367 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18368 | rm -f conftest.$ac_objext |
| 18369 | if { (ac_try="$ac_compile" |
| 18370 | case "(($ac_try" in |
| 18371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18372 | *) ac_try_echo=$ac_try;; |
| 18373 | esac |
| 18374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18375 | (eval "$ac_compile") 2>conftest.er1 |
| 18376 | ac_status=$? |
| 18377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18378 | rm -f conftest.er1 |
| 18379 | cat conftest.err >&5 |
| 18380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18381 | (exit $ac_status); } && |
| 18382 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18383 | { (case "(($ac_try" in |
| 18384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18385 | *) ac_try_echo=$ac_try;; |
| 18386 | esac |
| 18387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18388 | (eval "$ac_try") 2>&5 |
| 18389 | ac_status=$? |
| 18390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18391 | (exit $ac_status); }; } && |
| 18392 | { ac_try='test -s conftest.$ac_objext' |
| 18393 | { (case "(($ac_try" in |
| 18394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18395 | *) ac_try_echo=$ac_try;; |
| 18396 | esac |
| 18397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18398 | (eval "$ac_try") 2>&5 |
| 18399 | ac_status=$? |
| 18400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18401 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18402 | ac_cv_func_std_isnan_in_cmath=yes |
| 18403 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18404 | echo "$as_me: failed program was:" >&5 |
| 18405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18406 | |
| 18407 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18408 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18409 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18411 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18412 | ac_cpp='$CPP $CPPFLAGS' |
| 18413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18416 | |
| 18417 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18418 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 18419 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18420 | |
| 18421 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18422 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18423 | cat >>confdefs.h <<\_ACEOF |
| 18424 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 18425 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18426 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18427 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18428 | |
| 18429 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18430 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 18431 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 18432 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 18433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18434 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18435 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18436 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18437 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18438 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18439 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18440 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18441 | cat >conftest.$ac_ext <<_ACEOF |
| 18442 | /* confdefs.h. */ |
| 18443 | _ACEOF |
| 18444 | cat confdefs.h >>conftest.$ac_ext |
| 18445 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18446 | /* end confdefs.h. */ |
| 18447 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18448 | int |
| 18449 | main () |
| 18450 | { |
| 18451 | float f; isinf(f); |
| 18452 | ; |
| 18453 | return 0; |
| 18454 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18455 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18456 | rm -f conftest.$ac_objext |
| 18457 | if { (ac_try="$ac_compile" |
| 18458 | case "(($ac_try" in |
| 18459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18460 | *) ac_try_echo=$ac_try;; |
| 18461 | esac |
| 18462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18463 | (eval "$ac_compile") 2>conftest.er1 |
| 18464 | ac_status=$? |
| 18465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18466 | rm -f conftest.er1 |
| 18467 | cat conftest.err >&5 |
| 18468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18469 | (exit $ac_status); } && |
| 18470 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18471 | { (case "(($ac_try" in |
| 18472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18473 | *) ac_try_echo=$ac_try;; |
| 18474 | esac |
| 18475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18476 | (eval "$ac_try") 2>&5 |
| 18477 | ac_status=$? |
| 18478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18479 | (exit $ac_status); }; } && |
| 18480 | { ac_try='test -s conftest.$ac_objext' |
| 18481 | { (case "(($ac_try" in |
| 18482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18483 | *) ac_try_echo=$ac_try;; |
| 18484 | esac |
| 18485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18486 | (eval "$ac_try") 2>&5 |
| 18487 | ac_status=$? |
| 18488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18489 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18490 | ac_cv_func_isinf_in_math_h=yes |
| 18491 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18492 | echo "$as_me: failed program was:" >&5 |
| 18493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18494 | |
| 18495 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18496 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18497 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18499 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18500 | ac_cpp='$CPP $CPPFLAGS' |
| 18501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18504 | |
| 18505 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18506 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 18507 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18508 | |
| 18509 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18510 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18511 | cat >>confdefs.h <<\_ACEOF |
| 18512 | #define HAVE_ISINF_IN_MATH_H 1 |
| 18513 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18514 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18515 | fi |
| 18516 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18517 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 18518 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 18519 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 18520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18521 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18522 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18523 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18524 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18525 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18526 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18527 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18528 | cat >conftest.$ac_ext <<_ACEOF |
| 18529 | /* confdefs.h. */ |
| 18530 | _ACEOF |
| 18531 | cat confdefs.h >>conftest.$ac_ext |
| 18532 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18533 | /* end confdefs.h. */ |
| 18534 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18535 | int |
| 18536 | main () |
| 18537 | { |
| 18538 | float f; isinf(f); |
| 18539 | ; |
| 18540 | return 0; |
| 18541 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18542 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18543 | rm -f conftest.$ac_objext |
| 18544 | if { (ac_try="$ac_compile" |
| 18545 | case "(($ac_try" in |
| 18546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18547 | *) ac_try_echo=$ac_try;; |
| 18548 | esac |
| 18549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18550 | (eval "$ac_compile") 2>conftest.er1 |
| 18551 | ac_status=$? |
| 18552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18553 | rm -f conftest.er1 |
| 18554 | cat conftest.err >&5 |
| 18555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18556 | (exit $ac_status); } && |
| 18557 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18558 | { (case "(($ac_try" in |
| 18559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18560 | *) ac_try_echo=$ac_try;; |
| 18561 | esac |
| 18562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18563 | (eval "$ac_try") 2>&5 |
| 18564 | ac_status=$? |
| 18565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18566 | (exit $ac_status); }; } && |
| 18567 | { ac_try='test -s conftest.$ac_objext' |
| 18568 | { (case "(($ac_try" in |
| 18569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18570 | *) ac_try_echo=$ac_try;; |
| 18571 | esac |
| 18572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18573 | (eval "$ac_try") 2>&5 |
| 18574 | ac_status=$? |
| 18575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18576 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18577 | ac_cv_func_isinf_in_cmath=yes |
| 18578 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18579 | echo "$as_me: failed program was:" >&5 |
| 18580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18581 | |
| 18582 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18583 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18584 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18586 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18587 | ac_cpp='$CPP $CPPFLAGS' |
| 18588 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18589 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18590 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18591 | |
| 18592 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18593 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 18594 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18595 | |
| 18596 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18597 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18598 | cat >>confdefs.h <<\_ACEOF |
| 18599 | #define HAVE_ISINF_IN_CMATH 1 |
| 18600 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18601 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18602 | fi |
| 18603 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18604 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 18605 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 18606 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 18607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18608 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18609 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18610 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18611 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18612 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18613 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18614 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18615 | cat >conftest.$ac_ext <<_ACEOF |
| 18616 | /* confdefs.h. */ |
| 18617 | _ACEOF |
| 18618 | cat confdefs.h >>conftest.$ac_ext |
| 18619 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18620 | /* end confdefs.h. */ |
| 18621 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18622 | int |
| 18623 | main () |
| 18624 | { |
| 18625 | float f; std::isinf(f)} |
| 18626 | ; |
| 18627 | return 0; |
| 18628 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18629 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18630 | rm -f conftest.$ac_objext |
| 18631 | if { (ac_try="$ac_compile" |
| 18632 | case "(($ac_try" in |
| 18633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18634 | *) ac_try_echo=$ac_try;; |
| 18635 | esac |
| 18636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18637 | (eval "$ac_compile") 2>conftest.er1 |
| 18638 | ac_status=$? |
| 18639 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18640 | rm -f conftest.er1 |
| 18641 | cat conftest.err >&5 |
| 18642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18643 | (exit $ac_status); } && |
| 18644 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18645 | { (case "(($ac_try" in |
| 18646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18647 | *) ac_try_echo=$ac_try;; |
| 18648 | esac |
| 18649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18650 | (eval "$ac_try") 2>&5 |
| 18651 | ac_status=$? |
| 18652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18653 | (exit $ac_status); }; } && |
| 18654 | { ac_try='test -s conftest.$ac_objext' |
| 18655 | { (case "(($ac_try" in |
| 18656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18657 | *) ac_try_echo=$ac_try;; |
| 18658 | esac |
| 18659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18660 | (eval "$ac_try") 2>&5 |
| 18661 | ac_status=$? |
| 18662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18663 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18664 | ac_cv_func_std_isinf_in_cmath=yes |
| 18665 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18666 | echo "$as_me: failed program was:" >&5 |
| 18667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18668 | |
| 18669 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18670 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18671 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18673 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18674 | ac_cpp='$CPP $CPPFLAGS' |
| 18675 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18676 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18677 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18678 | |
| 18679 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18680 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 18681 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18682 | |
| 18683 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18684 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18685 | cat >>confdefs.h <<\_ACEOF |
| 18686 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 18687 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18688 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18689 | fi |
| 18690 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18691 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 18692 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 18693 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 18694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18695 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18696 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18697 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18698 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18699 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18700 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18701 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18702 | cat >conftest.$ac_ext <<_ACEOF |
| 18703 | /* confdefs.h. */ |
| 18704 | _ACEOF |
| 18705 | cat confdefs.h >>conftest.$ac_ext |
| 18706 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18707 | /* end confdefs.h. */ |
| 18708 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18709 | int |
| 18710 | main () |
| 18711 | { |
| 18712 | float f; finite(f); |
| 18713 | ; |
| 18714 | return 0; |
| 18715 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18716 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18717 | rm -f conftest.$ac_objext |
| 18718 | if { (ac_try="$ac_compile" |
| 18719 | case "(($ac_try" in |
| 18720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18721 | *) ac_try_echo=$ac_try;; |
| 18722 | esac |
| 18723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18724 | (eval "$ac_compile") 2>conftest.er1 |
| 18725 | ac_status=$? |
| 18726 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18727 | rm -f conftest.er1 |
| 18728 | cat conftest.err >&5 |
| 18729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18730 | (exit $ac_status); } && |
| 18731 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18732 | { (case "(($ac_try" in |
| 18733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18734 | *) ac_try_echo=$ac_try;; |
| 18735 | esac |
| 18736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18737 | (eval "$ac_try") 2>&5 |
| 18738 | ac_status=$? |
| 18739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18740 | (exit $ac_status); }; } && |
| 18741 | { ac_try='test -s conftest.$ac_objext' |
| 18742 | { (case "(($ac_try" in |
| 18743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18744 | *) ac_try_echo=$ac_try;; |
| 18745 | esac |
| 18746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18747 | (eval "$ac_try") 2>&5 |
| 18748 | ac_status=$? |
| 18749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18750 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18751 | ac_cv_func_finite_in_ieeefp_h=yes |
| 18752 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18753 | echo "$as_me: failed program was:" >&5 |
| 18754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18755 | |
| 18756 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18757 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18760 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18761 | ac_cpp='$CPP $CPPFLAGS' |
| 18762 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18763 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18764 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18765 | |
| 18766 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18767 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 18768 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18769 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 18770 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18771 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18772 | cat >>confdefs.h <<\_ACEOF |
| 18773 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 18774 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18775 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18776 | fi |
| 18777 | |
| 18778 | |
| 18779 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 18780 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18781 | |
| 18782 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18783 | for ac_header in stdlib.h unistd.h |
| 18784 | do |
| 18785 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 18786 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18787 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 18788 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 18789 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18791 | fi |
| 18792 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 18793 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18794 | echo "${ECHO_T}$ac_res" >&6; } |
| 18795 | else |
| 18796 | # Is the header compilable? |
| 18797 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 18798 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 18799 | cat >conftest.$ac_ext <<_ACEOF |
| 18800 | /* confdefs.h. */ |
| 18801 | _ACEOF |
| 18802 | cat confdefs.h >>conftest.$ac_ext |
| 18803 | cat >>conftest.$ac_ext <<_ACEOF |
| 18804 | /* end confdefs.h. */ |
| 18805 | $ac_includes_default |
| 18806 | #include <$ac_header> |
| 18807 | _ACEOF |
| 18808 | rm -f conftest.$ac_objext |
| 18809 | if { (ac_try="$ac_compile" |
| 18810 | case "(($ac_try" in |
| 18811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18812 | *) ac_try_echo=$ac_try;; |
| 18813 | esac |
| 18814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18815 | (eval "$ac_compile") 2>conftest.er1 |
| 18816 | ac_status=$? |
| 18817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18818 | rm -f conftest.er1 |
| 18819 | cat conftest.err >&5 |
| 18820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18821 | (exit $ac_status); } && |
| 18822 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18823 | { (case "(($ac_try" in |
| 18824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18825 | *) ac_try_echo=$ac_try;; |
| 18826 | esac |
| 18827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18828 | (eval "$ac_try") 2>&5 |
| 18829 | ac_status=$? |
| 18830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18831 | (exit $ac_status); }; } && |
| 18832 | { ac_try='test -s conftest.$ac_objext' |
| 18833 | { (case "(($ac_try" in |
| 18834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18835 | *) ac_try_echo=$ac_try;; |
| 18836 | esac |
| 18837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18838 | (eval "$ac_try") 2>&5 |
| 18839 | ac_status=$? |
| 18840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18841 | (exit $ac_status); }; }; then |
| 18842 | ac_header_compiler=yes |
| 18843 | else |
| 18844 | echo "$as_me: failed program was:" >&5 |
| 18845 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18846 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18847 | ac_header_compiler=no |
| 18848 | fi |
| 18849 | |
| 18850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18851 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 18852 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 18853 | |
| 18854 | # Is the header present? |
| 18855 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 18856 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 18857 | cat >conftest.$ac_ext <<_ACEOF |
| 18858 | /* confdefs.h. */ |
| 18859 | _ACEOF |
| 18860 | cat confdefs.h >>conftest.$ac_ext |
| 18861 | cat >>conftest.$ac_ext <<_ACEOF |
| 18862 | /* end confdefs.h. */ |
| 18863 | #include <$ac_header> |
| 18864 | _ACEOF |
| 18865 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 18866 | case "(($ac_try" in |
| 18867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18868 | *) ac_try_echo=$ac_try;; |
| 18869 | esac |
| 18870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18871 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 18872 | ac_status=$? |
| 18873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18874 | rm -f conftest.er1 |
| 18875 | cat conftest.err >&5 |
| 18876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18877 | (exit $ac_status); } >/dev/null; then |
| 18878 | if test -s conftest.err; then |
| 18879 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 18880 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 18881 | else |
| 18882 | ac_cpp_err= |
| 18883 | fi |
| 18884 | else |
| 18885 | ac_cpp_err=yes |
| 18886 | fi |
| 18887 | if test -z "$ac_cpp_err"; then |
| 18888 | ac_header_preproc=yes |
| 18889 | else |
| 18890 | echo "$as_me: failed program was:" >&5 |
| 18891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18892 | |
| 18893 | ac_header_preproc=no |
| 18894 | fi |
| 18895 | |
| 18896 | rm -f conftest.err conftest.$ac_ext |
| 18897 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 18898 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 18899 | |
| 18900 | # So? What about this header? |
| 18901 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 18902 | yes:no: ) |
| 18903 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 18904 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 18905 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 18906 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 18907 | ac_header_preproc=yes |
| 18908 | ;; |
| 18909 | no:yes:* ) |
| 18910 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 18911 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 18912 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 18913 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 18914 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 18915 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 18916 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 18917 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 18918 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 18919 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 18920 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 18921 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 18922 | ( cat <<\_ASBOX |
| 18923 | ## ----------------------------------- ## |
| 18924 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 18925 | ## ----------------------------------- ## |
| 18926 | _ASBOX |
| 18927 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 18928 | ;; |
| 18929 | esac |
| 18930 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 18931 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 18932 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18934 | else |
| 18935 | eval "$as_ac_Header=\$ac_header_preproc" |
| 18936 | fi |
| 18937 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 18938 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18939 | echo "${ECHO_T}$ac_res" >&6; } |
| 18940 | |
| 18941 | fi |
| 18942 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18943 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18944 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18945 | _ACEOF |
| 18946 | |
| 18947 | fi |
| 18948 | |
| 18949 | done |
| 18950 | |
| 18951 | |
| 18952 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18953 | do |
| 18954 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18955 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18956 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18957 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18959 | else |
| 18960 | cat >conftest.$ac_ext <<_ACEOF |
| 18961 | /* confdefs.h. */ |
| 18962 | _ACEOF |
| 18963 | cat confdefs.h >>conftest.$ac_ext |
| 18964 | cat >>conftest.$ac_ext <<_ACEOF |
| 18965 | /* end confdefs.h. */ |
| 18966 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18967 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18968 | #define $ac_func innocuous_$ac_func |
| 18969 | |
| 18970 | /* System header to define __stub macros and hopefully few prototypes, |
| 18971 | which can conflict with char $ac_func (); below. |
| 18972 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18973 | <limits.h> exists even on freestanding compilers. */ |
| 18974 | |
| 18975 | #ifdef __STDC__ |
| 18976 | # include <limits.h> |
| 18977 | #else |
| 18978 | # include <assert.h> |
| 18979 | #endif |
| 18980 | |
| 18981 | #undef $ac_func |
| 18982 | |
| 18983 | /* Override any GCC internal prototype to avoid an error. |
| 18984 | Use char because int might match the return type of a GCC |
| 18985 | builtin and then its argument prototype would still apply. */ |
| 18986 | #ifdef __cplusplus |
| 18987 | extern "C" |
| 18988 | #endif |
| 18989 | char $ac_func (); |
| 18990 | /* The GNU C library defines this for functions which it implements |
| 18991 | to always fail with ENOSYS. Some functions are actually named |
| 18992 | something starting with __ and the normal name is an alias. */ |
| 18993 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18994 | choke me |
| 18995 | #endif |
| 18996 | |
| 18997 | int |
| 18998 | main () |
| 18999 | { |
| 19000 | return $ac_func (); |
| 19001 | ; |
| 19002 | return 0; |
| 19003 | } |
| 19004 | _ACEOF |
| 19005 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19006 | if { (ac_try="$ac_link" |
| 19007 | case "(($ac_try" in |
| 19008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19009 | *) ac_try_echo=$ac_try;; |
| 19010 | esac |
| 19011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19012 | (eval "$ac_link") 2>conftest.er1 |
| 19013 | ac_status=$? |
| 19014 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19015 | rm -f conftest.er1 |
| 19016 | cat conftest.err >&5 |
| 19017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19018 | (exit $ac_status); } && |
| 19019 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19020 | { (case "(($ac_try" in |
| 19021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19022 | *) ac_try_echo=$ac_try;; |
| 19023 | esac |
| 19024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19025 | (eval "$ac_try") 2>&5 |
| 19026 | ac_status=$? |
| 19027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19028 | (exit $ac_status); }; } && |
| 19029 | { ac_try='test -s conftest$ac_exeext' |
| 19030 | { (case "(($ac_try" in |
| 19031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19032 | *) ac_try_echo=$ac_try;; |
| 19033 | esac |
| 19034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19035 | (eval "$ac_try") 2>&5 |
| 19036 | ac_status=$? |
| 19037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19038 | (exit $ac_status); }; }; then |
| 19039 | eval "$as_ac_var=yes" |
| 19040 | else |
| 19041 | echo "$as_me: failed program was:" >&5 |
| 19042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19043 | |
| 19044 | eval "$as_ac_var=no" |
| 19045 | fi |
| 19046 | |
| 19047 | rm -f core conftest.err conftest.$ac_objext \ |
| 19048 | conftest$ac_exeext conftest.$ac_ext |
| 19049 | fi |
| 19050 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19051 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19052 | echo "${ECHO_T}$ac_res" >&6; } |
| 19053 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19054 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19055 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19056 | _ACEOF |
| 19057 | |
| 19058 | fi |
| 19059 | done |
| 19060 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19061 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 19062 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 19063 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 19064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19065 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19066 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19067 | ac_cv_func_mmap_fixed_mapped=no |
| 19068 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19069 | cat >conftest.$ac_ext <<_ACEOF |
| 19070 | /* confdefs.h. */ |
| 19071 | _ACEOF |
| 19072 | cat confdefs.h >>conftest.$ac_ext |
| 19073 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19074 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19075 | $ac_includes_default |
| 19076 | /* malloc might have been renamed as rpl_malloc. */ |
| 19077 | #undef malloc |
| 19078 | |
| 19079 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 19080 | Here is a matrix of mmap possibilities: |
| 19081 | mmap private not fixed |
| 19082 | mmap private fixed at somewhere currently unmapped |
| 19083 | mmap private fixed at somewhere already mapped |
| 19084 | mmap shared not fixed |
| 19085 | mmap shared fixed at somewhere currently unmapped |
| 19086 | mmap shared fixed at somewhere already mapped |
| 19087 | For private mappings, we should verify that changes cannot be read() |
| 19088 | back from the file, nor mmap's back from the file at a different |
| 19089 | address. (There have been systems where private was not correctly |
| 19090 | implemented like the infamous i386 svr4.0, and systems where the |
| 19091 | VM page cache was not coherent with the file system buffer cache |
| 19092 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 19093 | For shared mappings, we should conversely verify that changes get |
| 19094 | propagated back to all the places they're supposed to be. |
| 19095 | |
| 19096 | Grep wants private fixed already mapped. |
| 19097 | The main things grep needs to know about mmap are: |
| 19098 | * does it exist and is it safe to write into the mmap'd area |
| 19099 | * how to use it (BSD variants) */ |
| 19100 | |
| 19101 | #include <fcntl.h> |
| 19102 | #include <sys/mman.h> |
| 19103 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19104 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19105 | char *malloc (); |
| 19106 | #endif |
| 19107 | |
| 19108 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19109 | #if !HAVE_GETPAGESIZE |
| 19110 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 19111 | # if !HAVE_SYS_PARAM_H |
| 19112 | # define HAVE_SYS_PARAM_H 1 |
| 19113 | # endif |
| 19114 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19115 | # ifdef _SC_PAGESIZE |
| 19116 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 19117 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19118 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19119 | # include <sys/param.h> |
| 19120 | # ifdef EXEC_PAGESIZE |
| 19121 | # define getpagesize() EXEC_PAGESIZE |
| 19122 | # else /* no EXEC_PAGESIZE */ |
| 19123 | # ifdef NBPG |
| 19124 | # define getpagesize() NBPG * CLSIZE |
| 19125 | # ifndef CLSIZE |
| 19126 | # define CLSIZE 1 |
| 19127 | # endif /* no CLSIZE */ |
| 19128 | # else /* no NBPG */ |
| 19129 | # ifdef NBPC |
| 19130 | # define getpagesize() NBPC |
| 19131 | # else /* no NBPC */ |
| 19132 | # ifdef PAGESIZE |
| 19133 | # define getpagesize() PAGESIZE |
| 19134 | # endif /* PAGESIZE */ |
| 19135 | # endif /* no NBPC */ |
| 19136 | # endif /* no NBPG */ |
| 19137 | # endif /* no EXEC_PAGESIZE */ |
| 19138 | # else /* no HAVE_SYS_PARAM_H */ |
| 19139 | # define getpagesize() 8192 /* punt totally */ |
| 19140 | # endif /* no HAVE_SYS_PARAM_H */ |
| 19141 | # endif /* no _SC_PAGESIZE */ |
| 19142 | |
| 19143 | #endif /* no HAVE_GETPAGESIZE */ |
| 19144 | |
| 19145 | int |
| 19146 | main () |
| 19147 | { |
| 19148 | char *data, *data2, *data3; |
| 19149 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19150 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19151 | |
| 19152 | pagesize = getpagesize (); |
| 19153 | |
| 19154 | /* First, make a file with some known garbage in it. */ |
| 19155 | data = (char *) malloc (pagesize); |
| 19156 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19157 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19158 | for (i = 0; i < pagesize; ++i) |
| 19159 | *(data + i) = rand (); |
| 19160 | umask (0); |
| 19161 | fd = creat ("conftest.mmap", 0600); |
| 19162 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19163 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19164 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19165 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19166 | close (fd); |
| 19167 | |
| 19168 | /* Next, try to mmap the file at a fixed address which already has |
| 19169 | something else allocated at it. If we can, also make sure that |
| 19170 | we see the same garbage. */ |
| 19171 | fd = open ("conftest.mmap", O_RDWR); |
| 19172 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19173 | return 1; |
| 19174 | data2 = (char *) malloc (2 * pagesize); |
| 19175 | if (!data2) |
| 19176 | return 1; |
| 19177 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19178 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19179 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19180 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19181 | for (i = 0; i < pagesize; ++i) |
| 19182 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19183 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19184 | |
| 19185 | /* Finally, make sure that changes to the mapped area do not |
| 19186 | percolate back to the file as seen by read(). (This is a bug on |
| 19187 | some variants of i386 svr4.0.) */ |
| 19188 | for (i = 0; i < pagesize; ++i) |
| 19189 | *(data2 + i) = *(data2 + i) + 1; |
| 19190 | data3 = (char *) malloc (pagesize); |
| 19191 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19192 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19193 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19194 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19195 | for (i = 0; i < pagesize; ++i) |
| 19196 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19197 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19198 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19199 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19200 | } |
| 19201 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19202 | rm -f conftest$ac_exeext |
| 19203 | if { (ac_try="$ac_link" |
| 19204 | case "(($ac_try" in |
| 19205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19206 | *) ac_try_echo=$ac_try;; |
| 19207 | esac |
| 19208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19209 | (eval "$ac_link") 2>&5 |
| 19210 | ac_status=$? |
| 19211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19212 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19213 | { (case "(($ac_try" in |
| 19214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19215 | *) ac_try_echo=$ac_try;; |
| 19216 | esac |
| 19217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19218 | (eval "$ac_try") 2>&5 |
| 19219 | ac_status=$? |
| 19220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19221 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19222 | ac_cv_func_mmap_fixed_mapped=yes |
| 19223 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19224 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19225 | echo "$as_me: failed program was:" >&5 |
| 19226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19227 | |
| 19228 | ( exit $ac_status ) |
| 19229 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19230 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19231 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19232 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19233 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19234 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19235 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19236 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 19237 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19238 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 19239 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19240 | cat >>confdefs.h <<\_ACEOF |
| 19241 | #define HAVE_MMAP 1 |
| 19242 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19243 | |
| 19244 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19245 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19246 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19247 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 19248 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 19249 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 19250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19251 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19252 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19253 | ac_cpp='$CPP $CPPFLAGS' |
| 19254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19257 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19258 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19259 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19260 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19261 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19262 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19263 | /* confdefs.h. */ |
| 19264 | _ACEOF |
| 19265 | cat confdefs.h >>conftest.$ac_ext |
| 19266 | cat >>conftest.$ac_ext <<_ACEOF |
| 19267 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19268 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19269 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19270 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19271 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19272 | |
| 19273 | int |
| 19274 | main () |
| 19275 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19276 | |
| 19277 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19278 | fd = creat ("foo",0777); |
| 19279 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 19280 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19281 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19282 | ; |
| 19283 | return 0; |
| 19284 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19285 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19286 | rm -f conftest$ac_exeext |
| 19287 | if { (ac_try="$ac_link" |
| 19288 | case "(($ac_try" in |
| 19289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19290 | *) ac_try_echo=$ac_try;; |
| 19291 | esac |
| 19292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19293 | (eval "$ac_link") 2>&5 |
| 19294 | ac_status=$? |
| 19295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19296 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19297 | { (case "(($ac_try" in |
| 19298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19299 | *) ac_try_echo=$ac_try;; |
| 19300 | esac |
| 19301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19302 | (eval "$ac_try") 2>&5 |
| 19303 | ac_status=$? |
| 19304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19305 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19306 | ac_cv_func_mmap_file=yes |
| 19307 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19308 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19309 | echo "$as_me: failed program was:" >&5 |
| 19310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19311 | |
| 19312 | ( exit $ac_status ) |
| 19313 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19314 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19315 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19316 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19317 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19318 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19319 | ac_ext=c |
| 19320 | ac_cpp='$CPP $CPPFLAGS' |
| 19321 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19322 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19323 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19324 | |
| 19325 | |
| 19326 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19327 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 19328 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19329 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19330 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19331 | cat >>confdefs.h <<\_ACEOF |
| 19332 | #define HAVE_MMAP_FILE |
| 19333 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19334 | |
| 19335 | MMAP_FILE=yes |
| 19336 | |
| 19337 | fi |
| 19338 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19339 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 19340 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 19341 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 19342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19343 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 19344 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19345 | ac_cv_need_dev_zero_for_mmap=yes |
| 19346 | else |
| 19347 | ac_cv_need_dev_zero_for_mmap=no |
| 19348 | fi |
| 19349 | |
| 19350 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19351 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 19352 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19353 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 19354 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19355 | cat >>confdefs.h <<\_ACEOF |
| 19356 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 19357 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19358 | |
| 19359 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19360 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19361 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 19362 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19363 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 19364 | echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19365 | fi |
| 19366 | if test "$ac_cv_func_mmap_file" = "no" |
| 19367 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19368 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 19369 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19370 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 19371 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19372 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19373 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 19374 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
| 19375 | cat >conftest.$ac_ext <<_ACEOF |
| 19376 | /* confdefs.h. */ |
| 19377 | _ACEOF |
| 19378 | cat confdefs.h >>conftest.$ac_ext |
| 19379 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19380 | /* end confdefs.h. */ |
| 19381 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19382 | volatile unsigned long val = 1; |
| 19383 | __sync_synchronize(); |
| 19384 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 19385 | __sync_add_and_fetch(&val, 1); |
| 19386 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19387 | return 0; |
| 19388 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19389 | |
| 19390 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19391 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19392 | if { (ac_try="$ac_link" |
| 19393 | case "(($ac_try" in |
| 19394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19395 | *) ac_try_echo=$ac_try;; |
| 19396 | esac |
| 19397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19398 | (eval "$ac_link") 2>conftest.er1 |
| 19399 | ac_status=$? |
| 19400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19401 | rm -f conftest.er1 |
| 19402 | cat conftest.err >&5 |
| 19403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19404 | (exit $ac_status); } && |
| 19405 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19406 | { (case "(($ac_try" in |
| 19407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19408 | *) ac_try_echo=$ac_try;; |
| 19409 | esac |
| 19410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19411 | (eval "$ac_try") 2>&5 |
| 19412 | ac_status=$? |
| 19413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19414 | (exit $ac_status); }; } && |
| 19415 | { ac_try='test -s conftest$ac_exeext' |
| 19416 | { (case "(($ac_try" in |
| 19417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19418 | *) ac_try_echo=$ac_try;; |
| 19419 | esac |
| 19420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19421 | (eval "$ac_try") 2>&5 |
| 19422 | ac_status=$? |
| 19423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19424 | (exit $ac_status); }; }; then |
| 19425 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19426 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19427 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19428 | cat >>confdefs.h <<\_ACEOF |
| 19429 | #define LLVM_MULTITHREADED 1 |
| 19430 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19431 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19432 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19433 | echo "$as_me: failed program was:" >&5 |
| 19434 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19435 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19436 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19437 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19438 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19439 | cat >>confdefs.h <<\_ACEOF |
| 19440 | #define LLVM_MULTITHREADED 0 |
| 19441 | _ACEOF |
| 19442 | |
| 19443 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 19444 | echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19445 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19446 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19447 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19448 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19449 | |
| 19450 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19451 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19452 | if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19453 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 19454 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 19455 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 19456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19457 | else |
| 19458 | ac_ext=c |
| 19459 | ac_cpp='$CPP $CPPFLAGS' |
| 19460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19463 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19464 | cat >conftest.$ac_ext <<_ACEOF |
| 19465 | /* confdefs.h. */ |
| 19466 | _ACEOF |
| 19467 | cat confdefs.h >>conftest.$ac_ext |
| 19468 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19469 | /* end confdefs.h. */ |
| 19470 | #ifndef __x86_64__ |
| 19471 | error: Not x86-64 even if uname says so! |
| 19472 | #endif |
| 19473 | |
| 19474 | int |
| 19475 | main () |
| 19476 | { |
| 19477 | |
| 19478 | ; |
| 19479 | return 0; |
| 19480 | } |
| 19481 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19482 | rm -f conftest.$ac_objext |
| 19483 | if { (ac_try="$ac_compile" |
| 19484 | case "(($ac_try" in |
| 19485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19486 | *) ac_try_echo=$ac_try;; |
| 19487 | esac |
| 19488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19489 | (eval "$ac_compile") 2>conftest.er1 |
| 19490 | ac_status=$? |
| 19491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19492 | rm -f conftest.er1 |
| 19493 | cat conftest.err >&5 |
| 19494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19495 | (exit $ac_status); } && |
| 19496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19497 | { (case "(($ac_try" in |
| 19498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19499 | *) ac_try_echo=$ac_try;; |
| 19500 | esac |
| 19501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19502 | (eval "$ac_try") 2>&5 |
| 19503 | ac_status=$? |
| 19504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19505 | (exit $ac_status); }; } && |
| 19506 | { ac_try='test -s conftest.$ac_objext' |
| 19507 | { (case "(($ac_try" in |
| 19508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19509 | *) ac_try_echo=$ac_try;; |
| 19510 | esac |
| 19511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19512 | (eval "$ac_try") 2>&5 |
| 19513 | ac_status=$? |
| 19514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19515 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19516 | llvm_cv_linux_mixed=no |
| 19517 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19518 | echo "$as_me: failed program was:" >&5 |
| 19519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19520 | |
| 19521 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19522 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19523 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19525 | ac_ext=c |
| 19526 | ac_cpp='$CPP $CPPFLAGS' |
| 19527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19530 | |
| 19531 | |
| 19532 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19533 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 19534 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19535 | |
| 19536 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 19537 | llvm_cv_target_arch="x86" |
| 19538 | ARCH="x86" |
| 19539 | fi |
| 19540 | fi |
| 19541 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19542 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19543 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19544 | do |
| 19545 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19546 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19547 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19548 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19550 | else |
| 19551 | cat >conftest.$ac_ext <<_ACEOF |
| 19552 | /* confdefs.h. */ |
| 19553 | _ACEOF |
| 19554 | cat confdefs.h >>conftest.$ac_ext |
| 19555 | cat >>conftest.$ac_ext <<_ACEOF |
| 19556 | /* end confdefs.h. */ |
| 19557 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19558 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19559 | #define $ac_func innocuous_$ac_func |
| 19560 | |
| 19561 | /* System header to define __stub macros and hopefully few prototypes, |
| 19562 | which can conflict with char $ac_func (); below. |
| 19563 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19564 | <limits.h> exists even on freestanding compilers. */ |
| 19565 | |
| 19566 | #ifdef __STDC__ |
| 19567 | # include <limits.h> |
| 19568 | #else |
| 19569 | # include <assert.h> |
| 19570 | #endif |
| 19571 | |
| 19572 | #undef $ac_func |
| 19573 | |
| 19574 | /* Override any GCC internal prototype to avoid an error. |
| 19575 | Use char because int might match the return type of a GCC |
| 19576 | builtin and then its argument prototype would still apply. */ |
| 19577 | #ifdef __cplusplus |
| 19578 | extern "C" |
| 19579 | #endif |
| 19580 | char $ac_func (); |
| 19581 | /* The GNU C library defines this for functions which it implements |
| 19582 | to always fail with ENOSYS. Some functions are actually named |
| 19583 | something starting with __ and the normal name is an alias. */ |
| 19584 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19585 | choke me |
| 19586 | #endif |
| 19587 | |
| 19588 | int |
| 19589 | main () |
| 19590 | { |
| 19591 | return $ac_func (); |
| 19592 | ; |
| 19593 | return 0; |
| 19594 | } |
| 19595 | _ACEOF |
| 19596 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19597 | if { (ac_try="$ac_link" |
| 19598 | case "(($ac_try" in |
| 19599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19600 | *) ac_try_echo=$ac_try;; |
| 19601 | esac |
| 19602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19603 | (eval "$ac_link") 2>conftest.er1 |
| 19604 | ac_status=$? |
| 19605 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19606 | rm -f conftest.er1 |
| 19607 | cat conftest.err >&5 |
| 19608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19609 | (exit $ac_status); } && |
| 19610 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19611 | { (case "(($ac_try" in |
| 19612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19613 | *) ac_try_echo=$ac_try;; |
| 19614 | esac |
| 19615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19616 | (eval "$ac_try") 2>&5 |
| 19617 | ac_status=$? |
| 19618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19619 | (exit $ac_status); }; } && |
| 19620 | { ac_try='test -s conftest$ac_exeext' |
| 19621 | { (case "(($ac_try" in |
| 19622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19623 | *) ac_try_echo=$ac_try;; |
| 19624 | esac |
| 19625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19626 | (eval "$ac_try") 2>&5 |
| 19627 | ac_status=$? |
| 19628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19629 | (exit $ac_status); }; }; then |
| 19630 | eval "$as_ac_var=yes" |
| 19631 | else |
| 19632 | echo "$as_me: failed program was:" >&5 |
| 19633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19634 | |
| 19635 | eval "$as_ac_var=no" |
| 19636 | fi |
| 19637 | |
| 19638 | rm -f core conftest.err conftest.$ac_objext \ |
| 19639 | conftest$ac_exeext conftest.$ac_ext |
| 19640 | fi |
| 19641 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19642 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19643 | echo "${ECHO_T}$ac_res" >&6; } |
| 19644 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19645 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19646 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19647 | _ACEOF |
| 19648 | |
| 19649 | fi |
| 19650 | done |
| 19651 | |
| 19652 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19653 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 19654 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
| 19655 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 19656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19657 | else |
| 19658 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19659 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19660 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 19661 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 19662 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19663 | if test $? -eq 0 ; then |
| 19664 | llvm_cv_llvmgcc_sanity="yes" |
| 19665 | fi |
| 19666 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 19667 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19668 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19669 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 19670 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19671 | |
| 19672 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19673 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 19674 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19675 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19676 | LLVMCC1=$llvmcc1path |
| 19677 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19678 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19679 | LLVMCC1PLUS=$llvmcc1pluspath |
| 19680 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19681 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 19682 | LLVMGCCDIR=$llvmgccdir |
| 19683 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 19684 | llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'` |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 19685 | LLVMGCC_LANGS=$llvmgcclangs |
| 19686 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19687 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 19688 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 19689 | fi |
| 19690 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 19691 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 19692 | |
| 19693 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19694 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19695 | # information into substitutions that will end up in Makefile.config.in |
| 19696 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 19697 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 19698 | prefix="/usr/local" |
| 19699 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19700 | eval LLVM_PREFIX="${prefix}"; |
| 19701 | eval LLVM_BINDIR="${prefix}/bin"; |
| 19702 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 19703 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 19704 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 19705 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19706 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 19707 | eval LLVM_INFODIR="${prefix}/info"; |
| 19708 | eval LLVM_MANDIR="${prefix}/man"; |
| 19709 | LLVM_CONFIGTIME=`date` |
| 19710 | |
| 19711 | |
| 19712 | |
| 19713 | |
| 19714 | |
| 19715 | |
| 19716 | |
| 19717 | |
| 19718 | |
| 19719 | |
| 19720 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19721 | # Place the various directores into the config.h file as #defines so that we |
| 19722 | # can know about the installation paths within LLVM. |
| 19723 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19724 | cat >>confdefs.h <<_ACEOF |
| 19725 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 19726 | _ACEOF |
| 19727 | |
| 19728 | |
| 19729 | cat >>confdefs.h <<_ACEOF |
| 19730 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 19731 | _ACEOF |
| 19732 | |
| 19733 | |
| 19734 | cat >>confdefs.h <<_ACEOF |
| 19735 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 19736 | _ACEOF |
| 19737 | |
| 19738 | |
| 19739 | cat >>confdefs.h <<_ACEOF |
| 19740 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 19741 | _ACEOF |
| 19742 | |
| 19743 | |
| 19744 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 19745 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19746 | _ACEOF |
| 19747 | |
| 19748 | |
| 19749 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 19750 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19751 | _ACEOF |
| 19752 | |
| 19753 | |
| 19754 | cat >>confdefs.h <<_ACEOF |
| 19755 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 19756 | _ACEOF |
| 19757 | |
| 19758 | |
| 19759 | cat >>confdefs.h <<_ACEOF |
| 19760 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 19761 | _ACEOF |
| 19762 | |
| 19763 | |
| 19764 | cat >>confdefs.h <<_ACEOF |
| 19765 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 19766 | _ACEOF |
| 19767 | |
| 19768 | |
| 19769 | cat >>confdefs.h <<_ACEOF |
| 19770 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 19771 | _ACEOF |
| 19772 | |
| 19773 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 19774 | cat >>confdefs.h <<_ACEOF |
| 19775 | #define LLVM_HOSTTRIPLE "$host" |
| 19776 | _ACEOF |
| 19777 | |
| 19778 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 19779 | # Determine which bindings to build. |
| 19780 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 19781 | BINDINGS_TO_BUILD="" |
| 19782 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 19783 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 19784 | fi |
| 19785 | fi |
| 19786 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 19787 | |
| 19788 | |
| 19789 | # This isn't really configurey, but it avoids having to repeat the list in |
| 19790 | # other files. |
| 19791 | ALL_BINDINGS=ocaml |
| 19792 | |
| 19793 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 19794 | # Do any work necessary to ensure that bindings have what they need. |
| 19795 | binding_prereqs_failed=0 |
| 19796 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 19797 | case "$a_binding" in |
| 19798 | ocaml) |
| 19799 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19800 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 19801 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 19802 | binding_prereqs_failed=1 |
| 19803 | fi |
| 19804 | if test "x$OCAMLDEP" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19805 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 19806 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 19807 | binding_prereqs_failed=1 |
| 19808 | fi |
| 19809 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19810 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 19811 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 19812 | fi |
| 19813 | if test "x$with_ocaml_libdir" != xauto ; then |
| 19814 | OCAML_LIBDIR=$with_ocaml_libdir |
| 19815 | |
| 19816 | else |
| 19817 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 19818 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 19819 | then |
| 19820 | # ocaml stdlib is beneath our prefix; use stdlib |
| 19821 | OCAML_LIBDIR=$ocaml_stdlib |
| 19822 | |
| 19823 | else |
| 19824 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 19825 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 19826 | |
| 19827 | fi |
| 19828 | fi |
| 19829 | ;; |
| 19830 | esac |
| 19831 | done |
| 19832 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19833 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 19834 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 19835 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 19836 | fi |
| 19837 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19838 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 19839 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 19840 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 19841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19842 | else |
| 19843 | ac_ext=cpp |
| 19844 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19845 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19846 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19847 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19848 | |
| 19849 | oldcxxflags="$CXXFLAGS" |
| 19850 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19851 | cat >conftest.$ac_ext <<_ACEOF |
| 19852 | /* confdefs.h. */ |
| 19853 | _ACEOF |
| 19854 | cat confdefs.h >>conftest.$ac_ext |
| 19855 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19856 | /* end confdefs.h. */ |
| 19857 | |
| 19858 | int |
| 19859 | main () |
| 19860 | { |
| 19861 | |
| 19862 | ; |
| 19863 | return 0; |
| 19864 | } |
| 19865 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19866 | rm -f conftest.$ac_objext |
| 19867 | if { (ac_try="$ac_compile" |
| 19868 | case "(($ac_try" in |
| 19869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19870 | *) ac_try_echo=$ac_try;; |
| 19871 | esac |
| 19872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19873 | (eval "$ac_compile") 2>conftest.er1 |
| 19874 | ac_status=$? |
| 19875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19876 | rm -f conftest.er1 |
| 19877 | cat conftest.err >&5 |
| 19878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19879 | (exit $ac_status); } && |
| 19880 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19881 | { (case "(($ac_try" in |
| 19882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19883 | *) ac_try_echo=$ac_try;; |
| 19884 | esac |
| 19885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19886 | (eval "$ac_try") 2>&5 |
| 19887 | ac_status=$? |
| 19888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19889 | (exit $ac_status); }; } && |
| 19890 | { ac_try='test -s conftest.$ac_objext' |
| 19891 | { (case "(($ac_try" in |
| 19892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19893 | *) ac_try_echo=$ac_try;; |
| 19894 | esac |
| 19895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19896 | (eval "$ac_try") 2>&5 |
| 19897 | ac_status=$? |
| 19898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19899 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19900 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 19901 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19902 | echo "$as_me: failed program was:" >&5 |
| 19903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19904 | |
| 19905 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19906 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19907 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19909 | CXXFLAGS="$oldcxxflags" |
| 19910 | ac_ext=c |
| 19911 | ac_cpp='$CPP $CPPFLAGS' |
| 19912 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19913 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19914 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19915 | |
| 19916 | |
| 19917 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19918 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 19919 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19920 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 19921 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 19922 | |
| 19923 | else |
| 19924 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 19925 | |
| 19926 | fi |
| 19927 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 19928 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 19929 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 19930 | RPATH="-Wl,-R" |
| 19931 | else |
| 19932 | RPATH="-Wl,-rpath" |
| 19933 | fi |
| 19934 | |
| 19935 | |
| 19936 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 19937 | RDYNAMIC="-Wl,-export-dynamic" |
| 19938 | else |
| 19939 | RDYNAMIC="" |
| 19940 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 19941 | |
| 19942 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19943 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19944 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19945 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 19946 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 19947 | |
| 19948 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 19949 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 19950 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 19951 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 19952 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 19953 | |
Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 19954 | ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19955 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19956 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19957 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19958 | |
| 19959 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 19960 | ac_config_files="$ac_config_files llvm.spec" |
| 19961 | |
| 19962 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19963 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 19964 | |
| 19965 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 19966 | ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td" |
| 19967 | |
| 19968 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19969 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 19970 | |
| 19971 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19972 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 19973 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19974 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19975 | |
| 19976 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19977 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19978 | |
| 19979 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19980 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19981 | |
| 19982 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19983 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19984 | |
| 19985 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 19986 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 19987 | |
| 19988 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19989 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19990 | |
| 19991 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19992 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19993 | |
| 19994 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 19995 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 19996 | |
| 19997 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19998 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19999 | |
| 20000 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20001 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20002 | |
| 20003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20004 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20005 | |
| 20006 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 20007 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 20008 | |
| 20009 | |
| 20010 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 20011 | |
| 20012 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20013 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20014 | cat >confcache <<\_ACEOF |
| 20015 | # This file is a shell script that caches the results of configure |
| 20016 | # tests run on this system so they can be shared between configure |
| 20017 | # scripts and configure runs, see configure's option --config-cache. |
| 20018 | # It is not useful on other systems. If it contains results you don't |
| 20019 | # want to keep, you may remove or edit it. |
| 20020 | # |
| 20021 | # config.status only pays attention to the cache file if you give it |
| 20022 | # the --recheck option to rerun configure. |
| 20023 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20024 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20025 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20026 | # following values. |
| 20027 | |
| 20028 | _ACEOF |
| 20029 | |
| 20030 | # The following way of writing the cache mishandles newlines in values, |
| 20031 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20032 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20033 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20034 | # and sets the high bit in the cache file unless we assign to the vars. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20035 | ( |
| 20036 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 20037 | eval ac_val=\$$ac_var |
| 20038 | case $ac_val in #( |
| 20039 | *${as_nl}*) |
| 20040 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20041 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 20042 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20043 | esac |
| 20044 | case $ac_var in #( |
| 20045 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20046 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20047 | esac ;; |
| 20048 | esac |
| 20049 | done |
| 20050 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20051 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20052 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 20053 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20054 | # `set' does not quote correctly, so add quotes (double-quote |
| 20055 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20056 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20057 | "s/'/'\\\\''/g; |
| 20058 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20059 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20060 | *) |
| 20061 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20062 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20063 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20064 | esac | |
| 20065 | sort |
| 20066 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20067 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20068 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20069 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20070 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20071 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20072 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20073 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20074 | :end' >>confcache |
| 20075 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 20076 | if test -w "$cache_file"; then |
| 20077 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20078 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 20079 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20080 | cat confcache >$cache_file |
| 20081 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20082 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 20083 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20084 | fi |
| 20085 | fi |
| 20086 | rm -f confcache |
| 20087 | |
| 20088 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20089 | # Let make expand exec_prefix. |
| 20090 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 20091 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20092 | DEFS=-DHAVE_CONFIG_H |
| 20093 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20094 | ac_libobjs= |
| 20095 | ac_ltlibobjs= |
| 20096 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20097 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20098 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20099 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20100 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 20101 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20102 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 20103 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20104 | done |
| 20105 | LIBOBJS=$ac_libobjs |
| 20106 | |
| 20107 | LTLIBOBJS=$ac_ltlibobjs |
| 20108 | |
| 20109 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20110 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20111 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20112 | Usually this means the macro was only invoked conditionally." >&5 |
| 20113 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20114 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20115 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20116 | fi |
| 20117 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20118 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20119 | Usually this means the macro was only invoked conditionally." >&5 |
| 20120 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20121 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20122 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20123 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20124 | |
| 20125 | : ${CONFIG_STATUS=./config.status} |
| 20126 | ac_clean_files_save=$ac_clean_files |
| 20127 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20128 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 20129 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20130 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20131 | #! $SHELL |
| 20132 | # Generated by $as_me. |
| 20133 | # Run this file to recreate the current configuration. |
| 20134 | # Compiler output produced by configure, useful for debugging |
| 20135 | # configure, is in config.log if it exists. |
| 20136 | |
| 20137 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20138 | ac_cs_recheck=false |
| 20139 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20140 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20141 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20142 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20143 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20144 | ## --------------------- ## |
| 20145 | ## M4sh Initialization. ## |
| 20146 | ## --------------------- ## |
| 20147 | |
| 20148 | # Be Bourne compatible |
| 20149 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20150 | emulate sh |
| 20151 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20152 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20153 | # is contrary to our usage. Disable this feature. |
| 20154 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20155 | setopt NO_GLOB_SUBST |
| 20156 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20157 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20158 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20159 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 20160 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20161 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20162 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20163 | # PATH needs CR |
| 20164 | # Avoid depending upon Character Ranges. |
| 20165 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20166 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20167 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20168 | as_cr_digits='0123456789' |
| 20169 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20170 | |
| 20171 | # The user is always right. |
| 20172 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20173 | echo "#! /bin/sh" >conf$$.sh |
| 20174 | echo "exit 0" >>conf$$.sh |
| 20175 | chmod +x conf$$.sh |
| 20176 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 20177 | PATH_SEPARATOR=';' |
| 20178 | else |
| 20179 | PATH_SEPARATOR=: |
| 20180 | fi |
| 20181 | rm -f conf$$.sh |
| 20182 | fi |
| 20183 | |
| 20184 | # Support unset when possible. |
| 20185 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 20186 | as_unset=unset |
| 20187 | else |
| 20188 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20189 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20190 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20191 | |
| 20192 | # IFS |
| 20193 | # We need space, tab and new line, in precisely that order. Quoting is |
| 20194 | # there to prevent editors from complaining about space-tab. |
| 20195 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 20196 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20197 | as_nl=' |
| 20198 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20199 | IFS=" "" $as_nl" |
| 20200 | |
| 20201 | # Find who we are. Look in the path if we contain no directory separator. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20202 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20203 | *[\\/]* ) as_myself=$0 ;; |
| 20204 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20205 | for as_dir in $PATH |
| 20206 | do |
| 20207 | IFS=$as_save_IFS |
| 20208 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20209 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20210 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20211 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20212 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20213 | ;; |
| 20214 | esac |
| 20215 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20216 | # in which case we are not to be found in the path. |
| 20217 | if test "x$as_myself" = x; then |
| 20218 | as_myself=$0 |
| 20219 | fi |
| 20220 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20221 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 20222 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20223 | fi |
| 20224 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20225 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20226 | for as_var in ENV MAIL MAILPATH |
| 20227 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20228 | done |
| 20229 | PS1='$ ' |
| 20230 | PS2='> ' |
| 20231 | PS4='+ ' |
| 20232 | |
| 20233 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20234 | for as_var in \ |
| 20235 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20236 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20237 | LC_TELEPHONE LC_TIME |
| 20238 | do |
| 20239 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 20240 | eval $as_var=C; export $as_var |
| 20241 | else |
| 20242 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20243 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20244 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20245 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20246 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20247 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20248 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20249 | as_expr=expr |
| 20250 | else |
| 20251 | as_expr=false |
| 20252 | fi |
| 20253 | |
| 20254 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 20255 | as_basename=basename |
| 20256 | else |
| 20257 | as_basename=false |
| 20258 | fi |
| 20259 | |
| 20260 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20261 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20262 | as_me=`$as_basename -- "$0" || |
| 20263 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20264 | X"$0" : 'X\(//\)$' \| \ |
| 20265 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20266 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20267 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 20268 | s//\1/ |
| 20269 | q |
| 20270 | } |
| 20271 | /^X\/\(\/\/\)$/{ |
| 20272 | s//\1/ |
| 20273 | q |
| 20274 | } |
| 20275 | /^X\/\(\/\).*/{ |
| 20276 | s//\1/ |
| 20277 | q |
| 20278 | } |
| 20279 | s/.*/./; q'` |
| 20280 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20281 | # CDPATH. |
| 20282 | $as_unset CDPATH |
| 20283 | |
| 20284 | |
| 20285 | |
| 20286 | as_lineno_1=$LINENO |
| 20287 | as_lineno_2=$LINENO |
| 20288 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20289 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 20290 | |
| 20291 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20292 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20293 | # line-number line after each line using $LINENO; the second 'sed' |
| 20294 | # does the real work. The second script uses 'N' to pair each |
| 20295 | # line-number line with the line containing $LINENO, and appends |
| 20296 | # trailing '-' during substitution so that $LINENO is not a special |
| 20297 | # case at line end. |
| 20298 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20299 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 20300 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 20301 | sed -n ' |
| 20302 | p |
| 20303 | /[$]LINENO/= |
| 20304 | ' <$as_myself | |
| 20305 | sed ' |
| 20306 | s/[$]LINENO.*/&-/ |
| 20307 | t lineno |
| 20308 | b |
| 20309 | :lineno |
| 20310 | N |
| 20311 | :loop |
| 20312 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 20313 | t loop |
| 20314 | s/-\n.*// |
| 20315 | ' >$as_me.lineno && |
| 20316 | chmod +x "$as_me.lineno" || |
| 20317 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 20318 | { (exit 1); exit 1; }; } |
| 20319 | |
| 20320 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20321 | # (the dirname of $[0] is not the place where we might find the |
| 20322 | # original and so on. Autoconf is especially sensitive to this). |
| 20323 | . "./$as_me.lineno" |
| 20324 | # Exit status is that of the last command. |
| 20325 | exit |
| 20326 | } |
| 20327 | |
| 20328 | |
| 20329 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 20330 | as_dirname=dirname |
| 20331 | else |
| 20332 | as_dirname=false |
| 20333 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20334 | |
| 20335 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20336 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20337 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20338 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20339 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20340 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20341 | esac;; |
| 20342 | *) |
| 20343 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20344 | esac |
| 20345 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20346 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20347 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20348 | as_expr=expr |
| 20349 | else |
| 20350 | as_expr=false |
| 20351 | fi |
| 20352 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20353 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20354 | if test -d conf$$.dir; then |
| 20355 | rm -f conf$$.dir/conf$$.file |
| 20356 | else |
| 20357 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20358 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20359 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20360 | echo >conf$$.file |
| 20361 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20362 | as_ln_s='ln -s' |
| 20363 | # ... but there are two gotchas: |
| 20364 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 20365 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 20366 | # In both cases, we have to default to `cp -p'. |
| 20367 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20368 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20369 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20370 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20371 | else |
| 20372 | as_ln_s='cp -p' |
| 20373 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20374 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 20375 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20376 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20377 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20378 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20379 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20380 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20381 | as_mkdir_p=false |
| 20382 | fi |
| 20383 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20384 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 20385 | # systems may use methods other than mode bits to determine executability. |
| 20386 | cat >conf$$.file <<_ASEOF |
| 20387 | #! /bin/sh |
| 20388 | exit 0 |
| 20389 | _ASEOF |
| 20390 | chmod +x conf$$.file |
| 20391 | if test -x conf$$.file >/dev/null 2>&1; then |
| 20392 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20393 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20394 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20395 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20396 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20397 | |
| 20398 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20399 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20400 | |
| 20401 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20402 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20403 | |
| 20404 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20405 | exec 6>&1 |
| 20406 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20407 | # Save the log message, to keep $[0] and so on meaningful, and to |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20408 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20409 | # values after options handling. |
| 20410 | ac_log=" |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 20411 | This file was extended by llvm $as_me 2.7svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20412 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20413 | |
| 20414 | CONFIG_FILES = $CONFIG_FILES |
| 20415 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20416 | CONFIG_LINKS = $CONFIG_LINKS |
| 20417 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20418 | $ $0 $@ |
| 20419 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20420 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 20421 | " |
| 20422 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20423 | _ACEOF |
| 20424 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20425 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20426 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20427 | config_files="$ac_config_files" |
| 20428 | config_headers="$ac_config_headers" |
| 20429 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20430 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20431 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20432 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20433 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20434 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20435 | \`$as_me' instantiates files from templates according to the |
| 20436 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20437 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20438 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20439 | |
| 20440 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20441 | -V, --version print version number, then exit |
| 20442 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20443 | -d, --debug don't remove temporary files |
| 20444 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20445 | --file=FILE[:TEMPLATE] |
| 20446 | instantiate the configuration file FILE |
| 20447 | --header=FILE[:TEMPLATE] |
| 20448 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20449 | |
| 20450 | Configuration files: |
| 20451 | $config_files |
| 20452 | |
| 20453 | Configuration headers: |
| 20454 | $config_headers |
| 20455 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20456 | Configuration commands: |
| 20457 | $config_commands |
| 20458 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20459 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20460 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20461 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20462 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20463 | ac_cs_version="\\ |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 20464 | llvm config.status 2.7svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20465 | configured by $0, generated by GNU Autoconf 2.60, |
| 20466 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20467 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20468 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20469 | This config.status script is free software; the Free Software Foundation |
| 20470 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20471 | |
| 20472 | ac_pwd='$ac_pwd' |
| 20473 | srcdir='$srcdir' |
| 20474 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20475 | _ACEOF |
| 20476 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20477 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20478 | # If no file are specified by the user, then we need to provide default |
| 20479 | # value. By we need to know if files were specified by the user. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20480 | ac_need_defaults=: |
| 20481 | while test $# != 0 |
| 20482 | do |
| 20483 | case $1 in |
| 20484 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20485 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 20486 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20487 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20488 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20489 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20490 | ac_option=$1 |
| 20491 | ac_optarg=$2 |
| 20492 | ac_shift=shift |
| 20493 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20494 | esac |
| 20495 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20496 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20497 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20498 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20499 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20500 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20501 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20502 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20503 | debug=: ;; |
| 20504 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20505 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20506 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20507 | ac_need_defaults=false;; |
| 20508 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20509 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20510 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20511 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20512 | --he | --h) |
| 20513 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20514 | { echo "$as_me: error: ambiguous option: $1 |
| 20515 | Try \`$0 --help' for more information." >&2 |
| 20516 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20517 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20518 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20519 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20520 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20521 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20522 | |
| 20523 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20524 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 20525 | Try \`$0 --help' for more information." >&2 |
| 20526 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20527 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20528 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20529 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20530 | |
| 20531 | esac |
| 20532 | shift |
| 20533 | done |
| 20534 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20535 | ac_configure_extra_args= |
| 20536 | |
| 20537 | if $ac_cs_silent; then |
| 20538 | exec 6>/dev/null |
| 20539 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20540 | fi |
| 20541 | |
| 20542 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20543 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20544 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20545 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20546 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20547 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20548 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20549 | fi |
| 20550 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20551 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20552 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20553 | exec 5>>config.log |
| 20554 | { |
| 20555 | echo |
| 20556 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20557 | ## Running $as_me. ## |
| 20558 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20559 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20560 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20561 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20562 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20563 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20564 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20565 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20566 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 20567 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20568 | |
| 20569 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20570 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20571 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20572 | |
| 20573 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20574 | for ac_config_target in $ac_config_targets |
| 20575 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20576 | case $ac_config_target in |
| 20577 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 20578 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 20579 | "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 20580 | "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 20581 | "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; |
Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 20582 | "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20583 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 20584 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20585 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 20586 | "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20587 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 20588 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 20589 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 20590 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 20591 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 20592 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 20593 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20594 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 20595 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 20596 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20597 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 20598 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 20599 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 20600 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 20601 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20602 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20603 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 20604 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 20605 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20606 | esac |
| 20607 | done |
| 20608 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20609 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20610 | # If the user did not use the arguments to specify the items to instantiate, |
| 20611 | # then the envvar interface is used. Set only those that are not. |
| 20612 | # We use the long form for the default assignment because of an extremely |
| 20613 | # bizarre bug on SunOS 4.1.3. |
| 20614 | if $ac_need_defaults; then |
| 20615 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20616 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20617 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20618 | fi |
| 20619 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20620 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20621 | # simply because there is no reason against having it here, and in addition, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20622 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20623 | # Hook for its removal unless debugging. |
| 20624 | # Note that there is a small window in which the directory will not be cleaned: |
| 20625 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20626 | $debug || |
| 20627 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20628 | tmp= |
| 20629 | trap 'exit_status=$? |
| 20630 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 20631 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20632 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20633 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20634 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20635 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20636 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20637 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20638 | test -n "$tmp" && test -d "$tmp" |
| 20639 | } || |
| 20640 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20641 | tmp=./conf$$-$RANDOM |
| 20642 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20643 | } || |
| 20644 | { |
| 20645 | echo "$me: cannot create a temporary directory in ." >&2 |
| 20646 | { (exit 1); exit 1; } |
| 20647 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20648 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20649 | # |
| 20650 | # Set up the sed scripts for CONFIG_FILES section. |
| 20651 | # |
| 20652 | |
| 20653 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 20654 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20655 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20656 | |
| 20657 | _ACEOF |
| 20658 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20659 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20660 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20661 | ac_delim='%!_!# ' |
| 20662 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20663 | cat >conf$$subs.sed <<_ACEOF |
| 20664 | SHELL!$SHELL$ac_delim |
| 20665 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 20666 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 20667 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 20668 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 20669 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 20670 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 20671 | exec_prefix!$exec_prefix$ac_delim |
| 20672 | prefix!$prefix$ac_delim |
| 20673 | program_transform_name!$program_transform_name$ac_delim |
| 20674 | bindir!$bindir$ac_delim |
| 20675 | sbindir!$sbindir$ac_delim |
| 20676 | libexecdir!$libexecdir$ac_delim |
| 20677 | datarootdir!$datarootdir$ac_delim |
| 20678 | datadir!$datadir$ac_delim |
| 20679 | sysconfdir!$sysconfdir$ac_delim |
| 20680 | sharedstatedir!$sharedstatedir$ac_delim |
| 20681 | localstatedir!$localstatedir$ac_delim |
| 20682 | includedir!$includedir$ac_delim |
| 20683 | oldincludedir!$oldincludedir$ac_delim |
| 20684 | docdir!$docdir$ac_delim |
| 20685 | infodir!$infodir$ac_delim |
| 20686 | htmldir!$htmldir$ac_delim |
| 20687 | dvidir!$dvidir$ac_delim |
| 20688 | pdfdir!$pdfdir$ac_delim |
| 20689 | psdir!$psdir$ac_delim |
| 20690 | libdir!$libdir$ac_delim |
| 20691 | localedir!$localedir$ac_delim |
| 20692 | mandir!$mandir$ac_delim |
| 20693 | DEFS!$DEFS$ac_delim |
| 20694 | ECHO_C!$ECHO_C$ac_delim |
| 20695 | ECHO_N!$ECHO_N$ac_delim |
| 20696 | ECHO_T!$ECHO_T$ac_delim |
| 20697 | LIBS!$LIBS$ac_delim |
| 20698 | build_alias!$build_alias$ac_delim |
| 20699 | host_alias!$host_alias$ac_delim |
| 20700 | target_alias!$target_alias$ac_delim |
| 20701 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 20702 | subdirs!$subdirs$ac_delim |
| 20703 | build!$build$ac_delim |
| 20704 | build_cpu!$build_cpu$ac_delim |
| 20705 | build_vendor!$build_vendor$ac_delim |
| 20706 | build_os!$build_os$ac_delim |
| 20707 | host!$host$ac_delim |
| 20708 | host_cpu!$host_cpu$ac_delim |
| 20709 | host_vendor!$host_vendor$ac_delim |
| 20710 | host_os!$host_os$ac_delim |
| 20711 | target!$target$ac_delim |
| 20712 | target_cpu!$target_cpu$ac_delim |
| 20713 | target_vendor!$target_vendor$ac_delim |
| 20714 | target_os!$target_os$ac_delim |
| 20715 | OS!$OS$ac_delim |
| 20716 | HOST_OS!$HOST_OS$ac_delim |
| 20717 | TARGET_OS!$TARGET_OS$ac_delim |
| 20718 | LINKALL!$LINKALL$ac_delim |
| 20719 | NOLINKALL!$NOLINKALL$ac_delim |
| 20720 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 20721 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 20722 | ARCH!$ARCH$ac_delim |
| 20723 | ENDIAN!$ENDIAN$ac_delim |
| 20724 | CC!$CC$ac_delim |
| 20725 | CFLAGS!$CFLAGS$ac_delim |
| 20726 | LDFLAGS!$LDFLAGS$ac_delim |
| 20727 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 20728 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 20729 | EXEEXT!$EXEEXT$ac_delim |
| 20730 | OBJEXT!$OBJEXT$ac_delim |
| 20731 | CPP!$CPP$ac_delim |
| 20732 | GREP!$GREP$ac_delim |
| 20733 | EGREP!$EGREP$ac_delim |
| 20734 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 20735 | BUILD_CC!$BUILD_CC$ac_delim |
| 20736 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 20737 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 20738 | CVSBUILD!$CVSBUILD$ac_delim |
| 20739 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 20740 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 20741 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 20742 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 20743 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 20744 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 20745 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 20746 | JIT!$JIT$ac_delim |
| 20747 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 20748 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 20749 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
| 20750 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
| 20751 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 20752 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 20753 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
| 20754 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
| 20755 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
| 20756 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 20757 | CLANGPATH!$CLANGPATH$ac_delim |
| 20758 | CLANGXXPATH!$CLANGXXPATH$ac_delim |
| 20759 | ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim |
Jeffrey Yasskin | 407fbdd | 2010-02-23 20:53:37 +0000 | [diff] [blame] | 20760 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20761 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20762 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20763 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20764 | break |
| 20765 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20766 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 20767 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 20768 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20769 | else |
| 20770 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20771 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20772 | done |
| 20773 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20774 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 20775 | if test -n "$ac_eof"; then |
| 20776 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 20777 | ac_eof=`expr $ac_eof + 1` |
| 20778 | fi |
| 20779 | |
| 20780 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20781 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 20782 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20783 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20784 | sed ' |
| 20785 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 20786 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 20787 | :n |
| 20788 | t n |
| 20789 | s/'"$ac_delim"'$/,g/; t |
| 20790 | s/$/\\/; p |
| 20791 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 20792 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 20793 | rm -f conf$$subs.sed |
| 20794 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20795 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20796 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20797 | |
| 20798 | |
| 20799 | ac_delim='%!_!# ' |
| 20800 | for ac_last_try in false false false false false :; do |
| 20801 | cat >conf$$subs.sed <<_ACEOF |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 20802 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 20803 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
| 20804 | ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20805 | ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim |
| 20806 | CXX!$CXX$ac_delim |
| 20807 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 20808 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 20809 | NM!$NM$ac_delim |
| 20810 | ifGNUmake!$ifGNUmake$ac_delim |
| 20811 | LN_S!$LN_S$ac_delim |
| 20812 | CMP!$CMP$ac_delim |
| 20813 | CP!$CP$ac_delim |
| 20814 | DATE!$DATE$ac_delim |
| 20815 | FIND!$FIND$ac_delim |
| 20816 | MKDIR!$MKDIR$ac_delim |
| 20817 | MV!$MV$ac_delim |
| 20818 | RANLIB!$RANLIB$ac_delim |
| 20819 | AR!$AR$ac_delim |
| 20820 | RM!$RM$ac_delim |
| 20821 | SED!$SED$ac_delim |
| 20822 | TAR!$TAR$ac_delim |
| 20823 | BINPWD!$BINPWD$ac_delim |
| 20824 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 20825 | DOT!$DOT$ac_delim |
| 20826 | FDP!$FDP$ac_delim |
| 20827 | NEATO!$NEATO$ac_delim |
| 20828 | TWOPI!$TWOPI$ac_delim |
| 20829 | CIRCO!$CIRCO$ac_delim |
| 20830 | GV!$GV$ac_delim |
| 20831 | DOTTY!$DOTTY$ac_delim |
| 20832 | PERL!$PERL$ac_delim |
| 20833 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 20834 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 20835 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 20836 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 20837 | BZIP2!$BZIP2$ac_delim |
| 20838 | DOXYGEN!$DOXYGEN$ac_delim |
| 20839 | GROFF!$GROFF$ac_delim |
| 20840 | GZIP!$GZIP$ac_delim |
| 20841 | POD2HTML!$POD2HTML$ac_delim |
| 20842 | POD2MAN!$POD2MAN$ac_delim |
| 20843 | RUNTEST!$RUNTEST$ac_delim |
| 20844 | TCLSH!$TCLSH$ac_delim |
| 20845 | ZIP!$ZIP$ac_delim |
| 20846 | OCAMLC!$OCAMLC$ac_delim |
| 20847 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 20848 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 20849 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 20850 | GAS!$GAS$ac_delim |
| 20851 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 20852 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 20853 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 20854 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 20855 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 20856 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 20857 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
| 20858 | LLVMGCC!$LLVMGCC$ac_delim |
| 20859 | LLVMGXX!$LLVMGXX$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 20860 | LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20861 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 20862 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
| 20863 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 20864 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 20865 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 20866 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 20867 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 20868 | LLVMCC1!$LLVMCC1$ac_delim |
| 20869 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 20870 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20871 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
| 20872 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 20873 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 20874 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 20875 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 20876 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 20877 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 20878 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 20879 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 20880 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 20881 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 20882 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 20883 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 20884 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
| 20885 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 20886 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 20887 | RPATH!$RPATH$ac_delim |
| 20888 | RDYNAMIC!$RDYNAMIC$ac_delim |
| 20889 | LIBOBJS!$LIBOBJS$ac_delim |
| 20890 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20891 | _ACEOF |
| 20892 | |
Jeffrey Yasskin | 407fbdd | 2010-02-23 20:53:37 +0000 | [diff] [blame] | 20893 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20894 | break |
| 20895 | elif $ac_last_try; then |
| 20896 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 20897 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 20898 | { (exit 1); exit 1; }; } |
| 20899 | else |
| 20900 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 20901 | fi |
| 20902 | done |
| 20903 | |
| 20904 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 20905 | if test -n "$ac_eof"; then |
| 20906 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 20907 | ac_eof=`expr $ac_eof + 1` |
| 20908 | fi |
| 20909 | |
| 20910 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20911 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 20912 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 20913 | _ACEOF |
| 20914 | sed ' |
| 20915 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 20916 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 20917 | :n |
| 20918 | t n |
| 20919 | s/'"$ac_delim"'$/,g/; t |
| 20920 | s/$/\\/; p |
| 20921 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 20922 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 20923 | rm -f conf$$subs.sed |
| 20924 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20925 | :end |
| 20926 | s/|#_!!_#|//g |
| 20927 | CEOF$ac_eof |
| 20928 | _ACEOF |
| 20929 | |
| 20930 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20931 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 20932 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 20933 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20934 | # (actually we leave an empty line to preserve line numbers). |
| 20935 | if test "x$srcdir" = x.; then |
| 20936 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 20937 | s/:*\$(srcdir):*/:/ |
| 20938 | s/:*\${srcdir}:*/:/ |
| 20939 | s/:*@srcdir@:*/:/ |
| 20940 | s/^\([^=]*=[ ]*\):*/\1/ |
| 20941 | s/:*$// |
| 20942 | s/^[^=]*=[ ]*$// |
| 20943 | }' |
| 20944 | fi |
| 20945 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20946 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20947 | fi # test -n "$CONFIG_FILES" |
| 20948 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20949 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20950 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20951 | do |
| 20952 | case $ac_tag in |
| 20953 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 20954 | esac |
| 20955 | case $ac_mode$ac_tag in |
| 20956 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20957 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 20958 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 20959 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20960 | :[FH]-) ac_tag=-:-;; |
| 20961 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 20962 | esac |
| 20963 | ac_save_IFS=$IFS |
| 20964 | IFS=: |
| 20965 | set x $ac_tag |
| 20966 | IFS=$ac_save_IFS |
| 20967 | shift |
| 20968 | ac_file=$1 |
| 20969 | shift |
| 20970 | |
| 20971 | case $ac_mode in |
| 20972 | :L) ac_source=$1;; |
| 20973 | :[FH]) |
| 20974 | ac_file_inputs= |
| 20975 | for ac_f |
| 20976 | do |
| 20977 | case $ac_f in |
| 20978 | -) ac_f="$tmp/stdin";; |
| 20979 | *) # Look for the file first in the build tree, then in the source tree |
| 20980 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 20981 | # because $ac_f cannot contain `:'. |
| 20982 | test -f "$ac_f" || |
| 20983 | case $ac_f in |
| 20984 | [\\/$]*) false;; |
| 20985 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 20986 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20987 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 20988 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 20989 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20990 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20991 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20992 | done |
| 20993 | |
| 20994 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 20995 | # use $as_me), people would be surprised to read: |
| 20996 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20997 | configure_input="Generated from "`IFS=: |
| 20998 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20999 | if test x"$ac_file" != x-; then |
| 21000 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21001 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21002 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21003 | fi |
| 21004 | |
| 21005 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21006 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21007 | esac |
| 21008 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21009 | esac |
| 21010 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21011 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21012 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21013 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21014 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21015 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21016 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21017 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21018 | s//\1/ |
| 21019 | q |
| 21020 | } |
| 21021 | /^X\(\/\/\)[^/].*/{ |
| 21022 | s//\1/ |
| 21023 | q |
| 21024 | } |
| 21025 | /^X\(\/\/\)$/{ |
| 21026 | s//\1/ |
| 21027 | q |
| 21028 | } |
| 21029 | /^X\(\/\).*/{ |
| 21030 | s//\1/ |
| 21031 | q |
| 21032 | } |
| 21033 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21034 | { as_dir="$ac_dir" |
| 21035 | case $as_dir in #( |
| 21036 | -*) as_dir=./$as_dir;; |
| 21037 | esac |
| 21038 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 21039 | as_dirs= |
| 21040 | while :; do |
| 21041 | case $as_dir in #( |
| 21042 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21043 | *) as_qdir=$as_dir;; |
| 21044 | esac |
| 21045 | as_dirs="'$as_qdir' $as_dirs" |
| 21046 | as_dir=`$as_dirname -- "$as_dir" || |
| 21047 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21048 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21049 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21050 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 21051 | echo X"$as_dir" | |
| 21052 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21053 | s//\1/ |
| 21054 | q |
| 21055 | } |
| 21056 | /^X\(\/\/\)[^/].*/{ |
| 21057 | s//\1/ |
| 21058 | q |
| 21059 | } |
| 21060 | /^X\(\/\/\)$/{ |
| 21061 | s//\1/ |
| 21062 | q |
| 21063 | } |
| 21064 | /^X\(\/\).*/{ |
| 21065 | s//\1/ |
| 21066 | q |
| 21067 | } |
| 21068 | s/.*/./; q'` |
| 21069 | test -d "$as_dir" && break |
| 21070 | done |
| 21071 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21072 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21073 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 21074 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21075 | ac_builddir=. |
| 21076 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21077 | case "$ac_dir" in |
| 21078 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21079 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21080 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21081 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21082 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21083 | case $ac_top_builddir_sub in |
| 21084 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21085 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21086 | esac ;; |
| 21087 | esac |
| 21088 | ac_abs_top_builddir=$ac_pwd |
| 21089 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21090 | # for backward compatibility: |
| 21091 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21092 | |
| 21093 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21094 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21095 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21096 | ac_top_srcdir=$ac_top_builddir_sub |
| 21097 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21098 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21099 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21100 | ac_top_srcdir=$srcdir |
| 21101 | ac_abs_top_srcdir=$srcdir ;; |
| 21102 | *) # Relative name. |
| 21103 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21104 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21105 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21106 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21107 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21108 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21109 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21110 | case $ac_mode in |
| 21111 | :F) |
| 21112 | # |
| 21113 | # CONFIG_FILE |
| 21114 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21115 | |
| 21116 | case $INSTALL in |
| 21117 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21118 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21119 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21120 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21121 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21122 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21123 | # If the template does not know about datarootdir, expand it. |
| 21124 | # FIXME: This hack should be removed a few years after 2.60. |
| 21125 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21126 | |
| 21127 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21128 | p |
| 21129 | q |
| 21130 | } |
| 21131 | /@datadir@/p |
| 21132 | /@docdir@/p |
| 21133 | /@infodir@/p |
| 21134 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21135 | /@mandir@/p |
| 21136 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21137 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 21138 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21139 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 21140 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21141 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21142 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21143 | ac_datarootdir_hack=' |
| 21144 | s&@datadir@&$datadir&g |
| 21145 | s&@docdir@&$docdir&g |
| 21146 | s&@infodir@&$infodir&g |
| 21147 | s&@localedir@&$localedir&g |
| 21148 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21149 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21150 | esac |
| 21151 | _ACEOF |
| 21152 | |
| 21153 | # Neutralize VPATH when `$srcdir' = `.'. |
| 21154 | # Shell code in configure.ac might set extrasub. |
| 21155 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21156 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21157 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21158 | $extrasub |
| 21159 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21160 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21161 | :t |
| 21162 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21163 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21164 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 21165 | s&@srcdir@&$ac_srcdir&;t t |
| 21166 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 21167 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 21168 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 21169 | s&@builddir@&$ac_builddir&;t t |
| 21170 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 21171 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 21172 | s&@INSTALL@&$ac_INSTALL&;t t |
| 21173 | $ac_datarootdir_hack |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21174 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21175 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21176 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 21177 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 21178 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21179 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21180 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21181 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21182 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21183 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21184 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21185 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21186 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 21187 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 21188 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21189 | ;; |
| 21190 | :H) |
| 21191 | # |
| 21192 | # CONFIG_HEADER |
| 21193 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21194 | _ACEOF |
| 21195 | |
| 21196 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 21197 | # substitutes the proper values into config.h.in to produce config.h. |
| 21198 | rm -f conftest.defines conftest.tail |
| 21199 | # First, append a space to every undef/define line, to ease matching. |
| 21200 | echo 's/$/ /' >conftest.defines |
| 21201 | # Then, protect against being on the right side of a sed subst, or in |
| 21202 | # an unquoted here document, in config.status. If some macros were |
| 21203 | # called several times there might be several #defines for the same |
| 21204 | # symbol, which is useless. But do not sort them, since the last |
| 21205 | # AC_DEFINE must be honored. |
| 21206 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 21207 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 21208 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 21209 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 21210 | # just an empty string. |
| 21211 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 21212 | ac_dB='\\)[ (].*,\\1define\\2' |
| 21213 | ac_dC=' ' |
| 21214 | ac_dD=' ,' |
| 21215 | |
| 21216 | uniq confdefs.h | |
| 21217 | sed -n ' |
| 21218 | t rset |
| 21219 | :rset |
| 21220 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 21221 | t ok |
| 21222 | d |
| 21223 | :ok |
| 21224 | s/[\\&,]/\\&/g |
| 21225 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 21226 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 21227 | ' >>conftest.defines |
| 21228 | |
| 21229 | # Remove the space that was appended to ease matching. |
| 21230 | # Then replace #undef with comments. This is necessary, for |
| 21231 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21232 | # on some systems where configure will not decide to define it. |
| 21233 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 21234 | echo 's/ $// |
| 21235 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 21236 | |
| 21237 | # Break up conftest.defines: |
| 21238 | ac_max_sed_lines=50 |
| 21239 | |
| 21240 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 21241 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 21242 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 21243 | # et cetera. |
| 21244 | ac_in='$ac_file_inputs' |
| 21245 | ac_out='"$tmp/out1"' |
| 21246 | ac_nxt='"$tmp/out2"' |
| 21247 | |
| 21248 | while : |
| 21249 | do |
| 21250 | # Write a here document: |
| 21251 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21252 | # First, check the format of the line: |
| 21253 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 21254 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 21255 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 21256 | b |
| 21257 | :def |
| 21258 | _ACEOF |
| 21259 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 21260 | echo 'CEOF |
| 21261 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 21262 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 21263 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 21264 | grep . conftest.tail >/dev/null || break |
| 21265 | rm -f conftest.defines |
| 21266 | mv conftest.tail conftest.defines |
| 21267 | done |
| 21268 | rm -f conftest.defines conftest.tail |
| 21269 | |
| 21270 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 21271 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21272 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21273 | echo "/* $configure_input */" >"$tmp/config.h" |
| 21274 | cat "$ac_result" >>"$tmp/config.h" |
| 21275 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 21276 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 21277 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21278 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21279 | rm -f $ac_file |
| 21280 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21281 | fi |
| 21282 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21283 | echo "/* $configure_input */" |
| 21284 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21285 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21286 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21287 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21288 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21289 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 21290 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21291 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21292 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21293 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21294 | |
| 21295 | case $ac_file$ac_mode in |
| 21296 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21297 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21298 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21299 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21300 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21301 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21302 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21303 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21304 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21305 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21306 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21307 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21308 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21309 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21310 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21311 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21312 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21313 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21314 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21315 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21316 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21317 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21318 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21319 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21320 | "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21321 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21322 | |
| 21323 | esac |
| 21324 | done # for ac_tag |
| 21325 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21326 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21327 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21328 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21329 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21330 | ac_clean_files=$ac_clean_files_save |
| 21331 | |
| 21332 | |
| 21333 | # configure is writing to config.log, and then calls config.status. |
| 21334 | # config.status does its own redirection, appending to config.log. |
| 21335 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21336 | # by configure, so config.status won't be able to write to it; its |
| 21337 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21338 | # effectively closing config.log, so it can be properly (re)opened and |
| 21339 | # appended to by config.status. When coming back to configure, we |
| 21340 | # need to make the FD available again. |
| 21341 | if test "$no_create" != yes; then |
| 21342 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21343 | ac_config_status_args= |
| 21344 | test "$silent" = yes && |
| 21345 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21346 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21347 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21348 | exec 5>>config.log |
| 21349 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21350 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21351 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21352 | fi |
| 21353 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21354 | # |
| 21355 | # CONFIG_SUBDIRS section. |
| 21356 | # |
| 21357 | if test "$no_recursion" != yes; then |
| 21358 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21359 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21360 | ac_sub_configure_args= |
| 21361 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21362 | eval "set x $ac_configure_args" |
| 21363 | shift |
| 21364 | for ac_arg |
| 21365 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21366 | if test -n "$ac_prev"; then |
| 21367 | ac_prev= |
| 21368 | continue |
| 21369 | fi |
| 21370 | case $ac_arg in |
| 21371 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 21372 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 21373 | ac_prev=cache_file ;; |
| 21374 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 21375 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 21376 | | --c=*) |
| 21377 | ;; |
| 21378 | --config-cache | -C) |
| 21379 | ;; |
| 21380 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 21381 | ac_prev=srcdir ;; |
| 21382 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 21383 | ;; |
| 21384 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 21385 | ac_prev=prefix ;; |
| 21386 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 21387 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21388 | *) |
| 21389 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21390 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21391 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21392 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21393 | esac |
| 21394 | done |
| 21395 | |
| 21396 | # Always prepend --prefix to ensure using the same prefix |
| 21397 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21398 | ac_arg="--prefix=$prefix" |
| 21399 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21400 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21401 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21402 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21403 | |
| 21404 | ac_popdir=`pwd` |
| 21405 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 21406 | |
| 21407 | # Do not complain, so a configure script can configure whichever |
| 21408 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21409 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21410 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21411 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21412 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 21413 | echo "$ac_msg" >&6 |
| 21414 | { as_dir="$ac_dir" |
| 21415 | case $as_dir in #( |
| 21416 | -*) as_dir=./$as_dir;; |
| 21417 | esac |
| 21418 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 21419 | as_dirs= |
| 21420 | while :; do |
| 21421 | case $as_dir in #( |
| 21422 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21423 | *) as_qdir=$as_dir;; |
| 21424 | esac |
| 21425 | as_dirs="'$as_qdir' $as_dirs" |
| 21426 | as_dir=`$as_dirname -- "$as_dir" || |
| 21427 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21428 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21429 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21430 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 21431 | echo X"$as_dir" | |
| 21432 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21433 | s//\1/ |
| 21434 | q |
| 21435 | } |
| 21436 | /^X\(\/\/\)[^/].*/{ |
| 21437 | s//\1/ |
| 21438 | q |
| 21439 | } |
| 21440 | /^X\(\/\/\)$/{ |
| 21441 | s//\1/ |
| 21442 | q |
| 21443 | } |
| 21444 | /^X\(\/\).*/{ |
| 21445 | s//\1/ |
| 21446 | q |
| 21447 | } |
| 21448 | s/.*/./; q'` |
| 21449 | test -d "$as_dir" && break |
| 21450 | done |
| 21451 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21452 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21453 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 21454 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21455 | ac_builddir=. |
| 21456 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21457 | case "$ac_dir" in |
| 21458 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21459 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21460 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21461 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21462 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21463 | case $ac_top_builddir_sub in |
| 21464 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21465 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21466 | esac ;; |
| 21467 | esac |
| 21468 | ac_abs_top_builddir=$ac_pwd |
| 21469 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21470 | # for backward compatibility: |
| 21471 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21472 | |
| 21473 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21474 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21475 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21476 | ac_top_srcdir=$ac_top_builddir_sub |
| 21477 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21478 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21479 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21480 | ac_top_srcdir=$srcdir |
| 21481 | ac_abs_top_srcdir=$srcdir ;; |
| 21482 | *) # Relative name. |
| 21483 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21484 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21485 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21486 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21487 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21488 | |
| 21489 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21490 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21491 | |
| 21492 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21493 | if test -f "$ac_srcdir/configure.gnu"; then |
| 21494 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 21495 | elif test -f "$ac_srcdir/configure"; then |
| 21496 | ac_sub_configure=$ac_srcdir/configure |
| 21497 | elif test -f "$ac_srcdir/configure.in"; then |
| 21498 | # This should be Cygnus configure. |
| 21499 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21500 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21501 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 21502 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21503 | ac_sub_configure= |
| 21504 | fi |
| 21505 | |
| 21506 | # The recursion is here. |
| 21507 | if test -n "$ac_sub_configure"; then |
| 21508 | # Make the cache file name correct relative to the subdirectory. |
| 21509 | case $cache_file in |
| 21510 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21511 | *) # Relative name. |
| 21512 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21513 | esac |
| 21514 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21515 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 21516 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21517 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21518 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 21519 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21520 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 21521 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 21522 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21523 | fi |
| 21524 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21525 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21526 | done |
| 21527 | fi |
| 21528 | |