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" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2330 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2331 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2332 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2333 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2334 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2335 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2336 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2337 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2338 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2339 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2340 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 2341 | # Determine the LLVM native architecture for the target |
| 2342 | case "$llvm_cv_target_arch" in |
| 2343 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2344 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2345 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2346 | esac |
| 2347 | |
| 2348 | ARCH=$llvm_cv_target_arch |
| 2349 | |
| 2350 | |
| 2351 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2352 | ac_cpp='$CPP $CPPFLAGS' |
| 2353 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2354 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2355 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2356 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2357 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2358 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2359 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2360 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2361 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2363 | else |
| 2364 | if test -n "$CC"; then |
| 2365 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2366 | else |
| 2367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2368 | for as_dir in $PATH |
| 2369 | do |
| 2370 | IFS=$as_save_IFS |
| 2371 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2372 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2373 | 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] | 2374 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2375 | 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] | 2376 | break 2 |
| 2377 | fi |
| 2378 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2379 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2380 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2381 | |
| 2382 | fi |
| 2383 | fi |
| 2384 | CC=$ac_cv_prog_CC |
| 2385 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2386 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2387 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2388 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2389 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2390 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2391 | fi |
| 2392 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2393 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2394 | fi |
| 2395 | if test -z "$ac_cv_prog_CC"; then |
| 2396 | ac_ct_CC=$CC |
| 2397 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2398 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2399 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2400 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2401 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2403 | else |
| 2404 | if test -n "$ac_ct_CC"; then |
| 2405 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2406 | else |
| 2407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2408 | for as_dir in $PATH |
| 2409 | do |
| 2410 | IFS=$as_save_IFS |
| 2411 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2412 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2413 | 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] | 2414 | ac_cv_prog_ac_ct_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2415 | 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] | 2416 | break 2 |
| 2417 | fi |
| 2418 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2419 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2420 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2421 | |
| 2422 | fi |
| 2423 | fi |
| 2424 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2425 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2426 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2427 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2428 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2429 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2430 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2431 | fi |
| 2432 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2433 | if test "x$ac_ct_CC" = x; then |
| 2434 | CC="" |
| 2435 | else |
| 2436 | case $cross_compiling:$ac_tool_warned in |
| 2437 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2438 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2439 | whose name does not start with the host triplet. If you think this |
| 2440 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2441 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2442 | whose name does not start with the host triplet. If you think this |
| 2443 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2444 | ac_tool_warned=yes ;; |
| 2445 | esac |
| 2446 | CC=$ac_ct_CC |
| 2447 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2448 | else |
| 2449 | CC="$ac_cv_prog_CC" |
| 2450 | fi |
| 2451 | |
| 2452 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2453 | if test -n "$ac_tool_prefix"; then |
| 2454 | # 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] | 2455 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2456 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2458 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2460 | else |
| 2461 | if test -n "$CC"; then |
| 2462 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2463 | else |
| 2464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2465 | for as_dir in $PATH |
| 2466 | do |
| 2467 | IFS=$as_save_IFS |
| 2468 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2469 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2470 | 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] | 2471 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2472 | 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] | 2473 | break 2 |
| 2474 | fi |
| 2475 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2476 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2477 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2478 | |
| 2479 | fi |
| 2480 | fi |
| 2481 | CC=$ac_cv_prog_CC |
| 2482 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2483 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2484 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2485 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2486 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2487 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2488 | fi |
| 2489 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2490 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2491 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2492 | fi |
| 2493 | if test -z "$CC"; then |
| 2494 | # Extract the first word of "cc", so it can be a program name with args. |
| 2495 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2496 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2497 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2498 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2500 | else |
| 2501 | if test -n "$CC"; then |
| 2502 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2503 | else |
| 2504 | ac_prog_rejected=no |
| 2505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2506 | for as_dir in $PATH |
| 2507 | do |
| 2508 | IFS=$as_save_IFS |
| 2509 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2510 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2511 | 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] | 2512 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2513 | ac_prog_rejected=yes |
| 2514 | continue |
| 2515 | fi |
| 2516 | ac_cv_prog_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2517 | 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] | 2518 | break 2 |
| 2519 | fi |
| 2520 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2521 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2522 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2523 | |
| 2524 | if test $ac_prog_rejected = yes; then |
| 2525 | # We found a bogon in the path, so make sure we never use it. |
| 2526 | set dummy $ac_cv_prog_CC |
| 2527 | shift |
| 2528 | if test $# != 0; then |
| 2529 | # We chose a different compiler from the bogus one. |
| 2530 | # However, it has the same basename, so the bogon will be chosen |
| 2531 | # first if we set CC to just the basename; use the full file name. |
| 2532 | shift |
| 2533 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2534 | fi |
| 2535 | fi |
| 2536 | fi |
| 2537 | fi |
| 2538 | CC=$ac_cv_prog_CC |
| 2539 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2540 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2541 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2542 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2543 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2544 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2545 | fi |
| 2546 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2547 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2548 | fi |
| 2549 | if test -z "$CC"; then |
| 2550 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2551 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2552 | do |
| 2553 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2554 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2555 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2556 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2557 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2559 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2560 | if test -n "$CC"; then |
| 2561 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2562 | else |
| 2563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2564 | for as_dir in $PATH |
| 2565 | do |
| 2566 | IFS=$as_save_IFS |
| 2567 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2568 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2569 | 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] | 2570 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2571 | 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] | 2572 | break 2 |
| 2573 | fi |
| 2574 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2575 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2576 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2577 | |
| 2578 | fi |
| 2579 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2580 | CC=$ac_cv_prog_CC |
| 2581 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2582 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2583 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2584 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2585 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2586 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2587 | fi |
| 2588 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2589 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2590 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2591 | done |
| 2592 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2593 | if test -z "$CC"; then |
| 2594 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2595 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2596 | do |
| 2597 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2598 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2599 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2601 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2603 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2604 | if test -n "$ac_ct_CC"; then |
| 2605 | 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] | 2606 | else |
| 2607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2608 | for as_dir in $PATH |
| 2609 | do |
| 2610 | IFS=$as_save_IFS |
| 2611 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2612 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2613 | 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] | 2614 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2615 | 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] | 2616 | break 2 |
| 2617 | fi |
| 2618 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2619 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2620 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2621 | |
| 2622 | fi |
| 2623 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2624 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2625 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2626 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2627 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2628 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2629 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2630 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2631 | fi |
| 2632 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2633 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2634 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2635 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2636 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2637 | if test "x$ac_ct_CC" = x; then |
| 2638 | CC="" |
| 2639 | else |
| 2640 | case $cross_compiling:$ac_tool_warned in |
| 2641 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2642 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2643 | whose name does not start with the host triplet. If you think this |
| 2644 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2645 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2646 | whose name does not start with the host triplet. If you think this |
| 2647 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2648 | ac_tool_warned=yes ;; |
| 2649 | esac |
| 2650 | CC=$ac_ct_CC |
| 2651 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2652 | fi |
| 2653 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2654 | fi |
| 2655 | |
| 2656 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2657 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2658 | See \`config.log' for more details." >&5 |
| 2659 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2660 | See \`config.log' for more details." >&2;} |
| 2661 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2662 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2663 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2664 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2665 | ac_compiler=`set X $ac_compile; echo $2` |
| 2666 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2667 | case "(($ac_try" in |
| 2668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2669 | *) ac_try_echo=$ac_try;; |
| 2670 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2672 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2673 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2675 | (exit $ac_status); } |
| 2676 | { (ac_try="$ac_compiler -v >&5" |
| 2677 | case "(($ac_try" in |
| 2678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2679 | *) ac_try_echo=$ac_try;; |
| 2680 | esac |
| 2681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2682 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2683 | ac_status=$? |
| 2684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2685 | (exit $ac_status); } |
| 2686 | { (ac_try="$ac_compiler -V >&5" |
| 2687 | case "(($ac_try" in |
| 2688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2689 | *) ac_try_echo=$ac_try;; |
| 2690 | esac |
| 2691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2692 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2693 | ac_status=$? |
| 2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2695 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2696 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2697 | cat >conftest.$ac_ext <<_ACEOF |
| 2698 | /* confdefs.h. */ |
| 2699 | _ACEOF |
| 2700 | cat confdefs.h >>conftest.$ac_ext |
| 2701 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2702 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2703 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2704 | int |
| 2705 | main () |
| 2706 | { |
| 2707 | |
| 2708 | ; |
| 2709 | return 0; |
| 2710 | } |
| 2711 | _ACEOF |
| 2712 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2713 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2714 | # Try to create an executable without -o first, disregard a.out. |
| 2715 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2716 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2717 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2718 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2719 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2720 | # |
| 2721 | # List of possible output files, starting from the most likely. |
| 2722 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2723 | # only as a last resort. b.out is created by i960 compilers. |
| 2724 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2725 | # |
| 2726 | # The IRIX 6 linker writes into existing files which may not be |
| 2727 | # executable, retaining their permissions. Remove them first so a |
| 2728 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2729 | ac_rmfiles= |
| 2730 | for ac_file in $ac_files |
| 2731 | do |
| 2732 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2733 | *.$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] | 2734 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2735 | esac |
| 2736 | done |
| 2737 | rm -f $ac_rmfiles |
| 2738 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2739 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2740 | case "(($ac_try" in |
| 2741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2742 | *) ac_try_echo=$ac_try;; |
| 2743 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2745 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2746 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2748 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2749 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2750 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2751 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2752 | # so that the user can short-circuit this test for compilers unknown to |
| 2753 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2754 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2755 | do |
| 2756 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2757 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2758 | *.$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] | 2759 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2760 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2761 | # We found the default executable, but exeext='' is most |
| 2762 | # certainly right. |
| 2763 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2764 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2765 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2766 | then :; else |
| 2767 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2768 | fi |
| 2769 | # We set ac_cv_exeext here because the later test for it is not |
| 2770 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2771 | # argument, so we may need to know it at that point already. |
| 2772 | # Even if this section looks crufty: it has the advantage of |
| 2773 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2774 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2775 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2776 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2777 | esac |
| 2778 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2779 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2780 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2781 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2782 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2784 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2785 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2786 | See \`config.log' for more details." >&5 |
| 2787 | echo "$as_me: error: C compiler cannot create executables |
| 2788 | See \`config.log' for more details." >&2;} |
| 2789 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2790 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2791 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2792 | ac_exeext=$ac_cv_exeext |
| 2793 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2794 | echo "${ECHO_T}$ac_file" >&6; } |
| 2795 | |
| 2796 | # Check that the compiler produces executables we can run. If not, either |
| 2797 | # the compiler is broken, or we cross compile. |
| 2798 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2799 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2800 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2801 | # If not cross compiling, check that we can run a simple program. |
| 2802 | if test "$cross_compiling" != yes; then |
| 2803 | if { ac_try='./$ac_file' |
| 2804 | { (case "(($ac_try" in |
| 2805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2806 | *) ac_try_echo=$ac_try;; |
| 2807 | esac |
| 2808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2809 | (eval "$ac_try") 2>&5 |
| 2810 | ac_status=$? |
| 2811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2812 | (exit $ac_status); }; }; then |
| 2813 | cross_compiling=no |
| 2814 | else |
| 2815 | if test "$cross_compiling" = maybe; then |
| 2816 | cross_compiling=yes |
| 2817 | else |
| 2818 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2819 | If you meant to cross compile, use \`--host'. |
| 2820 | See \`config.log' for more details." >&5 |
| 2821 | echo "$as_me: error: cannot run C compiled programs. |
| 2822 | If you meant to cross compile, use \`--host'. |
| 2823 | See \`config.log' for more details." >&2;} |
| 2824 | { (exit 1); exit 1; }; } |
| 2825 | fi |
| 2826 | fi |
| 2827 | fi |
| 2828 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2829 | echo "${ECHO_T}yes" >&6; } |
| 2830 | |
| 2831 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2832 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2833 | # Check that the compiler produces executables we can run. If not, either |
| 2834 | # the compiler is broken, or we cross compile. |
| 2835 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2836 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2837 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2838 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2839 | |
| 2840 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2841 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2842 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2843 | case "(($ac_try" in |
| 2844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2845 | *) ac_try_echo=$ac_try;; |
| 2846 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2848 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2849 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2851 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2852 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2853 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2854 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2855 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2856 | for ac_file in conftest.exe conftest conftest.*; do |
| 2857 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2858 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2859 | *.$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] | 2860 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2861 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2862 | * ) break;; |
| 2863 | esac |
| 2864 | done |
| 2865 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2866 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2867 | See \`config.log' for more details." >&5 |
| 2868 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2869 | See \`config.log' for more details." >&2;} |
| 2870 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2871 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2872 | |
| 2873 | rm -f conftest$ac_cv_exeext |
| 2874 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2875 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2876 | |
| 2877 | rm -f conftest.$ac_ext |
| 2878 | EXEEXT=$ac_cv_exeext |
| 2879 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2880 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2881 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2882 | if test "${ac_cv_objext+set}" = set; then |
| 2883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2884 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2885 | cat >conftest.$ac_ext <<_ACEOF |
| 2886 | /* confdefs.h. */ |
| 2887 | _ACEOF |
| 2888 | cat confdefs.h >>conftest.$ac_ext |
| 2889 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2890 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2891 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2892 | int |
| 2893 | main () |
| 2894 | { |
| 2895 | |
| 2896 | ; |
| 2897 | return 0; |
| 2898 | } |
| 2899 | _ACEOF |
| 2900 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2901 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2902 | case "(($ac_try" in |
| 2903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2904 | *) ac_try_echo=$ac_try;; |
| 2905 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2907 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2908 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2910 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2911 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2912 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2913 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2914 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2915 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2916 | break;; |
| 2917 | esac |
| 2918 | done |
| 2919 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2920 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2922 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2923 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2924 | See \`config.log' for more details." >&5 |
| 2925 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2926 | See \`config.log' for more details." >&2;} |
| 2927 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2928 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2929 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2930 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2931 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2932 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2933 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2934 | OBJEXT=$ac_cv_objext |
| 2935 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2936 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2937 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2938 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2940 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2941 | cat >conftest.$ac_ext <<_ACEOF |
| 2942 | /* confdefs.h. */ |
| 2943 | _ACEOF |
| 2944 | cat confdefs.h >>conftest.$ac_ext |
| 2945 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2946 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2947 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2948 | int |
| 2949 | main () |
| 2950 | { |
| 2951 | #ifndef __GNUC__ |
| 2952 | choke me |
| 2953 | #endif |
| 2954 | |
| 2955 | ; |
| 2956 | return 0; |
| 2957 | } |
| 2958 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2959 | rm -f conftest.$ac_objext |
| 2960 | if { (ac_try="$ac_compile" |
| 2961 | case "(($ac_try" in |
| 2962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2963 | *) ac_try_echo=$ac_try;; |
| 2964 | esac |
| 2965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2966 | (eval "$ac_compile") 2>conftest.er1 |
| 2967 | ac_status=$? |
| 2968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2969 | rm -f conftest.er1 |
| 2970 | cat conftest.err >&5 |
| 2971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2972 | (exit $ac_status); } && |
| 2973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2974 | { (case "(($ac_try" in |
| 2975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2976 | *) ac_try_echo=$ac_try;; |
| 2977 | esac |
| 2978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2979 | (eval "$ac_try") 2>&5 |
| 2980 | ac_status=$? |
| 2981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2982 | (exit $ac_status); }; } && |
| 2983 | { ac_try='test -s conftest.$ac_objext' |
| 2984 | { (case "(($ac_try" in |
| 2985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2986 | *) ac_try_echo=$ac_try;; |
| 2987 | esac |
| 2988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2989 | (eval "$ac_try") 2>&5 |
| 2990 | ac_status=$? |
| 2991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2992 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2993 | ac_compiler_gnu=yes |
| 2994 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2995 | echo "$as_me: failed program was:" >&5 |
| 2996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2997 | |
| 2998 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2999 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3000 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3002 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3003 | |
| 3004 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3005 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3006 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3007 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3008 | ac_test_CFLAGS=${CFLAGS+set} |
| 3009 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3010 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3011 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 3012 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3014 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3015 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3016 | ac_c_werror_flag=yes |
| 3017 | ac_cv_prog_cc_g=no |
| 3018 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3019 | cat >conftest.$ac_ext <<_ACEOF |
| 3020 | /* confdefs.h. */ |
| 3021 | _ACEOF |
| 3022 | cat confdefs.h >>conftest.$ac_ext |
| 3023 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3024 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3025 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3026 | int |
| 3027 | main () |
| 3028 | { |
| 3029 | |
| 3030 | ; |
| 3031 | return 0; |
| 3032 | } |
| 3033 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3034 | rm -f conftest.$ac_objext |
| 3035 | if { (ac_try="$ac_compile" |
| 3036 | case "(($ac_try" in |
| 3037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3038 | *) ac_try_echo=$ac_try;; |
| 3039 | esac |
| 3040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3041 | (eval "$ac_compile") 2>conftest.er1 |
| 3042 | ac_status=$? |
| 3043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3044 | rm -f conftest.er1 |
| 3045 | cat conftest.err >&5 |
| 3046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3047 | (exit $ac_status); } && |
| 3048 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3049 | { (case "(($ac_try" in |
| 3050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3051 | *) ac_try_echo=$ac_try;; |
| 3052 | esac |
| 3053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3054 | (eval "$ac_try") 2>&5 |
| 3055 | ac_status=$? |
| 3056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3057 | (exit $ac_status); }; } && |
| 3058 | { ac_try='test -s conftest.$ac_objext' |
| 3059 | { (case "(($ac_try" in |
| 3060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3061 | *) ac_try_echo=$ac_try;; |
| 3062 | esac |
| 3063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3064 | (eval "$ac_try") 2>&5 |
| 3065 | ac_status=$? |
| 3066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3067 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3068 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3069 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3070 | echo "$as_me: failed program was:" >&5 |
| 3071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3072 | |
| 3073 | CFLAGS="" |
| 3074 | cat >conftest.$ac_ext <<_ACEOF |
| 3075 | /* confdefs.h. */ |
| 3076 | _ACEOF |
| 3077 | cat confdefs.h >>conftest.$ac_ext |
| 3078 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3079 | /* end confdefs.h. */ |
| 3080 | |
| 3081 | int |
| 3082 | main () |
| 3083 | { |
| 3084 | |
| 3085 | ; |
| 3086 | return 0; |
| 3087 | } |
| 3088 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3089 | rm -f conftest.$ac_objext |
| 3090 | if { (ac_try="$ac_compile" |
| 3091 | case "(($ac_try" in |
| 3092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3093 | *) ac_try_echo=$ac_try;; |
| 3094 | esac |
| 3095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3096 | (eval "$ac_compile") 2>conftest.er1 |
| 3097 | ac_status=$? |
| 3098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3099 | rm -f conftest.er1 |
| 3100 | cat conftest.err >&5 |
| 3101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3102 | (exit $ac_status); } && |
| 3103 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3104 | { (case "(($ac_try" in |
| 3105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3106 | *) ac_try_echo=$ac_try;; |
| 3107 | esac |
| 3108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3109 | (eval "$ac_try") 2>&5 |
| 3110 | ac_status=$? |
| 3111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3112 | (exit $ac_status); }; } && |
| 3113 | { ac_try='test -s conftest.$ac_objext' |
| 3114 | { (case "(($ac_try" in |
| 3115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3116 | *) ac_try_echo=$ac_try;; |
| 3117 | esac |
| 3118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3119 | (eval "$ac_try") 2>&5 |
| 3120 | ac_status=$? |
| 3121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3122 | (exit $ac_status); }; }; then |
| 3123 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3124 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3125 | echo "$as_me: failed program was:" >&5 |
| 3126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3127 | |
| 3128 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3129 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3130 | cat >conftest.$ac_ext <<_ACEOF |
| 3131 | /* confdefs.h. */ |
| 3132 | _ACEOF |
| 3133 | cat confdefs.h >>conftest.$ac_ext |
| 3134 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3135 | /* end confdefs.h. */ |
| 3136 | |
| 3137 | int |
| 3138 | main () |
| 3139 | { |
| 3140 | |
| 3141 | ; |
| 3142 | return 0; |
| 3143 | } |
| 3144 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3145 | rm -f conftest.$ac_objext |
| 3146 | if { (ac_try="$ac_compile" |
| 3147 | case "(($ac_try" in |
| 3148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3149 | *) ac_try_echo=$ac_try;; |
| 3150 | esac |
| 3151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3152 | (eval "$ac_compile") 2>conftest.er1 |
| 3153 | ac_status=$? |
| 3154 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3155 | rm -f conftest.er1 |
| 3156 | cat conftest.err >&5 |
| 3157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3158 | (exit $ac_status); } && |
| 3159 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3160 | { (case "(($ac_try" in |
| 3161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3162 | *) ac_try_echo=$ac_try;; |
| 3163 | esac |
| 3164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3165 | (eval "$ac_try") 2>&5 |
| 3166 | ac_status=$? |
| 3167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3168 | (exit $ac_status); }; } && |
| 3169 | { ac_try='test -s conftest.$ac_objext' |
| 3170 | { (case "(($ac_try" in |
| 3171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3172 | *) ac_try_echo=$ac_try;; |
| 3173 | esac |
| 3174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3175 | (eval "$ac_try") 2>&5 |
| 3176 | ac_status=$? |
| 3177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3178 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3179 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3180 | else |
| 3181 | echo "$as_me: failed program was:" >&5 |
| 3182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3183 | |
| 3184 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3185 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3186 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3188 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3189 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3191 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3192 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3194 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3195 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3196 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3197 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3198 | if test "$ac_test_CFLAGS" = set; then |
| 3199 | CFLAGS=$ac_save_CFLAGS |
| 3200 | elif test $ac_cv_prog_cc_g = yes; then |
| 3201 | if test "$GCC" = yes; then |
| 3202 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3203 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3204 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3205 | fi |
| 3206 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3207 | if test "$GCC" = yes; then |
| 3208 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3209 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3210 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3211 | fi |
| 3212 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3213 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3214 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3215 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 3216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3217 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3218 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3219 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3220 | cat >conftest.$ac_ext <<_ACEOF |
| 3221 | /* confdefs.h. */ |
| 3222 | _ACEOF |
| 3223 | cat confdefs.h >>conftest.$ac_ext |
| 3224 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3225 | /* end confdefs.h. */ |
| 3226 | #include <stdarg.h> |
| 3227 | #include <stdio.h> |
| 3228 | #include <sys/types.h> |
| 3229 | #include <sys/stat.h> |
| 3230 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3231 | struct buf { int x; }; |
| 3232 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3233 | static char *e (p, i) |
| 3234 | char **p; |
| 3235 | int i; |
| 3236 | { |
| 3237 | return p[i]; |
| 3238 | } |
| 3239 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3240 | { |
| 3241 | char *s; |
| 3242 | va_list v; |
| 3243 | va_start (v,p); |
| 3244 | s = g (p, va_arg (v,int)); |
| 3245 | va_end (v); |
| 3246 | return s; |
| 3247 | } |
| 3248 | |
| 3249 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3250 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3251 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3252 | 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] | 3253 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3254 | 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] | 3255 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3256 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3257 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3258 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3259 | inside strings and character constants. */ |
| 3260 | #define FOO(x) 'x' |
| 3261 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3262 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3263 | int test (int i, double x); |
| 3264 | struct s1 {int (*f) (int a);}; |
| 3265 | struct s2 {int (*f) (double a);}; |
| 3266 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3267 | int argc; |
| 3268 | char **argv; |
| 3269 | int |
| 3270 | main () |
| 3271 | { |
| 3272 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3273 | ; |
| 3274 | return 0; |
| 3275 | } |
| 3276 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3277 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3278 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3279 | do |
| 3280 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3281 | rm -f conftest.$ac_objext |
| 3282 | if { (ac_try="$ac_compile" |
| 3283 | case "(($ac_try" in |
| 3284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3285 | *) ac_try_echo=$ac_try;; |
| 3286 | esac |
| 3287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3288 | (eval "$ac_compile") 2>conftest.er1 |
| 3289 | ac_status=$? |
| 3290 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3291 | rm -f conftest.er1 |
| 3292 | cat conftest.err >&5 |
| 3293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3294 | (exit $ac_status); } && |
| 3295 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3296 | { (case "(($ac_try" in |
| 3297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3298 | *) ac_try_echo=$ac_try;; |
| 3299 | esac |
| 3300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3301 | (eval "$ac_try") 2>&5 |
| 3302 | ac_status=$? |
| 3303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3304 | (exit $ac_status); }; } && |
| 3305 | { ac_try='test -s conftest.$ac_objext' |
| 3306 | { (case "(($ac_try" in |
| 3307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3308 | *) ac_try_echo=$ac_try;; |
| 3309 | esac |
| 3310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3311 | (eval "$ac_try") 2>&5 |
| 3312 | ac_status=$? |
| 3313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3314 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3315 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3316 | else |
| 3317 | echo "$as_me: failed program was:" >&5 |
| 3318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3319 | |
| 3320 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3321 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3322 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3323 | rm -f core conftest.err conftest.$ac_objext |
| 3324 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3325 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3326 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3327 | CC=$ac_save_CC |
| 3328 | |
| 3329 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3330 | # AC_CACHE_VAL |
| 3331 | case "x$ac_cv_prog_cc_c89" in |
| 3332 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3333 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3334 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3335 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3336 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3337 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3338 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3339 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3340 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3341 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3342 | esac |
| 3343 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3344 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3345 | ac_ext=c |
| 3346 | ac_cpp='$CPP $CPPFLAGS' |
| 3347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3350 | |
| 3351 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3352 | ac_ext=c |
| 3353 | ac_cpp='$CPP $CPPFLAGS' |
| 3354 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3355 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3356 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3357 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3358 | 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] | 3359 | # On Suns, sometimes $CPP names a directory. |
| 3360 | if test -n "$CPP" && test -d "$CPP"; then |
| 3361 | CPP= |
| 3362 | fi |
| 3363 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3364 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3366 | else |
| 3367 | # Double quotes because CPP needs to be expanded |
| 3368 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3369 | do |
| 3370 | ac_preproc_ok=false |
| 3371 | for ac_c_preproc_warn_flag in '' yes |
| 3372 | do |
| 3373 | # Use a header file that comes with gcc, so configuring glibc |
| 3374 | # with a fresh cross-compiler works. |
| 3375 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3376 | # <limits.h> exists even on freestanding compilers. |
| 3377 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3378 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3379 | cat >conftest.$ac_ext <<_ACEOF |
| 3380 | /* confdefs.h. */ |
| 3381 | _ACEOF |
| 3382 | cat confdefs.h >>conftest.$ac_ext |
| 3383 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3384 | /* end confdefs.h. */ |
| 3385 | #ifdef __STDC__ |
| 3386 | # include <limits.h> |
| 3387 | #else |
| 3388 | # include <assert.h> |
| 3389 | #endif |
| 3390 | Syntax error |
| 3391 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3392 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3393 | case "(($ac_try" in |
| 3394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3395 | *) ac_try_echo=$ac_try;; |
| 3396 | esac |
| 3397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3398 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3399 | ac_status=$? |
| 3400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3401 | rm -f conftest.er1 |
| 3402 | cat conftest.err >&5 |
| 3403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3404 | (exit $ac_status); } >/dev/null; then |
| 3405 | if test -s conftest.err; then |
| 3406 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3407 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3408 | else |
| 3409 | ac_cpp_err= |
| 3410 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3411 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3412 | ac_cpp_err=yes |
| 3413 | fi |
| 3414 | if test -z "$ac_cpp_err"; then |
| 3415 | : |
| 3416 | else |
| 3417 | echo "$as_me: failed program was:" >&5 |
| 3418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3419 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3420 | # Broken: fails on valid input. |
| 3421 | continue |
| 3422 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3423 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3424 | rm -f conftest.err conftest.$ac_ext |
| 3425 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3426 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3427 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3428 | cat >conftest.$ac_ext <<_ACEOF |
| 3429 | /* confdefs.h. */ |
| 3430 | _ACEOF |
| 3431 | cat confdefs.h >>conftest.$ac_ext |
| 3432 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3433 | /* end confdefs.h. */ |
| 3434 | #include <ac_nonexistent.h> |
| 3435 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3436 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3437 | case "(($ac_try" in |
| 3438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3439 | *) ac_try_echo=$ac_try;; |
| 3440 | esac |
| 3441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3442 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3443 | ac_status=$? |
| 3444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3445 | rm -f conftest.er1 |
| 3446 | cat conftest.err >&5 |
| 3447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3448 | (exit $ac_status); } >/dev/null; then |
| 3449 | if test -s conftest.err; then |
| 3450 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3451 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3452 | else |
| 3453 | ac_cpp_err= |
| 3454 | fi |
| 3455 | else |
| 3456 | ac_cpp_err=yes |
| 3457 | fi |
| 3458 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3459 | # Broken: success on invalid input. |
| 3460 | continue |
| 3461 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3462 | echo "$as_me: failed program was:" >&5 |
| 3463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3464 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3465 | # Passes both tests. |
| 3466 | ac_preproc_ok=: |
| 3467 | break |
| 3468 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3469 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3470 | rm -f conftest.err conftest.$ac_ext |
| 3471 | |
| 3472 | done |
| 3473 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3474 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3475 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3476 | break |
| 3477 | fi |
| 3478 | |
| 3479 | done |
| 3480 | ac_cv_prog_CPP=$CPP |
| 3481 | |
| 3482 | fi |
| 3483 | CPP=$ac_cv_prog_CPP |
| 3484 | else |
| 3485 | ac_cv_prog_CPP=$CPP |
| 3486 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3487 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3488 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3489 | ac_preproc_ok=false |
| 3490 | for ac_c_preproc_warn_flag in '' yes |
| 3491 | do |
| 3492 | # Use a header file that comes with gcc, so configuring glibc |
| 3493 | # with a fresh cross-compiler works. |
| 3494 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3495 | # <limits.h> exists even on freestanding compilers. |
| 3496 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3497 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3498 | cat >conftest.$ac_ext <<_ACEOF |
| 3499 | /* confdefs.h. */ |
| 3500 | _ACEOF |
| 3501 | cat confdefs.h >>conftest.$ac_ext |
| 3502 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3503 | /* end confdefs.h. */ |
| 3504 | #ifdef __STDC__ |
| 3505 | # include <limits.h> |
| 3506 | #else |
| 3507 | # include <assert.h> |
| 3508 | #endif |
| 3509 | Syntax error |
| 3510 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3511 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3512 | case "(($ac_try" in |
| 3513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3514 | *) ac_try_echo=$ac_try;; |
| 3515 | esac |
| 3516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3517 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3518 | ac_status=$? |
| 3519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3520 | rm -f conftest.er1 |
| 3521 | cat conftest.err >&5 |
| 3522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3523 | (exit $ac_status); } >/dev/null; then |
| 3524 | if test -s conftest.err; then |
| 3525 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3526 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3527 | else |
| 3528 | ac_cpp_err= |
| 3529 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3530 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3531 | ac_cpp_err=yes |
| 3532 | fi |
| 3533 | if test -z "$ac_cpp_err"; then |
| 3534 | : |
| 3535 | else |
| 3536 | echo "$as_me: failed program was:" >&5 |
| 3537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3538 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3539 | # Broken: fails on valid input. |
| 3540 | continue |
| 3541 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3542 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3543 | rm -f conftest.err conftest.$ac_ext |
| 3544 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3545 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3546 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3547 | cat >conftest.$ac_ext <<_ACEOF |
| 3548 | /* confdefs.h. */ |
| 3549 | _ACEOF |
| 3550 | cat confdefs.h >>conftest.$ac_ext |
| 3551 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3552 | /* end confdefs.h. */ |
| 3553 | #include <ac_nonexistent.h> |
| 3554 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3555 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3556 | case "(($ac_try" in |
| 3557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3558 | *) ac_try_echo=$ac_try;; |
| 3559 | esac |
| 3560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3561 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3562 | ac_status=$? |
| 3563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3564 | rm -f conftest.er1 |
| 3565 | cat conftest.err >&5 |
| 3566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3567 | (exit $ac_status); } >/dev/null; then |
| 3568 | if test -s conftest.err; then |
| 3569 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3570 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3571 | else |
| 3572 | ac_cpp_err= |
| 3573 | fi |
| 3574 | else |
| 3575 | ac_cpp_err=yes |
| 3576 | fi |
| 3577 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3578 | # Broken: success on invalid input. |
| 3579 | continue |
| 3580 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3581 | echo "$as_me: failed program was:" >&5 |
| 3582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3583 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3584 | # Passes both tests. |
| 3585 | ac_preproc_ok=: |
| 3586 | break |
| 3587 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3588 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3589 | rm -f conftest.err conftest.$ac_ext |
| 3590 | |
| 3591 | done |
| 3592 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3593 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3594 | if $ac_preproc_ok; then |
| 3595 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3596 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3597 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3598 | See \`config.log' for more details." >&5 |
| 3599 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3600 | See \`config.log' for more details." >&2;} |
| 3601 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3602 | fi |
| 3603 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3604 | ac_ext=c |
| 3605 | ac_cpp='$CPP $CPPFLAGS' |
| 3606 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3607 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3608 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3609 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3610 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3611 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3612 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3613 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3615 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3616 | # Extract the first word of "grep ggrep" to use in msg output |
| 3617 | if test -z "$GREP"; then |
| 3618 | set dummy grep ggrep; ac_prog_name=$2 |
| 3619 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3621 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3622 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3623 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3625 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3626 | do |
| 3627 | IFS=$as_save_IFS |
| 3628 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3629 | for ac_prog in grep ggrep; do |
| 3630 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3631 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3632 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3633 | # 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] | 3634 | # Check for GNU $ac_path_GREP |
| 3635 | case `"$ac_path_GREP" --version 2>&1` in |
| 3636 | *GNU*) |
| 3637 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3638 | *) |
| 3639 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3640 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3641 | while : |
| 3642 | do |
| 3643 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3644 | mv "conftest.tmp" "conftest.in" |
| 3645 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3646 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3647 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3648 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3649 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3650 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3651 | # Best one so far, save it but keep looking for a better one |
| 3652 | ac_cv_path_GREP="$ac_path_GREP" |
| 3653 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3654 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3655 | # 10*(2^10) chars as input seems more than enough |
| 3656 | test $ac_count -gt 10 && break |
| 3657 | done |
| 3658 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3659 | esac |
| 3660 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3661 | |
| 3662 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3663 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3664 | done |
| 3665 | |
| 3666 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3667 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3668 | |
| 3669 | |
| 3670 | fi |
| 3671 | |
| 3672 | GREP="$ac_cv_path_GREP" |
| 3673 | if test -z "$GREP"; then |
| 3674 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3675 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3676 | { (exit 1); exit 1; }; } |
| 3677 | fi |
| 3678 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3679 | else |
| 3680 | ac_cv_path_GREP=$GREP |
| 3681 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3682 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3683 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3684 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3685 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3686 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3687 | GREP="$ac_cv_path_GREP" |
| 3688 | |
| 3689 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3690 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3691 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3692 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3694 | else |
| 3695 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3696 | then ac_cv_path_EGREP="$GREP -E" |
| 3697 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3698 | # Extract the first word of "egrep" to use in msg output |
| 3699 | if test -z "$EGREP"; then |
| 3700 | set dummy egrep; ac_prog_name=$2 |
| 3701 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3703 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3704 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3705 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3707 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3708 | do |
| 3709 | IFS=$as_save_IFS |
| 3710 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3711 | for ac_prog in egrep; do |
| 3712 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3713 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3714 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3715 | # 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] | 3716 | # Check for GNU $ac_path_EGREP |
| 3717 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3718 | *GNU*) |
| 3719 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3720 | *) |
| 3721 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3722 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3723 | while : |
| 3724 | do |
| 3725 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3726 | mv "conftest.tmp" "conftest.in" |
| 3727 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3728 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3729 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3730 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3731 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3732 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3733 | # Best one so far, save it but keep looking for a better one |
| 3734 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3735 | ac_path_EGREP_max=$ac_count |
| 3736 | fi |
| 3737 | # 10*(2^10) chars as input seems more than enough |
| 3738 | test $ac_count -gt 10 && break |
| 3739 | done |
| 3740 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3741 | esac |
| 3742 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3743 | |
| 3744 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3745 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3746 | done |
| 3747 | |
| 3748 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3749 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3750 | |
| 3751 | |
| 3752 | fi |
| 3753 | |
| 3754 | EGREP="$ac_cv_path_EGREP" |
| 3755 | if test -z "$EGREP"; then |
| 3756 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3757 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3758 | { (exit 1); exit 1; }; } |
| 3759 | fi |
| 3760 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3761 | else |
| 3762 | ac_cv_path_EGREP=$EGREP |
| 3763 | fi |
| 3764 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3765 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3766 | fi |
| 3767 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3768 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3769 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3770 | EGREP="$ac_cv_path_EGREP" |
| 3771 | |
| 3772 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3773 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3774 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 3775 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3777 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3778 | cat >conftest.$ac_ext <<_ACEOF |
| 3779 | /* confdefs.h. */ |
| 3780 | _ACEOF |
| 3781 | cat confdefs.h >>conftest.$ac_ext |
| 3782 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3783 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3784 | #include <stdlib.h> |
| 3785 | #include <stdarg.h> |
| 3786 | #include <string.h> |
| 3787 | #include <float.h> |
| 3788 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3789 | int |
| 3790 | main () |
| 3791 | { |
| 3792 | |
| 3793 | ; |
| 3794 | return 0; |
| 3795 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3796 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3797 | rm -f conftest.$ac_objext |
| 3798 | if { (ac_try="$ac_compile" |
| 3799 | case "(($ac_try" in |
| 3800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3801 | *) ac_try_echo=$ac_try;; |
| 3802 | esac |
| 3803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3804 | (eval "$ac_compile") 2>conftest.er1 |
| 3805 | ac_status=$? |
| 3806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3807 | rm -f conftest.er1 |
| 3808 | cat conftest.err >&5 |
| 3809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3810 | (exit $ac_status); } && |
| 3811 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3812 | { (case "(($ac_try" in |
| 3813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3814 | *) ac_try_echo=$ac_try;; |
| 3815 | esac |
| 3816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3817 | (eval "$ac_try") 2>&5 |
| 3818 | ac_status=$? |
| 3819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3820 | (exit $ac_status); }; } && |
| 3821 | { ac_try='test -s conftest.$ac_objext' |
| 3822 | { (case "(($ac_try" in |
| 3823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3824 | *) ac_try_echo=$ac_try;; |
| 3825 | esac |
| 3826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3827 | (eval "$ac_try") 2>&5 |
| 3828 | ac_status=$? |
| 3829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3830 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3831 | ac_cv_header_stdc=yes |
| 3832 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3833 | echo "$as_me: failed program was:" >&5 |
| 3834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3835 | |
| 3836 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3837 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3838 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3840 | |
| 3841 | if test $ac_cv_header_stdc = yes; then |
| 3842 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3843 | cat >conftest.$ac_ext <<_ACEOF |
| 3844 | /* confdefs.h. */ |
| 3845 | _ACEOF |
| 3846 | cat confdefs.h >>conftest.$ac_ext |
| 3847 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3848 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3849 | #include <string.h> |
| 3850 | |
| 3851 | _ACEOF |
| 3852 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3853 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3854 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3855 | else |
| 3856 | ac_cv_header_stdc=no |
| 3857 | fi |
| 3858 | rm -f conftest* |
| 3859 | |
| 3860 | fi |
| 3861 | |
| 3862 | if test $ac_cv_header_stdc = yes; then |
| 3863 | # 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] | 3864 | cat >conftest.$ac_ext <<_ACEOF |
| 3865 | /* confdefs.h. */ |
| 3866 | _ACEOF |
| 3867 | cat confdefs.h >>conftest.$ac_ext |
| 3868 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3869 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3870 | #include <stdlib.h> |
| 3871 | |
| 3872 | _ACEOF |
| 3873 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3874 | $EGREP "free" >/dev/null 2>&1; then |
| 3875 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3876 | else |
| 3877 | ac_cv_header_stdc=no |
| 3878 | fi |
| 3879 | rm -f conftest* |
| 3880 | |
| 3881 | fi |
| 3882 | |
| 3883 | if test $ac_cv_header_stdc = yes; then |
| 3884 | # /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] | 3885 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3886 | : |
| 3887 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3888 | cat >conftest.$ac_ext <<_ACEOF |
| 3889 | /* confdefs.h. */ |
| 3890 | _ACEOF |
| 3891 | cat confdefs.h >>conftest.$ac_ext |
| 3892 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3893 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3894 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3895 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3896 | #if ((' ' & 0x0FF) == 0x020) |
| 3897 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3898 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3899 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3900 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3901 | (('a' <= (c) && (c) <= 'i') \ |
| 3902 | || ('j' <= (c) && (c) <= 'r') \ |
| 3903 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3904 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3905 | #endif |
| 3906 | |
| 3907 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3908 | int |
| 3909 | main () |
| 3910 | { |
| 3911 | int i; |
| 3912 | for (i = 0; i < 256; i++) |
| 3913 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3914 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3915 | return 2; |
| 3916 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3917 | } |
| 3918 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3919 | rm -f conftest$ac_exeext |
| 3920 | if { (ac_try="$ac_link" |
| 3921 | case "(($ac_try" in |
| 3922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3923 | *) ac_try_echo=$ac_try;; |
| 3924 | esac |
| 3925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3926 | (eval "$ac_link") 2>&5 |
| 3927 | ac_status=$? |
| 3928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3929 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3930 | { (case "(($ac_try" in |
| 3931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3932 | *) ac_try_echo=$ac_try;; |
| 3933 | esac |
| 3934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3935 | (eval "$ac_try") 2>&5 |
| 3936 | ac_status=$? |
| 3937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3938 | (exit $ac_status); }; }; then |
| 3939 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3940 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3941 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3942 | echo "$as_me: failed program was:" >&5 |
| 3943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3944 | |
| 3945 | ( exit $ac_status ) |
| 3946 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3947 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3948 | 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] | 3949 | fi |
| 3950 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3951 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3952 | fi |
| 3953 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3954 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3955 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3956 | if test $ac_cv_header_stdc = yes; then |
| 3957 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3958 | cat >>confdefs.h <<\_ACEOF |
| 3959 | #define STDC_HEADERS 1 |
| 3960 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3961 | |
| 3962 | fi |
| 3963 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3964 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3965 | |
| 3966 | |
| 3967 | |
| 3968 | |
| 3969 | |
| 3970 | |
| 3971 | |
| 3972 | |
| 3973 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3974 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3975 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3976 | do |
| 3977 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3978 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3979 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3980 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3982 | else |
| 3983 | cat >conftest.$ac_ext <<_ACEOF |
| 3984 | /* confdefs.h. */ |
| 3985 | _ACEOF |
| 3986 | cat confdefs.h >>conftest.$ac_ext |
| 3987 | cat >>conftest.$ac_ext <<_ACEOF |
| 3988 | /* end confdefs.h. */ |
| 3989 | $ac_includes_default |
| 3990 | |
| 3991 | #include <$ac_header> |
| 3992 | _ACEOF |
| 3993 | rm -f conftest.$ac_objext |
| 3994 | if { (ac_try="$ac_compile" |
| 3995 | case "(($ac_try" in |
| 3996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3997 | *) ac_try_echo=$ac_try;; |
| 3998 | esac |
| 3999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4000 | (eval "$ac_compile") 2>conftest.er1 |
| 4001 | ac_status=$? |
| 4002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4003 | rm -f conftest.er1 |
| 4004 | cat conftest.err >&5 |
| 4005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4006 | (exit $ac_status); } && |
| 4007 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4008 | { (case "(($ac_try" in |
| 4009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4010 | *) ac_try_echo=$ac_try;; |
| 4011 | esac |
| 4012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4013 | (eval "$ac_try") 2>&5 |
| 4014 | ac_status=$? |
| 4015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4016 | (exit $ac_status); }; } && |
| 4017 | { ac_try='test -s conftest.$ac_objext' |
| 4018 | { (case "(($ac_try" in |
| 4019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4020 | *) ac_try_echo=$ac_try;; |
| 4021 | esac |
| 4022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4023 | (eval "$ac_try") 2>&5 |
| 4024 | ac_status=$? |
| 4025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4026 | (exit $ac_status); }; }; then |
| 4027 | eval "$as_ac_Header=yes" |
| 4028 | else |
| 4029 | echo "$as_me: failed program was:" >&5 |
| 4030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4031 | |
| 4032 | eval "$as_ac_Header=no" |
| 4033 | fi |
| 4034 | |
| 4035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4036 | fi |
| 4037 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4038 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4039 | echo "${ECHO_T}$ac_res" >&6; } |
| 4040 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4041 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4042 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4043 | _ACEOF |
| 4044 | |
| 4045 | fi |
| 4046 | |
| 4047 | done |
| 4048 | |
| 4049 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4050 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4051 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4052 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4054 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4055 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4056 | cat >conftest.$ac_ext <<_ACEOF |
| 4057 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4058 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4059 | cat confdefs.h >>conftest.$ac_ext |
| 4060 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4061 | /* end confdefs.h. */ |
| 4062 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4063 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4064 | |
| 4065 | int |
| 4066 | main () |
| 4067 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4068 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4069 | bogus endian macros |
| 4070 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4071 | |
| 4072 | ; |
| 4073 | return 0; |
| 4074 | } |
| 4075 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4076 | rm -f conftest.$ac_objext |
| 4077 | if { (ac_try="$ac_compile" |
| 4078 | case "(($ac_try" in |
| 4079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4080 | *) ac_try_echo=$ac_try;; |
| 4081 | esac |
| 4082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4083 | (eval "$ac_compile") 2>conftest.er1 |
| 4084 | ac_status=$? |
| 4085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4086 | rm -f conftest.er1 |
| 4087 | cat conftest.err >&5 |
| 4088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4089 | (exit $ac_status); } && |
| 4090 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4091 | { (case "(($ac_try" in |
| 4092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4093 | *) ac_try_echo=$ac_try;; |
| 4094 | esac |
| 4095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4096 | (eval "$ac_try") 2>&5 |
| 4097 | ac_status=$? |
| 4098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4099 | (exit $ac_status); }; } && |
| 4100 | { ac_try='test -s conftest.$ac_objext' |
| 4101 | { (case "(($ac_try" in |
| 4102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4103 | *) ac_try_echo=$ac_try;; |
| 4104 | esac |
| 4105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4106 | (eval "$ac_try") 2>&5 |
| 4107 | ac_status=$? |
| 4108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4109 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4110 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4111 | cat >conftest.$ac_ext <<_ACEOF |
| 4112 | /* confdefs.h. */ |
| 4113 | _ACEOF |
| 4114 | cat confdefs.h >>conftest.$ac_ext |
| 4115 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4116 | /* end confdefs.h. */ |
| 4117 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4118 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4119 | |
| 4120 | int |
| 4121 | main () |
| 4122 | { |
| 4123 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4124 | not big endian |
| 4125 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4126 | |
| 4127 | ; |
| 4128 | return 0; |
| 4129 | } |
| 4130 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4131 | rm -f conftest.$ac_objext |
| 4132 | if { (ac_try="$ac_compile" |
| 4133 | case "(($ac_try" in |
| 4134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4135 | *) ac_try_echo=$ac_try;; |
| 4136 | esac |
| 4137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4138 | (eval "$ac_compile") 2>conftest.er1 |
| 4139 | ac_status=$? |
| 4140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4141 | rm -f conftest.er1 |
| 4142 | cat conftest.err >&5 |
| 4143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4144 | (exit $ac_status); } && |
| 4145 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4146 | { (case "(($ac_try" in |
| 4147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4148 | *) ac_try_echo=$ac_try;; |
| 4149 | esac |
| 4150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4151 | (eval "$ac_try") 2>&5 |
| 4152 | ac_status=$? |
| 4153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4154 | (exit $ac_status); }; } && |
| 4155 | { ac_try='test -s conftest.$ac_objext' |
| 4156 | { (case "(($ac_try" in |
| 4157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4158 | *) ac_try_echo=$ac_try;; |
| 4159 | esac |
| 4160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4161 | (eval "$ac_try") 2>&5 |
| 4162 | ac_status=$? |
| 4163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4164 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4165 | ac_cv_c_bigendian=yes |
| 4166 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4167 | echo "$as_me: failed program was:" >&5 |
| 4168 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4169 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4170 | ac_cv_c_bigendian=no |
| 4171 | fi |
| 4172 | |
| 4173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4174 | else |
| 4175 | echo "$as_me: failed program was:" >&5 |
| 4176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4177 | |
| 4178 | # It does not; compile a test program. |
| 4179 | if test "$cross_compiling" = yes; then |
| 4180 | # try to guess the endianness by grepping values into an object file |
| 4181 | ac_cv_c_bigendian=unknown |
| 4182 | cat >conftest.$ac_ext <<_ACEOF |
| 4183 | /* confdefs.h. */ |
| 4184 | _ACEOF |
| 4185 | cat confdefs.h >>conftest.$ac_ext |
| 4186 | cat >>conftest.$ac_ext <<_ACEOF |
| 4187 | /* end confdefs.h. */ |
| 4188 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4189 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4190 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4191 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4192 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4193 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4194 | int |
| 4195 | main () |
| 4196 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4197 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4198 | ; |
| 4199 | return 0; |
| 4200 | } |
| 4201 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4202 | rm -f conftest.$ac_objext |
| 4203 | if { (ac_try="$ac_compile" |
| 4204 | case "(($ac_try" in |
| 4205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4206 | *) ac_try_echo=$ac_try;; |
| 4207 | esac |
| 4208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4209 | (eval "$ac_compile") 2>conftest.er1 |
| 4210 | ac_status=$? |
| 4211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4212 | rm -f conftest.er1 |
| 4213 | cat conftest.err >&5 |
| 4214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4215 | (exit $ac_status); } && |
| 4216 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4217 | { (case "(($ac_try" in |
| 4218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4219 | *) ac_try_echo=$ac_try;; |
| 4220 | esac |
| 4221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4222 | (eval "$ac_try") 2>&5 |
| 4223 | ac_status=$? |
| 4224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4225 | (exit $ac_status); }; } && |
| 4226 | { ac_try='test -s conftest.$ac_objext' |
| 4227 | { (case "(($ac_try" in |
| 4228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4229 | *) ac_try_echo=$ac_try;; |
| 4230 | esac |
| 4231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4232 | (eval "$ac_try") 2>&5 |
| 4233 | ac_status=$? |
| 4234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4235 | (exit $ac_status); }; }; then |
| 4236 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4237 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4238 | fi |
| 4239 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4240 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4241 | ac_cv_c_bigendian=no |
| 4242 | else |
| 4243 | # finding both strings is unlikely to happen, but who knows? |
| 4244 | ac_cv_c_bigendian=unknown |
| 4245 | fi |
| 4246 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4247 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4248 | echo "$as_me: failed program was:" >&5 |
| 4249 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4250 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4251 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4252 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4253 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4255 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4256 | cat >conftest.$ac_ext <<_ACEOF |
| 4257 | /* confdefs.h. */ |
| 4258 | _ACEOF |
| 4259 | cat confdefs.h >>conftest.$ac_ext |
| 4260 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4261 | /* end confdefs.h. */ |
| 4262 | $ac_includes_default |
| 4263 | int |
| 4264 | main () |
| 4265 | { |
| 4266 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4267 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4268 | union |
| 4269 | { |
| 4270 | long int l; |
| 4271 | char c[sizeof (long int)]; |
| 4272 | } u; |
| 4273 | u.l = 1; |
| 4274 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4275 | |
| 4276 | ; |
| 4277 | return 0; |
| 4278 | } |
| 4279 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4280 | rm -f conftest$ac_exeext |
| 4281 | if { (ac_try="$ac_link" |
| 4282 | case "(($ac_try" in |
| 4283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4284 | *) ac_try_echo=$ac_try;; |
| 4285 | esac |
| 4286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4287 | (eval "$ac_link") 2>&5 |
| 4288 | ac_status=$? |
| 4289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4290 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4291 | { (case "(($ac_try" in |
| 4292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4293 | *) ac_try_echo=$ac_try;; |
| 4294 | esac |
| 4295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4296 | (eval "$ac_try") 2>&5 |
| 4297 | ac_status=$? |
| 4298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4299 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4300 | ac_cv_c_bigendian=no |
| 4301 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4302 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4303 | echo "$as_me: failed program was:" >&5 |
| 4304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4305 | |
| 4306 | ( exit $ac_status ) |
| 4307 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4308 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4309 | 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] | 4310 | fi |
| 4311 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4312 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4313 | fi |
| 4314 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4316 | fi |
| 4317 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4318 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4319 | case $ac_cv_c_bigendian in |
| 4320 | yes) |
| 4321 | ENDIAN=big |
| 4322 | ;; |
| 4323 | no) |
| 4324 | ENDIAN=little |
| 4325 | ;; |
| 4326 | *) |
| 4327 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4328 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4329 | echo "$as_me: error: unknown endianness |
| 4330 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4331 | { (exit 1); exit 1; }; } ;; |
| 4332 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4333 | |
| 4334 | |
| 4335 | if test "$cross_compiling" = yes; then |
| 4336 | LLVM_CROSS_COMPILING=1 |
| 4337 | |
| 4338 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4339 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4340 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4341 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4343 | else |
| 4344 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4345 | ac_cv_build_exeext=.exe |
| 4346 | else |
| 4347 | ac_build_prefix=${build_alias}- |
| 4348 | |
| 4349 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4350 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4351 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4352 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4353 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4355 | else |
| 4356 | if test -n "$BUILD_CC"; then |
| 4357 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4358 | else |
| 4359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4360 | for as_dir in $PATH |
| 4361 | do |
| 4362 | IFS=$as_save_IFS |
| 4363 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4364 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4365 | 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] | 4366 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4367 | 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] | 4368 | break 2 |
| 4369 | fi |
| 4370 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4371 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4372 | IFS=$as_save_IFS |
| 4373 | |
| 4374 | fi |
| 4375 | fi |
| 4376 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4377 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4378 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4379 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4380 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4381 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4382 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4383 | fi |
| 4384 | |
| 4385 | |
| 4386 | if test -z "$BUILD_CC"; then |
| 4387 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4388 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4389 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4390 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4391 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4393 | else |
| 4394 | if test -n "$BUILD_CC"; then |
| 4395 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4396 | else |
| 4397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4398 | for as_dir in $PATH |
| 4399 | do |
| 4400 | IFS=$as_save_IFS |
| 4401 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4402 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4403 | 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] | 4404 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4405 | 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] | 4406 | break 2 |
| 4407 | fi |
| 4408 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4409 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4410 | IFS=$as_save_IFS |
| 4411 | |
| 4412 | fi |
| 4413 | fi |
| 4414 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4415 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4416 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4417 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4418 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4419 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4420 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4421 | fi |
| 4422 | |
| 4423 | |
| 4424 | if test -z "$BUILD_CC"; then |
| 4425 | # Extract the first word of "cc", so it can be a program name with args. |
| 4426 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4427 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4428 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4429 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4431 | else |
| 4432 | if test -n "$BUILD_CC"; then |
| 4433 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4434 | else |
| 4435 | ac_prog_rejected=no |
| 4436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4437 | for as_dir in $PATH |
| 4438 | do |
| 4439 | IFS=$as_save_IFS |
| 4440 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4441 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4442 | 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] | 4443 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4444 | ac_prog_rejected=yes |
| 4445 | continue |
| 4446 | fi |
| 4447 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4448 | 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] | 4449 | break 2 |
| 4450 | fi |
| 4451 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4452 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4453 | IFS=$as_save_IFS |
| 4454 | |
| 4455 | if test $ac_prog_rejected = yes; then |
| 4456 | # We found a bogon in the path, so make sure we never use it. |
| 4457 | set dummy $ac_cv_prog_BUILD_CC |
| 4458 | shift |
| 4459 | if test $# != 0; then |
| 4460 | # We chose a different compiler from the bogus one. |
| 4461 | # However, it has the same basename, so the bogon will be chosen |
| 4462 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4463 | shift |
| 4464 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4465 | fi |
| 4466 | fi |
| 4467 | fi |
| 4468 | fi |
| 4469 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4470 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4471 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4472 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4473 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4474 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4475 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4476 | fi |
| 4477 | |
| 4478 | |
| 4479 | fi |
| 4480 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4481 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4482 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4483 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4484 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4485 | rm -f conftest* |
| 4486 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4487 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4488 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4489 | (eval $ac_build_link) 2>&5 |
| 4490 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4492 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4493 | for file in conftest.*; do |
| 4494 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4495 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4496 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4497 | esac |
| 4498 | done |
| 4499 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4500 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4501 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4502 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4503 | fi |
| 4504 | rm -f conftest* |
| 4505 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4506 | fi |
| 4507 | fi |
| 4508 | |
| 4509 | BUILD_EXEEXT="" |
| 4510 | 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] | 4511 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4512 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4513 | ac_build_exeext=$BUILD_EXEEXT |
| 4514 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4515 | ac_build_prefix=${build_alias}- |
| 4516 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4517 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4518 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4519 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4520 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4522 | else |
| 4523 | if test -n "$BUILD_CXX"; then |
| 4524 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4525 | else |
| 4526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4527 | for as_dir in $PATH |
| 4528 | do |
| 4529 | IFS=$as_save_IFS |
| 4530 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4531 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4532 | 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] | 4533 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4534 | 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] | 4535 | break 2 |
| 4536 | fi |
| 4537 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4538 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4539 | IFS=$as_save_IFS |
| 4540 | |
| 4541 | fi |
| 4542 | fi |
| 4543 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4544 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4545 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4546 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4547 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4548 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4549 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4550 | fi |
| 4551 | |
| 4552 | |
| 4553 | if test -z "$BUILD_CXX"; then |
| 4554 | # Extract the first word of "g++", so it can be a program name with args. |
| 4555 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4556 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4557 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4558 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4560 | else |
| 4561 | if test -n "$BUILD_CXX"; then |
| 4562 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4563 | else |
| 4564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4565 | for as_dir in $PATH |
| 4566 | do |
| 4567 | IFS=$as_save_IFS |
| 4568 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4569 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4570 | 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] | 4571 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4572 | 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] | 4573 | break 2 |
| 4574 | fi |
| 4575 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4576 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4577 | IFS=$as_save_IFS |
| 4578 | |
| 4579 | fi |
| 4580 | fi |
| 4581 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4582 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4583 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4584 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4585 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4586 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4587 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4588 | fi |
| 4589 | |
| 4590 | |
| 4591 | if test -z "$BUILD_CXX"; then |
| 4592 | # Extract the first word of "c++", so it can be a program name with args. |
| 4593 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4594 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4595 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4596 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4598 | else |
| 4599 | if test -n "$BUILD_CXX"; then |
| 4600 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4601 | else |
| 4602 | ac_prog_rejected=no |
| 4603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4604 | for as_dir in $PATH |
| 4605 | do |
| 4606 | IFS=$as_save_IFS |
| 4607 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4608 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4609 | 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] | 4610 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4611 | ac_prog_rejected=yes |
| 4612 | continue |
| 4613 | fi |
| 4614 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4615 | 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] | 4616 | break 2 |
| 4617 | fi |
| 4618 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4619 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4620 | IFS=$as_save_IFS |
| 4621 | |
| 4622 | if test $ac_prog_rejected = yes; then |
| 4623 | # We found a bogon in the path, so make sure we never use it. |
| 4624 | set dummy $ac_cv_prog_BUILD_CXX |
| 4625 | shift |
| 4626 | if test $# != 0; then |
| 4627 | # We chose a different compiler from the bogus one. |
| 4628 | # However, it has the same basename, so the bogon will be chosen |
| 4629 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4630 | shift |
| 4631 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4632 | fi |
| 4633 | fi |
| 4634 | fi |
| 4635 | fi |
| 4636 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4637 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4638 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4639 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4640 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4641 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4642 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4643 | fi |
| 4644 | |
| 4645 | |
| 4646 | fi |
| 4647 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4648 | else |
| 4649 | LLVM_CROSS_COMPILING=0 |
| 4650 | |
| 4651 | fi |
| 4652 | |
Nick Lewycky | 5b28f86 | 2009-04-10 05:18:27 +0000 | [diff] [blame] | 4653 | 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] | 4654 | cvsbuild="yes" |
| 4655 | optimize="no" |
| 4656 | CVSBUILD=CVSBUILD=1 |
| 4657 | |
| 4658 | else |
| 4659 | cvsbuild="no" |
| 4660 | optimize="yes" |
| 4661 | fi |
| 4662 | |
| 4663 | |
| 4664 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4665 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4666 | enableval=$enable_optimized; |
| 4667 | else |
| 4668 | enableval=$optimize |
| 4669 | fi |
| 4670 | |
| 4671 | if test ${enableval} = "no" ; then |
| 4672 | ENABLE_OPTIMIZED= |
| 4673 | |
| 4674 | else |
| 4675 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4676 | |
| 4677 | fi |
| 4678 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4679 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4680 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4681 | enableval=$enable_profiling; |
| 4682 | else |
| 4683 | enableval="no" |
| 4684 | fi |
| 4685 | |
| 4686 | if test ${enableval} = "no" ; then |
| 4687 | ENABLE_PROFILING= |
| 4688 | |
| 4689 | else |
| 4690 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4691 | |
| 4692 | fi |
| 4693 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4694 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4695 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4696 | enableval=$enable_assertions; |
| 4697 | else |
| 4698 | enableval="yes" |
| 4699 | fi |
| 4700 | |
| 4701 | if test ${enableval} = "yes" ; then |
| 4702 | DISABLE_ASSERTIONS= |
| 4703 | |
| 4704 | else |
| 4705 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4706 | |
| 4707 | fi |
| 4708 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4709 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4710 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4711 | enableval=$enable_expensive_checks; |
| 4712 | else |
| 4713 | enableval="no" |
| 4714 | fi |
| 4715 | |
| 4716 | if test ${enableval} = "yes" ; then |
| 4717 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4718 | |
| 4719 | EXPENSIVE_CHECKS=yes |
| 4720 | |
| 4721 | else |
| 4722 | ENABLE_EXPENSIVE_CHECKS= |
| 4723 | |
| 4724 | EXPENSIVE_CHECKS=no |
| 4725 | |
| 4726 | fi |
| 4727 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4728 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4729 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4730 | enableval=$enable_debug_runtime; |
| 4731 | else |
| 4732 | enableval=no |
| 4733 | fi |
| 4734 | |
| 4735 | if test ${enableval} = "no" ; then |
| 4736 | DEBUG_RUNTIME= |
| 4737 | |
| 4738 | else |
| 4739 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4740 | |
| 4741 | fi |
| 4742 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4743 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4744 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4745 | enableval=$enable_debug_symbols; |
| 4746 | else |
| 4747 | enableval=no |
| 4748 | fi |
| 4749 | |
| 4750 | if test ${enableval} = "no" ; then |
| 4751 | DEBUG_SYMBOLS= |
| 4752 | |
| 4753 | else |
| 4754 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 4755 | |
| 4756 | fi |
| 4757 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4758 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4759 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4760 | enableval=$enable_jit; |
| 4761 | else |
| 4762 | enableval=default |
| 4763 | fi |
| 4764 | |
| 4765 | if test ${enableval} = "no" |
| 4766 | then |
| 4767 | JIT= |
| 4768 | |
| 4769 | else |
| 4770 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4771 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4772 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4773 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4774 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4775 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4776 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4777 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4778 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4779 | Alpha) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4780 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 4781 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4782 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4783 | Mips) TARGET_HAS_JIT=0 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4784 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4785 | PIC16) TARGET_HAS_JIT=0 |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4786 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4787 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4788 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4789 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4790 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4791 | SystemZ) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4792 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4793 | Blackfin) TARGET_HAS_JIT=0 |
| 4794 | ;; |
| 4795 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4796 | ;; |
| 4797 | esac |
| 4798 | fi |
| 4799 | |
| 4800 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4801 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4802 | enableval=$enable_doxygen; |
| 4803 | else |
| 4804 | enableval=default |
| 4805 | fi |
| 4806 | |
| 4807 | case "$enableval" in |
| 4808 | yes) ENABLE_DOXYGEN=1 |
| 4809 | ;; |
| 4810 | no) ENABLE_DOXYGEN=0 |
| 4811 | ;; |
| 4812 | default) ENABLE_DOXYGEN=0 |
| 4813 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4814 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4815 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4816 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4817 | esac |
| 4818 | |
| 4819 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4820 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4821 | enableval=$enable_threads; |
| 4822 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4823 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4824 | fi |
| 4825 | |
| 4826 | case "$enableval" in |
| 4827 | yes) ENABLE_THREADS=1 |
| 4828 | ;; |
| 4829 | no) ENABLE_THREADS=0 |
| 4830 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4831 | default) ENABLE_THREADS=1 |
| 4832 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4833 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4834 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4835 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4836 | esac |
| 4837 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 4838 | cat >>confdefs.h <<_ACEOF |
| 4839 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4840 | _ACEOF |
| 4841 | |
| 4842 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4843 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4844 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4845 | enableval=$enable_pic; |
| 4846 | else |
| 4847 | enableval=default |
| 4848 | fi |
| 4849 | |
| 4850 | case "$enableval" in |
| 4851 | yes) ENABLE_PIC=1 |
| 4852 | ;; |
| 4853 | no) ENABLE_PIC=0 |
| 4854 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4855 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4856 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4857 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4858 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4859 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4860 | esac |
| 4861 | |
| 4862 | cat >>confdefs.h <<_ACEOF |
| 4863 | #define ENABLE_PIC $ENABLE_PIC |
| 4864 | _ACEOF |
| 4865 | |
| 4866 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4867 | TARGETS_TO_BUILD="" |
| 4868 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4869 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4870 | enableval=$enable_targets; |
| 4871 | else |
| 4872 | enableval=all |
| 4873 | fi |
| 4874 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4875 | if test "$enableval" = host-only ; then |
| 4876 | enableval=host |
| 4877 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4878 | case "$enableval" in |
Jakob Stoklund Olesen | 73b7bb7 | 2009-08-02 17:32:37 +0000 | [diff] [blame] | 4879 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4880 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4881 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4882 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4883 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4884 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4885 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4886 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4887 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4888 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 4889 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4890 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4891 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4892 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 4893 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 4894 | blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 4895 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 4896 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
| 4897 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4898 | host) case "$llvm_cv_target_arch" in |
| 4899 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4900 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4901 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4902 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4903 | Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4904 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4905 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 4906 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4907 | PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4908 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4909 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 6ca835d | 2010-01-05 20:45:43 +0000 | [diff] [blame] | 4910 | s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4911 | Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4912 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4913 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4914 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4915 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4916 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4917 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4918 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4919 | esac |
| 4920 | done |
| 4921 | ;; |
| 4922 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4923 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4924 | |
| 4925 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4926 | # Determine whether we are building LLVM support for the native architecture. |
| 4927 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 4928 | for a_target in $TARGETS_TO_BUILD; do |
| 4929 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4930 | LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4931 | |
| 4932 | cat >>confdefs.h <<_ACEOF |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4933 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4934 | _ACEOF |
| 4935 | |
| 4936 | fi |
| 4937 | done |
| 4938 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4939 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual |
| 4940 | # target feature def files. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4941 | LLVM_ENUM_TARGETS="" |
| 4942 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 4943 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4944 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4945 | for target_to_build in $TARGETS_TO_BUILD; do |
| 4946 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
| 4947 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then |
| 4948 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 4949 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 4950 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 4951 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 4952 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4953 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 4954 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 4955 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4956 | done |
| 4957 | |
| 4958 | |
| 4959 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 4960 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4961 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4962 | # Check whether --enable-cbe-printf-a was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4963 | if test "${enable_cbe_printf_a+set}" = set; then |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4964 | enableval=$enable_cbe_printf_a; |
| 4965 | else |
| 4966 | enableval=default |
| 4967 | fi |
| 4968 | |
| 4969 | case "$enableval" in |
| 4970 | yes) ENABLE_CBE_PRINTF_A=1 |
| 4971 | ;; |
| 4972 | no) ENABLE_CBE_PRINTF_A=0 |
| 4973 | ;; |
| 4974 | default) ENABLE_CBE_PRINTF_A=1 |
| 4975 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4976 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 4977 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 4978 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4979 | esac |
| 4980 | |
| 4981 | cat >>confdefs.h <<_ACEOF |
| 4982 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 4983 | _ACEOF |
| 4984 | |
| 4985 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4986 | |
| 4987 | # Check whether --with-llvmgccdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4988 | if test "${with_llvmgccdir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4989 | withval=$with_llvmgccdir; |
| 4990 | else |
| 4991 | withval=default |
| 4992 | fi |
| 4993 | |
| 4994 | case "$withval" in |
| 4995 | default) WITH_LLVMGCCDIR=default ;; |
| 4996 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4997 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 4998 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 4999 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5000 | esac |
| 5001 | |
| 5002 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5003 | # Check whether --with-llvmgcc was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5004 | if test "${with_llvmgcc+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5005 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 5006 | WITH_LLVMGCCDIR="" |
| 5007 | fi |
| 5008 | |
| 5009 | |
| 5010 | |
| 5011 | # Check whether --with-llvmgxx was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5012 | if test "${with_llvmgxx+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5013 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5014 | WITH_LLVMGCCDIR="" |
| 5015 | fi |
| 5016 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5017 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5018 | if test -n "$LLVMGCC"; then |
| 5019 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5020 | fi |
| 5021 | |
| 5022 | if test -n "$LLVMGXX"; then |
| 5023 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5024 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5025 | |
| 5026 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5027 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5028 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5029 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5030 | fi |
| 5031 | |
| 5032 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5033 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5034 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5035 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5036 | fi |
| 5037 | |
| 5038 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame^] | 5039 | # Check whether --with-clang was given. |
| 5040 | if test "${with_clang+set}" = set; then |
| 5041 | withval=$with_clang; |
| 5042 | else |
| 5043 | with_clang=default |
| 5044 | fi |
| 5045 | |
| 5046 | |
| 5047 | |
| 5048 | # Check whether --with-built-clang was given. |
| 5049 | if test "${with_built_clang+set}" = set; then |
| 5050 | withval=$with_built_clang; |
| 5051 | else |
| 5052 | with_built_clang=check |
| 5053 | fi |
| 5054 | |
| 5055 | |
| 5056 | { echo "$as_me:$LINENO: checking clang compiler" >&5 |
| 5057 | echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; } |
| 5058 | WITH_CLANGPATH="" |
| 5059 | WITH_BUILT_CLANG=0 |
| 5060 | if test "$with_clang" != "default"; then |
| 5061 | WITH_CLANGPATH="$with_clang" |
| 5062 | if ! test -x "$WITH_CLANGPATH"; then |
| 5063 | { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5 |
| 5064 | echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;} |
| 5065 | { (exit 1); exit 1; }; } |
| 5066 | fi |
| 5067 | elif test "$with_built_clang" = "yes"; then |
| 5068 | WITH_BUILT_CLANG=1 |
| 5069 | elif test "$with_built_clang" = "no"; then |
| 5070 | WITH_BUILT_CLANG=0 |
| 5071 | else |
| 5072 | if test "$with_built_clang" != "check"; then |
| 5073 | { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5 |
| 5074 | echo "$as_me: error: invalid value for --with-built-clang." >&2;} |
| 5075 | { (exit 1); exit 1; }; } |
| 5076 | fi |
| 5077 | |
| 5078 | if test -f ${srcdir}/tools/clang/README.txt; then |
| 5079 | WITH_BUILT_CLANG=1 |
| 5080 | fi |
| 5081 | fi |
| 5082 | |
| 5083 | if ! test -z "$WITH_CLANGPATH"; then |
| 5084 | { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5 |
| 5085 | echo "${ECHO_T}$WITH_CLANGPATH" >&6; } |
| 5086 | WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++` |
| 5087 | elif test "$WITH_BUILT_CLANG" = "1"; then |
| 5088 | { echo "$as_me:$LINENO: result: built" >&5 |
| 5089 | echo "${ECHO_T}built" >&6; } |
| 5090 | else |
| 5091 | { echo "$as_me:$LINENO: result: none" >&5 |
| 5092 | echo "${ECHO_T}none" >&6; } |
| 5093 | fi |
| 5094 | CLANGPATH=$WITH_CLANGPATH |
| 5095 | |
| 5096 | CLANGXXPATH=$WITH_CLANGXXPATH |
| 5097 | |
| 5098 | ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG |
| 5099 | |
| 5100 | |
| 5101 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5102 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5103 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5104 | withval=$with_optimize_option; |
| 5105 | else |
| 5106 | withval=default |
| 5107 | fi |
| 5108 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5109 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5110 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5111 | case "$withval" in |
| 5112 | default) |
| 5113 | case "$llvm_cv_os_type" in |
| 5114 | MingW) optimize_option=-O3 ;; |
| 5115 | *) optimize_option=-O2 ;; |
| 5116 | esac ;; |
| 5117 | *) optimize_option="$withval" ;; |
| 5118 | esac |
| 5119 | OPTIMIZE_OPTION=$optimize_option |
| 5120 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5121 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5122 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5123 | |
| 5124 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5125 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5126 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5127 | withval=$with_extra_options; |
| 5128 | else |
| 5129 | withval=default |
| 5130 | fi |
| 5131 | |
| 5132 | case "$withval" in |
| 5133 | default) EXTRA_OPTIONS= ;; |
| 5134 | *) EXTRA_OPTIONS=$withval ;; |
| 5135 | esac |
| 5136 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5137 | |
| 5138 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5139 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5140 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5141 | enableval=$enable_bindings; |
| 5142 | else |
| 5143 | enableval=default |
| 5144 | fi |
| 5145 | |
| 5146 | BINDINGS_TO_BUILD="" |
| 5147 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5148 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5149 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5150 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5151 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5152 | case "$a_binding" in |
| 5153 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5154 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5155 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5156 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5157 | esac |
| 5158 | done |
| 5159 | ;; |
| 5160 | esac |
| 5161 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5162 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5163 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5164 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5165 | withval=$with_ocaml_libdir; |
| 5166 | else |
| 5167 | withval=auto |
| 5168 | fi |
| 5169 | |
| 5170 | case "$withval" in |
| 5171 | auto) with_ocaml_libdir="$withval" ;; |
| 5172 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5173 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5174 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5175 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5176 | esac |
| 5177 | |
| 5178 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5179 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5180 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5181 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5182 | else |
| 5183 | withval="" |
| 5184 | fi |
| 5185 | |
| 5186 | |
| 5187 | cat >>confdefs.h <<_ACEOF |
| 5188 | #define C_INCLUDE_DIRS "$withval" |
| 5189 | _ACEOF |
| 5190 | |
| 5191 | |
| 5192 | |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5193 | # Check whether --with-cxx-include-root was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5194 | if test "${with_cxx_include_root+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5195 | withval=$with_cxx_include_root; |
| 5196 | else |
| 5197 | withval="" |
| 5198 | fi |
| 5199 | |
| 5200 | |
| 5201 | cat >>confdefs.h <<_ACEOF |
| 5202 | #define CXX_INCLUDE_ROOT "$withval" |
| 5203 | _ACEOF |
| 5204 | |
| 5205 | |
| 5206 | |
| 5207 | # Check whether --with-cxx-include-arch was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5208 | if test "${with_cxx_include_arch+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5209 | withval=$with_cxx_include_arch; |
| 5210 | else |
| 5211 | withval="" |
| 5212 | fi |
| 5213 | |
| 5214 | |
| 5215 | cat >>confdefs.h <<_ACEOF |
| 5216 | #define CXX_INCLUDE_ARCH "$withval" |
| 5217 | _ACEOF |
| 5218 | |
| 5219 | |
| 5220 | |
| 5221 | # Check whether --with-cxx-include-32bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5222 | if test "${with_cxx_include_32bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5223 | withval=$with_cxx_include_32bit_dir; |
| 5224 | else |
| 5225 | withval="" |
| 5226 | fi |
| 5227 | |
| 5228 | |
| 5229 | cat >>confdefs.h <<_ACEOF |
| 5230 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5231 | _ACEOF |
| 5232 | |
| 5233 | |
| 5234 | |
| 5235 | # Check whether --with-cxx-include-64bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5236 | if test "${with_cxx_include_64bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5237 | withval=$with_cxx_include_64bit_dir; |
| 5238 | else |
| 5239 | withval="" |
| 5240 | fi |
| 5241 | |
| 5242 | |
| 5243 | cat >>confdefs.h <<_ACEOF |
| 5244 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5245 | _ACEOF |
| 5246 | |
| 5247 | |
| 5248 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5249 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5250 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5251 | withval=$with_binutils_include; |
| 5252 | else |
| 5253 | withval=default |
| 5254 | fi |
| 5255 | |
| 5256 | case "$withval" in |
| 5257 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5258 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5259 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5260 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5261 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5262 | esac |
| 5263 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5264 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5265 | |
| 5266 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5267 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5268 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5269 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5270 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5271 | fi |
| 5272 | fi |
| 5273 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5274 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5275 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5276 | enableval=$enable_libffi; case "$enableval" in |
| 5277 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5278 | no) llvm_cv_enable_libffi="no" ;; |
| 5279 | *) { { 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] | 5280 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5281 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5282 | esac |
| 5283 | else |
| 5284 | llvm_cv_enable_libffi=no |
| 5285 | fi |
| 5286 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5287 | |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5288 | if test "$llvm_cv_os_type" = "Win32" ; then |
| 5289 | llvmc_dynamic="yes" |
| 5290 | else |
| 5291 | llvmc_dynamic="no" |
| 5292 | fi |
| 5293 | |
| 5294 | # Check whether --enable-llvmc-dynamic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5295 | if test "${enable_llvmc_dynamic+set}" = set; then |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5296 | enableval=$enable_llvmc_dynamic; |
| 5297 | else |
| 5298 | enableval=$llvmc_dynamic |
| 5299 | fi |
| 5300 | |
| 5301 | if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then |
| 5302 | ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1 |
| 5303 | |
| 5304 | else |
| 5305 | ENABLE_LLVMC_DYNAMIC= |
| 5306 | |
| 5307 | fi |
| 5308 | |
| 5309 | # Check whether --enable-llvmc-dynamic-plugins was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5310 | if test "${enable_llvmc_dynamic_plugins+set}" = set; then |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5311 | enableval=$enable_llvmc_dynamic_plugins; |
| 5312 | else |
| 5313 | enableval=yes |
| 5314 | fi |
| 5315 | |
| 5316 | if test ${enableval} = "yes" ; then |
| 5317 | ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1 |
| 5318 | |
| 5319 | else |
| 5320 | ENABLE_LLVMC_DYNAMIC_PLUGINS= |
| 5321 | |
| 5322 | fi |
| 5323 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5324 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5325 | ac_ext=c |
| 5326 | ac_cpp='$CPP $CPPFLAGS' |
| 5327 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5328 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5329 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5330 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5331 | 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] | 5332 | # On Suns, sometimes $CPP names a directory. |
| 5333 | if test -n "$CPP" && test -d "$CPP"; then |
| 5334 | CPP= |
| 5335 | fi |
| 5336 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5337 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5339 | else |
| 5340 | # Double quotes because CPP needs to be expanded |
| 5341 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5342 | do |
| 5343 | ac_preproc_ok=false |
| 5344 | for ac_c_preproc_warn_flag in '' yes |
| 5345 | do |
| 5346 | # Use a header file that comes with gcc, so configuring glibc |
| 5347 | # with a fresh cross-compiler works. |
| 5348 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5349 | # <limits.h> exists even on freestanding compilers. |
| 5350 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5351 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5352 | cat >conftest.$ac_ext <<_ACEOF |
| 5353 | /* confdefs.h. */ |
| 5354 | _ACEOF |
| 5355 | cat confdefs.h >>conftest.$ac_ext |
| 5356 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5357 | /* end confdefs.h. */ |
| 5358 | #ifdef __STDC__ |
| 5359 | # include <limits.h> |
| 5360 | #else |
| 5361 | # include <assert.h> |
| 5362 | #endif |
| 5363 | Syntax error |
| 5364 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5365 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5366 | case "(($ac_try" in |
| 5367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5368 | *) ac_try_echo=$ac_try;; |
| 5369 | esac |
| 5370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5371 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5372 | ac_status=$? |
| 5373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5374 | rm -f conftest.er1 |
| 5375 | cat conftest.err >&5 |
| 5376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5377 | (exit $ac_status); } >/dev/null; then |
| 5378 | if test -s conftest.err; then |
| 5379 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5380 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5381 | else |
| 5382 | ac_cpp_err= |
| 5383 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5384 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5385 | ac_cpp_err=yes |
| 5386 | fi |
| 5387 | if test -z "$ac_cpp_err"; then |
| 5388 | : |
| 5389 | else |
| 5390 | echo "$as_me: failed program was:" >&5 |
| 5391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5392 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5393 | # Broken: fails on valid input. |
| 5394 | continue |
| 5395 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5396 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5397 | rm -f conftest.err conftest.$ac_ext |
| 5398 | |
| 5399 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5400 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5401 | cat >conftest.$ac_ext <<_ACEOF |
| 5402 | /* confdefs.h. */ |
| 5403 | _ACEOF |
| 5404 | cat confdefs.h >>conftest.$ac_ext |
| 5405 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5406 | /* end confdefs.h. */ |
| 5407 | #include <ac_nonexistent.h> |
| 5408 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5409 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5410 | case "(($ac_try" in |
| 5411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5412 | *) ac_try_echo=$ac_try;; |
| 5413 | esac |
| 5414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5415 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5416 | ac_status=$? |
| 5417 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5418 | rm -f conftest.er1 |
| 5419 | cat conftest.err >&5 |
| 5420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5421 | (exit $ac_status); } >/dev/null; then |
| 5422 | if test -s conftest.err; then |
| 5423 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5424 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5425 | else |
| 5426 | ac_cpp_err= |
| 5427 | fi |
| 5428 | else |
| 5429 | ac_cpp_err=yes |
| 5430 | fi |
| 5431 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5432 | # Broken: success on invalid input. |
| 5433 | continue |
| 5434 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5435 | echo "$as_me: failed program was:" >&5 |
| 5436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5437 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5438 | # Passes both tests. |
| 5439 | ac_preproc_ok=: |
| 5440 | break |
| 5441 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5442 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5443 | rm -f conftest.err conftest.$ac_ext |
| 5444 | |
| 5445 | done |
| 5446 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5447 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5448 | if $ac_preproc_ok; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5449 | break |
| 5450 | fi |
| 5451 | |
| 5452 | done |
| 5453 | ac_cv_prog_CPP=$CPP |
| 5454 | |
| 5455 | fi |
| 5456 | CPP=$ac_cv_prog_CPP |
| 5457 | else |
| 5458 | ac_cv_prog_CPP=$CPP |
| 5459 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5460 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5461 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5462 | ac_preproc_ok=false |
| 5463 | for ac_c_preproc_warn_flag in '' yes |
| 5464 | do |
| 5465 | # Use a header file that comes with gcc, so configuring glibc |
| 5466 | # with a fresh cross-compiler works. |
| 5467 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5468 | # <limits.h> exists even on freestanding compilers. |
| 5469 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5470 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5471 | cat >conftest.$ac_ext <<_ACEOF |
| 5472 | /* confdefs.h. */ |
| 5473 | _ACEOF |
| 5474 | cat confdefs.h >>conftest.$ac_ext |
| 5475 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5476 | /* end confdefs.h. */ |
| 5477 | #ifdef __STDC__ |
| 5478 | # include <limits.h> |
| 5479 | #else |
| 5480 | # include <assert.h> |
| 5481 | #endif |
| 5482 | Syntax error |
| 5483 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5484 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5485 | case "(($ac_try" in |
| 5486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5487 | *) ac_try_echo=$ac_try;; |
| 5488 | esac |
| 5489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5490 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5491 | ac_status=$? |
| 5492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5493 | rm -f conftest.er1 |
| 5494 | cat conftest.err >&5 |
| 5495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5496 | (exit $ac_status); } >/dev/null; then |
| 5497 | if test -s conftest.err; then |
| 5498 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5499 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5500 | else |
| 5501 | ac_cpp_err= |
| 5502 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5503 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5504 | ac_cpp_err=yes |
| 5505 | fi |
| 5506 | if test -z "$ac_cpp_err"; then |
| 5507 | : |
| 5508 | else |
| 5509 | echo "$as_me: failed program was:" >&5 |
| 5510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5511 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5512 | # Broken: fails on valid input. |
| 5513 | continue |
| 5514 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5515 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5516 | rm -f conftest.err conftest.$ac_ext |
| 5517 | |
| 5518 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5519 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5520 | cat >conftest.$ac_ext <<_ACEOF |
| 5521 | /* confdefs.h. */ |
| 5522 | _ACEOF |
| 5523 | cat confdefs.h >>conftest.$ac_ext |
| 5524 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5525 | /* end confdefs.h. */ |
| 5526 | #include <ac_nonexistent.h> |
| 5527 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5528 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5529 | case "(($ac_try" in |
| 5530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5531 | *) ac_try_echo=$ac_try;; |
| 5532 | esac |
| 5533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5534 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5535 | ac_status=$? |
| 5536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5537 | rm -f conftest.er1 |
| 5538 | cat conftest.err >&5 |
| 5539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5540 | (exit $ac_status); } >/dev/null; then |
| 5541 | if test -s conftest.err; then |
| 5542 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5543 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5544 | else |
| 5545 | ac_cpp_err= |
| 5546 | fi |
| 5547 | else |
| 5548 | ac_cpp_err=yes |
| 5549 | fi |
| 5550 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5551 | # Broken: success on invalid input. |
| 5552 | continue |
| 5553 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5554 | echo "$as_me: failed program was:" >&5 |
| 5555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5556 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5557 | # Passes both tests. |
| 5558 | ac_preproc_ok=: |
| 5559 | break |
| 5560 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5561 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5562 | rm -f conftest.err conftest.$ac_ext |
| 5563 | |
| 5564 | done |
| 5565 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5566 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5567 | if $ac_preproc_ok; then |
| 5568 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5569 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5570 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5571 | See \`config.log' for more details." >&5 |
| 5572 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5573 | See \`config.log' for more details." >&2;} |
| 5574 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5575 | fi |
| 5576 | |
| 5577 | ac_ext=c |
| 5578 | ac_cpp='$CPP $CPPFLAGS' |
| 5579 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5580 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5581 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5582 | |
| 5583 | ac_ext=c |
| 5584 | ac_cpp='$CPP $CPPFLAGS' |
| 5585 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5586 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5587 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5588 | if test -n "$ac_tool_prefix"; then |
| 5589 | for ac_prog in gcc |
| 5590 | do |
| 5591 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5592 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5593 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5595 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5597 | else |
| 5598 | if test -n "$CC"; then |
| 5599 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5600 | else |
| 5601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5602 | for as_dir in $PATH |
| 5603 | do |
| 5604 | IFS=$as_save_IFS |
| 5605 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5606 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5607 | 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] | 5608 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5609 | 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] | 5610 | break 2 |
| 5611 | fi |
| 5612 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5613 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5614 | IFS=$as_save_IFS |
| 5615 | |
| 5616 | fi |
| 5617 | fi |
| 5618 | CC=$ac_cv_prog_CC |
| 5619 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5620 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5621 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5622 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5623 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5624 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5625 | fi |
| 5626 | |
| 5627 | |
| 5628 | test -n "$CC" && break |
| 5629 | done |
| 5630 | fi |
| 5631 | if test -z "$CC"; then |
| 5632 | ac_ct_CC=$CC |
| 5633 | for ac_prog in gcc |
| 5634 | do |
| 5635 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5636 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5637 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5639 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5641 | else |
| 5642 | if test -n "$ac_ct_CC"; then |
| 5643 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5644 | else |
| 5645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5646 | for as_dir in $PATH |
| 5647 | do |
| 5648 | IFS=$as_save_IFS |
| 5649 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5650 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5651 | 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] | 5652 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5653 | 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] | 5654 | break 2 |
| 5655 | fi |
| 5656 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5657 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5658 | IFS=$as_save_IFS |
| 5659 | |
| 5660 | fi |
| 5661 | fi |
| 5662 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5663 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5664 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5665 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5666 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5667 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5668 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5669 | fi |
| 5670 | |
| 5671 | |
| 5672 | test -n "$ac_ct_CC" && break |
| 5673 | done |
| 5674 | |
| 5675 | if test "x$ac_ct_CC" = x; then |
| 5676 | CC="" |
| 5677 | else |
| 5678 | case $cross_compiling:$ac_tool_warned in |
| 5679 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5680 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5681 | whose name does not start with the host triplet. If you think this |
| 5682 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5683 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5684 | whose name does not start with the host triplet. If you think this |
| 5685 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5686 | ac_tool_warned=yes ;; |
| 5687 | esac |
| 5688 | CC=$ac_ct_CC |
| 5689 | fi |
| 5690 | fi |
| 5691 | |
| 5692 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5693 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5694 | See \`config.log' for more details." >&5 |
| 5695 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5696 | See \`config.log' for more details." >&2;} |
| 5697 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5698 | |
| 5699 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5700 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5701 | ac_compiler=`set X $ac_compile; echo $2` |
| 5702 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5703 | case "(($ac_try" in |
| 5704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5705 | *) ac_try_echo=$ac_try;; |
| 5706 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5708 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5709 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5711 | (exit $ac_status); } |
| 5712 | { (ac_try="$ac_compiler -v >&5" |
| 5713 | case "(($ac_try" in |
| 5714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5715 | *) ac_try_echo=$ac_try;; |
| 5716 | esac |
| 5717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5718 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5719 | ac_status=$? |
| 5720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5721 | (exit $ac_status); } |
| 5722 | { (ac_try="$ac_compiler -V >&5" |
| 5723 | case "(($ac_try" in |
| 5724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5725 | *) ac_try_echo=$ac_try;; |
| 5726 | esac |
| 5727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5728 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5729 | ac_status=$? |
| 5730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5731 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5732 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5733 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5734 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5735 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5737 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5738 | cat >conftest.$ac_ext <<_ACEOF |
| 5739 | /* confdefs.h. */ |
| 5740 | _ACEOF |
| 5741 | cat confdefs.h >>conftest.$ac_ext |
| 5742 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5743 | /* end confdefs.h. */ |
| 5744 | |
| 5745 | int |
| 5746 | main () |
| 5747 | { |
| 5748 | #ifndef __GNUC__ |
| 5749 | choke me |
| 5750 | #endif |
| 5751 | |
| 5752 | ; |
| 5753 | return 0; |
| 5754 | } |
| 5755 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5756 | rm -f conftest.$ac_objext |
| 5757 | if { (ac_try="$ac_compile" |
| 5758 | case "(($ac_try" in |
| 5759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5760 | *) ac_try_echo=$ac_try;; |
| 5761 | esac |
| 5762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5763 | (eval "$ac_compile") 2>conftest.er1 |
| 5764 | ac_status=$? |
| 5765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5766 | rm -f conftest.er1 |
| 5767 | cat conftest.err >&5 |
| 5768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5769 | (exit $ac_status); } && |
| 5770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5771 | { (case "(($ac_try" in |
| 5772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5773 | *) ac_try_echo=$ac_try;; |
| 5774 | esac |
| 5775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5776 | (eval "$ac_try") 2>&5 |
| 5777 | ac_status=$? |
| 5778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5779 | (exit $ac_status); }; } && |
| 5780 | { ac_try='test -s conftest.$ac_objext' |
| 5781 | { (case "(($ac_try" in |
| 5782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5783 | *) ac_try_echo=$ac_try;; |
| 5784 | esac |
| 5785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5786 | (eval "$ac_try") 2>&5 |
| 5787 | ac_status=$? |
| 5788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5789 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5790 | ac_compiler_gnu=yes |
| 5791 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5792 | echo "$as_me: failed program was:" >&5 |
| 5793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5794 | |
| 5795 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5796 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5797 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5799 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5800 | |
| 5801 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5802 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5803 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5804 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5805 | ac_test_CFLAGS=${CFLAGS+set} |
| 5806 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5807 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5808 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5809 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5811 | else |
| 5812 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5813 | ac_c_werror_flag=yes |
| 5814 | ac_cv_prog_cc_g=no |
| 5815 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5816 | cat >conftest.$ac_ext <<_ACEOF |
| 5817 | /* confdefs.h. */ |
| 5818 | _ACEOF |
| 5819 | cat confdefs.h >>conftest.$ac_ext |
| 5820 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5821 | /* end confdefs.h. */ |
| 5822 | |
| 5823 | int |
| 5824 | main () |
| 5825 | { |
| 5826 | |
| 5827 | ; |
| 5828 | return 0; |
| 5829 | } |
| 5830 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5831 | rm -f conftest.$ac_objext |
| 5832 | if { (ac_try="$ac_compile" |
| 5833 | case "(($ac_try" in |
| 5834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5835 | *) ac_try_echo=$ac_try;; |
| 5836 | esac |
| 5837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5838 | (eval "$ac_compile") 2>conftest.er1 |
| 5839 | ac_status=$? |
| 5840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5841 | rm -f conftest.er1 |
| 5842 | cat conftest.err >&5 |
| 5843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5844 | (exit $ac_status); } && |
| 5845 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5846 | { (case "(($ac_try" in |
| 5847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5848 | *) ac_try_echo=$ac_try;; |
| 5849 | esac |
| 5850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5851 | (eval "$ac_try") 2>&5 |
| 5852 | ac_status=$? |
| 5853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5854 | (exit $ac_status); }; } && |
| 5855 | { ac_try='test -s conftest.$ac_objext' |
| 5856 | { (case "(($ac_try" in |
| 5857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5858 | *) ac_try_echo=$ac_try;; |
| 5859 | esac |
| 5860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5861 | (eval "$ac_try") 2>&5 |
| 5862 | ac_status=$? |
| 5863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5864 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5865 | ac_cv_prog_cc_g=yes |
| 5866 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5867 | echo "$as_me: failed program was:" >&5 |
| 5868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5869 | |
| 5870 | CFLAGS="" |
| 5871 | cat >conftest.$ac_ext <<_ACEOF |
| 5872 | /* confdefs.h. */ |
| 5873 | _ACEOF |
| 5874 | cat confdefs.h >>conftest.$ac_ext |
| 5875 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5876 | /* end confdefs.h. */ |
| 5877 | |
| 5878 | int |
| 5879 | main () |
| 5880 | { |
| 5881 | |
| 5882 | ; |
| 5883 | return 0; |
| 5884 | } |
| 5885 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5886 | rm -f conftest.$ac_objext |
| 5887 | if { (ac_try="$ac_compile" |
| 5888 | case "(($ac_try" in |
| 5889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5890 | *) ac_try_echo=$ac_try;; |
| 5891 | esac |
| 5892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5893 | (eval "$ac_compile") 2>conftest.er1 |
| 5894 | ac_status=$? |
| 5895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5896 | rm -f conftest.er1 |
| 5897 | cat conftest.err >&5 |
| 5898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5899 | (exit $ac_status); } && |
| 5900 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5901 | { (case "(($ac_try" in |
| 5902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5903 | *) ac_try_echo=$ac_try;; |
| 5904 | esac |
| 5905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5906 | (eval "$ac_try") 2>&5 |
| 5907 | ac_status=$? |
| 5908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5909 | (exit $ac_status); }; } && |
| 5910 | { ac_try='test -s conftest.$ac_objext' |
| 5911 | { (case "(($ac_try" in |
| 5912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5913 | *) ac_try_echo=$ac_try;; |
| 5914 | esac |
| 5915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5916 | (eval "$ac_try") 2>&5 |
| 5917 | ac_status=$? |
| 5918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5919 | (exit $ac_status); }; }; then |
| 5920 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5921 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5922 | echo "$as_me: failed program was:" >&5 |
| 5923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5924 | |
| 5925 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5926 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5927 | cat >conftest.$ac_ext <<_ACEOF |
| 5928 | /* confdefs.h. */ |
| 5929 | _ACEOF |
| 5930 | cat confdefs.h >>conftest.$ac_ext |
| 5931 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5932 | /* end confdefs.h. */ |
| 5933 | |
| 5934 | int |
| 5935 | main () |
| 5936 | { |
| 5937 | |
| 5938 | ; |
| 5939 | return 0; |
| 5940 | } |
| 5941 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5942 | rm -f conftest.$ac_objext |
| 5943 | if { (ac_try="$ac_compile" |
| 5944 | case "(($ac_try" in |
| 5945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5946 | *) ac_try_echo=$ac_try;; |
| 5947 | esac |
| 5948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5949 | (eval "$ac_compile") 2>conftest.er1 |
| 5950 | ac_status=$? |
| 5951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5952 | rm -f conftest.er1 |
| 5953 | cat conftest.err >&5 |
| 5954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5955 | (exit $ac_status); } && |
| 5956 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5957 | { (case "(($ac_try" in |
| 5958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5959 | *) ac_try_echo=$ac_try;; |
| 5960 | esac |
| 5961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5962 | (eval "$ac_try") 2>&5 |
| 5963 | ac_status=$? |
| 5964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5965 | (exit $ac_status); }; } && |
| 5966 | { ac_try='test -s conftest.$ac_objext' |
| 5967 | { (case "(($ac_try" in |
| 5968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5969 | *) ac_try_echo=$ac_try;; |
| 5970 | esac |
| 5971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5972 | (eval "$ac_try") 2>&5 |
| 5973 | ac_status=$? |
| 5974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5975 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5976 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5977 | else |
| 5978 | echo "$as_me: failed program was:" >&5 |
| 5979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5980 | |
| 5981 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5982 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5983 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5985 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5986 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5988 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5989 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5991 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5992 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5993 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5994 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5995 | if test "$ac_test_CFLAGS" = set; then |
| 5996 | CFLAGS=$ac_save_CFLAGS |
| 5997 | elif test $ac_cv_prog_cc_g = yes; then |
| 5998 | if test "$GCC" = yes; then |
| 5999 | CFLAGS="-g -O2" |
| 6000 | else |
| 6001 | CFLAGS="-g" |
| 6002 | fi |
| 6003 | else |
| 6004 | if test "$GCC" = yes; then |
| 6005 | CFLAGS="-O2" |
| 6006 | else |
| 6007 | CFLAGS= |
| 6008 | fi |
| 6009 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6010 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 6011 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 6012 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 6013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6014 | else |
| 6015 | ac_cv_prog_cc_c89=no |
| 6016 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6017 | cat >conftest.$ac_ext <<_ACEOF |
| 6018 | /* confdefs.h. */ |
| 6019 | _ACEOF |
| 6020 | cat confdefs.h >>conftest.$ac_ext |
| 6021 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6022 | /* end confdefs.h. */ |
| 6023 | #include <stdarg.h> |
| 6024 | #include <stdio.h> |
| 6025 | #include <sys/types.h> |
| 6026 | #include <sys/stat.h> |
| 6027 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6028 | struct buf { int x; }; |
| 6029 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6030 | static char *e (p, i) |
| 6031 | char **p; |
| 6032 | int i; |
| 6033 | { |
| 6034 | return p[i]; |
| 6035 | } |
| 6036 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6037 | { |
| 6038 | char *s; |
| 6039 | va_list v; |
| 6040 | va_start (v,p); |
| 6041 | s = g (p, va_arg (v,int)); |
| 6042 | va_end (v); |
| 6043 | return s; |
| 6044 | } |
| 6045 | |
| 6046 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6047 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6048 | These don't provoke an error unfortunately, instead are silently treated |
| 6049 | as 'x'. The following induces an error, until -std is added to get |
| 6050 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6051 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6052 | that's true only with -std. */ |
| 6053 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6054 | |
| 6055 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6056 | inside strings and character constants. */ |
| 6057 | #define FOO(x) 'x' |
| 6058 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6059 | |
| 6060 | int test (int i, double x); |
| 6061 | struct s1 {int (*f) (int a);}; |
| 6062 | struct s2 {int (*f) (double a);}; |
| 6063 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6064 | int argc; |
| 6065 | char **argv; |
| 6066 | int |
| 6067 | main () |
| 6068 | { |
| 6069 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6070 | ; |
| 6071 | return 0; |
| 6072 | } |
| 6073 | _ACEOF |
| 6074 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6075 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6076 | do |
| 6077 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6078 | rm -f conftest.$ac_objext |
| 6079 | if { (ac_try="$ac_compile" |
| 6080 | case "(($ac_try" in |
| 6081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6082 | *) ac_try_echo=$ac_try;; |
| 6083 | esac |
| 6084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6085 | (eval "$ac_compile") 2>conftest.er1 |
| 6086 | ac_status=$? |
| 6087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6088 | rm -f conftest.er1 |
| 6089 | cat conftest.err >&5 |
| 6090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6091 | (exit $ac_status); } && |
| 6092 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6093 | { (case "(($ac_try" in |
| 6094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6095 | *) ac_try_echo=$ac_try;; |
| 6096 | esac |
| 6097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6098 | (eval "$ac_try") 2>&5 |
| 6099 | ac_status=$? |
| 6100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6101 | (exit $ac_status); }; } && |
| 6102 | { ac_try='test -s conftest.$ac_objext' |
| 6103 | { (case "(($ac_try" in |
| 6104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6105 | *) ac_try_echo=$ac_try;; |
| 6106 | esac |
| 6107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6108 | (eval "$ac_try") 2>&5 |
| 6109 | ac_status=$? |
| 6110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6111 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6112 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6113 | else |
| 6114 | echo "$as_me: failed program was:" >&5 |
| 6115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6116 | |
| 6117 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6118 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6119 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6120 | rm -f core conftest.err conftest.$ac_objext |
| 6121 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6122 | done |
| 6123 | rm -f conftest.$ac_ext |
| 6124 | CC=$ac_save_CC |
| 6125 | |
| 6126 | fi |
| 6127 | # AC_CACHE_VAL |
| 6128 | case "x$ac_cv_prog_cc_c89" in |
| 6129 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6130 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6131 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6132 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6133 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6134 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6135 | *) |
| 6136 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6137 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6138 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6139 | esac |
| 6140 | |
| 6141 | |
| 6142 | ac_ext=c |
| 6143 | ac_cpp='$CPP $CPPFLAGS' |
| 6144 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6145 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6146 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6147 | |
| 6148 | ac_ext=cpp |
| 6149 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6150 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6151 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6152 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6153 | if test -z "$CXX"; then |
| 6154 | if test -n "$CCC"; then |
| 6155 | CXX=$CCC |
| 6156 | else |
| 6157 | if test -n "$ac_tool_prefix"; then |
| 6158 | for ac_prog in g++ |
| 6159 | do |
| 6160 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6161 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6162 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6163 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6164 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 6165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6166 | else |
| 6167 | if test -n "$CXX"; then |
| 6168 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6169 | else |
| 6170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6171 | for as_dir in $PATH |
| 6172 | do |
| 6173 | IFS=$as_save_IFS |
| 6174 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6175 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6176 | 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] | 6177 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6178 | 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] | 6179 | break 2 |
| 6180 | fi |
| 6181 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6182 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6183 | IFS=$as_save_IFS |
| 6184 | |
| 6185 | fi |
| 6186 | fi |
| 6187 | CXX=$ac_cv_prog_CXX |
| 6188 | if test -n "$CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6189 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6190 | echo "${ECHO_T}$CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6191 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6192 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6193 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6194 | fi |
| 6195 | |
| 6196 | |
| 6197 | test -n "$CXX" && break |
| 6198 | done |
| 6199 | fi |
| 6200 | if test -z "$CXX"; then |
| 6201 | ac_ct_CXX=$CXX |
| 6202 | for ac_prog in g++ |
| 6203 | do |
| 6204 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6205 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6206 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6207 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6208 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6210 | else |
| 6211 | if test -n "$ac_ct_CXX"; then |
| 6212 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6213 | else |
| 6214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6215 | for as_dir in $PATH |
| 6216 | do |
| 6217 | IFS=$as_save_IFS |
| 6218 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6219 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6220 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6221 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6222 | 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] | 6223 | break 2 |
| 6224 | fi |
| 6225 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6226 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6227 | IFS=$as_save_IFS |
| 6228 | |
| 6229 | fi |
| 6230 | fi |
| 6231 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6232 | if test -n "$ac_ct_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6233 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6234 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6235 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6236 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6237 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6238 | fi |
| 6239 | |
| 6240 | |
| 6241 | test -n "$ac_ct_CXX" && break |
| 6242 | done |
| 6243 | |
| 6244 | if test "x$ac_ct_CXX" = x; then |
| 6245 | CXX="g++" |
| 6246 | else |
| 6247 | case $cross_compiling:$ac_tool_warned in |
| 6248 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6249 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6250 | whose name does not start with the host triplet. If you think this |
| 6251 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6252 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6253 | whose name does not start with the host triplet. If you think this |
| 6254 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6255 | ac_tool_warned=yes ;; |
| 6256 | esac |
| 6257 | CXX=$ac_ct_CXX |
| 6258 | fi |
| 6259 | fi |
| 6260 | |
| 6261 | fi |
| 6262 | fi |
| 6263 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6264 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6265 | ac_compiler=`set X $ac_compile; echo $2` |
| 6266 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6267 | case "(($ac_try" in |
| 6268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6269 | *) ac_try_echo=$ac_try;; |
| 6270 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6272 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6273 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6275 | (exit $ac_status); } |
| 6276 | { (ac_try="$ac_compiler -v >&5" |
| 6277 | case "(($ac_try" in |
| 6278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6279 | *) ac_try_echo=$ac_try;; |
| 6280 | esac |
| 6281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6282 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6283 | ac_status=$? |
| 6284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6285 | (exit $ac_status); } |
| 6286 | { (ac_try="$ac_compiler -V >&5" |
| 6287 | case "(($ac_try" in |
| 6288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6289 | *) ac_try_echo=$ac_try;; |
| 6290 | esac |
| 6291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6292 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6293 | ac_status=$? |
| 6294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6295 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6296 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6297 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6298 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6299 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6301 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6302 | cat >conftest.$ac_ext <<_ACEOF |
| 6303 | /* confdefs.h. */ |
| 6304 | _ACEOF |
| 6305 | cat confdefs.h >>conftest.$ac_ext |
| 6306 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6307 | /* end confdefs.h. */ |
| 6308 | |
| 6309 | int |
| 6310 | main () |
| 6311 | { |
| 6312 | #ifndef __GNUC__ |
| 6313 | choke me |
| 6314 | #endif |
| 6315 | |
| 6316 | ; |
| 6317 | return 0; |
| 6318 | } |
| 6319 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6320 | rm -f conftest.$ac_objext |
| 6321 | if { (ac_try="$ac_compile" |
| 6322 | case "(($ac_try" in |
| 6323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6324 | *) ac_try_echo=$ac_try;; |
| 6325 | esac |
| 6326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6327 | (eval "$ac_compile") 2>conftest.er1 |
| 6328 | ac_status=$? |
| 6329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6330 | rm -f conftest.er1 |
| 6331 | cat conftest.err >&5 |
| 6332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6333 | (exit $ac_status); } && |
| 6334 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6335 | { (case "(($ac_try" in |
| 6336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6337 | *) ac_try_echo=$ac_try;; |
| 6338 | esac |
| 6339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6340 | (eval "$ac_try") 2>&5 |
| 6341 | ac_status=$? |
| 6342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6343 | (exit $ac_status); }; } && |
| 6344 | { ac_try='test -s conftest.$ac_objext' |
| 6345 | { (case "(($ac_try" in |
| 6346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6347 | *) ac_try_echo=$ac_try;; |
| 6348 | esac |
| 6349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6350 | (eval "$ac_try") 2>&5 |
| 6351 | ac_status=$? |
| 6352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6353 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6354 | ac_compiler_gnu=yes |
| 6355 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6356 | echo "$as_me: failed program was:" >&5 |
| 6357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6358 | |
| 6359 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6360 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6361 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6363 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6364 | |
| 6365 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6366 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6367 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6368 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6369 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6370 | ac_save_CXXFLAGS=$CXXFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6371 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6372 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6373 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6375 | else |
| 6376 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6377 | ac_cxx_werror_flag=yes |
| 6378 | ac_cv_prog_cxx_g=no |
| 6379 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6380 | cat >conftest.$ac_ext <<_ACEOF |
| 6381 | /* confdefs.h. */ |
| 6382 | _ACEOF |
| 6383 | cat confdefs.h >>conftest.$ac_ext |
| 6384 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6385 | /* end confdefs.h. */ |
| 6386 | |
| 6387 | int |
| 6388 | main () |
| 6389 | { |
| 6390 | |
| 6391 | ; |
| 6392 | return 0; |
| 6393 | } |
| 6394 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6395 | rm -f conftest.$ac_objext |
| 6396 | if { (ac_try="$ac_compile" |
| 6397 | case "(($ac_try" in |
| 6398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6399 | *) ac_try_echo=$ac_try;; |
| 6400 | esac |
| 6401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6402 | (eval "$ac_compile") 2>conftest.er1 |
| 6403 | ac_status=$? |
| 6404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6405 | rm -f conftest.er1 |
| 6406 | cat conftest.err >&5 |
| 6407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6408 | (exit $ac_status); } && |
| 6409 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6410 | { (case "(($ac_try" in |
| 6411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6412 | *) ac_try_echo=$ac_try;; |
| 6413 | esac |
| 6414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6415 | (eval "$ac_try") 2>&5 |
| 6416 | ac_status=$? |
| 6417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6418 | (exit $ac_status); }; } && |
| 6419 | { ac_try='test -s conftest.$ac_objext' |
| 6420 | { (case "(($ac_try" in |
| 6421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6422 | *) ac_try_echo=$ac_try;; |
| 6423 | esac |
| 6424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6425 | (eval "$ac_try") 2>&5 |
| 6426 | ac_status=$? |
| 6427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6428 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6429 | ac_cv_prog_cxx_g=yes |
| 6430 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6431 | echo "$as_me: failed program was:" >&5 |
| 6432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6433 | |
| 6434 | CXXFLAGS="" |
| 6435 | cat >conftest.$ac_ext <<_ACEOF |
| 6436 | /* confdefs.h. */ |
| 6437 | _ACEOF |
| 6438 | cat confdefs.h >>conftest.$ac_ext |
| 6439 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6440 | /* end confdefs.h. */ |
| 6441 | |
| 6442 | int |
| 6443 | main () |
| 6444 | { |
| 6445 | |
| 6446 | ; |
| 6447 | return 0; |
| 6448 | } |
| 6449 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6450 | rm -f conftest.$ac_objext |
| 6451 | if { (ac_try="$ac_compile" |
| 6452 | case "(($ac_try" in |
| 6453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6454 | *) ac_try_echo=$ac_try;; |
| 6455 | esac |
| 6456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6457 | (eval "$ac_compile") 2>conftest.er1 |
| 6458 | ac_status=$? |
| 6459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6460 | rm -f conftest.er1 |
| 6461 | cat conftest.err >&5 |
| 6462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6463 | (exit $ac_status); } && |
| 6464 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6465 | { (case "(($ac_try" in |
| 6466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6467 | *) ac_try_echo=$ac_try;; |
| 6468 | esac |
| 6469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6470 | (eval "$ac_try") 2>&5 |
| 6471 | ac_status=$? |
| 6472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6473 | (exit $ac_status); }; } && |
| 6474 | { ac_try='test -s conftest.$ac_objext' |
| 6475 | { (case "(($ac_try" in |
| 6476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6477 | *) ac_try_echo=$ac_try;; |
| 6478 | esac |
| 6479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6480 | (eval "$ac_try") 2>&5 |
| 6481 | ac_status=$? |
| 6482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6483 | (exit $ac_status); }; }; then |
| 6484 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6485 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6486 | echo "$as_me: failed program was:" >&5 |
| 6487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6488 | |
| 6489 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6490 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6491 | cat >conftest.$ac_ext <<_ACEOF |
| 6492 | /* confdefs.h. */ |
| 6493 | _ACEOF |
| 6494 | cat confdefs.h >>conftest.$ac_ext |
| 6495 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6496 | /* end confdefs.h. */ |
| 6497 | |
| 6498 | int |
| 6499 | main () |
| 6500 | { |
| 6501 | |
| 6502 | ; |
| 6503 | return 0; |
| 6504 | } |
| 6505 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6506 | rm -f conftest.$ac_objext |
| 6507 | if { (ac_try="$ac_compile" |
| 6508 | case "(($ac_try" in |
| 6509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6510 | *) ac_try_echo=$ac_try;; |
| 6511 | esac |
| 6512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6513 | (eval "$ac_compile") 2>conftest.er1 |
| 6514 | ac_status=$? |
| 6515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6516 | rm -f conftest.er1 |
| 6517 | cat conftest.err >&5 |
| 6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6519 | (exit $ac_status); } && |
| 6520 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6521 | { (case "(($ac_try" in |
| 6522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6523 | *) ac_try_echo=$ac_try;; |
| 6524 | esac |
| 6525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6526 | (eval "$ac_try") 2>&5 |
| 6527 | ac_status=$? |
| 6528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6529 | (exit $ac_status); }; } && |
| 6530 | { ac_try='test -s conftest.$ac_objext' |
| 6531 | { (case "(($ac_try" in |
| 6532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6533 | *) ac_try_echo=$ac_try;; |
| 6534 | esac |
| 6535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6536 | (eval "$ac_try") 2>&5 |
| 6537 | ac_status=$? |
| 6538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6539 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6540 | ac_cv_prog_cxx_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6541 | else |
| 6542 | echo "$as_me: failed program was:" >&5 |
| 6543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6544 | |
| 6545 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6546 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6547 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6549 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6550 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6552 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6553 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6555 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6556 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6557 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6558 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6559 | if test "$ac_test_CXXFLAGS" = set; then |
| 6560 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6561 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6562 | if test "$GXX" = yes; then |
| 6563 | CXXFLAGS="-g -O2" |
| 6564 | else |
| 6565 | CXXFLAGS="-g" |
| 6566 | fi |
| 6567 | else |
| 6568 | if test "$GXX" = yes; then |
| 6569 | CXXFLAGS="-O2" |
| 6570 | else |
| 6571 | CXXFLAGS= |
| 6572 | fi |
| 6573 | fi |
| 6574 | ac_ext=c |
| 6575 | ac_cpp='$CPP $CPPFLAGS' |
| 6576 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6577 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6578 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6579 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6580 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6581 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6582 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6583 | if test "${lt_cv_path_NM+set}" = set; then |
| 6584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6585 | else |
| 6586 | if test -n "$NM"; then |
| 6587 | # Let the user override the test. |
| 6588 | lt_cv_path_NM="$NM" |
| 6589 | else |
| 6590 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6591 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6592 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6593 | fi |
| 6594 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6595 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6596 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6597 | IFS="$lt_save_ifs" |
| 6598 | test -z "$ac_dir" && ac_dir=. |
| 6599 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6600 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6601 | # Check to see if the nm accepts a BSD-compat flag. |
| 6602 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6603 | # nm: unknown option "B" ignored |
| 6604 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6605 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6606 | */dev/null* | *'Invalid file or object type'*) |
| 6607 | lt_cv_path_NM="$tmp_nm -B" |
| 6608 | break |
| 6609 | ;; |
| 6610 | *) |
| 6611 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6612 | */dev/null*) |
| 6613 | lt_cv_path_NM="$tmp_nm -p" |
| 6614 | break |
| 6615 | ;; |
| 6616 | *) |
| 6617 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6618 | continue # so that we can try to find one that supports BSD flags |
| 6619 | ;; |
| 6620 | esac |
| 6621 | ;; |
| 6622 | esac |
| 6623 | fi |
| 6624 | done |
| 6625 | IFS="$lt_save_ifs" |
| 6626 | done |
| 6627 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6628 | fi |
| 6629 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6630 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6631 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6632 | NM="$lt_cv_path_NM" |
| 6633 | |
| 6634 | |
| 6635 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6636 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6637 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6638 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6640 | else |
| 6641 | llvm_cv_gnu_make_command='' |
| 6642 | for a in "$MAKE" make gmake gnumake ; do |
| 6643 | if test -z "$a" ; then continue ; fi ; |
| 6644 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6645 | then |
| 6646 | llvm_cv_gnu_make_command=$a ; |
| 6647 | break; |
| 6648 | fi |
| 6649 | done |
| 6650 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6651 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6652 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6653 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6654 | ifGNUmake='' ; |
| 6655 | else |
| 6656 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6657 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6658 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6659 | fi |
| 6660 | |
| 6661 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6662 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6663 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6664 | LN_S=$as_ln_s |
| 6665 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6666 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6667 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6668 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6669 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6670 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6671 | fi |
| 6672 | |
| 6673 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6674 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6675 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6677 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6679 | else |
| 6680 | case $CMP in |
| 6681 | [\\/]* | ?:[\\/]*) |
| 6682 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6683 | ;; |
| 6684 | *) |
| 6685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6686 | for as_dir in $PATH |
| 6687 | do |
| 6688 | IFS=$as_save_IFS |
| 6689 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6690 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6691 | 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] | 6692 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6693 | 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] | 6694 | break 2 |
| 6695 | fi |
| 6696 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6697 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6698 | IFS=$as_save_IFS |
| 6699 | |
| 6700 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6701 | ;; |
| 6702 | esac |
| 6703 | fi |
| 6704 | CMP=$ac_cv_path_CMP |
| 6705 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6706 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6707 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6708 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6709 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6710 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6711 | fi |
| 6712 | |
| 6713 | |
| 6714 | # Extract the first word of "cp", so it can be a program name with args. |
| 6715 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6716 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6717 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6718 | if test "${ac_cv_path_CP+set}" = set; then |
| 6719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6720 | else |
| 6721 | case $CP in |
| 6722 | [\\/]* | ?:[\\/]*) |
| 6723 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6724 | ;; |
| 6725 | *) |
| 6726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6727 | for as_dir in $PATH |
| 6728 | do |
| 6729 | IFS=$as_save_IFS |
| 6730 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6731 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6732 | 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] | 6733 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6734 | 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] | 6735 | break 2 |
| 6736 | fi |
| 6737 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6738 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6739 | IFS=$as_save_IFS |
| 6740 | |
| 6741 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6742 | ;; |
| 6743 | esac |
| 6744 | fi |
| 6745 | CP=$ac_cv_path_CP |
| 6746 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6747 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6748 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6749 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6750 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6751 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6752 | fi |
| 6753 | |
| 6754 | |
| 6755 | # Extract the first word of "date", so it can be a program name with args. |
| 6756 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6757 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6758 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6759 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6761 | else |
| 6762 | case $DATE in |
| 6763 | [\\/]* | ?:[\\/]*) |
| 6764 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6765 | ;; |
| 6766 | *) |
| 6767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6768 | for as_dir in $PATH |
| 6769 | do |
| 6770 | IFS=$as_save_IFS |
| 6771 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6772 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6773 | 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] | 6774 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6775 | 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] | 6776 | break 2 |
| 6777 | fi |
| 6778 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6779 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6780 | IFS=$as_save_IFS |
| 6781 | |
| 6782 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6783 | ;; |
| 6784 | esac |
| 6785 | fi |
| 6786 | DATE=$ac_cv_path_DATE |
| 6787 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6788 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6789 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6790 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6791 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6792 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6793 | fi |
| 6794 | |
| 6795 | |
| 6796 | # Extract the first word of "find", so it can be a program name with args. |
| 6797 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6798 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6800 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6802 | else |
| 6803 | case $FIND in |
| 6804 | [\\/]* | ?:[\\/]*) |
| 6805 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6806 | ;; |
| 6807 | *) |
| 6808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6809 | for as_dir in $PATH |
| 6810 | do |
| 6811 | IFS=$as_save_IFS |
| 6812 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6813 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6814 | 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] | 6815 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6816 | 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] | 6817 | break 2 |
| 6818 | fi |
| 6819 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6820 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6821 | IFS=$as_save_IFS |
| 6822 | |
| 6823 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6824 | ;; |
| 6825 | esac |
| 6826 | fi |
| 6827 | FIND=$ac_cv_path_FIND |
| 6828 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6829 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6830 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6831 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6832 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6833 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6834 | fi |
| 6835 | |
| 6836 | |
| 6837 | # Extract the first word of "grep", so it can be a program name with args. |
| 6838 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6839 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6841 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6843 | else |
| 6844 | case $GREP in |
| 6845 | [\\/]* | ?:[\\/]*) |
| 6846 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6847 | ;; |
| 6848 | *) |
| 6849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6850 | for as_dir in $PATH |
| 6851 | do |
| 6852 | IFS=$as_save_IFS |
| 6853 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6854 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6855 | 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] | 6856 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6857 | 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] | 6858 | break 2 |
| 6859 | fi |
| 6860 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6861 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6862 | IFS=$as_save_IFS |
| 6863 | |
| 6864 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6865 | ;; |
| 6866 | esac |
| 6867 | fi |
| 6868 | GREP=$ac_cv_path_GREP |
| 6869 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6870 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6871 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6872 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6873 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6874 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6875 | fi |
| 6876 | |
| 6877 | |
| 6878 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6879 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6880 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6881 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6882 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6884 | else |
| 6885 | case $MKDIR in |
| 6886 | [\\/]* | ?:[\\/]*) |
| 6887 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6888 | ;; |
| 6889 | *) |
| 6890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6891 | for as_dir in $PATH |
| 6892 | do |
| 6893 | IFS=$as_save_IFS |
| 6894 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6895 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6896 | 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] | 6897 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6898 | 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] | 6899 | break 2 |
| 6900 | fi |
| 6901 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6902 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6903 | IFS=$as_save_IFS |
| 6904 | |
| 6905 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6906 | ;; |
| 6907 | esac |
| 6908 | fi |
| 6909 | MKDIR=$ac_cv_path_MKDIR |
| 6910 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6911 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6912 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6913 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6914 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6915 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6916 | fi |
| 6917 | |
| 6918 | |
| 6919 | # Extract the first word of "mv", so it can be a program name with args. |
| 6920 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6921 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6922 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6923 | if test "${ac_cv_path_MV+set}" = set; then |
| 6924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6925 | else |
| 6926 | case $MV in |
| 6927 | [\\/]* | ?:[\\/]*) |
| 6928 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6929 | ;; |
| 6930 | *) |
| 6931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6932 | for as_dir in $PATH |
| 6933 | do |
| 6934 | IFS=$as_save_IFS |
| 6935 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6936 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6937 | 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] | 6938 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6939 | 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] | 6940 | break 2 |
| 6941 | fi |
| 6942 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6943 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6944 | IFS=$as_save_IFS |
| 6945 | |
| 6946 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6947 | ;; |
| 6948 | esac |
| 6949 | fi |
| 6950 | MV=$ac_cv_path_MV |
| 6951 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6952 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6953 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6954 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6955 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6956 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6957 | fi |
| 6958 | |
| 6959 | |
| 6960 | if test -n "$ac_tool_prefix"; then |
| 6961 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6962 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6963 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6965 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6967 | else |
| 6968 | if test -n "$RANLIB"; then |
| 6969 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6970 | else |
| 6971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6972 | for as_dir in $PATH |
| 6973 | do |
| 6974 | IFS=$as_save_IFS |
| 6975 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6976 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6977 | 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] | 6978 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6979 | 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] | 6980 | break 2 |
| 6981 | fi |
| 6982 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6983 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6984 | IFS=$as_save_IFS |
| 6985 | |
| 6986 | fi |
| 6987 | fi |
| 6988 | RANLIB=$ac_cv_prog_RANLIB |
| 6989 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6990 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6991 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6992 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6993 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6994 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6995 | fi |
| 6996 | |
| 6997 | |
| 6998 | fi |
| 6999 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7000 | ac_ct_RANLIB=$RANLIB |
| 7001 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7002 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7003 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7005 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 7006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7007 | else |
| 7008 | if test -n "$ac_ct_RANLIB"; then |
| 7009 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7010 | else |
| 7011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7012 | for as_dir in $PATH |
| 7013 | do |
| 7014 | IFS=$as_save_IFS |
| 7015 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7016 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7017 | 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] | 7018 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7019 | 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] | 7020 | break 2 |
| 7021 | fi |
| 7022 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7023 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7024 | IFS=$as_save_IFS |
| 7025 | |
| 7026 | fi |
| 7027 | fi |
| 7028 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7029 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7030 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7031 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7032 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7033 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7034 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7035 | fi |
| 7036 | |
| 7037 | if test "x$ac_ct_RANLIB" = x; then |
| 7038 | RANLIB=":" |
| 7039 | else |
| 7040 | case $cross_compiling:$ac_tool_warned in |
| 7041 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7042 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7043 | whose name does not start with the host triplet. If you think this |
| 7044 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7045 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7046 | whose name does not start with the host triplet. If you think this |
| 7047 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7048 | ac_tool_warned=yes ;; |
| 7049 | esac |
| 7050 | RANLIB=$ac_ct_RANLIB |
| 7051 | fi |
| 7052 | else |
| 7053 | RANLIB="$ac_cv_prog_RANLIB" |
| 7054 | fi |
| 7055 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7056 | if test -n "$ac_tool_prefix"; then |
| 7057 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 7058 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7059 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7060 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7061 | if test "${ac_cv_prog_AR+set}" = set; then |
| 7062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7063 | else |
| 7064 | if test -n "$AR"; then |
| 7065 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7066 | else |
| 7067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7068 | for as_dir in $PATH |
| 7069 | do |
| 7070 | IFS=$as_save_IFS |
| 7071 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7072 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7073 | 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] | 7074 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7075 | 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] | 7076 | break 2 |
| 7077 | fi |
| 7078 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7079 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7080 | IFS=$as_save_IFS |
| 7081 | |
| 7082 | fi |
| 7083 | fi |
| 7084 | AR=$ac_cv_prog_AR |
| 7085 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7086 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 7087 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7088 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7089 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7090 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7091 | fi |
| 7092 | |
| 7093 | |
| 7094 | fi |
| 7095 | if test -z "$ac_cv_prog_AR"; then |
| 7096 | ac_ct_AR=$AR |
| 7097 | # Extract the first word of "ar", so it can be a program name with args. |
| 7098 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7099 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7100 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7101 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 7102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7103 | else |
| 7104 | if test -n "$ac_ct_AR"; then |
| 7105 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7106 | else |
| 7107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7108 | for as_dir in $PATH |
| 7109 | do |
| 7110 | IFS=$as_save_IFS |
| 7111 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7112 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7113 | 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] | 7114 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7115 | 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] | 7116 | break 2 |
| 7117 | fi |
| 7118 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7119 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7120 | IFS=$as_save_IFS |
| 7121 | |
| 7122 | fi |
| 7123 | fi |
| 7124 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7125 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7126 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 7127 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7128 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7129 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7130 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7131 | fi |
| 7132 | |
| 7133 | if test "x$ac_ct_AR" = x; then |
| 7134 | AR="false" |
| 7135 | else |
| 7136 | case $cross_compiling:$ac_tool_warned in |
| 7137 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7138 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7139 | whose name does not start with the host triplet. If you think this |
| 7140 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7141 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7142 | whose name does not start with the host triplet. If you think this |
| 7143 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7144 | ac_tool_warned=yes ;; |
| 7145 | esac |
| 7146 | AR=$ac_ct_AR |
| 7147 | fi |
| 7148 | else |
| 7149 | AR="$ac_cv_prog_AR" |
| 7150 | fi |
| 7151 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7152 | # Extract the first word of "rm", so it can be a program name with args. |
| 7153 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7154 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7155 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7156 | if test "${ac_cv_path_RM+set}" = set; then |
| 7157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7158 | else |
| 7159 | case $RM in |
| 7160 | [\\/]* | ?:[\\/]*) |
| 7161 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7162 | ;; |
| 7163 | *) |
| 7164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7165 | for as_dir in $PATH |
| 7166 | do |
| 7167 | IFS=$as_save_IFS |
| 7168 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7169 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7170 | 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] | 7171 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7172 | 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] | 7173 | break 2 |
| 7174 | fi |
| 7175 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7176 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7177 | IFS=$as_save_IFS |
| 7178 | |
| 7179 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7180 | ;; |
| 7181 | esac |
| 7182 | fi |
| 7183 | RM=$ac_cv_path_RM |
| 7184 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7185 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7186 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7187 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7188 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7189 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7190 | fi |
| 7191 | |
| 7192 | |
| 7193 | # Extract the first word of "sed", so it can be a program name with args. |
| 7194 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7195 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7196 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7197 | if test "${ac_cv_path_SED+set}" = set; then |
| 7198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7199 | else |
| 7200 | case $SED in |
| 7201 | [\\/]* | ?:[\\/]*) |
| 7202 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7203 | ;; |
| 7204 | *) |
| 7205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7206 | for as_dir in $PATH |
| 7207 | do |
| 7208 | IFS=$as_save_IFS |
| 7209 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7210 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7211 | 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] | 7212 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7213 | 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] | 7214 | break 2 |
| 7215 | fi |
| 7216 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7217 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7218 | IFS=$as_save_IFS |
| 7219 | |
| 7220 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7221 | ;; |
| 7222 | esac |
| 7223 | fi |
| 7224 | SED=$ac_cv_path_SED |
| 7225 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7226 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7227 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7228 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7229 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7230 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7231 | fi |
| 7232 | |
| 7233 | |
| 7234 | # Extract the first word of "tar", so it can be a program name with args. |
| 7235 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7236 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7237 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7238 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7240 | else |
| 7241 | case $TAR in |
| 7242 | [\\/]* | ?:[\\/]*) |
| 7243 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7244 | ;; |
| 7245 | *) |
| 7246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7247 | for as_dir in $PATH |
| 7248 | do |
| 7249 | IFS=$as_save_IFS |
| 7250 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7251 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7252 | 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] | 7253 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7254 | 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] | 7255 | break 2 |
| 7256 | fi |
| 7257 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7258 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7259 | IFS=$as_save_IFS |
| 7260 | |
| 7261 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7262 | ;; |
| 7263 | esac |
| 7264 | fi |
| 7265 | TAR=$ac_cv_path_TAR |
| 7266 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7267 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7268 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7269 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7270 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7271 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7272 | fi |
| 7273 | |
| 7274 | |
| 7275 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7276 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7277 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7278 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7279 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7281 | else |
| 7282 | case $BINPWD in |
| 7283 | [\\/]* | ?:[\\/]*) |
| 7284 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7285 | ;; |
| 7286 | *) |
| 7287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7288 | for as_dir in $PATH |
| 7289 | do |
| 7290 | IFS=$as_save_IFS |
| 7291 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7292 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7293 | 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] | 7294 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7295 | 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] | 7296 | break 2 |
| 7297 | fi |
| 7298 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7299 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7300 | IFS=$as_save_IFS |
| 7301 | |
| 7302 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7303 | ;; |
| 7304 | esac |
| 7305 | fi |
| 7306 | BINPWD=$ac_cv_path_BINPWD |
| 7307 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7308 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7309 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7310 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7311 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7312 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7313 | fi |
| 7314 | |
| 7315 | |
| 7316 | |
| 7317 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7318 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7319 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7320 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7321 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7323 | else |
| 7324 | case $GRAPHVIZ in |
| 7325 | [\\/]* | ?:[\\/]*) |
| 7326 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7327 | ;; |
| 7328 | *) |
| 7329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7330 | for as_dir in $PATH |
| 7331 | do |
| 7332 | IFS=$as_save_IFS |
| 7333 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7334 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7335 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7336 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7337 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7338 | break 2 |
| 7339 | fi |
| 7340 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7341 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7342 | IFS=$as_save_IFS |
| 7343 | |
| 7344 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7345 | ;; |
| 7346 | esac |
| 7347 | fi |
| 7348 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7349 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7350 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7351 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7352 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7353 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7354 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7355 | fi |
| 7356 | |
| 7357 | |
| 7358 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7359 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7360 | cat >>confdefs.h <<\_ACEOF |
| 7361 | #define HAVE_GRAPHVIZ 1 |
| 7362 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7363 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7364 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7365 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7366 | fi |
| 7367 | |
| 7368 | cat >>confdefs.h <<_ACEOF |
| 7369 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7370 | _ACEOF |
| 7371 | |
| 7372 | fi |
| 7373 | # Extract the first word of "dot", so it can be a program name with args. |
| 7374 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7375 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7376 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7377 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7379 | else |
| 7380 | case $DOT in |
| 7381 | [\\/]* | ?:[\\/]*) |
| 7382 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7383 | ;; |
| 7384 | *) |
| 7385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7386 | for as_dir in $PATH |
| 7387 | do |
| 7388 | IFS=$as_save_IFS |
| 7389 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7390 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7391 | 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] | 7392 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7393 | 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] | 7394 | break 2 |
| 7395 | fi |
| 7396 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7397 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7398 | IFS=$as_save_IFS |
| 7399 | |
| 7400 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7401 | ;; |
| 7402 | esac |
| 7403 | fi |
| 7404 | DOT=$ac_cv_path_DOT |
| 7405 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7406 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7407 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7408 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7409 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7410 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7411 | fi |
| 7412 | |
| 7413 | |
| 7414 | if test "$DOT" != "echo dot" ; then |
| 7415 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7416 | cat >>confdefs.h <<\_ACEOF |
| 7417 | #define HAVE_DOT 1 |
| 7418 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7419 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7420 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7421 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7422 | fi |
| 7423 | |
| 7424 | cat >>confdefs.h <<_ACEOF |
| 7425 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7426 | _ACEOF |
| 7427 | |
| 7428 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7429 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7430 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7431 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7432 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7433 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7435 | else |
| 7436 | case $FDP in |
| 7437 | [\\/]* | ?:[\\/]*) |
| 7438 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7439 | ;; |
| 7440 | *) |
| 7441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7442 | for as_dir in $PATH |
| 7443 | do |
| 7444 | IFS=$as_save_IFS |
| 7445 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7446 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7447 | 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] | 7448 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7449 | 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] | 7450 | break 2 |
| 7451 | fi |
| 7452 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7453 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7454 | IFS=$as_save_IFS |
| 7455 | |
| 7456 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7457 | ;; |
| 7458 | esac |
| 7459 | fi |
| 7460 | FDP=$ac_cv_path_FDP |
| 7461 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7462 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7463 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7464 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7465 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7466 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7467 | fi |
| 7468 | |
| 7469 | |
| 7470 | if test "$FDP" != "echo fdp" ; then |
| 7471 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7472 | cat >>confdefs.h <<\_ACEOF |
| 7473 | #define HAVE_FDP 1 |
| 7474 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7475 | |
| 7476 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7477 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7478 | fi |
| 7479 | |
| 7480 | cat >>confdefs.h <<_ACEOF |
| 7481 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7482 | _ACEOF |
| 7483 | |
| 7484 | fi |
| 7485 | # Extract the first word of "neato", so it can be a program name with args. |
| 7486 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7487 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7488 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7489 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7491 | else |
| 7492 | case $NEATO in |
| 7493 | [\\/]* | ?:[\\/]*) |
| 7494 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7495 | ;; |
| 7496 | *) |
| 7497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7498 | for as_dir in $PATH |
| 7499 | do |
| 7500 | IFS=$as_save_IFS |
| 7501 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7502 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7503 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7504 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7505 | 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] | 7506 | break 2 |
| 7507 | fi |
| 7508 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7509 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7510 | IFS=$as_save_IFS |
| 7511 | |
| 7512 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7513 | ;; |
| 7514 | esac |
| 7515 | fi |
| 7516 | NEATO=$ac_cv_path_NEATO |
| 7517 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7518 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7519 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7520 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7521 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7522 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7523 | fi |
| 7524 | |
| 7525 | |
| 7526 | if test "$NEATO" != "echo neato" ; then |
| 7527 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7528 | cat >>confdefs.h <<\_ACEOF |
| 7529 | #define HAVE_NEATO 1 |
| 7530 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7531 | |
| 7532 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7533 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7534 | fi |
| 7535 | |
| 7536 | cat >>confdefs.h <<_ACEOF |
| 7537 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7538 | _ACEOF |
| 7539 | |
| 7540 | fi |
| 7541 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7542 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7543 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7545 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7547 | else |
| 7548 | case $TWOPI in |
| 7549 | [\\/]* | ?:[\\/]*) |
| 7550 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7551 | ;; |
| 7552 | *) |
| 7553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7554 | for as_dir in $PATH |
| 7555 | do |
| 7556 | IFS=$as_save_IFS |
| 7557 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7558 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7559 | 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] | 7560 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7561 | 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] | 7562 | break 2 |
| 7563 | fi |
| 7564 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7565 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7566 | IFS=$as_save_IFS |
| 7567 | |
| 7568 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7569 | ;; |
| 7570 | esac |
| 7571 | fi |
| 7572 | TWOPI=$ac_cv_path_TWOPI |
| 7573 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7574 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7575 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7576 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7577 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7578 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7579 | fi |
| 7580 | |
| 7581 | |
| 7582 | if test "$TWOPI" != "echo twopi" ; then |
| 7583 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7584 | cat >>confdefs.h <<\_ACEOF |
| 7585 | #define HAVE_TWOPI 1 |
| 7586 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7587 | |
| 7588 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7589 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7590 | fi |
| 7591 | |
| 7592 | cat >>confdefs.h <<_ACEOF |
| 7593 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7594 | _ACEOF |
| 7595 | |
| 7596 | fi |
| 7597 | # Extract the first word of "circo", so it can be a program name with args. |
| 7598 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7599 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7601 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 7602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7603 | else |
| 7604 | case $CIRCO in |
| 7605 | [\\/]* | ?:[\\/]*) |
| 7606 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 7607 | ;; |
| 7608 | *) |
| 7609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7610 | for as_dir in $PATH |
| 7611 | do |
| 7612 | IFS=$as_save_IFS |
| 7613 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7614 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7615 | 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] | 7616 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7617 | 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] | 7618 | break 2 |
| 7619 | fi |
| 7620 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7621 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7622 | IFS=$as_save_IFS |
| 7623 | |
| 7624 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7625 | ;; |
| 7626 | esac |
| 7627 | fi |
| 7628 | CIRCO=$ac_cv_path_CIRCO |
| 7629 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7630 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7631 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7632 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7633 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7634 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7635 | fi |
| 7636 | |
| 7637 | |
| 7638 | if test "$CIRCO" != "echo circo" ; then |
| 7639 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7640 | cat >>confdefs.h <<\_ACEOF |
| 7641 | #define HAVE_CIRCO 1 |
| 7642 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7643 | |
| 7644 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7645 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7646 | fi |
| 7647 | |
| 7648 | cat >>confdefs.h <<_ACEOF |
| 7649 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7650 | _ACEOF |
| 7651 | |
| 7652 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7653 | for ac_prog in gv gsview32 |
| 7654 | do |
| 7655 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7656 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7657 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7658 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7659 | if test "${ac_cv_path_GV+set}" = set; then |
| 7660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7661 | else |
| 7662 | case $GV in |
| 7663 | [\\/]* | ?:[\\/]*) |
| 7664 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7665 | ;; |
| 7666 | *) |
| 7667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7668 | for as_dir in $PATH |
| 7669 | do |
| 7670 | IFS=$as_save_IFS |
| 7671 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7672 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7673 | 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] | 7674 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7675 | 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] | 7676 | break 2 |
| 7677 | fi |
| 7678 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7679 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7680 | IFS=$as_save_IFS |
| 7681 | |
| 7682 | ;; |
| 7683 | esac |
| 7684 | fi |
| 7685 | GV=$ac_cv_path_GV |
| 7686 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7687 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7688 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7689 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7690 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7691 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7692 | fi |
| 7693 | |
| 7694 | |
| 7695 | test -n "$GV" && break |
| 7696 | done |
| 7697 | test -n "$GV" || GV="echo gv" |
| 7698 | |
| 7699 | if test "$GV" != "echo gv" ; then |
| 7700 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7701 | cat >>confdefs.h <<\_ACEOF |
| 7702 | #define HAVE_GV 1 |
| 7703 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7704 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7705 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7706 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7707 | fi |
| 7708 | |
| 7709 | cat >>confdefs.h <<_ACEOF |
| 7710 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7711 | _ACEOF |
| 7712 | |
| 7713 | fi |
| 7714 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7715 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7716 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7717 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7718 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7720 | else |
| 7721 | case $DOTTY in |
| 7722 | [\\/]* | ?:[\\/]*) |
| 7723 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7724 | ;; |
| 7725 | *) |
| 7726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7727 | for as_dir in $PATH |
| 7728 | do |
| 7729 | IFS=$as_save_IFS |
| 7730 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7731 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7732 | 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] | 7733 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7734 | 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] | 7735 | break 2 |
| 7736 | fi |
| 7737 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7738 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7739 | IFS=$as_save_IFS |
| 7740 | |
| 7741 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7742 | ;; |
| 7743 | esac |
| 7744 | fi |
| 7745 | DOTTY=$ac_cv_path_DOTTY |
| 7746 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7747 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7748 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7749 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7750 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7751 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7752 | fi |
| 7753 | |
| 7754 | |
| 7755 | if test "$DOTTY" != "echo dotty" ; then |
| 7756 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7757 | cat >>confdefs.h <<\_ACEOF |
| 7758 | #define HAVE_DOTTY 1 |
| 7759 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7760 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7761 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7762 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7763 | fi |
| 7764 | |
| 7765 | cat >>confdefs.h <<_ACEOF |
| 7766 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7767 | _ACEOF |
| 7768 | |
| 7769 | fi |
| 7770 | |
| 7771 | |
| 7772 | # Extract the first word of "perl", so it can be a program name with args. |
| 7773 | set dummy perl; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7774 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7775 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7776 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7778 | else |
| 7779 | case $PERL in |
| 7780 | [\\/]* | ?:[\\/]*) |
| 7781 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7782 | ;; |
| 7783 | *) |
| 7784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7785 | for as_dir in $PATH |
| 7786 | do |
| 7787 | IFS=$as_save_IFS |
| 7788 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7789 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7790 | 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] | 7791 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7792 | 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] | 7793 | break 2 |
| 7794 | fi |
| 7795 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7796 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7797 | IFS=$as_save_IFS |
| 7798 | |
| 7799 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7800 | ;; |
| 7801 | esac |
| 7802 | fi |
| 7803 | PERL=$ac_cv_path_PERL |
| 7804 | if test -n "$PERL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7805 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7806 | echo "${ECHO_T}$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7807 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7808 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7809 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7810 | fi |
| 7811 | |
| 7812 | |
| 7813 | if test "$PERL" != "none"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7814 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7815 | 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] | 7816 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7817 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7818 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7819 | else |
| 7820 | PERL=none |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7821 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7822 | echo "${ECHO_T}not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7823 | fi |
| 7824 | fi |
| 7825 | |
| 7826 | |
| 7827 | if test x"$PERL" = xnone; then |
| 7828 | HAVE_PERL=0 |
| 7829 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7830 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7831 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7832 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7833 | else |
| 7834 | HAVE_PERL=1 |
| 7835 | |
| 7836 | fi |
| 7837 | |
| 7838 | # Find a good install program. We prefer a C program (faster), |
| 7839 | # so one script is as good as another. But avoid the broken or |
| 7840 | # incompatible versions: |
| 7841 | # SysV /etc/install, /usr/sbin/install |
| 7842 | # SunOS /usr/etc/install |
| 7843 | # IRIX /sbin/install |
| 7844 | # AIX /bin/install |
| 7845 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7846 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7847 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7848 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7849 | # OS/2's system install, which has a completely different semantic |
| 7850 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7851 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7852 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7853 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7854 | if test "${ac_cv_path_install+set}" = set; then |
| 7855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7856 | else |
| 7857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7858 | for as_dir in $PATH |
| 7859 | do |
| 7860 | IFS=$as_save_IFS |
| 7861 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7862 | # Account for people who put trailing slashes in PATH elements. |
| 7863 | case $as_dir/ in |
| 7864 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7865 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7866 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7867 | /usr/ucb/* ) ;; |
| 7868 | *) |
| 7869 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7870 | # Don't use installbsd from OSF since it installs stuff as root |
| 7871 | # by default. |
| 7872 | for ac_prog in ginstall scoinst install; do |
| 7873 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7874 | 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] | 7875 | if test $ac_prog = install && |
| 7876 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7877 | # AIX install. It has an incompatible calling convention. |
| 7878 | : |
| 7879 | elif test $ac_prog = install && |
| 7880 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7881 | # program-specific install script used by HP pwplus--don't use. |
| 7882 | : |
| 7883 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7884 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7885 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7886 | fi |
| 7887 | fi |
| 7888 | done |
| 7889 | done |
| 7890 | ;; |
| 7891 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7892 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7893 | IFS=$as_save_IFS |
| 7894 | |
| 7895 | |
| 7896 | fi |
| 7897 | if test "${ac_cv_path_install+set}" = set; then |
| 7898 | INSTALL=$ac_cv_path_install |
| 7899 | else |
| 7900 | # As a last resort, use the slow shell script. Don't cache a |
| 7901 | # value for INSTALL within a source directory, because that will |
| 7902 | # break other packages using the cache if that directory is |
| 7903 | # removed, or if the value is a relative name. |
| 7904 | INSTALL=$ac_install_sh |
| 7905 | fi |
| 7906 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7907 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7908 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7909 | |
| 7910 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7911 | # It thinks the first close brace ends the variable substitution. |
| 7912 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7913 | |
| 7914 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7915 | |
| 7916 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7917 | |
| 7918 | |
| 7919 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7920 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7921 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7922 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7923 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7925 | else |
| 7926 | case $BZIP2 in |
| 7927 | [\\/]* | ?:[\\/]*) |
| 7928 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7929 | ;; |
| 7930 | *) |
| 7931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7932 | for as_dir in $PATH |
| 7933 | do |
| 7934 | IFS=$as_save_IFS |
| 7935 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7936 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7937 | 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] | 7938 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7939 | 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] | 7940 | break 2 |
| 7941 | fi |
| 7942 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7943 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7944 | IFS=$as_save_IFS |
| 7945 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7946 | ;; |
| 7947 | esac |
| 7948 | fi |
| 7949 | BZIP2=$ac_cv_path_BZIP2 |
| 7950 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7951 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7952 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7953 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7954 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7955 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7956 | fi |
| 7957 | |
| 7958 | |
| 7959 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7960 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7961 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7962 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7963 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7965 | else |
| 7966 | case $DOXYGEN in |
| 7967 | [\\/]* | ?:[\\/]*) |
| 7968 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7969 | ;; |
| 7970 | *) |
| 7971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7972 | for as_dir in $PATH |
| 7973 | do |
| 7974 | IFS=$as_save_IFS |
| 7975 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7976 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7977 | 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] | 7978 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7979 | 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] | 7980 | break 2 |
| 7981 | fi |
| 7982 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7983 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7984 | IFS=$as_save_IFS |
| 7985 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7986 | ;; |
| 7987 | esac |
| 7988 | fi |
| 7989 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7990 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7991 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7992 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7993 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7994 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7995 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7996 | fi |
| 7997 | |
| 7998 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7999 | # Extract the first word of "groff", so it can be a program name with args. |
| 8000 | set dummy groff; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8001 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8002 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8003 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 8004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8005 | else |
| 8006 | case $GROFF in |
| 8007 | [\\/]* | ?:[\\/]*) |
| 8008 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 8009 | ;; |
| 8010 | *) |
| 8011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8012 | for as_dir in $PATH |
| 8013 | do |
| 8014 | IFS=$as_save_IFS |
| 8015 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8016 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8017 | 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] | 8018 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8019 | 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] | 8020 | break 2 |
| 8021 | fi |
| 8022 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8023 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8024 | IFS=$as_save_IFS |
| 8025 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8026 | ;; |
| 8027 | esac |
| 8028 | fi |
| 8029 | GROFF=$ac_cv_path_GROFF |
| 8030 | if test -n "$GROFF"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8031 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 8032 | echo "${ECHO_T}$GROFF" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8033 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8034 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8035 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8036 | fi |
| 8037 | |
| 8038 | |
| 8039 | # Extract the first word of "gzip", so it can be a program name with args. |
| 8040 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8041 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8043 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 8044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8045 | else |
| 8046 | case $GZIP in |
| 8047 | [\\/]* | ?:[\\/]*) |
| 8048 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 8049 | ;; |
| 8050 | *) |
| 8051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8052 | for as_dir in $PATH |
| 8053 | do |
| 8054 | IFS=$as_save_IFS |
| 8055 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8056 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8057 | 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] | 8058 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8059 | 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] | 8060 | break 2 |
| 8061 | fi |
| 8062 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8063 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8064 | IFS=$as_save_IFS |
| 8065 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8066 | ;; |
| 8067 | esac |
| 8068 | fi |
| 8069 | GZIP=$ac_cv_path_GZIP |
| 8070 | if test -n "$GZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8071 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 8072 | echo "${ECHO_T}$GZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8073 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8074 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8075 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8076 | fi |
| 8077 | |
| 8078 | |
| 8079 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 8080 | set dummy pod2html; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8081 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8082 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8083 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 8084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8085 | else |
| 8086 | case $POD2HTML in |
| 8087 | [\\/]* | ?:[\\/]*) |
| 8088 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 8089 | ;; |
| 8090 | *) |
| 8091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8092 | for as_dir in $PATH |
| 8093 | do |
| 8094 | IFS=$as_save_IFS |
| 8095 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8096 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8097 | 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] | 8098 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8099 | 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] | 8100 | break 2 |
| 8101 | fi |
| 8102 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8103 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8104 | IFS=$as_save_IFS |
| 8105 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8106 | ;; |
| 8107 | esac |
| 8108 | fi |
| 8109 | POD2HTML=$ac_cv_path_POD2HTML |
| 8110 | if test -n "$POD2HTML"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8111 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 8112 | echo "${ECHO_T}$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8113 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8114 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8115 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8116 | fi |
| 8117 | |
| 8118 | |
| 8119 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 8120 | set dummy pod2man; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8121 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8122 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8123 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 8124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8125 | else |
| 8126 | case $POD2MAN in |
| 8127 | [\\/]* | ?:[\\/]*) |
| 8128 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 8129 | ;; |
| 8130 | *) |
| 8131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8132 | for as_dir in $PATH |
| 8133 | do |
| 8134 | IFS=$as_save_IFS |
| 8135 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8136 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8137 | 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] | 8138 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8139 | 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] | 8140 | break 2 |
| 8141 | fi |
| 8142 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8143 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8144 | IFS=$as_save_IFS |
| 8145 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8146 | ;; |
| 8147 | esac |
| 8148 | fi |
| 8149 | POD2MAN=$ac_cv_path_POD2MAN |
| 8150 | if test -n "$POD2MAN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8151 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 8152 | echo "${ECHO_T}$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8153 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8154 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8155 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8156 | fi |
| 8157 | |
| 8158 | |
| 8159 | # Extract the first word of "runtest", so it can be a program name with args. |
| 8160 | set dummy runtest; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8161 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8162 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8163 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 8164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8165 | else |
| 8166 | case $RUNTEST in |
| 8167 | [\\/]* | ?:[\\/]*) |
| 8168 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 8169 | ;; |
| 8170 | *) |
| 8171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8172 | for as_dir in $PATH |
| 8173 | do |
| 8174 | IFS=$as_save_IFS |
| 8175 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8176 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8177 | 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] | 8178 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8179 | 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] | 8180 | break 2 |
| 8181 | fi |
| 8182 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8183 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8184 | IFS=$as_save_IFS |
| 8185 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8186 | ;; |
| 8187 | esac |
| 8188 | fi |
| 8189 | RUNTEST=$ac_cv_path_RUNTEST |
| 8190 | if test -n "$RUNTEST"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8191 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8192 | echo "${ECHO_T}$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8193 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8194 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8195 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8196 | fi |
| 8197 | |
| 8198 | |
| 8199 | |
| 8200 | no_itcl=true |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8201 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8202 | 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] | 8203 | |
| 8204 | # Check whether --with-tclinclude was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8205 | if test "${with_tclinclude+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8206 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8207 | else |
| 8208 | with_tclinclude='' |
| 8209 | fi |
| 8210 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8211 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8213 | else |
| 8214 | |
| 8215 | if test x"${with_tclinclude}" != x ; then |
| 8216 | if test -f ${with_tclinclude}/tclsh ; then |
| 8217 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8218 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8219 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8220 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8221 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8222 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8223 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8224 | fi |
| 8225 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 8226 | fi |
| 8227 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8228 | |
| 8229 | if test x"${ac_cv_path_tclsh}" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8230 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8231 | echo "${ECHO_T}none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8232 | 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 |
| 8233 | do |
| 8234 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8235 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8236 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8237 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8238 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8240 | else |
| 8241 | case $TCLSH in |
| 8242 | [\\/]* | ?:[\\/]*) |
| 8243 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8244 | ;; |
| 8245 | *) |
| 8246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8247 | for as_dir in $PATH |
| 8248 | do |
| 8249 | IFS=$as_save_IFS |
| 8250 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8251 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8252 | 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] | 8253 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8254 | 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] | 8255 | break 2 |
| 8256 | fi |
| 8257 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8258 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8259 | IFS=$as_save_IFS |
| 8260 | |
| 8261 | ;; |
| 8262 | esac |
| 8263 | fi |
| 8264 | TCLSH=$ac_cv_path_TCLSH |
| 8265 | if test -n "$TCLSH"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8266 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8267 | echo "${ECHO_T}$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8268 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8269 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8270 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8271 | fi |
| 8272 | |
| 8273 | |
| 8274 | test -n "$TCLSH" && break |
| 8275 | done |
| 8276 | |
| 8277 | if test x"${TCLSH}" = x ; then |
| 8278 | ac_cv_path_tclsh=''; |
| 8279 | else |
| 8280 | ac_cv_path_tclsh="${TCLSH}"; |
| 8281 | fi |
| 8282 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8283 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8284 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8285 | TCLSH="${ac_cv_path_tclsh}" |
| 8286 | |
| 8287 | fi |
| 8288 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8289 | # Extract the first word of "zip", so it can be a program name with args. |
| 8290 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8291 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8292 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8293 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8295 | else |
| 8296 | case $ZIP in |
| 8297 | [\\/]* | ?:[\\/]*) |
| 8298 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8299 | ;; |
| 8300 | *) |
| 8301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8302 | for as_dir in $PATH |
| 8303 | do |
| 8304 | IFS=$as_save_IFS |
| 8305 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8306 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8307 | 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] | 8308 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8309 | 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] | 8310 | break 2 |
| 8311 | fi |
| 8312 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8313 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8314 | IFS=$as_save_IFS |
| 8315 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8316 | ;; |
| 8317 | esac |
| 8318 | fi |
| 8319 | ZIP=$ac_cv_path_ZIP |
| 8320 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8321 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8322 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8323 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8324 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8325 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8326 | fi |
| 8327 | |
| 8328 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8329 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8330 | do |
| 8331 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8332 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8333 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8334 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8335 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8337 | else |
| 8338 | case $OCAMLC in |
| 8339 | [\\/]* | ?:[\\/]*) |
| 8340 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8341 | ;; |
| 8342 | *) |
| 8343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8344 | for as_dir in $PATH |
| 8345 | do |
| 8346 | IFS=$as_save_IFS |
| 8347 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8348 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8349 | 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] | 8350 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8351 | 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] | 8352 | break 2 |
| 8353 | fi |
| 8354 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8355 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8356 | IFS=$as_save_IFS |
| 8357 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8358 | ;; |
| 8359 | esac |
| 8360 | fi |
| 8361 | OCAMLC=$ac_cv_path_OCAMLC |
| 8362 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8363 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8364 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8365 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8366 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8367 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8368 | fi |
| 8369 | |
| 8370 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8371 | test -n "$OCAMLC" && break |
| 8372 | done |
| 8373 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8374 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8375 | do |
| 8376 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8377 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8378 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8380 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8382 | else |
| 8383 | case $OCAMLOPT in |
| 8384 | [\\/]* | ?:[\\/]*) |
| 8385 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8386 | ;; |
| 8387 | *) |
| 8388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8389 | for as_dir in $PATH |
| 8390 | do |
| 8391 | IFS=$as_save_IFS |
| 8392 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8393 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8394 | 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] | 8395 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8396 | 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] | 8397 | break 2 |
| 8398 | fi |
| 8399 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8400 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8401 | IFS=$as_save_IFS |
| 8402 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8403 | ;; |
| 8404 | esac |
| 8405 | fi |
| 8406 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8407 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8408 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8409 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8410 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8411 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8412 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8413 | fi |
| 8414 | |
| 8415 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8416 | test -n "$OCAMLOPT" && break |
| 8417 | done |
| 8418 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8419 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8420 | do |
| 8421 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8422 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8423 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8425 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8427 | else |
| 8428 | case $OCAMLDEP in |
| 8429 | [\\/]* | ?:[\\/]*) |
| 8430 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8431 | ;; |
| 8432 | *) |
| 8433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8434 | for as_dir in $PATH |
| 8435 | do |
| 8436 | IFS=$as_save_IFS |
| 8437 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8438 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8439 | 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] | 8440 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8441 | 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] | 8442 | break 2 |
| 8443 | fi |
| 8444 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8445 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8446 | IFS=$as_save_IFS |
| 8447 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8448 | ;; |
| 8449 | esac |
| 8450 | fi |
| 8451 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8452 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8453 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8454 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8455 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8456 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8457 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8458 | fi |
| 8459 | |
| 8460 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8461 | test -n "$OCAMLDEP" && break |
| 8462 | done |
| 8463 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8464 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8465 | do |
| 8466 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8467 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8468 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8470 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8472 | else |
| 8473 | case $OCAMLDOC in |
| 8474 | [\\/]* | ?:[\\/]*) |
| 8475 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8476 | ;; |
| 8477 | *) |
| 8478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8479 | for as_dir in $PATH |
| 8480 | do |
| 8481 | IFS=$as_save_IFS |
| 8482 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8483 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8484 | 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] | 8485 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8486 | 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] | 8487 | break 2 |
| 8488 | fi |
| 8489 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8490 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8491 | IFS=$as_save_IFS |
| 8492 | |
| 8493 | ;; |
| 8494 | esac |
| 8495 | fi |
| 8496 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8497 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8498 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8499 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8500 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8501 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8502 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8503 | fi |
| 8504 | |
| 8505 | |
| 8506 | test -n "$OCAMLDOC" && break |
| 8507 | done |
| 8508 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8509 | for ac_prog in gas as |
| 8510 | do |
| 8511 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8512 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8513 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8514 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8515 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8517 | else |
| 8518 | case $GAS in |
| 8519 | [\\/]* | ?:[\\/]*) |
| 8520 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8521 | ;; |
| 8522 | *) |
| 8523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8524 | for as_dir in $PATH |
| 8525 | do |
| 8526 | IFS=$as_save_IFS |
| 8527 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8528 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8529 | 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] | 8530 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8531 | 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] | 8532 | break 2 |
| 8533 | fi |
| 8534 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8535 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8536 | IFS=$as_save_IFS |
| 8537 | |
| 8538 | ;; |
| 8539 | esac |
| 8540 | fi |
| 8541 | GAS=$ac_cv_path_GAS |
| 8542 | if test -n "$GAS"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8543 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8544 | echo "${ECHO_T}$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8545 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8546 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8547 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8548 | fi |
| 8549 | |
| 8550 | |
| 8551 | test -n "$GAS" && break |
| 8552 | done |
| 8553 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8554 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8555 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8556 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8557 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8559 | else |
| 8560 | ac_ext=c |
| 8561 | ac_cpp='$CPP $CPPFLAGS' |
| 8562 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8563 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8564 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8565 | |
| 8566 | oldcflags="$CFLAGS" |
| 8567 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8568 | cat >conftest.$ac_ext <<_ACEOF |
| 8569 | /* confdefs.h. */ |
| 8570 | _ACEOF |
| 8571 | cat confdefs.h >>conftest.$ac_ext |
| 8572 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8573 | /* end confdefs.h. */ |
| 8574 | |
| 8575 | int |
| 8576 | main () |
| 8577 | { |
| 8578 | int main() { return 0; } |
| 8579 | ; |
| 8580 | return 0; |
| 8581 | } |
| 8582 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8583 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8584 | if { (ac_try="$ac_link" |
| 8585 | case "(($ac_try" in |
| 8586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8587 | *) ac_try_echo=$ac_try;; |
| 8588 | esac |
| 8589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8590 | (eval "$ac_link") 2>conftest.er1 |
| 8591 | ac_status=$? |
| 8592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8593 | rm -f conftest.er1 |
| 8594 | cat conftest.err >&5 |
| 8595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8596 | (exit $ac_status); } && |
| 8597 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8598 | { (case "(($ac_try" in |
| 8599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8600 | *) ac_try_echo=$ac_try;; |
| 8601 | esac |
| 8602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8603 | (eval "$ac_try") 2>&5 |
| 8604 | ac_status=$? |
| 8605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8606 | (exit $ac_status); }; } && |
| 8607 | { ac_try='test -s conftest$ac_exeext' |
| 8608 | { (case "(($ac_try" in |
| 8609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8610 | *) ac_try_echo=$ac_try;; |
| 8611 | esac |
| 8612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8613 | (eval "$ac_try") 2>&5 |
| 8614 | ac_status=$? |
| 8615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8616 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8617 | llvm_cv_link_use_r=yes |
| 8618 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8619 | echo "$as_me: failed program was:" >&5 |
| 8620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8621 | |
| 8622 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8623 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8624 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8625 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8626 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8627 | CFLAGS="$oldcflags" |
| 8628 | ac_ext=c |
| 8629 | ac_cpp='$CPP $CPPFLAGS' |
| 8630 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8631 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8632 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8633 | |
| 8634 | |
| 8635 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8636 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8637 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8638 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8639 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8640 | cat >>confdefs.h <<\_ACEOF |
| 8641 | #define HAVE_LINK_R 1 |
| 8642 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8643 | |
| 8644 | fi |
| 8645 | |
| 8646 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8647 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8648 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8649 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8651 | else |
| 8652 | ac_ext=c |
| 8653 | ac_cpp='$CPP $CPPFLAGS' |
| 8654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8657 | |
| 8658 | oldcflags="$CFLAGS" |
| 8659 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8660 | cat >conftest.$ac_ext <<_ACEOF |
| 8661 | /* confdefs.h. */ |
| 8662 | _ACEOF |
| 8663 | cat confdefs.h >>conftest.$ac_ext |
| 8664 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8665 | /* end confdefs.h. */ |
| 8666 | |
| 8667 | int |
| 8668 | main () |
| 8669 | { |
| 8670 | int main() { return 0; } |
| 8671 | ; |
| 8672 | return 0; |
| 8673 | } |
| 8674 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8675 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8676 | if { (ac_try="$ac_link" |
| 8677 | case "(($ac_try" in |
| 8678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8679 | *) ac_try_echo=$ac_try;; |
| 8680 | esac |
| 8681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8682 | (eval "$ac_link") 2>conftest.er1 |
| 8683 | ac_status=$? |
| 8684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8685 | rm -f conftest.er1 |
| 8686 | cat conftest.err >&5 |
| 8687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8688 | (exit $ac_status); } && |
| 8689 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8690 | { (case "(($ac_try" in |
| 8691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8692 | *) ac_try_echo=$ac_try;; |
| 8693 | esac |
| 8694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8695 | (eval "$ac_try") 2>&5 |
| 8696 | ac_status=$? |
| 8697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8698 | (exit $ac_status); }; } && |
| 8699 | { ac_try='test -s conftest$ac_exeext' |
| 8700 | { (case "(($ac_try" in |
| 8701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8702 | *) ac_try_echo=$ac_try;; |
| 8703 | esac |
| 8704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8705 | (eval "$ac_try") 2>&5 |
| 8706 | ac_status=$? |
| 8707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8708 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8709 | llvm_cv_link_use_export_dynamic=yes |
| 8710 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8711 | echo "$as_me: failed program was:" >&5 |
| 8712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8713 | |
| 8714 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8715 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8716 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8717 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8718 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8719 | CFLAGS="$oldcflags" |
| 8720 | ac_ext=c |
| 8721 | ac_cpp='$CPP $CPPFLAGS' |
| 8722 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8723 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8724 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8725 | |
| 8726 | |
| 8727 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8728 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 8729 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8730 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 8731 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8732 | cat >>confdefs.h <<\_ACEOF |
| 8733 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 8734 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8735 | |
| 8736 | fi |
| 8737 | |
| 8738 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8739 | |
| 8740 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8741 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8742 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8743 | if test "${ac_cv_c_const+set}" = set; then |
| 8744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8745 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8746 | cat >conftest.$ac_ext <<_ACEOF |
| 8747 | /* confdefs.h. */ |
| 8748 | _ACEOF |
| 8749 | cat confdefs.h >>conftest.$ac_ext |
| 8750 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8751 | /* end confdefs.h. */ |
| 8752 | |
| 8753 | int |
| 8754 | main () |
| 8755 | { |
| 8756 | /* FIXME: Include the comments suggested by Paul. */ |
| 8757 | #ifndef __cplusplus |
| 8758 | /* Ultrix mips cc rejects this. */ |
| 8759 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8760 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8761 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8762 | char const *const *ccp; |
| 8763 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8764 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8765 | struct point {int x, y;}; |
| 8766 | static struct point const zero = {0,0}; |
| 8767 | /* AIX XL C 1.02.0.0 rejects this. |
| 8768 | It does not let you subtract one const X* pointer from another in |
| 8769 | an arm of an if-expression whose if-part is not a constant |
| 8770 | expression */ |
| 8771 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8772 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8773 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8774 | ++ccp; |
| 8775 | p = (char**) ccp; |
| 8776 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8777 | { /* SCO 3.2v4 cc rejects this. */ |
| 8778 | char *t; |
| 8779 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8780 | |
| 8781 | *t++ = 0; |
| 8782 | if (s) return 0; |
| 8783 | } |
| 8784 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8785 | int x[] = {25, 17}; |
| 8786 | const int *foo = &x[0]; |
| 8787 | ++foo; |
| 8788 | } |
| 8789 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8790 | typedef const int *iptr; |
| 8791 | iptr p = 0; |
| 8792 | ++p; |
| 8793 | } |
| 8794 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8795 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8796 | struct s { int j; const int *ap[3]; }; |
| 8797 | struct s *b; b->j = 5; |
| 8798 | } |
| 8799 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8800 | const int foo = 10; |
| 8801 | if (!foo) return 0; |
| 8802 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8803 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8804 | #endif |
| 8805 | |
| 8806 | ; |
| 8807 | return 0; |
| 8808 | } |
| 8809 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8810 | rm -f conftest.$ac_objext |
| 8811 | if { (ac_try="$ac_compile" |
| 8812 | case "(($ac_try" in |
| 8813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8814 | *) ac_try_echo=$ac_try;; |
| 8815 | esac |
| 8816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8817 | (eval "$ac_compile") 2>conftest.er1 |
| 8818 | ac_status=$? |
| 8819 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8820 | rm -f conftest.er1 |
| 8821 | cat conftest.err >&5 |
| 8822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8823 | (exit $ac_status); } && |
| 8824 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8825 | { (case "(($ac_try" in |
| 8826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8827 | *) ac_try_echo=$ac_try;; |
| 8828 | esac |
| 8829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8830 | (eval "$ac_try") 2>&5 |
| 8831 | ac_status=$? |
| 8832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8833 | (exit $ac_status); }; } && |
| 8834 | { ac_try='test -s conftest.$ac_objext' |
| 8835 | { (case "(($ac_try" in |
| 8836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8837 | *) ac_try_echo=$ac_try;; |
| 8838 | esac |
| 8839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8840 | (eval "$ac_try") 2>&5 |
| 8841 | ac_status=$? |
| 8842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8843 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8844 | ac_cv_c_const=yes |
| 8845 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8846 | echo "$as_me: failed program was:" >&5 |
| 8847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8848 | |
| 8849 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8850 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8851 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8853 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8854 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8855 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8856 | if test $ac_cv_c_const = no; then |
| 8857 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8858 | cat >>confdefs.h <<\_ACEOF |
| 8859 | #define const |
| 8860 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8861 | |
| 8862 | fi |
| 8863 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8864 | |
| 8865 | |
| 8866 | |
| 8867 | |
| 8868 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8869 | ac_header_dirent=no |
| 8870 | 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] | 8871 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 8872 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8873 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8874 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8876 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8877 | cat >conftest.$ac_ext <<_ACEOF |
| 8878 | /* confdefs.h. */ |
| 8879 | _ACEOF |
| 8880 | cat confdefs.h >>conftest.$ac_ext |
| 8881 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8882 | /* end confdefs.h. */ |
| 8883 | #include <sys/types.h> |
| 8884 | #include <$ac_hdr> |
| 8885 | |
| 8886 | int |
| 8887 | main () |
| 8888 | { |
| 8889 | if ((DIR *) 0) |
| 8890 | return 0; |
| 8891 | ; |
| 8892 | return 0; |
| 8893 | } |
| 8894 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8895 | rm -f conftest.$ac_objext |
| 8896 | if { (ac_try="$ac_compile" |
| 8897 | case "(($ac_try" in |
| 8898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8899 | *) ac_try_echo=$ac_try;; |
| 8900 | esac |
| 8901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8902 | (eval "$ac_compile") 2>conftest.er1 |
| 8903 | ac_status=$? |
| 8904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8905 | rm -f conftest.er1 |
| 8906 | cat conftest.err >&5 |
| 8907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8908 | (exit $ac_status); } && |
| 8909 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8910 | { (case "(($ac_try" in |
| 8911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8912 | *) ac_try_echo=$ac_try;; |
| 8913 | esac |
| 8914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8915 | (eval "$ac_try") 2>&5 |
| 8916 | ac_status=$? |
| 8917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8918 | (exit $ac_status); }; } && |
| 8919 | { ac_try='test -s conftest.$ac_objext' |
| 8920 | { (case "(($ac_try" in |
| 8921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8922 | *) ac_try_echo=$ac_try;; |
| 8923 | esac |
| 8924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8925 | (eval "$ac_try") 2>&5 |
| 8926 | ac_status=$? |
| 8927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8928 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8929 | eval "$as_ac_Header=yes" |
| 8930 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8931 | echo "$as_me: failed program was:" >&5 |
| 8932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8933 | |
| 8934 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8935 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8936 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8938 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8939 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8940 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8941 | echo "${ECHO_T}$ac_res" >&6; } |
| 8942 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8943 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8944 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8945 | _ACEOF |
| 8946 | |
| 8947 | ac_header_dirent=$ac_hdr; break |
| 8948 | fi |
| 8949 | |
| 8950 | done |
| 8951 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8952 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8953 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8954 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8955 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8957 | else |
| 8958 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8959 | cat >conftest.$ac_ext <<_ACEOF |
| 8960 | /* confdefs.h. */ |
| 8961 | _ACEOF |
| 8962 | cat confdefs.h >>conftest.$ac_ext |
| 8963 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8964 | /* end confdefs.h. */ |
| 8965 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8966 | /* Override any GCC internal prototype to avoid an error. |
| 8967 | Use char because int might match the return type of a GCC |
| 8968 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8969 | #ifdef __cplusplus |
| 8970 | extern "C" |
| 8971 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8972 | char opendir (); |
| 8973 | int |
| 8974 | main () |
| 8975 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8976 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8977 | ; |
| 8978 | return 0; |
| 8979 | } |
| 8980 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8981 | for ac_lib in '' dir; do |
| 8982 | if test -z "$ac_lib"; then |
| 8983 | ac_res="none required" |
| 8984 | else |
| 8985 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8986 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8987 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8988 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8989 | if { (ac_try="$ac_link" |
| 8990 | case "(($ac_try" in |
| 8991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8992 | *) ac_try_echo=$ac_try;; |
| 8993 | esac |
| 8994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8995 | (eval "$ac_link") 2>conftest.er1 |
| 8996 | ac_status=$? |
| 8997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8998 | rm -f conftest.er1 |
| 8999 | cat conftest.err >&5 |
| 9000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9001 | (exit $ac_status); } && |
| 9002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9003 | { (case "(($ac_try" in |
| 9004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9005 | *) ac_try_echo=$ac_try;; |
| 9006 | esac |
| 9007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9008 | (eval "$ac_try") 2>&5 |
| 9009 | ac_status=$? |
| 9010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9011 | (exit $ac_status); }; } && |
| 9012 | { ac_try='test -s conftest$ac_exeext' |
| 9013 | { (case "(($ac_try" in |
| 9014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9015 | *) ac_try_echo=$ac_try;; |
| 9016 | esac |
| 9017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9018 | (eval "$ac_try") 2>&5 |
| 9019 | ac_status=$? |
| 9020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9021 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9022 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9023 | else |
| 9024 | echo "$as_me: failed program was:" >&5 |
| 9025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9026 | |
| 9027 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9028 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9029 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9030 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9031 | conftest$ac_exeext |
| 9032 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9033 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9034 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9035 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9036 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9037 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9038 | else |
| 9039 | ac_cv_search_opendir=no |
| 9040 | fi |
| 9041 | rm conftest.$ac_ext |
| 9042 | LIBS=$ac_func_search_save_LIBS |
| 9043 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9044 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9045 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9046 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9047 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9048 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9049 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9050 | fi |
| 9051 | |
| 9052 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9053 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9054 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9055 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9057 | else |
| 9058 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9059 | cat >conftest.$ac_ext <<_ACEOF |
| 9060 | /* confdefs.h. */ |
| 9061 | _ACEOF |
| 9062 | cat confdefs.h >>conftest.$ac_ext |
| 9063 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9064 | /* end confdefs.h. */ |
| 9065 | |
| 9066 | /* Override any GCC internal prototype to avoid an error. |
| 9067 | Use char because int might match the return type of a GCC |
| 9068 | builtin and then its argument prototype would still apply. */ |
| 9069 | #ifdef __cplusplus |
| 9070 | extern "C" |
| 9071 | #endif |
| 9072 | char opendir (); |
| 9073 | int |
| 9074 | main () |
| 9075 | { |
| 9076 | return opendir (); |
| 9077 | ; |
| 9078 | return 0; |
| 9079 | } |
| 9080 | _ACEOF |
| 9081 | for ac_lib in '' x; do |
| 9082 | if test -z "$ac_lib"; then |
| 9083 | ac_res="none required" |
| 9084 | else |
| 9085 | ac_res=-l$ac_lib |
| 9086 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9087 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9088 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9089 | if { (ac_try="$ac_link" |
| 9090 | case "(($ac_try" in |
| 9091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9092 | *) ac_try_echo=$ac_try;; |
| 9093 | esac |
| 9094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9095 | (eval "$ac_link") 2>conftest.er1 |
| 9096 | ac_status=$? |
| 9097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9098 | rm -f conftest.er1 |
| 9099 | cat conftest.err >&5 |
| 9100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9101 | (exit $ac_status); } && |
| 9102 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9103 | { (case "(($ac_try" in |
| 9104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9105 | *) ac_try_echo=$ac_try;; |
| 9106 | esac |
| 9107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9108 | (eval "$ac_try") 2>&5 |
| 9109 | ac_status=$? |
| 9110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9111 | (exit $ac_status); }; } && |
| 9112 | { ac_try='test -s conftest$ac_exeext' |
| 9113 | { (case "(($ac_try" in |
| 9114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9115 | *) ac_try_echo=$ac_try;; |
| 9116 | esac |
| 9117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9118 | (eval "$ac_try") 2>&5 |
| 9119 | ac_status=$? |
| 9120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9121 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9122 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9123 | else |
| 9124 | echo "$as_me: failed program was:" >&5 |
| 9125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9126 | |
| 9127 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9128 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9129 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9130 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9131 | conftest$ac_exeext |
| 9132 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9133 | break |
| 9134 | fi |
| 9135 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9136 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9137 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9138 | else |
| 9139 | ac_cv_search_opendir=no |
| 9140 | fi |
| 9141 | rm conftest.$ac_ext |
| 9142 | LIBS=$ac_func_search_save_LIBS |
| 9143 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9144 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9145 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9146 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9147 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9148 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9149 | |
| 9150 | fi |
| 9151 | |
| 9152 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9153 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9154 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9155 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9156 | do |
| 9157 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9158 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9159 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9160 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9161 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9163 | fi |
| 9164 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9165 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9166 | echo "${ECHO_T}$ac_res" >&6; } |
| 9167 | else |
| 9168 | # Is the header compilable? |
| 9169 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9170 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 9171 | cat >conftest.$ac_ext <<_ACEOF |
| 9172 | /* confdefs.h. */ |
| 9173 | _ACEOF |
| 9174 | cat confdefs.h >>conftest.$ac_ext |
| 9175 | cat >>conftest.$ac_ext <<_ACEOF |
| 9176 | /* end confdefs.h. */ |
| 9177 | $ac_includes_default |
| 9178 | #include <$ac_header> |
| 9179 | _ACEOF |
| 9180 | rm -f conftest.$ac_objext |
| 9181 | if { (ac_try="$ac_compile" |
| 9182 | case "(($ac_try" in |
| 9183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9184 | *) ac_try_echo=$ac_try;; |
| 9185 | esac |
| 9186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9187 | (eval "$ac_compile") 2>conftest.er1 |
| 9188 | ac_status=$? |
| 9189 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9190 | rm -f conftest.er1 |
| 9191 | cat conftest.err >&5 |
| 9192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9193 | (exit $ac_status); } && |
| 9194 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9195 | { (case "(($ac_try" in |
| 9196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9197 | *) ac_try_echo=$ac_try;; |
| 9198 | esac |
| 9199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9200 | (eval "$ac_try") 2>&5 |
| 9201 | ac_status=$? |
| 9202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9203 | (exit $ac_status); }; } && |
| 9204 | { ac_try='test -s conftest.$ac_objext' |
| 9205 | { (case "(($ac_try" in |
| 9206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9207 | *) ac_try_echo=$ac_try;; |
| 9208 | esac |
| 9209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9210 | (eval "$ac_try") 2>&5 |
| 9211 | ac_status=$? |
| 9212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9213 | (exit $ac_status); }; }; then |
| 9214 | ac_header_compiler=yes |
| 9215 | else |
| 9216 | echo "$as_me: failed program was:" >&5 |
| 9217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9218 | |
| 9219 | ac_header_compiler=no |
| 9220 | fi |
| 9221 | |
| 9222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9223 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9224 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9225 | |
| 9226 | # Is the header present? |
| 9227 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9228 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 9229 | cat >conftest.$ac_ext <<_ACEOF |
| 9230 | /* confdefs.h. */ |
| 9231 | _ACEOF |
| 9232 | cat confdefs.h >>conftest.$ac_ext |
| 9233 | cat >>conftest.$ac_ext <<_ACEOF |
| 9234 | /* end confdefs.h. */ |
| 9235 | #include <$ac_header> |
| 9236 | _ACEOF |
| 9237 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9238 | case "(($ac_try" in |
| 9239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9240 | *) ac_try_echo=$ac_try;; |
| 9241 | esac |
| 9242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9243 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9244 | ac_status=$? |
| 9245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9246 | rm -f conftest.er1 |
| 9247 | cat conftest.err >&5 |
| 9248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9249 | (exit $ac_status); } >/dev/null; then |
| 9250 | if test -s conftest.err; then |
| 9251 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9252 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9253 | else |
| 9254 | ac_cpp_err= |
| 9255 | fi |
| 9256 | else |
| 9257 | ac_cpp_err=yes |
| 9258 | fi |
| 9259 | if test -z "$ac_cpp_err"; then |
| 9260 | ac_header_preproc=yes |
| 9261 | else |
| 9262 | echo "$as_me: failed program was:" >&5 |
| 9263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9264 | |
| 9265 | ac_header_preproc=no |
| 9266 | fi |
| 9267 | |
| 9268 | rm -f conftest.err conftest.$ac_ext |
| 9269 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9270 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9271 | |
| 9272 | # So? What about this header? |
| 9273 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9274 | yes:no: ) |
| 9275 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9276 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9277 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9278 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9279 | ac_header_preproc=yes |
| 9280 | ;; |
| 9281 | no:yes:* ) |
| 9282 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9283 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9284 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9285 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9286 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9287 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9288 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9289 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9290 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9291 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9292 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9293 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9294 | ( cat <<\_ASBOX |
| 9295 | ## ----------------------------------- ## |
| 9296 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9297 | ## ----------------------------------- ## |
| 9298 | _ASBOX |
| 9299 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 9300 | ;; |
| 9301 | esac |
| 9302 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9303 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9304 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9306 | else |
| 9307 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9308 | fi |
| 9309 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9310 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9311 | echo "${ECHO_T}$ac_res" >&6; } |
| 9312 | |
| 9313 | fi |
| 9314 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9315 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9316 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9317 | _ACEOF |
| 9318 | |
| 9319 | fi |
| 9320 | |
| 9321 | done |
| 9322 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9323 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9324 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9325 | enableval=$enable_ltdl_install; |
| 9326 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9327 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9328 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9329 | |
| 9330 | |
| 9331 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9332 | INSTALL_LTDL_TRUE= |
| 9333 | INSTALL_LTDL_FALSE='#' |
| 9334 | else |
| 9335 | INSTALL_LTDL_TRUE='#' |
| 9336 | INSTALL_LTDL_FALSE= |
| 9337 | fi |
| 9338 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9339 | |
| 9340 | |
| 9341 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9342 | CONVENIENCE_LTDL_TRUE= |
| 9343 | CONVENIENCE_LTDL_FALSE='#' |
| 9344 | else |
| 9345 | CONVENIENCE_LTDL_TRUE='#' |
| 9346 | CONVENIENCE_LTDL_FALSE= |
| 9347 | fi |
| 9348 | |
| 9349 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9350 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9351 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9352 | library_names_spec= |
| 9353 | libname_spec='lib$name' |
| 9354 | soname_spec= |
| 9355 | shrext_cmds=".so" |
| 9356 | postinstall_cmds= |
| 9357 | postuninstall_cmds= |
| 9358 | finish_cmds= |
| 9359 | finish_eval= |
| 9360 | shlibpath_var= |
| 9361 | shlibpath_overrides_runpath=unknown |
| 9362 | version_type=none |
| 9363 | dynamic_linker="$host_os ld.so" |
| 9364 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9365 | if test "$GCC" = yes; then |
| 9366 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9367 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9368 | # if the path contains ";" then we assume it to be the separator |
| 9369 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9370 | # assumed that no part of a normal pathname contains ";" but that should |
| 9371 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9372 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9373 | else |
| 9374 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9375 | fi |
| 9376 | else |
| 9377 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9378 | fi |
| 9379 | need_lib_prefix=unknown |
| 9380 | hardcode_into_libs=no |
| 9381 | |
| 9382 | # when you set need_version to no, make sure it does not cause -set_version |
| 9383 | # flags to be left without arguments |
| 9384 | need_version=unknown |
| 9385 | |
| 9386 | case $host_os in |
| 9387 | aix3*) |
| 9388 | version_type=linux |
| 9389 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9390 | shlibpath_var=LIBPATH |
| 9391 | |
| 9392 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9393 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9394 | ;; |
| 9395 | |
| 9396 | aix4* | aix5*) |
| 9397 | version_type=linux |
| 9398 | need_lib_prefix=no |
| 9399 | need_version=no |
| 9400 | hardcode_into_libs=yes |
| 9401 | if test "$host_cpu" = ia64; then |
| 9402 | # AIX 5 supports IA64 |
| 9403 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9404 | shlibpath_var=LD_LIBRARY_PATH |
| 9405 | else |
| 9406 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9407 | # for dependence libraries. The import file would start with |
| 9408 | # the line `#! .'. This would cause the generated library to |
| 9409 | # depend on `.', always an invalid library. This was fixed in |
| 9410 | # development snapshots of GCC prior to 3.0. |
| 9411 | case $host_os in |
| 9412 | aix4 | aix4.[01] | aix4.[01].*) |
| 9413 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9414 | echo ' yes ' |
| 9415 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9416 | : |
| 9417 | else |
| 9418 | can_build_shared=no |
| 9419 | fi |
| 9420 | ;; |
| 9421 | esac |
| 9422 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9423 | # soname into executable. Probably we can add versioning support to |
| 9424 | # collect2, so additional links can be useful in future. |
| 9425 | if test "$aix_use_runtimelinking" = yes; then |
| 9426 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9427 | # instead of lib<name>.a to let people know that these are not |
| 9428 | # typical AIX shared libraries. |
| 9429 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9430 | else |
| 9431 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9432 | # and later when we are not doing run time linking. |
| 9433 | library_names_spec='${libname}${release}.a $libname.a' |
| 9434 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9435 | fi |
| 9436 | shlibpath_var=LIBPATH |
| 9437 | fi |
| 9438 | ;; |
| 9439 | |
| 9440 | amigaos*) |
| 9441 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9442 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9443 | 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' |
| 9444 | ;; |
| 9445 | |
| 9446 | beos*) |
| 9447 | library_names_spec='${libname}${shared_ext}' |
| 9448 | dynamic_linker="$host_os ld.so" |
| 9449 | shlibpath_var=LIBRARY_PATH |
| 9450 | ;; |
| 9451 | |
| 9452 | bsdi[45]*) |
| 9453 | version_type=linux |
| 9454 | need_version=no |
| 9455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9456 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9457 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9458 | shlibpath_var=LD_LIBRARY_PATH |
| 9459 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9460 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9461 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9462 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9463 | # libtool to hard-code these into programs |
| 9464 | ;; |
| 9465 | |
| 9466 | cygwin* | mingw* | pw32*) |
| 9467 | version_type=windows |
| 9468 | shrext_cmds=".dll" |
| 9469 | need_version=no |
| 9470 | need_lib_prefix=no |
| 9471 | |
| 9472 | case $GCC,$host_os in |
| 9473 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9474 | library_names_spec='$libname.dll.a' |
| 9475 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9476 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9477 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9478 | dldir=$destdir/`dirname \$dlpath`~ |
| 9479 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9480 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9481 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9482 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9483 | dlpath=$dir/\$dldll~ |
| 9484 | $rm \$dlpath' |
| 9485 | shlibpath_overrides_runpath=yes |
| 9486 | |
| 9487 | case $host_os in |
| 9488 | cygwin*) |
| 9489 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9490 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9491 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9492 | ;; |
| 9493 | mingw*) |
| 9494 | # MinGW DLLs use traditional 'lib' prefix |
| 9495 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9496 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9497 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9498 | # It is most probably a Windows format PATH printed by |
| 9499 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9500 | # path with ; separators, and with drive letters. We can handle the |
| 9501 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9502 | # especially as we might pass files found there to a mingw objdump, |
| 9503 | # which wouldn't understand a cygwinified path. Ahh. |
| 9504 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9505 | else |
| 9506 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9507 | fi |
| 9508 | ;; |
| 9509 | pw32*) |
| 9510 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9511 | 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] | 9512 | ;; |
| 9513 | esac |
| 9514 | ;; |
| 9515 | |
| 9516 | *) |
| 9517 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9518 | ;; |
| 9519 | esac |
| 9520 | dynamic_linker='Win32 ld.exe' |
| 9521 | # FIXME: first we should search . and the directory the executable is in |
| 9522 | shlibpath_var=PATH |
| 9523 | ;; |
| 9524 | |
| 9525 | darwin* | rhapsody*) |
| 9526 | dynamic_linker="$host_os dyld" |
| 9527 | version_type=darwin |
| 9528 | need_lib_prefix=no |
| 9529 | need_version=no |
| 9530 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9531 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9532 | shlibpath_overrides_runpath=yes |
| 9533 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9534 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9535 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9536 | if test "$GCC" = yes; then |
| 9537 | 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"` |
| 9538 | else |
| 9539 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9540 | fi |
| 9541 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9542 | ;; |
| 9543 | |
| 9544 | dgux*) |
| 9545 | version_type=linux |
| 9546 | need_lib_prefix=no |
| 9547 | need_version=no |
| 9548 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9549 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9550 | shlibpath_var=LD_LIBRARY_PATH |
| 9551 | ;; |
| 9552 | |
| 9553 | freebsd1*) |
| 9554 | dynamic_linker=no |
| 9555 | ;; |
| 9556 | |
| 9557 | kfreebsd*-gnu) |
| 9558 | version_type=linux |
| 9559 | need_lib_prefix=no |
| 9560 | need_version=no |
| 9561 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9562 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9563 | shlibpath_var=LD_LIBRARY_PATH |
| 9564 | shlibpath_overrides_runpath=no |
| 9565 | hardcode_into_libs=yes |
| 9566 | dynamic_linker='GNU ld.so' |
| 9567 | ;; |
| 9568 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9569 | freebsd* | dragonfly*) |
| 9570 | # DragonFly does not have aout. When/if they implement a new |
| 9571 | # versioning mechanism, adjust this. |
| 9572 | if test -x /usr/bin/objformat; then |
| 9573 | objformat=`/usr/bin/objformat` |
| 9574 | else |
| 9575 | case $host_os in |
| 9576 | freebsd[123]*) objformat=aout ;; |
| 9577 | *) objformat=elf ;; |
| 9578 | esac |
| 9579 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9580 | version_type=freebsd-$objformat |
| 9581 | case $version_type in |
| 9582 | freebsd-elf*) |
| 9583 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9584 | need_version=no |
| 9585 | need_lib_prefix=no |
| 9586 | ;; |
| 9587 | freebsd-*) |
| 9588 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9589 | need_version=yes |
| 9590 | ;; |
| 9591 | esac |
| 9592 | shlibpath_var=LD_LIBRARY_PATH |
| 9593 | case $host_os in |
| 9594 | freebsd2*) |
| 9595 | shlibpath_overrides_runpath=yes |
| 9596 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9597 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9598 | shlibpath_overrides_runpath=yes |
| 9599 | hardcode_into_libs=yes |
| 9600 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9601 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9602 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9603 | shlibpath_overrides_runpath=no |
| 9604 | hardcode_into_libs=yes |
| 9605 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9606 | freebsd*) # from 4.6 on |
| 9607 | shlibpath_overrides_runpath=yes |
| 9608 | hardcode_into_libs=yes |
| 9609 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9610 | esac |
| 9611 | ;; |
| 9612 | |
| 9613 | gnu*) |
| 9614 | version_type=linux |
| 9615 | need_lib_prefix=no |
| 9616 | need_version=no |
| 9617 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9618 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9619 | shlibpath_var=LD_LIBRARY_PATH |
| 9620 | hardcode_into_libs=yes |
| 9621 | ;; |
| 9622 | |
| 9623 | hpux9* | hpux10* | hpux11*) |
| 9624 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9625 | # link against other versions. |
| 9626 | version_type=sunos |
| 9627 | need_lib_prefix=no |
| 9628 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9629 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9630 | ia64*) |
| 9631 | shrext_cmds='.so' |
| 9632 | hardcode_into_libs=yes |
| 9633 | dynamic_linker="$host_os dld.so" |
| 9634 | shlibpath_var=LD_LIBRARY_PATH |
| 9635 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9636 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9637 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9638 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9639 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9640 | else |
| 9641 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9642 | fi |
| 9643 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9644 | ;; |
| 9645 | hppa*64*) |
| 9646 | shrext_cmds='.sl' |
| 9647 | hardcode_into_libs=yes |
| 9648 | dynamic_linker="$host_os dld.sl" |
| 9649 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9650 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9651 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9652 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9653 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9654 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9655 | ;; |
| 9656 | *) |
| 9657 | shrext_cmds='.sl' |
| 9658 | dynamic_linker="$host_os dld.sl" |
| 9659 | shlibpath_var=SHLIB_PATH |
| 9660 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9661 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9662 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9663 | ;; |
| 9664 | esac |
| 9665 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9666 | postinstall_cmds='chmod 555 $lib' |
| 9667 | ;; |
| 9668 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9669 | interix3*) |
| 9670 | version_type=linux |
| 9671 | need_lib_prefix=no |
| 9672 | need_version=no |
| 9673 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9674 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9675 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9676 | shlibpath_var=LD_LIBRARY_PATH |
| 9677 | shlibpath_overrides_runpath=no |
| 9678 | hardcode_into_libs=yes |
| 9679 | ;; |
| 9680 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9681 | irix5* | irix6* | nonstopux*) |
| 9682 | case $host_os in |
| 9683 | nonstopux*) version_type=nonstopux ;; |
| 9684 | *) |
| 9685 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9686 | version_type=linux |
| 9687 | else |
| 9688 | version_type=irix |
| 9689 | fi ;; |
| 9690 | esac |
| 9691 | need_lib_prefix=no |
| 9692 | need_version=no |
| 9693 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9694 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9695 | case $host_os in |
| 9696 | irix5* | nonstopux*) |
| 9697 | libsuff= shlibsuff= |
| 9698 | ;; |
| 9699 | *) |
| 9700 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9701 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9702 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9703 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9704 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9705 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9706 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9707 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9708 | esac |
| 9709 | ;; |
| 9710 | esac |
| 9711 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9712 | shlibpath_overrides_runpath=no |
| 9713 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9714 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9715 | hardcode_into_libs=yes |
| 9716 | ;; |
| 9717 | |
| 9718 | # No shared lib support for Linux oldld, aout, or coff. |
| 9719 | linux*oldld* | linux*aout* | linux*coff*) |
| 9720 | dynamic_linker=no |
| 9721 | ;; |
| 9722 | |
| 9723 | # This must be Linux ELF. |
| 9724 | linux*) |
| 9725 | version_type=linux |
| 9726 | need_lib_prefix=no |
| 9727 | need_version=no |
| 9728 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9729 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9730 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9731 | shlibpath_var=LD_LIBRARY_PATH |
| 9732 | shlibpath_overrides_runpath=no |
| 9733 | # This implies no fast_install, which is unacceptable. |
| 9734 | # Some rework will be needed to allow for fast_install |
| 9735 | # before this can be enabled. |
| 9736 | hardcode_into_libs=yes |
| 9737 | |
| 9738 | # Append ld.so.conf contents to the search path |
| 9739 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9740 | 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] | 9741 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9742 | fi |
| 9743 | |
| 9744 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9745 | # powerpc, because MkLinux only supported shared libraries with the |
| 9746 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9747 | # most powerpc-linux boxes support dynamic linking these days and |
| 9748 | # people can always --disable-shared, the test was removed, and we |
| 9749 | # assume the GNU/Linux dynamic linker is in use. |
| 9750 | dynamic_linker='GNU/Linux ld.so' |
| 9751 | ;; |
| 9752 | |
| 9753 | knetbsd*-gnu) |
| 9754 | version_type=linux |
| 9755 | need_lib_prefix=no |
| 9756 | need_version=no |
| 9757 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9758 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9759 | shlibpath_var=LD_LIBRARY_PATH |
| 9760 | shlibpath_overrides_runpath=no |
| 9761 | hardcode_into_libs=yes |
| 9762 | dynamic_linker='GNU ld.so' |
| 9763 | ;; |
| 9764 | |
| 9765 | netbsd*) |
| 9766 | version_type=sunos |
| 9767 | need_lib_prefix=no |
| 9768 | need_version=no |
| 9769 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9771 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9772 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9773 | else |
| 9774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9775 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9776 | dynamic_linker='NetBSD ld.elf_so' |
| 9777 | fi |
| 9778 | shlibpath_var=LD_LIBRARY_PATH |
| 9779 | shlibpath_overrides_runpath=yes |
| 9780 | hardcode_into_libs=yes |
| 9781 | ;; |
| 9782 | |
| 9783 | newsos6) |
| 9784 | version_type=linux |
| 9785 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9786 | shlibpath_var=LD_LIBRARY_PATH |
| 9787 | shlibpath_overrides_runpath=yes |
| 9788 | ;; |
| 9789 | |
| 9790 | nto-qnx*) |
| 9791 | version_type=linux |
| 9792 | need_lib_prefix=no |
| 9793 | need_version=no |
| 9794 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9795 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9796 | shlibpath_var=LD_LIBRARY_PATH |
| 9797 | shlibpath_overrides_runpath=yes |
| 9798 | ;; |
| 9799 | |
| 9800 | openbsd*) |
| 9801 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9802 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9803 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9804 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9805 | case $host_os in |
| 9806 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9807 | *) need_version=no ;; |
| 9808 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9809 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9810 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9811 | shlibpath_var=LD_LIBRARY_PATH |
| 9812 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9813 | case $host_os in |
| 9814 | openbsd2.[89] | openbsd2.[89].*) |
| 9815 | shlibpath_overrides_runpath=no |
| 9816 | ;; |
| 9817 | *) |
| 9818 | shlibpath_overrides_runpath=yes |
| 9819 | ;; |
| 9820 | esac |
| 9821 | else |
| 9822 | shlibpath_overrides_runpath=yes |
| 9823 | fi |
| 9824 | ;; |
| 9825 | |
| 9826 | os2*) |
| 9827 | libname_spec='$name' |
| 9828 | shrext_cmds=".dll" |
| 9829 | need_lib_prefix=no |
| 9830 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9831 | dynamic_linker='OS/2 ld.exe' |
| 9832 | shlibpath_var=LIBPATH |
| 9833 | ;; |
| 9834 | |
| 9835 | osf3* | osf4* | osf5*) |
| 9836 | version_type=osf |
| 9837 | need_lib_prefix=no |
| 9838 | need_version=no |
| 9839 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9840 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9841 | shlibpath_var=LD_LIBRARY_PATH |
| 9842 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9843 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9844 | ;; |
| 9845 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9846 | solaris*) |
| 9847 | version_type=linux |
| 9848 | need_lib_prefix=no |
| 9849 | need_version=no |
| 9850 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9851 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9852 | shlibpath_var=LD_LIBRARY_PATH |
| 9853 | shlibpath_overrides_runpath=yes |
| 9854 | hardcode_into_libs=yes |
| 9855 | # ldd complains unless libraries are executable |
| 9856 | postinstall_cmds='chmod +x $lib' |
| 9857 | ;; |
| 9858 | |
| 9859 | sunos4*) |
| 9860 | version_type=sunos |
| 9861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9862 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9863 | shlibpath_var=LD_LIBRARY_PATH |
| 9864 | shlibpath_overrides_runpath=yes |
| 9865 | if test "$with_gnu_ld" = yes; then |
| 9866 | need_lib_prefix=no |
| 9867 | fi |
| 9868 | need_version=yes |
| 9869 | ;; |
| 9870 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9871 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9872 | version_type=linux |
| 9873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9874 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9875 | shlibpath_var=LD_LIBRARY_PATH |
| 9876 | case $host_vendor in |
| 9877 | sni) |
| 9878 | shlibpath_overrides_runpath=no |
| 9879 | need_lib_prefix=no |
| 9880 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9881 | runpath_var=LD_RUN_PATH |
| 9882 | ;; |
| 9883 | siemens) |
| 9884 | need_lib_prefix=no |
| 9885 | ;; |
| 9886 | motorola) |
| 9887 | need_lib_prefix=no |
| 9888 | need_version=no |
| 9889 | shlibpath_overrides_runpath=no |
| 9890 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9891 | ;; |
| 9892 | esac |
| 9893 | ;; |
| 9894 | |
| 9895 | sysv4*MP*) |
| 9896 | if test -d /usr/nec ;then |
| 9897 | version_type=linux |
| 9898 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9899 | soname_spec='$libname${shared_ext}.$major' |
| 9900 | shlibpath_var=LD_LIBRARY_PATH |
| 9901 | fi |
| 9902 | ;; |
| 9903 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9904 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9905 | version_type=freebsd-elf |
| 9906 | need_lib_prefix=no |
| 9907 | need_version=no |
| 9908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9909 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9910 | shlibpath_var=LD_LIBRARY_PATH |
| 9911 | hardcode_into_libs=yes |
| 9912 | if test "$with_gnu_ld" = yes; then |
| 9913 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9914 | shlibpath_overrides_runpath=no |
| 9915 | else |
| 9916 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9917 | shlibpath_overrides_runpath=yes |
| 9918 | case $host_os in |
| 9919 | sco3.2v5*) |
| 9920 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9921 | ;; |
| 9922 | esac |
| 9923 | fi |
| 9924 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9925 | ;; |
| 9926 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9927 | uts4*) |
| 9928 | version_type=linux |
| 9929 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9930 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9931 | shlibpath_var=LD_LIBRARY_PATH |
| 9932 | ;; |
| 9933 | |
| 9934 | *) |
| 9935 | dynamic_linker=no |
| 9936 | ;; |
| 9937 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9938 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9939 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9940 | test "$dynamic_linker" = no && can_build_shared=no |
| 9941 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9942 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9943 | if test "$GCC" = yes; then |
| 9944 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9945 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9946 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9947 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9948 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9949 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 9950 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9952 | else |
| 9953 | |
| 9954 | module=yes |
| 9955 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9956 | |
| 9957 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9958 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9959 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9960 | if test -n "$libltdl_cv_shlibext"; then |
| 9961 | |
| 9962 | cat >>confdefs.h <<_ACEOF |
| 9963 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9964 | _ACEOF |
| 9965 | |
| 9966 | fi |
| 9967 | |
| 9968 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9969 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9970 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 9971 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9973 | else |
| 9974 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9975 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9976 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9977 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9978 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9979 | |
| 9980 | cat >>confdefs.h <<_ACEOF |
| 9981 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9982 | _ACEOF |
| 9983 | |
| 9984 | fi |
| 9985 | |
| 9986 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9987 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9988 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 9989 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9991 | else |
| 9992 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9993 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9994 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9995 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9996 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9997 | sys_search_path= |
| 9998 | for dir in $libltdl_cv_sys_search_path; do |
| 9999 | if test -z "$sys_search_path"; then |
| 10000 | sys_search_path="$dir" |
| 10001 | else |
| 10002 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 10003 | fi |
| 10004 | done |
| 10005 | |
| 10006 | cat >>confdefs.h <<_ACEOF |
| 10007 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 10008 | _ACEOF |
| 10009 | |
| 10010 | fi |
| 10011 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10012 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 10013 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 10014 | if test "${libltdl_cv_objdir+set}" = set; then |
| 10015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10016 | else |
| 10017 | libltdl_cv_objdir="$objdir" |
| 10018 | if test -n "$objdir"; then |
| 10019 | : |
| 10020 | else |
| 10021 | rm -f .libs 2>/dev/null |
| 10022 | mkdir .libs 2>/dev/null |
| 10023 | if test -d .libs; then |
| 10024 | libltdl_cv_objdir=.libs |
| 10025 | else |
| 10026 | # MS-DOS does not allow filenames that begin with a dot. |
| 10027 | libltdl_cv_objdir=_libs |
| 10028 | fi |
| 10029 | rmdir .libs 2>/dev/null |
| 10030 | fi |
| 10031 | |
| 10032 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10033 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 10034 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10035 | |
| 10036 | cat >>confdefs.h <<_ACEOF |
| 10037 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 10038 | _ACEOF |
| 10039 | |
| 10040 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10041 | |
| 10042 | |
| 10043 | |
| 10044 | |
| 10045 | # 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] | 10046 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 10047 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 10048 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 10049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10050 | else |
| 10051 | |
| 10052 | # These are sane defaults that work on at least a few old systems. |
| 10053 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 10054 | |
| 10055 | # Character class describing NM global symbol codes. |
| 10056 | symcode='[BCDEGRST]' |
| 10057 | |
| 10058 | # Regexp to match symbols that can be accessed directly from C. |
| 10059 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 10060 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10061 | # Transform an extracted symbol line into a proper C declaration |
| 10062 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 10063 | |
| 10064 | # Transform an extracted symbol line into symbol name and symbol address |
| 10065 | 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'" |
| 10066 | |
| 10067 | # Define system-specific variables. |
| 10068 | case $host_os in |
| 10069 | aix*) |
| 10070 | symcode='[BCDT]' |
| 10071 | ;; |
| 10072 | cygwin* | mingw* | pw32*) |
| 10073 | symcode='[ABCDGISTW]' |
| 10074 | ;; |
| 10075 | hpux*) # Its linker distinguishes data from code symbols |
| 10076 | if test "$host_cpu" = ia64; then |
| 10077 | symcode='[ABCDEGRST]' |
| 10078 | fi |
| 10079 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10080 | 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'" |
| 10081 | ;; |
| 10082 | linux*) |
| 10083 | if test "$host_cpu" = ia64; then |
| 10084 | symcode='[ABCDGIRSTW]' |
| 10085 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10086 | 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'" |
| 10087 | fi |
| 10088 | ;; |
| 10089 | irix* | nonstopux*) |
| 10090 | symcode='[BCDEGRST]' |
| 10091 | ;; |
| 10092 | osf*) |
| 10093 | symcode='[BCDEGQRST]' |
| 10094 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10095 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10096 | symcode='[BDRT]' |
| 10097 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10098 | sco3.2v5*) |
| 10099 | symcode='[DT]' |
| 10100 | ;; |
| 10101 | sysv4.2uw2*) |
| 10102 | symcode='[DT]' |
| 10103 | ;; |
| 10104 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 10105 | symcode='[ABDT]' |
| 10106 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10107 | sysv4) |
| 10108 | symcode='[DFNSTU]' |
| 10109 | ;; |
| 10110 | esac |
| 10111 | |
| 10112 | # Handle CRLF in mingw tool chain |
| 10113 | opt_cr= |
| 10114 | case $build_os in |
| 10115 | mingw*) |
| 10116 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 10117 | ;; |
| 10118 | esac |
| 10119 | |
| 10120 | # If we're using GNU nm, then use its standard symbol codes. |
| 10121 | case `$NM -V 2>&1` in |
| 10122 | *GNU* | *'with BFD'*) |
| 10123 | symcode='[ABCDGIRSTW]' ;; |
| 10124 | esac |
| 10125 | |
| 10126 | # Try without a prefix undercore, then with it. |
| 10127 | for ac_symprfx in "" "_"; do |
| 10128 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10129 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 10130 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 10131 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10132 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10133 | 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] | 10134 | |
| 10135 | # Check to see that the pipe works correctly. |
| 10136 | pipe_works=no |
| 10137 | |
| 10138 | rm -f conftest* |
| 10139 | cat > conftest.$ac_ext <<EOF |
| 10140 | #ifdef __cplusplus |
| 10141 | extern "C" { |
| 10142 | #endif |
| 10143 | char nm_test_var; |
| 10144 | void nm_test_func(){} |
| 10145 | #ifdef __cplusplus |
| 10146 | } |
| 10147 | #endif |
| 10148 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 10149 | EOF |
| 10150 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10152 | (eval $ac_compile) 2>&5 |
| 10153 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10155 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10156 | # Now try to grab the symbols. |
| 10157 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10158 | 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] | 10159 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 10160 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10162 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10163 | # Try sorting and uniquifying the output. |
| 10164 | if sort "$nlist" | uniq > "$nlist"T; then |
| 10165 | mv -f "$nlist"T "$nlist" |
| 10166 | else |
| 10167 | rm -f "$nlist"T |
| 10168 | fi |
| 10169 | |
| 10170 | # Make sure that we snagged all the symbols we need. |
| 10171 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 10172 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 10173 | cat <<EOF > conftest.$ac_ext |
| 10174 | #ifdef __cplusplus |
| 10175 | extern "C" { |
| 10176 | #endif |
| 10177 | |
| 10178 | EOF |
| 10179 | # Now generate the symbol file. |
| 10180 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 10181 | |
| 10182 | cat <<EOF >> conftest.$ac_ext |
| 10183 | #if defined (__STDC__) && __STDC__ |
| 10184 | # define lt_ptr_t void * |
| 10185 | #else |
| 10186 | # define lt_ptr_t char * |
| 10187 | # define const |
| 10188 | #endif |
| 10189 | |
| 10190 | /* The mapping between symbol names and symbols. */ |
| 10191 | const struct { |
| 10192 | const char *name; |
| 10193 | lt_ptr_t address; |
| 10194 | } |
| 10195 | lt_preloaded_symbols[] = |
| 10196 | { |
| 10197 | EOF |
| 10198 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10199 | cat <<\EOF >> conftest.$ac_ext |
| 10200 | {0, (lt_ptr_t) 0} |
| 10201 | }; |
| 10202 | |
| 10203 | #ifdef __cplusplus |
| 10204 | } |
| 10205 | #endif |
| 10206 | EOF |
| 10207 | # Now try linking the two files. |
| 10208 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10209 | lt_save_LIBS="$LIBS" |
| 10210 | lt_save_CFLAGS="$CFLAGS" |
| 10211 | LIBS="conftstm.$ac_objext" |
| 10212 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10214 | (eval $ac_link) 2>&5 |
| 10215 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10217 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10218 | pipe_works=yes |
| 10219 | fi |
| 10220 | LIBS="$lt_save_LIBS" |
| 10221 | CFLAGS="$lt_save_CFLAGS" |
| 10222 | else |
| 10223 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10224 | fi |
| 10225 | else |
| 10226 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10227 | fi |
| 10228 | else |
| 10229 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10230 | fi |
| 10231 | else |
| 10232 | echo "$progname: failed program was:" >&5 |
| 10233 | cat conftest.$ac_ext >&5 |
| 10234 | fi |
| 10235 | rm -f conftest* conftst* |
| 10236 | |
| 10237 | # Do not use the global_symbol_pipe unless it works. |
| 10238 | if test "$pipe_works" = yes; then |
| 10239 | break |
| 10240 | else |
| 10241 | lt_cv_sys_global_symbol_pipe= |
| 10242 | fi |
| 10243 | done |
| 10244 | |
| 10245 | fi |
| 10246 | |
| 10247 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10248 | lt_cv_sys_global_symbol_to_cdecl= |
| 10249 | fi |
| 10250 | 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] | 10251 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10252 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10253 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10254 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10255 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10256 | fi |
| 10257 | |
| 10258 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10259 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10260 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 10261 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10263 | else |
| 10264 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10265 | libltdl_cv_preloaded_symbols=yes |
| 10266 | else |
| 10267 | libltdl_cv_preloaded_symbols=no |
| 10268 | fi |
| 10269 | |
| 10270 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10271 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10272 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10273 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10274 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10275 | cat >>confdefs.h <<\_ACEOF |
| 10276 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10277 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10278 | |
| 10279 | fi |
| 10280 | |
| 10281 | LIBADD_DL= |
| 10282 | |
| 10283 | ac_ext=c |
| 10284 | ac_cpp='$CPP $CPPFLAGS' |
| 10285 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10286 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10287 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10288 | |
| 10289 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10290 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10291 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 10292 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10294 | else |
| 10295 | cat >conftest.$ac_ext <<_ACEOF |
| 10296 | /* confdefs.h. */ |
| 10297 | _ACEOF |
| 10298 | cat confdefs.h >>conftest.$ac_ext |
| 10299 | cat >>conftest.$ac_ext <<_ACEOF |
| 10300 | /* end confdefs.h. */ |
| 10301 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10302 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10303 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10304 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10305 | /* System header to define __stub macros and hopefully few prototypes, |
| 10306 | which can conflict with char shl_load (); below. |
| 10307 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10308 | <limits.h> exists even on freestanding compilers. */ |
| 10309 | |
| 10310 | #ifdef __STDC__ |
| 10311 | # include <limits.h> |
| 10312 | #else |
| 10313 | # include <assert.h> |
| 10314 | #endif |
| 10315 | |
| 10316 | #undef shl_load |
| 10317 | |
| 10318 | /* Override any GCC internal prototype to avoid an error. |
| 10319 | Use char because int might match the return type of a GCC |
| 10320 | builtin and then its argument prototype would still apply. */ |
| 10321 | #ifdef __cplusplus |
| 10322 | extern "C" |
| 10323 | #endif |
| 10324 | char shl_load (); |
| 10325 | /* The GNU C library defines this for functions which it implements |
| 10326 | to always fail with ENOSYS. Some functions are actually named |
| 10327 | something starting with __ and the normal name is an alias. */ |
| 10328 | #if defined __stub_shl_load || defined __stub___shl_load |
| 10329 | choke me |
| 10330 | #endif |
| 10331 | |
| 10332 | int |
| 10333 | main () |
| 10334 | { |
| 10335 | return shl_load (); |
| 10336 | ; |
| 10337 | return 0; |
| 10338 | } |
| 10339 | _ACEOF |
| 10340 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10341 | if { (ac_try="$ac_link" |
| 10342 | case "(($ac_try" in |
| 10343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10344 | *) ac_try_echo=$ac_try;; |
| 10345 | esac |
| 10346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10347 | (eval "$ac_link") 2>conftest.er1 |
| 10348 | ac_status=$? |
| 10349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10350 | rm -f conftest.er1 |
| 10351 | cat conftest.err >&5 |
| 10352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10353 | (exit $ac_status); } && |
| 10354 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10355 | { (case "(($ac_try" in |
| 10356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10357 | *) ac_try_echo=$ac_try;; |
| 10358 | esac |
| 10359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10360 | (eval "$ac_try") 2>&5 |
| 10361 | ac_status=$? |
| 10362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10363 | (exit $ac_status); }; } && |
| 10364 | { ac_try='test -s conftest$ac_exeext' |
| 10365 | { (case "(($ac_try" in |
| 10366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10367 | *) ac_try_echo=$ac_try;; |
| 10368 | esac |
| 10369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10370 | (eval "$ac_try") 2>&5 |
| 10371 | ac_status=$? |
| 10372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10373 | (exit $ac_status); }; }; then |
| 10374 | ac_cv_func_shl_load=yes |
| 10375 | else |
| 10376 | echo "$as_me: failed program was:" >&5 |
| 10377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10378 | |
| 10379 | ac_cv_func_shl_load=no |
| 10380 | fi |
| 10381 | |
| 10382 | rm -f core conftest.err conftest.$ac_objext \ |
| 10383 | conftest$ac_exeext conftest.$ac_ext |
| 10384 | fi |
| 10385 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10386 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 10387 | if test $ac_cv_func_shl_load = yes; then |
| 10388 | |
| 10389 | cat >>confdefs.h <<\_ACEOF |
| 10390 | #define HAVE_SHL_LOAD 1 |
| 10391 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10392 | |
| 10393 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10394 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10395 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 10396 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10398 | else |
| 10399 | ac_check_lib_save_LIBS=$LIBS |
| 10400 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10401 | cat >conftest.$ac_ext <<_ACEOF |
| 10402 | /* confdefs.h. */ |
| 10403 | _ACEOF |
| 10404 | cat confdefs.h >>conftest.$ac_ext |
| 10405 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10406 | /* end confdefs.h. */ |
| 10407 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10408 | /* Override any GCC internal prototype to avoid an error. |
| 10409 | Use char because int might match the return type of a GCC |
| 10410 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10411 | #ifdef __cplusplus |
| 10412 | extern "C" |
| 10413 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10414 | char shl_load (); |
| 10415 | int |
| 10416 | main () |
| 10417 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10418 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10419 | ; |
| 10420 | return 0; |
| 10421 | } |
| 10422 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10423 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10424 | if { (ac_try="$ac_link" |
| 10425 | case "(($ac_try" in |
| 10426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10427 | *) ac_try_echo=$ac_try;; |
| 10428 | esac |
| 10429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10430 | (eval "$ac_link") 2>conftest.er1 |
| 10431 | ac_status=$? |
| 10432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10433 | rm -f conftest.er1 |
| 10434 | cat conftest.err >&5 |
| 10435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10436 | (exit $ac_status); } && |
| 10437 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10438 | { (case "(($ac_try" in |
| 10439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10440 | *) ac_try_echo=$ac_try;; |
| 10441 | esac |
| 10442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10443 | (eval "$ac_try") 2>&5 |
| 10444 | ac_status=$? |
| 10445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10446 | (exit $ac_status); }; } && |
| 10447 | { ac_try='test -s conftest$ac_exeext' |
| 10448 | { (case "(($ac_try" in |
| 10449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10450 | *) ac_try_echo=$ac_try;; |
| 10451 | esac |
| 10452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10453 | (eval "$ac_try") 2>&5 |
| 10454 | ac_status=$? |
| 10455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10456 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10457 | ac_cv_lib_dld_shl_load=yes |
| 10458 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10459 | echo "$as_me: failed program was:" >&5 |
| 10460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10461 | |
| 10462 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10463 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10464 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10465 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10466 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10467 | LIBS=$ac_check_lib_save_LIBS |
| 10468 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10469 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10470 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 10471 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10472 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10473 | cat >>confdefs.h <<\_ACEOF |
| 10474 | #define HAVE_SHL_LOAD 1 |
| 10475 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10476 | |
| 10477 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10478 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10479 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10480 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 10481 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10483 | else |
| 10484 | ac_check_lib_save_LIBS=$LIBS |
| 10485 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10486 | cat >conftest.$ac_ext <<_ACEOF |
| 10487 | /* confdefs.h. */ |
| 10488 | _ACEOF |
| 10489 | cat confdefs.h >>conftest.$ac_ext |
| 10490 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10491 | /* end confdefs.h. */ |
| 10492 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10493 | /* Override any GCC internal prototype to avoid an error. |
| 10494 | Use char because int might match the return type of a GCC |
| 10495 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10496 | #ifdef __cplusplus |
| 10497 | extern "C" |
| 10498 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10499 | char dlopen (); |
| 10500 | int |
| 10501 | main () |
| 10502 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10503 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10504 | ; |
| 10505 | return 0; |
| 10506 | } |
| 10507 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10508 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10509 | if { (ac_try="$ac_link" |
| 10510 | case "(($ac_try" in |
| 10511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10512 | *) ac_try_echo=$ac_try;; |
| 10513 | esac |
| 10514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10515 | (eval "$ac_link") 2>conftest.er1 |
| 10516 | ac_status=$? |
| 10517 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10518 | rm -f conftest.er1 |
| 10519 | cat conftest.err >&5 |
| 10520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10521 | (exit $ac_status); } && |
| 10522 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10523 | { (case "(($ac_try" in |
| 10524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10525 | *) ac_try_echo=$ac_try;; |
| 10526 | esac |
| 10527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10528 | (eval "$ac_try") 2>&5 |
| 10529 | ac_status=$? |
| 10530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10531 | (exit $ac_status); }; } && |
| 10532 | { ac_try='test -s conftest$ac_exeext' |
| 10533 | { (case "(($ac_try" in |
| 10534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10535 | *) ac_try_echo=$ac_try;; |
| 10536 | esac |
| 10537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10538 | (eval "$ac_try") 2>&5 |
| 10539 | ac_status=$? |
| 10540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10541 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10542 | ac_cv_lib_dl_dlopen=yes |
| 10543 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10544 | echo "$as_me: failed program was:" >&5 |
| 10545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10546 | |
| 10547 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10548 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10549 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10550 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10551 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10552 | LIBS=$ac_check_lib_save_LIBS |
| 10553 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10554 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10555 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 10556 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10557 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10558 | cat >>confdefs.h <<\_ACEOF |
| 10559 | #define HAVE_LIBDL 1 |
| 10560 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10561 | |
| 10562 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10563 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10564 | cat >conftest.$ac_ext <<_ACEOF |
| 10565 | /* confdefs.h. */ |
| 10566 | _ACEOF |
| 10567 | cat confdefs.h >>conftest.$ac_ext |
| 10568 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10569 | /* end confdefs.h. */ |
| 10570 | #if HAVE_DLFCN_H |
| 10571 | # include <dlfcn.h> |
| 10572 | #endif |
| 10573 | |
| 10574 | int |
| 10575 | main () |
| 10576 | { |
| 10577 | dlopen(0, 0); |
| 10578 | ; |
| 10579 | return 0; |
| 10580 | } |
| 10581 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10582 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10583 | if { (ac_try="$ac_link" |
| 10584 | case "(($ac_try" in |
| 10585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10586 | *) ac_try_echo=$ac_try;; |
| 10587 | esac |
| 10588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10589 | (eval "$ac_link") 2>conftest.er1 |
| 10590 | ac_status=$? |
| 10591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10592 | rm -f conftest.er1 |
| 10593 | cat conftest.err >&5 |
| 10594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10595 | (exit $ac_status); } && |
| 10596 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10597 | { (case "(($ac_try" in |
| 10598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10599 | *) ac_try_echo=$ac_try;; |
| 10600 | esac |
| 10601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10602 | (eval "$ac_try") 2>&5 |
| 10603 | ac_status=$? |
| 10604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10605 | (exit $ac_status); }; } && |
| 10606 | { ac_try='test -s conftest$ac_exeext' |
| 10607 | { (case "(($ac_try" in |
| 10608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10609 | *) ac_try_echo=$ac_try;; |
| 10610 | esac |
| 10611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10612 | (eval "$ac_try") 2>&5 |
| 10613 | ac_status=$? |
| 10614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10615 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10616 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10617 | cat >>confdefs.h <<\_ACEOF |
| 10618 | #define HAVE_LIBDL 1 |
| 10619 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10620 | libltdl_cv_func_dlopen="yes" |
| 10621 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10622 | echo "$as_me: failed program was:" >&5 |
| 10623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10624 | |
| 10625 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10626 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 10627 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10629 | else |
| 10630 | ac_check_lib_save_LIBS=$LIBS |
| 10631 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10632 | cat >conftest.$ac_ext <<_ACEOF |
| 10633 | /* confdefs.h. */ |
| 10634 | _ACEOF |
| 10635 | cat confdefs.h >>conftest.$ac_ext |
| 10636 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10637 | /* end confdefs.h. */ |
| 10638 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10639 | /* Override any GCC internal prototype to avoid an error. |
| 10640 | Use char because int might match the return type of a GCC |
| 10641 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10642 | #ifdef __cplusplus |
| 10643 | extern "C" |
| 10644 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10645 | char dlopen (); |
| 10646 | int |
| 10647 | main () |
| 10648 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10649 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10650 | ; |
| 10651 | return 0; |
| 10652 | } |
| 10653 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10654 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10655 | if { (ac_try="$ac_link" |
| 10656 | case "(($ac_try" in |
| 10657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10658 | *) ac_try_echo=$ac_try;; |
| 10659 | esac |
| 10660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10661 | (eval "$ac_link") 2>conftest.er1 |
| 10662 | ac_status=$? |
| 10663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10664 | rm -f conftest.er1 |
| 10665 | cat conftest.err >&5 |
| 10666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10667 | (exit $ac_status); } && |
| 10668 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10669 | { (case "(($ac_try" in |
| 10670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10671 | *) ac_try_echo=$ac_try;; |
| 10672 | esac |
| 10673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10674 | (eval "$ac_try") 2>&5 |
| 10675 | ac_status=$? |
| 10676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10677 | (exit $ac_status); }; } && |
| 10678 | { ac_try='test -s conftest$ac_exeext' |
| 10679 | { (case "(($ac_try" in |
| 10680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10681 | *) ac_try_echo=$ac_try;; |
| 10682 | esac |
| 10683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10684 | (eval "$ac_try") 2>&5 |
| 10685 | ac_status=$? |
| 10686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10687 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10688 | ac_cv_lib_svld_dlopen=yes |
| 10689 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10690 | echo "$as_me: failed program was:" >&5 |
| 10691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10692 | |
| 10693 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10694 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10695 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10696 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10697 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10698 | LIBS=$ac_check_lib_save_LIBS |
| 10699 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10700 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10701 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 10702 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10703 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10704 | cat >>confdefs.h <<\_ACEOF |
| 10705 | #define HAVE_LIBDL 1 |
| 10706 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10707 | |
| 10708 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10709 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10710 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10711 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 10712 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10714 | else |
| 10715 | ac_check_lib_save_LIBS=$LIBS |
| 10716 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10717 | cat >conftest.$ac_ext <<_ACEOF |
| 10718 | /* confdefs.h. */ |
| 10719 | _ACEOF |
| 10720 | cat confdefs.h >>conftest.$ac_ext |
| 10721 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10722 | /* end confdefs.h. */ |
| 10723 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10724 | /* Override any GCC internal prototype to avoid an error. |
| 10725 | Use char because int might match the return type of a GCC |
| 10726 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10727 | #ifdef __cplusplus |
| 10728 | extern "C" |
| 10729 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10730 | char dld_link (); |
| 10731 | int |
| 10732 | main () |
| 10733 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10734 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10735 | ; |
| 10736 | return 0; |
| 10737 | } |
| 10738 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10739 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10740 | if { (ac_try="$ac_link" |
| 10741 | case "(($ac_try" in |
| 10742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10743 | *) ac_try_echo=$ac_try;; |
| 10744 | esac |
| 10745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10746 | (eval "$ac_link") 2>conftest.er1 |
| 10747 | ac_status=$? |
| 10748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10749 | rm -f conftest.er1 |
| 10750 | cat conftest.err >&5 |
| 10751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10752 | (exit $ac_status); } && |
| 10753 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10754 | { (case "(($ac_try" in |
| 10755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10756 | *) ac_try_echo=$ac_try;; |
| 10757 | esac |
| 10758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10759 | (eval "$ac_try") 2>&5 |
| 10760 | ac_status=$? |
| 10761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10762 | (exit $ac_status); }; } && |
| 10763 | { ac_try='test -s conftest$ac_exeext' |
| 10764 | { (case "(($ac_try" in |
| 10765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10766 | *) ac_try_echo=$ac_try;; |
| 10767 | esac |
| 10768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10769 | (eval "$ac_try") 2>&5 |
| 10770 | ac_status=$? |
| 10771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10772 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10773 | ac_cv_lib_dld_dld_link=yes |
| 10774 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10775 | echo "$as_me: failed program was:" >&5 |
| 10776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10777 | |
| 10778 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10779 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10780 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10781 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10782 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10783 | LIBS=$ac_check_lib_save_LIBS |
| 10784 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10785 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10786 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 10787 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10788 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10789 | cat >>confdefs.h <<\_ACEOF |
| 10790 | #define HAVE_DLD 1 |
| 10791 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10792 | |
| 10793 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10794 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10795 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10796 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 10797 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10799 | else |
| 10800 | cat >conftest.$ac_ext <<_ACEOF |
| 10801 | /* confdefs.h. */ |
| 10802 | _ACEOF |
| 10803 | cat confdefs.h >>conftest.$ac_ext |
| 10804 | cat >>conftest.$ac_ext <<_ACEOF |
| 10805 | /* end confdefs.h. */ |
| 10806 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10807 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10808 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10809 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10810 | /* System header to define __stub macros and hopefully few prototypes, |
| 10811 | which can conflict with char _dyld_func_lookup (); below. |
| 10812 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10813 | <limits.h> exists even on freestanding compilers. */ |
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 | #ifdef __STDC__ |
| 10816 | # include <limits.h> |
| 10817 | #else |
| 10818 | # include <assert.h> |
| 10819 | #endif |
| 10820 | |
| 10821 | #undef _dyld_func_lookup |
| 10822 | |
| 10823 | /* Override any GCC internal prototype to avoid an error. |
| 10824 | Use char because int might match the return type of a GCC |
| 10825 | builtin and then its argument prototype would still apply. */ |
| 10826 | #ifdef __cplusplus |
| 10827 | extern "C" |
| 10828 | #endif |
| 10829 | char _dyld_func_lookup (); |
| 10830 | /* The GNU C library defines this for functions which it implements |
| 10831 | to always fail with ENOSYS. Some functions are actually named |
| 10832 | something starting with __ and the normal name is an alias. */ |
| 10833 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 10834 | choke me |
| 10835 | #endif |
| 10836 | |
| 10837 | int |
| 10838 | main () |
| 10839 | { |
| 10840 | return _dyld_func_lookup (); |
| 10841 | ; |
| 10842 | return 0; |
| 10843 | } |
| 10844 | _ACEOF |
| 10845 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10846 | if { (ac_try="$ac_link" |
| 10847 | case "(($ac_try" in |
| 10848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10849 | *) ac_try_echo=$ac_try;; |
| 10850 | esac |
| 10851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10852 | (eval "$ac_link") 2>conftest.er1 |
| 10853 | ac_status=$? |
| 10854 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10855 | rm -f conftest.er1 |
| 10856 | cat conftest.err >&5 |
| 10857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10858 | (exit $ac_status); } && |
| 10859 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10860 | { (case "(($ac_try" in |
| 10861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10862 | *) ac_try_echo=$ac_try;; |
| 10863 | esac |
| 10864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10865 | (eval "$ac_try") 2>&5 |
| 10866 | ac_status=$? |
| 10867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10868 | (exit $ac_status); }; } && |
| 10869 | { ac_try='test -s conftest$ac_exeext' |
| 10870 | { (case "(($ac_try" in |
| 10871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10872 | *) ac_try_echo=$ac_try;; |
| 10873 | esac |
| 10874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10875 | (eval "$ac_try") 2>&5 |
| 10876 | ac_status=$? |
| 10877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10878 | (exit $ac_status); }; }; then |
| 10879 | ac_cv_func__dyld_func_lookup=yes |
| 10880 | else |
| 10881 | echo "$as_me: failed program was:" >&5 |
| 10882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10883 | |
| 10884 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10885 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10886 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10887 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10888 | conftest$ac_exeext conftest.$ac_ext |
| 10889 | fi |
| 10890 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10891 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 10892 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10893 | |
| 10894 | cat >>confdefs.h <<\_ACEOF |
| 10895 | #define HAVE_DYLD 1 |
| 10896 | _ACEOF |
| 10897 | |
| 10898 | fi |
| 10899 | |
| 10900 | |
| 10901 | fi |
| 10902 | |
| 10903 | |
| 10904 | fi |
| 10905 | |
| 10906 | |
| 10907 | fi |
| 10908 | |
| 10909 | rm -f core conftest.err conftest.$ac_objext \ |
| 10910 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10911 | |
| 10912 | fi |
| 10913 | |
| 10914 | |
| 10915 | fi |
| 10916 | |
| 10917 | |
| 10918 | fi |
| 10919 | |
| 10920 | |
| 10921 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10922 | then |
| 10923 | lt_save_LIBS="$LIBS" |
| 10924 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10925 | |
| 10926 | for ac_func in dlerror |
| 10927 | do |
| 10928 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10929 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10930 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10931 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10933 | else |
| 10934 | cat >conftest.$ac_ext <<_ACEOF |
| 10935 | /* confdefs.h. */ |
| 10936 | _ACEOF |
| 10937 | cat confdefs.h >>conftest.$ac_ext |
| 10938 | cat >>conftest.$ac_ext <<_ACEOF |
| 10939 | /* end confdefs.h. */ |
| 10940 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10941 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10942 | #define $ac_func innocuous_$ac_func |
| 10943 | |
| 10944 | /* System header to define __stub macros and hopefully few prototypes, |
| 10945 | which can conflict with char $ac_func (); below. |
| 10946 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10947 | <limits.h> exists even on freestanding compilers. */ |
| 10948 | |
| 10949 | #ifdef __STDC__ |
| 10950 | # include <limits.h> |
| 10951 | #else |
| 10952 | # include <assert.h> |
| 10953 | #endif |
| 10954 | |
| 10955 | #undef $ac_func |
| 10956 | |
| 10957 | /* Override any GCC internal prototype to avoid an error. |
| 10958 | Use char because int might match the return type of a GCC |
| 10959 | builtin and then its argument prototype would still apply. */ |
| 10960 | #ifdef __cplusplus |
| 10961 | extern "C" |
| 10962 | #endif |
| 10963 | char $ac_func (); |
| 10964 | /* The GNU C library defines this for functions which it implements |
| 10965 | to always fail with ENOSYS. Some functions are actually named |
| 10966 | something starting with __ and the normal name is an alias. */ |
| 10967 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 10968 | choke me |
| 10969 | #endif |
| 10970 | |
| 10971 | int |
| 10972 | main () |
| 10973 | { |
| 10974 | return $ac_func (); |
| 10975 | ; |
| 10976 | return 0; |
| 10977 | } |
| 10978 | _ACEOF |
| 10979 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10980 | if { (ac_try="$ac_link" |
| 10981 | case "(($ac_try" in |
| 10982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10983 | *) ac_try_echo=$ac_try;; |
| 10984 | esac |
| 10985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10986 | (eval "$ac_link") 2>conftest.er1 |
| 10987 | ac_status=$? |
| 10988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10989 | rm -f conftest.er1 |
| 10990 | cat conftest.err >&5 |
| 10991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10992 | (exit $ac_status); } && |
| 10993 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10994 | { (case "(($ac_try" in |
| 10995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10996 | *) ac_try_echo=$ac_try;; |
| 10997 | esac |
| 10998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10999 | (eval "$ac_try") 2>&5 |
| 11000 | ac_status=$? |
| 11001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11002 | (exit $ac_status); }; } && |
| 11003 | { ac_try='test -s conftest$ac_exeext' |
| 11004 | { (case "(($ac_try" in |
| 11005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11006 | *) ac_try_echo=$ac_try;; |
| 11007 | esac |
| 11008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11009 | (eval "$ac_try") 2>&5 |
| 11010 | ac_status=$? |
| 11011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11012 | (exit $ac_status); }; }; then |
| 11013 | eval "$as_ac_var=yes" |
| 11014 | else |
| 11015 | echo "$as_me: failed program was:" >&5 |
| 11016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11017 | |
| 11018 | eval "$as_ac_var=no" |
| 11019 | fi |
| 11020 | |
| 11021 | rm -f core conftest.err conftest.$ac_objext \ |
| 11022 | conftest$ac_exeext conftest.$ac_ext |
| 11023 | fi |
| 11024 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11025 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11026 | echo "${ECHO_T}$ac_res" >&6; } |
| 11027 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11028 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11029 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11030 | _ACEOF |
| 11031 | |
| 11032 | fi |
| 11033 | done |
| 11034 | |
| 11035 | LIBS="$lt_save_LIBS" |
| 11036 | fi |
| 11037 | ac_ext=c |
| 11038 | ac_cpp='$CPP $CPPFLAGS' |
| 11039 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11040 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11041 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11042 | |
| 11043 | |
| 11044 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11045 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 11046 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 11047 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 11048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11049 | else |
| 11050 | ac_cv_sys_symbol_underscore=no |
| 11051 | cat > conftest.$ac_ext <<EOF |
| 11052 | void nm_test_func(){} |
| 11053 | int main(){nm_test_func;return 0;} |
| 11054 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11056 | (eval $ac_compile) 2>&5 |
| 11057 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11059 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11060 | # Now try to grab the symbols. |
| 11061 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11062 | 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] | 11063 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 11064 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11066 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11067 | # See whether the symbols have a leading underscore. |
| 11068 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 11069 | ac_cv_sys_symbol_underscore=yes |
| 11070 | else |
| 11071 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 11072 | : |
| 11073 | else |
| 11074 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 11075 | fi |
| 11076 | fi |
| 11077 | else |
| 11078 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11079 | fi |
| 11080 | else |
| 11081 | echo "configure: failed program was:" >&5 |
| 11082 | cat conftest.c >&5 |
| 11083 | fi |
| 11084 | rm -rf conftest* |
| 11085 | |
| 11086 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11087 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 11088 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11089 | |
| 11090 | |
| 11091 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 11092 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 11093 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11094 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 11095 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 11096 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 11097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11098 | else |
| 11099 | libltdl_cv_need_uscore=unknown |
| 11100 | save_LIBS="$LIBS" |
| 11101 | LIBS="$LIBS $LIBADD_DL" |
| 11102 | if test "$cross_compiling" = yes; then : |
| 11103 | libltdl_cv_need_uscore=cross |
| 11104 | else |
| 11105 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11106 | lt_status=$lt_dlunknown |
| 11107 | cat > conftest.$ac_ext <<EOF |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame^] | 11108 | #line 11108 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11109 | #include "confdefs.h" |
| 11110 | |
| 11111 | #if HAVE_DLFCN_H |
| 11112 | #include <dlfcn.h> |
| 11113 | #endif |
| 11114 | |
| 11115 | #include <stdio.h> |
| 11116 | |
| 11117 | #ifdef RTLD_GLOBAL |
| 11118 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11119 | #else |
| 11120 | # ifdef DL_GLOBAL |
| 11121 | # define LT_DLGLOBAL DL_GLOBAL |
| 11122 | # else |
| 11123 | # define LT_DLGLOBAL 0 |
| 11124 | # endif |
| 11125 | #endif |
| 11126 | |
| 11127 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11128 | find out it does not work in some platform. */ |
| 11129 | #ifndef LT_DLLAZY_OR_NOW |
| 11130 | # ifdef RTLD_LAZY |
| 11131 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11132 | # else |
| 11133 | # ifdef DL_LAZY |
| 11134 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11135 | # else |
| 11136 | # ifdef RTLD_NOW |
| 11137 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11138 | # else |
| 11139 | # ifdef DL_NOW |
| 11140 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11141 | # else |
| 11142 | # define LT_DLLAZY_OR_NOW 0 |
| 11143 | # endif |
| 11144 | # endif |
| 11145 | # endif |
| 11146 | # endif |
| 11147 | #endif |
| 11148 | |
| 11149 | #ifdef __cplusplus |
| 11150 | extern "C" void exit (int); |
| 11151 | #endif |
| 11152 | |
| 11153 | void fnord() { int i=42;} |
| 11154 | int main () |
| 11155 | { |
| 11156 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11157 | int status = $lt_dlunknown; |
| 11158 | |
| 11159 | if (self) |
| 11160 | { |
| 11161 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11162 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11163 | /* dlclose (self); */ |
| 11164 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11165 | else |
| 11166 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11167 | |
| 11168 | exit (status); |
| 11169 | } |
| 11170 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11171 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11172 | (eval $ac_link) 2>&5 |
| 11173 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11175 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11176 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11177 | lt_status=$? |
| 11178 | case x$lt_status in |
| 11179 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 11180 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11181 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11182 | esac |
| 11183 | else : |
| 11184 | # compilation failed |
| 11185 | |
| 11186 | fi |
| 11187 | fi |
| 11188 | rm -fr conftest* |
| 11189 | |
| 11190 | LIBS="$save_LIBS" |
| 11191 | |
| 11192 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11193 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 11194 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11195 | fi |
| 11196 | fi |
| 11197 | |
| 11198 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11199 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11200 | cat >>confdefs.h <<\_ACEOF |
| 11201 | #define NEED_USCORE 1 |
| 11202 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11203 | |
| 11204 | fi |
| 11205 | |
| 11206 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11207 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11208 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 11209 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11211 | else |
| 11212 | # PORTME does your system automatically load deplibs for dlopen? |
| 11213 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11214 | # For now, we just catch OSes we know something about -- in the |
| 11215 | # future, we'll try test this programmatically. |
| 11216 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11217 | case "$host_os" in |
| 11218 | aix3*|aix4.1.*|aix4.2.*) |
| 11219 | # Unknown whether this is true for these versions of AIX, but |
| 11220 | # we want this `case' here to explicitly catch those versions. |
| 11221 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11222 | ;; |
| 11223 | aix[45]*) |
| 11224 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11225 | ;; |
| 11226 | darwin*) |
| 11227 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11228 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11229 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11230 | ;; |
| 11231 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11232 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11233 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11234 | ;; |
| 11235 | hpux10*|hpux11*) |
| 11236 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11237 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11238 | interix*) |
| 11239 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11240 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11241 | irix[12345]*|irix6.[01]*) |
| 11242 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11243 | # know how it worked for any of those versions. |
| 11244 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11245 | ;; |
| 11246 | irix*) |
| 11247 | # The case above catches anything before 6.2, and it's known that |
| 11248 | # at 6.2 and later dlopen does load deplibs. |
| 11249 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11250 | ;; |
| 11251 | netbsd*) |
| 11252 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11253 | ;; |
| 11254 | openbsd*) |
| 11255 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11256 | ;; |
| 11257 | osf[1234]*) |
| 11258 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11259 | # it did *not* use an RPATH in a shared library to find objects the |
| 11260 | # library depends on, so we explictly say `no'. |
| 11261 | libltdl_cv_sys_dlopen_deplibs=no |
| 11262 | ;; |
| 11263 | osf5.0|osf5.0a|osf5.1) |
| 11264 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11265 | # it even uses RPATH in a shared library to search for shared objects |
| 11266 | # that the library depends on, but there's no easy way to know if that |
| 11267 | # patch is installed. Since this is the case, all we can really |
| 11268 | # say is unknown -- it depends on the patch being installed. If |
| 11269 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11270 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11271 | ;; |
| 11272 | osf*) |
| 11273 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11274 | # the comments above for what we know about them. |
| 11275 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11276 | # is used to find them so we can finally say `yes'. |
| 11277 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11278 | ;; |
| 11279 | solaris*) |
| 11280 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11281 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11282 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11283 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11284 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11285 | esac |
| 11286 | |
| 11287 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11288 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11289 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11290 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11291 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11292 | cat >>confdefs.h <<\_ACEOF |
| 11293 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11294 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11295 | |
| 11296 | fi |
| 11297 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11298 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11299 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11300 | do |
| 11301 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11302 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11303 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11304 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11305 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11307 | fi |
| 11308 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11309 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11310 | echo "${ECHO_T}$ac_res" >&6; } |
| 11311 | else |
| 11312 | # Is the header compilable? |
| 11313 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11314 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11315 | cat >conftest.$ac_ext <<_ACEOF |
| 11316 | /* confdefs.h. */ |
| 11317 | _ACEOF |
| 11318 | cat confdefs.h >>conftest.$ac_ext |
| 11319 | cat >>conftest.$ac_ext <<_ACEOF |
| 11320 | /* end confdefs.h. */ |
| 11321 | $ac_includes_default |
| 11322 | #include <$ac_header> |
| 11323 | _ACEOF |
| 11324 | rm -f conftest.$ac_objext |
| 11325 | if { (ac_try="$ac_compile" |
| 11326 | case "(($ac_try" in |
| 11327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11328 | *) ac_try_echo=$ac_try;; |
| 11329 | esac |
| 11330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11331 | (eval "$ac_compile") 2>conftest.er1 |
| 11332 | ac_status=$? |
| 11333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11334 | rm -f conftest.er1 |
| 11335 | cat conftest.err >&5 |
| 11336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11337 | (exit $ac_status); } && |
| 11338 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11339 | { (case "(($ac_try" in |
| 11340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11341 | *) ac_try_echo=$ac_try;; |
| 11342 | esac |
| 11343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11344 | (eval "$ac_try") 2>&5 |
| 11345 | ac_status=$? |
| 11346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11347 | (exit $ac_status); }; } && |
| 11348 | { ac_try='test -s conftest.$ac_objext' |
| 11349 | { (case "(($ac_try" in |
| 11350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11351 | *) ac_try_echo=$ac_try;; |
| 11352 | esac |
| 11353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11354 | (eval "$ac_try") 2>&5 |
| 11355 | ac_status=$? |
| 11356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11357 | (exit $ac_status); }; }; then |
| 11358 | ac_header_compiler=yes |
| 11359 | else |
| 11360 | echo "$as_me: failed program was:" >&5 |
| 11361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11362 | |
| 11363 | ac_header_compiler=no |
| 11364 | fi |
| 11365 | |
| 11366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11367 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11368 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11369 | |
| 11370 | # Is the header present? |
| 11371 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11372 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11373 | cat >conftest.$ac_ext <<_ACEOF |
| 11374 | /* confdefs.h. */ |
| 11375 | _ACEOF |
| 11376 | cat confdefs.h >>conftest.$ac_ext |
| 11377 | cat >>conftest.$ac_ext <<_ACEOF |
| 11378 | /* end confdefs.h. */ |
| 11379 | #include <$ac_header> |
| 11380 | _ACEOF |
| 11381 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11382 | case "(($ac_try" in |
| 11383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11384 | *) ac_try_echo=$ac_try;; |
| 11385 | esac |
| 11386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11387 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11388 | ac_status=$? |
| 11389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11390 | rm -f conftest.er1 |
| 11391 | cat conftest.err >&5 |
| 11392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11393 | (exit $ac_status); } >/dev/null; then |
| 11394 | if test -s conftest.err; then |
| 11395 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11396 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11397 | else |
| 11398 | ac_cpp_err= |
| 11399 | fi |
| 11400 | else |
| 11401 | ac_cpp_err=yes |
| 11402 | fi |
| 11403 | if test -z "$ac_cpp_err"; then |
| 11404 | ac_header_preproc=yes |
| 11405 | else |
| 11406 | echo "$as_me: failed program was:" >&5 |
| 11407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11408 | |
| 11409 | ac_header_preproc=no |
| 11410 | fi |
| 11411 | |
| 11412 | rm -f conftest.err conftest.$ac_ext |
| 11413 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11414 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11415 | |
| 11416 | # So? What about this header? |
| 11417 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11418 | yes:no: ) |
| 11419 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11420 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11421 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11422 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11423 | ac_header_preproc=yes |
| 11424 | ;; |
| 11425 | no:yes:* ) |
| 11426 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11427 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11428 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11429 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11430 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11431 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11432 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11433 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11434 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11435 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11436 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11437 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11438 | ( cat <<\_ASBOX |
| 11439 | ## ----------------------------------- ## |
| 11440 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11441 | ## ----------------------------------- ## |
| 11442 | _ASBOX |
| 11443 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11444 | ;; |
| 11445 | esac |
| 11446 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11447 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11448 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11450 | else |
| 11451 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11452 | fi |
| 11453 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11454 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11455 | echo "${ECHO_T}$ac_res" >&6; } |
| 11456 | |
| 11457 | fi |
| 11458 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11459 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11460 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11461 | _ACEOF |
| 11462 | |
| 11463 | fi |
| 11464 | |
| 11465 | done |
| 11466 | |
| 11467 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11468 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11469 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 11470 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11472 | else |
| 11473 | cat >conftest.$ac_ext <<_ACEOF |
| 11474 | /* confdefs.h. */ |
| 11475 | _ACEOF |
| 11476 | cat confdefs.h >>conftest.$ac_ext |
| 11477 | cat >>conftest.$ac_ext <<_ACEOF |
| 11478 | /* end confdefs.h. */ |
| 11479 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11480 | # include <argz.h> |
| 11481 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11482 | |
| 11483 | typedef error_t ac__type_new_; |
| 11484 | int |
| 11485 | main () |
| 11486 | { |
| 11487 | if ((ac__type_new_ *) 0) |
| 11488 | return 0; |
| 11489 | if (sizeof (ac__type_new_)) |
| 11490 | return 0; |
| 11491 | ; |
| 11492 | return 0; |
| 11493 | } |
| 11494 | _ACEOF |
| 11495 | rm -f conftest.$ac_objext |
| 11496 | if { (ac_try="$ac_compile" |
| 11497 | case "(($ac_try" in |
| 11498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11499 | *) ac_try_echo=$ac_try;; |
| 11500 | esac |
| 11501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11502 | (eval "$ac_compile") 2>conftest.er1 |
| 11503 | ac_status=$? |
| 11504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11505 | rm -f conftest.er1 |
| 11506 | cat conftest.err >&5 |
| 11507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11508 | (exit $ac_status); } && |
| 11509 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11510 | { (case "(($ac_try" in |
| 11511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11512 | *) ac_try_echo=$ac_try;; |
| 11513 | esac |
| 11514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11515 | (eval "$ac_try") 2>&5 |
| 11516 | ac_status=$? |
| 11517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11518 | (exit $ac_status); }; } && |
| 11519 | { ac_try='test -s conftest.$ac_objext' |
| 11520 | { (case "(($ac_try" in |
| 11521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11522 | *) ac_try_echo=$ac_try;; |
| 11523 | esac |
| 11524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11525 | (eval "$ac_try") 2>&5 |
| 11526 | ac_status=$? |
| 11527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11528 | (exit $ac_status); }; }; then |
| 11529 | ac_cv_type_error_t=yes |
| 11530 | else |
| 11531 | echo "$as_me: failed program was:" >&5 |
| 11532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11533 | |
| 11534 | ac_cv_type_error_t=no |
| 11535 | fi |
| 11536 | |
| 11537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11538 | fi |
| 11539 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11540 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 11541 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11542 | |
| 11543 | cat >>confdefs.h <<_ACEOF |
| 11544 | #define HAVE_ERROR_T 1 |
| 11545 | _ACEOF |
| 11546 | |
| 11547 | |
| 11548 | else |
| 11549 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11550 | cat >>confdefs.h <<\_ACEOF |
| 11551 | #define error_t int |
| 11552 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11553 | |
| 11554 | fi |
| 11555 | |
| 11556 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11557 | |
| 11558 | |
| 11559 | |
| 11560 | |
| 11561 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11562 | 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] | 11563 | do |
| 11564 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11565 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11566 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11567 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11569 | else |
| 11570 | cat >conftest.$ac_ext <<_ACEOF |
| 11571 | /* confdefs.h. */ |
| 11572 | _ACEOF |
| 11573 | cat confdefs.h >>conftest.$ac_ext |
| 11574 | cat >>conftest.$ac_ext <<_ACEOF |
| 11575 | /* end confdefs.h. */ |
| 11576 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11577 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11578 | #define $ac_func innocuous_$ac_func |
| 11579 | |
| 11580 | /* System header to define __stub macros and hopefully few prototypes, |
| 11581 | which can conflict with char $ac_func (); below. |
| 11582 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11583 | <limits.h> exists even on freestanding compilers. */ |
| 11584 | |
| 11585 | #ifdef __STDC__ |
| 11586 | # include <limits.h> |
| 11587 | #else |
| 11588 | # include <assert.h> |
| 11589 | #endif |
| 11590 | |
| 11591 | #undef $ac_func |
| 11592 | |
| 11593 | /* Override any GCC internal prototype to avoid an error. |
| 11594 | Use char because int might match the return type of a GCC |
| 11595 | builtin and then its argument prototype would still apply. */ |
| 11596 | #ifdef __cplusplus |
| 11597 | extern "C" |
| 11598 | #endif |
| 11599 | char $ac_func (); |
| 11600 | /* The GNU C library defines this for functions which it implements |
| 11601 | to always fail with ENOSYS. Some functions are actually named |
| 11602 | something starting with __ and the normal name is an alias. */ |
| 11603 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11604 | choke me |
| 11605 | #endif |
| 11606 | |
| 11607 | int |
| 11608 | main () |
| 11609 | { |
| 11610 | return $ac_func (); |
| 11611 | ; |
| 11612 | return 0; |
| 11613 | } |
| 11614 | _ACEOF |
| 11615 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11616 | if { (ac_try="$ac_link" |
| 11617 | case "(($ac_try" in |
| 11618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11619 | *) ac_try_echo=$ac_try;; |
| 11620 | esac |
| 11621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11622 | (eval "$ac_link") 2>conftest.er1 |
| 11623 | ac_status=$? |
| 11624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11625 | rm -f conftest.er1 |
| 11626 | cat conftest.err >&5 |
| 11627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11628 | (exit $ac_status); } && |
| 11629 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11630 | { (case "(($ac_try" in |
| 11631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11632 | *) ac_try_echo=$ac_try;; |
| 11633 | esac |
| 11634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11635 | (eval "$ac_try") 2>&5 |
| 11636 | ac_status=$? |
| 11637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11638 | (exit $ac_status); }; } && |
| 11639 | { ac_try='test -s conftest$ac_exeext' |
| 11640 | { (case "(($ac_try" in |
| 11641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11642 | *) ac_try_echo=$ac_try;; |
| 11643 | esac |
| 11644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11645 | (eval "$ac_try") 2>&5 |
| 11646 | ac_status=$? |
| 11647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11648 | (exit $ac_status); }; }; then |
| 11649 | eval "$as_ac_var=yes" |
| 11650 | else |
| 11651 | echo "$as_me: failed program was:" >&5 |
| 11652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11653 | |
| 11654 | eval "$as_ac_var=no" |
| 11655 | fi |
| 11656 | |
| 11657 | rm -f core conftest.err conftest.$ac_objext \ |
| 11658 | conftest$ac_exeext conftest.$ac_ext |
| 11659 | fi |
| 11660 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11661 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11662 | echo "${ECHO_T}$ac_res" >&6; } |
| 11663 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11664 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11665 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11666 | _ACEOF |
| 11667 | |
| 11668 | fi |
| 11669 | done |
| 11670 | |
| 11671 | |
| 11672 | |
| 11673 | |
| 11674 | |
| 11675 | |
| 11676 | |
| 11677 | |
| 11678 | |
| 11679 | |
| 11680 | |
| 11681 | |
| 11682 | |
| 11683 | |
| 11684 | |
| 11685 | |
| 11686 | |
| 11687 | |
| 11688 | |
| 11689 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11690 | |
| 11691 | |
| 11692 | |
| 11693 | |
| 11694 | |
| 11695 | |
| 11696 | |
| 11697 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11698 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11699 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11700 | do |
| 11701 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11702 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11703 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11704 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11705 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11707 | fi |
| 11708 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11709 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11710 | echo "${ECHO_T}$ac_res" >&6; } |
| 11711 | else |
| 11712 | # Is the header compilable? |
| 11713 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11714 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11715 | cat >conftest.$ac_ext <<_ACEOF |
| 11716 | /* confdefs.h. */ |
| 11717 | _ACEOF |
| 11718 | cat confdefs.h >>conftest.$ac_ext |
| 11719 | cat >>conftest.$ac_ext <<_ACEOF |
| 11720 | /* end confdefs.h. */ |
| 11721 | $ac_includes_default |
| 11722 | #include <$ac_header> |
| 11723 | _ACEOF |
| 11724 | rm -f conftest.$ac_objext |
| 11725 | if { (ac_try="$ac_compile" |
| 11726 | case "(($ac_try" in |
| 11727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11728 | *) ac_try_echo=$ac_try;; |
| 11729 | esac |
| 11730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11731 | (eval "$ac_compile") 2>conftest.er1 |
| 11732 | ac_status=$? |
| 11733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11734 | rm -f conftest.er1 |
| 11735 | cat conftest.err >&5 |
| 11736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11737 | (exit $ac_status); } && |
| 11738 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11739 | { (case "(($ac_try" in |
| 11740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11741 | *) ac_try_echo=$ac_try;; |
| 11742 | esac |
| 11743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11744 | (eval "$ac_try") 2>&5 |
| 11745 | ac_status=$? |
| 11746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11747 | (exit $ac_status); }; } && |
| 11748 | { ac_try='test -s conftest.$ac_objext' |
| 11749 | { (case "(($ac_try" in |
| 11750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11751 | *) ac_try_echo=$ac_try;; |
| 11752 | esac |
| 11753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11754 | (eval "$ac_try") 2>&5 |
| 11755 | ac_status=$? |
| 11756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11757 | (exit $ac_status); }; }; then |
| 11758 | ac_header_compiler=yes |
| 11759 | else |
| 11760 | echo "$as_me: failed program was:" >&5 |
| 11761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11762 | |
| 11763 | ac_header_compiler=no |
| 11764 | fi |
| 11765 | |
| 11766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11767 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11768 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11769 | |
| 11770 | # Is the header present? |
| 11771 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11772 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11773 | cat >conftest.$ac_ext <<_ACEOF |
| 11774 | /* confdefs.h. */ |
| 11775 | _ACEOF |
| 11776 | cat confdefs.h >>conftest.$ac_ext |
| 11777 | cat >>conftest.$ac_ext <<_ACEOF |
| 11778 | /* end confdefs.h. */ |
| 11779 | #include <$ac_header> |
| 11780 | _ACEOF |
| 11781 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11782 | case "(($ac_try" in |
| 11783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11784 | *) ac_try_echo=$ac_try;; |
| 11785 | esac |
| 11786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11787 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11788 | ac_status=$? |
| 11789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11790 | rm -f conftest.er1 |
| 11791 | cat conftest.err >&5 |
| 11792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11793 | (exit $ac_status); } >/dev/null; then |
| 11794 | if test -s conftest.err; then |
| 11795 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11796 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11797 | else |
| 11798 | ac_cpp_err= |
| 11799 | fi |
| 11800 | else |
| 11801 | ac_cpp_err=yes |
| 11802 | fi |
| 11803 | if test -z "$ac_cpp_err"; then |
| 11804 | ac_header_preproc=yes |
| 11805 | else |
| 11806 | echo "$as_me: failed program was:" >&5 |
| 11807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11808 | |
| 11809 | ac_header_preproc=no |
| 11810 | fi |
| 11811 | |
| 11812 | rm -f conftest.err conftest.$ac_ext |
| 11813 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11814 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11815 | |
| 11816 | # So? What about this header? |
| 11817 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11818 | yes:no: ) |
| 11819 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11820 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11821 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11822 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11823 | ac_header_preproc=yes |
| 11824 | ;; |
| 11825 | no:yes:* ) |
| 11826 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11827 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11828 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11829 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11830 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11831 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11832 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11833 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11834 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11835 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11836 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11837 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11838 | ( cat <<\_ASBOX |
| 11839 | ## ----------------------------------- ## |
| 11840 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11841 | ## ----------------------------------- ## |
| 11842 | _ASBOX |
| 11843 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11844 | ;; |
| 11845 | esac |
| 11846 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11847 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11848 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11850 | else |
| 11851 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11852 | fi |
| 11853 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11854 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11855 | echo "${ECHO_T}$ac_res" >&6; } |
| 11856 | |
| 11857 | fi |
| 11858 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11859 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11860 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11861 | _ACEOF |
| 11862 | |
| 11863 | fi |
| 11864 | |
| 11865 | done |
| 11866 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11867 | |
| 11868 | |
| 11869 | |
| 11870 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11871 | 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] | 11872 | do |
| 11873 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11874 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11875 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11876 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11877 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11879 | fi |
| 11880 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11881 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11882 | echo "${ECHO_T}$ac_res" >&6; } |
| 11883 | else |
| 11884 | # Is the header compilable? |
| 11885 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11886 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11887 | cat >conftest.$ac_ext <<_ACEOF |
| 11888 | /* confdefs.h. */ |
| 11889 | _ACEOF |
| 11890 | cat confdefs.h >>conftest.$ac_ext |
| 11891 | cat >>conftest.$ac_ext <<_ACEOF |
| 11892 | /* end confdefs.h. */ |
| 11893 | $ac_includes_default |
| 11894 | #include <$ac_header> |
| 11895 | _ACEOF |
| 11896 | rm -f conftest.$ac_objext |
| 11897 | if { (ac_try="$ac_compile" |
| 11898 | case "(($ac_try" in |
| 11899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11900 | *) ac_try_echo=$ac_try;; |
| 11901 | esac |
| 11902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11903 | (eval "$ac_compile") 2>conftest.er1 |
| 11904 | ac_status=$? |
| 11905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11906 | rm -f conftest.er1 |
| 11907 | cat conftest.err >&5 |
| 11908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11909 | (exit $ac_status); } && |
| 11910 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11911 | { (case "(($ac_try" in |
| 11912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11913 | *) ac_try_echo=$ac_try;; |
| 11914 | esac |
| 11915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11916 | (eval "$ac_try") 2>&5 |
| 11917 | ac_status=$? |
| 11918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11919 | (exit $ac_status); }; } && |
| 11920 | { ac_try='test -s conftest.$ac_objext' |
| 11921 | { (case "(($ac_try" in |
| 11922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11923 | *) ac_try_echo=$ac_try;; |
| 11924 | esac |
| 11925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11926 | (eval "$ac_try") 2>&5 |
| 11927 | ac_status=$? |
| 11928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11929 | (exit $ac_status); }; }; then |
| 11930 | ac_header_compiler=yes |
| 11931 | else |
| 11932 | echo "$as_me: failed program was:" >&5 |
| 11933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11934 | |
| 11935 | ac_header_compiler=no |
| 11936 | fi |
| 11937 | |
| 11938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11939 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11940 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11941 | |
| 11942 | # Is the header present? |
| 11943 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11944 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11945 | cat >conftest.$ac_ext <<_ACEOF |
| 11946 | /* confdefs.h. */ |
| 11947 | _ACEOF |
| 11948 | cat confdefs.h >>conftest.$ac_ext |
| 11949 | cat >>conftest.$ac_ext <<_ACEOF |
| 11950 | /* end confdefs.h. */ |
| 11951 | #include <$ac_header> |
| 11952 | _ACEOF |
| 11953 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11954 | case "(($ac_try" in |
| 11955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11956 | *) ac_try_echo=$ac_try;; |
| 11957 | esac |
| 11958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11959 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11960 | ac_status=$? |
| 11961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11962 | rm -f conftest.er1 |
| 11963 | cat conftest.err >&5 |
| 11964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11965 | (exit $ac_status); } >/dev/null; then |
| 11966 | if test -s conftest.err; then |
| 11967 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11968 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11969 | else |
| 11970 | ac_cpp_err= |
| 11971 | fi |
| 11972 | else |
| 11973 | ac_cpp_err=yes |
| 11974 | fi |
| 11975 | if test -z "$ac_cpp_err"; then |
| 11976 | ac_header_preproc=yes |
| 11977 | else |
| 11978 | echo "$as_me: failed program was:" >&5 |
| 11979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11980 | |
| 11981 | ac_header_preproc=no |
| 11982 | fi |
| 11983 | |
| 11984 | rm -f conftest.err conftest.$ac_ext |
| 11985 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11986 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11987 | |
| 11988 | # So? What about this header? |
| 11989 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11990 | yes:no: ) |
| 11991 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11992 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11993 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11994 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11995 | ac_header_preproc=yes |
| 11996 | ;; |
| 11997 | no:yes:* ) |
| 11998 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11999 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12000 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12001 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12002 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12003 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12004 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12005 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12006 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12007 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12008 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12009 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12010 | ( cat <<\_ASBOX |
| 12011 | ## ----------------------------------- ## |
| 12012 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12013 | ## ----------------------------------- ## |
| 12014 | _ASBOX |
| 12015 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12016 | ;; |
| 12017 | esac |
| 12018 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12019 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12020 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12022 | else |
| 12023 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12024 | fi |
| 12025 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12026 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12027 | echo "${ECHO_T}$ac_res" >&6; } |
| 12028 | |
| 12029 | fi |
| 12030 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12031 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12032 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12033 | _ACEOF |
| 12034 | |
| 12035 | fi |
| 12036 | |
| 12037 | done |
| 12038 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12039 | |
| 12040 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12041 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12042 | do |
| 12043 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12044 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12045 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12046 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12047 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12049 | fi |
| 12050 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12051 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12052 | echo "${ECHO_T}$ac_res" >&6; } |
| 12053 | else |
| 12054 | # Is the header compilable? |
| 12055 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12056 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12057 | cat >conftest.$ac_ext <<_ACEOF |
| 12058 | /* confdefs.h. */ |
| 12059 | _ACEOF |
| 12060 | cat confdefs.h >>conftest.$ac_ext |
| 12061 | cat >>conftest.$ac_ext <<_ACEOF |
| 12062 | /* end confdefs.h. */ |
| 12063 | $ac_includes_default |
| 12064 | #include <$ac_header> |
| 12065 | _ACEOF |
| 12066 | rm -f conftest.$ac_objext |
| 12067 | if { (ac_try="$ac_compile" |
| 12068 | case "(($ac_try" in |
| 12069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12070 | *) ac_try_echo=$ac_try;; |
| 12071 | esac |
| 12072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12073 | (eval "$ac_compile") 2>conftest.er1 |
| 12074 | ac_status=$? |
| 12075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12076 | rm -f conftest.er1 |
| 12077 | cat conftest.err >&5 |
| 12078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12079 | (exit $ac_status); } && |
| 12080 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12081 | { (case "(($ac_try" in |
| 12082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12083 | *) ac_try_echo=$ac_try;; |
| 12084 | esac |
| 12085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12086 | (eval "$ac_try") 2>&5 |
| 12087 | ac_status=$? |
| 12088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12089 | (exit $ac_status); }; } && |
| 12090 | { ac_try='test -s conftest.$ac_objext' |
| 12091 | { (case "(($ac_try" in |
| 12092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12093 | *) ac_try_echo=$ac_try;; |
| 12094 | esac |
| 12095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12096 | (eval "$ac_try") 2>&5 |
| 12097 | ac_status=$? |
| 12098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12099 | (exit $ac_status); }; }; then |
| 12100 | ac_header_compiler=yes |
| 12101 | else |
| 12102 | echo "$as_me: failed program was:" >&5 |
| 12103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12104 | |
| 12105 | ac_header_compiler=no |
| 12106 | fi |
| 12107 | |
| 12108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12109 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12110 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12111 | |
| 12112 | # Is the header present? |
| 12113 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12114 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12115 | cat >conftest.$ac_ext <<_ACEOF |
| 12116 | /* confdefs.h. */ |
| 12117 | _ACEOF |
| 12118 | cat confdefs.h >>conftest.$ac_ext |
| 12119 | cat >>conftest.$ac_ext <<_ACEOF |
| 12120 | /* end confdefs.h. */ |
| 12121 | #include <$ac_header> |
| 12122 | _ACEOF |
| 12123 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12124 | case "(($ac_try" in |
| 12125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12126 | *) ac_try_echo=$ac_try;; |
| 12127 | esac |
| 12128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12129 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12130 | ac_status=$? |
| 12131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12132 | rm -f conftest.er1 |
| 12133 | cat conftest.err >&5 |
| 12134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12135 | (exit $ac_status); } >/dev/null; then |
| 12136 | if test -s conftest.err; then |
| 12137 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12138 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12139 | else |
| 12140 | ac_cpp_err= |
| 12141 | fi |
| 12142 | else |
| 12143 | ac_cpp_err=yes |
| 12144 | fi |
| 12145 | if test -z "$ac_cpp_err"; then |
| 12146 | ac_header_preproc=yes |
| 12147 | else |
| 12148 | echo "$as_me: failed program was:" >&5 |
| 12149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12150 | |
| 12151 | ac_header_preproc=no |
| 12152 | fi |
| 12153 | |
| 12154 | rm -f conftest.err conftest.$ac_ext |
| 12155 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12156 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12157 | |
| 12158 | # So? What about this header? |
| 12159 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12160 | yes:no: ) |
| 12161 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12162 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12163 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12164 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12165 | ac_header_preproc=yes |
| 12166 | ;; |
| 12167 | no:yes:* ) |
| 12168 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12169 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12170 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12171 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12172 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12173 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12174 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12175 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12176 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12177 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12178 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12179 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12180 | ( cat <<\_ASBOX |
| 12181 | ## ----------------------------------- ## |
| 12182 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12183 | ## ----------------------------------- ## |
| 12184 | _ASBOX |
| 12185 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12186 | ;; |
| 12187 | esac |
| 12188 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12189 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12190 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12192 | else |
| 12193 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12194 | fi |
| 12195 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12196 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12197 | echo "${ECHO_T}$ac_res" >&6; } |
| 12198 | |
| 12199 | fi |
| 12200 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12201 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12202 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12203 | _ACEOF |
| 12204 | break |
| 12205 | fi |
| 12206 | |
| 12207 | done |
| 12208 | |
| 12209 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12210 | |
| 12211 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12212 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12213 | do |
| 12214 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12215 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12216 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12217 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12219 | else |
| 12220 | cat >conftest.$ac_ext <<_ACEOF |
| 12221 | /* confdefs.h. */ |
| 12222 | _ACEOF |
| 12223 | cat confdefs.h >>conftest.$ac_ext |
| 12224 | cat >>conftest.$ac_ext <<_ACEOF |
| 12225 | /* end confdefs.h. */ |
| 12226 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12227 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12228 | #define $ac_func innocuous_$ac_func |
| 12229 | |
| 12230 | /* System header to define __stub macros and hopefully few prototypes, |
| 12231 | which can conflict with char $ac_func (); below. |
| 12232 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12233 | <limits.h> exists even on freestanding compilers. */ |
| 12234 | |
| 12235 | #ifdef __STDC__ |
| 12236 | # include <limits.h> |
| 12237 | #else |
| 12238 | # include <assert.h> |
| 12239 | #endif |
| 12240 | |
| 12241 | #undef $ac_func |
| 12242 | |
| 12243 | /* Override any GCC internal prototype to avoid an error. |
| 12244 | Use char because int might match the return type of a GCC |
| 12245 | builtin and then its argument prototype would still apply. */ |
| 12246 | #ifdef __cplusplus |
| 12247 | extern "C" |
| 12248 | #endif |
| 12249 | char $ac_func (); |
| 12250 | /* The GNU C library defines this for functions which it implements |
| 12251 | to always fail with ENOSYS. Some functions are actually named |
| 12252 | something starting with __ and the normal name is an alias. */ |
| 12253 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12254 | choke me |
| 12255 | #endif |
| 12256 | |
| 12257 | int |
| 12258 | main () |
| 12259 | { |
| 12260 | return $ac_func (); |
| 12261 | ; |
| 12262 | return 0; |
| 12263 | } |
| 12264 | _ACEOF |
| 12265 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12266 | if { (ac_try="$ac_link" |
| 12267 | case "(($ac_try" in |
| 12268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12269 | *) ac_try_echo=$ac_try;; |
| 12270 | esac |
| 12271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12272 | (eval "$ac_link") 2>conftest.er1 |
| 12273 | ac_status=$? |
| 12274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12275 | rm -f conftest.er1 |
| 12276 | cat conftest.err >&5 |
| 12277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12278 | (exit $ac_status); } && |
| 12279 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12280 | { (case "(($ac_try" in |
| 12281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12282 | *) ac_try_echo=$ac_try;; |
| 12283 | esac |
| 12284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12285 | (eval "$ac_try") 2>&5 |
| 12286 | ac_status=$? |
| 12287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12288 | (exit $ac_status); }; } && |
| 12289 | { ac_try='test -s conftest$ac_exeext' |
| 12290 | { (case "(($ac_try" in |
| 12291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12292 | *) ac_try_echo=$ac_try;; |
| 12293 | esac |
| 12294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12295 | (eval "$ac_try") 2>&5 |
| 12296 | ac_status=$? |
| 12297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12298 | (exit $ac_status); }; }; then |
| 12299 | eval "$as_ac_var=yes" |
| 12300 | else |
| 12301 | echo "$as_me: failed program was:" >&5 |
| 12302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12303 | |
| 12304 | eval "$as_ac_var=no" |
| 12305 | fi |
| 12306 | |
| 12307 | rm -f core conftest.err conftest.$ac_objext \ |
| 12308 | conftest$ac_exeext conftest.$ac_ext |
| 12309 | fi |
| 12310 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12311 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12312 | echo "${ECHO_T}$ac_res" >&6; } |
| 12313 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12314 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12315 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12316 | _ACEOF |
| 12317 | break |
| 12318 | fi |
| 12319 | done |
| 12320 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12321 | |
| 12322 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12323 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12324 | do |
| 12325 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12326 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12327 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12328 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12330 | else |
| 12331 | cat >conftest.$ac_ext <<_ACEOF |
| 12332 | /* confdefs.h. */ |
| 12333 | _ACEOF |
| 12334 | cat confdefs.h >>conftest.$ac_ext |
| 12335 | cat >>conftest.$ac_ext <<_ACEOF |
| 12336 | /* end confdefs.h. */ |
| 12337 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12338 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12339 | #define $ac_func innocuous_$ac_func |
| 12340 | |
| 12341 | /* System header to define __stub macros and hopefully few prototypes, |
| 12342 | which can conflict with char $ac_func (); below. |
| 12343 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12344 | <limits.h> exists even on freestanding compilers. */ |
| 12345 | |
| 12346 | #ifdef __STDC__ |
| 12347 | # include <limits.h> |
| 12348 | #else |
| 12349 | # include <assert.h> |
| 12350 | #endif |
| 12351 | |
| 12352 | #undef $ac_func |
| 12353 | |
| 12354 | /* Override any GCC internal prototype to avoid an error. |
| 12355 | Use char because int might match the return type of a GCC |
| 12356 | builtin and then its argument prototype would still apply. */ |
| 12357 | #ifdef __cplusplus |
| 12358 | extern "C" |
| 12359 | #endif |
| 12360 | char $ac_func (); |
| 12361 | /* The GNU C library defines this for functions which it implements |
| 12362 | to always fail with ENOSYS. Some functions are actually named |
| 12363 | something starting with __ and the normal name is an alias. */ |
| 12364 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12365 | choke me |
| 12366 | #endif |
| 12367 | |
| 12368 | int |
| 12369 | main () |
| 12370 | { |
| 12371 | return $ac_func (); |
| 12372 | ; |
| 12373 | return 0; |
| 12374 | } |
| 12375 | _ACEOF |
| 12376 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12377 | if { (ac_try="$ac_link" |
| 12378 | case "(($ac_try" in |
| 12379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12380 | *) ac_try_echo=$ac_try;; |
| 12381 | esac |
| 12382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12383 | (eval "$ac_link") 2>conftest.er1 |
| 12384 | ac_status=$? |
| 12385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12386 | rm -f conftest.er1 |
| 12387 | cat conftest.err >&5 |
| 12388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12389 | (exit $ac_status); } && |
| 12390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12391 | { (case "(($ac_try" in |
| 12392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12393 | *) ac_try_echo=$ac_try;; |
| 12394 | esac |
| 12395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12396 | (eval "$ac_try") 2>&5 |
| 12397 | ac_status=$? |
| 12398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12399 | (exit $ac_status); }; } && |
| 12400 | { ac_try='test -s conftest$ac_exeext' |
| 12401 | { (case "(($ac_try" in |
| 12402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12403 | *) ac_try_echo=$ac_try;; |
| 12404 | esac |
| 12405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12406 | (eval "$ac_try") 2>&5 |
| 12407 | ac_status=$? |
| 12408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12409 | (exit $ac_status); }; }; then |
| 12410 | eval "$as_ac_var=yes" |
| 12411 | else |
| 12412 | echo "$as_me: failed program was:" >&5 |
| 12413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12414 | |
| 12415 | eval "$as_ac_var=no" |
| 12416 | fi |
| 12417 | |
| 12418 | rm -f core conftest.err conftest.$ac_objext \ |
| 12419 | conftest$ac_exeext conftest.$ac_ext |
| 12420 | fi |
| 12421 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12422 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12423 | echo "${ECHO_T}$ac_res" >&6; } |
| 12424 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12425 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12426 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12427 | _ACEOF |
| 12428 | break |
| 12429 | fi |
| 12430 | done |
| 12431 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12432 | |
| 12433 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12434 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12435 | do |
| 12436 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12437 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12438 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12439 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12441 | else |
| 12442 | cat >conftest.$ac_ext <<_ACEOF |
| 12443 | /* confdefs.h. */ |
| 12444 | _ACEOF |
| 12445 | cat confdefs.h >>conftest.$ac_ext |
| 12446 | cat >>conftest.$ac_ext <<_ACEOF |
| 12447 | /* end confdefs.h. */ |
| 12448 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12449 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12450 | #define $ac_func innocuous_$ac_func |
| 12451 | |
| 12452 | /* System header to define __stub macros and hopefully few prototypes, |
| 12453 | which can conflict with char $ac_func (); below. |
| 12454 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12455 | <limits.h> exists even on freestanding compilers. */ |
| 12456 | |
| 12457 | #ifdef __STDC__ |
| 12458 | # include <limits.h> |
| 12459 | #else |
| 12460 | # include <assert.h> |
| 12461 | #endif |
| 12462 | |
| 12463 | #undef $ac_func |
| 12464 | |
| 12465 | /* Override any GCC internal prototype to avoid an error. |
| 12466 | Use char because int might match the return type of a GCC |
| 12467 | builtin and then its argument prototype would still apply. */ |
| 12468 | #ifdef __cplusplus |
| 12469 | extern "C" |
| 12470 | #endif |
| 12471 | char $ac_func (); |
| 12472 | /* The GNU C library defines this for functions which it implements |
| 12473 | to always fail with ENOSYS. Some functions are actually named |
| 12474 | something starting with __ and the normal name is an alias. */ |
| 12475 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12476 | choke me |
| 12477 | #endif |
| 12478 | |
| 12479 | int |
| 12480 | main () |
| 12481 | { |
| 12482 | return $ac_func (); |
| 12483 | ; |
| 12484 | return 0; |
| 12485 | } |
| 12486 | _ACEOF |
| 12487 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12488 | if { (ac_try="$ac_link" |
| 12489 | case "(($ac_try" in |
| 12490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12491 | *) ac_try_echo=$ac_try;; |
| 12492 | esac |
| 12493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12494 | (eval "$ac_link") 2>conftest.er1 |
| 12495 | ac_status=$? |
| 12496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12497 | rm -f conftest.er1 |
| 12498 | cat conftest.err >&5 |
| 12499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12500 | (exit $ac_status); } && |
| 12501 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12502 | { (case "(($ac_try" in |
| 12503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12504 | *) ac_try_echo=$ac_try;; |
| 12505 | esac |
| 12506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12507 | (eval "$ac_try") 2>&5 |
| 12508 | ac_status=$? |
| 12509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12510 | (exit $ac_status); }; } && |
| 12511 | { ac_try='test -s conftest$ac_exeext' |
| 12512 | { (case "(($ac_try" in |
| 12513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12514 | *) ac_try_echo=$ac_try;; |
| 12515 | esac |
| 12516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12517 | (eval "$ac_try") 2>&5 |
| 12518 | ac_status=$? |
| 12519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12520 | (exit $ac_status); }; }; then |
| 12521 | eval "$as_ac_var=yes" |
| 12522 | else |
| 12523 | echo "$as_me: failed program was:" >&5 |
| 12524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12525 | |
| 12526 | eval "$as_ac_var=no" |
| 12527 | fi |
| 12528 | |
| 12529 | rm -f core conftest.err conftest.$ac_objext \ |
| 12530 | conftest$ac_exeext conftest.$ac_ext |
| 12531 | fi |
| 12532 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12533 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12534 | echo "${ECHO_T}$ac_res" >&6; } |
| 12535 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12536 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12537 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12538 | _ACEOF |
| 12539 | break |
| 12540 | fi |
| 12541 | done |
| 12542 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12543 | |
| 12544 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12545 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12546 | do |
| 12547 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12548 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12549 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12550 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12552 | else |
| 12553 | cat >conftest.$ac_ext <<_ACEOF |
| 12554 | /* confdefs.h. */ |
| 12555 | _ACEOF |
| 12556 | cat confdefs.h >>conftest.$ac_ext |
| 12557 | cat >>conftest.$ac_ext <<_ACEOF |
| 12558 | /* end confdefs.h. */ |
| 12559 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12560 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12561 | #define $ac_func innocuous_$ac_func |
| 12562 | |
| 12563 | /* System header to define __stub macros and hopefully few prototypes, |
| 12564 | which can conflict with char $ac_func (); below. |
| 12565 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12566 | <limits.h> exists even on freestanding compilers. */ |
| 12567 | |
| 12568 | #ifdef __STDC__ |
| 12569 | # include <limits.h> |
| 12570 | #else |
| 12571 | # include <assert.h> |
| 12572 | #endif |
| 12573 | |
| 12574 | #undef $ac_func |
| 12575 | |
| 12576 | /* Override any GCC internal prototype to avoid an error. |
| 12577 | Use char because int might match the return type of a GCC |
| 12578 | builtin and then its argument prototype would still apply. */ |
| 12579 | #ifdef __cplusplus |
| 12580 | extern "C" |
| 12581 | #endif |
| 12582 | char $ac_func (); |
| 12583 | /* The GNU C library defines this for functions which it implements |
| 12584 | to always fail with ENOSYS. Some functions are actually named |
| 12585 | something starting with __ and the normal name is an alias. */ |
| 12586 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12587 | choke me |
| 12588 | #endif |
| 12589 | |
| 12590 | int |
| 12591 | main () |
| 12592 | { |
| 12593 | return $ac_func (); |
| 12594 | ; |
| 12595 | return 0; |
| 12596 | } |
| 12597 | _ACEOF |
| 12598 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12599 | if { (ac_try="$ac_link" |
| 12600 | case "(($ac_try" in |
| 12601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12602 | *) ac_try_echo=$ac_try;; |
| 12603 | esac |
| 12604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12605 | (eval "$ac_link") 2>conftest.er1 |
| 12606 | ac_status=$? |
| 12607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12608 | rm -f conftest.er1 |
| 12609 | cat conftest.err >&5 |
| 12610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12611 | (exit $ac_status); } && |
| 12612 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12613 | { (case "(($ac_try" in |
| 12614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12615 | *) ac_try_echo=$ac_try;; |
| 12616 | esac |
| 12617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12618 | (eval "$ac_try") 2>&5 |
| 12619 | ac_status=$? |
| 12620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12621 | (exit $ac_status); }; } && |
| 12622 | { ac_try='test -s conftest$ac_exeext' |
| 12623 | { (case "(($ac_try" in |
| 12624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12625 | *) ac_try_echo=$ac_try;; |
| 12626 | esac |
| 12627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12628 | (eval "$ac_try") 2>&5 |
| 12629 | ac_status=$? |
| 12630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12631 | (exit $ac_status); }; }; then |
| 12632 | eval "$as_ac_var=yes" |
| 12633 | else |
| 12634 | echo "$as_me: failed program was:" >&5 |
| 12635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12636 | |
| 12637 | eval "$as_ac_var=no" |
| 12638 | fi |
| 12639 | |
| 12640 | rm -f core conftest.err conftest.$ac_objext \ |
| 12641 | conftest$ac_exeext conftest.$ac_ext |
| 12642 | fi |
| 12643 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12644 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12645 | echo "${ECHO_T}$ac_res" >&6; } |
| 12646 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12647 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12648 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12649 | _ACEOF |
| 12650 | |
| 12651 | fi |
| 12652 | done |
| 12653 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12654 | |
| 12655 | |
| 12656 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12657 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12658 | do |
| 12659 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12660 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12661 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12662 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12664 | else |
| 12665 | cat >conftest.$ac_ext <<_ACEOF |
| 12666 | /* confdefs.h. */ |
| 12667 | _ACEOF |
| 12668 | cat confdefs.h >>conftest.$ac_ext |
| 12669 | cat >>conftest.$ac_ext <<_ACEOF |
| 12670 | /* end confdefs.h. */ |
| 12671 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12672 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12673 | #define $ac_func innocuous_$ac_func |
| 12674 | |
| 12675 | /* System header to define __stub macros and hopefully few prototypes, |
| 12676 | which can conflict with char $ac_func (); below. |
| 12677 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12678 | <limits.h> exists even on freestanding compilers. */ |
| 12679 | |
| 12680 | #ifdef __STDC__ |
| 12681 | # include <limits.h> |
| 12682 | #else |
| 12683 | # include <assert.h> |
| 12684 | #endif |
| 12685 | |
| 12686 | #undef $ac_func |
| 12687 | |
| 12688 | /* Override any GCC internal prototype to avoid an error. |
| 12689 | Use char because int might match the return type of a GCC |
| 12690 | builtin and then its argument prototype would still apply. */ |
| 12691 | #ifdef __cplusplus |
| 12692 | extern "C" |
| 12693 | #endif |
| 12694 | char $ac_func (); |
| 12695 | /* The GNU C library defines this for functions which it implements |
| 12696 | to always fail with ENOSYS. Some functions are actually named |
| 12697 | something starting with __ and the normal name is an alias. */ |
| 12698 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12699 | choke me |
| 12700 | #endif |
| 12701 | |
| 12702 | int |
| 12703 | main () |
| 12704 | { |
| 12705 | return $ac_func (); |
| 12706 | ; |
| 12707 | return 0; |
| 12708 | } |
| 12709 | _ACEOF |
| 12710 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12711 | if { (ac_try="$ac_link" |
| 12712 | case "(($ac_try" in |
| 12713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12714 | *) ac_try_echo=$ac_try;; |
| 12715 | esac |
| 12716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12717 | (eval "$ac_link") 2>conftest.er1 |
| 12718 | ac_status=$? |
| 12719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12720 | rm -f conftest.er1 |
| 12721 | cat conftest.err >&5 |
| 12722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12723 | (exit $ac_status); } && |
| 12724 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12725 | { (case "(($ac_try" in |
| 12726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12727 | *) ac_try_echo=$ac_try;; |
| 12728 | esac |
| 12729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12730 | (eval "$ac_try") 2>&5 |
| 12731 | ac_status=$? |
| 12732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12733 | (exit $ac_status); }; } && |
| 12734 | { ac_try='test -s conftest$ac_exeext' |
| 12735 | { (case "(($ac_try" in |
| 12736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12737 | *) ac_try_echo=$ac_try;; |
| 12738 | esac |
| 12739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12740 | (eval "$ac_try") 2>&5 |
| 12741 | ac_status=$? |
| 12742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12743 | (exit $ac_status); }; }; then |
| 12744 | eval "$as_ac_var=yes" |
| 12745 | else |
| 12746 | echo "$as_me: failed program was:" >&5 |
| 12747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12748 | |
| 12749 | eval "$as_ac_var=no" |
| 12750 | fi |
| 12751 | |
| 12752 | rm -f core conftest.err conftest.$ac_objext \ |
| 12753 | conftest$ac_exeext conftest.$ac_ext |
| 12754 | fi |
| 12755 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12756 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12757 | echo "${ECHO_T}$ac_res" >&6; } |
| 12758 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12759 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12760 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12761 | _ACEOF |
| 12762 | |
| 12763 | fi |
| 12764 | done |
| 12765 | |
| 12766 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 12767 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 12768 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 12769 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 12770 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12771 | LLVMGCCCOMMAND="$LLVMGCC" |
| 12772 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12773 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 12774 | |
| 12775 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 12776 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 12777 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 12778 | set dummy $LLVMGCC; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12779 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 12781 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 12782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12783 | else |
| 12784 | case $LLVMGCC in |
| 12785 | [\\/]* | ?:[\\/]*) |
| 12786 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 12787 | ;; |
| 12788 | *) |
| 12789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12790 | for as_dir in $PATH |
| 12791 | do |
| 12792 | IFS=$as_save_IFS |
| 12793 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12794 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12795 | 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] | 12796 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12797 | 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] | 12798 | break 2 |
| 12799 | fi |
| 12800 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12801 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12802 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12803 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12804 | ;; |
| 12805 | esac |
| 12806 | fi |
| 12807 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12808 | if test -n "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12809 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 12810 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12811 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12812 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12813 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12814 | fi |
| 12815 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12816 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 12817 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 12818 | set dummy $LLVMGXX; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12819 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12820 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 12821 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 12822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12823 | else |
| 12824 | case $LLVMGXX in |
| 12825 | [\\/]* | ?:[\\/]*) |
| 12826 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 12827 | ;; |
| 12828 | *) |
| 12829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12830 | for as_dir in $PATH |
| 12831 | do |
| 12832 | IFS=$as_save_IFS |
| 12833 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12834 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12835 | 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] | 12836 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12837 | 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] | 12838 | break 2 |
| 12839 | fi |
| 12840 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12841 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12842 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12843 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12844 | ;; |
| 12845 | esac |
| 12846 | fi |
| 12847 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12848 | if test -n "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12849 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 12850 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12851 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12852 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12853 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12854 | fi |
| 12855 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12856 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12857 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 12858 | if test -z "$LLVMGCC"; then |
| 12859 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12860 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 12861 | fi |
| 12862 | if test -z "$LLVMGXX"; then |
| 12863 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12864 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 12865 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12866 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12867 | LLVMGCC=$LLVMGCC |
| 12868 | |
| 12869 | LLVMGXX=$LLVMGXX |
| 12870 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12871 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 12872 | |
| 12873 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 12874 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12875 | fi |
| 12876 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12877 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame^] | 12878 | # Check whether --with-llvmcc was given. |
| 12879 | if test "${with_llvmcc+set}" = set; then |
| 12880 | withval=$with_llvmcc; |
| 12881 | else |
| 12882 | with_llvmcc=check |
| 12883 | fi |
| 12884 | |
| 12885 | { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5 |
| 12886 | echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; } |
| 12887 | if test "$with_llvmcc" != "check"; then |
| 12888 | if (test "$with_llvmcc" != "llvm-gcc" && |
| 12889 | test "$with_llvmcc" != "clang" && |
| 12890 | test "$with_llvmcc" != "none"); then |
| 12891 | { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5 |
| 12892 | echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;} |
| 12893 | { (exit 1); exit 1; }; } |
| 12894 | fi |
| 12895 | WITH_LLVMCC="$with_llvmcc" |
| 12896 | elif test -n "$LLVMGCC"; then |
| 12897 | WITH_LLVMCC=llvm-gcc |
| 12898 | elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then |
| 12899 | WITH_LLVMCC=clang |
| 12900 | else |
| 12901 | WITH_LLVMCC=none |
| 12902 | fi |
| 12903 | { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5 |
| 12904 | echo "${ECHO_T}$WITH_LLVMCC" >&6; } |
| 12905 | LLVMCC_OPTION=$WITH_LLVMCC |
| 12906 | |
| 12907 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12908 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 12909 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12910 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12911 | ICC=no |
| 12912 | IXX=no |
| 12913 | case $CC in |
| 12914 | icc*|icpc*) |
| 12915 | ICC=yes |
| 12916 | IXX=yes |
| 12917 | ;; |
| 12918 | *) |
| 12919 | ;; |
| 12920 | esac |
| 12921 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12922 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 12923 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12924 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 12925 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 12926 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12927 | fi |
| 12928 | |
| 12929 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 12930 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12931 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 12932 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 12933 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12934 | fi |
| 12935 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12936 | if test "$GCC" = "yes" |
| 12937 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12938 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12939 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 12940 | #error Unsupported GCC version |
| 12941 | #endif |
| 12942 | |
| 12943 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12944 | rm -f conftest.$ac_objext |
| 12945 | if { (ac_try="$ac_compile" |
| 12946 | case "(($ac_try" in |
| 12947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12948 | *) ac_try_echo=$ac_try;; |
| 12949 | esac |
| 12950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12951 | (eval "$ac_compile") 2>conftest.er1 |
| 12952 | ac_status=$? |
| 12953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12954 | rm -f conftest.er1 |
| 12955 | cat conftest.err >&5 |
| 12956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12957 | (exit $ac_status); } && |
| 12958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12959 | { (case "(($ac_try" in |
| 12960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12961 | *) ac_try_echo=$ac_try;; |
| 12962 | esac |
| 12963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12964 | (eval "$ac_try") 2>&5 |
| 12965 | ac_status=$? |
| 12966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12967 | (exit $ac_status); }; } && |
| 12968 | { ac_try='test -s conftest.$ac_objext' |
| 12969 | { (case "(($ac_try" in |
| 12970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12971 | *) ac_try_echo=$ac_try;; |
| 12972 | esac |
| 12973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12974 | (eval "$ac_try") 2>&5 |
| 12975 | ac_status=$? |
| 12976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12977 | (exit $ac_status); }; }; then |
| 12978 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12979 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12980 | echo "$as_me: failed program was:" >&5 |
| 12981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12982 | |
| 12983 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 12984 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 12985 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12986 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12987 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12989 | fi |
| 12990 | |
| 12991 | if test -z "$llvm_cv_gnu_make_command" |
| 12992 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12993 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 12994 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 12995 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12996 | fi |
| 12997 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12998 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 12999 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13000 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13001 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 13002 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13003 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 13004 | |
| 13005 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 13006 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13007 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 13008 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13009 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 13010 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13011 | |
| 13012 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 13013 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 13014 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 13015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13016 | else |
| 13017 | ac_check_lib_save_LIBS=$LIBS |
| 13018 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13019 | cat >conftest.$ac_ext <<_ACEOF |
| 13020 | /* confdefs.h. */ |
| 13021 | _ACEOF |
| 13022 | cat confdefs.h >>conftest.$ac_ext |
| 13023 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13024 | /* end confdefs.h. */ |
| 13025 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13026 | /* Override any GCC internal prototype to avoid an error. |
| 13027 | Use char because int might match the return type of a GCC |
| 13028 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13029 | #ifdef __cplusplus |
| 13030 | extern "C" |
| 13031 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13032 | char sin (); |
| 13033 | int |
| 13034 | main () |
| 13035 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13036 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13037 | ; |
| 13038 | return 0; |
| 13039 | } |
| 13040 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13041 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13042 | if { (ac_try="$ac_link" |
| 13043 | case "(($ac_try" in |
| 13044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13045 | *) ac_try_echo=$ac_try;; |
| 13046 | esac |
| 13047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13048 | (eval "$ac_link") 2>conftest.er1 |
| 13049 | ac_status=$? |
| 13050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13051 | rm -f conftest.er1 |
| 13052 | cat conftest.err >&5 |
| 13053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13054 | (exit $ac_status); } && |
| 13055 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13056 | { (case "(($ac_try" in |
| 13057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13058 | *) ac_try_echo=$ac_try;; |
| 13059 | esac |
| 13060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13061 | (eval "$ac_try") 2>&5 |
| 13062 | ac_status=$? |
| 13063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13064 | (exit $ac_status); }; } && |
| 13065 | { ac_try='test -s conftest$ac_exeext' |
| 13066 | { (case "(($ac_try" in |
| 13067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13068 | *) ac_try_echo=$ac_try;; |
| 13069 | esac |
| 13070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13071 | (eval "$ac_try") 2>&5 |
| 13072 | ac_status=$? |
| 13073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13074 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13075 | ac_cv_lib_m_sin=yes |
| 13076 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13077 | echo "$as_me: failed program was:" >&5 |
| 13078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13079 | |
| 13080 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13081 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13082 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13083 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13084 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13085 | LIBS=$ac_check_lib_save_LIBS |
| 13086 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13087 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 13088 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 13089 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13090 | cat >>confdefs.h <<_ACEOF |
| 13091 | #define HAVE_LIBM 1 |
| 13092 | _ACEOF |
| 13093 | |
| 13094 | LIBS="-lm $LIBS" |
| 13095 | |
| 13096 | fi |
| 13097 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 13098 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13099 | |
| 13100 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 13101 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 13102 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 13103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13104 | else |
| 13105 | ac_check_lib_save_LIBS=$LIBS |
| 13106 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13107 | cat >conftest.$ac_ext <<_ACEOF |
| 13108 | /* confdefs.h. */ |
| 13109 | _ACEOF |
| 13110 | cat confdefs.h >>conftest.$ac_ext |
| 13111 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13112 | /* end confdefs.h. */ |
| 13113 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13114 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13115 | int |
| 13116 | main () |
| 13117 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13118 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13119 | ; |
| 13120 | return 0; |
| 13121 | } |
| 13122 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13123 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13124 | if { (ac_try="$ac_link" |
| 13125 | case "(($ac_try" in |
| 13126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13127 | *) ac_try_echo=$ac_try;; |
| 13128 | esac |
| 13129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13130 | (eval "$ac_link") 2>conftest.er1 |
| 13131 | ac_status=$? |
| 13132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13133 | rm -f conftest.er1 |
| 13134 | cat conftest.err >&5 |
| 13135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13136 | (exit $ac_status); } && |
| 13137 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13138 | { (case "(($ac_try" in |
| 13139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13140 | *) ac_try_echo=$ac_try;; |
| 13141 | esac |
| 13142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13143 | (eval "$ac_try") 2>&5 |
| 13144 | ac_status=$? |
| 13145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13146 | (exit $ac_status); }; } && |
| 13147 | { ac_try='test -s conftest$ac_exeext' |
| 13148 | { (case "(($ac_try" in |
| 13149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13150 | *) ac_try_echo=$ac_try;; |
| 13151 | esac |
| 13152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13153 | (eval "$ac_try") 2>&5 |
| 13154 | ac_status=$? |
| 13155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13156 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13157 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13158 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13159 | echo "$as_me: failed program was:" >&5 |
| 13160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13161 | |
| 13162 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13163 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13164 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13165 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13166 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13167 | LIBS=$ac_check_lib_save_LIBS |
| 13168 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13169 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 13170 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 13171 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13172 | cat >>confdefs.h <<_ACEOF |
| 13173 | #define HAVE_LIBIMAGEHLP 1 |
| 13174 | _ACEOF |
| 13175 | |
| 13176 | LIBS="-limagehlp $LIBS" |
| 13177 | |
| 13178 | fi |
| 13179 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13180 | |
| 13181 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 13182 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 13183 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 13184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13185 | else |
| 13186 | ac_check_lib_save_LIBS=$LIBS |
| 13187 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13188 | cat >conftest.$ac_ext <<_ACEOF |
| 13189 | /* confdefs.h. */ |
| 13190 | _ACEOF |
| 13191 | cat confdefs.h >>conftest.$ac_ext |
| 13192 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13193 | /* end confdefs.h. */ |
| 13194 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13195 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13196 | int |
| 13197 | main () |
| 13198 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13199 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13200 | ; |
| 13201 | return 0; |
| 13202 | } |
| 13203 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13204 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13205 | if { (ac_try="$ac_link" |
| 13206 | case "(($ac_try" in |
| 13207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13208 | *) ac_try_echo=$ac_try;; |
| 13209 | esac |
| 13210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13211 | (eval "$ac_link") 2>conftest.er1 |
| 13212 | ac_status=$? |
| 13213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13214 | rm -f conftest.er1 |
| 13215 | cat conftest.err >&5 |
| 13216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13217 | (exit $ac_status); } && |
| 13218 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13219 | { (case "(($ac_try" in |
| 13220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13221 | *) ac_try_echo=$ac_try;; |
| 13222 | esac |
| 13223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13224 | (eval "$ac_try") 2>&5 |
| 13225 | ac_status=$? |
| 13226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13227 | (exit $ac_status); }; } && |
| 13228 | { ac_try='test -s conftest$ac_exeext' |
| 13229 | { (case "(($ac_try" in |
| 13230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13231 | *) ac_try_echo=$ac_try;; |
| 13232 | esac |
| 13233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13234 | (eval "$ac_try") 2>&5 |
| 13235 | ac_status=$? |
| 13236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13237 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13238 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13239 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13240 | echo "$as_me: failed program was:" >&5 |
| 13241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13242 | |
| 13243 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13244 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13245 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13246 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13247 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13248 | LIBS=$ac_check_lib_save_LIBS |
| 13249 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13250 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 13251 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 13252 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13253 | cat >>confdefs.h <<_ACEOF |
| 13254 | #define HAVE_LIBPSAPI 1 |
| 13255 | _ACEOF |
| 13256 | |
| 13257 | LIBS="-lpsapi $LIBS" |
| 13258 | |
| 13259 | fi |
| 13260 | |
| 13261 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13262 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13263 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 13264 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 13265 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13267 | else |
| 13268 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13269 | cat >conftest.$ac_ext <<_ACEOF |
| 13270 | /* confdefs.h. */ |
| 13271 | _ACEOF |
| 13272 | cat confdefs.h >>conftest.$ac_ext |
| 13273 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13274 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13275 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13276 | /* Override any GCC internal prototype to avoid an error. |
| 13277 | Use char because int might match the return type of a GCC |
| 13278 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13279 | #ifdef __cplusplus |
| 13280 | extern "C" |
| 13281 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13282 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13283 | int |
| 13284 | main () |
| 13285 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13286 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13287 | ; |
| 13288 | return 0; |
| 13289 | } |
| 13290 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13291 | for ac_lib in '' dl; do |
| 13292 | if test -z "$ac_lib"; then |
| 13293 | ac_res="none required" |
| 13294 | else |
| 13295 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13296 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13297 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13298 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13299 | if { (ac_try="$ac_link" |
| 13300 | case "(($ac_try" in |
| 13301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13302 | *) ac_try_echo=$ac_try;; |
| 13303 | esac |
| 13304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13305 | (eval "$ac_link") 2>conftest.er1 |
| 13306 | ac_status=$? |
| 13307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13308 | rm -f conftest.er1 |
| 13309 | cat conftest.err >&5 |
| 13310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13311 | (exit $ac_status); } && |
| 13312 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13313 | { (case "(($ac_try" in |
| 13314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13315 | *) ac_try_echo=$ac_try;; |
| 13316 | esac |
| 13317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13318 | (eval "$ac_try") 2>&5 |
| 13319 | ac_status=$? |
| 13320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13321 | (exit $ac_status); }; } && |
| 13322 | { ac_try='test -s conftest$ac_exeext' |
| 13323 | { (case "(($ac_try" in |
| 13324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13325 | *) ac_try_echo=$ac_try;; |
| 13326 | esac |
| 13327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13328 | (eval "$ac_try") 2>&5 |
| 13329 | ac_status=$? |
| 13330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13331 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13332 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13333 | else |
| 13334 | echo "$as_me: failed program was:" >&5 |
| 13335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13336 | |
| 13337 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13338 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13339 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13340 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13341 | conftest$ac_exeext |
| 13342 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13343 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13344 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13345 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13346 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13347 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13348 | else |
| 13349 | ac_cv_search_dlopen=no |
| 13350 | fi |
| 13351 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13352 | LIBS=$ac_func_search_save_LIBS |
| 13353 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13354 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 13355 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13356 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13357 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13358 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13359 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13360 | cat >>confdefs.h <<\_ACEOF |
| 13361 | #define HAVE_DLOPEN 1 |
| 13362 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13363 | |
| 13364 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13365 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 13366 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13367 | fi |
| 13368 | |
| 13369 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13370 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13371 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 13372 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 13373 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13375 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13376 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13377 | cat >conftest.$ac_ext <<_ACEOF |
| 13378 | /* confdefs.h. */ |
| 13379 | _ACEOF |
| 13380 | cat confdefs.h >>conftest.$ac_ext |
| 13381 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13382 | /* end confdefs.h. */ |
| 13383 | |
| 13384 | /* Override any GCC internal prototype to avoid an error. |
| 13385 | Use char because int might match the return type of a GCC |
| 13386 | builtin and then its argument prototype would still apply. */ |
| 13387 | #ifdef __cplusplus |
| 13388 | extern "C" |
| 13389 | #endif |
| 13390 | char ffi_call (); |
| 13391 | int |
| 13392 | main () |
| 13393 | { |
| 13394 | return ffi_call (); |
| 13395 | ; |
| 13396 | return 0; |
| 13397 | } |
| 13398 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13399 | for ac_lib in '' ffi; do |
| 13400 | if test -z "$ac_lib"; then |
| 13401 | ac_res="none required" |
| 13402 | else |
| 13403 | ac_res=-l$ac_lib |
| 13404 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13405 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13406 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13407 | if { (ac_try="$ac_link" |
| 13408 | case "(($ac_try" in |
| 13409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13410 | *) ac_try_echo=$ac_try;; |
| 13411 | esac |
| 13412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13413 | (eval "$ac_link") 2>conftest.er1 |
| 13414 | ac_status=$? |
| 13415 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13416 | rm -f conftest.er1 |
| 13417 | cat conftest.err >&5 |
| 13418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13419 | (exit $ac_status); } && |
| 13420 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13421 | { (case "(($ac_try" in |
| 13422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13423 | *) ac_try_echo=$ac_try;; |
| 13424 | esac |
| 13425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13426 | (eval "$ac_try") 2>&5 |
| 13427 | ac_status=$? |
| 13428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13429 | (exit $ac_status); }; } && |
| 13430 | { ac_try='test -s conftest$ac_exeext' |
| 13431 | { (case "(($ac_try" in |
| 13432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13433 | *) ac_try_echo=$ac_try;; |
| 13434 | esac |
| 13435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13436 | (eval "$ac_try") 2>&5 |
| 13437 | ac_status=$? |
| 13438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13439 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13440 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13441 | else |
| 13442 | echo "$as_me: failed program was:" >&5 |
| 13443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13444 | |
| 13445 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13446 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13447 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13448 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13449 | conftest$ac_exeext |
| 13450 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13451 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13452 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13453 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13454 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13455 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13456 | else |
| 13457 | ac_cv_search_ffi_call=no |
| 13458 | fi |
| 13459 | rm conftest.$ac_ext |
| 13460 | LIBS=$ac_func_search_save_LIBS |
| 13461 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13462 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 13463 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13464 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13465 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13466 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13467 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13468 | cat >>confdefs.h <<\_ACEOF |
| 13469 | #define HAVE_FFI_CALL 1 |
| 13470 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13471 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13472 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 13473 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 13474 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 13475 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13476 | fi |
| 13477 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13478 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13479 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13480 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 13481 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 13482 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13484 | else |
| 13485 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13486 | cat >conftest.$ac_ext <<_ACEOF |
| 13487 | /* confdefs.h. */ |
| 13488 | _ACEOF |
| 13489 | cat confdefs.h >>conftest.$ac_ext |
| 13490 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13491 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13492 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13493 | /* Override any GCC internal prototype to avoid an error. |
| 13494 | Use char because int might match the return type of a GCC |
| 13495 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13496 | #ifdef __cplusplus |
| 13497 | extern "C" |
| 13498 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13499 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13500 | int |
| 13501 | main () |
| 13502 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13503 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13504 | ; |
| 13505 | return 0; |
| 13506 | } |
| 13507 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13508 | for ac_lib in '' malloc; do |
| 13509 | if test -z "$ac_lib"; then |
| 13510 | ac_res="none required" |
| 13511 | else |
| 13512 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13513 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13514 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13515 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13516 | if { (ac_try="$ac_link" |
| 13517 | case "(($ac_try" in |
| 13518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13519 | *) ac_try_echo=$ac_try;; |
| 13520 | esac |
| 13521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13522 | (eval "$ac_link") 2>conftest.er1 |
| 13523 | ac_status=$? |
| 13524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13525 | rm -f conftest.er1 |
| 13526 | cat conftest.err >&5 |
| 13527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13528 | (exit $ac_status); } && |
| 13529 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13530 | { (case "(($ac_try" in |
| 13531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13532 | *) ac_try_echo=$ac_try;; |
| 13533 | esac |
| 13534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13535 | (eval "$ac_try") 2>&5 |
| 13536 | ac_status=$? |
| 13537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13538 | (exit $ac_status); }; } && |
| 13539 | { ac_try='test -s conftest$ac_exeext' |
| 13540 | { (case "(($ac_try" in |
| 13541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13542 | *) ac_try_echo=$ac_try;; |
| 13543 | esac |
| 13544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13545 | (eval "$ac_try") 2>&5 |
| 13546 | ac_status=$? |
| 13547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13548 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13549 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13550 | else |
| 13551 | echo "$as_me: failed program was:" >&5 |
| 13552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13553 | |
| 13554 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13555 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13556 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13557 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13558 | conftest$ac_exeext |
| 13559 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13560 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13561 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13562 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13563 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13564 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13565 | else |
| 13566 | ac_cv_search_mallinfo=no |
| 13567 | fi |
| 13568 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13569 | LIBS=$ac_func_search_save_LIBS |
| 13570 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13571 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 13572 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13573 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13574 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13575 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13576 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13577 | cat >>confdefs.h <<\_ACEOF |
| 13578 | #define HAVE_MALLINFO 1 |
| 13579 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13580 | |
| 13581 | fi |
| 13582 | |
| 13583 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13584 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13585 | |
| 13586 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 13587 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 13588 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 13589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13590 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13591 | ac_check_lib_save_LIBS=$LIBS |
| 13592 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13593 | cat >conftest.$ac_ext <<_ACEOF |
| 13594 | /* confdefs.h. */ |
| 13595 | _ACEOF |
| 13596 | cat confdefs.h >>conftest.$ac_ext |
| 13597 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13598 | /* end confdefs.h. */ |
| 13599 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13600 | /* Override any GCC internal prototype to avoid an error. |
| 13601 | Use char because int might match the return type of a GCC |
| 13602 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13603 | #ifdef __cplusplus |
| 13604 | extern "C" |
| 13605 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13606 | char pthread_mutex_init (); |
| 13607 | int |
| 13608 | main () |
| 13609 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13610 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13611 | ; |
| 13612 | return 0; |
| 13613 | } |
| 13614 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13615 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13616 | if { (ac_try="$ac_link" |
| 13617 | case "(($ac_try" in |
| 13618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13619 | *) ac_try_echo=$ac_try;; |
| 13620 | esac |
| 13621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13622 | (eval "$ac_link") 2>conftest.er1 |
| 13623 | ac_status=$? |
| 13624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13625 | rm -f conftest.er1 |
| 13626 | cat conftest.err >&5 |
| 13627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13628 | (exit $ac_status); } && |
| 13629 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13630 | { (case "(($ac_try" in |
| 13631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13632 | *) ac_try_echo=$ac_try;; |
| 13633 | esac |
| 13634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13635 | (eval "$ac_try") 2>&5 |
| 13636 | ac_status=$? |
| 13637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13638 | (exit $ac_status); }; } && |
| 13639 | { ac_try='test -s conftest$ac_exeext' |
| 13640 | { (case "(($ac_try" in |
| 13641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13642 | *) ac_try_echo=$ac_try;; |
| 13643 | esac |
| 13644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13645 | (eval "$ac_try") 2>&5 |
| 13646 | ac_status=$? |
| 13647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13648 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13649 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13650 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13651 | echo "$as_me: failed program was:" >&5 |
| 13652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13653 | |
| 13654 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13655 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13656 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13657 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13658 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13659 | LIBS=$ac_check_lib_save_LIBS |
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 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 13662 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 13663 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13664 | cat >>confdefs.h <<_ACEOF |
| 13665 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 13666 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13667 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13668 | LIBS="-lpthread $LIBS" |
| 13669 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13670 | fi |
| 13671 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13672 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 13673 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 13674 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13676 | else |
| 13677 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13678 | cat >conftest.$ac_ext <<_ACEOF |
| 13679 | /* confdefs.h. */ |
| 13680 | _ACEOF |
| 13681 | cat confdefs.h >>conftest.$ac_ext |
| 13682 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13683 | /* end confdefs.h. */ |
| 13684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13685 | /* Override any GCC internal prototype to avoid an error. |
| 13686 | Use char because int might match the return type of a GCC |
| 13687 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13688 | #ifdef __cplusplus |
| 13689 | extern "C" |
| 13690 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13691 | char pthread_mutex_lock (); |
| 13692 | int |
| 13693 | main () |
| 13694 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13695 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13696 | ; |
| 13697 | return 0; |
| 13698 | } |
| 13699 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13700 | for ac_lib in '' pthread; do |
| 13701 | if test -z "$ac_lib"; then |
| 13702 | ac_res="none required" |
| 13703 | else |
| 13704 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13705 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13706 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13707 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13708 | if { (ac_try="$ac_link" |
| 13709 | case "(($ac_try" in |
| 13710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13711 | *) ac_try_echo=$ac_try;; |
| 13712 | esac |
| 13713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13714 | (eval "$ac_link") 2>conftest.er1 |
| 13715 | ac_status=$? |
| 13716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13717 | rm -f conftest.er1 |
| 13718 | cat conftest.err >&5 |
| 13719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13720 | (exit $ac_status); } && |
| 13721 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13722 | { (case "(($ac_try" in |
| 13723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13724 | *) ac_try_echo=$ac_try;; |
| 13725 | esac |
| 13726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13727 | (eval "$ac_try") 2>&5 |
| 13728 | ac_status=$? |
| 13729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13730 | (exit $ac_status); }; } && |
| 13731 | { ac_try='test -s conftest$ac_exeext' |
| 13732 | { (case "(($ac_try" in |
| 13733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13734 | *) ac_try_echo=$ac_try;; |
| 13735 | esac |
| 13736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13737 | (eval "$ac_try") 2>&5 |
| 13738 | ac_status=$? |
| 13739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13740 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13741 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13742 | else |
| 13743 | echo "$as_me: failed program was:" >&5 |
| 13744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13745 | |
| 13746 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13747 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13748 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13749 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13750 | conftest$ac_exeext |
| 13751 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13752 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13753 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13754 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13755 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13756 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13757 | else |
| 13758 | ac_cv_search_pthread_mutex_lock=no |
| 13759 | fi |
| 13760 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13761 | LIBS=$ac_func_search_save_LIBS |
| 13762 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13763 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 13764 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13765 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13766 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13767 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13768 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13769 | cat >>confdefs.h <<\_ACEOF |
| 13770 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 13771 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 13772 | |
| 13773 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13774 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13775 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 13776 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 13777 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13779 | else |
| 13780 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13781 | cat >conftest.$ac_ext <<_ACEOF |
| 13782 | /* confdefs.h. */ |
| 13783 | _ACEOF |
| 13784 | cat confdefs.h >>conftest.$ac_ext |
| 13785 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13786 | /* end confdefs.h. */ |
| 13787 | |
| 13788 | /* Override any GCC internal prototype to avoid an error. |
| 13789 | Use char because int might match the return type of a GCC |
| 13790 | builtin and then its argument prototype would still apply. */ |
| 13791 | #ifdef __cplusplus |
| 13792 | extern "C" |
| 13793 | #endif |
| 13794 | char pthread_rwlock_init (); |
| 13795 | int |
| 13796 | main () |
| 13797 | { |
| 13798 | return pthread_rwlock_init (); |
| 13799 | ; |
| 13800 | return 0; |
| 13801 | } |
| 13802 | _ACEOF |
| 13803 | for ac_lib in '' pthread; do |
| 13804 | if test -z "$ac_lib"; then |
| 13805 | ac_res="none required" |
| 13806 | else |
| 13807 | ac_res=-l$ac_lib |
| 13808 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13809 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13810 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13811 | if { (ac_try="$ac_link" |
| 13812 | case "(($ac_try" in |
| 13813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13814 | *) ac_try_echo=$ac_try;; |
| 13815 | esac |
| 13816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13817 | (eval "$ac_link") 2>conftest.er1 |
| 13818 | ac_status=$? |
| 13819 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13820 | rm -f conftest.er1 |
| 13821 | cat conftest.err >&5 |
| 13822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13823 | (exit $ac_status); } && |
| 13824 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13825 | { (case "(($ac_try" in |
| 13826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13827 | *) ac_try_echo=$ac_try;; |
| 13828 | esac |
| 13829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13830 | (eval "$ac_try") 2>&5 |
| 13831 | ac_status=$? |
| 13832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13833 | (exit $ac_status); }; } && |
| 13834 | { ac_try='test -s conftest$ac_exeext' |
| 13835 | { (case "(($ac_try" in |
| 13836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13837 | *) ac_try_echo=$ac_try;; |
| 13838 | esac |
| 13839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13840 | (eval "$ac_try") 2>&5 |
| 13841 | ac_status=$? |
| 13842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13843 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13844 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13845 | else |
| 13846 | echo "$as_me: failed program was:" >&5 |
| 13847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13848 | |
| 13849 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13850 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13851 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13852 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13853 | conftest$ac_exeext |
| 13854 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13855 | break |
| 13856 | fi |
| 13857 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13858 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13859 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13860 | else |
| 13861 | ac_cv_search_pthread_rwlock_init=no |
| 13862 | fi |
| 13863 | rm conftest.$ac_ext |
| 13864 | LIBS=$ac_func_search_save_LIBS |
| 13865 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13866 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 13867 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13868 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13869 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13870 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13871 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13872 | cat >>confdefs.h <<\_ACEOF |
| 13873 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 13874 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13875 | |
| 13876 | fi |
| 13877 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13878 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 13879 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 13880 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13882 | else |
| 13883 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13884 | cat >conftest.$ac_ext <<_ACEOF |
| 13885 | /* confdefs.h. */ |
| 13886 | _ACEOF |
| 13887 | cat confdefs.h >>conftest.$ac_ext |
| 13888 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13889 | /* end confdefs.h. */ |
| 13890 | |
| 13891 | /* Override any GCC internal prototype to avoid an error. |
| 13892 | Use char because int might match the return type of a GCC |
| 13893 | builtin and then its argument prototype would still apply. */ |
| 13894 | #ifdef __cplusplus |
| 13895 | extern "C" |
| 13896 | #endif |
| 13897 | char pthread_getspecific (); |
| 13898 | int |
| 13899 | main () |
| 13900 | { |
| 13901 | return pthread_getspecific (); |
| 13902 | ; |
| 13903 | return 0; |
| 13904 | } |
| 13905 | _ACEOF |
| 13906 | for ac_lib in '' pthread; do |
| 13907 | if test -z "$ac_lib"; then |
| 13908 | ac_res="none required" |
| 13909 | else |
| 13910 | ac_res=-l$ac_lib |
| 13911 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13912 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13913 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13914 | if { (ac_try="$ac_link" |
| 13915 | case "(($ac_try" in |
| 13916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13917 | *) ac_try_echo=$ac_try;; |
| 13918 | esac |
| 13919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13920 | (eval "$ac_link") 2>conftest.er1 |
| 13921 | ac_status=$? |
| 13922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13923 | rm -f conftest.er1 |
| 13924 | cat conftest.err >&5 |
| 13925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13926 | (exit $ac_status); } && |
| 13927 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13928 | { (case "(($ac_try" in |
| 13929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13930 | *) ac_try_echo=$ac_try;; |
| 13931 | esac |
| 13932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13933 | (eval "$ac_try") 2>&5 |
| 13934 | ac_status=$? |
| 13935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13936 | (exit $ac_status); }; } && |
| 13937 | { ac_try='test -s conftest$ac_exeext' |
| 13938 | { (case "(($ac_try" in |
| 13939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13940 | *) ac_try_echo=$ac_try;; |
| 13941 | esac |
| 13942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13943 | (eval "$ac_try") 2>&5 |
| 13944 | ac_status=$? |
| 13945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13946 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13947 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13948 | else |
| 13949 | echo "$as_me: failed program was:" >&5 |
| 13950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13951 | |
| 13952 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13953 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13954 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13955 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13956 | conftest$ac_exeext |
| 13957 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13958 | break |
| 13959 | fi |
| 13960 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13961 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13962 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13963 | else |
| 13964 | ac_cv_search_pthread_getspecific=no |
| 13965 | fi |
| 13966 | rm conftest.$ac_ext |
| 13967 | LIBS=$ac_func_search_save_LIBS |
| 13968 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13969 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 13970 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13971 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13972 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13973 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13974 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13975 | cat >>confdefs.h <<\_ACEOF |
| 13976 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 13977 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13978 | |
| 13979 | fi |
| 13980 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13981 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 13982 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13983 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13984 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13985 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13986 | withval=$with_udis86; |
| 13987 | USE_UDIS86=1 |
| 13988 | |
| 13989 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 13990 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13991 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 13992 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13993 | |
| 13994 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 13995 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 13996 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 13997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13998 | else |
| 13999 | ac_check_lib_save_LIBS=$LIBS |
| 14000 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14001 | cat >conftest.$ac_ext <<_ACEOF |
| 14002 | /* confdefs.h. */ |
| 14003 | _ACEOF |
| 14004 | cat confdefs.h >>conftest.$ac_ext |
| 14005 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14006 | /* end confdefs.h. */ |
| 14007 | |
| 14008 | /* Override any GCC internal prototype to avoid an error. |
| 14009 | Use char because int might match the return type of a GCC |
| 14010 | builtin and then its argument prototype would still apply. */ |
| 14011 | #ifdef __cplusplus |
| 14012 | extern "C" |
| 14013 | #endif |
| 14014 | char ud_init (); |
| 14015 | int |
| 14016 | main () |
| 14017 | { |
| 14018 | return ud_init (); |
| 14019 | ; |
| 14020 | return 0; |
| 14021 | } |
| 14022 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14023 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14024 | if { (ac_try="$ac_link" |
| 14025 | case "(($ac_try" in |
| 14026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14027 | *) ac_try_echo=$ac_try;; |
| 14028 | esac |
| 14029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14030 | (eval "$ac_link") 2>conftest.er1 |
| 14031 | ac_status=$? |
| 14032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14033 | rm -f conftest.er1 |
| 14034 | cat conftest.err >&5 |
| 14035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14036 | (exit $ac_status); } && |
| 14037 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14038 | { (case "(($ac_try" in |
| 14039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14040 | *) ac_try_echo=$ac_try;; |
| 14041 | esac |
| 14042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14043 | (eval "$ac_try") 2>&5 |
| 14044 | ac_status=$? |
| 14045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14046 | (exit $ac_status); }; } && |
| 14047 | { ac_try='test -s conftest$ac_exeext' |
| 14048 | { (case "(($ac_try" in |
| 14049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14050 | *) ac_try_echo=$ac_try;; |
| 14051 | esac |
| 14052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14053 | (eval "$ac_try") 2>&5 |
| 14054 | ac_status=$? |
| 14055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14056 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14057 | ac_cv_lib_udis86_ud_init=yes |
| 14058 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14059 | echo "$as_me: failed program was:" >&5 |
| 14060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14061 | |
| 14062 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14063 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14064 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14065 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14066 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14067 | LIBS=$ac_check_lib_save_LIBS |
| 14068 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14069 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 14070 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 14071 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14072 | cat >>confdefs.h <<_ACEOF |
| 14073 | #define HAVE_LIBUDIS86 1 |
| 14074 | _ACEOF |
| 14075 | |
| 14076 | LIBS="-ludis86 $LIBS" |
| 14077 | |
| 14078 | else |
| 14079 | |
| 14080 | echo "Error! You need to have libudis86 around." |
| 14081 | exit -1 |
| 14082 | |
| 14083 | fi |
| 14084 | |
| 14085 | |
| 14086 | else |
| 14087 | USE_UDIS86=0 |
| 14088 | |
| 14089 | fi |
| 14090 | |
| 14091 | |
| 14092 | cat >>confdefs.h <<_ACEOF |
| 14093 | #define USE_UDIS86 $USE_UDIS86 |
| 14094 | _ACEOF |
| 14095 | |
| 14096 | |
| 14097 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14098 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14099 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14100 | withval=$with_oprofile; |
| 14101 | USE_OPROFILE=1 |
| 14102 | |
| 14103 | case "$withval" in |
| 14104 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14105 | no) llvm_cv_oppath= |
| 14106 | USE_OPROFILE=0 |
| 14107 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14108 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 14109 | CPPFLAGS="-I${withval}/include";; |
| 14110 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14111 | if test -n "$llvm_cv_oppath" ; then |
| 14112 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14113 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 14114 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 14115 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14117 | else |
| 14118 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14119 | cat >conftest.$ac_ext <<_ACEOF |
| 14120 | /* confdefs.h. */ |
| 14121 | _ACEOF |
| 14122 | cat confdefs.h >>conftest.$ac_ext |
| 14123 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14124 | /* end confdefs.h. */ |
| 14125 | |
| 14126 | /* Override any GCC internal prototype to avoid an error. |
| 14127 | Use char because int might match the return type of a GCC |
| 14128 | builtin and then its argument prototype would still apply. */ |
| 14129 | #ifdef __cplusplus |
| 14130 | extern "C" |
| 14131 | #endif |
| 14132 | char bfd_init (); |
| 14133 | int |
| 14134 | main () |
| 14135 | { |
| 14136 | return bfd_init (); |
| 14137 | ; |
| 14138 | return 0; |
| 14139 | } |
| 14140 | _ACEOF |
| 14141 | for ac_lib in '' bfd; do |
| 14142 | if test -z "$ac_lib"; then |
| 14143 | ac_res="none required" |
| 14144 | else |
| 14145 | ac_res=-l$ac_lib |
| 14146 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14147 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14148 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14149 | if { (ac_try="$ac_link" |
| 14150 | case "(($ac_try" in |
| 14151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14152 | *) ac_try_echo=$ac_try;; |
| 14153 | esac |
| 14154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14155 | (eval "$ac_link") 2>conftest.er1 |
| 14156 | ac_status=$? |
| 14157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14158 | rm -f conftest.er1 |
| 14159 | cat conftest.err >&5 |
| 14160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14161 | (exit $ac_status); } && |
| 14162 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14163 | { (case "(($ac_try" in |
| 14164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14165 | *) ac_try_echo=$ac_try;; |
| 14166 | esac |
| 14167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14168 | (eval "$ac_try") 2>&5 |
| 14169 | ac_status=$? |
| 14170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14171 | (exit $ac_status); }; } && |
| 14172 | { ac_try='test -s conftest$ac_exeext' |
| 14173 | { (case "(($ac_try" in |
| 14174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14175 | *) ac_try_echo=$ac_try;; |
| 14176 | esac |
| 14177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14178 | (eval "$ac_try") 2>&5 |
| 14179 | ac_status=$? |
| 14180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14181 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14182 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14183 | else |
| 14184 | echo "$as_me: failed program was:" >&5 |
| 14185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14186 | |
| 14187 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14188 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14189 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14190 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14191 | conftest$ac_exeext |
| 14192 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14193 | break |
| 14194 | fi |
| 14195 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14196 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14197 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14198 | else |
| 14199 | ac_cv_search_bfd_init=no |
| 14200 | fi |
| 14201 | rm conftest.$ac_ext |
| 14202 | LIBS=$ac_func_search_save_LIBS |
| 14203 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14204 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 14205 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14206 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14207 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14208 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14209 | |
| 14210 | fi |
| 14211 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14212 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 14213 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 14214 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14216 | else |
| 14217 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14218 | cat >conftest.$ac_ext <<_ACEOF |
| 14219 | /* confdefs.h. */ |
| 14220 | _ACEOF |
| 14221 | cat confdefs.h >>conftest.$ac_ext |
| 14222 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14223 | /* end confdefs.h. */ |
| 14224 | |
| 14225 | /* Override any GCC internal prototype to avoid an error. |
| 14226 | Use char because int might match the return type of a GCC |
| 14227 | builtin and then its argument prototype would still apply. */ |
| 14228 | #ifdef __cplusplus |
| 14229 | extern "C" |
| 14230 | #endif |
| 14231 | char op_open_agent (); |
| 14232 | int |
| 14233 | main () |
| 14234 | { |
| 14235 | return op_open_agent (); |
| 14236 | ; |
| 14237 | return 0; |
| 14238 | } |
| 14239 | _ACEOF |
| 14240 | for ac_lib in '' opagent; do |
| 14241 | if test -z "$ac_lib"; then |
| 14242 | ac_res="none required" |
| 14243 | else |
| 14244 | ac_res=-l$ac_lib |
| 14245 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14246 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14247 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14248 | if { (ac_try="$ac_link" |
| 14249 | case "(($ac_try" in |
| 14250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14251 | *) ac_try_echo=$ac_try;; |
| 14252 | esac |
| 14253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14254 | (eval "$ac_link") 2>conftest.er1 |
| 14255 | ac_status=$? |
| 14256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14257 | rm -f conftest.er1 |
| 14258 | cat conftest.err >&5 |
| 14259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14260 | (exit $ac_status); } && |
| 14261 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14262 | { (case "(($ac_try" in |
| 14263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14264 | *) ac_try_echo=$ac_try;; |
| 14265 | esac |
| 14266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14267 | (eval "$ac_try") 2>&5 |
| 14268 | ac_status=$? |
| 14269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14270 | (exit $ac_status); }; } && |
| 14271 | { ac_try='test -s conftest$ac_exeext' |
| 14272 | { (case "(($ac_try" in |
| 14273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14274 | *) ac_try_echo=$ac_try;; |
| 14275 | esac |
| 14276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14277 | (eval "$ac_try") 2>&5 |
| 14278 | ac_status=$? |
| 14279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14280 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14281 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14282 | else |
| 14283 | echo "$as_me: failed program was:" >&5 |
| 14284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14285 | |
| 14286 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14287 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14288 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14289 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14290 | conftest$ac_exeext |
| 14291 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14292 | break |
| 14293 | fi |
| 14294 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14295 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14296 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14297 | else |
| 14298 | ac_cv_search_op_open_agent=no |
| 14299 | fi |
| 14300 | rm conftest.$ac_ext |
| 14301 | LIBS=$ac_func_search_save_LIBS |
| 14302 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14303 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 14304 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14305 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14306 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14307 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14308 | |
| 14309 | else |
| 14310 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14311 | echo "Error! You need to have libopagent around." |
| 14312 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14313 | |
| 14314 | fi |
| 14315 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14316 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14317 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14318 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14319 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14321 | fi |
| 14322 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14323 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14324 | else |
| 14325 | # Is the header compilable? |
| 14326 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 14327 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 14328 | cat >conftest.$ac_ext <<_ACEOF |
| 14329 | /* confdefs.h. */ |
| 14330 | _ACEOF |
| 14331 | cat confdefs.h >>conftest.$ac_ext |
| 14332 | cat >>conftest.$ac_ext <<_ACEOF |
| 14333 | /* end confdefs.h. */ |
| 14334 | $ac_includes_default |
| 14335 | #include <opagent.h> |
| 14336 | _ACEOF |
| 14337 | rm -f conftest.$ac_objext |
| 14338 | if { (ac_try="$ac_compile" |
| 14339 | case "(($ac_try" in |
| 14340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14341 | *) ac_try_echo=$ac_try;; |
| 14342 | esac |
| 14343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14344 | (eval "$ac_compile") 2>conftest.er1 |
| 14345 | ac_status=$? |
| 14346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14347 | rm -f conftest.er1 |
| 14348 | cat conftest.err >&5 |
| 14349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14350 | (exit $ac_status); } && |
| 14351 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14352 | { (case "(($ac_try" in |
| 14353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14354 | *) ac_try_echo=$ac_try;; |
| 14355 | esac |
| 14356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14357 | (eval "$ac_try") 2>&5 |
| 14358 | ac_status=$? |
| 14359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14360 | (exit $ac_status); }; } && |
| 14361 | { ac_try='test -s conftest.$ac_objext' |
| 14362 | { (case "(($ac_try" in |
| 14363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14364 | *) ac_try_echo=$ac_try;; |
| 14365 | esac |
| 14366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14367 | (eval "$ac_try") 2>&5 |
| 14368 | ac_status=$? |
| 14369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14370 | (exit $ac_status); }; }; then |
| 14371 | ac_header_compiler=yes |
| 14372 | else |
| 14373 | echo "$as_me: failed program was:" >&5 |
| 14374 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14375 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14376 | ac_header_compiler=no |
| 14377 | fi |
| 14378 | |
| 14379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14380 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14381 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14382 | |
| 14383 | # Is the header present? |
| 14384 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 14385 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 14386 | cat >conftest.$ac_ext <<_ACEOF |
| 14387 | /* confdefs.h. */ |
| 14388 | _ACEOF |
| 14389 | cat confdefs.h >>conftest.$ac_ext |
| 14390 | cat >>conftest.$ac_ext <<_ACEOF |
| 14391 | /* end confdefs.h. */ |
| 14392 | #include <opagent.h> |
| 14393 | _ACEOF |
| 14394 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14395 | case "(($ac_try" in |
| 14396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14397 | *) ac_try_echo=$ac_try;; |
| 14398 | esac |
| 14399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14400 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14401 | ac_status=$? |
| 14402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14403 | rm -f conftest.er1 |
| 14404 | cat conftest.err >&5 |
| 14405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14406 | (exit $ac_status); } >/dev/null; then |
| 14407 | if test -s conftest.err; then |
| 14408 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14409 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14410 | else |
| 14411 | ac_cpp_err= |
| 14412 | fi |
| 14413 | else |
| 14414 | ac_cpp_err=yes |
| 14415 | fi |
| 14416 | if test -z "$ac_cpp_err"; then |
| 14417 | ac_header_preproc=yes |
| 14418 | else |
| 14419 | echo "$as_me: failed program was:" >&5 |
| 14420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14421 | |
| 14422 | ac_header_preproc=no |
| 14423 | fi |
| 14424 | |
| 14425 | rm -f conftest.err conftest.$ac_ext |
| 14426 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14427 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14428 | |
| 14429 | # So? What about this header? |
| 14430 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14431 | yes:no: ) |
| 14432 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14433 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14434 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 14435 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 14436 | ac_header_preproc=yes |
| 14437 | ;; |
| 14438 | no:yes:* ) |
| 14439 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 14440 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 14441 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 14442 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 14443 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 14444 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 14445 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14446 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14447 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 14448 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 14449 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 14450 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 14451 | ( cat <<\_ASBOX |
| 14452 | ## ----------------------------------- ## |
| 14453 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 14454 | ## ----------------------------------- ## |
| 14455 | _ASBOX |
| 14456 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14457 | ;; |
| 14458 | esac |
| 14459 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14460 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14461 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14463 | else |
| 14464 | ac_cv_header_opagent_h=$ac_header_preproc |
| 14465 | fi |
| 14466 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14467 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14468 | |
| 14469 | fi |
| 14470 | if test $ac_cv_header_opagent_h = yes; then |
| 14471 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14472 | else |
| 14473 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14474 | echo "Error! You need to have opagent.h around." |
| 14475 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14476 | |
| 14477 | fi |
| 14478 | |
| 14479 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14480 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14481 | |
| 14482 | else |
| 14483 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14484 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14485 | |
| 14486 | |
| 14487 | fi |
| 14488 | |
| 14489 | |
| 14490 | cat >>confdefs.h <<_ACEOF |
| 14491 | #define USE_OPROFILE $USE_OPROFILE |
| 14492 | _ACEOF |
| 14493 | |
| 14494 | |
| 14495 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14496 | |
| 14497 | |
| 14498 | |
| 14499 | |
| 14500 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14501 | ac_header_dirent=no |
| 14502 | 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] | 14503 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 14504 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 14505 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 14506 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14508 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14509 | cat >conftest.$ac_ext <<_ACEOF |
| 14510 | /* confdefs.h. */ |
| 14511 | _ACEOF |
| 14512 | cat confdefs.h >>conftest.$ac_ext |
| 14513 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14514 | /* end confdefs.h. */ |
| 14515 | #include <sys/types.h> |
| 14516 | #include <$ac_hdr> |
| 14517 | |
| 14518 | int |
| 14519 | main () |
| 14520 | { |
| 14521 | if ((DIR *) 0) |
| 14522 | return 0; |
| 14523 | ; |
| 14524 | return 0; |
| 14525 | } |
| 14526 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14527 | rm -f conftest.$ac_objext |
| 14528 | if { (ac_try="$ac_compile" |
| 14529 | case "(($ac_try" in |
| 14530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14531 | *) ac_try_echo=$ac_try;; |
| 14532 | esac |
| 14533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14534 | (eval "$ac_compile") 2>conftest.er1 |
| 14535 | ac_status=$? |
| 14536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14537 | rm -f conftest.er1 |
| 14538 | cat conftest.err >&5 |
| 14539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14540 | (exit $ac_status); } && |
| 14541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14542 | { (case "(($ac_try" in |
| 14543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14544 | *) ac_try_echo=$ac_try;; |
| 14545 | esac |
| 14546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14547 | (eval "$ac_try") 2>&5 |
| 14548 | ac_status=$? |
| 14549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14550 | (exit $ac_status); }; } && |
| 14551 | { ac_try='test -s conftest.$ac_objext' |
| 14552 | { (case "(($ac_try" in |
| 14553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14554 | *) ac_try_echo=$ac_try;; |
| 14555 | esac |
| 14556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14557 | (eval "$ac_try") 2>&5 |
| 14558 | ac_status=$? |
| 14559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14560 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14561 | eval "$as_ac_Header=yes" |
| 14562 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14563 | echo "$as_me: failed program was:" >&5 |
| 14564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14565 | |
| 14566 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14567 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14568 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14570 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14571 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14572 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14573 | echo "${ECHO_T}$ac_res" >&6; } |
| 14574 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14575 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14576 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14577 | _ACEOF |
| 14578 | |
| 14579 | ac_header_dirent=$ac_hdr; break |
| 14580 | fi |
| 14581 | |
| 14582 | done |
| 14583 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 14584 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14585 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14586 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14587 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14589 | else |
| 14590 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14591 | cat >conftest.$ac_ext <<_ACEOF |
| 14592 | /* confdefs.h. */ |
| 14593 | _ACEOF |
| 14594 | cat confdefs.h >>conftest.$ac_ext |
| 14595 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14596 | /* end confdefs.h. */ |
| 14597 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14598 | /* Override any GCC internal prototype to avoid an error. |
| 14599 | Use char because int might match the return type of a GCC |
| 14600 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14601 | #ifdef __cplusplus |
| 14602 | extern "C" |
| 14603 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14604 | char opendir (); |
| 14605 | int |
| 14606 | main () |
| 14607 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14608 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14609 | ; |
| 14610 | return 0; |
| 14611 | } |
| 14612 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14613 | for ac_lib in '' dir; do |
| 14614 | if test -z "$ac_lib"; then |
| 14615 | ac_res="none required" |
| 14616 | else |
| 14617 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14618 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14619 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14620 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14621 | if { (ac_try="$ac_link" |
| 14622 | case "(($ac_try" in |
| 14623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14624 | *) ac_try_echo=$ac_try;; |
| 14625 | esac |
| 14626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14627 | (eval "$ac_link") 2>conftest.er1 |
| 14628 | ac_status=$? |
| 14629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14630 | rm -f conftest.er1 |
| 14631 | cat conftest.err >&5 |
| 14632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14633 | (exit $ac_status); } && |
| 14634 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14635 | { (case "(($ac_try" in |
| 14636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14637 | *) ac_try_echo=$ac_try;; |
| 14638 | esac |
| 14639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14640 | (eval "$ac_try") 2>&5 |
| 14641 | ac_status=$? |
| 14642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14643 | (exit $ac_status); }; } && |
| 14644 | { ac_try='test -s conftest$ac_exeext' |
| 14645 | { (case "(($ac_try" in |
| 14646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14647 | *) ac_try_echo=$ac_try;; |
| 14648 | esac |
| 14649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14650 | (eval "$ac_try") 2>&5 |
| 14651 | ac_status=$? |
| 14652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14653 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14654 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14655 | else |
| 14656 | echo "$as_me: failed program was:" >&5 |
| 14657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14658 | |
| 14659 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14660 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14661 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14662 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14663 | conftest$ac_exeext |
| 14664 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14665 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14666 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14667 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14668 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14669 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14670 | else |
| 14671 | ac_cv_search_opendir=no |
| 14672 | fi |
| 14673 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14674 | LIBS=$ac_func_search_save_LIBS |
| 14675 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14676 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14677 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14678 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14679 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14680 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14681 | |
| 14682 | fi |
| 14683 | |
| 14684 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14685 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14686 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14687 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14689 | else |
| 14690 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14691 | cat >conftest.$ac_ext <<_ACEOF |
| 14692 | /* confdefs.h. */ |
| 14693 | _ACEOF |
| 14694 | cat confdefs.h >>conftest.$ac_ext |
| 14695 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14696 | /* end confdefs.h. */ |
| 14697 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14698 | /* Override any GCC internal prototype to avoid an error. |
| 14699 | Use char because int might match the return type of a GCC |
| 14700 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14701 | #ifdef __cplusplus |
| 14702 | extern "C" |
| 14703 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14704 | char opendir (); |
| 14705 | int |
| 14706 | main () |
| 14707 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14708 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14709 | ; |
| 14710 | return 0; |
| 14711 | } |
| 14712 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14713 | for ac_lib in '' x; do |
| 14714 | if test -z "$ac_lib"; then |
| 14715 | ac_res="none required" |
| 14716 | else |
| 14717 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14718 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14719 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14720 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14721 | if { (ac_try="$ac_link" |
| 14722 | case "(($ac_try" in |
| 14723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14724 | *) ac_try_echo=$ac_try;; |
| 14725 | esac |
| 14726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14727 | (eval "$ac_link") 2>conftest.er1 |
| 14728 | ac_status=$? |
| 14729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14730 | rm -f conftest.er1 |
| 14731 | cat conftest.err >&5 |
| 14732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14733 | (exit $ac_status); } && |
| 14734 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14735 | { (case "(($ac_try" in |
| 14736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14737 | *) ac_try_echo=$ac_try;; |
| 14738 | esac |
| 14739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14740 | (eval "$ac_try") 2>&5 |
| 14741 | ac_status=$? |
| 14742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14743 | (exit $ac_status); }; } && |
| 14744 | { ac_try='test -s conftest$ac_exeext' |
| 14745 | { (case "(($ac_try" in |
| 14746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14747 | *) ac_try_echo=$ac_try;; |
| 14748 | esac |
| 14749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14750 | (eval "$ac_try") 2>&5 |
| 14751 | ac_status=$? |
| 14752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14753 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14754 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14755 | else |
| 14756 | echo "$as_me: failed program was:" >&5 |
| 14757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14758 | |
| 14759 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14760 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14761 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14762 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14763 | conftest$ac_exeext |
| 14764 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14765 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14766 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14767 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14768 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14769 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14770 | else |
| 14771 | ac_cv_search_opendir=no |
| 14772 | fi |
| 14773 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14774 | LIBS=$ac_func_search_save_LIBS |
| 14775 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14776 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14777 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14778 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14779 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14780 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14781 | |
| 14782 | fi |
| 14783 | |
| 14784 | fi |
| 14785 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14786 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 14787 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 14788 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 14789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14790 | else |
| 14791 | ac_ext=c |
| 14792 | ac_cpp='$CPP $CPPFLAGS' |
| 14793 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14794 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14795 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14796 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14797 | cat >conftest.$ac_ext <<_ACEOF |
| 14798 | /* confdefs.h. */ |
| 14799 | _ACEOF |
| 14800 | cat confdefs.h >>conftest.$ac_ext |
| 14801 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14802 | /* end confdefs.h. */ |
| 14803 | #include <sys/mman.h> |
| 14804 | #include <unistd.h> |
| 14805 | #include <fcntl.h> |
| 14806 | int |
| 14807 | main () |
| 14808 | { |
| 14809 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 14810 | ; |
| 14811 | return 0; |
| 14812 | } |
| 14813 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14814 | rm -f conftest.$ac_objext |
| 14815 | if { (ac_try="$ac_compile" |
| 14816 | case "(($ac_try" in |
| 14817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14818 | *) ac_try_echo=$ac_try;; |
| 14819 | esac |
| 14820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14821 | (eval "$ac_compile") 2>conftest.er1 |
| 14822 | ac_status=$? |
| 14823 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14824 | rm -f conftest.er1 |
| 14825 | cat conftest.err >&5 |
| 14826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14827 | (exit $ac_status); } && |
| 14828 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14829 | { (case "(($ac_try" in |
| 14830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14831 | *) ac_try_echo=$ac_try;; |
| 14832 | esac |
| 14833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14834 | (eval "$ac_try") 2>&5 |
| 14835 | ac_status=$? |
| 14836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14837 | (exit $ac_status); }; } && |
| 14838 | { ac_try='test -s conftest.$ac_objext' |
| 14839 | { (case "(($ac_try" in |
| 14840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14841 | *) ac_try_echo=$ac_try;; |
| 14842 | esac |
| 14843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14844 | (eval "$ac_try") 2>&5 |
| 14845 | ac_status=$? |
| 14846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14847 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14848 | ac_cv_header_mmap_anon=yes |
| 14849 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14850 | echo "$as_me: failed program was:" >&5 |
| 14851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14852 | |
| 14853 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14854 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14855 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14857 | ac_ext=c |
| 14858 | ac_cpp='$CPP $CPPFLAGS' |
| 14859 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14860 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14861 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14862 | |
| 14863 | |
| 14864 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14865 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 14866 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14867 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 14868 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14869 | cat >>confdefs.h <<\_ACEOF |
| 14870 | #define HAVE_MMAP_ANONYMOUS 1 |
| 14871 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14872 | |
| 14873 | fi |
| 14874 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14875 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 14876 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 14877 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 14878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14879 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14880 | cat >conftest.$ac_ext <<_ACEOF |
| 14881 | /* confdefs.h. */ |
| 14882 | _ACEOF |
| 14883 | cat confdefs.h >>conftest.$ac_ext |
| 14884 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14885 | /* end confdefs.h. */ |
| 14886 | #include <sys/types.h> |
| 14887 | #include <sys/stat.h> |
| 14888 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14889 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14890 | # if S_ISBLK (S_IFDIR) |
| 14891 | You lose. |
| 14892 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14893 | #endif |
| 14894 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14895 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14896 | # if S_ISBLK (S_IFCHR) |
| 14897 | You lose. |
| 14898 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14899 | #endif |
| 14900 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14901 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14902 | # if S_ISLNK (S_IFREG) |
| 14903 | You lose. |
| 14904 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14905 | #endif |
| 14906 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14907 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14908 | # if S_ISSOCK (S_IFREG) |
| 14909 | You lose. |
| 14910 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14911 | #endif |
| 14912 | |
| 14913 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14914 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14915 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 14916 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14917 | else |
| 14918 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 14919 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14920 | rm -f conftest* |
| 14921 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14922 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14923 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 14924 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14925 | if test $ac_cv_header_stat_broken = yes; then |
| 14926 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14927 | cat >>confdefs.h <<\_ACEOF |
| 14928 | #define STAT_MACROS_BROKEN 1 |
| 14929 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14930 | |
| 14931 | fi |
| 14932 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14933 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 14934 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 14935 | if test "${ac_cv_header_stdc+set}" = set; then |
| 14936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14937 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14938 | cat >conftest.$ac_ext <<_ACEOF |
| 14939 | /* confdefs.h. */ |
| 14940 | _ACEOF |
| 14941 | cat confdefs.h >>conftest.$ac_ext |
| 14942 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14943 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14944 | #include <stdlib.h> |
| 14945 | #include <stdarg.h> |
| 14946 | #include <string.h> |
| 14947 | #include <float.h> |
| 14948 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14949 | int |
| 14950 | main () |
| 14951 | { |
| 14952 | |
| 14953 | ; |
| 14954 | return 0; |
| 14955 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14956 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14957 | rm -f conftest.$ac_objext |
| 14958 | if { (ac_try="$ac_compile" |
| 14959 | case "(($ac_try" in |
| 14960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14961 | *) ac_try_echo=$ac_try;; |
| 14962 | esac |
| 14963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14964 | (eval "$ac_compile") 2>conftest.er1 |
| 14965 | ac_status=$? |
| 14966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14967 | rm -f conftest.er1 |
| 14968 | cat conftest.err >&5 |
| 14969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14970 | (exit $ac_status); } && |
| 14971 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14972 | { (case "(($ac_try" in |
| 14973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14974 | *) ac_try_echo=$ac_try;; |
| 14975 | esac |
| 14976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14977 | (eval "$ac_try") 2>&5 |
| 14978 | ac_status=$? |
| 14979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14980 | (exit $ac_status); }; } && |
| 14981 | { ac_try='test -s conftest.$ac_objext' |
| 14982 | { (case "(($ac_try" in |
| 14983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14984 | *) ac_try_echo=$ac_try;; |
| 14985 | esac |
| 14986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14987 | (eval "$ac_try") 2>&5 |
| 14988 | ac_status=$? |
| 14989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14990 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14991 | ac_cv_header_stdc=yes |
| 14992 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14993 | echo "$as_me: failed program was:" >&5 |
| 14994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14995 | |
| 14996 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14997 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14998 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15000 | |
| 15001 | if test $ac_cv_header_stdc = yes; then |
| 15002 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15003 | cat >conftest.$ac_ext <<_ACEOF |
| 15004 | /* confdefs.h. */ |
| 15005 | _ACEOF |
| 15006 | cat confdefs.h >>conftest.$ac_ext |
| 15007 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15008 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15009 | #include <string.h> |
| 15010 | |
| 15011 | _ACEOF |
| 15012 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15013 | $EGREP "memchr" >/dev/null 2>&1; then |
| 15014 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15015 | else |
| 15016 | ac_cv_header_stdc=no |
| 15017 | fi |
| 15018 | rm -f conftest* |
| 15019 | |
| 15020 | fi |
| 15021 | |
| 15022 | if test $ac_cv_header_stdc = yes; then |
| 15023 | # 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] | 15024 | cat >conftest.$ac_ext <<_ACEOF |
| 15025 | /* confdefs.h. */ |
| 15026 | _ACEOF |
| 15027 | cat confdefs.h >>conftest.$ac_ext |
| 15028 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15029 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15030 | #include <stdlib.h> |
| 15031 | |
| 15032 | _ACEOF |
| 15033 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15034 | $EGREP "free" >/dev/null 2>&1; then |
| 15035 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15036 | else |
| 15037 | ac_cv_header_stdc=no |
| 15038 | fi |
| 15039 | rm -f conftest* |
| 15040 | |
| 15041 | fi |
| 15042 | |
| 15043 | if test $ac_cv_header_stdc = yes; then |
| 15044 | # /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] | 15045 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15046 | : |
| 15047 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15048 | cat >conftest.$ac_ext <<_ACEOF |
| 15049 | /* confdefs.h. */ |
| 15050 | _ACEOF |
| 15051 | cat confdefs.h >>conftest.$ac_ext |
| 15052 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15053 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15054 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15055 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15056 | #if ((' ' & 0x0FF) == 0x020) |
| 15057 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 15058 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 15059 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15060 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15061 | (('a' <= (c) && (c) <= 'i') \ |
| 15062 | || ('j' <= (c) && (c) <= 'r') \ |
| 15063 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15064 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 15065 | #endif |
| 15066 | |
| 15067 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 15068 | int |
| 15069 | main () |
| 15070 | { |
| 15071 | int i; |
| 15072 | for (i = 0; i < 256; i++) |
| 15073 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15074 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15075 | return 2; |
| 15076 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15077 | } |
| 15078 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15079 | rm -f conftest$ac_exeext |
| 15080 | if { (ac_try="$ac_link" |
| 15081 | case "(($ac_try" in |
| 15082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15083 | *) ac_try_echo=$ac_try;; |
| 15084 | esac |
| 15085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15086 | (eval "$ac_link") 2>&5 |
| 15087 | ac_status=$? |
| 15088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15089 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15090 | { (case "(($ac_try" in |
| 15091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15092 | *) ac_try_echo=$ac_try;; |
| 15093 | esac |
| 15094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15095 | (eval "$ac_try") 2>&5 |
| 15096 | ac_status=$? |
| 15097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15098 | (exit $ac_status); }; }; then |
| 15099 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15100 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15101 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15102 | echo "$as_me: failed program was:" >&5 |
| 15103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15104 | |
| 15105 | ( exit $ac_status ) |
| 15106 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15107 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15108 | 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] | 15109 | fi |
| 15110 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15111 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15112 | fi |
| 15113 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15114 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 15115 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15116 | if test $ac_cv_header_stdc = yes; then |
| 15117 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15118 | cat >>confdefs.h <<\_ACEOF |
| 15119 | #define STDC_HEADERS 1 |
| 15120 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15121 | |
| 15122 | fi |
| 15123 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15124 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 15125 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 15126 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 15127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15128 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15129 | cat >conftest.$ac_ext <<_ACEOF |
| 15130 | /* confdefs.h. */ |
| 15131 | _ACEOF |
| 15132 | cat confdefs.h >>conftest.$ac_ext |
| 15133 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15134 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15135 | #include <sys/types.h> |
| 15136 | #include <sys/wait.h> |
| 15137 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15138 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15139 | #endif |
| 15140 | #ifndef WIFEXITED |
| 15141 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 15142 | #endif |
| 15143 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15144 | int |
| 15145 | main () |
| 15146 | { |
| 15147 | int s; |
| 15148 | wait (&s); |
| 15149 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 15150 | ; |
| 15151 | return 0; |
| 15152 | } |
| 15153 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15154 | rm -f conftest.$ac_objext |
| 15155 | if { (ac_try="$ac_compile" |
| 15156 | case "(($ac_try" in |
| 15157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15158 | *) ac_try_echo=$ac_try;; |
| 15159 | esac |
| 15160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15161 | (eval "$ac_compile") 2>conftest.er1 |
| 15162 | ac_status=$? |
| 15163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15164 | rm -f conftest.er1 |
| 15165 | cat conftest.err >&5 |
| 15166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15167 | (exit $ac_status); } && |
| 15168 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15169 | { (case "(($ac_try" in |
| 15170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15171 | *) ac_try_echo=$ac_try;; |
| 15172 | esac |
| 15173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15174 | (eval "$ac_try") 2>&5 |
| 15175 | ac_status=$? |
| 15176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15177 | (exit $ac_status); }; } && |
| 15178 | { ac_try='test -s conftest.$ac_objext' |
| 15179 | { (case "(($ac_try" in |
| 15180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15181 | *) ac_try_echo=$ac_try;; |
| 15182 | esac |
| 15183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15184 | (eval "$ac_try") 2>&5 |
| 15185 | ac_status=$? |
| 15186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15187 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15188 | ac_cv_header_sys_wait_h=yes |
| 15189 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15190 | echo "$as_me: failed program was:" >&5 |
| 15191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15192 | |
| 15193 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15194 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15195 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15197 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15198 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 15199 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15200 | if test $ac_cv_header_sys_wait_h = yes; then |
| 15201 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15202 | cat >>confdefs.h <<\_ACEOF |
| 15203 | #define HAVE_SYS_WAIT_H 1 |
| 15204 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15205 | |
| 15206 | fi |
| 15207 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15208 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15209 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 15210 | if test "${ac_cv_header_time+set}" = set; then |
| 15211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15212 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15213 | cat >conftest.$ac_ext <<_ACEOF |
| 15214 | /* confdefs.h. */ |
| 15215 | _ACEOF |
| 15216 | cat confdefs.h >>conftest.$ac_ext |
| 15217 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15218 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15219 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15220 | #include <sys/time.h> |
| 15221 | #include <time.h> |
| 15222 | |
| 15223 | int |
| 15224 | main () |
| 15225 | { |
| 15226 | if ((struct tm *) 0) |
| 15227 | return 0; |
| 15228 | ; |
| 15229 | return 0; |
| 15230 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15231 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15232 | rm -f conftest.$ac_objext |
| 15233 | if { (ac_try="$ac_compile" |
| 15234 | case "(($ac_try" in |
| 15235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15236 | *) ac_try_echo=$ac_try;; |
| 15237 | esac |
| 15238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15239 | (eval "$ac_compile") 2>conftest.er1 |
| 15240 | ac_status=$? |
| 15241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15242 | rm -f conftest.er1 |
| 15243 | cat conftest.err >&5 |
| 15244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15245 | (exit $ac_status); } && |
| 15246 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15247 | { (case "(($ac_try" in |
| 15248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15249 | *) ac_try_echo=$ac_try;; |
| 15250 | esac |
| 15251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15252 | (eval "$ac_try") 2>&5 |
| 15253 | ac_status=$? |
| 15254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15255 | (exit $ac_status); }; } && |
| 15256 | { ac_try='test -s conftest.$ac_objext' |
| 15257 | { (case "(($ac_try" in |
| 15258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15259 | *) ac_try_echo=$ac_try;; |
| 15260 | esac |
| 15261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15262 | (eval "$ac_try") 2>&5 |
| 15263 | ac_status=$? |
| 15264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15265 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15266 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15267 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15268 | echo "$as_me: failed program was:" >&5 |
| 15269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15270 | |
| 15271 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15272 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15273 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15275 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15276 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15277 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15278 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15279 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15280 | cat >>confdefs.h <<\_ACEOF |
| 15281 | #define TIME_WITH_SYS_TIME 1 |
| 15282 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15283 | |
| 15284 | fi |
| 15285 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15286 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15287 | |
| 15288 | |
| 15289 | |
| 15290 | |
| 15291 | |
| 15292 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15293 | 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] | 15294 | do |
| 15295 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15296 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15297 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15298 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15299 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15301 | fi |
| 15302 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15303 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15304 | echo "${ECHO_T}$ac_res" >&6; } |
| 15305 | else |
| 15306 | # Is the header compilable? |
| 15307 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15308 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15309 | cat >conftest.$ac_ext <<_ACEOF |
| 15310 | /* confdefs.h. */ |
| 15311 | _ACEOF |
| 15312 | cat confdefs.h >>conftest.$ac_ext |
| 15313 | cat >>conftest.$ac_ext <<_ACEOF |
| 15314 | /* end confdefs.h. */ |
| 15315 | $ac_includes_default |
| 15316 | #include <$ac_header> |
| 15317 | _ACEOF |
| 15318 | rm -f conftest.$ac_objext |
| 15319 | if { (ac_try="$ac_compile" |
| 15320 | case "(($ac_try" in |
| 15321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15322 | *) ac_try_echo=$ac_try;; |
| 15323 | esac |
| 15324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15325 | (eval "$ac_compile") 2>conftest.er1 |
| 15326 | ac_status=$? |
| 15327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15328 | rm -f conftest.er1 |
| 15329 | cat conftest.err >&5 |
| 15330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15331 | (exit $ac_status); } && |
| 15332 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15333 | { (case "(($ac_try" in |
| 15334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15335 | *) ac_try_echo=$ac_try;; |
| 15336 | esac |
| 15337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15338 | (eval "$ac_try") 2>&5 |
| 15339 | ac_status=$? |
| 15340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15341 | (exit $ac_status); }; } && |
| 15342 | { ac_try='test -s conftest.$ac_objext' |
| 15343 | { (case "(($ac_try" in |
| 15344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15345 | *) ac_try_echo=$ac_try;; |
| 15346 | esac |
| 15347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15348 | (eval "$ac_try") 2>&5 |
| 15349 | ac_status=$? |
| 15350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15351 | (exit $ac_status); }; }; then |
| 15352 | ac_header_compiler=yes |
| 15353 | else |
| 15354 | echo "$as_me: failed program was:" >&5 |
| 15355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15356 | |
| 15357 | ac_header_compiler=no |
| 15358 | fi |
| 15359 | |
| 15360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15361 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15362 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15363 | |
| 15364 | # Is the header present? |
| 15365 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15366 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15367 | cat >conftest.$ac_ext <<_ACEOF |
| 15368 | /* confdefs.h. */ |
| 15369 | _ACEOF |
| 15370 | cat confdefs.h >>conftest.$ac_ext |
| 15371 | cat >>conftest.$ac_ext <<_ACEOF |
| 15372 | /* end confdefs.h. */ |
| 15373 | #include <$ac_header> |
| 15374 | _ACEOF |
| 15375 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15376 | case "(($ac_try" in |
| 15377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15378 | *) ac_try_echo=$ac_try;; |
| 15379 | esac |
| 15380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15381 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15382 | ac_status=$? |
| 15383 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15384 | rm -f conftest.er1 |
| 15385 | cat conftest.err >&5 |
| 15386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15387 | (exit $ac_status); } >/dev/null; then |
| 15388 | if test -s conftest.err; then |
| 15389 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15390 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15391 | else |
| 15392 | ac_cpp_err= |
| 15393 | fi |
| 15394 | else |
| 15395 | ac_cpp_err=yes |
| 15396 | fi |
| 15397 | if test -z "$ac_cpp_err"; then |
| 15398 | ac_header_preproc=yes |
| 15399 | else |
| 15400 | echo "$as_me: failed program was:" >&5 |
| 15401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15402 | |
| 15403 | ac_header_preproc=no |
| 15404 | fi |
| 15405 | |
| 15406 | rm -f conftest.err conftest.$ac_ext |
| 15407 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15408 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15409 | |
| 15410 | # So? What about this header? |
| 15411 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15412 | yes:no: ) |
| 15413 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15414 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15415 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15416 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15417 | ac_header_preproc=yes |
| 15418 | ;; |
| 15419 | no:yes:* ) |
| 15420 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15421 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15422 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15423 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15424 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15425 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15426 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15427 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15428 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15429 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15430 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15431 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15432 | ( cat <<\_ASBOX |
| 15433 | ## ----------------------------------- ## |
| 15434 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15435 | ## ----------------------------------- ## |
| 15436 | _ASBOX |
| 15437 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15438 | ;; |
| 15439 | esac |
| 15440 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15441 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15442 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15444 | else |
| 15445 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15446 | fi |
| 15447 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15448 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15449 | echo "${ECHO_T}$ac_res" >&6; } |
| 15450 | |
| 15451 | fi |
| 15452 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15453 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15454 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15455 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15456 | |
| 15457 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15458 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15459 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15460 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15461 | |
| 15462 | |
| 15463 | |
| 15464 | |
| 15465 | |
| 15466 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15467 | 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] | 15468 | do |
| 15469 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15470 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15471 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15472 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15473 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15475 | fi |
| 15476 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15477 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15478 | echo "${ECHO_T}$ac_res" >&6; } |
| 15479 | else |
| 15480 | # Is the header compilable? |
| 15481 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15482 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15483 | cat >conftest.$ac_ext <<_ACEOF |
| 15484 | /* confdefs.h. */ |
| 15485 | _ACEOF |
| 15486 | cat confdefs.h >>conftest.$ac_ext |
| 15487 | cat >>conftest.$ac_ext <<_ACEOF |
| 15488 | /* end confdefs.h. */ |
| 15489 | $ac_includes_default |
| 15490 | #include <$ac_header> |
| 15491 | _ACEOF |
| 15492 | rm -f conftest.$ac_objext |
| 15493 | if { (ac_try="$ac_compile" |
| 15494 | case "(($ac_try" in |
| 15495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15496 | *) ac_try_echo=$ac_try;; |
| 15497 | esac |
| 15498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15499 | (eval "$ac_compile") 2>conftest.er1 |
| 15500 | ac_status=$? |
| 15501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15502 | rm -f conftest.er1 |
| 15503 | cat conftest.err >&5 |
| 15504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15505 | (exit $ac_status); } && |
| 15506 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15507 | { (case "(($ac_try" in |
| 15508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15509 | *) ac_try_echo=$ac_try;; |
| 15510 | esac |
| 15511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15512 | (eval "$ac_try") 2>&5 |
| 15513 | ac_status=$? |
| 15514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15515 | (exit $ac_status); }; } && |
| 15516 | { ac_try='test -s conftest.$ac_objext' |
| 15517 | { (case "(($ac_try" in |
| 15518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15519 | *) ac_try_echo=$ac_try;; |
| 15520 | esac |
| 15521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15522 | (eval "$ac_try") 2>&5 |
| 15523 | ac_status=$? |
| 15524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15525 | (exit $ac_status); }; }; then |
| 15526 | ac_header_compiler=yes |
| 15527 | else |
| 15528 | echo "$as_me: failed program was:" >&5 |
| 15529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15530 | |
| 15531 | ac_header_compiler=no |
| 15532 | fi |
| 15533 | |
| 15534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15535 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15536 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15537 | |
| 15538 | # Is the header present? |
| 15539 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15540 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15541 | cat >conftest.$ac_ext <<_ACEOF |
| 15542 | /* confdefs.h. */ |
| 15543 | _ACEOF |
| 15544 | cat confdefs.h >>conftest.$ac_ext |
| 15545 | cat >>conftest.$ac_ext <<_ACEOF |
| 15546 | /* end confdefs.h. */ |
| 15547 | #include <$ac_header> |
| 15548 | _ACEOF |
| 15549 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15550 | case "(($ac_try" in |
| 15551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15552 | *) ac_try_echo=$ac_try;; |
| 15553 | esac |
| 15554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15555 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15556 | ac_status=$? |
| 15557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15558 | rm -f conftest.er1 |
| 15559 | cat conftest.err >&5 |
| 15560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15561 | (exit $ac_status); } >/dev/null; then |
| 15562 | if test -s conftest.err; then |
| 15563 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15564 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15565 | else |
| 15566 | ac_cpp_err= |
| 15567 | fi |
| 15568 | else |
| 15569 | ac_cpp_err=yes |
| 15570 | fi |
| 15571 | if test -z "$ac_cpp_err"; then |
| 15572 | ac_header_preproc=yes |
| 15573 | else |
| 15574 | echo "$as_me: failed program was:" >&5 |
| 15575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15576 | |
| 15577 | ac_header_preproc=no |
| 15578 | fi |
| 15579 | |
| 15580 | rm -f conftest.err conftest.$ac_ext |
| 15581 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15582 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15583 | |
| 15584 | # So? What about this header? |
| 15585 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15586 | yes:no: ) |
| 15587 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15588 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15589 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15590 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15591 | ac_header_preproc=yes |
| 15592 | ;; |
| 15593 | no:yes:* ) |
| 15594 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15595 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15596 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15597 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15598 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15599 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15600 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15601 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15602 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15603 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15604 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15605 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15606 | ( cat <<\_ASBOX |
| 15607 | ## ----------------------------------- ## |
| 15608 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15609 | ## ----------------------------------- ## |
| 15610 | _ASBOX |
| 15611 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15612 | ;; |
| 15613 | esac |
| 15614 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15615 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15616 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15618 | else |
| 15619 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15620 | fi |
| 15621 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15622 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15623 | echo "${ECHO_T}$ac_res" >&6; } |
| 15624 | |
| 15625 | fi |
| 15626 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15627 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15628 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15629 | _ACEOF |
| 15630 | |
| 15631 | fi |
| 15632 | |
| 15633 | done |
| 15634 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15635 | |
| 15636 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15637 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15638 | do |
| 15639 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15640 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15641 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15642 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15643 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15645 | fi |
| 15646 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15647 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15648 | echo "${ECHO_T}$ac_res" >&6; } |
| 15649 | else |
| 15650 | # Is the header compilable? |
| 15651 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15652 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15653 | cat >conftest.$ac_ext <<_ACEOF |
| 15654 | /* confdefs.h. */ |
| 15655 | _ACEOF |
| 15656 | cat confdefs.h >>conftest.$ac_ext |
| 15657 | cat >>conftest.$ac_ext <<_ACEOF |
| 15658 | /* end confdefs.h. */ |
| 15659 | $ac_includes_default |
| 15660 | #include <$ac_header> |
| 15661 | _ACEOF |
| 15662 | rm -f conftest.$ac_objext |
| 15663 | if { (ac_try="$ac_compile" |
| 15664 | case "(($ac_try" in |
| 15665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15666 | *) ac_try_echo=$ac_try;; |
| 15667 | esac |
| 15668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15669 | (eval "$ac_compile") 2>conftest.er1 |
| 15670 | ac_status=$? |
| 15671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15672 | rm -f conftest.er1 |
| 15673 | cat conftest.err >&5 |
| 15674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15675 | (exit $ac_status); } && |
| 15676 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15677 | { (case "(($ac_try" in |
| 15678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15679 | *) ac_try_echo=$ac_try;; |
| 15680 | esac |
| 15681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15682 | (eval "$ac_try") 2>&5 |
| 15683 | ac_status=$? |
| 15684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15685 | (exit $ac_status); }; } && |
| 15686 | { ac_try='test -s conftest.$ac_objext' |
| 15687 | { (case "(($ac_try" in |
| 15688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15689 | *) ac_try_echo=$ac_try;; |
| 15690 | esac |
| 15691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15692 | (eval "$ac_try") 2>&5 |
| 15693 | ac_status=$? |
| 15694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15695 | (exit $ac_status); }; }; then |
| 15696 | ac_header_compiler=yes |
| 15697 | else |
| 15698 | echo "$as_me: failed program was:" >&5 |
| 15699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15700 | |
| 15701 | ac_header_compiler=no |
| 15702 | fi |
| 15703 | |
| 15704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15705 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15706 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15707 | |
| 15708 | # Is the header present? |
| 15709 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15710 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15711 | cat >conftest.$ac_ext <<_ACEOF |
| 15712 | /* confdefs.h. */ |
| 15713 | _ACEOF |
| 15714 | cat confdefs.h >>conftest.$ac_ext |
| 15715 | cat >>conftest.$ac_ext <<_ACEOF |
| 15716 | /* end confdefs.h. */ |
| 15717 | #include <$ac_header> |
| 15718 | _ACEOF |
| 15719 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15720 | case "(($ac_try" in |
| 15721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15722 | *) ac_try_echo=$ac_try;; |
| 15723 | esac |
| 15724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15725 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15726 | ac_status=$? |
| 15727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15728 | rm -f conftest.er1 |
| 15729 | cat conftest.err >&5 |
| 15730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15731 | (exit $ac_status); } >/dev/null; then |
| 15732 | if test -s conftest.err; then |
| 15733 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15734 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15735 | else |
| 15736 | ac_cpp_err= |
| 15737 | fi |
| 15738 | else |
| 15739 | ac_cpp_err=yes |
| 15740 | fi |
| 15741 | if test -z "$ac_cpp_err"; then |
| 15742 | ac_header_preproc=yes |
| 15743 | else |
| 15744 | echo "$as_me: failed program was:" >&5 |
| 15745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15746 | |
| 15747 | ac_header_preproc=no |
| 15748 | fi |
| 15749 | |
| 15750 | rm -f conftest.err conftest.$ac_ext |
| 15751 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15752 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15753 | |
| 15754 | # So? What about this header? |
| 15755 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15756 | yes:no: ) |
| 15757 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15758 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15759 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15760 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15761 | ac_header_preproc=yes |
| 15762 | ;; |
| 15763 | no:yes:* ) |
| 15764 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15765 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15766 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15767 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15768 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15769 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15770 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15771 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15772 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15773 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15774 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15775 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15776 | ( cat <<\_ASBOX |
| 15777 | ## ----------------------------------- ## |
| 15778 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15779 | ## ----------------------------------- ## |
| 15780 | _ASBOX |
| 15781 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15782 | ;; |
| 15783 | esac |
| 15784 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15785 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15786 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15788 | else |
| 15789 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15790 | fi |
| 15791 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15792 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15793 | echo "${ECHO_T}$ac_res" >&6; } |
| 15794 | |
| 15795 | fi |
| 15796 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15797 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15798 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15799 | _ACEOF |
| 15800 | |
| 15801 | fi |
| 15802 | |
| 15803 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15804 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15805 | |
| 15806 | |
| 15807 | |
| 15808 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15809 | 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] | 15810 | do |
| 15811 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15812 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15813 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15814 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15815 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15817 | fi |
| 15818 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15819 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15820 | echo "${ECHO_T}$ac_res" >&6; } |
| 15821 | else |
| 15822 | # Is the header compilable? |
| 15823 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15824 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15825 | cat >conftest.$ac_ext <<_ACEOF |
| 15826 | /* confdefs.h. */ |
| 15827 | _ACEOF |
| 15828 | cat confdefs.h >>conftest.$ac_ext |
| 15829 | cat >>conftest.$ac_ext <<_ACEOF |
| 15830 | /* end confdefs.h. */ |
| 15831 | $ac_includes_default |
| 15832 | #include <$ac_header> |
| 15833 | _ACEOF |
| 15834 | rm -f conftest.$ac_objext |
| 15835 | if { (ac_try="$ac_compile" |
| 15836 | case "(($ac_try" in |
| 15837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15838 | *) ac_try_echo=$ac_try;; |
| 15839 | esac |
| 15840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15841 | (eval "$ac_compile") 2>conftest.er1 |
| 15842 | ac_status=$? |
| 15843 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15844 | rm -f conftest.er1 |
| 15845 | cat conftest.err >&5 |
| 15846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15847 | (exit $ac_status); } && |
| 15848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15849 | { (case "(($ac_try" in |
| 15850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15851 | *) ac_try_echo=$ac_try;; |
| 15852 | esac |
| 15853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15854 | (eval "$ac_try") 2>&5 |
| 15855 | ac_status=$? |
| 15856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15857 | (exit $ac_status); }; } && |
| 15858 | { ac_try='test -s conftest.$ac_objext' |
| 15859 | { (case "(($ac_try" in |
| 15860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15861 | *) ac_try_echo=$ac_try;; |
| 15862 | esac |
| 15863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15864 | (eval "$ac_try") 2>&5 |
| 15865 | ac_status=$? |
| 15866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15867 | (exit $ac_status); }; }; then |
| 15868 | ac_header_compiler=yes |
| 15869 | else |
| 15870 | echo "$as_me: failed program was:" >&5 |
| 15871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15872 | |
| 15873 | ac_header_compiler=no |
| 15874 | fi |
| 15875 | |
| 15876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15877 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15878 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15879 | |
| 15880 | # Is the header present? |
| 15881 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15882 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15883 | cat >conftest.$ac_ext <<_ACEOF |
| 15884 | /* confdefs.h. */ |
| 15885 | _ACEOF |
| 15886 | cat confdefs.h >>conftest.$ac_ext |
| 15887 | cat >>conftest.$ac_ext <<_ACEOF |
| 15888 | /* end confdefs.h. */ |
| 15889 | #include <$ac_header> |
| 15890 | _ACEOF |
| 15891 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15892 | case "(($ac_try" in |
| 15893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15894 | *) ac_try_echo=$ac_try;; |
| 15895 | esac |
| 15896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15897 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15898 | ac_status=$? |
| 15899 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15900 | rm -f conftest.er1 |
| 15901 | cat conftest.err >&5 |
| 15902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15903 | (exit $ac_status); } >/dev/null; then |
| 15904 | if test -s conftest.err; then |
| 15905 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15906 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15907 | else |
| 15908 | ac_cpp_err= |
| 15909 | fi |
| 15910 | else |
| 15911 | ac_cpp_err=yes |
| 15912 | fi |
| 15913 | if test -z "$ac_cpp_err"; then |
| 15914 | ac_header_preproc=yes |
| 15915 | else |
| 15916 | echo "$as_me: failed program was:" >&5 |
| 15917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15918 | |
| 15919 | ac_header_preproc=no |
| 15920 | fi |
| 15921 | |
| 15922 | rm -f conftest.err conftest.$ac_ext |
| 15923 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15924 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15925 | |
| 15926 | # So? What about this header? |
| 15927 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15928 | yes:no: ) |
| 15929 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15930 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15931 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15932 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15933 | ac_header_preproc=yes |
| 15934 | ;; |
| 15935 | no:yes:* ) |
| 15936 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15937 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15938 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15939 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15940 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15941 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15942 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15943 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15944 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15945 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15946 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15947 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15948 | ( cat <<\_ASBOX |
| 15949 | ## ----------------------------------- ## |
| 15950 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15951 | ## ----------------------------------- ## |
| 15952 | _ASBOX |
| 15953 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15954 | ;; |
| 15955 | esac |
| 15956 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15957 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15958 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15960 | else |
| 15961 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15962 | fi |
| 15963 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15964 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15965 | echo "${ECHO_T}$ac_res" >&6; } |
| 15966 | |
| 15967 | fi |
| 15968 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15969 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15970 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15971 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15972 | |
| 15973 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15974 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15975 | done |
| 15976 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15977 | |
| 15978 | |
| 15979 | |
| 15980 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 15981 | 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] | 15982 | do |
| 15983 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15984 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15985 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15986 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15987 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15989 | fi |
| 15990 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15991 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15992 | echo "${ECHO_T}$ac_res" >&6; } |
| 15993 | else |
| 15994 | # Is the header compilable? |
| 15995 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15996 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15997 | cat >conftest.$ac_ext <<_ACEOF |
| 15998 | /* confdefs.h. */ |
| 15999 | _ACEOF |
| 16000 | cat confdefs.h >>conftest.$ac_ext |
| 16001 | cat >>conftest.$ac_ext <<_ACEOF |
| 16002 | /* end confdefs.h. */ |
| 16003 | $ac_includes_default |
| 16004 | #include <$ac_header> |
| 16005 | _ACEOF |
| 16006 | rm -f conftest.$ac_objext |
| 16007 | if { (ac_try="$ac_compile" |
| 16008 | case "(($ac_try" in |
| 16009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16010 | *) ac_try_echo=$ac_try;; |
| 16011 | esac |
| 16012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16013 | (eval "$ac_compile") 2>conftest.er1 |
| 16014 | ac_status=$? |
| 16015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16016 | rm -f conftest.er1 |
| 16017 | cat conftest.err >&5 |
| 16018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16019 | (exit $ac_status); } && |
| 16020 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16021 | { (case "(($ac_try" in |
| 16022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16023 | *) ac_try_echo=$ac_try;; |
| 16024 | esac |
| 16025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16026 | (eval "$ac_try") 2>&5 |
| 16027 | ac_status=$? |
| 16028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16029 | (exit $ac_status); }; } && |
| 16030 | { ac_try='test -s conftest.$ac_objext' |
| 16031 | { (case "(($ac_try" in |
| 16032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16033 | *) ac_try_echo=$ac_try;; |
| 16034 | esac |
| 16035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16036 | (eval "$ac_try") 2>&5 |
| 16037 | ac_status=$? |
| 16038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16039 | (exit $ac_status); }; }; then |
| 16040 | ac_header_compiler=yes |
| 16041 | else |
| 16042 | echo "$as_me: failed program was:" >&5 |
| 16043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16044 | |
| 16045 | ac_header_compiler=no |
| 16046 | fi |
| 16047 | |
| 16048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16049 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16050 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16051 | |
| 16052 | # Is the header present? |
| 16053 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16054 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16055 | cat >conftest.$ac_ext <<_ACEOF |
| 16056 | /* confdefs.h. */ |
| 16057 | _ACEOF |
| 16058 | cat confdefs.h >>conftest.$ac_ext |
| 16059 | cat >>conftest.$ac_ext <<_ACEOF |
| 16060 | /* end confdefs.h. */ |
| 16061 | #include <$ac_header> |
| 16062 | _ACEOF |
| 16063 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16064 | case "(($ac_try" in |
| 16065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16066 | *) ac_try_echo=$ac_try;; |
| 16067 | esac |
| 16068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16069 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16070 | ac_status=$? |
| 16071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16072 | rm -f conftest.er1 |
| 16073 | cat conftest.err >&5 |
| 16074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16075 | (exit $ac_status); } >/dev/null; then |
| 16076 | if test -s conftest.err; then |
| 16077 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16078 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16079 | else |
| 16080 | ac_cpp_err= |
| 16081 | fi |
| 16082 | else |
| 16083 | ac_cpp_err=yes |
| 16084 | fi |
| 16085 | if test -z "$ac_cpp_err"; then |
| 16086 | ac_header_preproc=yes |
| 16087 | else |
| 16088 | echo "$as_me: failed program was:" >&5 |
| 16089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16090 | |
| 16091 | ac_header_preproc=no |
| 16092 | fi |
| 16093 | |
| 16094 | rm -f conftest.err conftest.$ac_ext |
| 16095 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16096 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16097 | |
| 16098 | # So? What about this header? |
| 16099 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16100 | yes:no: ) |
| 16101 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16102 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16103 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16104 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16105 | ac_header_preproc=yes |
| 16106 | ;; |
| 16107 | no:yes:* ) |
| 16108 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16109 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16110 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16111 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16112 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16113 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16114 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16115 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16116 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16117 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16118 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16119 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16120 | ( cat <<\_ASBOX |
| 16121 | ## ----------------------------------- ## |
| 16122 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16123 | ## ----------------------------------- ## |
| 16124 | _ASBOX |
| 16125 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16126 | ;; |
| 16127 | esac |
| 16128 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16129 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16130 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16132 | else |
| 16133 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16134 | fi |
| 16135 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16136 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16137 | echo "${ECHO_T}$ac_res" >&6; } |
| 16138 | |
| 16139 | fi |
| 16140 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16141 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16142 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16143 | _ACEOF |
| 16144 | |
| 16145 | fi |
| 16146 | |
| 16147 | done |
| 16148 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16149 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16150 | |
| 16151 | for ac_header in pthread.h |
| 16152 | do |
| 16153 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16154 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16155 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16156 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16157 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16159 | fi |
| 16160 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16161 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16162 | echo "${ECHO_T}$ac_res" >&6; } |
| 16163 | else |
| 16164 | # Is the header compilable? |
| 16165 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16166 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16167 | cat >conftest.$ac_ext <<_ACEOF |
| 16168 | /* confdefs.h. */ |
| 16169 | _ACEOF |
| 16170 | cat confdefs.h >>conftest.$ac_ext |
| 16171 | cat >>conftest.$ac_ext <<_ACEOF |
| 16172 | /* end confdefs.h. */ |
| 16173 | $ac_includes_default |
| 16174 | #include <$ac_header> |
| 16175 | _ACEOF |
| 16176 | rm -f conftest.$ac_objext |
| 16177 | if { (ac_try="$ac_compile" |
| 16178 | case "(($ac_try" in |
| 16179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16180 | *) ac_try_echo=$ac_try;; |
| 16181 | esac |
| 16182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16183 | (eval "$ac_compile") 2>conftest.er1 |
| 16184 | ac_status=$? |
| 16185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16186 | rm -f conftest.er1 |
| 16187 | cat conftest.err >&5 |
| 16188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16189 | (exit $ac_status); } && |
| 16190 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16191 | { (case "(($ac_try" in |
| 16192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16193 | *) ac_try_echo=$ac_try;; |
| 16194 | esac |
| 16195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16196 | (eval "$ac_try") 2>&5 |
| 16197 | ac_status=$? |
| 16198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16199 | (exit $ac_status); }; } && |
| 16200 | { ac_try='test -s conftest.$ac_objext' |
| 16201 | { (case "(($ac_try" in |
| 16202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16203 | *) ac_try_echo=$ac_try;; |
| 16204 | esac |
| 16205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16206 | (eval "$ac_try") 2>&5 |
| 16207 | ac_status=$? |
| 16208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16209 | (exit $ac_status); }; }; then |
| 16210 | ac_header_compiler=yes |
| 16211 | else |
| 16212 | echo "$as_me: failed program was:" >&5 |
| 16213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16214 | |
| 16215 | ac_header_compiler=no |
| 16216 | fi |
| 16217 | |
| 16218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16219 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16220 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16221 | |
| 16222 | # Is the header present? |
| 16223 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16224 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16225 | cat >conftest.$ac_ext <<_ACEOF |
| 16226 | /* confdefs.h. */ |
| 16227 | _ACEOF |
| 16228 | cat confdefs.h >>conftest.$ac_ext |
| 16229 | cat >>conftest.$ac_ext <<_ACEOF |
| 16230 | /* end confdefs.h. */ |
| 16231 | #include <$ac_header> |
| 16232 | _ACEOF |
| 16233 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16234 | case "(($ac_try" in |
| 16235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16236 | *) ac_try_echo=$ac_try;; |
| 16237 | esac |
| 16238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16239 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16240 | ac_status=$? |
| 16241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16242 | rm -f conftest.er1 |
| 16243 | cat conftest.err >&5 |
| 16244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16245 | (exit $ac_status); } >/dev/null; then |
| 16246 | if test -s conftest.err; then |
| 16247 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16248 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16249 | else |
| 16250 | ac_cpp_err= |
| 16251 | fi |
| 16252 | else |
| 16253 | ac_cpp_err=yes |
| 16254 | fi |
| 16255 | if test -z "$ac_cpp_err"; then |
| 16256 | ac_header_preproc=yes |
| 16257 | else |
| 16258 | echo "$as_me: failed program was:" >&5 |
| 16259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16260 | |
| 16261 | ac_header_preproc=no |
| 16262 | fi |
| 16263 | |
| 16264 | rm -f conftest.err conftest.$ac_ext |
| 16265 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16266 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16267 | |
| 16268 | # So? What about this header? |
| 16269 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16270 | yes:no: ) |
| 16271 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16272 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16273 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16274 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16275 | ac_header_preproc=yes |
| 16276 | ;; |
| 16277 | no:yes:* ) |
| 16278 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16279 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16280 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16281 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16282 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16283 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16284 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16285 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16286 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16287 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16288 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16289 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16290 | ( cat <<\_ASBOX |
| 16291 | ## ----------------------------------- ## |
| 16292 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16293 | ## ----------------------------------- ## |
| 16294 | _ASBOX |
| 16295 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16296 | ;; |
| 16297 | esac |
| 16298 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16299 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16300 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16302 | else |
| 16303 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16304 | fi |
| 16305 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16306 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16307 | echo "${ECHO_T}$ac_res" >&6; } |
| 16308 | |
| 16309 | fi |
| 16310 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16311 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16312 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16313 | _ACEOF |
| 16314 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16315 | |
| 16316 | else |
| 16317 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16318 | |
| 16319 | fi |
| 16320 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16321 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16322 | |
| 16323 | else |
| 16324 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16325 | |
| 16326 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16327 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16328 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16329 | |
| 16330 | |
| 16331 | for ac_header in ffi.h ffi/ffi.h |
| 16332 | do |
| 16333 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16334 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16335 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16336 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16337 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16339 | fi |
| 16340 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16341 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16342 | echo "${ECHO_T}$ac_res" >&6; } |
| 16343 | else |
| 16344 | # Is the header compilable? |
| 16345 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16346 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16347 | cat >conftest.$ac_ext <<_ACEOF |
| 16348 | /* confdefs.h. */ |
| 16349 | _ACEOF |
| 16350 | cat confdefs.h >>conftest.$ac_ext |
| 16351 | cat >>conftest.$ac_ext <<_ACEOF |
| 16352 | /* end confdefs.h. */ |
| 16353 | $ac_includes_default |
| 16354 | #include <$ac_header> |
| 16355 | _ACEOF |
| 16356 | rm -f conftest.$ac_objext |
| 16357 | if { (ac_try="$ac_compile" |
| 16358 | case "(($ac_try" in |
| 16359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16360 | *) ac_try_echo=$ac_try;; |
| 16361 | esac |
| 16362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16363 | (eval "$ac_compile") 2>conftest.er1 |
| 16364 | ac_status=$? |
| 16365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16366 | rm -f conftest.er1 |
| 16367 | cat conftest.err >&5 |
| 16368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16369 | (exit $ac_status); } && |
| 16370 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16371 | { (case "(($ac_try" in |
| 16372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16373 | *) ac_try_echo=$ac_try;; |
| 16374 | esac |
| 16375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16376 | (eval "$ac_try") 2>&5 |
| 16377 | ac_status=$? |
| 16378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16379 | (exit $ac_status); }; } && |
| 16380 | { ac_try='test -s conftest.$ac_objext' |
| 16381 | { (case "(($ac_try" in |
| 16382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16383 | *) ac_try_echo=$ac_try;; |
| 16384 | esac |
| 16385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16386 | (eval "$ac_try") 2>&5 |
| 16387 | ac_status=$? |
| 16388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16389 | (exit $ac_status); }; }; then |
| 16390 | ac_header_compiler=yes |
| 16391 | else |
| 16392 | echo "$as_me: failed program was:" >&5 |
| 16393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16394 | |
| 16395 | ac_header_compiler=no |
| 16396 | fi |
| 16397 | |
| 16398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16399 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16400 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16401 | |
| 16402 | # Is the header present? |
| 16403 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16404 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16405 | cat >conftest.$ac_ext <<_ACEOF |
| 16406 | /* confdefs.h. */ |
| 16407 | _ACEOF |
| 16408 | cat confdefs.h >>conftest.$ac_ext |
| 16409 | cat >>conftest.$ac_ext <<_ACEOF |
| 16410 | /* end confdefs.h. */ |
| 16411 | #include <$ac_header> |
| 16412 | _ACEOF |
| 16413 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16414 | case "(($ac_try" in |
| 16415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16416 | *) ac_try_echo=$ac_try;; |
| 16417 | esac |
| 16418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16419 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16420 | ac_status=$? |
| 16421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16422 | rm -f conftest.er1 |
| 16423 | cat conftest.err >&5 |
| 16424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16425 | (exit $ac_status); } >/dev/null; then |
| 16426 | if test -s conftest.err; then |
| 16427 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16428 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16429 | else |
| 16430 | ac_cpp_err= |
| 16431 | fi |
| 16432 | else |
| 16433 | ac_cpp_err=yes |
| 16434 | fi |
| 16435 | if test -z "$ac_cpp_err"; then |
| 16436 | ac_header_preproc=yes |
| 16437 | else |
| 16438 | echo "$as_me: failed program was:" >&5 |
| 16439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16440 | |
| 16441 | ac_header_preproc=no |
| 16442 | fi |
| 16443 | |
| 16444 | rm -f conftest.err conftest.$ac_ext |
| 16445 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16446 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16447 | |
| 16448 | # So? What about this header? |
| 16449 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16450 | yes:no: ) |
| 16451 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16452 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16453 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16454 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16455 | ac_header_preproc=yes |
| 16456 | ;; |
| 16457 | no:yes:* ) |
| 16458 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16459 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16460 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16461 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16462 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16463 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16464 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16465 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16466 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16467 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16468 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16469 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16470 | ( cat <<\_ASBOX |
| 16471 | ## ----------------------------------- ## |
| 16472 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16473 | ## ----------------------------------- ## |
| 16474 | _ASBOX |
| 16475 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16476 | ;; |
| 16477 | esac |
| 16478 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16479 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16480 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16482 | else |
| 16483 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16484 | fi |
| 16485 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16486 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16487 | echo "${ECHO_T}$ac_res" >&6; } |
| 16488 | |
| 16489 | fi |
| 16490 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16491 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16492 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16493 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16494 | |
| 16495 | fi |
| 16496 | |
| 16497 | done |
| 16498 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16499 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16500 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 16501 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16502 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16503 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16504 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 16505 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 16506 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 16507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16508 | else |
| 16509 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16510 | ac_ext=cpp |
| 16511 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16512 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16513 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16514 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16515 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16516 | CXXFLAGS=-pedantic |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16517 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16518 | ac_cv_huge_val_sanity=yes |
| 16519 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16520 | cat >conftest.$ac_ext <<_ACEOF |
| 16521 | /* confdefs.h. */ |
| 16522 | _ACEOF |
| 16523 | cat confdefs.h >>conftest.$ac_ext |
| 16524 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16525 | /* end confdefs.h. */ |
| 16526 | #include <math.h> |
| 16527 | int |
| 16528 | main () |
| 16529 | { |
| 16530 | double x = HUGE_VAL; return x != x; |
| 16531 | ; |
| 16532 | return 0; |
| 16533 | } |
| 16534 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16535 | rm -f conftest$ac_exeext |
| 16536 | if { (ac_try="$ac_link" |
| 16537 | case "(($ac_try" in |
| 16538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16539 | *) ac_try_echo=$ac_try;; |
| 16540 | esac |
| 16541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16542 | (eval "$ac_link") 2>&5 |
| 16543 | ac_status=$? |
| 16544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16545 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16546 | { (case "(($ac_try" in |
| 16547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16548 | *) ac_try_echo=$ac_try;; |
| 16549 | esac |
| 16550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16551 | (eval "$ac_try") 2>&5 |
| 16552 | ac_status=$? |
| 16553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16554 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16555 | ac_cv_huge_val_sanity=yes |
| 16556 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16557 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16558 | echo "$as_me: failed program was:" >&5 |
| 16559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16560 | |
| 16561 | ( exit $ac_status ) |
| 16562 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16563 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16564 | 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] | 16565 | fi |
| 16566 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16567 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16568 | ac_ext=c |
| 16569 | ac_cpp='$CPP $CPPFLAGS' |
| 16570 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16571 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16572 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16573 | |
| 16574 | |
| 16575 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16576 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 16577 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16578 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 16579 | |
| 16580 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16581 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 16582 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 16583 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 16584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16585 | else |
| 16586 | cat >conftest.$ac_ext <<_ACEOF |
| 16587 | /* confdefs.h. */ |
| 16588 | _ACEOF |
| 16589 | cat confdefs.h >>conftest.$ac_ext |
| 16590 | cat >>conftest.$ac_ext <<_ACEOF |
| 16591 | /* end confdefs.h. */ |
| 16592 | $ac_includes_default |
| 16593 | typedef pid_t ac__type_new_; |
| 16594 | int |
| 16595 | main () |
| 16596 | { |
| 16597 | if ((ac__type_new_ *) 0) |
| 16598 | return 0; |
| 16599 | if (sizeof (ac__type_new_)) |
| 16600 | return 0; |
| 16601 | ; |
| 16602 | return 0; |
| 16603 | } |
| 16604 | _ACEOF |
| 16605 | rm -f conftest.$ac_objext |
| 16606 | if { (ac_try="$ac_compile" |
| 16607 | case "(($ac_try" in |
| 16608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16609 | *) ac_try_echo=$ac_try;; |
| 16610 | esac |
| 16611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16612 | (eval "$ac_compile") 2>conftest.er1 |
| 16613 | ac_status=$? |
| 16614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16615 | rm -f conftest.er1 |
| 16616 | cat conftest.err >&5 |
| 16617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16618 | (exit $ac_status); } && |
| 16619 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16620 | { (case "(($ac_try" in |
| 16621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16622 | *) ac_try_echo=$ac_try;; |
| 16623 | esac |
| 16624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16625 | (eval "$ac_try") 2>&5 |
| 16626 | ac_status=$? |
| 16627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16628 | (exit $ac_status); }; } && |
| 16629 | { ac_try='test -s conftest.$ac_objext' |
| 16630 | { (case "(($ac_try" in |
| 16631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16632 | *) ac_try_echo=$ac_try;; |
| 16633 | esac |
| 16634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16635 | (eval "$ac_try") 2>&5 |
| 16636 | ac_status=$? |
| 16637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16638 | (exit $ac_status); }; }; then |
| 16639 | ac_cv_type_pid_t=yes |
| 16640 | else |
| 16641 | echo "$as_me: failed program was:" >&5 |
| 16642 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16643 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16644 | ac_cv_type_pid_t=no |
| 16645 | fi |
| 16646 | |
| 16647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16648 | fi |
| 16649 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 16650 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 16651 | if test $ac_cv_type_pid_t = yes; then |
| 16652 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16653 | else |
| 16654 | |
| 16655 | cat >>confdefs.h <<_ACEOF |
| 16656 | #define pid_t int |
| 16657 | _ACEOF |
| 16658 | |
| 16659 | fi |
| 16660 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16661 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 16662 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 16663 | if test "${ac_cv_type_size_t+set}" = set; then |
| 16664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16665 | else |
| 16666 | cat >conftest.$ac_ext <<_ACEOF |
| 16667 | /* confdefs.h. */ |
| 16668 | _ACEOF |
| 16669 | cat confdefs.h >>conftest.$ac_ext |
| 16670 | cat >>conftest.$ac_ext <<_ACEOF |
| 16671 | /* end confdefs.h. */ |
| 16672 | $ac_includes_default |
| 16673 | typedef size_t ac__type_new_; |
| 16674 | int |
| 16675 | main () |
| 16676 | { |
| 16677 | if ((ac__type_new_ *) 0) |
| 16678 | return 0; |
| 16679 | if (sizeof (ac__type_new_)) |
| 16680 | return 0; |
| 16681 | ; |
| 16682 | return 0; |
| 16683 | } |
| 16684 | _ACEOF |
| 16685 | rm -f conftest.$ac_objext |
| 16686 | if { (ac_try="$ac_compile" |
| 16687 | case "(($ac_try" in |
| 16688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16689 | *) ac_try_echo=$ac_try;; |
| 16690 | esac |
| 16691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16692 | (eval "$ac_compile") 2>conftest.er1 |
| 16693 | ac_status=$? |
| 16694 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16695 | rm -f conftest.er1 |
| 16696 | cat conftest.err >&5 |
| 16697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16698 | (exit $ac_status); } && |
| 16699 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16700 | { (case "(($ac_try" in |
| 16701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16702 | *) ac_try_echo=$ac_try;; |
| 16703 | esac |
| 16704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16705 | (eval "$ac_try") 2>&5 |
| 16706 | ac_status=$? |
| 16707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16708 | (exit $ac_status); }; } && |
| 16709 | { ac_try='test -s conftest.$ac_objext' |
| 16710 | { (case "(($ac_try" in |
| 16711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16712 | *) ac_try_echo=$ac_try;; |
| 16713 | esac |
| 16714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16715 | (eval "$ac_try") 2>&5 |
| 16716 | ac_status=$? |
| 16717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16718 | (exit $ac_status); }; }; then |
| 16719 | ac_cv_type_size_t=yes |
| 16720 | else |
| 16721 | echo "$as_me: failed program was:" >&5 |
| 16722 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16723 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16724 | ac_cv_type_size_t=no |
| 16725 | fi |
| 16726 | |
| 16727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16728 | fi |
| 16729 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 16730 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 16731 | if test $ac_cv_type_size_t = yes; then |
| 16732 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16733 | else |
| 16734 | |
| 16735 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16736 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16737 | _ACEOF |
| 16738 | |
| 16739 | fi |
| 16740 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16741 | |
| 16742 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16743 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16744 | _ACEOF |
| 16745 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16746 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 16747 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 16748 | if test "${ac_cv_struct_tm+set}" = set; then |
| 16749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16750 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16751 | cat >conftest.$ac_ext <<_ACEOF |
| 16752 | /* confdefs.h. */ |
| 16753 | _ACEOF |
| 16754 | cat confdefs.h >>conftest.$ac_ext |
| 16755 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16756 | /* end confdefs.h. */ |
| 16757 | #include <sys/types.h> |
| 16758 | #include <time.h> |
| 16759 | |
| 16760 | int |
| 16761 | main () |
| 16762 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16763 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16764 | ; |
| 16765 | return 0; |
| 16766 | } |
| 16767 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16768 | rm -f conftest.$ac_objext |
| 16769 | if { (ac_try="$ac_compile" |
| 16770 | case "(($ac_try" in |
| 16771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16772 | *) ac_try_echo=$ac_try;; |
| 16773 | esac |
| 16774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16775 | (eval "$ac_compile") 2>conftest.er1 |
| 16776 | ac_status=$? |
| 16777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16778 | rm -f conftest.er1 |
| 16779 | cat conftest.err >&5 |
| 16780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16781 | (exit $ac_status); } && |
| 16782 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16783 | { (case "(($ac_try" in |
| 16784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16785 | *) ac_try_echo=$ac_try;; |
| 16786 | esac |
| 16787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16788 | (eval "$ac_try") 2>&5 |
| 16789 | ac_status=$? |
| 16790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16791 | (exit $ac_status); }; } && |
| 16792 | { ac_try='test -s conftest.$ac_objext' |
| 16793 | { (case "(($ac_try" in |
| 16794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16795 | *) ac_try_echo=$ac_try;; |
| 16796 | esac |
| 16797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16798 | (eval "$ac_try") 2>&5 |
| 16799 | ac_status=$? |
| 16800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16801 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16802 | ac_cv_struct_tm=time.h |
| 16803 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16804 | echo "$as_me: failed program was:" >&5 |
| 16805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16806 | |
| 16807 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16808 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16809 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16811 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16812 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 16813 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16814 | if test $ac_cv_struct_tm = sys/time.h; then |
| 16815 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16816 | cat >>confdefs.h <<\_ACEOF |
| 16817 | #define TM_IN_SYS_TIME 1 |
| 16818 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16819 | |
| 16820 | fi |
| 16821 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16822 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 16823 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 16824 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 16825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16826 | else |
| 16827 | cat >conftest.$ac_ext <<_ACEOF |
| 16828 | /* confdefs.h. */ |
| 16829 | _ACEOF |
| 16830 | cat confdefs.h >>conftest.$ac_ext |
| 16831 | cat >>conftest.$ac_ext <<_ACEOF |
| 16832 | /* end confdefs.h. */ |
| 16833 | $ac_includes_default |
| 16834 | typedef int64_t ac__type_new_; |
| 16835 | int |
| 16836 | main () |
| 16837 | { |
| 16838 | if ((ac__type_new_ *) 0) |
| 16839 | return 0; |
| 16840 | if (sizeof (ac__type_new_)) |
| 16841 | return 0; |
| 16842 | ; |
| 16843 | return 0; |
| 16844 | } |
| 16845 | _ACEOF |
| 16846 | rm -f conftest.$ac_objext |
| 16847 | if { (ac_try="$ac_compile" |
| 16848 | case "(($ac_try" in |
| 16849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16850 | *) ac_try_echo=$ac_try;; |
| 16851 | esac |
| 16852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16853 | (eval "$ac_compile") 2>conftest.er1 |
| 16854 | ac_status=$? |
| 16855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16856 | rm -f conftest.er1 |
| 16857 | cat conftest.err >&5 |
| 16858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16859 | (exit $ac_status); } && |
| 16860 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16861 | { (case "(($ac_try" in |
| 16862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16863 | *) ac_try_echo=$ac_try;; |
| 16864 | esac |
| 16865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16866 | (eval "$ac_try") 2>&5 |
| 16867 | ac_status=$? |
| 16868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16869 | (exit $ac_status); }; } && |
| 16870 | { ac_try='test -s conftest.$ac_objext' |
| 16871 | { (case "(($ac_try" in |
| 16872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16873 | *) ac_try_echo=$ac_try;; |
| 16874 | esac |
| 16875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16876 | (eval "$ac_try") 2>&5 |
| 16877 | ac_status=$? |
| 16878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16879 | (exit $ac_status); }; }; then |
| 16880 | ac_cv_type_int64_t=yes |
| 16881 | else |
| 16882 | echo "$as_me: failed program was:" >&5 |
| 16883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16884 | |
| 16885 | ac_cv_type_int64_t=no |
| 16886 | fi |
| 16887 | |
| 16888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16889 | fi |
| 16890 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 16891 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 16892 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16893 | |
| 16894 | cat >>confdefs.h <<_ACEOF |
| 16895 | #define HAVE_INT64_T 1 |
| 16896 | _ACEOF |
| 16897 | |
| 16898 | |
| 16899 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16900 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 16901 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 16902 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16903 | fi |
| 16904 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16905 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 16906 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 16907 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 16908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16909 | else |
| 16910 | cat >conftest.$ac_ext <<_ACEOF |
| 16911 | /* confdefs.h. */ |
| 16912 | _ACEOF |
| 16913 | cat confdefs.h >>conftest.$ac_ext |
| 16914 | cat >>conftest.$ac_ext <<_ACEOF |
| 16915 | /* end confdefs.h. */ |
| 16916 | $ac_includes_default |
| 16917 | typedef uint64_t ac__type_new_; |
| 16918 | int |
| 16919 | main () |
| 16920 | { |
| 16921 | if ((ac__type_new_ *) 0) |
| 16922 | return 0; |
| 16923 | if (sizeof (ac__type_new_)) |
| 16924 | return 0; |
| 16925 | ; |
| 16926 | return 0; |
| 16927 | } |
| 16928 | _ACEOF |
| 16929 | rm -f conftest.$ac_objext |
| 16930 | if { (ac_try="$ac_compile" |
| 16931 | case "(($ac_try" in |
| 16932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16933 | *) ac_try_echo=$ac_try;; |
| 16934 | esac |
| 16935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16936 | (eval "$ac_compile") 2>conftest.er1 |
| 16937 | ac_status=$? |
| 16938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16939 | rm -f conftest.er1 |
| 16940 | cat conftest.err >&5 |
| 16941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16942 | (exit $ac_status); } && |
| 16943 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16944 | { (case "(($ac_try" in |
| 16945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16946 | *) ac_try_echo=$ac_try;; |
| 16947 | esac |
| 16948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16949 | (eval "$ac_try") 2>&5 |
| 16950 | ac_status=$? |
| 16951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16952 | (exit $ac_status); }; } && |
| 16953 | { ac_try='test -s conftest.$ac_objext' |
| 16954 | { (case "(($ac_try" in |
| 16955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16956 | *) ac_try_echo=$ac_try;; |
| 16957 | esac |
| 16958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16959 | (eval "$ac_try") 2>&5 |
| 16960 | ac_status=$? |
| 16961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16962 | (exit $ac_status); }; }; then |
| 16963 | ac_cv_type_uint64_t=yes |
| 16964 | else |
| 16965 | echo "$as_me: failed program was:" >&5 |
| 16966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16967 | |
| 16968 | ac_cv_type_uint64_t=no |
| 16969 | fi |
| 16970 | |
| 16971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16972 | fi |
| 16973 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 16974 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 16975 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16976 | |
| 16977 | cat >>confdefs.h <<_ACEOF |
| 16978 | #define HAVE_UINT64_T 1 |
| 16979 | _ACEOF |
| 16980 | |
| 16981 | |
| 16982 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16983 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 16984 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 16985 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 16986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16987 | else |
| 16988 | cat >conftest.$ac_ext <<_ACEOF |
| 16989 | /* confdefs.h. */ |
| 16990 | _ACEOF |
| 16991 | cat confdefs.h >>conftest.$ac_ext |
| 16992 | cat >>conftest.$ac_ext <<_ACEOF |
| 16993 | /* end confdefs.h. */ |
| 16994 | $ac_includes_default |
| 16995 | typedef u_int64_t ac__type_new_; |
| 16996 | int |
| 16997 | main () |
| 16998 | { |
| 16999 | if ((ac__type_new_ *) 0) |
| 17000 | return 0; |
| 17001 | if (sizeof (ac__type_new_)) |
| 17002 | return 0; |
| 17003 | ; |
| 17004 | return 0; |
| 17005 | } |
| 17006 | _ACEOF |
| 17007 | rm -f conftest.$ac_objext |
| 17008 | if { (ac_try="$ac_compile" |
| 17009 | case "(($ac_try" in |
| 17010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17011 | *) ac_try_echo=$ac_try;; |
| 17012 | esac |
| 17013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17014 | (eval "$ac_compile") 2>conftest.er1 |
| 17015 | ac_status=$? |
| 17016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17017 | rm -f conftest.er1 |
| 17018 | cat conftest.err >&5 |
| 17019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17020 | (exit $ac_status); } && |
| 17021 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17022 | { (case "(($ac_try" in |
| 17023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17024 | *) ac_try_echo=$ac_try;; |
| 17025 | esac |
| 17026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17027 | (eval "$ac_try") 2>&5 |
| 17028 | ac_status=$? |
| 17029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17030 | (exit $ac_status); }; } && |
| 17031 | { ac_try='test -s conftest.$ac_objext' |
| 17032 | { (case "(($ac_try" in |
| 17033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17034 | *) ac_try_echo=$ac_try;; |
| 17035 | esac |
| 17036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17037 | (eval "$ac_try") 2>&5 |
| 17038 | ac_status=$? |
| 17039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17040 | (exit $ac_status); }; }; then |
| 17041 | ac_cv_type_u_int64_t=yes |
| 17042 | else |
| 17043 | echo "$as_me: failed program was:" >&5 |
| 17044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17045 | |
| 17046 | ac_cv_type_u_int64_t=no |
| 17047 | fi |
| 17048 | |
| 17049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17050 | fi |
| 17051 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 17052 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 17053 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17054 | |
| 17055 | cat >>confdefs.h <<_ACEOF |
| 17056 | #define HAVE_U_INT64_T 1 |
| 17057 | _ACEOF |
| 17058 | |
| 17059 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17060 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17061 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 17062 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 17063 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17064 | fi |
| 17065 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17066 | fi |
| 17067 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17068 | |
| 17069 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17070 | |
| 17071 | |
| 17072 | |
| 17073 | |
| 17074 | |
| 17075 | |
| 17076 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17077 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17078 | do |
| 17079 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17080 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17081 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17082 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17084 | else |
| 17085 | cat >conftest.$ac_ext <<_ACEOF |
| 17086 | /* confdefs.h. */ |
| 17087 | _ACEOF |
| 17088 | cat confdefs.h >>conftest.$ac_ext |
| 17089 | cat >>conftest.$ac_ext <<_ACEOF |
| 17090 | /* end confdefs.h. */ |
| 17091 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17092 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17093 | #define $ac_func innocuous_$ac_func |
| 17094 | |
| 17095 | /* System header to define __stub macros and hopefully few prototypes, |
| 17096 | which can conflict with char $ac_func (); below. |
| 17097 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17098 | <limits.h> exists even on freestanding compilers. */ |
| 17099 | |
| 17100 | #ifdef __STDC__ |
| 17101 | # include <limits.h> |
| 17102 | #else |
| 17103 | # include <assert.h> |
| 17104 | #endif |
| 17105 | |
| 17106 | #undef $ac_func |
| 17107 | |
| 17108 | /* Override any GCC internal prototype to avoid an error. |
| 17109 | Use char because int might match the return type of a GCC |
| 17110 | builtin and then its argument prototype would still apply. */ |
| 17111 | #ifdef __cplusplus |
| 17112 | extern "C" |
| 17113 | #endif |
| 17114 | char $ac_func (); |
| 17115 | /* The GNU C library defines this for functions which it implements |
| 17116 | to always fail with ENOSYS. Some functions are actually named |
| 17117 | something starting with __ and the normal name is an alias. */ |
| 17118 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17119 | choke me |
| 17120 | #endif |
| 17121 | |
| 17122 | int |
| 17123 | main () |
| 17124 | { |
| 17125 | return $ac_func (); |
| 17126 | ; |
| 17127 | return 0; |
| 17128 | } |
| 17129 | _ACEOF |
| 17130 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17131 | if { (ac_try="$ac_link" |
| 17132 | case "(($ac_try" in |
| 17133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17134 | *) ac_try_echo=$ac_try;; |
| 17135 | esac |
| 17136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17137 | (eval "$ac_link") 2>conftest.er1 |
| 17138 | ac_status=$? |
| 17139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17140 | rm -f conftest.er1 |
| 17141 | cat conftest.err >&5 |
| 17142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17143 | (exit $ac_status); } && |
| 17144 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17145 | { (case "(($ac_try" in |
| 17146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17147 | *) ac_try_echo=$ac_try;; |
| 17148 | esac |
| 17149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17150 | (eval "$ac_try") 2>&5 |
| 17151 | ac_status=$? |
| 17152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17153 | (exit $ac_status); }; } && |
| 17154 | { ac_try='test -s conftest$ac_exeext' |
| 17155 | { (case "(($ac_try" in |
| 17156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17157 | *) ac_try_echo=$ac_try;; |
| 17158 | esac |
| 17159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17160 | (eval "$ac_try") 2>&5 |
| 17161 | ac_status=$? |
| 17162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17163 | (exit $ac_status); }; }; then |
| 17164 | eval "$as_ac_var=yes" |
| 17165 | else |
| 17166 | echo "$as_me: failed program was:" >&5 |
| 17167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17168 | |
| 17169 | eval "$as_ac_var=no" |
| 17170 | fi |
| 17171 | |
| 17172 | rm -f core conftest.err conftest.$ac_objext \ |
| 17173 | conftest$ac_exeext conftest.$ac_ext |
| 17174 | fi |
| 17175 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17176 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17177 | echo "${ECHO_T}$ac_res" >&6; } |
| 17178 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17179 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17180 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17181 | _ACEOF |
| 17182 | |
| 17183 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17184 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17185 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17186 | |
| 17187 | |
| 17188 | |
| 17189 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17190 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17191 | do |
| 17192 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17193 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17194 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17195 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17197 | else |
| 17198 | cat >conftest.$ac_ext <<_ACEOF |
| 17199 | /* confdefs.h. */ |
| 17200 | _ACEOF |
| 17201 | cat confdefs.h >>conftest.$ac_ext |
| 17202 | cat >>conftest.$ac_ext <<_ACEOF |
| 17203 | /* end confdefs.h. */ |
| 17204 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17205 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17206 | #define $ac_func innocuous_$ac_func |
| 17207 | |
| 17208 | /* System header to define __stub macros and hopefully few prototypes, |
| 17209 | which can conflict with char $ac_func (); below. |
| 17210 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17211 | <limits.h> exists even on freestanding compilers. */ |
| 17212 | |
| 17213 | #ifdef __STDC__ |
| 17214 | # include <limits.h> |
| 17215 | #else |
| 17216 | # include <assert.h> |
| 17217 | #endif |
| 17218 | |
| 17219 | #undef $ac_func |
| 17220 | |
| 17221 | /* Override any GCC internal prototype to avoid an error. |
| 17222 | Use char because int might match the return type of a GCC |
| 17223 | builtin and then its argument prototype would still apply. */ |
| 17224 | #ifdef __cplusplus |
| 17225 | extern "C" |
| 17226 | #endif |
| 17227 | char $ac_func (); |
| 17228 | /* The GNU C library defines this for functions which it implements |
| 17229 | to always fail with ENOSYS. Some functions are actually named |
| 17230 | something starting with __ and the normal name is an alias. */ |
| 17231 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17232 | choke me |
| 17233 | #endif |
| 17234 | |
| 17235 | int |
| 17236 | main () |
| 17237 | { |
| 17238 | return $ac_func (); |
| 17239 | ; |
| 17240 | return 0; |
| 17241 | } |
| 17242 | _ACEOF |
| 17243 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17244 | if { (ac_try="$ac_link" |
| 17245 | case "(($ac_try" in |
| 17246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17247 | *) ac_try_echo=$ac_try;; |
| 17248 | esac |
| 17249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17250 | (eval "$ac_link") 2>conftest.er1 |
| 17251 | ac_status=$? |
| 17252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17253 | rm -f conftest.er1 |
| 17254 | cat conftest.err >&5 |
| 17255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17256 | (exit $ac_status); } && |
| 17257 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17258 | { (case "(($ac_try" in |
| 17259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17260 | *) ac_try_echo=$ac_try;; |
| 17261 | esac |
| 17262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17263 | (eval "$ac_try") 2>&5 |
| 17264 | ac_status=$? |
| 17265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17266 | (exit $ac_status); }; } && |
| 17267 | { ac_try='test -s conftest$ac_exeext' |
| 17268 | { (case "(($ac_try" in |
| 17269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17270 | *) ac_try_echo=$ac_try;; |
| 17271 | esac |
| 17272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17273 | (eval "$ac_try") 2>&5 |
| 17274 | ac_status=$? |
| 17275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17276 | (exit $ac_status); }; }; then |
| 17277 | eval "$as_ac_var=yes" |
| 17278 | else |
| 17279 | echo "$as_me: failed program was:" >&5 |
| 17280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17281 | |
| 17282 | eval "$as_ac_var=no" |
| 17283 | fi |
| 17284 | |
| 17285 | rm -f core conftest.err conftest.$ac_objext \ |
| 17286 | conftest$ac_exeext conftest.$ac_ext |
| 17287 | fi |
| 17288 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17289 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17290 | echo "${ECHO_T}$ac_res" >&6; } |
| 17291 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17292 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17293 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17294 | _ACEOF |
| 17295 | |
| 17296 | fi |
| 17297 | done |
| 17298 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17299 | |
| 17300 | |
| 17301 | |
| 17302 | |
| 17303 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17304 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17305 | do |
| 17306 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17307 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17308 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17309 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17311 | else |
| 17312 | cat >conftest.$ac_ext <<_ACEOF |
| 17313 | /* confdefs.h. */ |
| 17314 | _ACEOF |
| 17315 | cat confdefs.h >>conftest.$ac_ext |
| 17316 | cat >>conftest.$ac_ext <<_ACEOF |
| 17317 | /* end confdefs.h. */ |
| 17318 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17319 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17320 | #define $ac_func innocuous_$ac_func |
| 17321 | |
| 17322 | /* System header to define __stub macros and hopefully few prototypes, |
| 17323 | which can conflict with char $ac_func (); below. |
| 17324 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17325 | <limits.h> exists even on freestanding compilers. */ |
| 17326 | |
| 17327 | #ifdef __STDC__ |
| 17328 | # include <limits.h> |
| 17329 | #else |
| 17330 | # include <assert.h> |
| 17331 | #endif |
| 17332 | |
| 17333 | #undef $ac_func |
| 17334 | |
| 17335 | /* Override any GCC internal prototype to avoid an error. |
| 17336 | Use char because int might match the return type of a GCC |
| 17337 | builtin and then its argument prototype would still apply. */ |
| 17338 | #ifdef __cplusplus |
| 17339 | extern "C" |
| 17340 | #endif |
| 17341 | char $ac_func (); |
| 17342 | /* The GNU C library defines this for functions which it implements |
| 17343 | to always fail with ENOSYS. Some functions are actually named |
| 17344 | something starting with __ and the normal name is an alias. */ |
| 17345 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17346 | choke me |
| 17347 | #endif |
| 17348 | |
| 17349 | int |
| 17350 | main () |
| 17351 | { |
| 17352 | return $ac_func (); |
| 17353 | ; |
| 17354 | return 0; |
| 17355 | } |
| 17356 | _ACEOF |
| 17357 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17358 | if { (ac_try="$ac_link" |
| 17359 | case "(($ac_try" in |
| 17360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17361 | *) ac_try_echo=$ac_try;; |
| 17362 | esac |
| 17363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17364 | (eval "$ac_link") 2>conftest.er1 |
| 17365 | ac_status=$? |
| 17366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17367 | rm -f conftest.er1 |
| 17368 | cat conftest.err >&5 |
| 17369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17370 | (exit $ac_status); } && |
| 17371 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17372 | { (case "(($ac_try" in |
| 17373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17374 | *) ac_try_echo=$ac_try;; |
| 17375 | esac |
| 17376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17377 | (eval "$ac_try") 2>&5 |
| 17378 | ac_status=$? |
| 17379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17380 | (exit $ac_status); }; } && |
| 17381 | { ac_try='test -s conftest$ac_exeext' |
| 17382 | { (case "(($ac_try" in |
| 17383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17384 | *) ac_try_echo=$ac_try;; |
| 17385 | esac |
| 17386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17387 | (eval "$ac_try") 2>&5 |
| 17388 | ac_status=$? |
| 17389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17390 | (exit $ac_status); }; }; then |
| 17391 | eval "$as_ac_var=yes" |
| 17392 | else |
| 17393 | echo "$as_me: failed program was:" >&5 |
| 17394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17395 | |
| 17396 | eval "$as_ac_var=no" |
| 17397 | fi |
| 17398 | |
| 17399 | rm -f core conftest.err conftest.$ac_objext \ |
| 17400 | conftest$ac_exeext conftest.$ac_ext |
| 17401 | fi |
| 17402 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17403 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17404 | echo "${ECHO_T}$ac_res" >&6; } |
| 17405 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17406 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17407 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17408 | _ACEOF |
| 17409 | |
| 17410 | fi |
| 17411 | done |
| 17412 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17413 | |
| 17414 | |
| 17415 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17416 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17417 | do |
| 17418 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17419 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17420 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17421 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17423 | else |
| 17424 | cat >conftest.$ac_ext <<_ACEOF |
| 17425 | /* confdefs.h. */ |
| 17426 | _ACEOF |
| 17427 | cat confdefs.h >>conftest.$ac_ext |
| 17428 | cat >>conftest.$ac_ext <<_ACEOF |
| 17429 | /* end confdefs.h. */ |
| 17430 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17431 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17432 | #define $ac_func innocuous_$ac_func |
| 17433 | |
| 17434 | /* System header to define __stub macros and hopefully few prototypes, |
| 17435 | which can conflict with char $ac_func (); below. |
| 17436 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17437 | <limits.h> exists even on freestanding compilers. */ |
| 17438 | |
| 17439 | #ifdef __STDC__ |
| 17440 | # include <limits.h> |
| 17441 | #else |
| 17442 | # include <assert.h> |
| 17443 | #endif |
| 17444 | |
| 17445 | #undef $ac_func |
| 17446 | |
| 17447 | /* Override any GCC internal prototype to avoid an error. |
| 17448 | Use char because int might match the return type of a GCC |
| 17449 | builtin and then its argument prototype would still apply. */ |
| 17450 | #ifdef __cplusplus |
| 17451 | extern "C" |
| 17452 | #endif |
| 17453 | char $ac_func (); |
| 17454 | /* The GNU C library defines this for functions which it implements |
| 17455 | to always fail with ENOSYS. Some functions are actually named |
| 17456 | something starting with __ and the normal name is an alias. */ |
| 17457 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17458 | choke me |
| 17459 | #endif |
| 17460 | |
| 17461 | int |
| 17462 | main () |
| 17463 | { |
| 17464 | return $ac_func (); |
| 17465 | ; |
| 17466 | return 0; |
| 17467 | } |
| 17468 | _ACEOF |
| 17469 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17470 | if { (ac_try="$ac_link" |
| 17471 | case "(($ac_try" in |
| 17472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17473 | *) ac_try_echo=$ac_try;; |
| 17474 | esac |
| 17475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17476 | (eval "$ac_link") 2>conftest.er1 |
| 17477 | ac_status=$? |
| 17478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17479 | rm -f conftest.er1 |
| 17480 | cat conftest.err >&5 |
| 17481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17482 | (exit $ac_status); } && |
| 17483 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17484 | { (case "(($ac_try" in |
| 17485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17486 | *) ac_try_echo=$ac_try;; |
| 17487 | esac |
| 17488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17489 | (eval "$ac_try") 2>&5 |
| 17490 | ac_status=$? |
| 17491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17492 | (exit $ac_status); }; } && |
| 17493 | { ac_try='test -s conftest$ac_exeext' |
| 17494 | { (case "(($ac_try" in |
| 17495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17496 | *) ac_try_echo=$ac_try;; |
| 17497 | esac |
| 17498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17499 | (eval "$ac_try") 2>&5 |
| 17500 | ac_status=$? |
| 17501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17502 | (exit $ac_status); }; }; then |
| 17503 | eval "$as_ac_var=yes" |
| 17504 | else |
| 17505 | echo "$as_me: failed program was:" >&5 |
| 17506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17507 | |
| 17508 | eval "$as_ac_var=no" |
| 17509 | fi |
| 17510 | |
| 17511 | rm -f core conftest.err conftest.$ac_objext \ |
| 17512 | conftest$ac_exeext conftest.$ac_ext |
| 17513 | fi |
| 17514 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17515 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17516 | echo "${ECHO_T}$ac_res" >&6; } |
| 17517 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17518 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17519 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17520 | _ACEOF |
| 17521 | |
| 17522 | fi |
| 17523 | done |
| 17524 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17525 | |
| 17526 | |
| 17527 | |
| 17528 | |
| 17529 | |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17530 | for ac_func in mktemp realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17531 | do |
| 17532 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17533 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17534 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17535 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17537 | else |
| 17538 | cat >conftest.$ac_ext <<_ACEOF |
| 17539 | /* confdefs.h. */ |
| 17540 | _ACEOF |
| 17541 | cat confdefs.h >>conftest.$ac_ext |
| 17542 | cat >>conftest.$ac_ext <<_ACEOF |
| 17543 | /* end confdefs.h. */ |
| 17544 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17545 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17546 | #define $ac_func innocuous_$ac_func |
| 17547 | |
| 17548 | /* System header to define __stub macros and hopefully few prototypes, |
| 17549 | which can conflict with char $ac_func (); below. |
| 17550 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17551 | <limits.h> exists even on freestanding compilers. */ |
| 17552 | |
| 17553 | #ifdef __STDC__ |
| 17554 | # include <limits.h> |
| 17555 | #else |
| 17556 | # include <assert.h> |
| 17557 | #endif |
| 17558 | |
| 17559 | #undef $ac_func |
| 17560 | |
| 17561 | /* Override any GCC internal prototype to avoid an error. |
| 17562 | Use char because int might match the return type of a GCC |
| 17563 | builtin and then its argument prototype would still apply. */ |
| 17564 | #ifdef __cplusplus |
| 17565 | extern "C" |
| 17566 | #endif |
| 17567 | char $ac_func (); |
| 17568 | /* The GNU C library defines this for functions which it implements |
| 17569 | to always fail with ENOSYS. Some functions are actually named |
| 17570 | something starting with __ and the normal name is an alias. */ |
| 17571 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17572 | choke me |
| 17573 | #endif |
| 17574 | |
| 17575 | int |
| 17576 | main () |
| 17577 | { |
| 17578 | return $ac_func (); |
| 17579 | ; |
| 17580 | return 0; |
| 17581 | } |
| 17582 | _ACEOF |
| 17583 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17584 | if { (ac_try="$ac_link" |
| 17585 | case "(($ac_try" in |
| 17586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17587 | *) ac_try_echo=$ac_try;; |
| 17588 | esac |
| 17589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17590 | (eval "$ac_link") 2>conftest.er1 |
| 17591 | ac_status=$? |
| 17592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17593 | rm -f conftest.er1 |
| 17594 | cat conftest.err >&5 |
| 17595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17596 | (exit $ac_status); } && |
| 17597 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17598 | { (case "(($ac_try" in |
| 17599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17600 | *) ac_try_echo=$ac_try;; |
| 17601 | esac |
| 17602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17603 | (eval "$ac_try") 2>&5 |
| 17604 | ac_status=$? |
| 17605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17606 | (exit $ac_status); }; } && |
| 17607 | { ac_try='test -s conftest$ac_exeext' |
| 17608 | { (case "(($ac_try" in |
| 17609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17610 | *) ac_try_echo=$ac_try;; |
| 17611 | esac |
| 17612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17613 | (eval "$ac_try") 2>&5 |
| 17614 | ac_status=$? |
| 17615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17616 | (exit $ac_status); }; }; then |
| 17617 | eval "$as_ac_var=yes" |
| 17618 | else |
| 17619 | echo "$as_me: failed program was:" >&5 |
| 17620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17621 | |
| 17622 | eval "$as_ac_var=no" |
| 17623 | fi |
| 17624 | |
| 17625 | rm -f core conftest.err conftest.$ac_objext \ |
| 17626 | conftest$ac_exeext conftest.$ac_ext |
| 17627 | fi |
| 17628 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17629 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17630 | echo "${ECHO_T}$ac_res" >&6; } |
| 17631 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17632 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17633 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17634 | _ACEOF |
| 17635 | |
| 17636 | fi |
| 17637 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17638 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17639 | |
| 17640 | |
| 17641 | |
| 17642 | |
Jeffrey Yasskin | b7a8d40 | 2009-09-25 21:07:20 +0000 | [diff] [blame] | 17643 | for ac_func in strerror strerror_r strerror_s setenv |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17644 | do |
| 17645 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17646 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17647 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17648 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17650 | else |
| 17651 | cat >conftest.$ac_ext <<_ACEOF |
| 17652 | /* confdefs.h. */ |
| 17653 | _ACEOF |
| 17654 | cat confdefs.h >>conftest.$ac_ext |
| 17655 | cat >>conftest.$ac_ext <<_ACEOF |
| 17656 | /* end confdefs.h. */ |
| 17657 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17658 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17659 | #define $ac_func innocuous_$ac_func |
| 17660 | |
| 17661 | /* System header to define __stub macros and hopefully few prototypes, |
| 17662 | which can conflict with char $ac_func (); below. |
| 17663 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17664 | <limits.h> exists even on freestanding compilers. */ |
| 17665 | |
| 17666 | #ifdef __STDC__ |
| 17667 | # include <limits.h> |
| 17668 | #else |
| 17669 | # include <assert.h> |
| 17670 | #endif |
| 17671 | |
| 17672 | #undef $ac_func |
| 17673 | |
| 17674 | /* Override any GCC internal prototype to avoid an error. |
| 17675 | Use char because int might match the return type of a GCC |
| 17676 | builtin and then its argument prototype would still apply. */ |
| 17677 | #ifdef __cplusplus |
| 17678 | extern "C" |
| 17679 | #endif |
| 17680 | char $ac_func (); |
| 17681 | /* The GNU C library defines this for functions which it implements |
| 17682 | to always fail with ENOSYS. Some functions are actually named |
| 17683 | something starting with __ and the normal name is an alias. */ |
| 17684 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17685 | choke me |
| 17686 | #endif |
| 17687 | |
| 17688 | int |
| 17689 | main () |
| 17690 | { |
| 17691 | return $ac_func (); |
| 17692 | ; |
| 17693 | return 0; |
| 17694 | } |
| 17695 | _ACEOF |
| 17696 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17697 | if { (ac_try="$ac_link" |
| 17698 | case "(($ac_try" in |
| 17699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17700 | *) ac_try_echo=$ac_try;; |
| 17701 | esac |
| 17702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17703 | (eval "$ac_link") 2>conftest.er1 |
| 17704 | ac_status=$? |
| 17705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17706 | rm -f conftest.er1 |
| 17707 | cat conftest.err >&5 |
| 17708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17709 | (exit $ac_status); } && |
| 17710 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17711 | { (case "(($ac_try" in |
| 17712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17713 | *) ac_try_echo=$ac_try;; |
| 17714 | esac |
| 17715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17716 | (eval "$ac_try") 2>&5 |
| 17717 | ac_status=$? |
| 17718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17719 | (exit $ac_status); }; } && |
| 17720 | { ac_try='test -s conftest$ac_exeext' |
| 17721 | { (case "(($ac_try" in |
| 17722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17723 | *) ac_try_echo=$ac_try;; |
| 17724 | esac |
| 17725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17726 | (eval "$ac_try") 2>&5 |
| 17727 | ac_status=$? |
| 17728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17729 | (exit $ac_status); }; }; then |
| 17730 | eval "$as_ac_var=yes" |
| 17731 | else |
| 17732 | echo "$as_me: failed program was:" >&5 |
| 17733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17734 | |
| 17735 | eval "$as_ac_var=no" |
| 17736 | fi |
| 17737 | |
| 17738 | rm -f core conftest.err conftest.$ac_objext \ |
| 17739 | conftest$ac_exeext conftest.$ac_ext |
| 17740 | fi |
| 17741 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17742 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17743 | echo "${ECHO_T}$ac_res" >&6; } |
| 17744 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17745 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17746 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17747 | _ACEOF |
| 17748 | |
| 17749 | fi |
| 17750 | done |
| 17751 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17752 | |
| 17753 | |
| 17754 | |
| 17755 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 17756 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17757 | do |
| 17758 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17759 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17760 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17761 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17763 | else |
| 17764 | cat >conftest.$ac_ext <<_ACEOF |
| 17765 | /* confdefs.h. */ |
| 17766 | _ACEOF |
| 17767 | cat confdefs.h >>conftest.$ac_ext |
| 17768 | cat >>conftest.$ac_ext <<_ACEOF |
| 17769 | /* end confdefs.h. */ |
| 17770 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17771 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17772 | #define $ac_func innocuous_$ac_func |
| 17773 | |
| 17774 | /* System header to define __stub macros and hopefully few prototypes, |
| 17775 | which can conflict with char $ac_func (); below. |
| 17776 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17777 | <limits.h> exists even on freestanding compilers. */ |
| 17778 | |
| 17779 | #ifdef __STDC__ |
| 17780 | # include <limits.h> |
| 17781 | #else |
| 17782 | # include <assert.h> |
| 17783 | #endif |
| 17784 | |
| 17785 | #undef $ac_func |
| 17786 | |
| 17787 | /* Override any GCC internal prototype to avoid an error. |
| 17788 | Use char because int might match the return type of a GCC |
| 17789 | builtin and then its argument prototype would still apply. */ |
| 17790 | #ifdef __cplusplus |
| 17791 | extern "C" |
| 17792 | #endif |
| 17793 | char $ac_func (); |
| 17794 | /* The GNU C library defines this for functions which it implements |
| 17795 | to always fail with ENOSYS. Some functions are actually named |
| 17796 | something starting with __ and the normal name is an alias. */ |
| 17797 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17798 | choke me |
| 17799 | #endif |
| 17800 | |
| 17801 | int |
| 17802 | main () |
| 17803 | { |
| 17804 | return $ac_func (); |
| 17805 | ; |
| 17806 | return 0; |
| 17807 | } |
| 17808 | _ACEOF |
| 17809 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17810 | if { (ac_try="$ac_link" |
| 17811 | case "(($ac_try" in |
| 17812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17813 | *) ac_try_echo=$ac_try;; |
| 17814 | esac |
| 17815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17816 | (eval "$ac_link") 2>conftest.er1 |
| 17817 | ac_status=$? |
| 17818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17819 | rm -f conftest.er1 |
| 17820 | cat conftest.err >&5 |
| 17821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17822 | (exit $ac_status); } && |
| 17823 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17824 | { (case "(($ac_try" in |
| 17825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17826 | *) ac_try_echo=$ac_try;; |
| 17827 | esac |
| 17828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17829 | (eval "$ac_try") 2>&5 |
| 17830 | ac_status=$? |
| 17831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17832 | (exit $ac_status); }; } && |
| 17833 | { ac_try='test -s conftest$ac_exeext' |
| 17834 | { (case "(($ac_try" in |
| 17835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17836 | *) ac_try_echo=$ac_try;; |
| 17837 | esac |
| 17838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17839 | (eval "$ac_try") 2>&5 |
| 17840 | ac_status=$? |
| 17841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17842 | (exit $ac_status); }; }; then |
| 17843 | eval "$as_ac_var=yes" |
| 17844 | else |
| 17845 | echo "$as_me: failed program was:" >&5 |
| 17846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17847 | |
| 17848 | eval "$as_ac_var=no" |
| 17849 | fi |
| 17850 | |
| 17851 | rm -f core conftest.err conftest.$ac_objext \ |
| 17852 | conftest$ac_exeext conftest.$ac_ext |
| 17853 | fi |
| 17854 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17855 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17856 | echo "${ECHO_T}$ac_res" >&6; } |
| 17857 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17858 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17859 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17860 | _ACEOF |
| 17861 | |
| 17862 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17863 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17864 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17865 | |
| 17866 | |
| 17867 | |
| 17868 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 17869 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17870 | do |
| 17871 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17872 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17873 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17874 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17876 | else |
| 17877 | cat >conftest.$ac_ext <<_ACEOF |
| 17878 | /* confdefs.h. */ |
| 17879 | _ACEOF |
| 17880 | cat confdefs.h >>conftest.$ac_ext |
| 17881 | cat >>conftest.$ac_ext <<_ACEOF |
| 17882 | /* end confdefs.h. */ |
| 17883 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17884 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17885 | #define $ac_func innocuous_$ac_func |
| 17886 | |
| 17887 | /* System header to define __stub macros and hopefully few prototypes, |
| 17888 | which can conflict with char $ac_func (); below. |
| 17889 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17890 | <limits.h> exists even on freestanding compilers. */ |
| 17891 | |
| 17892 | #ifdef __STDC__ |
| 17893 | # include <limits.h> |
| 17894 | #else |
| 17895 | # include <assert.h> |
| 17896 | #endif |
| 17897 | |
| 17898 | #undef $ac_func |
| 17899 | |
| 17900 | /* Override any GCC internal prototype to avoid an error. |
| 17901 | Use char because int might match the return type of a GCC |
| 17902 | builtin and then its argument prototype would still apply. */ |
| 17903 | #ifdef __cplusplus |
| 17904 | extern "C" |
| 17905 | #endif |
| 17906 | char $ac_func (); |
| 17907 | /* The GNU C library defines this for functions which it implements |
| 17908 | to always fail with ENOSYS. Some functions are actually named |
| 17909 | something starting with __ and the normal name is an alias. */ |
| 17910 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17911 | choke me |
| 17912 | #endif |
| 17913 | |
| 17914 | int |
| 17915 | main () |
| 17916 | { |
| 17917 | return $ac_func (); |
| 17918 | ; |
| 17919 | return 0; |
| 17920 | } |
| 17921 | _ACEOF |
| 17922 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17923 | if { (ac_try="$ac_link" |
| 17924 | case "(($ac_try" in |
| 17925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17926 | *) ac_try_echo=$ac_try;; |
| 17927 | esac |
| 17928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17929 | (eval "$ac_link") 2>conftest.er1 |
| 17930 | ac_status=$? |
| 17931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17932 | rm -f conftest.er1 |
| 17933 | cat conftest.err >&5 |
| 17934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17935 | (exit $ac_status); } && |
| 17936 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17937 | { (case "(($ac_try" in |
| 17938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17939 | *) ac_try_echo=$ac_try;; |
| 17940 | esac |
| 17941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17942 | (eval "$ac_try") 2>&5 |
| 17943 | ac_status=$? |
| 17944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17945 | (exit $ac_status); }; } && |
| 17946 | { ac_try='test -s conftest$ac_exeext' |
| 17947 | { (case "(($ac_try" in |
| 17948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17949 | *) ac_try_echo=$ac_try;; |
| 17950 | esac |
| 17951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17952 | (eval "$ac_try") 2>&5 |
| 17953 | ac_status=$? |
| 17954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17955 | (exit $ac_status); }; }; then |
| 17956 | eval "$as_ac_var=yes" |
| 17957 | else |
| 17958 | echo "$as_me: failed program was:" >&5 |
| 17959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17960 | |
| 17961 | eval "$as_ac_var=no" |
| 17962 | fi |
| 17963 | |
| 17964 | rm -f core conftest.err conftest.$ac_objext \ |
| 17965 | conftest$ac_exeext conftest.$ac_ext |
| 17966 | fi |
| 17967 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17968 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17969 | echo "${ECHO_T}$ac_res" >&6; } |
| 17970 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17971 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17972 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17973 | _ACEOF |
| 17974 | |
| 17975 | fi |
| 17976 | done |
| 17977 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17978 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 17979 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 17980 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 17981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17982 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17983 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17984 | ac_cpp='$CPP $CPPFLAGS' |
| 17985 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17986 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17987 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17988 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17989 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17990 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17991 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17992 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17993 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17994 | /* confdefs.h. */ |
| 17995 | _ACEOF |
| 17996 | cat confdefs.h >>conftest.$ac_ext |
| 17997 | cat >>conftest.$ac_ext <<_ACEOF |
| 17998 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17999 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18000 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18001 | #include <stdlib.h> |
| 18002 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18003 | int |
| 18004 | main () |
| 18005 | { |
| 18006 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18007 | volatile double A, B; |
| 18008 | char Buffer[100]; |
| 18009 | A = 1; |
| 18010 | A /= 10.0; |
| 18011 | sprintf(Buffer, "%a", A); |
| 18012 | B = atof(Buffer); |
| 18013 | if (A != B) |
| 18014 | return (1); |
| 18015 | if (A != 0x1.999999999999ap-4) |
| 18016 | return (1); |
| 18017 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18018 | ; |
| 18019 | return 0; |
| 18020 | } |
| 18021 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18022 | rm -f conftest$ac_exeext |
| 18023 | if { (ac_try="$ac_link" |
| 18024 | case "(($ac_try" in |
| 18025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18026 | *) ac_try_echo=$ac_try;; |
| 18027 | esac |
| 18028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18029 | (eval "$ac_link") 2>&5 |
| 18030 | ac_status=$? |
| 18031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18032 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18033 | { (case "(($ac_try" in |
| 18034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18035 | *) ac_try_echo=$ac_try;; |
| 18036 | esac |
| 18037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18038 | (eval "$ac_try") 2>&5 |
| 18039 | ac_status=$? |
| 18040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18041 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18042 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18043 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18044 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18045 | echo "$as_me: failed program was:" >&5 |
| 18046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18047 | |
| 18048 | ( exit $ac_status ) |
| 18049 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18050 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18051 | 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] | 18052 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18053 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18054 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18055 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18056 | ac_cpp='$CPP $CPPFLAGS' |
| 18057 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18058 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18059 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18060 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18061 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18062 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 18063 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18064 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18065 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18066 | cat >>confdefs.h <<\_ACEOF |
| 18067 | #define HAVE_PRINTF_A 1 |
| 18068 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18069 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18070 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18071 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18072 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18073 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 18074 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 18075 | if test "${ac_cv_func_rand48+set}" = set; then |
| 18076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18077 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18078 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18079 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18080 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18081 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18082 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18083 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18084 | cat >conftest.$ac_ext <<_ACEOF |
| 18085 | /* confdefs.h. */ |
| 18086 | _ACEOF |
| 18087 | cat confdefs.h >>conftest.$ac_ext |
| 18088 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18089 | /* end confdefs.h. */ |
| 18090 | #include <stdlib.h> |
| 18091 | int |
| 18092 | main () |
| 18093 | { |
| 18094 | srand48(0);lrand48();drand48(); |
| 18095 | ; |
| 18096 | return 0; |
| 18097 | } |
| 18098 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18099 | rm -f conftest.$ac_objext |
| 18100 | if { (ac_try="$ac_compile" |
| 18101 | case "(($ac_try" in |
| 18102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18103 | *) ac_try_echo=$ac_try;; |
| 18104 | esac |
| 18105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18106 | (eval "$ac_compile") 2>conftest.er1 |
| 18107 | ac_status=$? |
| 18108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18109 | rm -f conftest.er1 |
| 18110 | cat conftest.err >&5 |
| 18111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18112 | (exit $ac_status); } && |
| 18113 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18114 | { (case "(($ac_try" in |
| 18115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18116 | *) ac_try_echo=$ac_try;; |
| 18117 | esac |
| 18118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18119 | (eval "$ac_try") 2>&5 |
| 18120 | ac_status=$? |
| 18121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18122 | (exit $ac_status); }; } && |
| 18123 | { ac_try='test -s conftest.$ac_objext' |
| 18124 | { (case "(($ac_try" in |
| 18125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18126 | *) ac_try_echo=$ac_try;; |
| 18127 | esac |
| 18128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18129 | (eval "$ac_try") 2>&5 |
| 18130 | ac_status=$? |
| 18131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18132 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18133 | ac_cv_func_rand48=yes |
| 18134 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18135 | echo "$as_me: failed program was:" >&5 |
| 18136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18137 | |
| 18138 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18139 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18140 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18142 | ac_ext=c |
| 18143 | ac_cpp='$CPP $CPPFLAGS' |
| 18144 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18145 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18146 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18147 | |
| 18148 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18149 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 18150 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18151 | |
| 18152 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 18153 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18154 | cat >>confdefs.h <<\_ACEOF |
| 18155 | #define HAVE_RAND48 1 |
| 18156 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18157 | |
| 18158 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 18159 | |
| 18160 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18161 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18162 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 18163 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 18164 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 18165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18166 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18167 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18168 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18169 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18170 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18171 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18172 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18173 | cat >conftest.$ac_ext <<_ACEOF |
| 18174 | /* confdefs.h. */ |
| 18175 | _ACEOF |
| 18176 | cat confdefs.h >>conftest.$ac_ext |
| 18177 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18178 | /* end confdefs.h. */ |
| 18179 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18180 | int |
| 18181 | main () |
| 18182 | { |
| 18183 | float f; isnan(f); |
| 18184 | ; |
| 18185 | return 0; |
| 18186 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18187 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18188 | rm -f conftest.$ac_objext |
| 18189 | if { (ac_try="$ac_compile" |
| 18190 | case "(($ac_try" in |
| 18191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18192 | *) ac_try_echo=$ac_try;; |
| 18193 | esac |
| 18194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18195 | (eval "$ac_compile") 2>conftest.er1 |
| 18196 | ac_status=$? |
| 18197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18198 | rm -f conftest.er1 |
| 18199 | cat conftest.err >&5 |
| 18200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18201 | (exit $ac_status); } && |
| 18202 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18203 | { (case "(($ac_try" in |
| 18204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18205 | *) ac_try_echo=$ac_try;; |
| 18206 | esac |
| 18207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18208 | (eval "$ac_try") 2>&5 |
| 18209 | ac_status=$? |
| 18210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18211 | (exit $ac_status); }; } && |
| 18212 | { ac_try='test -s conftest.$ac_objext' |
| 18213 | { (case "(($ac_try" in |
| 18214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18215 | *) ac_try_echo=$ac_try;; |
| 18216 | esac |
| 18217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18218 | (eval "$ac_try") 2>&5 |
| 18219 | ac_status=$? |
| 18220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18221 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18222 | ac_cv_func_isnan_in_math_h=yes |
| 18223 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18224 | echo "$as_me: failed program was:" >&5 |
| 18225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18226 | |
| 18227 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18228 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18229 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18231 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18232 | ac_cpp='$CPP $CPPFLAGS' |
| 18233 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18234 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18235 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18236 | |
| 18237 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18238 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 18239 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18240 | |
| 18241 | |
| 18242 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18243 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18244 | cat >>confdefs.h <<\_ACEOF |
| 18245 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 18246 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18247 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18248 | fi |
| 18249 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18250 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 18251 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 18252 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 18253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18254 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18255 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18256 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18257 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18258 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18259 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18260 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18261 | cat >conftest.$ac_ext <<_ACEOF |
| 18262 | /* confdefs.h. */ |
| 18263 | _ACEOF |
| 18264 | cat confdefs.h >>conftest.$ac_ext |
| 18265 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18266 | /* end confdefs.h. */ |
| 18267 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18268 | int |
| 18269 | main () |
| 18270 | { |
| 18271 | float f; isnan(f); |
| 18272 | ; |
| 18273 | return 0; |
| 18274 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18275 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18276 | rm -f conftest.$ac_objext |
| 18277 | if { (ac_try="$ac_compile" |
| 18278 | case "(($ac_try" in |
| 18279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18280 | *) ac_try_echo=$ac_try;; |
| 18281 | esac |
| 18282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18283 | (eval "$ac_compile") 2>conftest.er1 |
| 18284 | ac_status=$? |
| 18285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18286 | rm -f conftest.er1 |
| 18287 | cat conftest.err >&5 |
| 18288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18289 | (exit $ac_status); } && |
| 18290 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18291 | { (case "(($ac_try" in |
| 18292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18293 | *) ac_try_echo=$ac_try;; |
| 18294 | esac |
| 18295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18296 | (eval "$ac_try") 2>&5 |
| 18297 | ac_status=$? |
| 18298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18299 | (exit $ac_status); }; } && |
| 18300 | { ac_try='test -s conftest.$ac_objext' |
| 18301 | { (case "(($ac_try" in |
| 18302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18303 | *) ac_try_echo=$ac_try;; |
| 18304 | esac |
| 18305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18306 | (eval "$ac_try") 2>&5 |
| 18307 | ac_status=$? |
| 18308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18309 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18310 | ac_cv_func_isnan_in_cmath=yes |
| 18311 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18312 | echo "$as_me: failed program was:" >&5 |
| 18313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18314 | |
| 18315 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18316 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18317 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18319 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18320 | ac_cpp='$CPP $CPPFLAGS' |
| 18321 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18322 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18323 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18324 | |
| 18325 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18326 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 18327 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18328 | |
| 18329 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18330 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18331 | cat >>confdefs.h <<\_ACEOF |
| 18332 | #define HAVE_ISNAN_IN_CMATH 1 |
| 18333 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18334 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18335 | fi |
| 18336 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18337 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 18338 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 18339 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 18340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18341 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18342 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18343 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18344 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18345 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18346 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18347 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18348 | cat >conftest.$ac_ext <<_ACEOF |
| 18349 | /* confdefs.h. */ |
| 18350 | _ACEOF |
| 18351 | cat confdefs.h >>conftest.$ac_ext |
| 18352 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18353 | /* end confdefs.h. */ |
| 18354 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18355 | int |
| 18356 | main () |
| 18357 | { |
| 18358 | float f; std::isnan(f); |
| 18359 | ; |
| 18360 | return 0; |
| 18361 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18362 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18363 | rm -f conftest.$ac_objext |
| 18364 | if { (ac_try="$ac_compile" |
| 18365 | case "(($ac_try" in |
| 18366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18367 | *) ac_try_echo=$ac_try;; |
| 18368 | esac |
| 18369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18370 | (eval "$ac_compile") 2>conftest.er1 |
| 18371 | ac_status=$? |
| 18372 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18373 | rm -f conftest.er1 |
| 18374 | cat conftest.err >&5 |
| 18375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18376 | (exit $ac_status); } && |
| 18377 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18378 | { (case "(($ac_try" in |
| 18379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18380 | *) ac_try_echo=$ac_try;; |
| 18381 | esac |
| 18382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18383 | (eval "$ac_try") 2>&5 |
| 18384 | ac_status=$? |
| 18385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18386 | (exit $ac_status); }; } && |
| 18387 | { ac_try='test -s conftest.$ac_objext' |
| 18388 | { (case "(($ac_try" in |
| 18389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18390 | *) ac_try_echo=$ac_try;; |
| 18391 | esac |
| 18392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18393 | (eval "$ac_try") 2>&5 |
| 18394 | ac_status=$? |
| 18395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18396 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18397 | ac_cv_func_std_isnan_in_cmath=yes |
| 18398 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18399 | echo "$as_me: failed program was:" >&5 |
| 18400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18401 | |
| 18402 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18403 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18404 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18406 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18407 | ac_cpp='$CPP $CPPFLAGS' |
| 18408 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18409 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18410 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18411 | |
| 18412 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18413 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 18414 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18415 | |
| 18416 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18417 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18418 | cat >>confdefs.h <<\_ACEOF |
| 18419 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 18420 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18421 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18422 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18423 | |
| 18424 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18425 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 18426 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 18427 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 18428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18429 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18430 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18431 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18432 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18433 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18434 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18435 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18436 | cat >conftest.$ac_ext <<_ACEOF |
| 18437 | /* confdefs.h. */ |
| 18438 | _ACEOF |
| 18439 | cat confdefs.h >>conftest.$ac_ext |
| 18440 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18441 | /* end confdefs.h. */ |
| 18442 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18443 | int |
| 18444 | main () |
| 18445 | { |
| 18446 | float f; isinf(f); |
| 18447 | ; |
| 18448 | return 0; |
| 18449 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18450 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18451 | rm -f conftest.$ac_objext |
| 18452 | if { (ac_try="$ac_compile" |
| 18453 | case "(($ac_try" in |
| 18454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18455 | *) ac_try_echo=$ac_try;; |
| 18456 | esac |
| 18457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18458 | (eval "$ac_compile") 2>conftest.er1 |
| 18459 | ac_status=$? |
| 18460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18461 | rm -f conftest.er1 |
| 18462 | cat conftest.err >&5 |
| 18463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18464 | (exit $ac_status); } && |
| 18465 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18466 | { (case "(($ac_try" in |
| 18467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18468 | *) ac_try_echo=$ac_try;; |
| 18469 | esac |
| 18470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18471 | (eval "$ac_try") 2>&5 |
| 18472 | ac_status=$? |
| 18473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18474 | (exit $ac_status); }; } && |
| 18475 | { ac_try='test -s conftest.$ac_objext' |
| 18476 | { (case "(($ac_try" in |
| 18477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18478 | *) ac_try_echo=$ac_try;; |
| 18479 | esac |
| 18480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18481 | (eval "$ac_try") 2>&5 |
| 18482 | ac_status=$? |
| 18483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18484 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18485 | ac_cv_func_isinf_in_math_h=yes |
| 18486 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18487 | echo "$as_me: failed program was:" >&5 |
| 18488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18489 | |
| 18490 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18491 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18492 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18494 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18495 | ac_cpp='$CPP $CPPFLAGS' |
| 18496 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18497 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18498 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18499 | |
| 18500 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18501 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 18502 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18503 | |
| 18504 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18505 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18506 | cat >>confdefs.h <<\_ACEOF |
| 18507 | #define HAVE_ISINF_IN_MATH_H 1 |
| 18508 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18509 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18510 | fi |
| 18511 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18512 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 18513 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 18514 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 18515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18516 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18517 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18518 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18519 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18520 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18521 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18522 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18523 | cat >conftest.$ac_ext <<_ACEOF |
| 18524 | /* confdefs.h. */ |
| 18525 | _ACEOF |
| 18526 | cat confdefs.h >>conftest.$ac_ext |
| 18527 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18528 | /* end confdefs.h. */ |
| 18529 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18530 | int |
| 18531 | main () |
| 18532 | { |
| 18533 | float f; isinf(f); |
| 18534 | ; |
| 18535 | return 0; |
| 18536 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18537 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18538 | rm -f conftest.$ac_objext |
| 18539 | if { (ac_try="$ac_compile" |
| 18540 | case "(($ac_try" in |
| 18541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18542 | *) ac_try_echo=$ac_try;; |
| 18543 | esac |
| 18544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18545 | (eval "$ac_compile") 2>conftest.er1 |
| 18546 | ac_status=$? |
| 18547 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18548 | rm -f conftest.er1 |
| 18549 | cat conftest.err >&5 |
| 18550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18551 | (exit $ac_status); } && |
| 18552 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18553 | { (case "(($ac_try" in |
| 18554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18555 | *) ac_try_echo=$ac_try;; |
| 18556 | esac |
| 18557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18558 | (eval "$ac_try") 2>&5 |
| 18559 | ac_status=$? |
| 18560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18561 | (exit $ac_status); }; } && |
| 18562 | { ac_try='test -s conftest.$ac_objext' |
| 18563 | { (case "(($ac_try" in |
| 18564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18565 | *) ac_try_echo=$ac_try;; |
| 18566 | esac |
| 18567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18568 | (eval "$ac_try") 2>&5 |
| 18569 | ac_status=$? |
| 18570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18571 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18572 | ac_cv_func_isinf_in_cmath=yes |
| 18573 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18574 | echo "$as_me: failed program was:" >&5 |
| 18575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18576 | |
| 18577 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18578 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18579 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18581 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18582 | ac_cpp='$CPP $CPPFLAGS' |
| 18583 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18584 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18585 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18586 | |
| 18587 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18588 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 18589 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18590 | |
| 18591 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18592 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18593 | cat >>confdefs.h <<\_ACEOF |
| 18594 | #define HAVE_ISINF_IN_CMATH 1 |
| 18595 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18596 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18597 | fi |
| 18598 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18599 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 18600 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 18601 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 18602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18603 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18604 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18605 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18606 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18607 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18608 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18609 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18610 | cat >conftest.$ac_ext <<_ACEOF |
| 18611 | /* confdefs.h. */ |
| 18612 | _ACEOF |
| 18613 | cat confdefs.h >>conftest.$ac_ext |
| 18614 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18615 | /* end confdefs.h. */ |
| 18616 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18617 | int |
| 18618 | main () |
| 18619 | { |
| 18620 | float f; std::isinf(f)} |
| 18621 | ; |
| 18622 | return 0; |
| 18623 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18624 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18625 | rm -f conftest.$ac_objext |
| 18626 | if { (ac_try="$ac_compile" |
| 18627 | case "(($ac_try" in |
| 18628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18629 | *) ac_try_echo=$ac_try;; |
| 18630 | esac |
| 18631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18632 | (eval "$ac_compile") 2>conftest.er1 |
| 18633 | ac_status=$? |
| 18634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18635 | rm -f conftest.er1 |
| 18636 | cat conftest.err >&5 |
| 18637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18638 | (exit $ac_status); } && |
| 18639 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18640 | { (case "(($ac_try" in |
| 18641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18642 | *) ac_try_echo=$ac_try;; |
| 18643 | esac |
| 18644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18645 | (eval "$ac_try") 2>&5 |
| 18646 | ac_status=$? |
| 18647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18648 | (exit $ac_status); }; } && |
| 18649 | { ac_try='test -s conftest.$ac_objext' |
| 18650 | { (case "(($ac_try" in |
| 18651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18652 | *) ac_try_echo=$ac_try;; |
| 18653 | esac |
| 18654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18655 | (eval "$ac_try") 2>&5 |
| 18656 | ac_status=$? |
| 18657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18658 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18659 | ac_cv_func_std_isinf_in_cmath=yes |
| 18660 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18661 | echo "$as_me: failed program was:" >&5 |
| 18662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18663 | |
| 18664 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18665 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18666 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18668 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18669 | ac_cpp='$CPP $CPPFLAGS' |
| 18670 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18671 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18672 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18673 | |
| 18674 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18675 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 18676 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18677 | |
| 18678 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18679 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18680 | cat >>confdefs.h <<\_ACEOF |
| 18681 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 18682 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18683 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18684 | fi |
| 18685 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18686 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 18687 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 18688 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 18689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18690 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18691 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18692 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18693 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18694 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18695 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18696 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18697 | cat >conftest.$ac_ext <<_ACEOF |
| 18698 | /* confdefs.h. */ |
| 18699 | _ACEOF |
| 18700 | cat confdefs.h >>conftest.$ac_ext |
| 18701 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18702 | /* end confdefs.h. */ |
| 18703 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18704 | int |
| 18705 | main () |
| 18706 | { |
| 18707 | float f; finite(f); |
| 18708 | ; |
| 18709 | return 0; |
| 18710 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18711 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18712 | rm -f conftest.$ac_objext |
| 18713 | if { (ac_try="$ac_compile" |
| 18714 | case "(($ac_try" in |
| 18715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18716 | *) ac_try_echo=$ac_try;; |
| 18717 | esac |
| 18718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18719 | (eval "$ac_compile") 2>conftest.er1 |
| 18720 | ac_status=$? |
| 18721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18722 | rm -f conftest.er1 |
| 18723 | cat conftest.err >&5 |
| 18724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18725 | (exit $ac_status); } && |
| 18726 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18727 | { (case "(($ac_try" in |
| 18728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18729 | *) ac_try_echo=$ac_try;; |
| 18730 | esac |
| 18731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18732 | (eval "$ac_try") 2>&5 |
| 18733 | ac_status=$? |
| 18734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18735 | (exit $ac_status); }; } && |
| 18736 | { ac_try='test -s conftest.$ac_objext' |
| 18737 | { (case "(($ac_try" in |
| 18738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18739 | *) ac_try_echo=$ac_try;; |
| 18740 | esac |
| 18741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18742 | (eval "$ac_try") 2>&5 |
| 18743 | ac_status=$? |
| 18744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18745 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18746 | ac_cv_func_finite_in_ieeefp_h=yes |
| 18747 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18748 | echo "$as_me: failed program was:" >&5 |
| 18749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18750 | |
| 18751 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18752 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18753 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18755 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18756 | ac_cpp='$CPP $CPPFLAGS' |
| 18757 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18758 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18759 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18760 | |
| 18761 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18762 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 18763 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18764 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 18765 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18766 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18767 | cat >>confdefs.h <<\_ACEOF |
| 18768 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 18769 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18770 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18771 | fi |
| 18772 | |
| 18773 | |
| 18774 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 18775 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18776 | |
| 18777 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18778 | for ac_header in stdlib.h unistd.h |
| 18779 | do |
| 18780 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 18781 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18782 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 18783 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 18784 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18786 | fi |
| 18787 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 18788 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18789 | echo "${ECHO_T}$ac_res" >&6; } |
| 18790 | else |
| 18791 | # Is the header compilable? |
| 18792 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 18793 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 18794 | cat >conftest.$ac_ext <<_ACEOF |
| 18795 | /* confdefs.h. */ |
| 18796 | _ACEOF |
| 18797 | cat confdefs.h >>conftest.$ac_ext |
| 18798 | cat >>conftest.$ac_ext <<_ACEOF |
| 18799 | /* end confdefs.h. */ |
| 18800 | $ac_includes_default |
| 18801 | #include <$ac_header> |
| 18802 | _ACEOF |
| 18803 | rm -f conftest.$ac_objext |
| 18804 | if { (ac_try="$ac_compile" |
| 18805 | case "(($ac_try" in |
| 18806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18807 | *) ac_try_echo=$ac_try;; |
| 18808 | esac |
| 18809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18810 | (eval "$ac_compile") 2>conftest.er1 |
| 18811 | ac_status=$? |
| 18812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18813 | rm -f conftest.er1 |
| 18814 | cat conftest.err >&5 |
| 18815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18816 | (exit $ac_status); } && |
| 18817 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18818 | { (case "(($ac_try" in |
| 18819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18820 | *) ac_try_echo=$ac_try;; |
| 18821 | esac |
| 18822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18823 | (eval "$ac_try") 2>&5 |
| 18824 | ac_status=$? |
| 18825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18826 | (exit $ac_status); }; } && |
| 18827 | { ac_try='test -s conftest.$ac_objext' |
| 18828 | { (case "(($ac_try" in |
| 18829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18830 | *) ac_try_echo=$ac_try;; |
| 18831 | esac |
| 18832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18833 | (eval "$ac_try") 2>&5 |
| 18834 | ac_status=$? |
| 18835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18836 | (exit $ac_status); }; }; then |
| 18837 | ac_header_compiler=yes |
| 18838 | else |
| 18839 | echo "$as_me: failed program was:" >&5 |
| 18840 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18841 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18842 | ac_header_compiler=no |
| 18843 | fi |
| 18844 | |
| 18845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18846 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 18847 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 18848 | |
| 18849 | # Is the header present? |
| 18850 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 18851 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 18852 | cat >conftest.$ac_ext <<_ACEOF |
| 18853 | /* confdefs.h. */ |
| 18854 | _ACEOF |
| 18855 | cat confdefs.h >>conftest.$ac_ext |
| 18856 | cat >>conftest.$ac_ext <<_ACEOF |
| 18857 | /* end confdefs.h. */ |
| 18858 | #include <$ac_header> |
| 18859 | _ACEOF |
| 18860 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 18861 | case "(($ac_try" in |
| 18862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18863 | *) ac_try_echo=$ac_try;; |
| 18864 | esac |
| 18865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18866 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 18867 | ac_status=$? |
| 18868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18869 | rm -f conftest.er1 |
| 18870 | cat conftest.err >&5 |
| 18871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18872 | (exit $ac_status); } >/dev/null; then |
| 18873 | if test -s conftest.err; then |
| 18874 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 18875 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 18876 | else |
| 18877 | ac_cpp_err= |
| 18878 | fi |
| 18879 | else |
| 18880 | ac_cpp_err=yes |
| 18881 | fi |
| 18882 | if test -z "$ac_cpp_err"; then |
| 18883 | ac_header_preproc=yes |
| 18884 | else |
| 18885 | echo "$as_me: failed program was:" >&5 |
| 18886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18887 | |
| 18888 | ac_header_preproc=no |
| 18889 | fi |
| 18890 | |
| 18891 | rm -f conftest.err conftest.$ac_ext |
| 18892 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 18893 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 18894 | |
| 18895 | # So? What about this header? |
| 18896 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 18897 | yes:no: ) |
| 18898 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 18899 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 18900 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 18901 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 18902 | ac_header_preproc=yes |
| 18903 | ;; |
| 18904 | no:yes:* ) |
| 18905 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 18906 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 18907 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 18908 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 18909 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 18910 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 18911 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 18912 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 18913 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 18914 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 18915 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 18916 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 18917 | ( cat <<\_ASBOX |
| 18918 | ## ----------------------------------- ## |
| 18919 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 18920 | ## ----------------------------------- ## |
| 18921 | _ASBOX |
| 18922 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 18923 | ;; |
| 18924 | esac |
| 18925 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 18926 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 18927 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18929 | else |
| 18930 | eval "$as_ac_Header=\$ac_header_preproc" |
| 18931 | fi |
| 18932 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 18933 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18934 | echo "${ECHO_T}$ac_res" >&6; } |
| 18935 | |
| 18936 | fi |
| 18937 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18938 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18939 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18940 | _ACEOF |
| 18941 | |
| 18942 | fi |
| 18943 | |
| 18944 | done |
| 18945 | |
| 18946 | |
| 18947 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18948 | do |
| 18949 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18950 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18951 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18952 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18954 | else |
| 18955 | cat >conftest.$ac_ext <<_ACEOF |
| 18956 | /* confdefs.h. */ |
| 18957 | _ACEOF |
| 18958 | cat confdefs.h >>conftest.$ac_ext |
| 18959 | cat >>conftest.$ac_ext <<_ACEOF |
| 18960 | /* end confdefs.h. */ |
| 18961 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18962 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18963 | #define $ac_func innocuous_$ac_func |
| 18964 | |
| 18965 | /* System header to define __stub macros and hopefully few prototypes, |
| 18966 | which can conflict with char $ac_func (); below. |
| 18967 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18968 | <limits.h> exists even on freestanding compilers. */ |
| 18969 | |
| 18970 | #ifdef __STDC__ |
| 18971 | # include <limits.h> |
| 18972 | #else |
| 18973 | # include <assert.h> |
| 18974 | #endif |
| 18975 | |
| 18976 | #undef $ac_func |
| 18977 | |
| 18978 | /* Override any GCC internal prototype to avoid an error. |
| 18979 | Use char because int might match the return type of a GCC |
| 18980 | builtin and then its argument prototype would still apply. */ |
| 18981 | #ifdef __cplusplus |
| 18982 | extern "C" |
| 18983 | #endif |
| 18984 | char $ac_func (); |
| 18985 | /* The GNU C library defines this for functions which it implements |
| 18986 | to always fail with ENOSYS. Some functions are actually named |
| 18987 | something starting with __ and the normal name is an alias. */ |
| 18988 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18989 | choke me |
| 18990 | #endif |
| 18991 | |
| 18992 | int |
| 18993 | main () |
| 18994 | { |
| 18995 | return $ac_func (); |
| 18996 | ; |
| 18997 | return 0; |
| 18998 | } |
| 18999 | _ACEOF |
| 19000 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19001 | if { (ac_try="$ac_link" |
| 19002 | case "(($ac_try" in |
| 19003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19004 | *) ac_try_echo=$ac_try;; |
| 19005 | esac |
| 19006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19007 | (eval "$ac_link") 2>conftest.er1 |
| 19008 | ac_status=$? |
| 19009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19010 | rm -f conftest.er1 |
| 19011 | cat conftest.err >&5 |
| 19012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19013 | (exit $ac_status); } && |
| 19014 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19015 | { (case "(($ac_try" in |
| 19016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19017 | *) ac_try_echo=$ac_try;; |
| 19018 | esac |
| 19019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19020 | (eval "$ac_try") 2>&5 |
| 19021 | ac_status=$? |
| 19022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19023 | (exit $ac_status); }; } && |
| 19024 | { ac_try='test -s conftest$ac_exeext' |
| 19025 | { (case "(($ac_try" in |
| 19026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19027 | *) ac_try_echo=$ac_try;; |
| 19028 | esac |
| 19029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19030 | (eval "$ac_try") 2>&5 |
| 19031 | ac_status=$? |
| 19032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19033 | (exit $ac_status); }; }; then |
| 19034 | eval "$as_ac_var=yes" |
| 19035 | else |
| 19036 | echo "$as_me: failed program was:" >&5 |
| 19037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19038 | |
| 19039 | eval "$as_ac_var=no" |
| 19040 | fi |
| 19041 | |
| 19042 | rm -f core conftest.err conftest.$ac_objext \ |
| 19043 | conftest$ac_exeext conftest.$ac_ext |
| 19044 | fi |
| 19045 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19046 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19047 | echo "${ECHO_T}$ac_res" >&6; } |
| 19048 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19049 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19050 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19051 | _ACEOF |
| 19052 | |
| 19053 | fi |
| 19054 | done |
| 19055 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19056 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 19057 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 19058 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 19059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19060 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19061 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19062 | ac_cv_func_mmap_fixed_mapped=no |
| 19063 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19064 | cat >conftest.$ac_ext <<_ACEOF |
| 19065 | /* confdefs.h. */ |
| 19066 | _ACEOF |
| 19067 | cat confdefs.h >>conftest.$ac_ext |
| 19068 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19069 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19070 | $ac_includes_default |
| 19071 | /* malloc might have been renamed as rpl_malloc. */ |
| 19072 | #undef malloc |
| 19073 | |
| 19074 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 19075 | Here is a matrix of mmap possibilities: |
| 19076 | mmap private not fixed |
| 19077 | mmap private fixed at somewhere currently unmapped |
| 19078 | mmap private fixed at somewhere already mapped |
| 19079 | mmap shared not fixed |
| 19080 | mmap shared fixed at somewhere currently unmapped |
| 19081 | mmap shared fixed at somewhere already mapped |
| 19082 | For private mappings, we should verify that changes cannot be read() |
| 19083 | back from the file, nor mmap's back from the file at a different |
| 19084 | address. (There have been systems where private was not correctly |
| 19085 | implemented like the infamous i386 svr4.0, and systems where the |
| 19086 | VM page cache was not coherent with the file system buffer cache |
| 19087 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 19088 | For shared mappings, we should conversely verify that changes get |
| 19089 | propagated back to all the places they're supposed to be. |
| 19090 | |
| 19091 | Grep wants private fixed already mapped. |
| 19092 | The main things grep needs to know about mmap are: |
| 19093 | * does it exist and is it safe to write into the mmap'd area |
| 19094 | * how to use it (BSD variants) */ |
| 19095 | |
| 19096 | #include <fcntl.h> |
| 19097 | #include <sys/mman.h> |
| 19098 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19099 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19100 | char *malloc (); |
| 19101 | #endif |
| 19102 | |
| 19103 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19104 | #if !HAVE_GETPAGESIZE |
| 19105 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 19106 | # if !HAVE_SYS_PARAM_H |
| 19107 | # define HAVE_SYS_PARAM_H 1 |
| 19108 | # endif |
| 19109 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19110 | # ifdef _SC_PAGESIZE |
| 19111 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 19112 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19113 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19114 | # include <sys/param.h> |
| 19115 | # ifdef EXEC_PAGESIZE |
| 19116 | # define getpagesize() EXEC_PAGESIZE |
| 19117 | # else /* no EXEC_PAGESIZE */ |
| 19118 | # ifdef NBPG |
| 19119 | # define getpagesize() NBPG * CLSIZE |
| 19120 | # ifndef CLSIZE |
| 19121 | # define CLSIZE 1 |
| 19122 | # endif /* no CLSIZE */ |
| 19123 | # else /* no NBPG */ |
| 19124 | # ifdef NBPC |
| 19125 | # define getpagesize() NBPC |
| 19126 | # else /* no NBPC */ |
| 19127 | # ifdef PAGESIZE |
| 19128 | # define getpagesize() PAGESIZE |
| 19129 | # endif /* PAGESIZE */ |
| 19130 | # endif /* no NBPC */ |
| 19131 | # endif /* no NBPG */ |
| 19132 | # endif /* no EXEC_PAGESIZE */ |
| 19133 | # else /* no HAVE_SYS_PARAM_H */ |
| 19134 | # define getpagesize() 8192 /* punt totally */ |
| 19135 | # endif /* no HAVE_SYS_PARAM_H */ |
| 19136 | # endif /* no _SC_PAGESIZE */ |
| 19137 | |
| 19138 | #endif /* no HAVE_GETPAGESIZE */ |
| 19139 | |
| 19140 | int |
| 19141 | main () |
| 19142 | { |
| 19143 | char *data, *data2, *data3; |
| 19144 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19145 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19146 | |
| 19147 | pagesize = getpagesize (); |
| 19148 | |
| 19149 | /* First, make a file with some known garbage in it. */ |
| 19150 | data = (char *) malloc (pagesize); |
| 19151 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19152 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19153 | for (i = 0; i < pagesize; ++i) |
| 19154 | *(data + i) = rand (); |
| 19155 | umask (0); |
| 19156 | fd = creat ("conftest.mmap", 0600); |
| 19157 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19158 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19159 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19160 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19161 | close (fd); |
| 19162 | |
| 19163 | /* Next, try to mmap the file at a fixed address which already has |
| 19164 | something else allocated at it. If we can, also make sure that |
| 19165 | we see the same garbage. */ |
| 19166 | fd = open ("conftest.mmap", O_RDWR); |
| 19167 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19168 | return 1; |
| 19169 | data2 = (char *) malloc (2 * pagesize); |
| 19170 | if (!data2) |
| 19171 | return 1; |
| 19172 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19173 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19174 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19175 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19176 | for (i = 0; i < pagesize; ++i) |
| 19177 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19178 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19179 | |
| 19180 | /* Finally, make sure that changes to the mapped area do not |
| 19181 | percolate back to the file as seen by read(). (This is a bug on |
| 19182 | some variants of i386 svr4.0.) */ |
| 19183 | for (i = 0; i < pagesize; ++i) |
| 19184 | *(data2 + i) = *(data2 + i) + 1; |
| 19185 | data3 = (char *) malloc (pagesize); |
| 19186 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19187 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19188 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19189 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19190 | for (i = 0; i < pagesize; ++i) |
| 19191 | if (*(data + i) != *(data3 + i)) |
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 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19194 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19195 | } |
| 19196 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19197 | rm -f conftest$ac_exeext |
| 19198 | if { (ac_try="$ac_link" |
| 19199 | case "(($ac_try" in |
| 19200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19201 | *) ac_try_echo=$ac_try;; |
| 19202 | esac |
| 19203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19204 | (eval "$ac_link") 2>&5 |
| 19205 | ac_status=$? |
| 19206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19207 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19208 | { (case "(($ac_try" in |
| 19209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19210 | *) ac_try_echo=$ac_try;; |
| 19211 | esac |
| 19212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19213 | (eval "$ac_try") 2>&5 |
| 19214 | ac_status=$? |
| 19215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19216 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19217 | ac_cv_func_mmap_fixed_mapped=yes |
| 19218 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19219 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19220 | echo "$as_me: failed program was:" >&5 |
| 19221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19222 | |
| 19223 | ( exit $ac_status ) |
| 19224 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19225 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19226 | 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] | 19227 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19228 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19229 | |
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 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 19232 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19233 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 19234 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19235 | cat >>confdefs.h <<\_ACEOF |
| 19236 | #define HAVE_MMAP 1 |
| 19237 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19238 | |
| 19239 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19240 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19241 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19242 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 19243 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 19244 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 19245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19246 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19247 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19248 | ac_cpp='$CPP $CPPFLAGS' |
| 19249 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19250 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19251 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19252 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19253 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19254 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19255 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19256 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19257 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19258 | /* confdefs.h. */ |
| 19259 | _ACEOF |
| 19260 | cat confdefs.h >>conftest.$ac_ext |
| 19261 | cat >>conftest.$ac_ext <<_ACEOF |
| 19262 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19263 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19264 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19265 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19266 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19267 | |
| 19268 | int |
| 19269 | main () |
| 19270 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19271 | |
| 19272 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19273 | fd = creat ("foo",0777); |
| 19274 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 19275 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19276 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19277 | ; |
| 19278 | return 0; |
| 19279 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19280 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19281 | rm -f conftest$ac_exeext |
| 19282 | if { (ac_try="$ac_link" |
| 19283 | case "(($ac_try" in |
| 19284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19285 | *) ac_try_echo=$ac_try;; |
| 19286 | esac |
| 19287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19288 | (eval "$ac_link") 2>&5 |
| 19289 | ac_status=$? |
| 19290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19291 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19292 | { (case "(($ac_try" in |
| 19293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19294 | *) ac_try_echo=$ac_try;; |
| 19295 | esac |
| 19296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19297 | (eval "$ac_try") 2>&5 |
| 19298 | ac_status=$? |
| 19299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19300 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19301 | ac_cv_func_mmap_file=yes |
| 19302 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19303 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19304 | echo "$as_me: failed program was:" >&5 |
| 19305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19306 | |
| 19307 | ( exit $ac_status ) |
| 19308 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19309 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19310 | 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] | 19311 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19312 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19313 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19314 | ac_ext=c |
| 19315 | ac_cpp='$CPP $CPPFLAGS' |
| 19316 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19317 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19318 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19319 | |
| 19320 | |
| 19321 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19322 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 19323 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19324 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19325 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19326 | cat >>confdefs.h <<\_ACEOF |
| 19327 | #define HAVE_MMAP_FILE |
| 19328 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19329 | |
| 19330 | MMAP_FILE=yes |
| 19331 | |
| 19332 | fi |
| 19333 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19334 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 19335 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 19336 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 19337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19338 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 19339 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19340 | ac_cv_need_dev_zero_for_mmap=yes |
| 19341 | else |
| 19342 | ac_cv_need_dev_zero_for_mmap=no |
| 19343 | fi |
| 19344 | |
| 19345 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19346 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 19347 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19348 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 19349 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19350 | cat >>confdefs.h <<\_ACEOF |
| 19351 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 19352 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19353 | |
| 19354 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19355 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19356 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 19357 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19358 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 19359 | 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] | 19360 | fi |
| 19361 | if test "$ac_cv_func_mmap_file" = "no" |
| 19362 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19363 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 19364 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19365 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 19366 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19367 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19368 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 19369 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
| 19370 | cat >conftest.$ac_ext <<_ACEOF |
| 19371 | /* confdefs.h. */ |
| 19372 | _ACEOF |
| 19373 | cat confdefs.h >>conftest.$ac_ext |
| 19374 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19375 | /* end confdefs.h. */ |
| 19376 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19377 | volatile unsigned long val = 1; |
| 19378 | __sync_synchronize(); |
| 19379 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 19380 | __sync_add_and_fetch(&val, 1); |
| 19381 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19382 | return 0; |
| 19383 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19384 | |
| 19385 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19386 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19387 | if { (ac_try="$ac_link" |
| 19388 | case "(($ac_try" in |
| 19389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19390 | *) ac_try_echo=$ac_try;; |
| 19391 | esac |
| 19392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19393 | (eval "$ac_link") 2>conftest.er1 |
| 19394 | ac_status=$? |
| 19395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19396 | rm -f conftest.er1 |
| 19397 | cat conftest.err >&5 |
| 19398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19399 | (exit $ac_status); } && |
| 19400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19401 | { (case "(($ac_try" in |
| 19402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19403 | *) ac_try_echo=$ac_try;; |
| 19404 | esac |
| 19405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19406 | (eval "$ac_try") 2>&5 |
| 19407 | ac_status=$? |
| 19408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19409 | (exit $ac_status); }; } && |
| 19410 | { ac_try='test -s conftest$ac_exeext' |
| 19411 | { (case "(($ac_try" in |
| 19412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19413 | *) ac_try_echo=$ac_try;; |
| 19414 | esac |
| 19415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19416 | (eval "$ac_try") 2>&5 |
| 19417 | ac_status=$? |
| 19418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19419 | (exit $ac_status); }; }; then |
| 19420 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19421 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19422 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19423 | cat >>confdefs.h <<\_ACEOF |
| 19424 | #define LLVM_MULTITHREADED 1 |
| 19425 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19426 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19427 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19428 | echo "$as_me: failed program was:" >&5 |
| 19429 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19430 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19431 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19432 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19433 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19434 | cat >>confdefs.h <<\_ACEOF |
| 19435 | #define LLVM_MULTITHREADED 0 |
| 19436 | _ACEOF |
| 19437 | |
| 19438 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 19439 | 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] | 19440 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19441 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19442 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19443 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19444 | |
| 19445 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19446 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19447 | 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] | 19448 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 19449 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 19450 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 19451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19452 | else |
| 19453 | ac_ext=c |
| 19454 | ac_cpp='$CPP $CPPFLAGS' |
| 19455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19458 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19459 | cat >conftest.$ac_ext <<_ACEOF |
| 19460 | /* confdefs.h. */ |
| 19461 | _ACEOF |
| 19462 | cat confdefs.h >>conftest.$ac_ext |
| 19463 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19464 | /* end confdefs.h. */ |
| 19465 | #ifndef __x86_64__ |
| 19466 | error: Not x86-64 even if uname says so! |
| 19467 | #endif |
| 19468 | |
| 19469 | int |
| 19470 | main () |
| 19471 | { |
| 19472 | |
| 19473 | ; |
| 19474 | return 0; |
| 19475 | } |
| 19476 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19477 | rm -f conftest.$ac_objext |
| 19478 | if { (ac_try="$ac_compile" |
| 19479 | case "(($ac_try" in |
| 19480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19481 | *) ac_try_echo=$ac_try;; |
| 19482 | esac |
| 19483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19484 | (eval "$ac_compile") 2>conftest.er1 |
| 19485 | ac_status=$? |
| 19486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19487 | rm -f conftest.er1 |
| 19488 | cat conftest.err >&5 |
| 19489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19490 | (exit $ac_status); } && |
| 19491 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19492 | { (case "(($ac_try" in |
| 19493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19494 | *) ac_try_echo=$ac_try;; |
| 19495 | esac |
| 19496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19497 | (eval "$ac_try") 2>&5 |
| 19498 | ac_status=$? |
| 19499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19500 | (exit $ac_status); }; } && |
| 19501 | { ac_try='test -s conftest.$ac_objext' |
| 19502 | { (case "(($ac_try" in |
| 19503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19504 | *) ac_try_echo=$ac_try;; |
| 19505 | esac |
| 19506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19507 | (eval "$ac_try") 2>&5 |
| 19508 | ac_status=$? |
| 19509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19510 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19511 | llvm_cv_linux_mixed=no |
| 19512 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19513 | echo "$as_me: failed program was:" >&5 |
| 19514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19515 | |
| 19516 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19517 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19518 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19520 | ac_ext=c |
| 19521 | ac_cpp='$CPP $CPPFLAGS' |
| 19522 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19523 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19524 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19525 | |
| 19526 | |
| 19527 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19528 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 19529 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19530 | |
| 19531 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 19532 | llvm_cv_target_arch="x86" |
| 19533 | ARCH="x86" |
| 19534 | fi |
| 19535 | fi |
| 19536 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19537 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19538 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19539 | do |
| 19540 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19541 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19542 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19543 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19545 | else |
| 19546 | cat >conftest.$ac_ext <<_ACEOF |
| 19547 | /* confdefs.h. */ |
| 19548 | _ACEOF |
| 19549 | cat confdefs.h >>conftest.$ac_ext |
| 19550 | cat >>conftest.$ac_ext <<_ACEOF |
| 19551 | /* end confdefs.h. */ |
| 19552 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19553 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19554 | #define $ac_func innocuous_$ac_func |
| 19555 | |
| 19556 | /* System header to define __stub macros and hopefully few prototypes, |
| 19557 | which can conflict with char $ac_func (); below. |
| 19558 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19559 | <limits.h> exists even on freestanding compilers. */ |
| 19560 | |
| 19561 | #ifdef __STDC__ |
| 19562 | # include <limits.h> |
| 19563 | #else |
| 19564 | # include <assert.h> |
| 19565 | #endif |
| 19566 | |
| 19567 | #undef $ac_func |
| 19568 | |
| 19569 | /* Override any GCC internal prototype to avoid an error. |
| 19570 | Use char because int might match the return type of a GCC |
| 19571 | builtin and then its argument prototype would still apply. */ |
| 19572 | #ifdef __cplusplus |
| 19573 | extern "C" |
| 19574 | #endif |
| 19575 | char $ac_func (); |
| 19576 | /* The GNU C library defines this for functions which it implements |
| 19577 | to always fail with ENOSYS. Some functions are actually named |
| 19578 | something starting with __ and the normal name is an alias. */ |
| 19579 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19580 | choke me |
| 19581 | #endif |
| 19582 | |
| 19583 | int |
| 19584 | main () |
| 19585 | { |
| 19586 | return $ac_func (); |
| 19587 | ; |
| 19588 | return 0; |
| 19589 | } |
| 19590 | _ACEOF |
| 19591 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19592 | if { (ac_try="$ac_link" |
| 19593 | case "(($ac_try" in |
| 19594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19595 | *) ac_try_echo=$ac_try;; |
| 19596 | esac |
| 19597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19598 | (eval "$ac_link") 2>conftest.er1 |
| 19599 | ac_status=$? |
| 19600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19601 | rm -f conftest.er1 |
| 19602 | cat conftest.err >&5 |
| 19603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19604 | (exit $ac_status); } && |
| 19605 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19606 | { (case "(($ac_try" in |
| 19607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19608 | *) ac_try_echo=$ac_try;; |
| 19609 | esac |
| 19610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19611 | (eval "$ac_try") 2>&5 |
| 19612 | ac_status=$? |
| 19613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19614 | (exit $ac_status); }; } && |
| 19615 | { ac_try='test -s conftest$ac_exeext' |
| 19616 | { (case "(($ac_try" in |
| 19617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19618 | *) ac_try_echo=$ac_try;; |
| 19619 | esac |
| 19620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19621 | (eval "$ac_try") 2>&5 |
| 19622 | ac_status=$? |
| 19623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19624 | (exit $ac_status); }; }; then |
| 19625 | eval "$as_ac_var=yes" |
| 19626 | else |
| 19627 | echo "$as_me: failed program was:" >&5 |
| 19628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19629 | |
| 19630 | eval "$as_ac_var=no" |
| 19631 | fi |
| 19632 | |
| 19633 | rm -f core conftest.err conftest.$ac_objext \ |
| 19634 | conftest$ac_exeext conftest.$ac_ext |
| 19635 | fi |
| 19636 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19637 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19638 | echo "${ECHO_T}$ac_res" >&6; } |
| 19639 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19640 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19641 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19642 | _ACEOF |
| 19643 | |
| 19644 | fi |
| 19645 | done |
| 19646 | |
| 19647 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19648 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 19649 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
| 19650 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 19651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19652 | else |
| 19653 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19654 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19655 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 19656 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 19657 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19658 | if test $? -eq 0 ; then |
| 19659 | llvm_cv_llvmgcc_sanity="yes" |
| 19660 | fi |
| 19661 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 19662 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19663 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19664 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 19665 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19666 | |
| 19667 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19668 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 19669 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19670 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19671 | LLVMCC1=$llvmcc1path |
| 19672 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19673 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19674 | LLVMCC1PLUS=$llvmcc1pluspath |
| 19675 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19676 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 19677 | LLVMGCCDIR=$llvmgccdir |
| 19678 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 19679 | 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] | 19680 | LLVMGCC_LANGS=$llvmgcclangs |
| 19681 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19682 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 19683 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 19684 | fi |
| 19685 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 19686 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 19687 | |
| 19688 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19689 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19690 | # information into substitutions that will end up in Makefile.config.in |
| 19691 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 19692 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 19693 | prefix="/usr/local" |
| 19694 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19695 | eval LLVM_PREFIX="${prefix}"; |
| 19696 | eval LLVM_BINDIR="${prefix}/bin"; |
| 19697 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 19698 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 19699 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 19700 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19701 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 19702 | eval LLVM_INFODIR="${prefix}/info"; |
| 19703 | eval LLVM_MANDIR="${prefix}/man"; |
| 19704 | LLVM_CONFIGTIME=`date` |
| 19705 | |
| 19706 | |
| 19707 | |
| 19708 | |
| 19709 | |
| 19710 | |
| 19711 | |
| 19712 | |
| 19713 | |
| 19714 | |
| 19715 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19716 | # Place the various directores into the config.h file as #defines so that we |
| 19717 | # can know about the installation paths within LLVM. |
| 19718 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19719 | cat >>confdefs.h <<_ACEOF |
| 19720 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 19721 | _ACEOF |
| 19722 | |
| 19723 | |
| 19724 | cat >>confdefs.h <<_ACEOF |
| 19725 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 19726 | _ACEOF |
| 19727 | |
| 19728 | |
| 19729 | cat >>confdefs.h <<_ACEOF |
| 19730 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 19731 | _ACEOF |
| 19732 | |
| 19733 | |
| 19734 | cat >>confdefs.h <<_ACEOF |
| 19735 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 19736 | _ACEOF |
| 19737 | |
| 19738 | |
| 19739 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 19740 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19741 | _ACEOF |
| 19742 | |
| 19743 | |
| 19744 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 19745 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19746 | _ACEOF |
| 19747 | |
| 19748 | |
| 19749 | cat >>confdefs.h <<_ACEOF |
| 19750 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 19751 | _ACEOF |
| 19752 | |
| 19753 | |
| 19754 | cat >>confdefs.h <<_ACEOF |
| 19755 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 19756 | _ACEOF |
| 19757 | |
| 19758 | |
| 19759 | cat >>confdefs.h <<_ACEOF |
| 19760 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 19761 | _ACEOF |
| 19762 | |
| 19763 | |
| 19764 | cat >>confdefs.h <<_ACEOF |
| 19765 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 19766 | _ACEOF |
| 19767 | |
| 19768 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 19769 | cat >>confdefs.h <<_ACEOF |
| 19770 | #define LLVM_HOSTTRIPLE "$host" |
| 19771 | _ACEOF |
| 19772 | |
| 19773 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 19774 | # Determine which bindings to build. |
| 19775 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 19776 | BINDINGS_TO_BUILD="" |
| 19777 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 19778 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 19779 | fi |
| 19780 | fi |
| 19781 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 19782 | |
| 19783 | |
| 19784 | # This isn't really configurey, but it avoids having to repeat the list in |
| 19785 | # other files. |
| 19786 | ALL_BINDINGS=ocaml |
| 19787 | |
| 19788 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 19789 | # Do any work necessary to ensure that bindings have what they need. |
| 19790 | binding_prereqs_failed=0 |
| 19791 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 19792 | case "$a_binding" in |
| 19793 | ocaml) |
| 19794 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19795 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 19796 | 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] | 19797 | binding_prereqs_failed=1 |
| 19798 | fi |
| 19799 | if test "x$OCAMLDEP" = 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 ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 19801 | 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] | 19802 | binding_prereqs_failed=1 |
| 19803 | fi |
| 19804 | if test "x$OCAMLOPT" = 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 ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 19806 | 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] | 19807 | fi |
| 19808 | if test "x$with_ocaml_libdir" != xauto ; then |
| 19809 | OCAML_LIBDIR=$with_ocaml_libdir |
| 19810 | |
| 19811 | else |
| 19812 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 19813 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 19814 | then |
| 19815 | # ocaml stdlib is beneath our prefix; use stdlib |
| 19816 | OCAML_LIBDIR=$ocaml_stdlib |
| 19817 | |
| 19818 | else |
| 19819 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 19820 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 19821 | |
| 19822 | fi |
| 19823 | fi |
| 19824 | ;; |
| 19825 | esac |
| 19826 | done |
| 19827 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19828 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 19829 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 19830 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 19831 | fi |
| 19832 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19833 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 19834 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 19835 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 19836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19837 | else |
| 19838 | ac_ext=cpp |
| 19839 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19840 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19841 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19842 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19843 | |
| 19844 | oldcxxflags="$CXXFLAGS" |
| 19845 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19846 | cat >conftest.$ac_ext <<_ACEOF |
| 19847 | /* confdefs.h. */ |
| 19848 | _ACEOF |
| 19849 | cat confdefs.h >>conftest.$ac_ext |
| 19850 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19851 | /* end confdefs.h. */ |
| 19852 | |
| 19853 | int |
| 19854 | main () |
| 19855 | { |
| 19856 | |
| 19857 | ; |
| 19858 | return 0; |
| 19859 | } |
| 19860 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19861 | rm -f conftest.$ac_objext |
| 19862 | if { (ac_try="$ac_compile" |
| 19863 | case "(($ac_try" in |
| 19864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19865 | *) ac_try_echo=$ac_try;; |
| 19866 | esac |
| 19867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19868 | (eval "$ac_compile") 2>conftest.er1 |
| 19869 | ac_status=$? |
| 19870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19871 | rm -f conftest.er1 |
| 19872 | cat conftest.err >&5 |
| 19873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19874 | (exit $ac_status); } && |
| 19875 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19876 | { (case "(($ac_try" in |
| 19877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19878 | *) ac_try_echo=$ac_try;; |
| 19879 | esac |
| 19880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19881 | (eval "$ac_try") 2>&5 |
| 19882 | ac_status=$? |
| 19883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19884 | (exit $ac_status); }; } && |
| 19885 | { ac_try='test -s conftest.$ac_objext' |
| 19886 | { (case "(($ac_try" in |
| 19887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19888 | *) ac_try_echo=$ac_try;; |
| 19889 | esac |
| 19890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19891 | (eval "$ac_try") 2>&5 |
| 19892 | ac_status=$? |
| 19893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19894 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19895 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 19896 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19897 | echo "$as_me: failed program was:" >&5 |
| 19898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19899 | |
| 19900 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19901 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19902 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19904 | CXXFLAGS="$oldcxxflags" |
| 19905 | ac_ext=c |
| 19906 | ac_cpp='$CPP $CPPFLAGS' |
| 19907 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19908 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19909 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19910 | |
| 19911 | |
| 19912 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19913 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 19914 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19915 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 19916 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 19917 | |
| 19918 | else |
| 19919 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 19920 | |
| 19921 | fi |
| 19922 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 19923 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 19924 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 19925 | RPATH="-Wl,-R" |
| 19926 | else |
| 19927 | RPATH="-Wl,-rpath" |
| 19928 | fi |
| 19929 | |
| 19930 | |
| 19931 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 19932 | RDYNAMIC="-Wl,-export-dynamic" |
| 19933 | else |
| 19934 | RDYNAMIC="" |
| 19935 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 19936 | |
| 19937 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19938 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19939 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19940 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 19941 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 19942 | |
| 19943 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 19944 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 19945 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 19946 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 19947 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 19948 | |
Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 19949 | ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19950 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19951 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19952 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19953 | |
| 19954 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 19955 | ac_config_files="$ac_config_files llvm.spec" |
| 19956 | |
| 19957 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19958 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 19959 | |
| 19960 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 19961 | ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td" |
| 19962 | |
| 19963 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19964 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 19965 | |
| 19966 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19967 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 19968 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19969 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19970 | |
| 19971 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19972 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19973 | |
| 19974 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19975 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19976 | |
| 19977 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19978 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19979 | |
| 19980 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 19981 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 19982 | |
| 19983 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19984 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19985 | |
| 19986 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19987 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19988 | |
| 19989 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 19990 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 19991 | |
| 19992 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19993 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19994 | |
| 19995 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19996 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19997 | |
| 19998 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19999 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20000 | |
| 20001 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 20002 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 20003 | |
| 20004 | |
| 20005 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 20006 | |
| 20007 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20008 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20009 | cat >confcache <<\_ACEOF |
| 20010 | # This file is a shell script that caches the results of configure |
| 20011 | # tests run on this system so they can be shared between configure |
| 20012 | # scripts and configure runs, see configure's option --config-cache. |
| 20013 | # It is not useful on other systems. If it contains results you don't |
| 20014 | # want to keep, you may remove or edit it. |
| 20015 | # |
| 20016 | # config.status only pays attention to the cache file if you give it |
| 20017 | # the --recheck option to rerun configure. |
| 20018 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20019 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20020 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20021 | # following values. |
| 20022 | |
| 20023 | _ACEOF |
| 20024 | |
| 20025 | # The following way of writing the cache mishandles newlines in values, |
| 20026 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20027 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20028 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20029 | # 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] | 20030 | ( |
| 20031 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 20032 | eval ac_val=\$$ac_var |
| 20033 | case $ac_val in #( |
| 20034 | *${as_nl}*) |
| 20035 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20036 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 20037 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20038 | esac |
| 20039 | case $ac_var in #( |
| 20040 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20041 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20042 | esac ;; |
| 20043 | esac |
| 20044 | done |
| 20045 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20046 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20047 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 20048 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20049 | # `set' does not quote correctly, so add quotes (double-quote |
| 20050 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20051 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20052 | "s/'/'\\\\''/g; |
| 20053 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20054 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20055 | *) |
| 20056 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20057 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20058 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20059 | esac | |
| 20060 | sort |
| 20061 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20062 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20063 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20064 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20065 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20066 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20067 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20068 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20069 | :end' >>confcache |
| 20070 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 20071 | if test -w "$cache_file"; then |
| 20072 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20073 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 20074 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20075 | cat confcache >$cache_file |
| 20076 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20077 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 20078 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20079 | fi |
| 20080 | fi |
| 20081 | rm -f confcache |
| 20082 | |
| 20083 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20084 | # Let make expand exec_prefix. |
| 20085 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 20086 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20087 | DEFS=-DHAVE_CONFIG_H |
| 20088 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20089 | ac_libobjs= |
| 20090 | ac_ltlibobjs= |
| 20091 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20092 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20093 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20094 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20095 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 20096 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20097 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 20098 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20099 | done |
| 20100 | LIBOBJS=$ac_libobjs |
| 20101 | |
| 20102 | LTLIBOBJS=$ac_ltlibobjs |
| 20103 | |
| 20104 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20105 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20106 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20107 | Usually this means the macro was only invoked conditionally." >&5 |
| 20108 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20109 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20110 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20111 | fi |
| 20112 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20113 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20114 | Usually this means the macro was only invoked conditionally." >&5 |
| 20115 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20116 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20117 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20118 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20119 | |
| 20120 | : ${CONFIG_STATUS=./config.status} |
| 20121 | ac_clean_files_save=$ac_clean_files |
| 20122 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20123 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 20124 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20125 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20126 | #! $SHELL |
| 20127 | # Generated by $as_me. |
| 20128 | # Run this file to recreate the current configuration. |
| 20129 | # Compiler output produced by configure, useful for debugging |
| 20130 | # configure, is in config.log if it exists. |
| 20131 | |
| 20132 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20133 | ac_cs_recheck=false |
| 20134 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20135 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20136 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20137 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20138 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20139 | ## --------------------- ## |
| 20140 | ## M4sh Initialization. ## |
| 20141 | ## --------------------- ## |
| 20142 | |
| 20143 | # Be Bourne compatible |
| 20144 | 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] | 20145 | emulate sh |
| 20146 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20147 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20148 | # is contrary to our usage. Disable this feature. |
| 20149 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20150 | setopt NO_GLOB_SUBST |
| 20151 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20152 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20153 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20154 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 20155 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20156 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20157 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20158 | # PATH needs CR |
| 20159 | # Avoid depending upon Character Ranges. |
| 20160 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20161 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20162 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20163 | as_cr_digits='0123456789' |
| 20164 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20165 | |
| 20166 | # The user is always right. |
| 20167 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20168 | echo "#! /bin/sh" >conf$$.sh |
| 20169 | echo "exit 0" >>conf$$.sh |
| 20170 | chmod +x conf$$.sh |
| 20171 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 20172 | PATH_SEPARATOR=';' |
| 20173 | else |
| 20174 | PATH_SEPARATOR=: |
| 20175 | fi |
| 20176 | rm -f conf$$.sh |
| 20177 | fi |
| 20178 | |
| 20179 | # Support unset when possible. |
| 20180 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 20181 | as_unset=unset |
| 20182 | else |
| 20183 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20184 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20185 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20186 | |
| 20187 | # IFS |
| 20188 | # We need space, tab and new line, in precisely that order. Quoting is |
| 20189 | # there to prevent editors from complaining about space-tab. |
| 20190 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 20191 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20192 | as_nl=' |
| 20193 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20194 | IFS=" "" $as_nl" |
| 20195 | |
| 20196 | # 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] | 20197 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20198 | *[\\/]* ) as_myself=$0 ;; |
| 20199 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20200 | for as_dir in $PATH |
| 20201 | do |
| 20202 | IFS=$as_save_IFS |
| 20203 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20204 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20205 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20206 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20207 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20208 | ;; |
| 20209 | esac |
| 20210 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20211 | # in which case we are not to be found in the path. |
| 20212 | if test "x$as_myself" = x; then |
| 20213 | as_myself=$0 |
| 20214 | fi |
| 20215 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20216 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 20217 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20218 | fi |
| 20219 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20220 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20221 | for as_var in ENV MAIL MAILPATH |
| 20222 | 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] | 20223 | done |
| 20224 | PS1='$ ' |
| 20225 | PS2='> ' |
| 20226 | PS4='+ ' |
| 20227 | |
| 20228 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20229 | for as_var in \ |
| 20230 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20231 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20232 | LC_TELEPHONE LC_TIME |
| 20233 | do |
| 20234 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 20235 | eval $as_var=C; export $as_var |
| 20236 | else |
| 20237 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20238 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20239 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20240 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20241 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20242 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20243 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20244 | as_expr=expr |
| 20245 | else |
| 20246 | as_expr=false |
| 20247 | fi |
| 20248 | |
| 20249 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 20250 | as_basename=basename |
| 20251 | else |
| 20252 | as_basename=false |
| 20253 | fi |
| 20254 | |
| 20255 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20256 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20257 | as_me=`$as_basename -- "$0" || |
| 20258 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20259 | X"$0" : 'X\(//\)$' \| \ |
| 20260 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20261 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20262 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 20263 | s//\1/ |
| 20264 | q |
| 20265 | } |
| 20266 | /^X\/\(\/\/\)$/{ |
| 20267 | s//\1/ |
| 20268 | q |
| 20269 | } |
| 20270 | /^X\/\(\/\).*/{ |
| 20271 | s//\1/ |
| 20272 | q |
| 20273 | } |
| 20274 | s/.*/./; q'` |
| 20275 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20276 | # CDPATH. |
| 20277 | $as_unset CDPATH |
| 20278 | |
| 20279 | |
| 20280 | |
| 20281 | as_lineno_1=$LINENO |
| 20282 | as_lineno_2=$LINENO |
| 20283 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20284 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 20285 | |
| 20286 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20287 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20288 | # line-number line after each line using $LINENO; the second 'sed' |
| 20289 | # does the real work. The second script uses 'N' to pair each |
| 20290 | # line-number line with the line containing $LINENO, and appends |
| 20291 | # trailing '-' during substitution so that $LINENO is not a special |
| 20292 | # case at line end. |
| 20293 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20294 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 20295 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 20296 | sed -n ' |
| 20297 | p |
| 20298 | /[$]LINENO/= |
| 20299 | ' <$as_myself | |
| 20300 | sed ' |
| 20301 | s/[$]LINENO.*/&-/ |
| 20302 | t lineno |
| 20303 | b |
| 20304 | :lineno |
| 20305 | N |
| 20306 | :loop |
| 20307 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 20308 | t loop |
| 20309 | s/-\n.*// |
| 20310 | ' >$as_me.lineno && |
| 20311 | chmod +x "$as_me.lineno" || |
| 20312 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 20313 | { (exit 1); exit 1; }; } |
| 20314 | |
| 20315 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20316 | # (the dirname of $[0] is not the place where we might find the |
| 20317 | # original and so on. Autoconf is especially sensitive to this). |
| 20318 | . "./$as_me.lineno" |
| 20319 | # Exit status is that of the last command. |
| 20320 | exit |
| 20321 | } |
| 20322 | |
| 20323 | |
| 20324 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 20325 | as_dirname=dirname |
| 20326 | else |
| 20327 | as_dirname=false |
| 20328 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20329 | |
| 20330 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20331 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20332 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20333 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20334 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20335 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20336 | esac;; |
| 20337 | *) |
| 20338 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20339 | esac |
| 20340 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20341 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20342 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20343 | as_expr=expr |
| 20344 | else |
| 20345 | as_expr=false |
| 20346 | fi |
| 20347 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20348 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20349 | if test -d conf$$.dir; then |
| 20350 | rm -f conf$$.dir/conf$$.file |
| 20351 | else |
| 20352 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20353 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20354 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20355 | echo >conf$$.file |
| 20356 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20357 | as_ln_s='ln -s' |
| 20358 | # ... but there are two gotchas: |
| 20359 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 20360 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 20361 | # In both cases, we have to default to `cp -p'. |
| 20362 | 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] | 20363 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20364 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20365 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20366 | else |
| 20367 | as_ln_s='cp -p' |
| 20368 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20369 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 20370 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20371 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20372 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20373 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20374 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20375 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20376 | as_mkdir_p=false |
| 20377 | fi |
| 20378 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20379 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 20380 | # systems may use methods other than mode bits to determine executability. |
| 20381 | cat >conf$$.file <<_ASEOF |
| 20382 | #! /bin/sh |
| 20383 | exit 0 |
| 20384 | _ASEOF |
| 20385 | chmod +x conf$$.file |
| 20386 | if test -x conf$$.file >/dev/null 2>&1; then |
| 20387 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20388 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20389 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20390 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20391 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20392 | |
| 20393 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20394 | 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] | 20395 | |
| 20396 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20397 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20398 | |
| 20399 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20400 | exec 6>&1 |
| 20401 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20402 | # 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] | 20403 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20404 | # values after options handling. |
| 20405 | ac_log=" |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 20406 | This file was extended by llvm $as_me 2.7svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20407 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20408 | |
| 20409 | CONFIG_FILES = $CONFIG_FILES |
| 20410 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20411 | CONFIG_LINKS = $CONFIG_LINKS |
| 20412 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20413 | $ $0 $@ |
| 20414 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20415 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 20416 | " |
| 20417 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20418 | _ACEOF |
| 20419 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20420 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20421 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20422 | config_files="$ac_config_files" |
| 20423 | config_headers="$ac_config_headers" |
| 20424 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20425 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20426 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20427 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20428 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20429 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20430 | \`$as_me' instantiates files from templates according to the |
| 20431 | current configuration. |
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 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20434 | |
| 20435 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20436 | -V, --version print version number, then exit |
| 20437 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20438 | -d, --debug don't remove temporary files |
| 20439 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20440 | --file=FILE[:TEMPLATE] |
| 20441 | instantiate the configuration file FILE |
| 20442 | --header=FILE[:TEMPLATE] |
| 20443 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20444 | |
| 20445 | Configuration files: |
| 20446 | $config_files |
| 20447 | |
| 20448 | Configuration headers: |
| 20449 | $config_headers |
| 20450 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20451 | Configuration commands: |
| 20452 | $config_commands |
| 20453 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20454 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20455 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20456 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20457 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20458 | ac_cs_version="\\ |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 20459 | llvm config.status 2.7svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20460 | configured by $0, generated by GNU Autoconf 2.60, |
| 20461 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20462 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20463 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20464 | This config.status script is free software; the Free Software Foundation |
| 20465 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20466 | |
| 20467 | ac_pwd='$ac_pwd' |
| 20468 | srcdir='$srcdir' |
| 20469 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20470 | _ACEOF |
| 20471 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20472 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20473 | # If no file are specified by the user, then we need to provide default |
| 20474 | # 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] | 20475 | ac_need_defaults=: |
| 20476 | while test $# != 0 |
| 20477 | do |
| 20478 | case $1 in |
| 20479 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20480 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 20481 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20482 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20483 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20484 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20485 | ac_option=$1 |
| 20486 | ac_optarg=$2 |
| 20487 | ac_shift=shift |
| 20488 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20489 | esac |
| 20490 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20491 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20492 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20493 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20494 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20495 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20496 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20497 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20498 | debug=: ;; |
| 20499 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20500 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20501 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20502 | ac_need_defaults=false;; |
| 20503 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20504 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20505 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20506 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20507 | --he | --h) |
| 20508 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20509 | { echo "$as_me: error: ambiguous option: $1 |
| 20510 | Try \`$0 --help' for more information." >&2 |
| 20511 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20512 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20513 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20514 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20515 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20516 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20517 | |
| 20518 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20519 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 20520 | Try \`$0 --help' for more information." >&2 |
| 20521 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20522 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20523 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20524 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20525 | |
| 20526 | esac |
| 20527 | shift |
| 20528 | done |
| 20529 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20530 | ac_configure_extra_args= |
| 20531 | |
| 20532 | if $ac_cs_silent; then |
| 20533 | exec 6>/dev/null |
| 20534 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20535 | fi |
| 20536 | |
| 20537 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20538 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20539 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20540 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20541 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20542 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20543 | 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] | 20544 | fi |
| 20545 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20546 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20547 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20548 | exec 5>>config.log |
| 20549 | { |
| 20550 | echo |
| 20551 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20552 | ## Running $as_me. ## |
| 20553 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20554 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20555 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20556 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20557 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20558 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20559 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20560 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20561 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 20562 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20563 | |
| 20564 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20565 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20566 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20567 | |
| 20568 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20569 | for ac_config_target in $ac_config_targets |
| 20570 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20571 | case $ac_config_target in |
| 20572 | "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] | 20573 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 20574 | "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] | 20575 | "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] | 20576 | "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] | 20577 | "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] | 20578 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 20579 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20580 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 20581 | "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] | 20582 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 20583 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 20584 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 20585 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 20586 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 20587 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 20588 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20589 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 20590 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 20591 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20592 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 20593 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 20594 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 20595 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 20596 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20597 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20598 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 20599 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 20600 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20601 | esac |
| 20602 | done |
| 20603 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20604 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20605 | # If the user did not use the arguments to specify the items to instantiate, |
| 20606 | # then the envvar interface is used. Set only those that are not. |
| 20607 | # We use the long form for the default assignment because of an extremely |
| 20608 | # bizarre bug on SunOS 4.1.3. |
| 20609 | if $ac_need_defaults; then |
| 20610 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20611 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20612 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20613 | fi |
| 20614 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20615 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20616 | # 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] | 20617 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20618 | # Hook for its removal unless debugging. |
| 20619 | # Note that there is a small window in which the directory will not be cleaned: |
| 20620 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20621 | $debug || |
| 20622 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20623 | tmp= |
| 20624 | trap 'exit_status=$? |
| 20625 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 20626 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20627 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20628 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20629 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20630 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20631 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20632 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20633 | test -n "$tmp" && test -d "$tmp" |
| 20634 | } || |
| 20635 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20636 | tmp=./conf$$-$RANDOM |
| 20637 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20638 | } || |
| 20639 | { |
| 20640 | echo "$me: cannot create a temporary directory in ." >&2 |
| 20641 | { (exit 1); exit 1; } |
| 20642 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20643 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20644 | # |
| 20645 | # Set up the sed scripts for CONFIG_FILES section. |
| 20646 | # |
| 20647 | |
| 20648 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 20649 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20650 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20651 | |
| 20652 | _ACEOF |
| 20653 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20654 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20655 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20656 | ac_delim='%!_!# ' |
| 20657 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20658 | cat >conf$$subs.sed <<_ACEOF |
| 20659 | SHELL!$SHELL$ac_delim |
| 20660 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 20661 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 20662 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 20663 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 20664 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 20665 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 20666 | exec_prefix!$exec_prefix$ac_delim |
| 20667 | prefix!$prefix$ac_delim |
| 20668 | program_transform_name!$program_transform_name$ac_delim |
| 20669 | bindir!$bindir$ac_delim |
| 20670 | sbindir!$sbindir$ac_delim |
| 20671 | libexecdir!$libexecdir$ac_delim |
| 20672 | datarootdir!$datarootdir$ac_delim |
| 20673 | datadir!$datadir$ac_delim |
| 20674 | sysconfdir!$sysconfdir$ac_delim |
| 20675 | sharedstatedir!$sharedstatedir$ac_delim |
| 20676 | localstatedir!$localstatedir$ac_delim |
| 20677 | includedir!$includedir$ac_delim |
| 20678 | oldincludedir!$oldincludedir$ac_delim |
| 20679 | docdir!$docdir$ac_delim |
| 20680 | infodir!$infodir$ac_delim |
| 20681 | htmldir!$htmldir$ac_delim |
| 20682 | dvidir!$dvidir$ac_delim |
| 20683 | pdfdir!$pdfdir$ac_delim |
| 20684 | psdir!$psdir$ac_delim |
| 20685 | libdir!$libdir$ac_delim |
| 20686 | localedir!$localedir$ac_delim |
| 20687 | mandir!$mandir$ac_delim |
| 20688 | DEFS!$DEFS$ac_delim |
| 20689 | ECHO_C!$ECHO_C$ac_delim |
| 20690 | ECHO_N!$ECHO_N$ac_delim |
| 20691 | ECHO_T!$ECHO_T$ac_delim |
| 20692 | LIBS!$LIBS$ac_delim |
| 20693 | build_alias!$build_alias$ac_delim |
| 20694 | host_alias!$host_alias$ac_delim |
| 20695 | target_alias!$target_alias$ac_delim |
| 20696 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 20697 | subdirs!$subdirs$ac_delim |
| 20698 | build!$build$ac_delim |
| 20699 | build_cpu!$build_cpu$ac_delim |
| 20700 | build_vendor!$build_vendor$ac_delim |
| 20701 | build_os!$build_os$ac_delim |
| 20702 | host!$host$ac_delim |
| 20703 | host_cpu!$host_cpu$ac_delim |
| 20704 | host_vendor!$host_vendor$ac_delim |
| 20705 | host_os!$host_os$ac_delim |
| 20706 | target!$target$ac_delim |
| 20707 | target_cpu!$target_cpu$ac_delim |
| 20708 | target_vendor!$target_vendor$ac_delim |
| 20709 | target_os!$target_os$ac_delim |
| 20710 | OS!$OS$ac_delim |
| 20711 | HOST_OS!$HOST_OS$ac_delim |
| 20712 | TARGET_OS!$TARGET_OS$ac_delim |
| 20713 | LINKALL!$LINKALL$ac_delim |
| 20714 | NOLINKALL!$NOLINKALL$ac_delim |
| 20715 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 20716 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 20717 | ARCH!$ARCH$ac_delim |
| 20718 | ENDIAN!$ENDIAN$ac_delim |
| 20719 | CC!$CC$ac_delim |
| 20720 | CFLAGS!$CFLAGS$ac_delim |
| 20721 | LDFLAGS!$LDFLAGS$ac_delim |
| 20722 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 20723 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 20724 | EXEEXT!$EXEEXT$ac_delim |
| 20725 | OBJEXT!$OBJEXT$ac_delim |
| 20726 | CPP!$CPP$ac_delim |
| 20727 | GREP!$GREP$ac_delim |
| 20728 | EGREP!$EGREP$ac_delim |
| 20729 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 20730 | BUILD_CC!$BUILD_CC$ac_delim |
| 20731 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 20732 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 20733 | CVSBUILD!$CVSBUILD$ac_delim |
| 20734 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 20735 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 20736 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 20737 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 20738 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 20739 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 20740 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 20741 | JIT!$JIT$ac_delim |
| 20742 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 20743 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 20744 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
| 20745 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
| 20746 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 20747 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 20748 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
| 20749 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
| 20750 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
| 20751 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame^] | 20752 | CLANGPATH!$CLANGPATH$ac_delim |
| 20753 | CLANGXXPATH!$CLANGXXPATH$ac_delim |
| 20754 | ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20755 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20756 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20757 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20758 | 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] | 20759 | break |
| 20760 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20761 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 20762 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 20763 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20764 | else |
| 20765 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20766 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20767 | done |
| 20768 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20769 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 20770 | if test -n "$ac_eof"; then |
| 20771 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 20772 | ac_eof=`expr $ac_eof + 1` |
| 20773 | fi |
| 20774 | |
| 20775 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20776 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 20777 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20778 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20779 | sed ' |
| 20780 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 20781 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 20782 | :n |
| 20783 | t n |
| 20784 | s/'"$ac_delim"'$/,g/; t |
| 20785 | s/$/\\/; p |
| 20786 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 20787 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 20788 | rm -f conf$$subs.sed |
| 20789 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20790 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20791 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20792 | |
| 20793 | |
| 20794 | ac_delim='%!_!# ' |
| 20795 | for ac_last_try in false false false false false :; do |
| 20796 | cat >conf$$subs.sed <<_ACEOF |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame^] | 20797 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 20798 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
| 20799 | ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20800 | ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim |
| 20801 | CXX!$CXX$ac_delim |
| 20802 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 20803 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 20804 | NM!$NM$ac_delim |
| 20805 | ifGNUmake!$ifGNUmake$ac_delim |
| 20806 | LN_S!$LN_S$ac_delim |
| 20807 | CMP!$CMP$ac_delim |
| 20808 | CP!$CP$ac_delim |
| 20809 | DATE!$DATE$ac_delim |
| 20810 | FIND!$FIND$ac_delim |
| 20811 | MKDIR!$MKDIR$ac_delim |
| 20812 | MV!$MV$ac_delim |
| 20813 | RANLIB!$RANLIB$ac_delim |
| 20814 | AR!$AR$ac_delim |
| 20815 | RM!$RM$ac_delim |
| 20816 | SED!$SED$ac_delim |
| 20817 | TAR!$TAR$ac_delim |
| 20818 | BINPWD!$BINPWD$ac_delim |
| 20819 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 20820 | DOT!$DOT$ac_delim |
| 20821 | FDP!$FDP$ac_delim |
| 20822 | NEATO!$NEATO$ac_delim |
| 20823 | TWOPI!$TWOPI$ac_delim |
| 20824 | CIRCO!$CIRCO$ac_delim |
| 20825 | GV!$GV$ac_delim |
| 20826 | DOTTY!$DOTTY$ac_delim |
| 20827 | PERL!$PERL$ac_delim |
| 20828 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 20829 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 20830 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 20831 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 20832 | BZIP2!$BZIP2$ac_delim |
| 20833 | DOXYGEN!$DOXYGEN$ac_delim |
| 20834 | GROFF!$GROFF$ac_delim |
| 20835 | GZIP!$GZIP$ac_delim |
| 20836 | POD2HTML!$POD2HTML$ac_delim |
| 20837 | POD2MAN!$POD2MAN$ac_delim |
| 20838 | RUNTEST!$RUNTEST$ac_delim |
| 20839 | TCLSH!$TCLSH$ac_delim |
| 20840 | ZIP!$ZIP$ac_delim |
| 20841 | OCAMLC!$OCAMLC$ac_delim |
| 20842 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 20843 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 20844 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 20845 | GAS!$GAS$ac_delim |
| 20846 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 20847 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 20848 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 20849 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 20850 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 20851 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 20852 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
| 20853 | LLVMGCC!$LLVMGCC$ac_delim |
| 20854 | LLVMGXX!$LLVMGXX$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame^] | 20855 | LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20856 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 20857 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
| 20858 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 20859 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 20860 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 20861 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 20862 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 20863 | LLVMCC1!$LLVMCC1$ac_delim |
| 20864 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 20865 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20866 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
| 20867 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 20868 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 20869 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 20870 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 20871 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 20872 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 20873 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 20874 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 20875 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 20876 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 20877 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 20878 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 20879 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
| 20880 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 20881 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 20882 | RPATH!$RPATH$ac_delim |
| 20883 | RDYNAMIC!$RDYNAMIC$ac_delim |
| 20884 | LIBOBJS!$LIBOBJS$ac_delim |
| 20885 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20886 | _ACEOF |
| 20887 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame^] | 20888 | 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] | 20889 | break |
| 20890 | elif $ac_last_try; then |
| 20891 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 20892 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 20893 | { (exit 1); exit 1; }; } |
| 20894 | else |
| 20895 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 20896 | fi |
| 20897 | done |
| 20898 | |
| 20899 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 20900 | if test -n "$ac_eof"; then |
| 20901 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 20902 | ac_eof=`expr $ac_eof + 1` |
| 20903 | fi |
| 20904 | |
| 20905 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20906 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 20907 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 20908 | _ACEOF |
| 20909 | sed ' |
| 20910 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 20911 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 20912 | :n |
| 20913 | t n |
| 20914 | s/'"$ac_delim"'$/,g/; t |
| 20915 | s/$/\\/; p |
| 20916 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 20917 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 20918 | rm -f conf$$subs.sed |
| 20919 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20920 | :end |
| 20921 | s/|#_!!_#|//g |
| 20922 | CEOF$ac_eof |
| 20923 | _ACEOF |
| 20924 | |
| 20925 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20926 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 20927 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 20928 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20929 | # (actually we leave an empty line to preserve line numbers). |
| 20930 | if test "x$srcdir" = x.; then |
| 20931 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 20932 | s/:*\$(srcdir):*/:/ |
| 20933 | s/:*\${srcdir}:*/:/ |
| 20934 | s/:*@srcdir@:*/:/ |
| 20935 | s/^\([^=]*=[ ]*\):*/\1/ |
| 20936 | s/:*$// |
| 20937 | s/^[^=]*=[ ]*$// |
| 20938 | }' |
| 20939 | fi |
| 20940 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20941 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20942 | fi # test -n "$CONFIG_FILES" |
| 20943 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20944 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20945 | 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] | 20946 | do |
| 20947 | case $ac_tag in |
| 20948 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 20949 | esac |
| 20950 | case $ac_mode$ac_tag in |
| 20951 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20952 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 20953 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 20954 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20955 | :[FH]-) ac_tag=-:-;; |
| 20956 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 20957 | esac |
| 20958 | ac_save_IFS=$IFS |
| 20959 | IFS=: |
| 20960 | set x $ac_tag |
| 20961 | IFS=$ac_save_IFS |
| 20962 | shift |
| 20963 | ac_file=$1 |
| 20964 | shift |
| 20965 | |
| 20966 | case $ac_mode in |
| 20967 | :L) ac_source=$1;; |
| 20968 | :[FH]) |
| 20969 | ac_file_inputs= |
| 20970 | for ac_f |
| 20971 | do |
| 20972 | case $ac_f in |
| 20973 | -) ac_f="$tmp/stdin";; |
| 20974 | *) # Look for the file first in the build tree, then in the source tree |
| 20975 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 20976 | # because $ac_f cannot contain `:'. |
| 20977 | test -f "$ac_f" || |
| 20978 | case $ac_f in |
| 20979 | [\\/$]*) false;; |
| 20980 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 20981 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20982 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 20983 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 20984 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20985 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20986 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20987 | done |
| 20988 | |
| 20989 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 20990 | # use $as_me), people would be surprised to read: |
| 20991 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20992 | configure_input="Generated from "`IFS=: |
| 20993 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20994 | if test x"$ac_file" != x-; then |
| 20995 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20996 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 20997 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20998 | fi |
| 20999 | |
| 21000 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21001 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21002 | esac |
| 21003 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21004 | esac |
| 21005 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21006 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21007 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21008 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21009 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21010 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21011 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21012 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21013 | s//\1/ |
| 21014 | q |
| 21015 | } |
| 21016 | /^X\(\/\/\)[^/].*/{ |
| 21017 | s//\1/ |
| 21018 | q |
| 21019 | } |
| 21020 | /^X\(\/\/\)$/{ |
| 21021 | s//\1/ |
| 21022 | q |
| 21023 | } |
| 21024 | /^X\(\/\).*/{ |
| 21025 | s//\1/ |
| 21026 | q |
| 21027 | } |
| 21028 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21029 | { as_dir="$ac_dir" |
| 21030 | case $as_dir in #( |
| 21031 | -*) as_dir=./$as_dir;; |
| 21032 | esac |
| 21033 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 21034 | as_dirs= |
| 21035 | while :; do |
| 21036 | case $as_dir in #( |
| 21037 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21038 | *) as_qdir=$as_dir;; |
| 21039 | esac |
| 21040 | as_dirs="'$as_qdir' $as_dirs" |
| 21041 | as_dir=`$as_dirname -- "$as_dir" || |
| 21042 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21043 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21044 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21045 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 21046 | echo X"$as_dir" | |
| 21047 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21048 | s//\1/ |
| 21049 | q |
| 21050 | } |
| 21051 | /^X\(\/\/\)[^/].*/{ |
| 21052 | s//\1/ |
| 21053 | q |
| 21054 | } |
| 21055 | /^X\(\/\/\)$/{ |
| 21056 | s//\1/ |
| 21057 | q |
| 21058 | } |
| 21059 | /^X\(\/\).*/{ |
| 21060 | s//\1/ |
| 21061 | q |
| 21062 | } |
| 21063 | s/.*/./; q'` |
| 21064 | test -d "$as_dir" && break |
| 21065 | done |
| 21066 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21067 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21068 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 21069 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21070 | ac_builddir=. |
| 21071 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21072 | case "$ac_dir" in |
| 21073 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21074 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21075 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21076 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21077 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21078 | case $ac_top_builddir_sub in |
| 21079 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21080 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21081 | esac ;; |
| 21082 | esac |
| 21083 | ac_abs_top_builddir=$ac_pwd |
| 21084 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21085 | # for backward compatibility: |
| 21086 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21087 | |
| 21088 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21089 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21090 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21091 | ac_top_srcdir=$ac_top_builddir_sub |
| 21092 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21093 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21094 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21095 | ac_top_srcdir=$srcdir |
| 21096 | ac_abs_top_srcdir=$srcdir ;; |
| 21097 | *) # Relative name. |
| 21098 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21099 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21100 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21101 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21102 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21103 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21104 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21105 | case $ac_mode in |
| 21106 | :F) |
| 21107 | # |
| 21108 | # CONFIG_FILE |
| 21109 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21110 | |
| 21111 | case $INSTALL in |
| 21112 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21113 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21114 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21115 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21116 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21117 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21118 | # If the template does not know about datarootdir, expand it. |
| 21119 | # FIXME: This hack should be removed a few years after 2.60. |
| 21120 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21121 | |
| 21122 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21123 | p |
| 21124 | q |
| 21125 | } |
| 21126 | /@datadir@/p |
| 21127 | /@docdir@/p |
| 21128 | /@infodir@/p |
| 21129 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21130 | /@mandir@/p |
| 21131 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21132 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 21133 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21134 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 21135 | 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] | 21136 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21137 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21138 | ac_datarootdir_hack=' |
| 21139 | s&@datadir@&$datadir&g |
| 21140 | s&@docdir@&$docdir&g |
| 21141 | s&@infodir@&$infodir&g |
| 21142 | s&@localedir@&$localedir&g |
| 21143 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21144 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21145 | esac |
| 21146 | _ACEOF |
| 21147 | |
| 21148 | # Neutralize VPATH when `$srcdir' = `.'. |
| 21149 | # Shell code in configure.ac might set extrasub. |
| 21150 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21151 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21152 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21153 | $extrasub |
| 21154 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21155 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21156 | :t |
| 21157 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21158 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21159 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 21160 | s&@srcdir@&$ac_srcdir&;t t |
| 21161 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 21162 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 21163 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 21164 | s&@builddir@&$ac_builddir&;t t |
| 21165 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 21166 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 21167 | s&@INSTALL@&$ac_INSTALL&;t t |
| 21168 | $ac_datarootdir_hack |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21169 | " $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] | 21170 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21171 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 21172 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 21173 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21174 | { 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] | 21175 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21176 | 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] | 21177 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21178 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21179 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21180 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21181 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 21182 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 21183 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21184 | ;; |
| 21185 | :H) |
| 21186 | # |
| 21187 | # CONFIG_HEADER |
| 21188 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21189 | _ACEOF |
| 21190 | |
| 21191 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 21192 | # substitutes the proper values into config.h.in to produce config.h. |
| 21193 | rm -f conftest.defines conftest.tail |
| 21194 | # First, append a space to every undef/define line, to ease matching. |
| 21195 | echo 's/$/ /' >conftest.defines |
| 21196 | # Then, protect against being on the right side of a sed subst, or in |
| 21197 | # an unquoted here document, in config.status. If some macros were |
| 21198 | # called several times there might be several #defines for the same |
| 21199 | # symbol, which is useless. But do not sort them, since the last |
| 21200 | # AC_DEFINE must be honored. |
| 21201 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 21202 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 21203 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 21204 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 21205 | # just an empty string. |
| 21206 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 21207 | ac_dB='\\)[ (].*,\\1define\\2' |
| 21208 | ac_dC=' ' |
| 21209 | ac_dD=' ,' |
| 21210 | |
| 21211 | uniq confdefs.h | |
| 21212 | sed -n ' |
| 21213 | t rset |
| 21214 | :rset |
| 21215 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 21216 | t ok |
| 21217 | d |
| 21218 | :ok |
| 21219 | s/[\\&,]/\\&/g |
| 21220 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 21221 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 21222 | ' >>conftest.defines |
| 21223 | |
| 21224 | # Remove the space that was appended to ease matching. |
| 21225 | # Then replace #undef with comments. This is necessary, for |
| 21226 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21227 | # on some systems where configure will not decide to define it. |
| 21228 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 21229 | echo 's/ $// |
| 21230 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 21231 | |
| 21232 | # Break up conftest.defines: |
| 21233 | ac_max_sed_lines=50 |
| 21234 | |
| 21235 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 21236 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 21237 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 21238 | # et cetera. |
| 21239 | ac_in='$ac_file_inputs' |
| 21240 | ac_out='"$tmp/out1"' |
| 21241 | ac_nxt='"$tmp/out2"' |
| 21242 | |
| 21243 | while : |
| 21244 | do |
| 21245 | # Write a here document: |
| 21246 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21247 | # First, check the format of the line: |
| 21248 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 21249 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 21250 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 21251 | b |
| 21252 | :def |
| 21253 | _ACEOF |
| 21254 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 21255 | echo 'CEOF |
| 21256 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 21257 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 21258 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 21259 | grep . conftest.tail >/dev/null || break |
| 21260 | rm -f conftest.defines |
| 21261 | mv conftest.tail conftest.defines |
| 21262 | done |
| 21263 | rm -f conftest.defines conftest.tail |
| 21264 | |
| 21265 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 21266 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21267 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21268 | echo "/* $configure_input */" >"$tmp/config.h" |
| 21269 | cat "$ac_result" >>"$tmp/config.h" |
| 21270 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 21271 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 21272 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21273 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21274 | rm -f $ac_file |
| 21275 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21276 | fi |
| 21277 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21278 | echo "/* $configure_input */" |
| 21279 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21280 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21281 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21282 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21283 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21284 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 21285 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21286 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21287 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21288 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21289 | |
| 21290 | case $ac_file$ac_mode in |
| 21291 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21292 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21293 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21294 | ${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] | 21295 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21296 | ${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] | 21297 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21298 | ${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] | 21299 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21300 | ${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] | 21301 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21302 | ${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] | 21303 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21304 | ${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] | 21305 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21306 | ${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] | 21307 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21308 | ${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] | 21309 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21310 | ${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] | 21311 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21312 | ${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] | 21313 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21314 | ${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] | 21315 | "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] | 21316 | ${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] | 21317 | |
| 21318 | esac |
| 21319 | done # for ac_tag |
| 21320 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21321 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21322 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21323 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21324 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21325 | ac_clean_files=$ac_clean_files_save |
| 21326 | |
| 21327 | |
| 21328 | # configure is writing to config.log, and then calls config.status. |
| 21329 | # config.status does its own redirection, appending to config.log. |
| 21330 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21331 | # by configure, so config.status won't be able to write to it; its |
| 21332 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21333 | # effectively closing config.log, so it can be properly (re)opened and |
| 21334 | # appended to by config.status. When coming back to configure, we |
| 21335 | # need to make the FD available again. |
| 21336 | if test "$no_create" != yes; then |
| 21337 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21338 | ac_config_status_args= |
| 21339 | test "$silent" = yes && |
| 21340 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21341 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21342 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21343 | exec 5>>config.log |
| 21344 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21345 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21346 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21347 | fi |
| 21348 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21349 | # |
| 21350 | # CONFIG_SUBDIRS section. |
| 21351 | # |
| 21352 | if test "$no_recursion" != yes; then |
| 21353 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21354 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21355 | ac_sub_configure_args= |
| 21356 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21357 | eval "set x $ac_configure_args" |
| 21358 | shift |
| 21359 | for ac_arg |
| 21360 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21361 | if test -n "$ac_prev"; then |
| 21362 | ac_prev= |
| 21363 | continue |
| 21364 | fi |
| 21365 | case $ac_arg in |
| 21366 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 21367 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 21368 | ac_prev=cache_file ;; |
| 21369 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 21370 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 21371 | | --c=*) |
| 21372 | ;; |
| 21373 | --config-cache | -C) |
| 21374 | ;; |
| 21375 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 21376 | ac_prev=srcdir ;; |
| 21377 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 21378 | ;; |
| 21379 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 21380 | ac_prev=prefix ;; |
| 21381 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 21382 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21383 | *) |
| 21384 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21385 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21386 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21387 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21388 | esac |
| 21389 | done |
| 21390 | |
| 21391 | # Always prepend --prefix to ensure using the same prefix |
| 21392 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21393 | ac_arg="--prefix=$prefix" |
| 21394 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21395 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21396 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21397 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21398 | |
| 21399 | ac_popdir=`pwd` |
| 21400 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 21401 | |
| 21402 | # Do not complain, so a configure script can configure whichever |
| 21403 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21404 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21405 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21406 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21407 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 21408 | echo "$ac_msg" >&6 |
| 21409 | { as_dir="$ac_dir" |
| 21410 | case $as_dir in #( |
| 21411 | -*) as_dir=./$as_dir;; |
| 21412 | esac |
| 21413 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 21414 | as_dirs= |
| 21415 | while :; do |
| 21416 | case $as_dir in #( |
| 21417 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21418 | *) as_qdir=$as_dir;; |
| 21419 | esac |
| 21420 | as_dirs="'$as_qdir' $as_dirs" |
| 21421 | as_dir=`$as_dirname -- "$as_dir" || |
| 21422 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21423 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21424 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21425 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 21426 | echo X"$as_dir" | |
| 21427 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21428 | s//\1/ |
| 21429 | q |
| 21430 | } |
| 21431 | /^X\(\/\/\)[^/].*/{ |
| 21432 | s//\1/ |
| 21433 | q |
| 21434 | } |
| 21435 | /^X\(\/\/\)$/{ |
| 21436 | s//\1/ |
| 21437 | q |
| 21438 | } |
| 21439 | /^X\(\/\).*/{ |
| 21440 | s//\1/ |
| 21441 | q |
| 21442 | } |
| 21443 | s/.*/./; q'` |
| 21444 | test -d "$as_dir" && break |
| 21445 | done |
| 21446 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21447 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21448 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 21449 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21450 | ac_builddir=. |
| 21451 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21452 | case "$ac_dir" in |
| 21453 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21454 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21455 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21456 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21457 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21458 | case $ac_top_builddir_sub in |
| 21459 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21460 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21461 | esac ;; |
| 21462 | esac |
| 21463 | ac_abs_top_builddir=$ac_pwd |
| 21464 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21465 | # for backward compatibility: |
| 21466 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21467 | |
| 21468 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21469 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21470 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21471 | ac_top_srcdir=$ac_top_builddir_sub |
| 21472 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21473 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21474 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21475 | ac_top_srcdir=$srcdir |
| 21476 | ac_abs_top_srcdir=$srcdir ;; |
| 21477 | *) # Relative name. |
| 21478 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21479 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21480 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21481 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21482 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21483 | |
| 21484 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21485 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21486 | |
| 21487 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21488 | if test -f "$ac_srcdir/configure.gnu"; then |
| 21489 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 21490 | elif test -f "$ac_srcdir/configure"; then |
| 21491 | ac_sub_configure=$ac_srcdir/configure |
| 21492 | elif test -f "$ac_srcdir/configure.in"; then |
| 21493 | # This should be Cygnus configure. |
| 21494 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21495 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21496 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 21497 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21498 | ac_sub_configure= |
| 21499 | fi |
| 21500 | |
| 21501 | # The recursion is here. |
| 21502 | if test -n "$ac_sub_configure"; then |
| 21503 | # Make the cache file name correct relative to the subdirectory. |
| 21504 | case $cache_file in |
| 21505 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21506 | *) # Relative name. |
| 21507 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21508 | esac |
| 21509 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21510 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 21511 | 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] | 21512 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21513 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 21514 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21515 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 21516 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 21517 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21518 | fi |
| 21519 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21520 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21521 | done |
| 21522 | fi |
| 21523 | |