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. |
Eric Christopher | b26697c | 2010-09-06 18:47:10 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 2.9svn. |
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 | # |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2010 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 | |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 17 | # Be Bourne compatible |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
John Criswell | 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-' |
Eric Christopher | b26697c | 2010-09-06 18:47:10 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='2.9svn' |
| 565 | PACKAGE_STRING='llvm 2.9svn' |
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 |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 644 | ENABLE_POLLY |
| 645 | LLVM_HAS_POLLY |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 646 | build |
| 647 | build_cpu |
| 648 | build_vendor |
| 649 | build_os |
| 650 | host |
| 651 | host_cpu |
| 652 | host_vendor |
| 653 | host_os |
| 654 | target |
| 655 | target_cpu |
| 656 | target_vendor |
| 657 | target_os |
| 658 | OS |
| 659 | HOST_OS |
| 660 | TARGET_OS |
| 661 | LINKALL |
| 662 | NOLINKALL |
| 663 | LLVM_ON_UNIX |
| 664 | LLVM_ON_WIN32 |
| 665 | ARCH |
| 666 | ENDIAN |
| 667 | CC |
| 668 | CFLAGS |
| 669 | LDFLAGS |
| 670 | CPPFLAGS |
| 671 | ac_ct_CC |
| 672 | EXEEXT |
| 673 | OBJEXT |
| 674 | CPP |
| 675 | GREP |
| 676 | EGREP |
| 677 | LLVM_CROSS_COMPILING |
| 678 | BUILD_CC |
| 679 | BUILD_EXEEXT |
| 680 | BUILD_CXX |
| 681 | CVSBUILD |
| 682 | ENABLE_OPTIMIZED |
| 683 | ENABLE_PROFILING |
| 684 | DISABLE_ASSERTIONS |
| 685 | ENABLE_EXPENSIVE_CHECKS |
| 686 | EXPENSIVE_CHECKS |
| 687 | DEBUG_RUNTIME |
| 688 | DEBUG_SYMBOLS |
| 689 | JIT |
| 690 | TARGET_HAS_JIT |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 691 | ENABLE_DOCS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 692 | ENABLE_DOXYGEN |
| 693 | ENABLE_THREADS |
| 694 | ENABLE_PIC |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 695 | ENABLE_SHARED |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 696 | ENABLE_TIMESTAMPS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 697 | TARGETS_TO_BUILD |
| 698 | LLVM_ENUM_TARGETS |
| 699 | LLVM_ENUM_ASM_PRINTERS |
| 700 | LLVM_ENUM_ASM_PARSERS |
| 701 | LLVM_ENUM_DISASSEMBLERS |
| 702 | ENABLE_CBE_PRINTF_A |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 703 | CLANGPATH |
| 704 | CLANGXXPATH |
| 705 | ENABLE_BUILT_CLANG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 706 | OPTIMIZE_OPTION |
| 707 | EXTRA_OPTIONS |
| 708 | BINUTILS_INCDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 709 | CXX |
| 710 | CXXFLAGS |
| 711 | ac_ct_CXX |
| 712 | NM |
| 713 | ifGNUmake |
| 714 | LN_S |
| 715 | CMP |
| 716 | CP |
| 717 | DATE |
| 718 | FIND |
| 719 | MKDIR |
| 720 | MV |
| 721 | RANLIB |
| 722 | AR |
| 723 | RM |
| 724 | SED |
| 725 | TAR |
| 726 | BINPWD |
| 727 | GRAPHVIZ |
| 728 | DOT |
| 729 | FDP |
| 730 | NEATO |
| 731 | TWOPI |
| 732 | CIRCO |
| 733 | GV |
| 734 | DOTTY |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 735 | XDOT_PY |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 736 | PERL |
| 737 | HAVE_PERL |
| 738 | INSTALL_PROGRAM |
| 739 | INSTALL_SCRIPT |
| 740 | INSTALL_DATA |
| 741 | BZIP2 |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 742 | CAT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 743 | DOXYGEN |
| 744 | GROFF |
| 745 | GZIP |
| 746 | POD2HTML |
| 747 | POD2MAN |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 748 | PDFROFF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 749 | RUNTEST |
| 750 | TCLSH |
| 751 | ZIP |
| 752 | OCAMLC |
| 753 | OCAMLOPT |
| 754 | OCAMLDEP |
| 755 | OCAMLDOC |
| 756 | GAS |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 757 | HAVE_LINK_VERSION_SCRIPT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 758 | INSTALL_LTDL_TRUE |
| 759 | INSTALL_LTDL_FALSE |
| 760 | CONVENIENCE_LTDL_TRUE |
| 761 | CONVENIENCE_LTDL_FALSE |
| 762 | LIBADD_DL |
| 763 | LLVMGCCCOMMAND |
| 764 | LLVMGXXCOMMAND |
| 765 | LLVMGCC |
| 766 | LLVMGXX |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 767 | LLVMCC_OPTION |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 768 | NO_VARIADIC_MACROS |
| 769 | NO_MISSING_FIELD_INITIALIZERS |
| 770 | USE_UDIS86 |
| 771 | USE_OPROFILE |
| 772 | HAVE_PTHREAD |
| 773 | HUGE_VAL_SANITY |
| 774 | MMAP_FILE |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 775 | LLVMCC_EMITIR_FLAG |
Duncan Sands | 1ac320e | 2010-11-25 17:57:43 +0000 | [diff] [blame] | 776 | LLVMCC_DISABLEOPT_FLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 777 | LLVMCC1 |
| 778 | LLVMCC1PLUS |
| 779 | LLVMGCCDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 780 | LLVMGCC_LANGS |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 781 | LLVMGCC_DRAGONEGG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 782 | SHLIBEXT |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 783 | SHLIBPATH_VAR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 784 | LLVM_PREFIX |
| 785 | LLVM_BINDIR |
| 786 | LLVM_LIBDIR |
| 787 | LLVM_DATADIR |
| 788 | LLVM_DOCSDIR |
| 789 | LLVM_ETCDIR |
| 790 | LLVM_INCLUDEDIR |
| 791 | LLVM_INFODIR |
| 792 | LLVM_MANDIR |
| 793 | LLVM_CONFIGTIME |
| 794 | BINDINGS_TO_BUILD |
| 795 | ALL_BINDINGS |
| 796 | OCAML_LIBDIR |
| 797 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 798 | RPATH |
| 799 | RDYNAMIC |
| 800 | LIBOBJS |
| 801 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 802 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 803 | ac_precious_vars='build_alias |
| 804 | host_alias |
| 805 | target_alias |
| 806 | CC |
| 807 | CFLAGS |
| 808 | LDFLAGS |
| 809 | CPPFLAGS |
| 810 | CPP |
| 811 | CXX |
| 812 | CXXFLAGS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 813 | CCC' |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 814 | ac_subdirs_all='projects/llvm-gcc |
| 815 | projects/test-suite |
| 816 | projects/llvm-test |
| 817 | projects/poolalloc |
| 818 | projects/llvm-poolalloc |
| 819 | projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 820 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 821 | projects/llvm-stacker |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 822 | projects/llvm-reopt |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 823 | projects/llvm-java |
| 824 | projects/llvm-tv |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 825 | projects/safecode |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 826 | projects/llvm-kernel |
| 827 | tools/polly' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 828 | |
| 829 | # Initialize some variables set by options. |
| 830 | ac_init_help= |
| 831 | ac_init_version=false |
| 832 | # The variables have the same names as the options, with |
| 833 | # dashes changed to underlines. |
| 834 | cache_file=/dev/null |
| 835 | exec_prefix=NONE |
| 836 | no_create= |
| 837 | no_recursion= |
| 838 | prefix=NONE |
| 839 | program_prefix=NONE |
| 840 | program_suffix=NONE |
| 841 | program_transform_name=s,x,x, |
| 842 | silent= |
| 843 | site= |
| 844 | srcdir= |
| 845 | verbose= |
| 846 | x_includes=NONE |
| 847 | x_libraries=NONE |
| 848 | |
| 849 | # Installation directory options. |
| 850 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 851 | # and all the variables that are supposed to be based on exec_prefix |
| 852 | # by default will actually change. |
| 853 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 854 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 855 | bindir='${exec_prefix}/bin' |
| 856 | sbindir='${exec_prefix}/sbin' |
| 857 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 858 | datarootdir='${prefix}/share' |
| 859 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 860 | sysconfdir='${prefix}/etc' |
| 861 | sharedstatedir='${prefix}/com' |
| 862 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 863 | includedir='${prefix}/include' |
| 864 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 865 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 866 | infodir='${datarootdir}/info' |
| 867 | htmldir='${docdir}' |
| 868 | dvidir='${docdir}' |
| 869 | pdfdir='${docdir}' |
| 870 | psdir='${docdir}' |
| 871 | libdir='${exec_prefix}/lib' |
| 872 | localedir='${datarootdir}/locale' |
| 873 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 874 | |
| 875 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 876 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 877 | for ac_option |
| 878 | do |
| 879 | # If the previous option needs an argument, assign it. |
| 880 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 881 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 882 | ac_prev= |
| 883 | continue |
| 884 | fi |
| 885 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 886 | case $ac_option in |
| 887 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 888 | *) ac_optarg=yes ;; |
| 889 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 890 | |
| 891 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 892 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 893 | case $ac_dashdash$ac_option in |
| 894 | --) |
| 895 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 896 | |
| 897 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 898 | ac_prev=bindir ;; |
| 899 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 900 | bindir=$ac_optarg ;; |
| 901 | |
| 902 | -build | --build | --buil | --bui | --bu) |
| 903 | ac_prev=build_alias ;; |
| 904 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 905 | build_alias=$ac_optarg ;; |
| 906 | |
| 907 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 908 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 909 | ac_prev=cache_file ;; |
| 910 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 911 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 912 | cache_file=$ac_optarg ;; |
| 913 | |
| 914 | --config-cache | -C) |
| 915 | cache_file=config.cache ;; |
| 916 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 917 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 918 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 919 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 920 | datadir=$ac_optarg ;; |
| 921 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 922 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 923 | | --dataroo | --dataro | --datar) |
| 924 | ac_prev=datarootdir ;; |
| 925 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 926 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 927 | datarootdir=$ac_optarg ;; |
| 928 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 929 | -disable-* | --disable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 930 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 931 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 932 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 933 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 934 | { (exit 1); exit 1; }; } |
| 935 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 936 | eval enable_$ac_feature=no ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 937 | |
| 938 | -docdir | --docdir | --docdi | --doc | --do) |
| 939 | ac_prev=docdir ;; |
| 940 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 941 | docdir=$ac_optarg ;; |
| 942 | |
| 943 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 944 | ac_prev=dvidir ;; |
| 945 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 946 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 947 | |
| 948 | -enable-* | --enable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 949 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 950 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 951 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 952 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 953 | { (exit 1); exit 1; }; } |
| 954 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 955 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 956 | |
| 957 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 958 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 959 | | --exec | --exe | --ex) |
| 960 | ac_prev=exec_prefix ;; |
| 961 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 962 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 963 | | --exec=* | --exe=* | --ex=*) |
| 964 | exec_prefix=$ac_optarg ;; |
| 965 | |
| 966 | -gas | --gas | --ga | --g) |
| 967 | # Obsolete; use --with-gas. |
| 968 | with_gas=yes ;; |
| 969 | |
| 970 | -help | --help | --hel | --he | -h) |
| 971 | ac_init_help=long ;; |
| 972 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 973 | ac_init_help=recursive ;; |
| 974 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 975 | ac_init_help=short ;; |
| 976 | |
| 977 | -host | --host | --hos | --ho) |
| 978 | ac_prev=host_alias ;; |
| 979 | -host=* | --host=* | --hos=* | --ho=*) |
| 980 | host_alias=$ac_optarg ;; |
| 981 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 982 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 983 | ac_prev=htmldir ;; |
| 984 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 985 | | --ht=*) |
| 986 | htmldir=$ac_optarg ;; |
| 987 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 988 | -includedir | --includedir | --includedi | --included | --include \ |
| 989 | | --includ | --inclu | --incl | --inc) |
| 990 | ac_prev=includedir ;; |
| 991 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 992 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 993 | includedir=$ac_optarg ;; |
| 994 | |
| 995 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 996 | ac_prev=infodir ;; |
| 997 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 998 | infodir=$ac_optarg ;; |
| 999 | |
| 1000 | -libdir | --libdir | --libdi | --libd) |
| 1001 | ac_prev=libdir ;; |
| 1002 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1003 | libdir=$ac_optarg ;; |
| 1004 | |
| 1005 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1006 | | --libexe | --libex | --libe) |
| 1007 | ac_prev=libexecdir ;; |
| 1008 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1009 | | --libexe=* | --libex=* | --libe=*) |
| 1010 | libexecdir=$ac_optarg ;; |
| 1011 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1012 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1013 | ac_prev=localedir ;; |
| 1014 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1015 | localedir=$ac_optarg ;; |
| 1016 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1017 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1018 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1019 | ac_prev=localstatedir ;; |
| 1020 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1021 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1022 | localstatedir=$ac_optarg ;; |
| 1023 | |
| 1024 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1025 | ac_prev=mandir ;; |
| 1026 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1027 | mandir=$ac_optarg ;; |
| 1028 | |
| 1029 | -nfp | --nfp | --nf) |
| 1030 | # Obsolete; use --without-fp. |
| 1031 | with_fp=no ;; |
| 1032 | |
| 1033 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1034 | | --no-cr | --no-c | -n) |
| 1035 | no_create=yes ;; |
| 1036 | |
| 1037 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1038 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1039 | no_recursion=yes ;; |
| 1040 | |
| 1041 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1042 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1043 | | --oldin | --oldi | --old | --ol | --o) |
| 1044 | ac_prev=oldincludedir ;; |
| 1045 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1046 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1047 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1048 | oldincludedir=$ac_optarg ;; |
| 1049 | |
| 1050 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1051 | ac_prev=prefix ;; |
| 1052 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1053 | prefix=$ac_optarg ;; |
| 1054 | |
| 1055 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1056 | | --program-pre | --program-pr | --program-p) |
| 1057 | ac_prev=program_prefix ;; |
| 1058 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1059 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1060 | program_prefix=$ac_optarg ;; |
| 1061 | |
| 1062 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1063 | | --program-suf | --program-su | --program-s) |
| 1064 | ac_prev=program_suffix ;; |
| 1065 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1066 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1067 | program_suffix=$ac_optarg ;; |
| 1068 | |
| 1069 | -program-transform-name | --program-transform-name \ |
| 1070 | | --program-transform-nam | --program-transform-na \ |
| 1071 | | --program-transform-n | --program-transform- \ |
| 1072 | | --program-transform | --program-transfor \ |
| 1073 | | --program-transfo | --program-transf \ |
| 1074 | | --program-trans | --program-tran \ |
| 1075 | | --progr-tra | --program-tr | --program-t) |
| 1076 | ac_prev=program_transform_name ;; |
| 1077 | -program-transform-name=* | --program-transform-name=* \ |
| 1078 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1079 | | --program-transform-n=* | --program-transform-=* \ |
| 1080 | | --program-transform=* | --program-transfor=* \ |
| 1081 | | --program-transfo=* | --program-transf=* \ |
| 1082 | | --program-trans=* | --program-tran=* \ |
| 1083 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1084 | program_transform_name=$ac_optarg ;; |
| 1085 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1086 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1087 | ac_prev=pdfdir ;; |
| 1088 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1089 | pdfdir=$ac_optarg ;; |
| 1090 | |
| 1091 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1092 | ac_prev=psdir ;; |
| 1093 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1094 | psdir=$ac_optarg ;; |
| 1095 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1096 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1097 | | -silent | --silent | --silen | --sile | --sil) |
| 1098 | silent=yes ;; |
| 1099 | |
| 1100 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1101 | ac_prev=sbindir ;; |
| 1102 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1103 | | --sbi=* | --sb=*) |
| 1104 | sbindir=$ac_optarg ;; |
| 1105 | |
| 1106 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1107 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1108 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1109 | | --sha | --sh) |
| 1110 | ac_prev=sharedstatedir ;; |
| 1111 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1112 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1113 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1114 | | --sha=* | --sh=*) |
| 1115 | sharedstatedir=$ac_optarg ;; |
| 1116 | |
| 1117 | -site | --site | --sit) |
| 1118 | ac_prev=site ;; |
| 1119 | -site=* | --site=* | --sit=*) |
| 1120 | site=$ac_optarg ;; |
| 1121 | |
| 1122 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1123 | ac_prev=srcdir ;; |
| 1124 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1125 | srcdir=$ac_optarg ;; |
| 1126 | |
| 1127 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1128 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1129 | ac_prev=sysconfdir ;; |
| 1130 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1131 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1132 | sysconfdir=$ac_optarg ;; |
| 1133 | |
| 1134 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1135 | ac_prev=target_alias ;; |
| 1136 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1137 | target_alias=$ac_optarg ;; |
| 1138 | |
| 1139 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1140 | verbose=yes ;; |
| 1141 | |
| 1142 | -version | --version | --versio | --versi | --vers | -V) |
| 1143 | ac_init_version=: ;; |
| 1144 | |
| 1145 | -with-* | --with-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1146 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1147 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1148 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1149 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1150 | { (exit 1); exit 1; }; } |
| 1151 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1152 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1153 | |
| 1154 | -without-* | --without-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1155 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1156 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1157 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1158 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1159 | { (exit 1); exit 1; }; } |
| 1160 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1161 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1162 | |
| 1163 | --x) |
| 1164 | # Obsolete; use --with-x. |
| 1165 | with_x=yes ;; |
| 1166 | |
| 1167 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1168 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1169 | ac_prev=x_includes ;; |
| 1170 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1171 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1172 | x_includes=$ac_optarg ;; |
| 1173 | |
| 1174 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1175 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1176 | ac_prev=x_libraries ;; |
| 1177 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1178 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1179 | x_libraries=$ac_optarg ;; |
| 1180 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1181 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1182 | Try \`$0 --help' for more information." >&2 |
| 1183 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1184 | ;; |
| 1185 | |
| 1186 | *=*) |
| 1187 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1188 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1189 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1190 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1191 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1192 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1193 | export $ac_envvar ;; |
| 1194 | |
| 1195 | *) |
| 1196 | # FIXME: should be removed in autoconf 3.0. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1197 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1198 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1199 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1200 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1201 | ;; |
| 1202 | |
| 1203 | esac |
| 1204 | done |
| 1205 | |
| 1206 | if test -n "$ac_prev"; then |
| 1207 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1208 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1209 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1210 | fi |
| 1211 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1212 | # Be sure to have absolute directory names. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1213 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1214 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1215 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1216 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1217 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1218 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1219 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1220 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1221 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1222 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1223 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1224 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1225 | done |
| 1226 | |
| 1227 | # There might be people who depend on the old broken behavior: `$host' |
| 1228 | # used to hold the argument of --host etc. |
| 1229 | # FIXME: To remove some day. |
| 1230 | build=$build_alias |
| 1231 | host=$host_alias |
| 1232 | target=$target_alias |
| 1233 | |
| 1234 | # FIXME: To remove some day. |
| 1235 | if test "x$host_alias" != x; then |
| 1236 | if test "x$build_alias" = x; then |
| 1237 | cross_compiling=maybe |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1238 | 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] | 1239 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1240 | elif test "x$build_alias" != "x$host_alias"; then |
| 1241 | cross_compiling=yes |
| 1242 | fi |
| 1243 | fi |
| 1244 | |
| 1245 | ac_tool_prefix= |
| 1246 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1247 | |
| 1248 | test "$silent" = yes && exec 6>/dev/null |
| 1249 | |
| 1250 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1251 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1252 | ac_ls_di=`ls -di .` && |
| 1253 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1254 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1255 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1256 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1257 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1258 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1259 | |
| 1260 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1261 | # Find the source files, if location was not specified. |
| 1262 | if test -z "$srcdir"; then |
| 1263 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1264 | # Try the directory containing this script, then the parent directory. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1265 | ac_confdir=`$as_dirname -- "$0" || |
| 1266 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1267 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1268 | X"$0" : 'X\(//\)$' \| \ |
| 1269 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1270 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1271 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1272 | s//\1/ |
| 1273 | q |
| 1274 | } |
| 1275 | /^X\(\/\/\)[^/].*/{ |
| 1276 | s//\1/ |
| 1277 | q |
| 1278 | } |
| 1279 | /^X\(\/\/\)$/{ |
| 1280 | s//\1/ |
| 1281 | q |
| 1282 | } |
| 1283 | /^X\(\/\).*/{ |
| 1284 | s//\1/ |
| 1285 | q |
| 1286 | } |
| 1287 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1288 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1289 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1290 | srcdir=.. |
| 1291 | fi |
| 1292 | else |
| 1293 | ac_srcdir_defaulted=no |
| 1294 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1295 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1296 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1297 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1298 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1299 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1300 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1301 | ac_abs_confdir=`( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1302 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1303 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1304 | pwd)` |
| 1305 | # When building in place, set srcdir=. |
| 1306 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1307 | srcdir=. |
| 1308 | fi |
| 1309 | # Remove unnecessary trailing slashes from srcdir. |
| 1310 | # Double slashes in file names in object file debugging info |
| 1311 | # mess up M-x gdb in Emacs. |
| 1312 | case $srcdir in |
| 1313 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1314 | esac |
| 1315 | for ac_var in $ac_precious_vars; do |
| 1316 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1317 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1318 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1319 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1320 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1321 | |
| 1322 | # |
| 1323 | # Report the --help message. |
| 1324 | # |
| 1325 | if test "$ac_init_help" = "long"; then |
| 1326 | # Omit some internal or obsolete options to make the list less imposing. |
| 1327 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1328 | cat <<_ACEOF |
Eric Christopher | b26697c | 2010-09-06 18:47:10 +0000 | [diff] [blame] | 1329 | \`configure' configures llvm 2.9svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1330 | |
| 1331 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1332 | |
| 1333 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1334 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1335 | |
| 1336 | Defaults for the options are specified in brackets. |
| 1337 | |
| 1338 | Configuration: |
| 1339 | -h, --help display this help and exit |
| 1340 | --help=short display options specific to this package |
| 1341 | --help=recursive display the short help of all the included packages |
| 1342 | -V, --version display version information and exit |
| 1343 | -q, --quiet, --silent do not print \`checking...' messages |
| 1344 | --cache-file=FILE cache test results in FILE [disabled] |
| 1345 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1346 | -n, --no-create do not create output files |
| 1347 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1348 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1349 | Installation directories: |
| 1350 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1351 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1352 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1353 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1354 | |
| 1355 | By default, \`make install' will install all the files in |
| 1356 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1357 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1358 | for instance \`--prefix=\$HOME'. |
| 1359 | |
| 1360 | For better control, use the options below. |
| 1361 | |
| 1362 | Fine tuning of the installation directories: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1363 | --bindir=DIR user executables [EPREFIX/bin] |
| 1364 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1365 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1366 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1367 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1368 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1369 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1370 | --includedir=DIR C header files [PREFIX/include] |
| 1371 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1372 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1373 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1374 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1375 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1376 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1377 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1378 | --htmldir=DIR html documentation [DOCDIR] |
| 1379 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1380 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1381 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1382 | _ACEOF |
| 1383 | |
| 1384 | cat <<\_ACEOF |
| 1385 | |
| 1386 | System types: |
| 1387 | --build=BUILD configure for building on BUILD [guessed] |
| 1388 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1389 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1390 | _ACEOF |
| 1391 | fi |
| 1392 | |
| 1393 | if test -n "$ac_init_help"; then |
| 1394 | case $ac_init_help in |
Eric Christopher | b26697c | 2010-09-06 18:47:10 +0000 | [diff] [blame] | 1395 | short | recursive ) echo "Configuration of llvm 2.9svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1396 | esac |
| 1397 | cat <<\_ACEOF |
| 1398 | |
| 1399 | Optional Features: |
| 1400 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1401 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 1402 | --enable-polly Use polly if available (default is YES) |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1403 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1404 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1405 | --enable-assertions Compile with assertion checks enabled (default is |
| 1406 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1407 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1408 | Compile with expensive debug checks enabled (default |
| 1409 | is NO) |
| 1410 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1411 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1412 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1413 | optimization is on and YES if it's off) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1414 | --enable-jit Enable Just In Time Compiling (default is YES) |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 1415 | --enable-docs Build documents (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1416 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1417 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1418 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1419 | is YES) |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 1420 | --enable-shared Build a shared library and link tools against it |
| 1421 | (default is NO) |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 1422 | --enable-timestamps Enable embedding timestamp information in build |
| 1423 | (default is YES) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1424 | --enable-targets Build specific host targets: all or |
| 1425 | target1,target2,... Valid targets are: host, x86, |
| 1426 | x86_64, sparc, powerpc, alpha, arm, mips, spu, |
Eric Christopher | 14074e8 | 2010-10-12 02:42:05 +0000 | [diff] [blame] | 1427 | xcore, msp430, systemz, blackfin, ptx, cbe, and cpp |
| 1428 | (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1429 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1430 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1431 | --enable-bindings Build specific language bindings: |
| 1432 | all,auto,none,{binding-name} (default=auto) |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1433 | --enable-libffi Check for the presence of libffi (default is NO) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1434 | --enable-ltdl-install install libltdl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1435 | |
| 1436 | Optional Packages: |
| 1437 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1438 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1439 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1440 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1441 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1442 | searches PATH) |
| 1443 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1444 | searches PATH) |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 1445 | --with-clang Specify location of clang compiler (default is |
| 1446 | --with-built-clang) |
| 1447 | --with-built-clang Use the compiled Clang as the LLVM compiler |
| 1448 | (default=check) |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1449 | --with-optimize-option Select the compiler options to use for optimized |
| 1450 | builds |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1451 | --with-extra-options Specify additional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1452 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1453 | is stdlib) |
Chandler Carruth | 6b24116 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 1454 | --with-clang-resource-dir |
| 1455 | Relative directory from the Clang binary for |
| 1456 | resource files |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1457 | --with-c-include-dirs Colon separated list of directories clang will |
| 1458 | search for headers |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 1459 | --with-cxx-include-root Directory with the libstdc++ headers. |
| 1460 | --with-cxx-include-arch Architecture of the libstdc++ headers. |
| 1461 | --with-cxx-include-32bit-dir |
| 1462 | 32 bit multilib dir. |
| 1463 | --with-cxx-include-64bit-dir |
| 1464 | 64 bit multilib directory. |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1465 | --with-binutils-include Specify path to binutils/include/ containing |
| 1466 | plugin-api.h file for gold plugin. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1467 | --with-tclinclude directory where tcl headers are |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 1468 | --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc, |
| 1469 | clang, or none; default=check) |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1470 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1471 | --with-oprofile=<prefix> |
| 1472 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1473 | |
| 1474 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1475 | CC C compiler command |
| 1476 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1477 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1478 | nonstandard directory <lib dir> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1479 | 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] | 1480 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1481 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1482 | CXX C++ compiler command |
| 1483 | CXXFLAGS C++ compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1484 | |
| 1485 | Use these variables to override the choices made by `configure' or to help |
| 1486 | it to find libraries and programs with nonstandard names/locations. |
| 1487 | |
| 1488 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1489 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1490 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1491 | fi |
| 1492 | |
| 1493 | if test "$ac_init_help" = "recursive"; then |
| 1494 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1495 | 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] | 1496 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1497 | ac_builddir=. |
| 1498 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1499 | case "$ac_dir" in |
| 1500 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1501 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1502 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1503 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1504 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1505 | case $ac_top_builddir_sub in |
| 1506 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1507 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1508 | esac ;; |
| 1509 | esac |
| 1510 | ac_abs_top_builddir=$ac_pwd |
| 1511 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1512 | # for backward compatibility: |
| 1513 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1514 | |
| 1515 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1516 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1517 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1518 | ac_top_srcdir=$ac_top_builddir_sub |
| 1519 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1520 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1521 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1522 | ac_top_srcdir=$srcdir |
| 1523 | ac_abs_top_srcdir=$srcdir ;; |
| 1524 | *) # Relative name. |
| 1525 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1526 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1527 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1528 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1529 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1530 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1531 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1532 | # Check for guested configure. |
| 1533 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1534 | echo && |
| 1535 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1536 | elif test -f "$ac_srcdir/configure"; then |
| 1537 | echo && |
| 1538 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1539 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1540 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1541 | fi || ac_status=$? |
| 1542 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1543 | done |
| 1544 | fi |
| 1545 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1546 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1547 | if $ac_init_version; then |
| 1548 | cat <<\_ACEOF |
Eric Christopher | b26697c | 2010-09-06 18:47:10 +0000 | [diff] [blame] | 1549 | llvm configure 2.9svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1550 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1551 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1552 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1553 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1554 | This configure script is free software; the Free Software Foundation |
| 1555 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1556 | |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 1557 | Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1558 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1559 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1560 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1561 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1562 | This file contains any messages produced by compilers while |
| 1563 | running configure, to aid debugging if configure makes a mistake. |
| 1564 | |
Eric Christopher | b26697c | 2010-09-06 18:47:10 +0000 | [diff] [blame] | 1565 | It was created by llvm $as_me 2.9svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1566 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1567 | |
| 1568 | $ $0 $@ |
| 1569 | |
| 1570 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1571 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1572 | { |
| 1573 | cat <<_ASUNAME |
| 1574 | ## --------- ## |
| 1575 | ## Platform. ## |
| 1576 | ## --------- ## |
| 1577 | |
| 1578 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1579 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1580 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1581 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1582 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1583 | |
| 1584 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1585 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1586 | |
| 1587 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1588 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1589 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1590 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1591 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1592 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1593 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1594 | |
| 1595 | _ASUNAME |
| 1596 | |
| 1597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1598 | for as_dir in $PATH |
| 1599 | do |
| 1600 | IFS=$as_save_IFS |
| 1601 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1602 | echo "PATH: $as_dir" |
| 1603 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1604 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1605 | |
| 1606 | } >&5 |
| 1607 | |
| 1608 | cat >&5 <<_ACEOF |
| 1609 | |
| 1610 | |
| 1611 | ## ----------- ## |
| 1612 | ## Core tests. ## |
| 1613 | ## ----------- ## |
| 1614 | |
| 1615 | _ACEOF |
| 1616 | |
| 1617 | |
| 1618 | # Keep a trace of the command line. |
| 1619 | # 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] | 1620 | # 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] | 1621 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1622 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1623 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1624 | ac_configure_args0= |
| 1625 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1626 | ac_must_keep_next=false |
| 1627 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1628 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1629 | for ac_arg |
| 1630 | do |
| 1631 | case $ac_arg in |
| 1632 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1633 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1634 | | -silent | --silent | --silen | --sile | --sil) |
| 1635 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1636 | *\'*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1637 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1638 | esac |
| 1639 | case $ac_pass in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1640 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1641 | 2) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1642 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1643 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1644 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1645 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1646 | case $ac_arg in |
| 1647 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1648 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1649 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1650 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1651 | case "$ac_configure_args0 " in |
| 1652 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1653 | esac |
| 1654 | ;; |
| 1655 | -* ) ac_must_keep_next=true ;; |
| 1656 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1657 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1658 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1659 | ;; |
| 1660 | esac |
| 1661 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1662 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1663 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1664 | $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] | 1665 | |
| 1666 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1667 | # config.log. We remove comments because anyway the quotes in there |
| 1668 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1669 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1670 | # 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] | 1671 | trap 'exit_status=$? |
| 1672 | # Save into config.log some information that might help in debugging. |
| 1673 | { |
| 1674 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1675 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1676 | cat <<\_ASBOX |
| 1677 | ## ---------------- ## |
| 1678 | ## Cache variables. ## |
| 1679 | ## ---------------- ## |
| 1680 | _ASBOX |
| 1681 | echo |
| 1682 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1683 | ( |
| 1684 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1685 | eval ac_val=\$$ac_var |
| 1686 | case $ac_val in #( |
| 1687 | *${as_nl}*) |
| 1688 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1689 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1690 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1691 | esac |
| 1692 | case $ac_var in #( |
| 1693 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1694 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1695 | esac ;; |
| 1696 | esac |
| 1697 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1698 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1699 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1700 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1701 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1702 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1703 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1704 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1705 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1706 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1707 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1708 | esac | |
| 1709 | sort |
| 1710 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1711 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1712 | |
| 1713 | cat <<\_ASBOX |
| 1714 | ## ----------------- ## |
| 1715 | ## Output variables. ## |
| 1716 | ## ----------------- ## |
| 1717 | _ASBOX |
| 1718 | echo |
| 1719 | for ac_var in $ac_subst_vars |
| 1720 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1721 | eval ac_val=\$$ac_var |
| 1722 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1723 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1724 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1725 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1726 | done | sort |
| 1727 | echo |
| 1728 | |
| 1729 | if test -n "$ac_subst_files"; then |
| 1730 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1731 | ## ------------------- ## |
| 1732 | ## File substitutions. ## |
| 1733 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1734 | _ASBOX |
| 1735 | echo |
| 1736 | for ac_var in $ac_subst_files |
| 1737 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1738 | eval ac_val=\$$ac_var |
| 1739 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1740 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1741 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1742 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1743 | done | sort |
| 1744 | echo |
| 1745 | fi |
| 1746 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1747 | if test -s confdefs.h; then |
| 1748 | cat <<\_ASBOX |
| 1749 | ## ----------- ## |
| 1750 | ## confdefs.h. ## |
| 1751 | ## ----------- ## |
| 1752 | _ASBOX |
| 1753 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1754 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1755 | echo |
| 1756 | fi |
| 1757 | test "$ac_signal" != 0 && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1758 | echo "$as_me: caught signal $ac_signal" |
| 1759 | echo "$as_me: exit $exit_status" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1760 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1761 | rm -f core *.core core.conftest.* && |
| 1762 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1763 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1764 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1765 | for ac_signal in 1 2 13 15; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1766 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1767 | done |
| 1768 | ac_signal=0 |
| 1769 | |
| 1770 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1771 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1772 | |
| 1773 | # Predefined preprocessor variables. |
| 1774 | |
| 1775 | cat >>confdefs.h <<_ACEOF |
| 1776 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1777 | _ACEOF |
| 1778 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1779 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1780 | cat >>confdefs.h <<_ACEOF |
| 1781 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1782 | _ACEOF |
| 1783 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1784 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1785 | cat >>confdefs.h <<_ACEOF |
| 1786 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1787 | _ACEOF |
| 1788 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1789 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1790 | cat >>confdefs.h <<_ACEOF |
| 1791 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1792 | _ACEOF |
| 1793 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1794 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1795 | cat >>confdefs.h <<_ACEOF |
| 1796 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1797 | _ACEOF |
| 1798 | |
| 1799 | |
| 1800 | # 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] | 1801 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1802 | if test -n "$CONFIG_SITE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1803 | set x "$CONFIG_SITE" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1804 | elif test "x$prefix" != xNONE; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1805 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1806 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1807 | set x "$ac_default_prefix/share/config.site" \ |
| 1808 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1809 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1810 | shift |
| 1811 | for ac_site_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1812 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1813 | if test -r "$ac_site_file"; then |
| 1814 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1815 | echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1816 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1817 | . "$ac_site_file" |
| 1818 | fi |
| 1819 | done |
| 1820 | |
| 1821 | if test -r "$cache_file"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1822 | # Some versions of bash will fail to source /dev/null (special |
| 1823 | # files actually), so we avoid doing that. |
| 1824 | if test -f "$cache_file"; then |
| 1825 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1826 | echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1827 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1828 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1829 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1830 | esac |
| 1831 | fi |
| 1832 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1833 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1834 | echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1835 | >$cache_file |
| 1836 | fi |
| 1837 | |
| 1838 | # Check that the precious variables saved in the cache have kept the same |
| 1839 | # value. |
| 1840 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1841 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1842 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1843 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1844 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1845 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1846 | case $ac_old_set,$ac_new_set in |
| 1847 | set,) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1848 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1849 | 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] | 1850 | ac_cache_corrupted=: ;; |
| 1851 | ,set) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1852 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1853 | 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] | 1854 | ac_cache_corrupted=: ;; |
| 1855 | ,);; |
| 1856 | *) |
| 1857 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1858 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1859 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1860 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1861 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1862 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1863 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1864 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1865 | fi;; |
| 1866 | esac |
| 1867 | # Pass precious variables to config.status. |
| 1868 | if test "$ac_new_set" = set; then |
| 1869 | case $ac_new_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1870 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1871 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1872 | esac |
| 1873 | case " $ac_configure_args " in |
| 1874 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1875 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1876 | esac |
| 1877 | fi |
| 1878 | done |
| 1879 | if $ac_cache_corrupted; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1880 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1881 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1882 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1883 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1884 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1885 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1886 | |
| 1887 | |
| 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
| 1892 | |
| 1893 | |
| 1894 | |
| 1895 | |
| 1896 | |
| 1897 | |
| 1898 | |
| 1899 | |
| 1900 | |
| 1901 | |
| 1902 | |
| 1903 | |
| 1904 | |
| 1905 | |
| 1906 | |
| 1907 | |
| 1908 | |
| 1909 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1910 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1911 | ac_ext=c |
| 1912 | ac_cpp='$CPP $CPPFLAGS' |
| 1913 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1914 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1915 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1916 | |
| 1917 | |
| 1918 | |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 1919 | LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1920 | |
| 1921 | |
| 1922 | |
| 1923 | |
| 1924 | |
| 1925 | |
| 1926 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1927 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1928 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1929 | if test -f "$ac_dir/install-sh"; then |
| 1930 | ac_aux_dir=$ac_dir |
| 1931 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1932 | break |
| 1933 | elif test -f "$ac_dir/install.sh"; then |
| 1934 | ac_aux_dir=$ac_dir |
| 1935 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1936 | break |
| 1937 | elif test -f "$ac_dir/shtool"; then |
| 1938 | ac_aux_dir=$ac_dir |
| 1939 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1940 | break |
| 1941 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1942 | done |
| 1943 | if test -z "$ac_aux_dir"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1944 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1945 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
| 1946 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1947 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1948 | |
| 1949 | # These three variables are undocumented and unsupported, |
| 1950 | # and are intended to be withdrawn in a future Autoconf release. |
| 1951 | # They can cause serious problems if a builder's source tree is in a directory |
| 1952 | # whose full name contains unusual characters. |
| 1953 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1954 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1955 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1956 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1957 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1958 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1959 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1960 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1961 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
| 1962 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1963 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1964 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1965 | fi |
| 1966 | |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 1967 | |
| 1968 | |
| 1969 | if test -d ${srcdir}/projects/llvm-gcc ; then |
| 1970 | subdirs="$subdirs projects/llvm-gcc" |
| 1971 | |
| 1972 | fi |
| 1973 | |
| 1974 | if test -d ${srcdir}/projects/test-suite ; then |
| 1975 | subdirs="$subdirs projects/test-suite" |
| 1976 | |
| 1977 | fi |
| 1978 | |
| 1979 | if test -d ${srcdir}/projects/llvm-test ; then |
| 1980 | subdirs="$subdirs projects/llvm-test" |
| 1981 | |
| 1982 | fi |
| 1983 | |
| 1984 | if test -d ${srcdir}/projects/poolalloc ; then |
| 1985 | subdirs="$subdirs projects/poolalloc" |
| 1986 | |
| 1987 | fi |
| 1988 | |
| 1989 | if test -d ${srcdir}/projects/llvm-poolalloc ; then |
| 1990 | subdirs="$subdirs projects/llvm-poolalloc" |
| 1991 | |
| 1992 | fi |
| 1993 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1994 | for i in `ls ${srcdir}/projects` |
| 1995 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1996 | if test -d ${srcdir}/projects/${i} ; then |
| 1997 | case ${i} in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1998 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1999 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2000 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2001 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2002 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2003 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2004 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2005 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2006 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2007 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2008 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2009 | ;; |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 2010 | safecode) subdirs="$subdirs projects/safecode" |
| 2011 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2012 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2013 | ;; |
John Criswell | 52c0286 | 2010-03-25 13:59:09 +0000 | [diff] [blame] | 2014 | llvm-gcc) ;; |
| 2015 | test-suite) ;; |
| 2016 | llvm-test) ;; |
| 2017 | poolalloc) ;; |
| 2018 | llvm-poolalloc) ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2019 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2020 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2021 | 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] | 2022 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2023 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2024 | fi |
| 2025 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2026 | |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 2027 | # Check whether --enable-polly was given. |
| 2028 | if test "${enable_polly+set}" = set; then |
| 2029 | enableval=$enable_polly; |
| 2030 | else |
| 2031 | enableval=default |
| 2032 | fi |
| 2033 | |
| 2034 | case "$enableval" in |
| 2035 | yes) ENABLE_POLLY=1 |
| 2036 | ;; |
| 2037 | no) ENABLE_POLLY=0 |
| 2038 | ;; |
| 2039 | default) ENABLE_POLLY=1 |
| 2040 | ;; |
| 2041 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 |
| 2042 | echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} |
| 2043 | { (exit 1); exit 1; }; } ;; |
| 2044 | esac |
| 2045 | |
| 2046 | |
| 2047 | if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then |
| 2048 | LLVM_HAS_POLLY=1 |
| 2049 | |
| 2050 | subdirs="$subdirs tools/polly" |
| 2051 | |
| 2052 | fi |
| 2053 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2054 | |
| 2055 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2056 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2057 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2058 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 2059 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2060 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2061 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2062 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 2063 | if test "${ac_cv_build+set}" = set; then |
| 2064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2065 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2066 | ac_build_alias=$build_alias |
| 2067 | test "x$ac_build_alias" = x && |
| 2068 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2069 | test "x$ac_build_alias" = x && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2070 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2071 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2072 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2073 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2074 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2075 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 2076 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2077 | |
| 2078 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2079 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2080 | echo "${ECHO_T}$ac_cv_build" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2081 | case $ac_cv_build in |
| 2082 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2083 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2084 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2085 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2086 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2087 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2088 | ac_save_IFS=$IFS; IFS='-' |
| 2089 | set x $ac_cv_build |
| 2090 | shift |
| 2091 | build_cpu=$1 |
| 2092 | build_vendor=$2 |
| 2093 | shift; shift |
| 2094 | # Remember, the first character of IFS is used to create $*, |
| 2095 | # except with old shells: |
| 2096 | build_os=$* |
| 2097 | IFS=$ac_save_IFS |
| 2098 | 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] | 2099 | |
| 2100 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2101 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2102 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 2103 | if test "${ac_cv_host+set}" = set; then |
| 2104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2105 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2106 | if test "x$host_alias" = x; then |
| 2107 | ac_cv_host=$ac_cv_build |
| 2108 | else |
| 2109 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2110 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2111 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 2112 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2113 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2114 | |
| 2115 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2116 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2117 | echo "${ECHO_T}$ac_cv_host" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2118 | case $ac_cv_host in |
| 2119 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2120 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2121 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2122 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2123 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2124 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2125 | ac_save_IFS=$IFS; IFS='-' |
| 2126 | set x $ac_cv_host |
| 2127 | shift |
| 2128 | host_cpu=$1 |
| 2129 | host_vendor=$2 |
| 2130 | shift; shift |
| 2131 | # Remember, the first character of IFS is used to create $*, |
| 2132 | # except with old shells: |
| 2133 | host_os=$* |
| 2134 | IFS=$ac_save_IFS |
| 2135 | 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] | 2136 | |
| 2137 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2138 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2139 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 2140 | if test "${ac_cv_target+set}" = set; then |
| 2141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2142 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2143 | if test "x$target_alias" = x; then |
| 2144 | ac_cv_target=$ac_cv_host |
| 2145 | else |
| 2146 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2147 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2148 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 2149 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2150 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2151 | |
| 2152 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2153 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2154 | echo "${ECHO_T}$ac_cv_target" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2155 | case $ac_cv_target in |
| 2156 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2157 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2158 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2159 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2160 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2161 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2162 | ac_save_IFS=$IFS; IFS='-' |
| 2163 | set x $ac_cv_target |
| 2164 | shift |
| 2165 | target_cpu=$1 |
| 2166 | target_vendor=$2 |
| 2167 | shift; shift |
| 2168 | # Remember, the first character of IFS is used to create $*, |
| 2169 | # except with old shells: |
| 2170 | target_os=$* |
| 2171 | IFS=$ac_save_IFS |
| 2172 | 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] | 2173 | |
| 2174 | |
| 2175 | # The aliases save the names the user supplied, while $host etc. |
| 2176 | # will get canonicalized. |
| 2177 | test -n "$target_alias" && |
| 2178 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2179 | NONENONEs,x,x, && |
| 2180 | program_prefix=${target_alias}- |
| 2181 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2182 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2183 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 2184 | if test "${llvm_cv_os_type+set}" = set; then |
| 2185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2186 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2187 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2188 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2189 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2190 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2191 | llvm_cv_os_type="AIX" |
| 2192 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2193 | *-*-irix*) |
| 2194 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2195 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2196 | llvm_cv_os_type="IRIX" |
| 2197 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2198 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2199 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2200 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2201 | llvm_cv_os_type="Cygwin" |
| 2202 | llvm_cv_platform_type="Unix" ;; |
| 2203 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2204 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2205 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2206 | llvm_cv_os_type="Darwin" |
| 2207 | llvm_cv_platform_type="Unix" ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 2208 | *-*-minix*) |
| 2209 | llvm_cv_link_all_option="-Wl,-all_load" |
| 2210 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 2211 | llvm_cv_os_type="Minix" |
| 2212 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2213 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2214 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2215 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2216 | llvm_cv_os_type="FreeBSD" |
| 2217 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2218 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2219 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2220 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2221 | llvm_cv_os_type="OpenBSD" |
| 2222 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2223 | *-*-netbsd*) |
| 2224 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2225 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2226 | llvm_cv_os_type="NetBSD" |
| 2227 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2228 | *-*-dragonfly*) |
| 2229 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2230 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2231 | llvm_cv_os_type="DragonFly" |
| 2232 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2233 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2234 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2235 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2236 | llvm_cv_os_type="HP-UX" |
| 2237 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2238 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2239 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2240 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2241 | llvm_cv_os_type="Interix" |
| 2242 | llvm_cv_platform_type="Unix" ;; |
| 2243 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2244 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2245 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2246 | llvm_cv_os_type="Linux" |
| 2247 | llvm_cv_platform_type="Unix" ;; |
| 2248 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2249 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2250 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2251 | llvm_cv_os_type="SunOS" |
| 2252 | llvm_cv_platform_type="Unix" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2253 | *-*-auroraux*) |
| 2254 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2255 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 2256 | llvm_cv_os_type="AuroraUX" |
| 2257 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2258 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2259 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2260 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2261 | llvm_cv_os_type="Win32" |
| 2262 | llvm_cv_platform_type="Win32" ;; |
| 2263 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2264 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2265 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2266 | llvm_cv_os_type="MingW" |
| 2267 | llvm_cv_platform_type="Win32" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2268 | *-*-haiku*) |
| 2269 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2270 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2271 | llvm_cv_os_type="Haiku" |
| 2272 | llvm_cv_platform_type="Unix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2273 | *-unknown-eabi*) |
| 2274 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2275 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2276 | llvm_cv_os_type="Freestanding" |
| 2277 | llvm_cv_platform_type="Unix" ;; |
| 2278 | *-unknown-elf*) |
| 2279 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2280 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2281 | llvm_cv_os_type="Freestanding" |
| 2282 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2283 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2284 | llvm_cv_link_all_option="" |
| 2285 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2286 | llvm_cv_os_type="Unknown" |
| 2287 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2288 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2289 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2290 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2291 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2292 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2293 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 2294 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 2295 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 2296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2297 | else |
| 2298 | case $target in |
| 2299 | *-*-aix*) |
| 2300 | llvm_cv_target_os_type="AIX" ;; |
| 2301 | *-*-irix*) |
| 2302 | llvm_cv_target_os_type="IRIX" ;; |
| 2303 | *-*-cygwin*) |
| 2304 | llvm_cv_target_os_type="Cygwin" ;; |
| 2305 | *-*-darwin*) |
| 2306 | llvm_cv_target_os_type="Darwin" ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 2307 | *-*-minix*) |
| 2308 | llvm_cv_target_os_type="Minix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2309 | *-*-freebsd*) |
| 2310 | llvm_cv_target_os_type="FreeBSD" ;; |
| 2311 | *-*-openbsd*) |
| 2312 | llvm_cv_target_os_type="OpenBSD" ;; |
| 2313 | *-*-netbsd*) |
| 2314 | llvm_cv_target_os_type="NetBSD" ;; |
| 2315 | *-*-dragonfly*) |
| 2316 | llvm_cv_target_os_type="DragonFly" ;; |
| 2317 | *-*-hpux*) |
| 2318 | llvm_cv_target_os_type="HP-UX" ;; |
| 2319 | *-*-interix*) |
| 2320 | llvm_cv_target_os_type="Interix" ;; |
| 2321 | *-*-linux*) |
| 2322 | llvm_cv_target_os_type="Linux" ;; |
| 2323 | *-*-solaris*) |
| 2324 | llvm_cv_target_os_type="SunOS" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2325 | *-*-auroraux*) |
| 2326 | llvm_cv_target_os_type="AuroraUX" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2327 | *-*-win32*) |
| 2328 | llvm_cv_target_os_type="Win32" ;; |
| 2329 | *-*-mingw*) |
| 2330 | llvm_cv_target_os_type="MingW" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2331 | *-*-haiku*) |
| 2332 | llvm_cv_target_os_type="Haiku" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2333 | *-unknown-eabi*) |
| 2334 | llvm_cv_target_os_type="Freestanding" ;; |
| 2335 | *) |
| 2336 | llvm_cv_target_os_type="Unknown" ;; |
| 2337 | esac |
| 2338 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2339 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 2340 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2341 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2342 | if test "$llvm_cv_os_type" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2343 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2344 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 2345 | { (exit 1); exit 1; }; } |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 2346 | fi |
| 2347 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2348 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2349 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2350 | HOST_OS=$llvm_cv_os_type |
| 2351 | |
| 2352 | TARGET_OS=$llvm_cv_target_os_type |
| 2353 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2354 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2355 | LINKALL=$llvm_cv_link_all_option |
| 2356 | |
| 2357 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2358 | |
| 2359 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2360 | case $llvm_cv_platform_type in |
| 2361 | Unix) |
| 2362 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2363 | cat >>confdefs.h <<\_ACEOF |
| 2364 | #define LLVM_ON_UNIX 1 |
| 2365 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2366 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2367 | LLVM_ON_UNIX=1 |
| 2368 | |
| 2369 | LLVM_ON_WIN32=0 |
| 2370 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2371 | ;; |
| 2372 | Win32) |
| 2373 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2374 | cat >>confdefs.h <<\_ACEOF |
| 2375 | #define LLVM_ON_WIN32 1 |
| 2376 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2377 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2378 | LLVM_ON_UNIX=0 |
| 2379 | |
| 2380 | LLVM_ON_WIN32=1 |
| 2381 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2382 | ;; |
| 2383 | esac |
| 2384 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2385 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2386 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 2387 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2389 | else |
| 2390 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2391 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2392 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2393 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2394 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2395 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2396 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2397 | mips-*) llvm_cv_target_arch="Mips" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2398 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2399 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2400 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 2401 | bfin-*) llvm_cv_target_arch="Blackfin" ;; |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 2402 | mblaze-*) llvm_cv_target_arch="MBlaze" ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 2403 | ptx-*) llvm_cv_target_arch="PTX" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2404 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2405 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2406 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2407 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2408 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2409 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2410 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2411 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2412 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2413 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2414 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 2415 | # Determine the LLVM native architecture for the target |
| 2416 | case "$llvm_cv_target_arch" in |
| 2417 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2418 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2419 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2420 | esac |
| 2421 | |
| 2422 | ARCH=$llvm_cv_target_arch |
| 2423 | |
| 2424 | |
| 2425 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2426 | ac_cpp='$CPP $CPPFLAGS' |
| 2427 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2428 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2429 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2430 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2431 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2432 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2433 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2434 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2435 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2437 | else |
| 2438 | if test -n "$CC"; then |
| 2439 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2440 | else |
| 2441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2442 | for as_dir in $PATH |
| 2443 | do |
| 2444 | IFS=$as_save_IFS |
| 2445 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2446 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2447 | 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] | 2448 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2449 | 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] | 2450 | break 2 |
| 2451 | fi |
| 2452 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2453 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2454 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2455 | |
| 2456 | fi |
| 2457 | fi |
| 2458 | CC=$ac_cv_prog_CC |
| 2459 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2460 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2461 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2462 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2463 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2464 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2465 | fi |
| 2466 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2467 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2468 | fi |
| 2469 | if test -z "$ac_cv_prog_CC"; then |
| 2470 | ac_ct_CC=$CC |
| 2471 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2472 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2473 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2474 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2475 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2477 | else |
| 2478 | if test -n "$ac_ct_CC"; then |
| 2479 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2480 | else |
| 2481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2482 | for as_dir in $PATH |
| 2483 | do |
| 2484 | IFS=$as_save_IFS |
| 2485 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2486 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2487 | 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] | 2488 | ac_cv_prog_ac_ct_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2489 | 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] | 2490 | break 2 |
| 2491 | fi |
| 2492 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2493 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2494 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2495 | |
| 2496 | fi |
| 2497 | fi |
| 2498 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2499 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2500 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2501 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2502 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2503 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2504 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2505 | fi |
| 2506 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2507 | if test "x$ac_ct_CC" = x; then |
| 2508 | CC="" |
| 2509 | else |
| 2510 | case $cross_compiling:$ac_tool_warned in |
| 2511 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2512 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2513 | whose name does not start with the host triplet. If you think this |
| 2514 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2515 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2516 | whose name does not start with the host triplet. If you think this |
| 2517 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2518 | ac_tool_warned=yes ;; |
| 2519 | esac |
| 2520 | CC=$ac_ct_CC |
| 2521 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2522 | else |
| 2523 | CC="$ac_cv_prog_CC" |
| 2524 | fi |
| 2525 | |
| 2526 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2527 | if test -n "$ac_tool_prefix"; then |
| 2528 | # 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] | 2529 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2530 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2531 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2532 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2534 | else |
| 2535 | if test -n "$CC"; then |
| 2536 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2537 | else |
| 2538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2539 | for as_dir in $PATH |
| 2540 | do |
| 2541 | IFS=$as_save_IFS |
| 2542 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2543 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2544 | 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] | 2545 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2546 | 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] | 2547 | break 2 |
| 2548 | fi |
| 2549 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2550 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2551 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2552 | |
| 2553 | fi |
| 2554 | fi |
| 2555 | CC=$ac_cv_prog_CC |
| 2556 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2557 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2558 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2559 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2560 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2561 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2562 | fi |
| 2563 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2564 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2565 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2566 | fi |
| 2567 | if test -z "$CC"; then |
| 2568 | # Extract the first word of "cc", so it can be a program name with args. |
| 2569 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2570 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2572 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2574 | else |
| 2575 | if test -n "$CC"; then |
| 2576 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2577 | else |
| 2578 | ac_prog_rejected=no |
| 2579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2580 | for as_dir in $PATH |
| 2581 | do |
| 2582 | IFS=$as_save_IFS |
| 2583 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2584 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2585 | 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] | 2586 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2587 | ac_prog_rejected=yes |
| 2588 | continue |
| 2589 | fi |
| 2590 | ac_cv_prog_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2591 | 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] | 2592 | break 2 |
| 2593 | fi |
| 2594 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2595 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2596 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2597 | |
| 2598 | if test $ac_prog_rejected = yes; then |
| 2599 | # We found a bogon in the path, so make sure we never use it. |
| 2600 | set dummy $ac_cv_prog_CC |
| 2601 | shift |
| 2602 | if test $# != 0; then |
| 2603 | # We chose a different compiler from the bogus one. |
| 2604 | # However, it has the same basename, so the bogon will be chosen |
| 2605 | # first if we set CC to just the basename; use the full file name. |
| 2606 | shift |
| 2607 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2608 | fi |
| 2609 | fi |
| 2610 | fi |
| 2611 | fi |
| 2612 | CC=$ac_cv_prog_CC |
| 2613 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2614 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2615 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2616 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2617 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2618 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2619 | fi |
| 2620 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2621 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2622 | fi |
| 2623 | if test -z "$CC"; then |
| 2624 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2625 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2626 | do |
| 2627 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2628 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2629 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2630 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2631 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2633 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2634 | if test -n "$CC"; then |
| 2635 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2636 | else |
| 2637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2638 | for as_dir in $PATH |
| 2639 | do |
| 2640 | IFS=$as_save_IFS |
| 2641 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2642 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2643 | 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] | 2644 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2645 | 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] | 2646 | break 2 |
| 2647 | fi |
| 2648 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2649 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2650 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2651 | |
| 2652 | fi |
| 2653 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2654 | CC=$ac_cv_prog_CC |
| 2655 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2656 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2657 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2658 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2659 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2660 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2661 | fi |
| 2662 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2663 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2664 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2665 | done |
| 2666 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2667 | if test -z "$CC"; then |
| 2668 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2669 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2670 | do |
| 2671 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2672 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2673 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2675 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2677 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2678 | if test -n "$ac_ct_CC"; then |
| 2679 | 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] | 2680 | else |
| 2681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2682 | for as_dir in $PATH |
| 2683 | do |
| 2684 | IFS=$as_save_IFS |
| 2685 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2686 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2687 | 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] | 2688 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2689 | 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] | 2690 | break 2 |
| 2691 | fi |
| 2692 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2693 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2694 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2695 | |
| 2696 | fi |
| 2697 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2698 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2699 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2700 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2701 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2702 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2703 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2704 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2705 | fi |
| 2706 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2707 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2708 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2709 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2710 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2711 | if test "x$ac_ct_CC" = x; then |
| 2712 | CC="" |
| 2713 | else |
| 2714 | case $cross_compiling:$ac_tool_warned in |
| 2715 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2716 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2717 | whose name does not start with the host triplet. If you think this |
| 2718 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2719 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2720 | whose name does not start with the host triplet. If you think this |
| 2721 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2722 | ac_tool_warned=yes ;; |
| 2723 | esac |
| 2724 | CC=$ac_ct_CC |
| 2725 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2726 | fi |
| 2727 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2728 | fi |
| 2729 | |
| 2730 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2731 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2732 | See \`config.log' for more details." >&5 |
| 2733 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2734 | See \`config.log' for more details." >&2;} |
| 2735 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2736 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2737 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2738 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2739 | ac_compiler=`set X $ac_compile; echo $2` |
| 2740 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2741 | case "(($ac_try" in |
| 2742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2743 | *) ac_try_echo=$ac_try;; |
| 2744 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2746 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2747 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2749 | (exit $ac_status); } |
| 2750 | { (ac_try="$ac_compiler -v >&5" |
| 2751 | case "(($ac_try" in |
| 2752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2753 | *) ac_try_echo=$ac_try;; |
| 2754 | esac |
| 2755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2756 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2757 | ac_status=$? |
| 2758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2759 | (exit $ac_status); } |
| 2760 | { (ac_try="$ac_compiler -V >&5" |
| 2761 | case "(($ac_try" in |
| 2762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2763 | *) ac_try_echo=$ac_try;; |
| 2764 | esac |
| 2765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2766 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2767 | ac_status=$? |
| 2768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2769 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2770 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2771 | cat >conftest.$ac_ext <<_ACEOF |
| 2772 | /* confdefs.h. */ |
| 2773 | _ACEOF |
| 2774 | cat confdefs.h >>conftest.$ac_ext |
| 2775 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2776 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2777 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2778 | int |
| 2779 | main () |
| 2780 | { |
| 2781 | |
| 2782 | ; |
| 2783 | return 0; |
| 2784 | } |
| 2785 | _ACEOF |
| 2786 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2787 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2788 | # Try to create an executable without -o first, disregard a.out. |
| 2789 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2790 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2791 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2792 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2793 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2794 | # |
| 2795 | # List of possible output files, starting from the most likely. |
| 2796 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2797 | # only as a last resort. b.out is created by i960 compilers. |
| 2798 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2799 | # |
| 2800 | # The IRIX 6 linker writes into existing files which may not be |
| 2801 | # executable, retaining their permissions. Remove them first so a |
| 2802 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2803 | ac_rmfiles= |
| 2804 | for ac_file in $ac_files |
| 2805 | do |
| 2806 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2807 | *.$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] | 2808 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2809 | esac |
| 2810 | done |
| 2811 | rm -f $ac_rmfiles |
| 2812 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2813 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2814 | case "(($ac_try" in |
| 2815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2816 | *) ac_try_echo=$ac_try;; |
| 2817 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2819 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2820 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2822 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2823 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2824 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2825 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2826 | # so that the user can short-circuit this test for compilers unknown to |
| 2827 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2828 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2829 | do |
| 2830 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2831 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2832 | *.$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] | 2833 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2834 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2835 | # We found the default executable, but exeext='' is most |
| 2836 | # certainly right. |
| 2837 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2838 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2839 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2840 | then :; else |
| 2841 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2842 | fi |
| 2843 | # We set ac_cv_exeext here because the later test for it is not |
| 2844 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2845 | # argument, so we may need to know it at that point already. |
| 2846 | # Even if this section looks crufty: it has the advantage of |
| 2847 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2848 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2849 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2850 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2851 | esac |
| 2852 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2853 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2854 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2855 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2856 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2858 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2859 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2860 | See \`config.log' for more details." >&5 |
| 2861 | echo "$as_me: error: C compiler cannot create executables |
| 2862 | See \`config.log' for more details." >&2;} |
| 2863 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2864 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2865 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2866 | ac_exeext=$ac_cv_exeext |
| 2867 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2868 | echo "${ECHO_T}$ac_file" >&6; } |
| 2869 | |
| 2870 | # Check that the compiler produces executables we can run. If not, either |
| 2871 | # the compiler is broken, or we cross compile. |
| 2872 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2873 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2874 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2875 | # If not cross compiling, check that we can run a simple program. |
| 2876 | if test "$cross_compiling" != yes; then |
| 2877 | if { ac_try='./$ac_file' |
| 2878 | { (case "(($ac_try" in |
| 2879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2880 | *) ac_try_echo=$ac_try;; |
| 2881 | esac |
| 2882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2883 | (eval "$ac_try") 2>&5 |
| 2884 | ac_status=$? |
| 2885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2886 | (exit $ac_status); }; }; then |
| 2887 | cross_compiling=no |
| 2888 | else |
| 2889 | if test "$cross_compiling" = maybe; then |
| 2890 | cross_compiling=yes |
| 2891 | else |
| 2892 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2893 | If you meant to cross compile, use \`--host'. |
| 2894 | See \`config.log' for more details." >&5 |
| 2895 | echo "$as_me: error: cannot run C compiled programs. |
| 2896 | If you meant to cross compile, use \`--host'. |
| 2897 | See \`config.log' for more details." >&2;} |
| 2898 | { (exit 1); exit 1; }; } |
| 2899 | fi |
| 2900 | fi |
| 2901 | fi |
| 2902 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2903 | echo "${ECHO_T}yes" >&6; } |
| 2904 | |
| 2905 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2906 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2907 | # Check that the compiler produces executables we can run. If not, either |
| 2908 | # the compiler is broken, or we cross compile. |
| 2909 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2910 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2911 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2912 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2913 | |
| 2914 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2915 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2916 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2917 | case "(($ac_try" in |
| 2918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2919 | *) ac_try_echo=$ac_try;; |
| 2920 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2922 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2923 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2925 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2926 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2927 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2928 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2929 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2930 | for ac_file in conftest.exe conftest conftest.*; do |
| 2931 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2932 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2933 | *.$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] | 2934 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2935 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2936 | * ) break;; |
| 2937 | esac |
| 2938 | done |
| 2939 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2940 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2941 | See \`config.log' for more details." >&5 |
| 2942 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2943 | See \`config.log' for more details." >&2;} |
| 2944 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2945 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2946 | |
| 2947 | rm -f conftest$ac_cv_exeext |
| 2948 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2949 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2950 | |
| 2951 | rm -f conftest.$ac_ext |
| 2952 | EXEEXT=$ac_cv_exeext |
| 2953 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2954 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2955 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2956 | if test "${ac_cv_objext+set}" = set; then |
| 2957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2958 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2959 | cat >conftest.$ac_ext <<_ACEOF |
| 2960 | /* confdefs.h. */ |
| 2961 | _ACEOF |
| 2962 | cat confdefs.h >>conftest.$ac_ext |
| 2963 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2964 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2965 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2966 | int |
| 2967 | main () |
| 2968 | { |
| 2969 | |
| 2970 | ; |
| 2971 | return 0; |
| 2972 | } |
| 2973 | _ACEOF |
| 2974 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2975 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2976 | case "(($ac_try" in |
| 2977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2978 | *) ac_try_echo=$ac_try;; |
| 2979 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2981 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2982 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2984 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2985 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2986 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2987 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2988 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2989 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2990 | break;; |
| 2991 | esac |
| 2992 | done |
| 2993 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2994 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2996 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2997 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2998 | See \`config.log' for more details." >&5 |
| 2999 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 3000 | See \`config.log' for more details." >&2;} |
| 3001 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3002 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3003 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3004 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3005 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3006 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 3007 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3008 | OBJEXT=$ac_cv_objext |
| 3009 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3010 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3011 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 3012 | if test "${ac_cv_c_compiler_gnu+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 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3015 | cat >conftest.$ac_ext <<_ACEOF |
| 3016 | /* confdefs.h. */ |
| 3017 | _ACEOF |
| 3018 | cat confdefs.h >>conftest.$ac_ext |
| 3019 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3020 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3021 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3022 | int |
| 3023 | main () |
| 3024 | { |
| 3025 | #ifndef __GNUC__ |
| 3026 | choke me |
| 3027 | #endif |
| 3028 | |
| 3029 | ; |
| 3030 | return 0; |
| 3031 | } |
| 3032 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3033 | rm -f conftest.$ac_objext |
| 3034 | if { (ac_try="$ac_compile" |
| 3035 | case "(($ac_try" in |
| 3036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3037 | *) ac_try_echo=$ac_try;; |
| 3038 | esac |
| 3039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3040 | (eval "$ac_compile") 2>conftest.er1 |
| 3041 | ac_status=$? |
| 3042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3043 | rm -f conftest.er1 |
| 3044 | cat conftest.err >&5 |
| 3045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3046 | (exit $ac_status); } && |
| 3047 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3048 | { (case "(($ac_try" in |
| 3049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3050 | *) ac_try_echo=$ac_try;; |
| 3051 | esac |
| 3052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3053 | (eval "$ac_try") 2>&5 |
| 3054 | ac_status=$? |
| 3055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3056 | (exit $ac_status); }; } && |
| 3057 | { ac_try='test -s conftest.$ac_objext' |
| 3058 | { (case "(($ac_try" in |
| 3059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3060 | *) ac_try_echo=$ac_try;; |
| 3061 | esac |
| 3062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3063 | (eval "$ac_try") 2>&5 |
| 3064 | ac_status=$? |
| 3065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3066 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3067 | ac_compiler_gnu=yes |
| 3068 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3069 | echo "$as_me: failed program was:" >&5 |
| 3070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3071 | |
| 3072 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3073 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3074 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3076 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3077 | |
| 3078 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3079 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3080 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3081 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3082 | ac_test_CFLAGS=${CFLAGS+set} |
| 3083 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3084 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3085 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 3086 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3088 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3089 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3090 | ac_c_werror_flag=yes |
| 3091 | ac_cv_prog_cc_g=no |
| 3092 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3093 | cat >conftest.$ac_ext <<_ACEOF |
| 3094 | /* confdefs.h. */ |
| 3095 | _ACEOF |
| 3096 | cat confdefs.h >>conftest.$ac_ext |
| 3097 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3098 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3099 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3100 | int |
| 3101 | main () |
| 3102 | { |
| 3103 | |
| 3104 | ; |
| 3105 | return 0; |
| 3106 | } |
| 3107 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3108 | rm -f conftest.$ac_objext |
| 3109 | if { (ac_try="$ac_compile" |
| 3110 | case "(($ac_try" in |
| 3111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3112 | *) ac_try_echo=$ac_try;; |
| 3113 | esac |
| 3114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3115 | (eval "$ac_compile") 2>conftest.er1 |
| 3116 | ac_status=$? |
| 3117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3118 | rm -f conftest.er1 |
| 3119 | cat conftest.err >&5 |
| 3120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3121 | (exit $ac_status); } && |
| 3122 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3123 | { (case "(($ac_try" in |
| 3124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3125 | *) ac_try_echo=$ac_try;; |
| 3126 | esac |
| 3127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3128 | (eval "$ac_try") 2>&5 |
| 3129 | ac_status=$? |
| 3130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3131 | (exit $ac_status); }; } && |
| 3132 | { ac_try='test -s conftest.$ac_objext' |
| 3133 | { (case "(($ac_try" in |
| 3134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3135 | *) ac_try_echo=$ac_try;; |
| 3136 | esac |
| 3137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3138 | (eval "$ac_try") 2>&5 |
| 3139 | ac_status=$? |
| 3140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3141 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3142 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3143 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3144 | echo "$as_me: failed program was:" >&5 |
| 3145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3146 | |
| 3147 | CFLAGS="" |
| 3148 | cat >conftest.$ac_ext <<_ACEOF |
| 3149 | /* confdefs.h. */ |
| 3150 | _ACEOF |
| 3151 | cat confdefs.h >>conftest.$ac_ext |
| 3152 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3153 | /* end confdefs.h. */ |
| 3154 | |
| 3155 | int |
| 3156 | main () |
| 3157 | { |
| 3158 | |
| 3159 | ; |
| 3160 | return 0; |
| 3161 | } |
| 3162 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3163 | rm -f conftest.$ac_objext |
| 3164 | if { (ac_try="$ac_compile" |
| 3165 | case "(($ac_try" in |
| 3166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3167 | *) ac_try_echo=$ac_try;; |
| 3168 | esac |
| 3169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3170 | (eval "$ac_compile") 2>conftest.er1 |
| 3171 | ac_status=$? |
| 3172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3173 | rm -f conftest.er1 |
| 3174 | cat conftest.err >&5 |
| 3175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3176 | (exit $ac_status); } && |
| 3177 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3178 | { (case "(($ac_try" in |
| 3179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3180 | *) ac_try_echo=$ac_try;; |
| 3181 | esac |
| 3182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3183 | (eval "$ac_try") 2>&5 |
| 3184 | ac_status=$? |
| 3185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3186 | (exit $ac_status); }; } && |
| 3187 | { ac_try='test -s conftest.$ac_objext' |
| 3188 | { (case "(($ac_try" in |
| 3189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3190 | *) ac_try_echo=$ac_try;; |
| 3191 | esac |
| 3192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3193 | (eval "$ac_try") 2>&5 |
| 3194 | ac_status=$? |
| 3195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3196 | (exit $ac_status); }; }; then |
| 3197 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3198 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3199 | echo "$as_me: failed program was:" >&5 |
| 3200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3201 | |
| 3202 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3203 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3204 | cat >conftest.$ac_ext <<_ACEOF |
| 3205 | /* confdefs.h. */ |
| 3206 | _ACEOF |
| 3207 | cat confdefs.h >>conftest.$ac_ext |
| 3208 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3209 | /* end confdefs.h. */ |
| 3210 | |
| 3211 | int |
| 3212 | main () |
| 3213 | { |
| 3214 | |
| 3215 | ; |
| 3216 | return 0; |
| 3217 | } |
| 3218 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3219 | rm -f conftest.$ac_objext |
| 3220 | if { (ac_try="$ac_compile" |
| 3221 | case "(($ac_try" in |
| 3222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3223 | *) ac_try_echo=$ac_try;; |
| 3224 | esac |
| 3225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3226 | (eval "$ac_compile") 2>conftest.er1 |
| 3227 | ac_status=$? |
| 3228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3229 | rm -f conftest.er1 |
| 3230 | cat conftest.err >&5 |
| 3231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3232 | (exit $ac_status); } && |
| 3233 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3234 | { (case "(($ac_try" in |
| 3235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3236 | *) ac_try_echo=$ac_try;; |
| 3237 | esac |
| 3238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3239 | (eval "$ac_try") 2>&5 |
| 3240 | ac_status=$? |
| 3241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3242 | (exit $ac_status); }; } && |
| 3243 | { ac_try='test -s conftest.$ac_objext' |
| 3244 | { (case "(($ac_try" in |
| 3245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3246 | *) ac_try_echo=$ac_try;; |
| 3247 | esac |
| 3248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3249 | (eval "$ac_try") 2>&5 |
| 3250 | ac_status=$? |
| 3251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3252 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3253 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3254 | else |
| 3255 | echo "$as_me: failed program was:" >&5 |
| 3256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3257 | |
| 3258 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3259 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3260 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3262 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3263 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3265 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3266 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3268 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3269 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3270 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3271 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3272 | if test "$ac_test_CFLAGS" = set; then |
| 3273 | CFLAGS=$ac_save_CFLAGS |
| 3274 | elif test $ac_cv_prog_cc_g = yes; then |
| 3275 | if test "$GCC" = yes; then |
| 3276 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3277 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3278 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3279 | fi |
| 3280 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3281 | if test "$GCC" = yes; then |
| 3282 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3283 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3284 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3285 | fi |
| 3286 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3287 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3288 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3289 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 3290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3291 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3292 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3293 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3294 | cat >conftest.$ac_ext <<_ACEOF |
| 3295 | /* confdefs.h. */ |
| 3296 | _ACEOF |
| 3297 | cat confdefs.h >>conftest.$ac_ext |
| 3298 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3299 | /* end confdefs.h. */ |
| 3300 | #include <stdarg.h> |
| 3301 | #include <stdio.h> |
| 3302 | #include <sys/types.h> |
| 3303 | #include <sys/stat.h> |
| 3304 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3305 | struct buf { int x; }; |
| 3306 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3307 | static char *e (p, i) |
| 3308 | char **p; |
| 3309 | int i; |
| 3310 | { |
| 3311 | return p[i]; |
| 3312 | } |
| 3313 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3314 | { |
| 3315 | char *s; |
| 3316 | va_list v; |
| 3317 | va_start (v,p); |
| 3318 | s = g (p, va_arg (v,int)); |
| 3319 | va_end (v); |
| 3320 | return s; |
| 3321 | } |
| 3322 | |
| 3323 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3324 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3325 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3326 | 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] | 3327 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3328 | 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] | 3329 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3330 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3331 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3332 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3333 | inside strings and character constants. */ |
| 3334 | #define FOO(x) 'x' |
| 3335 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3336 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3337 | int test (int i, double x); |
| 3338 | struct s1 {int (*f) (int a);}; |
| 3339 | struct s2 {int (*f) (double a);}; |
| 3340 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3341 | int argc; |
| 3342 | char **argv; |
| 3343 | int |
| 3344 | main () |
| 3345 | { |
| 3346 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3347 | ; |
| 3348 | return 0; |
| 3349 | } |
| 3350 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3351 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3352 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3353 | do |
| 3354 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3355 | rm -f conftest.$ac_objext |
| 3356 | if { (ac_try="$ac_compile" |
| 3357 | case "(($ac_try" in |
| 3358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3359 | *) ac_try_echo=$ac_try;; |
| 3360 | esac |
| 3361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3362 | (eval "$ac_compile") 2>conftest.er1 |
| 3363 | ac_status=$? |
| 3364 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3365 | rm -f conftest.er1 |
| 3366 | cat conftest.err >&5 |
| 3367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3368 | (exit $ac_status); } && |
| 3369 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3370 | { (case "(($ac_try" in |
| 3371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3372 | *) ac_try_echo=$ac_try;; |
| 3373 | esac |
| 3374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3375 | (eval "$ac_try") 2>&5 |
| 3376 | ac_status=$? |
| 3377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3378 | (exit $ac_status); }; } && |
| 3379 | { ac_try='test -s conftest.$ac_objext' |
| 3380 | { (case "(($ac_try" in |
| 3381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3382 | *) ac_try_echo=$ac_try;; |
| 3383 | esac |
| 3384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3385 | (eval "$ac_try") 2>&5 |
| 3386 | ac_status=$? |
| 3387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3388 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3389 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3390 | else |
| 3391 | echo "$as_me: failed program was:" >&5 |
| 3392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3393 | |
| 3394 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3395 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3396 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3397 | rm -f core conftest.err conftest.$ac_objext |
| 3398 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3399 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3400 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3401 | CC=$ac_save_CC |
| 3402 | |
| 3403 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3404 | # AC_CACHE_VAL |
| 3405 | case "x$ac_cv_prog_cc_c89" in |
| 3406 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3407 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3408 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3409 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3410 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3411 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3412 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3413 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3414 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3415 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3416 | esac |
| 3417 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3418 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3419 | ac_ext=c |
| 3420 | ac_cpp='$CPP $CPPFLAGS' |
| 3421 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3422 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3423 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3424 | |
| 3425 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3426 | ac_ext=c |
| 3427 | ac_cpp='$CPP $CPPFLAGS' |
| 3428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3431 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3432 | 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] | 3433 | # On Suns, sometimes $CPP names a directory. |
| 3434 | if test -n "$CPP" && test -d "$CPP"; then |
| 3435 | CPP= |
| 3436 | fi |
| 3437 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3438 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3440 | else |
| 3441 | # Double quotes because CPP needs to be expanded |
| 3442 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3443 | do |
| 3444 | ac_preproc_ok=false |
| 3445 | for ac_c_preproc_warn_flag in '' yes |
| 3446 | do |
| 3447 | # Use a header file that comes with gcc, so configuring glibc |
| 3448 | # with a fresh cross-compiler works. |
| 3449 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3450 | # <limits.h> exists even on freestanding compilers. |
| 3451 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3452 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3453 | cat >conftest.$ac_ext <<_ACEOF |
| 3454 | /* confdefs.h. */ |
| 3455 | _ACEOF |
| 3456 | cat confdefs.h >>conftest.$ac_ext |
| 3457 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3458 | /* end confdefs.h. */ |
| 3459 | #ifdef __STDC__ |
| 3460 | # include <limits.h> |
| 3461 | #else |
| 3462 | # include <assert.h> |
| 3463 | #endif |
| 3464 | Syntax error |
| 3465 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3466 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3467 | case "(($ac_try" in |
| 3468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3469 | *) ac_try_echo=$ac_try;; |
| 3470 | esac |
| 3471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3472 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3473 | ac_status=$? |
| 3474 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3475 | rm -f conftest.er1 |
| 3476 | cat conftest.err >&5 |
| 3477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3478 | (exit $ac_status); } >/dev/null; then |
| 3479 | if test -s conftest.err; then |
| 3480 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3481 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3482 | else |
| 3483 | ac_cpp_err= |
| 3484 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3485 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3486 | ac_cpp_err=yes |
| 3487 | fi |
| 3488 | if test -z "$ac_cpp_err"; then |
| 3489 | : |
| 3490 | else |
| 3491 | echo "$as_me: failed program was:" >&5 |
| 3492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3493 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3494 | # Broken: fails on valid input. |
| 3495 | continue |
| 3496 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3497 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3498 | rm -f conftest.err conftest.$ac_ext |
| 3499 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3500 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3501 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3502 | cat >conftest.$ac_ext <<_ACEOF |
| 3503 | /* confdefs.h. */ |
| 3504 | _ACEOF |
| 3505 | cat confdefs.h >>conftest.$ac_ext |
| 3506 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3507 | /* end confdefs.h. */ |
| 3508 | #include <ac_nonexistent.h> |
| 3509 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3510 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3511 | case "(($ac_try" in |
| 3512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3513 | *) ac_try_echo=$ac_try;; |
| 3514 | esac |
| 3515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3516 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3517 | ac_status=$? |
| 3518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3519 | rm -f conftest.er1 |
| 3520 | cat conftest.err >&5 |
| 3521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3522 | (exit $ac_status); } >/dev/null; then |
| 3523 | if test -s conftest.err; then |
| 3524 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3525 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3526 | else |
| 3527 | ac_cpp_err= |
| 3528 | fi |
| 3529 | else |
| 3530 | ac_cpp_err=yes |
| 3531 | fi |
| 3532 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3533 | # Broken: success on invalid input. |
| 3534 | continue |
| 3535 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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 | # Passes both tests. |
| 3540 | ac_preproc_ok=: |
| 3541 | break |
| 3542 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3543 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3544 | rm -f conftest.err conftest.$ac_ext |
| 3545 | |
| 3546 | done |
| 3547 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3548 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3549 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3550 | break |
| 3551 | fi |
| 3552 | |
| 3553 | done |
| 3554 | ac_cv_prog_CPP=$CPP |
| 3555 | |
| 3556 | fi |
| 3557 | CPP=$ac_cv_prog_CPP |
| 3558 | else |
| 3559 | ac_cv_prog_CPP=$CPP |
| 3560 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3561 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3562 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3563 | ac_preproc_ok=false |
| 3564 | for ac_c_preproc_warn_flag in '' yes |
| 3565 | do |
| 3566 | # Use a header file that comes with gcc, so configuring glibc |
| 3567 | # with a fresh cross-compiler works. |
| 3568 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3569 | # <limits.h> exists even on freestanding compilers. |
| 3570 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3571 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3572 | cat >conftest.$ac_ext <<_ACEOF |
| 3573 | /* confdefs.h. */ |
| 3574 | _ACEOF |
| 3575 | cat confdefs.h >>conftest.$ac_ext |
| 3576 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3577 | /* end confdefs.h. */ |
| 3578 | #ifdef __STDC__ |
| 3579 | # include <limits.h> |
| 3580 | #else |
| 3581 | # include <assert.h> |
| 3582 | #endif |
| 3583 | Syntax error |
| 3584 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3585 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3586 | case "(($ac_try" in |
| 3587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3588 | *) ac_try_echo=$ac_try;; |
| 3589 | esac |
| 3590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3591 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3592 | ac_status=$? |
| 3593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3594 | rm -f conftest.er1 |
| 3595 | cat conftest.err >&5 |
| 3596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3597 | (exit $ac_status); } >/dev/null; then |
| 3598 | if test -s conftest.err; then |
| 3599 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3600 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3601 | else |
| 3602 | ac_cpp_err= |
| 3603 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3604 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3605 | ac_cpp_err=yes |
| 3606 | fi |
| 3607 | if test -z "$ac_cpp_err"; then |
| 3608 | : |
| 3609 | else |
| 3610 | echo "$as_me: failed program was:" >&5 |
| 3611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3612 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3613 | # Broken: fails on valid input. |
| 3614 | continue |
| 3615 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3616 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3617 | rm -f conftest.err conftest.$ac_ext |
| 3618 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3619 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3620 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3621 | cat >conftest.$ac_ext <<_ACEOF |
| 3622 | /* confdefs.h. */ |
| 3623 | _ACEOF |
| 3624 | cat confdefs.h >>conftest.$ac_ext |
| 3625 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3626 | /* end confdefs.h. */ |
| 3627 | #include <ac_nonexistent.h> |
| 3628 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3629 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3630 | case "(($ac_try" in |
| 3631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3632 | *) ac_try_echo=$ac_try;; |
| 3633 | esac |
| 3634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3635 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3636 | ac_status=$? |
| 3637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3638 | rm -f conftest.er1 |
| 3639 | cat conftest.err >&5 |
| 3640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3641 | (exit $ac_status); } >/dev/null; then |
| 3642 | if test -s conftest.err; then |
| 3643 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3644 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3645 | else |
| 3646 | ac_cpp_err= |
| 3647 | fi |
| 3648 | else |
| 3649 | ac_cpp_err=yes |
| 3650 | fi |
| 3651 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3652 | # Broken: success on invalid input. |
| 3653 | continue |
| 3654 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3655 | echo "$as_me: failed program was:" >&5 |
| 3656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3657 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3658 | # Passes both tests. |
| 3659 | ac_preproc_ok=: |
| 3660 | break |
| 3661 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3662 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3663 | rm -f conftest.err conftest.$ac_ext |
| 3664 | |
| 3665 | done |
| 3666 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3667 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3668 | if $ac_preproc_ok; then |
| 3669 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3670 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3671 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3672 | See \`config.log' for more details." >&5 |
| 3673 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3674 | See \`config.log' for more details." >&2;} |
| 3675 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3676 | fi |
| 3677 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3678 | ac_ext=c |
| 3679 | ac_cpp='$CPP $CPPFLAGS' |
| 3680 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3681 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3682 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3683 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3684 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3685 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3686 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3687 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3689 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3690 | # Extract the first word of "grep ggrep" to use in msg output |
| 3691 | if test -z "$GREP"; then |
| 3692 | set dummy grep ggrep; ac_prog_name=$2 |
| 3693 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3695 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3696 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3697 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3699 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3700 | do |
| 3701 | IFS=$as_save_IFS |
| 3702 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3703 | for ac_prog in grep ggrep; do |
| 3704 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3705 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3706 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3707 | # 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] | 3708 | # Check for GNU $ac_path_GREP |
| 3709 | case `"$ac_path_GREP" --version 2>&1` in |
| 3710 | *GNU*) |
| 3711 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3712 | *) |
| 3713 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3714 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3715 | while : |
| 3716 | do |
| 3717 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3718 | mv "conftest.tmp" "conftest.in" |
| 3719 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3720 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3721 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3722 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3723 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3724 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3725 | # Best one so far, save it but keep looking for a better one |
| 3726 | ac_cv_path_GREP="$ac_path_GREP" |
| 3727 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3728 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3729 | # 10*(2^10) chars as input seems more than enough |
| 3730 | test $ac_count -gt 10 && break |
| 3731 | done |
| 3732 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3733 | esac |
| 3734 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3735 | |
| 3736 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3737 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3738 | done |
| 3739 | |
| 3740 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3741 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3742 | |
| 3743 | |
| 3744 | fi |
| 3745 | |
| 3746 | GREP="$ac_cv_path_GREP" |
| 3747 | if test -z "$GREP"; then |
| 3748 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3749 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3750 | { (exit 1); exit 1; }; } |
| 3751 | fi |
| 3752 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3753 | else |
| 3754 | ac_cv_path_GREP=$GREP |
| 3755 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3756 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3757 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3758 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3759 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3760 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3761 | GREP="$ac_cv_path_GREP" |
| 3762 | |
| 3763 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3764 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3765 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3766 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3768 | else |
| 3769 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3770 | then ac_cv_path_EGREP="$GREP -E" |
| 3771 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3772 | # Extract the first word of "egrep" to use in msg output |
| 3773 | if test -z "$EGREP"; then |
| 3774 | set dummy egrep; ac_prog_name=$2 |
| 3775 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3777 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3778 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3779 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3781 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3782 | do |
| 3783 | IFS=$as_save_IFS |
| 3784 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3785 | for ac_prog in egrep; do |
| 3786 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3787 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3788 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3789 | # 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] | 3790 | # Check for GNU $ac_path_EGREP |
| 3791 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3792 | *GNU*) |
| 3793 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3794 | *) |
| 3795 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3796 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3797 | while : |
| 3798 | do |
| 3799 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3800 | mv "conftest.tmp" "conftest.in" |
| 3801 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3802 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3803 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3804 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3805 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3806 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3807 | # Best one so far, save it but keep looking for a better one |
| 3808 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3809 | ac_path_EGREP_max=$ac_count |
| 3810 | fi |
| 3811 | # 10*(2^10) chars as input seems more than enough |
| 3812 | test $ac_count -gt 10 && break |
| 3813 | done |
| 3814 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3815 | esac |
| 3816 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3817 | |
| 3818 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3819 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3820 | done |
| 3821 | |
| 3822 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3823 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3824 | |
| 3825 | |
| 3826 | fi |
| 3827 | |
| 3828 | EGREP="$ac_cv_path_EGREP" |
| 3829 | if test -z "$EGREP"; then |
| 3830 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3831 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3832 | { (exit 1); exit 1; }; } |
| 3833 | fi |
| 3834 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3835 | else |
| 3836 | ac_cv_path_EGREP=$EGREP |
| 3837 | fi |
| 3838 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3839 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3840 | fi |
| 3841 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3842 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3843 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3844 | EGREP="$ac_cv_path_EGREP" |
| 3845 | |
| 3846 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3847 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3848 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 3849 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3851 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3852 | cat >conftest.$ac_ext <<_ACEOF |
| 3853 | /* confdefs.h. */ |
| 3854 | _ACEOF |
| 3855 | cat confdefs.h >>conftest.$ac_ext |
| 3856 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3857 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3858 | #include <stdlib.h> |
| 3859 | #include <stdarg.h> |
| 3860 | #include <string.h> |
| 3861 | #include <float.h> |
| 3862 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3863 | int |
| 3864 | main () |
| 3865 | { |
| 3866 | |
| 3867 | ; |
| 3868 | return 0; |
| 3869 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3870 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3871 | rm -f conftest.$ac_objext |
| 3872 | if { (ac_try="$ac_compile" |
| 3873 | case "(($ac_try" in |
| 3874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3875 | *) ac_try_echo=$ac_try;; |
| 3876 | esac |
| 3877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3878 | (eval "$ac_compile") 2>conftest.er1 |
| 3879 | ac_status=$? |
| 3880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3881 | rm -f conftest.er1 |
| 3882 | cat conftest.err >&5 |
| 3883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3884 | (exit $ac_status); } && |
| 3885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3886 | { (case "(($ac_try" in |
| 3887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3888 | *) ac_try_echo=$ac_try;; |
| 3889 | esac |
| 3890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3891 | (eval "$ac_try") 2>&5 |
| 3892 | ac_status=$? |
| 3893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3894 | (exit $ac_status); }; } && |
| 3895 | { ac_try='test -s conftest.$ac_objext' |
| 3896 | { (case "(($ac_try" in |
| 3897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3898 | *) ac_try_echo=$ac_try;; |
| 3899 | esac |
| 3900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3901 | (eval "$ac_try") 2>&5 |
| 3902 | ac_status=$? |
| 3903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3904 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3905 | ac_cv_header_stdc=yes |
| 3906 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3907 | echo "$as_me: failed program was:" >&5 |
| 3908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3909 | |
| 3910 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3911 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3912 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3914 | |
| 3915 | if test $ac_cv_header_stdc = yes; then |
| 3916 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3917 | cat >conftest.$ac_ext <<_ACEOF |
| 3918 | /* confdefs.h. */ |
| 3919 | _ACEOF |
| 3920 | cat confdefs.h >>conftest.$ac_ext |
| 3921 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3922 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3923 | #include <string.h> |
| 3924 | |
| 3925 | _ACEOF |
| 3926 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3927 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3928 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3929 | else |
| 3930 | ac_cv_header_stdc=no |
| 3931 | fi |
| 3932 | rm -f conftest* |
| 3933 | |
| 3934 | fi |
| 3935 | |
| 3936 | if test $ac_cv_header_stdc = yes; then |
| 3937 | # 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] | 3938 | cat >conftest.$ac_ext <<_ACEOF |
| 3939 | /* confdefs.h. */ |
| 3940 | _ACEOF |
| 3941 | cat confdefs.h >>conftest.$ac_ext |
| 3942 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3943 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3944 | #include <stdlib.h> |
| 3945 | |
| 3946 | _ACEOF |
| 3947 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3948 | $EGREP "free" >/dev/null 2>&1; then |
| 3949 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3950 | else |
| 3951 | ac_cv_header_stdc=no |
| 3952 | fi |
| 3953 | rm -f conftest* |
| 3954 | |
| 3955 | fi |
| 3956 | |
| 3957 | if test $ac_cv_header_stdc = yes; then |
| 3958 | # /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] | 3959 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3960 | : |
| 3961 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3962 | cat >conftest.$ac_ext <<_ACEOF |
| 3963 | /* confdefs.h. */ |
| 3964 | _ACEOF |
| 3965 | cat confdefs.h >>conftest.$ac_ext |
| 3966 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3967 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3968 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3969 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3970 | #if ((' ' & 0x0FF) == 0x020) |
| 3971 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3972 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3973 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3974 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3975 | (('a' <= (c) && (c) <= 'i') \ |
| 3976 | || ('j' <= (c) && (c) <= 'r') \ |
| 3977 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3978 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3979 | #endif |
| 3980 | |
| 3981 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3982 | int |
| 3983 | main () |
| 3984 | { |
| 3985 | int i; |
| 3986 | for (i = 0; i < 256; i++) |
| 3987 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3988 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3989 | return 2; |
| 3990 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3991 | } |
| 3992 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3993 | rm -f conftest$ac_exeext |
| 3994 | if { (ac_try="$ac_link" |
| 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_link") 2>&5 |
| 4001 | ac_status=$? |
| 4002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4003 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4004 | { (case "(($ac_try" in |
| 4005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4006 | *) ac_try_echo=$ac_try;; |
| 4007 | esac |
| 4008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4009 | (eval "$ac_try") 2>&5 |
| 4010 | ac_status=$? |
| 4011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4012 | (exit $ac_status); }; }; then |
| 4013 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4014 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4015 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4016 | echo "$as_me: failed program was:" >&5 |
| 4017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4018 | |
| 4019 | ( exit $ac_status ) |
| 4020 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4021 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4022 | 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] | 4023 | fi |
| 4024 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4025 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4026 | fi |
| 4027 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4028 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4029 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4030 | if test $ac_cv_header_stdc = yes; then |
| 4031 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4032 | cat >>confdefs.h <<\_ACEOF |
| 4033 | #define STDC_HEADERS 1 |
| 4034 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4035 | |
| 4036 | fi |
| 4037 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4038 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4039 | |
| 4040 | |
| 4041 | |
| 4042 | |
| 4043 | |
| 4044 | |
| 4045 | |
| 4046 | |
| 4047 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4048 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4049 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4050 | do |
| 4051 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4052 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4053 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4054 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4056 | else |
| 4057 | cat >conftest.$ac_ext <<_ACEOF |
| 4058 | /* confdefs.h. */ |
| 4059 | _ACEOF |
| 4060 | cat confdefs.h >>conftest.$ac_ext |
| 4061 | cat >>conftest.$ac_ext <<_ACEOF |
| 4062 | /* end confdefs.h. */ |
| 4063 | $ac_includes_default |
| 4064 | |
| 4065 | #include <$ac_header> |
| 4066 | _ACEOF |
| 4067 | rm -f conftest.$ac_objext |
| 4068 | if { (ac_try="$ac_compile" |
| 4069 | case "(($ac_try" in |
| 4070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4071 | *) ac_try_echo=$ac_try;; |
| 4072 | esac |
| 4073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4074 | (eval "$ac_compile") 2>conftest.er1 |
| 4075 | ac_status=$? |
| 4076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4077 | rm -f conftest.er1 |
| 4078 | cat conftest.err >&5 |
| 4079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4080 | (exit $ac_status); } && |
| 4081 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4082 | { (case "(($ac_try" in |
| 4083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4084 | *) ac_try_echo=$ac_try;; |
| 4085 | esac |
| 4086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4087 | (eval "$ac_try") 2>&5 |
| 4088 | ac_status=$? |
| 4089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4090 | (exit $ac_status); }; } && |
| 4091 | { ac_try='test -s conftest.$ac_objext' |
| 4092 | { (case "(($ac_try" in |
| 4093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4094 | *) ac_try_echo=$ac_try;; |
| 4095 | esac |
| 4096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4097 | (eval "$ac_try") 2>&5 |
| 4098 | ac_status=$? |
| 4099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4100 | (exit $ac_status); }; }; then |
| 4101 | eval "$as_ac_Header=yes" |
| 4102 | else |
| 4103 | echo "$as_me: failed program was:" >&5 |
| 4104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4105 | |
| 4106 | eval "$as_ac_Header=no" |
| 4107 | fi |
| 4108 | |
| 4109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4110 | fi |
| 4111 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4112 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4113 | echo "${ECHO_T}$ac_res" >&6; } |
| 4114 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4115 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4116 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4117 | _ACEOF |
| 4118 | |
| 4119 | fi |
| 4120 | |
| 4121 | done |
| 4122 | |
| 4123 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4124 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4125 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4126 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4128 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4129 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4130 | cat >conftest.$ac_ext <<_ACEOF |
| 4131 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4132 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4133 | cat confdefs.h >>conftest.$ac_ext |
| 4134 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4135 | /* end confdefs.h. */ |
| 4136 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4137 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4138 | |
| 4139 | int |
| 4140 | main () |
| 4141 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4142 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4143 | bogus endian macros |
| 4144 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4145 | |
| 4146 | ; |
| 4147 | return 0; |
| 4148 | } |
| 4149 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4150 | rm -f conftest.$ac_objext |
| 4151 | if { (ac_try="$ac_compile" |
| 4152 | case "(($ac_try" in |
| 4153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4154 | *) ac_try_echo=$ac_try;; |
| 4155 | esac |
| 4156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4157 | (eval "$ac_compile") 2>conftest.er1 |
| 4158 | ac_status=$? |
| 4159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4160 | rm -f conftest.er1 |
| 4161 | cat conftest.err >&5 |
| 4162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4163 | (exit $ac_status); } && |
| 4164 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4165 | { (case "(($ac_try" in |
| 4166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4167 | *) ac_try_echo=$ac_try;; |
| 4168 | esac |
| 4169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4170 | (eval "$ac_try") 2>&5 |
| 4171 | ac_status=$? |
| 4172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4173 | (exit $ac_status); }; } && |
| 4174 | { ac_try='test -s conftest.$ac_objext' |
| 4175 | { (case "(($ac_try" in |
| 4176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4177 | *) ac_try_echo=$ac_try;; |
| 4178 | esac |
| 4179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4180 | (eval "$ac_try") 2>&5 |
| 4181 | ac_status=$? |
| 4182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4183 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4184 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4185 | cat >conftest.$ac_ext <<_ACEOF |
| 4186 | /* confdefs.h. */ |
| 4187 | _ACEOF |
| 4188 | cat confdefs.h >>conftest.$ac_ext |
| 4189 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4190 | /* end confdefs.h. */ |
| 4191 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4192 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4193 | |
| 4194 | int |
| 4195 | main () |
| 4196 | { |
| 4197 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4198 | not big endian |
| 4199 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4200 | |
| 4201 | ; |
| 4202 | return 0; |
| 4203 | } |
| 4204 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4205 | rm -f conftest.$ac_objext |
| 4206 | if { (ac_try="$ac_compile" |
| 4207 | case "(($ac_try" in |
| 4208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4209 | *) ac_try_echo=$ac_try;; |
| 4210 | esac |
| 4211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4212 | (eval "$ac_compile") 2>conftest.er1 |
| 4213 | ac_status=$? |
| 4214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4215 | rm -f conftest.er1 |
| 4216 | cat conftest.err >&5 |
| 4217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4218 | (exit $ac_status); } && |
| 4219 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4220 | { (case "(($ac_try" in |
| 4221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4222 | *) ac_try_echo=$ac_try;; |
| 4223 | esac |
| 4224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4225 | (eval "$ac_try") 2>&5 |
| 4226 | ac_status=$? |
| 4227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4228 | (exit $ac_status); }; } && |
| 4229 | { ac_try='test -s conftest.$ac_objext' |
| 4230 | { (case "(($ac_try" in |
| 4231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4232 | *) ac_try_echo=$ac_try;; |
| 4233 | esac |
| 4234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4235 | (eval "$ac_try") 2>&5 |
| 4236 | ac_status=$? |
| 4237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4238 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4239 | ac_cv_c_bigendian=yes |
| 4240 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4241 | echo "$as_me: failed program was:" >&5 |
| 4242 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4243 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4244 | ac_cv_c_bigendian=no |
| 4245 | fi |
| 4246 | |
| 4247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4248 | else |
| 4249 | echo "$as_me: failed program was:" >&5 |
| 4250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4251 | |
| 4252 | # It does not; compile a test program. |
| 4253 | if test "$cross_compiling" = yes; then |
| 4254 | # try to guess the endianness by grepping values into an object file |
| 4255 | ac_cv_c_bigendian=unknown |
| 4256 | cat >conftest.$ac_ext <<_ACEOF |
| 4257 | /* confdefs.h. */ |
| 4258 | _ACEOF |
| 4259 | cat confdefs.h >>conftest.$ac_ext |
| 4260 | cat >>conftest.$ac_ext <<_ACEOF |
| 4261 | /* end confdefs.h. */ |
| 4262 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4263 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4264 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4265 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4266 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4267 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4268 | int |
| 4269 | main () |
| 4270 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4271 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4272 | ; |
| 4273 | return 0; |
| 4274 | } |
| 4275 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4276 | rm -f conftest.$ac_objext |
| 4277 | if { (ac_try="$ac_compile" |
| 4278 | case "(($ac_try" in |
| 4279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4280 | *) ac_try_echo=$ac_try;; |
| 4281 | esac |
| 4282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4283 | (eval "$ac_compile") 2>conftest.er1 |
| 4284 | ac_status=$? |
| 4285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4286 | rm -f conftest.er1 |
| 4287 | cat conftest.err >&5 |
| 4288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4289 | (exit $ac_status); } && |
| 4290 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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); }; } && |
| 4300 | { ac_try='test -s conftest.$ac_objext' |
| 4301 | { (case "(($ac_try" in |
| 4302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4303 | *) ac_try_echo=$ac_try;; |
| 4304 | esac |
| 4305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4306 | (eval "$ac_try") 2>&5 |
| 4307 | ac_status=$? |
| 4308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4309 | (exit $ac_status); }; }; then |
| 4310 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4311 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4312 | fi |
| 4313 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4314 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4315 | ac_cv_c_bigendian=no |
| 4316 | else |
| 4317 | # finding both strings is unlikely to happen, but who knows? |
| 4318 | ac_cv_c_bigendian=unknown |
| 4319 | fi |
| 4320 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4321 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4322 | echo "$as_me: failed program was:" >&5 |
| 4323 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4324 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4325 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4326 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4327 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4329 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4330 | cat >conftest.$ac_ext <<_ACEOF |
| 4331 | /* confdefs.h. */ |
| 4332 | _ACEOF |
| 4333 | cat confdefs.h >>conftest.$ac_ext |
| 4334 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4335 | /* end confdefs.h. */ |
| 4336 | $ac_includes_default |
| 4337 | int |
| 4338 | main () |
| 4339 | { |
| 4340 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4341 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4342 | union |
| 4343 | { |
| 4344 | long int l; |
| 4345 | char c[sizeof (long int)]; |
| 4346 | } u; |
| 4347 | u.l = 1; |
| 4348 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4349 | |
| 4350 | ; |
| 4351 | return 0; |
| 4352 | } |
| 4353 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4354 | rm -f conftest$ac_exeext |
| 4355 | if { (ac_try="$ac_link" |
| 4356 | case "(($ac_try" in |
| 4357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4358 | *) ac_try_echo=$ac_try;; |
| 4359 | esac |
| 4360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4361 | (eval "$ac_link") 2>&5 |
| 4362 | ac_status=$? |
| 4363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4364 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4365 | { (case "(($ac_try" in |
| 4366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4367 | *) ac_try_echo=$ac_try;; |
| 4368 | esac |
| 4369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4370 | (eval "$ac_try") 2>&5 |
| 4371 | ac_status=$? |
| 4372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4373 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4374 | ac_cv_c_bigendian=no |
| 4375 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4376 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4377 | echo "$as_me: failed program was:" >&5 |
| 4378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4379 | |
| 4380 | ( exit $ac_status ) |
| 4381 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4382 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4383 | 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] | 4384 | fi |
| 4385 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4386 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4387 | fi |
| 4388 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4390 | fi |
| 4391 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4392 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4393 | case $ac_cv_c_bigendian in |
| 4394 | yes) |
| 4395 | ENDIAN=big |
| 4396 | ;; |
| 4397 | no) |
| 4398 | ENDIAN=little |
| 4399 | ;; |
| 4400 | *) |
| 4401 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4402 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4403 | echo "$as_me: error: unknown endianness |
| 4404 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4405 | { (exit 1); exit 1; }; } ;; |
| 4406 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4407 | |
| 4408 | |
| 4409 | if test "$cross_compiling" = yes; then |
| 4410 | LLVM_CROSS_COMPILING=1 |
| 4411 | |
| 4412 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4413 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4414 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4415 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4417 | else |
| 4418 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4419 | ac_cv_build_exeext=.exe |
| 4420 | else |
| 4421 | ac_build_prefix=${build_alias}- |
| 4422 | |
| 4423 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4424 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4425 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4427 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4429 | else |
| 4430 | if test -n "$BUILD_CC"; then |
| 4431 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4432 | else |
| 4433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4434 | for as_dir in $PATH |
| 4435 | do |
| 4436 | IFS=$as_save_IFS |
| 4437 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4438 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4439 | 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] | 4440 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4441 | 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] | 4442 | break 2 |
| 4443 | fi |
| 4444 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4445 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4446 | IFS=$as_save_IFS |
| 4447 | |
| 4448 | fi |
| 4449 | fi |
| 4450 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4451 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4452 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4453 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4454 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4455 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4456 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4457 | fi |
| 4458 | |
| 4459 | |
| 4460 | if test -z "$BUILD_CC"; then |
| 4461 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4462 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4463 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4465 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4467 | else |
| 4468 | if test -n "$BUILD_CC"; then |
| 4469 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4470 | else |
| 4471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4472 | for as_dir in $PATH |
| 4473 | do |
| 4474 | IFS=$as_save_IFS |
| 4475 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4476 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4477 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4478 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4479 | 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] | 4480 | break 2 |
| 4481 | fi |
| 4482 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4483 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4484 | IFS=$as_save_IFS |
| 4485 | |
| 4486 | fi |
| 4487 | fi |
| 4488 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4489 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4490 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4491 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4492 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4493 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4494 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4495 | fi |
| 4496 | |
| 4497 | |
| 4498 | if test -z "$BUILD_CC"; then |
| 4499 | # Extract the first word of "cc", so it can be a program name with args. |
| 4500 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4501 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4503 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4505 | else |
| 4506 | if test -n "$BUILD_CC"; then |
| 4507 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4508 | else |
| 4509 | ac_prog_rejected=no |
| 4510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4511 | for as_dir in $PATH |
| 4512 | do |
| 4513 | IFS=$as_save_IFS |
| 4514 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4515 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4516 | 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] | 4517 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4518 | ac_prog_rejected=yes |
| 4519 | continue |
| 4520 | fi |
| 4521 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4522 | 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] | 4523 | break 2 |
| 4524 | fi |
| 4525 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4526 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4527 | IFS=$as_save_IFS |
| 4528 | |
| 4529 | if test $ac_prog_rejected = yes; then |
| 4530 | # We found a bogon in the path, so make sure we never use it. |
| 4531 | set dummy $ac_cv_prog_BUILD_CC |
| 4532 | shift |
| 4533 | if test $# != 0; then |
| 4534 | # We chose a different compiler from the bogus one. |
| 4535 | # However, it has the same basename, so the bogon will be chosen |
| 4536 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4537 | shift |
| 4538 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4539 | fi |
| 4540 | fi |
| 4541 | fi |
| 4542 | fi |
| 4543 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4544 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4545 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4546 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +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; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4550 | fi |
| 4551 | |
| 4552 | |
| 4553 | fi |
| 4554 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4555 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4556 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4557 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4558 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4559 | rm -f conftest* |
| 4560 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4561 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4562 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4563 | (eval $ac_build_link) 2>&5 |
| 4564 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4566 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4567 | for file in conftest.*; do |
| 4568 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4569 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4570 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4571 | esac |
| 4572 | done |
| 4573 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4574 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4575 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4576 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4577 | fi |
| 4578 | rm -f conftest* |
| 4579 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4580 | fi |
| 4581 | fi |
| 4582 | |
| 4583 | BUILD_EXEEXT="" |
| 4584 | 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] | 4585 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4586 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4587 | ac_build_exeext=$BUILD_EXEEXT |
| 4588 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4589 | ac_build_prefix=${build_alias}- |
| 4590 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4591 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4592 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4593 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4594 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4596 | else |
| 4597 | if test -n "$BUILD_CXX"; then |
| 4598 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4599 | else |
| 4600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4601 | for as_dir in $PATH |
| 4602 | do |
| 4603 | IFS=$as_save_IFS |
| 4604 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4605 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4606 | 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] | 4607 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4608 | 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] | 4609 | break 2 |
| 4610 | fi |
| 4611 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4612 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4613 | IFS=$as_save_IFS |
| 4614 | |
| 4615 | fi |
| 4616 | fi |
| 4617 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4618 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4619 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4620 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4621 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4622 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4623 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4624 | fi |
| 4625 | |
| 4626 | |
| 4627 | if test -z "$BUILD_CXX"; then |
| 4628 | # Extract the first word of "g++", so it can be a program name with args. |
| 4629 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4630 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4631 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4632 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4634 | else |
| 4635 | if test -n "$BUILD_CXX"; then |
| 4636 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4637 | else |
| 4638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4639 | for as_dir in $PATH |
| 4640 | do |
| 4641 | IFS=$as_save_IFS |
| 4642 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4643 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4644 | 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] | 4645 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4646 | 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] | 4647 | break 2 |
| 4648 | fi |
| 4649 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4650 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4651 | IFS=$as_save_IFS |
| 4652 | |
| 4653 | fi |
| 4654 | fi |
| 4655 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4656 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4657 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4658 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4659 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4660 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4661 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4662 | fi |
| 4663 | |
| 4664 | |
| 4665 | if test -z "$BUILD_CXX"; then |
| 4666 | # Extract the first word of "c++", so it can be a program name with args. |
| 4667 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4668 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4669 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4670 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4672 | else |
| 4673 | if test -n "$BUILD_CXX"; then |
| 4674 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4675 | else |
| 4676 | ac_prog_rejected=no |
| 4677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4678 | for as_dir in $PATH |
| 4679 | do |
| 4680 | IFS=$as_save_IFS |
| 4681 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4682 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4683 | 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] | 4684 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4685 | ac_prog_rejected=yes |
| 4686 | continue |
| 4687 | fi |
| 4688 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4689 | 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] | 4690 | break 2 |
| 4691 | fi |
| 4692 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4693 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4694 | IFS=$as_save_IFS |
| 4695 | |
| 4696 | if test $ac_prog_rejected = yes; then |
| 4697 | # We found a bogon in the path, so make sure we never use it. |
| 4698 | set dummy $ac_cv_prog_BUILD_CXX |
| 4699 | shift |
| 4700 | if test $# != 0; then |
| 4701 | # We chose a different compiler from the bogus one. |
| 4702 | # However, it has the same basename, so the bogon will be chosen |
| 4703 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4704 | shift |
| 4705 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4706 | fi |
| 4707 | fi |
| 4708 | fi |
| 4709 | fi |
| 4710 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4711 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4712 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4713 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4714 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4715 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4716 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4717 | fi |
| 4718 | |
| 4719 | |
| 4720 | fi |
| 4721 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4722 | else |
| 4723 | LLVM_CROSS_COMPILING=0 |
| 4724 | |
| 4725 | fi |
| 4726 | |
Dan Gohman | 56fb5f9 | 2010-08-04 16:25:01 +0000 | [diff] [blame] | 4727 | if test -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] | 4728 | cvsbuild="yes" |
| 4729 | optimize="no" |
| 4730 | CVSBUILD=CVSBUILD=1 |
| 4731 | |
| 4732 | else |
| 4733 | cvsbuild="no" |
| 4734 | optimize="yes" |
| 4735 | fi |
| 4736 | |
| 4737 | |
| 4738 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4739 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4740 | enableval=$enable_optimized; |
| 4741 | else |
| 4742 | enableval=$optimize |
| 4743 | fi |
| 4744 | |
| 4745 | if test ${enableval} = "no" ; then |
| 4746 | ENABLE_OPTIMIZED= |
| 4747 | |
| 4748 | else |
| 4749 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4750 | |
| 4751 | fi |
| 4752 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4753 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4754 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4755 | enableval=$enable_profiling; |
| 4756 | else |
| 4757 | enableval="no" |
| 4758 | fi |
| 4759 | |
| 4760 | if test ${enableval} = "no" ; then |
| 4761 | ENABLE_PROFILING= |
| 4762 | |
| 4763 | else |
| 4764 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4765 | |
| 4766 | fi |
| 4767 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4768 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4769 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4770 | enableval=$enable_assertions; |
| 4771 | else |
| 4772 | enableval="yes" |
| 4773 | fi |
| 4774 | |
| 4775 | if test ${enableval} = "yes" ; then |
| 4776 | DISABLE_ASSERTIONS= |
| 4777 | |
| 4778 | else |
| 4779 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4780 | |
| 4781 | fi |
| 4782 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4783 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4784 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4785 | enableval=$enable_expensive_checks; |
| 4786 | else |
| 4787 | enableval="no" |
| 4788 | fi |
| 4789 | |
| 4790 | if test ${enableval} = "yes" ; then |
| 4791 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4792 | |
| 4793 | EXPENSIVE_CHECKS=yes |
| 4794 | |
| 4795 | else |
| 4796 | ENABLE_EXPENSIVE_CHECKS= |
| 4797 | |
| 4798 | EXPENSIVE_CHECKS=no |
| 4799 | |
| 4800 | fi |
| 4801 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4802 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4803 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4804 | enableval=$enable_debug_runtime; |
| 4805 | else |
| 4806 | enableval=no |
| 4807 | fi |
| 4808 | |
| 4809 | if test ${enableval} = "no" ; then |
| 4810 | DEBUG_RUNTIME= |
| 4811 | |
| 4812 | else |
| 4813 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4814 | |
| 4815 | fi |
| 4816 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4817 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4818 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4819 | enableval=$enable_debug_symbols; |
| 4820 | else |
| 4821 | enableval=no |
| 4822 | fi |
| 4823 | |
| 4824 | if test ${enableval} = "no" ; then |
| 4825 | DEBUG_SYMBOLS= |
| 4826 | |
| 4827 | else |
| 4828 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 4829 | |
| 4830 | fi |
| 4831 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4832 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4833 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4834 | enableval=$enable_jit; |
| 4835 | else |
| 4836 | enableval=default |
| 4837 | fi |
| 4838 | |
| 4839 | if test ${enableval} = "no" |
| 4840 | then |
| 4841 | JIT= |
| 4842 | |
| 4843 | else |
| 4844 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4845 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4846 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4847 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4848 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4849 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4850 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4851 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4852 | ;; |
Chris Lattner | c476ed9 | 2010-11-14 18:24:41 +0000 | [diff] [blame] | 4853 | Alpha) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4854 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 4855 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4856 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4857 | Mips) TARGET_HAS_JIT=0 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4858 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4859 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4860 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4861 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4862 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4863 | SystemZ) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4864 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4865 | Blackfin) TARGET_HAS_JIT=0 |
| 4866 | ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4867 | MBlaze) TARGET_HAS_JIT=0 |
| 4868 | ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 4869 | PTX) TARGET_HAS_JIT=0 |
| 4870 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4871 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4872 | ;; |
| 4873 | esac |
| 4874 | fi |
| 4875 | |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 4876 | # Check whether --enable-docs was given. |
| 4877 | if test "${enable_docs+set}" = set; then |
| 4878 | enableval=$enable_docs; |
| 4879 | else |
| 4880 | enableval=default |
| 4881 | fi |
| 4882 | |
| 4883 | case "$enableval" in |
| 4884 | yes) ENABLE_DOCS=1 |
| 4885 | ;; |
| 4886 | no) ENABLE_DOCS=0 |
| 4887 | ;; |
| 4888 | default) ENABLE_DOCS=1 |
| 4889 | ;; |
| 4890 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 |
| 4891 | echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} |
| 4892 | { (exit 1); exit 1; }; } ;; |
| 4893 | esac |
| 4894 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4895 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4896 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4897 | enableval=$enable_doxygen; |
| 4898 | else |
| 4899 | enableval=default |
| 4900 | fi |
| 4901 | |
| 4902 | case "$enableval" in |
| 4903 | yes) ENABLE_DOXYGEN=1 |
| 4904 | ;; |
| 4905 | no) ENABLE_DOXYGEN=0 |
| 4906 | ;; |
| 4907 | default) ENABLE_DOXYGEN=0 |
| 4908 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4909 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4910 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4911 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4912 | esac |
| 4913 | |
| 4914 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4915 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4916 | enableval=$enable_threads; |
| 4917 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4918 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4919 | fi |
| 4920 | |
| 4921 | case "$enableval" in |
| 4922 | yes) ENABLE_THREADS=1 |
| 4923 | ;; |
| 4924 | no) ENABLE_THREADS=0 |
| 4925 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4926 | default) ENABLE_THREADS=1 |
| 4927 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4928 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4929 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4930 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4931 | esac |
| 4932 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 4933 | cat >>confdefs.h <<_ACEOF |
| 4934 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4935 | _ACEOF |
| 4936 | |
| 4937 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4938 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4939 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4940 | enableval=$enable_pic; |
| 4941 | else |
| 4942 | enableval=default |
| 4943 | fi |
| 4944 | |
| 4945 | case "$enableval" in |
| 4946 | yes) ENABLE_PIC=1 |
| 4947 | ;; |
| 4948 | no) ENABLE_PIC=0 |
| 4949 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4950 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4951 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4952 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4953 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4954 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4955 | esac |
| 4956 | |
| 4957 | cat >>confdefs.h <<_ACEOF |
| 4958 | #define ENABLE_PIC $ENABLE_PIC |
| 4959 | _ACEOF |
| 4960 | |
| 4961 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 4962 | # Check whether --enable-shared was given. |
| 4963 | if test "${enable_shared+set}" = set; then |
| 4964 | enableval=$enable_shared; |
| 4965 | else |
| 4966 | enableval=default |
| 4967 | fi |
| 4968 | |
| 4969 | case "$enableval" in |
| 4970 | yes) ENABLE_SHARED=1 |
| 4971 | ;; |
| 4972 | no) ENABLE_SHARED=0 |
| 4973 | ;; |
| 4974 | default) ENABLE_SHARED=0 |
| 4975 | ;; |
| 4976 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 |
| 4977 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} |
| 4978 | { (exit 1); exit 1; }; } ;; |
| 4979 | esac |
| 4980 | |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 4981 | # Check whether --enable-timestamps was given. |
| 4982 | if test "${enable_timestamps+set}" = set; then |
| 4983 | enableval=$enable_timestamps; |
| 4984 | else |
| 4985 | enableval=default |
| 4986 | fi |
| 4987 | |
| 4988 | case "$enableval" in |
| 4989 | yes) ENABLE_TIMESTAMPS=1 |
| 4990 | ;; |
| 4991 | no) ENABLE_TIMESTAMPS=0 |
| 4992 | ;; |
| 4993 | default) ENABLE_TIMESTAMPS=1 |
| 4994 | ;; |
| 4995 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 |
| 4996 | echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} |
| 4997 | { (exit 1); exit 1; }; } ;; |
| 4998 | esac |
| 4999 | |
| 5000 | cat >>confdefs.h <<_ACEOF |
| 5001 | #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS |
| 5002 | _ACEOF |
| 5003 | |
| 5004 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5005 | TARGETS_TO_BUILD="" |
| 5006 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5007 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5008 | enableval=$enable_targets; |
| 5009 | else |
| 5010 | enableval=all |
| 5011 | fi |
| 5012 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5013 | if test "$enableval" = host-only ; then |
| 5014 | enableval=host |
| 5015 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5016 | case "$enableval" in |
Chris Lattner | 60cb528 | 2010-10-11 05:44:40 +0000 | [diff] [blame] | 5017 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5018 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5019 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5020 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5021 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5022 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5023 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 5024 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 5025 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5026 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 5027 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5028 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5029 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 5030 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 5031 | blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 5032 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5033 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5034 | mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5035 | ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5036 | host) case "$llvm_cv_target_arch" in |
| 5037 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5038 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5039 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5040 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 5041 | Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 5042 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5043 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5044 | MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5045 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5046 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5047 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 6ca835d | 2010-01-05 20:45:43 +0000 | [diff] [blame] | 5048 | s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5049 | Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5050 | PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5051 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 5052 | echo "$as_me: error: Can not set target to build" >&2;} |
| 5053 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5054 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5055 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 5056 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 5057 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5058 | esac |
| 5059 | done |
| 5060 | ;; |
| 5061 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5062 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 5063 | |
| 5064 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5065 | # Determine whether we are building LLVM support for the native architecture. |
| 5066 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 5067 | for a_target in $TARGETS_TO_BUILD; do |
| 5068 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
| 5069 | |
| 5070 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5071 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH |
| 5072 | _ACEOF |
| 5073 | |
| 5074 | LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" |
| 5075 | LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" |
| 5076 | LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" |
| 5077 | |
| 5078 | cat >>confdefs.h <<_ACEOF |
| 5079 | #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET |
Daniel Dunbar | b1247c3 | 2010-08-03 14:26:17 +0000 | [diff] [blame] | 5080 | _ACEOF |
| 5081 | |
| 5082 | |
| 5083 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5084 | #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO |
| 5085 | _ACEOF |
| 5086 | |
| 5087 | |
| 5088 | cat >>confdefs.h <<_ACEOF |
| 5089 | #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5090 | _ACEOF |
| 5091 | |
| 5092 | fi |
| 5093 | done |
| 5094 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5095 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual |
| 5096 | # target feature def files. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5097 | LLVM_ENUM_TARGETS="" |
| 5098 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5099 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5100 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5101 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5102 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
Chris Lattner | e15f2e1 | 2010-11-14 19:10:47 +0000 | [diff] [blame] | 5103 | if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then |
Jim Grosbach | 7ac1609 | 2010-10-01 22:39:28 +0000 | [diff] [blame] | 5104 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5105 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5106 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5107 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5108 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5109 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 5110 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 5111 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5112 | done |
| 5113 | |
| 5114 | |
| 5115 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5116 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5117 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5118 | # Check whether --enable-cbe-printf-a was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5119 | if test "${enable_cbe_printf_a+set}" = set; then |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5120 | enableval=$enable_cbe_printf_a; |
| 5121 | else |
| 5122 | enableval=default |
| 5123 | fi |
| 5124 | |
| 5125 | case "$enableval" in |
| 5126 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5127 | ;; |
| 5128 | no) ENABLE_CBE_PRINTF_A=0 |
| 5129 | ;; |
| 5130 | default) ENABLE_CBE_PRINTF_A=1 |
| 5131 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5132 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5133 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5134 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5135 | esac |
| 5136 | |
| 5137 | cat >>confdefs.h <<_ACEOF |
| 5138 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5139 | _ACEOF |
| 5140 | |
| 5141 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5142 | |
| 5143 | # Check whether --with-llvmgccdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5144 | if test "${with_llvmgccdir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5145 | withval=$with_llvmgccdir; |
| 5146 | else |
| 5147 | withval=default |
| 5148 | fi |
| 5149 | |
| 5150 | case "$withval" in |
| 5151 | default) WITH_LLVMGCCDIR=default ;; |
| 5152 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5153 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 5154 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 5155 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5156 | esac |
| 5157 | |
| 5158 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5159 | # Check whether --with-llvmgcc was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5160 | if test "${with_llvmgcc+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5161 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 5162 | WITH_LLVMGCCDIR="" |
| 5163 | fi |
| 5164 | |
| 5165 | |
| 5166 | |
| 5167 | # Check whether --with-llvmgxx was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5168 | if test "${with_llvmgxx+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5169 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5170 | WITH_LLVMGCCDIR="" |
| 5171 | fi |
| 5172 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5173 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5174 | if test -n "$LLVMGCC"; then |
| 5175 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5176 | fi |
| 5177 | |
| 5178 | if test -n "$LLVMGXX"; then |
| 5179 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5180 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5181 | |
| 5182 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5183 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5184 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5185 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5186 | fi |
| 5187 | |
| 5188 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5189 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5190 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5191 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5192 | fi |
| 5193 | |
| 5194 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 5195 | # Check whether --with-clang was given. |
| 5196 | if test "${with_clang+set}" = set; then |
| 5197 | withval=$with_clang; |
| 5198 | else |
| 5199 | with_clang=default |
| 5200 | fi |
| 5201 | |
| 5202 | |
| 5203 | |
| 5204 | # Check whether --with-built-clang was given. |
| 5205 | if test "${with_built_clang+set}" = set; then |
| 5206 | withval=$with_built_clang; |
| 5207 | else |
| 5208 | with_built_clang=check |
| 5209 | fi |
| 5210 | |
| 5211 | |
| 5212 | { echo "$as_me:$LINENO: checking clang compiler" >&5 |
| 5213 | echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; } |
| 5214 | WITH_CLANGPATH="" |
| 5215 | WITH_BUILT_CLANG=0 |
| 5216 | if test "$with_clang" != "default"; then |
| 5217 | WITH_CLANGPATH="$with_clang" |
| 5218 | if ! test -x "$WITH_CLANGPATH"; then |
| 5219 | { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5 |
| 5220 | echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;} |
| 5221 | { (exit 1); exit 1; }; } |
| 5222 | fi |
| 5223 | elif test "$with_built_clang" = "yes"; then |
| 5224 | WITH_BUILT_CLANG=1 |
| 5225 | elif test "$with_built_clang" = "no"; then |
| 5226 | WITH_BUILT_CLANG=0 |
| 5227 | else |
| 5228 | if test "$with_built_clang" != "check"; then |
| 5229 | { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5 |
| 5230 | echo "$as_me: error: invalid value for --with-built-clang." >&2;} |
| 5231 | { (exit 1); exit 1; }; } |
| 5232 | fi |
| 5233 | |
| 5234 | if test -f ${srcdir}/tools/clang/README.txt; then |
| 5235 | WITH_BUILT_CLANG=1 |
| 5236 | fi |
| 5237 | fi |
| 5238 | |
| 5239 | if ! test -z "$WITH_CLANGPATH"; then |
| 5240 | { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5 |
| 5241 | echo "${ECHO_T}$WITH_CLANGPATH" >&6; } |
| 5242 | WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++` |
| 5243 | elif test "$WITH_BUILT_CLANG" = "1"; then |
| 5244 | { echo "$as_me:$LINENO: result: built" >&5 |
| 5245 | echo "${ECHO_T}built" >&6; } |
| 5246 | else |
| 5247 | { echo "$as_me:$LINENO: result: none" >&5 |
| 5248 | echo "${ECHO_T}none" >&6; } |
| 5249 | fi |
| 5250 | CLANGPATH=$WITH_CLANGPATH |
| 5251 | |
| 5252 | CLANGXXPATH=$WITH_CLANGXXPATH |
| 5253 | |
| 5254 | ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG |
| 5255 | |
| 5256 | |
| 5257 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5258 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5259 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5260 | withval=$with_optimize_option; |
| 5261 | else |
| 5262 | withval=default |
| 5263 | fi |
| 5264 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5265 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5266 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5267 | case "$withval" in |
| 5268 | default) |
| 5269 | case "$llvm_cv_os_type" in |
Daniel Dunbar | f913878 | 2010-04-30 17:12:26 +0000 | [diff] [blame] | 5270 | FreeBSD) optimize_option=-O2 ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 5271 | MingW) optimize_option=-O2 ;; |
| 5272 | *) optimize_option=-O3 ;; |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5273 | esac ;; |
| 5274 | *) optimize_option="$withval" ;; |
| 5275 | esac |
| 5276 | OPTIMIZE_OPTION=$optimize_option |
| 5277 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5278 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5279 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5280 | |
| 5281 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5282 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5283 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5284 | withval=$with_extra_options; |
| 5285 | else |
| 5286 | withval=default |
| 5287 | fi |
| 5288 | |
| 5289 | case "$withval" in |
| 5290 | default) EXTRA_OPTIONS= ;; |
| 5291 | *) EXTRA_OPTIONS=$withval ;; |
| 5292 | esac |
| 5293 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5294 | |
| 5295 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5296 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5297 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5298 | enableval=$enable_bindings; |
| 5299 | else |
| 5300 | enableval=default |
| 5301 | fi |
| 5302 | |
| 5303 | BINDINGS_TO_BUILD="" |
| 5304 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5305 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5306 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5307 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5308 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5309 | case "$a_binding" in |
| 5310 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5311 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5312 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5313 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5314 | esac |
| 5315 | done |
| 5316 | ;; |
| 5317 | esac |
| 5318 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5319 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5320 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5321 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5322 | withval=$with_ocaml_libdir; |
| 5323 | else |
| 5324 | withval=auto |
| 5325 | fi |
| 5326 | |
| 5327 | case "$withval" in |
| 5328 | auto) with_ocaml_libdir="$withval" ;; |
| 5329 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5330 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5331 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5332 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5333 | esac |
| 5334 | |
| 5335 | |
Chandler Carruth | 6b24116 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 5336 | # Check whether --with-clang-resource-dir was given. |
| 5337 | if test "${with_clang_resource_dir+set}" = set; then |
| 5338 | withval=$with_clang_resource_dir; |
| 5339 | else |
| 5340 | withval="" |
| 5341 | fi |
| 5342 | |
| 5343 | |
| 5344 | cat >>confdefs.h <<_ACEOF |
| 5345 | #define CLANG_RESOURCE_DIR "$withval" |
| 5346 | _ACEOF |
| 5347 | |
| 5348 | |
| 5349 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5350 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5351 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5352 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5353 | else |
| 5354 | withval="" |
| 5355 | fi |
| 5356 | |
| 5357 | |
| 5358 | cat >>confdefs.h <<_ACEOF |
| 5359 | #define C_INCLUDE_DIRS "$withval" |
| 5360 | _ACEOF |
| 5361 | |
| 5362 | |
| 5363 | |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5364 | # Check whether --with-cxx-include-root was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5365 | if test "${with_cxx_include_root+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5366 | withval=$with_cxx_include_root; |
| 5367 | else |
| 5368 | withval="" |
| 5369 | fi |
| 5370 | |
| 5371 | |
| 5372 | cat >>confdefs.h <<_ACEOF |
| 5373 | #define CXX_INCLUDE_ROOT "$withval" |
| 5374 | _ACEOF |
| 5375 | |
| 5376 | |
| 5377 | |
| 5378 | # Check whether --with-cxx-include-arch was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5379 | if test "${with_cxx_include_arch+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5380 | withval=$with_cxx_include_arch; |
| 5381 | else |
| 5382 | withval="" |
| 5383 | fi |
| 5384 | |
| 5385 | |
| 5386 | cat >>confdefs.h <<_ACEOF |
| 5387 | #define CXX_INCLUDE_ARCH "$withval" |
| 5388 | _ACEOF |
| 5389 | |
| 5390 | |
| 5391 | |
| 5392 | # Check whether --with-cxx-include-32bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5393 | if test "${with_cxx_include_32bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5394 | withval=$with_cxx_include_32bit_dir; |
| 5395 | else |
| 5396 | withval="" |
| 5397 | fi |
| 5398 | |
| 5399 | |
| 5400 | cat >>confdefs.h <<_ACEOF |
| 5401 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5402 | _ACEOF |
| 5403 | |
| 5404 | |
| 5405 | |
| 5406 | # Check whether --with-cxx-include-64bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5407 | if test "${with_cxx_include_64bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5408 | withval=$with_cxx_include_64bit_dir; |
| 5409 | else |
| 5410 | withval="" |
| 5411 | fi |
| 5412 | |
| 5413 | |
| 5414 | cat >>confdefs.h <<_ACEOF |
| 5415 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5416 | _ACEOF |
| 5417 | |
| 5418 | |
| 5419 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5420 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5421 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5422 | withval=$with_binutils_include; |
| 5423 | else |
| 5424 | withval=default |
| 5425 | fi |
| 5426 | |
| 5427 | case "$withval" in |
| 5428 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5429 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5430 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5431 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5432 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5433 | esac |
| 5434 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5435 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5436 | |
| 5437 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5438 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5439 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5440 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5441 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5442 | fi |
| 5443 | fi |
| 5444 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5445 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5446 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5447 | enableval=$enable_libffi; case "$enableval" in |
| 5448 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5449 | no) llvm_cv_enable_libffi="no" ;; |
| 5450 | *) { { 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] | 5451 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5452 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5453 | esac |
| 5454 | else |
| 5455 | llvm_cv_enable_libffi=no |
| 5456 | fi |
| 5457 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5458 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5459 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5460 | ac_ext=c |
| 5461 | ac_cpp='$CPP $CPPFLAGS' |
| 5462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5465 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5466 | 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] | 5467 | # On Suns, sometimes $CPP names a directory. |
| 5468 | if test -n "$CPP" && test -d "$CPP"; then |
| 5469 | CPP= |
| 5470 | fi |
| 5471 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5472 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5474 | else |
| 5475 | # Double quotes because CPP needs to be expanded |
| 5476 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5477 | do |
| 5478 | ac_preproc_ok=false |
| 5479 | for ac_c_preproc_warn_flag in '' yes |
| 5480 | do |
| 5481 | # Use a header file that comes with gcc, so configuring glibc |
| 5482 | # with a fresh cross-compiler works. |
| 5483 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5484 | # <limits.h> exists even on freestanding compilers. |
| 5485 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5486 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5487 | cat >conftest.$ac_ext <<_ACEOF |
| 5488 | /* confdefs.h. */ |
| 5489 | _ACEOF |
| 5490 | cat confdefs.h >>conftest.$ac_ext |
| 5491 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5492 | /* end confdefs.h. */ |
| 5493 | #ifdef __STDC__ |
| 5494 | # include <limits.h> |
| 5495 | #else |
| 5496 | # include <assert.h> |
| 5497 | #endif |
| 5498 | Syntax error |
| 5499 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5500 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5501 | case "(($ac_try" in |
| 5502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5503 | *) ac_try_echo=$ac_try;; |
| 5504 | esac |
| 5505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5506 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5507 | ac_status=$? |
| 5508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5509 | rm -f conftest.er1 |
| 5510 | cat conftest.err >&5 |
| 5511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5512 | (exit $ac_status); } >/dev/null; then |
| 5513 | if test -s conftest.err; then |
| 5514 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5515 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5516 | else |
| 5517 | ac_cpp_err= |
| 5518 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5519 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5520 | ac_cpp_err=yes |
| 5521 | fi |
| 5522 | if test -z "$ac_cpp_err"; then |
| 5523 | : |
| 5524 | else |
| 5525 | echo "$as_me: failed program was:" >&5 |
| 5526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5527 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5528 | # Broken: fails on valid input. |
| 5529 | continue |
| 5530 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5531 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5532 | rm -f conftest.err conftest.$ac_ext |
| 5533 | |
| 5534 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5535 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5536 | cat >conftest.$ac_ext <<_ACEOF |
| 5537 | /* confdefs.h. */ |
| 5538 | _ACEOF |
| 5539 | cat confdefs.h >>conftest.$ac_ext |
| 5540 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5541 | /* end confdefs.h. */ |
| 5542 | #include <ac_nonexistent.h> |
| 5543 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5544 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5545 | case "(($ac_try" in |
| 5546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5547 | *) ac_try_echo=$ac_try;; |
| 5548 | esac |
| 5549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5550 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5551 | ac_status=$? |
| 5552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5553 | rm -f conftest.er1 |
| 5554 | cat conftest.err >&5 |
| 5555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5556 | (exit $ac_status); } >/dev/null; then |
| 5557 | if test -s conftest.err; then |
| 5558 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5559 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5560 | else |
| 5561 | ac_cpp_err= |
| 5562 | fi |
| 5563 | else |
| 5564 | ac_cpp_err=yes |
| 5565 | fi |
| 5566 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5567 | # Broken: success on invalid input. |
| 5568 | continue |
| 5569 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5570 | echo "$as_me: failed program was:" >&5 |
| 5571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5572 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5573 | # Passes both tests. |
| 5574 | ac_preproc_ok=: |
| 5575 | break |
| 5576 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5577 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5578 | rm -f conftest.err conftest.$ac_ext |
| 5579 | |
| 5580 | done |
| 5581 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5582 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5583 | if $ac_preproc_ok; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5584 | break |
| 5585 | fi |
| 5586 | |
| 5587 | done |
| 5588 | ac_cv_prog_CPP=$CPP |
| 5589 | |
| 5590 | fi |
| 5591 | CPP=$ac_cv_prog_CPP |
| 5592 | else |
| 5593 | ac_cv_prog_CPP=$CPP |
| 5594 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5595 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5596 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5597 | ac_preproc_ok=false |
| 5598 | for ac_c_preproc_warn_flag in '' yes |
| 5599 | do |
| 5600 | # Use a header file that comes with gcc, so configuring glibc |
| 5601 | # with a fresh cross-compiler works. |
| 5602 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5603 | # <limits.h> exists even on freestanding compilers. |
| 5604 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5605 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5606 | cat >conftest.$ac_ext <<_ACEOF |
| 5607 | /* confdefs.h. */ |
| 5608 | _ACEOF |
| 5609 | cat confdefs.h >>conftest.$ac_ext |
| 5610 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5611 | /* end confdefs.h. */ |
| 5612 | #ifdef __STDC__ |
| 5613 | # include <limits.h> |
| 5614 | #else |
| 5615 | # include <assert.h> |
| 5616 | #endif |
| 5617 | Syntax error |
| 5618 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5619 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5620 | case "(($ac_try" in |
| 5621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5622 | *) ac_try_echo=$ac_try;; |
| 5623 | esac |
| 5624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5625 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5626 | ac_status=$? |
| 5627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5628 | rm -f conftest.er1 |
| 5629 | cat conftest.err >&5 |
| 5630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5631 | (exit $ac_status); } >/dev/null; then |
| 5632 | if test -s conftest.err; then |
| 5633 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5634 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5635 | else |
| 5636 | ac_cpp_err= |
| 5637 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5638 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5639 | ac_cpp_err=yes |
| 5640 | fi |
| 5641 | if test -z "$ac_cpp_err"; then |
| 5642 | : |
| 5643 | else |
| 5644 | echo "$as_me: failed program was:" >&5 |
| 5645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5646 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5647 | # Broken: fails on valid input. |
| 5648 | continue |
| 5649 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5650 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5651 | rm -f conftest.err conftest.$ac_ext |
| 5652 | |
| 5653 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5654 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5655 | cat >conftest.$ac_ext <<_ACEOF |
| 5656 | /* confdefs.h. */ |
| 5657 | _ACEOF |
| 5658 | cat confdefs.h >>conftest.$ac_ext |
| 5659 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5660 | /* end confdefs.h. */ |
| 5661 | #include <ac_nonexistent.h> |
| 5662 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5663 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5664 | case "(($ac_try" in |
| 5665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5666 | *) ac_try_echo=$ac_try;; |
| 5667 | esac |
| 5668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5669 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5670 | ac_status=$? |
| 5671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5672 | rm -f conftest.er1 |
| 5673 | cat conftest.err >&5 |
| 5674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5675 | (exit $ac_status); } >/dev/null; then |
| 5676 | if test -s conftest.err; then |
| 5677 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5678 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5679 | else |
| 5680 | ac_cpp_err= |
| 5681 | fi |
| 5682 | else |
| 5683 | ac_cpp_err=yes |
| 5684 | fi |
| 5685 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5686 | # Broken: success on invalid input. |
| 5687 | continue |
| 5688 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5689 | echo "$as_me: failed program was:" >&5 |
| 5690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5691 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5692 | # Passes both tests. |
| 5693 | ac_preproc_ok=: |
| 5694 | break |
| 5695 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5696 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5697 | rm -f conftest.err conftest.$ac_ext |
| 5698 | |
| 5699 | done |
| 5700 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5701 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5702 | if $ac_preproc_ok; then |
| 5703 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5704 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5705 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5706 | See \`config.log' for more details." >&5 |
| 5707 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5708 | See \`config.log' for more details." >&2;} |
| 5709 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5710 | fi |
| 5711 | |
| 5712 | ac_ext=c |
| 5713 | ac_cpp='$CPP $CPPFLAGS' |
| 5714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5717 | |
| 5718 | ac_ext=c |
| 5719 | ac_cpp='$CPP $CPPFLAGS' |
| 5720 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5721 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5722 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5723 | if test -n "$ac_tool_prefix"; then |
| 5724 | for ac_prog in gcc |
| 5725 | do |
| 5726 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5727 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5728 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5730 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5732 | else |
| 5733 | if test -n "$CC"; then |
| 5734 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5735 | else |
| 5736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5737 | for as_dir in $PATH |
| 5738 | do |
| 5739 | IFS=$as_save_IFS |
| 5740 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5741 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5742 | 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] | 5743 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5744 | 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] | 5745 | break 2 |
| 5746 | fi |
| 5747 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5748 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5749 | IFS=$as_save_IFS |
| 5750 | |
| 5751 | fi |
| 5752 | fi |
| 5753 | CC=$ac_cv_prog_CC |
| 5754 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5755 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5756 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5757 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5758 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5759 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5760 | fi |
| 5761 | |
| 5762 | |
| 5763 | test -n "$CC" && break |
| 5764 | done |
| 5765 | fi |
| 5766 | if test -z "$CC"; then |
| 5767 | ac_ct_CC=$CC |
| 5768 | for ac_prog in gcc |
| 5769 | do |
| 5770 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5771 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5772 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5774 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5776 | else |
| 5777 | if test -n "$ac_ct_CC"; then |
| 5778 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5779 | else |
| 5780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5781 | for as_dir in $PATH |
| 5782 | do |
| 5783 | IFS=$as_save_IFS |
| 5784 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5785 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5786 | 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] | 5787 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5788 | 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] | 5789 | break 2 |
| 5790 | fi |
| 5791 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5792 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5793 | IFS=$as_save_IFS |
| 5794 | |
| 5795 | fi |
| 5796 | fi |
| 5797 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5798 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5799 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5800 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5801 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5802 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5803 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5804 | fi |
| 5805 | |
| 5806 | |
| 5807 | test -n "$ac_ct_CC" && break |
| 5808 | done |
| 5809 | |
| 5810 | if test "x$ac_ct_CC" = x; then |
| 5811 | CC="" |
| 5812 | else |
| 5813 | case $cross_compiling:$ac_tool_warned in |
| 5814 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5815 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5816 | whose name does not start with the host triplet. If you think this |
| 5817 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5818 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5819 | whose name does not start with the host triplet. If you think this |
| 5820 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5821 | ac_tool_warned=yes ;; |
| 5822 | esac |
| 5823 | CC=$ac_ct_CC |
| 5824 | fi |
| 5825 | fi |
| 5826 | |
| 5827 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5828 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5829 | See \`config.log' for more details." >&5 |
| 5830 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5831 | See \`config.log' for more details." >&2;} |
| 5832 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5833 | |
| 5834 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5835 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5836 | ac_compiler=`set X $ac_compile; echo $2` |
| 5837 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5838 | case "(($ac_try" in |
| 5839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5840 | *) ac_try_echo=$ac_try;; |
| 5841 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5843 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5844 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5846 | (exit $ac_status); } |
| 5847 | { (ac_try="$ac_compiler -v >&5" |
| 5848 | case "(($ac_try" in |
| 5849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5850 | *) ac_try_echo=$ac_try;; |
| 5851 | esac |
| 5852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5853 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5854 | ac_status=$? |
| 5855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5856 | (exit $ac_status); } |
| 5857 | { (ac_try="$ac_compiler -V >&5" |
| 5858 | case "(($ac_try" in |
| 5859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5860 | *) ac_try_echo=$ac_try;; |
| 5861 | esac |
| 5862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5863 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5864 | ac_status=$? |
| 5865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5866 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5867 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5868 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5869 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5870 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5872 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5873 | cat >conftest.$ac_ext <<_ACEOF |
| 5874 | /* confdefs.h. */ |
| 5875 | _ACEOF |
| 5876 | cat confdefs.h >>conftest.$ac_ext |
| 5877 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5878 | /* end confdefs.h. */ |
| 5879 | |
| 5880 | int |
| 5881 | main () |
| 5882 | { |
| 5883 | #ifndef __GNUC__ |
| 5884 | choke me |
| 5885 | #endif |
| 5886 | |
| 5887 | ; |
| 5888 | return 0; |
| 5889 | } |
| 5890 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5891 | rm -f conftest.$ac_objext |
| 5892 | if { (ac_try="$ac_compile" |
| 5893 | case "(($ac_try" in |
| 5894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5895 | *) ac_try_echo=$ac_try;; |
| 5896 | esac |
| 5897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5898 | (eval "$ac_compile") 2>conftest.er1 |
| 5899 | ac_status=$? |
| 5900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5901 | rm -f conftest.er1 |
| 5902 | cat conftest.err >&5 |
| 5903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5904 | (exit $ac_status); } && |
| 5905 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5906 | { (case "(($ac_try" in |
| 5907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5908 | *) ac_try_echo=$ac_try;; |
| 5909 | esac |
| 5910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5911 | (eval "$ac_try") 2>&5 |
| 5912 | ac_status=$? |
| 5913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5914 | (exit $ac_status); }; } && |
| 5915 | { ac_try='test -s conftest.$ac_objext' |
| 5916 | { (case "(($ac_try" in |
| 5917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5918 | *) ac_try_echo=$ac_try;; |
| 5919 | esac |
| 5920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5921 | (eval "$ac_try") 2>&5 |
| 5922 | ac_status=$? |
| 5923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5924 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5925 | ac_compiler_gnu=yes |
| 5926 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5927 | echo "$as_me: failed program was:" >&5 |
| 5928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5929 | |
| 5930 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5931 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5932 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5934 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5935 | |
| 5936 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5937 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5938 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5939 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5940 | ac_test_CFLAGS=${CFLAGS+set} |
| 5941 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5942 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5943 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5944 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5946 | else |
| 5947 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5948 | ac_c_werror_flag=yes |
| 5949 | ac_cv_prog_cc_g=no |
| 5950 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5951 | cat >conftest.$ac_ext <<_ACEOF |
| 5952 | /* confdefs.h. */ |
| 5953 | _ACEOF |
| 5954 | cat confdefs.h >>conftest.$ac_ext |
| 5955 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5956 | /* end confdefs.h. */ |
| 5957 | |
| 5958 | int |
| 5959 | main () |
| 5960 | { |
| 5961 | |
| 5962 | ; |
| 5963 | return 0; |
| 5964 | } |
| 5965 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5966 | rm -f conftest.$ac_objext |
| 5967 | if { (ac_try="$ac_compile" |
| 5968 | case "(($ac_try" in |
| 5969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5970 | *) ac_try_echo=$ac_try;; |
| 5971 | esac |
| 5972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5973 | (eval "$ac_compile") 2>conftest.er1 |
| 5974 | ac_status=$? |
| 5975 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5976 | rm -f conftest.er1 |
| 5977 | cat conftest.err >&5 |
| 5978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5979 | (exit $ac_status); } && |
| 5980 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5981 | { (case "(($ac_try" in |
| 5982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5983 | *) ac_try_echo=$ac_try;; |
| 5984 | esac |
| 5985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5986 | (eval "$ac_try") 2>&5 |
| 5987 | ac_status=$? |
| 5988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5989 | (exit $ac_status); }; } && |
| 5990 | { ac_try='test -s conftest.$ac_objext' |
| 5991 | { (case "(($ac_try" in |
| 5992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5993 | *) ac_try_echo=$ac_try;; |
| 5994 | esac |
| 5995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5996 | (eval "$ac_try") 2>&5 |
| 5997 | ac_status=$? |
| 5998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5999 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6000 | ac_cv_prog_cc_g=yes |
| 6001 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6002 | echo "$as_me: failed program was:" >&5 |
| 6003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6004 | |
| 6005 | CFLAGS="" |
| 6006 | cat >conftest.$ac_ext <<_ACEOF |
| 6007 | /* confdefs.h. */ |
| 6008 | _ACEOF |
| 6009 | cat confdefs.h >>conftest.$ac_ext |
| 6010 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6011 | /* end confdefs.h. */ |
| 6012 | |
| 6013 | int |
| 6014 | main () |
| 6015 | { |
| 6016 | |
| 6017 | ; |
| 6018 | return 0; |
| 6019 | } |
| 6020 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6021 | rm -f conftest.$ac_objext |
| 6022 | if { (ac_try="$ac_compile" |
| 6023 | case "(($ac_try" in |
| 6024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6025 | *) ac_try_echo=$ac_try;; |
| 6026 | esac |
| 6027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6028 | (eval "$ac_compile") 2>conftest.er1 |
| 6029 | ac_status=$? |
| 6030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6031 | rm -f conftest.er1 |
| 6032 | cat conftest.err >&5 |
| 6033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6034 | (exit $ac_status); } && |
| 6035 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6036 | { (case "(($ac_try" in |
| 6037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6038 | *) ac_try_echo=$ac_try;; |
| 6039 | esac |
| 6040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6041 | (eval "$ac_try") 2>&5 |
| 6042 | ac_status=$? |
| 6043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6044 | (exit $ac_status); }; } && |
| 6045 | { ac_try='test -s conftest.$ac_objext' |
| 6046 | { (case "(($ac_try" in |
| 6047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6048 | *) ac_try_echo=$ac_try;; |
| 6049 | esac |
| 6050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6051 | (eval "$ac_try") 2>&5 |
| 6052 | ac_status=$? |
| 6053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6054 | (exit $ac_status); }; }; then |
| 6055 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6056 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6057 | echo "$as_me: failed program was:" >&5 |
| 6058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6059 | |
| 6060 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6061 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6062 | cat >conftest.$ac_ext <<_ACEOF |
| 6063 | /* confdefs.h. */ |
| 6064 | _ACEOF |
| 6065 | cat confdefs.h >>conftest.$ac_ext |
| 6066 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6067 | /* end confdefs.h. */ |
| 6068 | |
| 6069 | int |
| 6070 | main () |
| 6071 | { |
| 6072 | |
| 6073 | ; |
| 6074 | return 0; |
| 6075 | } |
| 6076 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6077 | rm -f conftest.$ac_objext |
| 6078 | if { (ac_try="$ac_compile" |
| 6079 | case "(($ac_try" in |
| 6080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6081 | *) ac_try_echo=$ac_try;; |
| 6082 | esac |
| 6083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6084 | (eval "$ac_compile") 2>conftest.er1 |
| 6085 | ac_status=$? |
| 6086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6087 | rm -f conftest.er1 |
| 6088 | cat conftest.err >&5 |
| 6089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6090 | (exit $ac_status); } && |
| 6091 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6092 | { (case "(($ac_try" in |
| 6093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6094 | *) ac_try_echo=$ac_try;; |
| 6095 | esac |
| 6096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6097 | (eval "$ac_try") 2>&5 |
| 6098 | ac_status=$? |
| 6099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6100 | (exit $ac_status); }; } && |
| 6101 | { ac_try='test -s conftest.$ac_objext' |
| 6102 | { (case "(($ac_try" in |
| 6103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6104 | *) ac_try_echo=$ac_try;; |
| 6105 | esac |
| 6106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6107 | (eval "$ac_try") 2>&5 |
| 6108 | ac_status=$? |
| 6109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6110 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6111 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6112 | else |
| 6113 | echo "$as_me: failed program was:" >&5 |
| 6114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6115 | |
| 6116 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6117 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6118 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6120 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6123 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6124 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6126 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6127 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6128 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 6129 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6130 | if test "$ac_test_CFLAGS" = set; then |
| 6131 | CFLAGS=$ac_save_CFLAGS |
| 6132 | elif test $ac_cv_prog_cc_g = yes; then |
| 6133 | if test "$GCC" = yes; then |
| 6134 | CFLAGS="-g -O2" |
| 6135 | else |
| 6136 | CFLAGS="-g" |
| 6137 | fi |
| 6138 | else |
| 6139 | if test "$GCC" = yes; then |
| 6140 | CFLAGS="-O2" |
| 6141 | else |
| 6142 | CFLAGS= |
| 6143 | fi |
| 6144 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6145 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 6146 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 6147 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 6148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6149 | else |
| 6150 | ac_cv_prog_cc_c89=no |
| 6151 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6152 | cat >conftest.$ac_ext <<_ACEOF |
| 6153 | /* confdefs.h. */ |
| 6154 | _ACEOF |
| 6155 | cat confdefs.h >>conftest.$ac_ext |
| 6156 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6157 | /* end confdefs.h. */ |
| 6158 | #include <stdarg.h> |
| 6159 | #include <stdio.h> |
| 6160 | #include <sys/types.h> |
| 6161 | #include <sys/stat.h> |
| 6162 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6163 | struct buf { int x; }; |
| 6164 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6165 | static char *e (p, i) |
| 6166 | char **p; |
| 6167 | int i; |
| 6168 | { |
| 6169 | return p[i]; |
| 6170 | } |
| 6171 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6172 | { |
| 6173 | char *s; |
| 6174 | va_list v; |
| 6175 | va_start (v,p); |
| 6176 | s = g (p, va_arg (v,int)); |
| 6177 | va_end (v); |
| 6178 | return s; |
| 6179 | } |
| 6180 | |
| 6181 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6182 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6183 | These don't provoke an error unfortunately, instead are silently treated |
| 6184 | as 'x'. The following induces an error, until -std is added to get |
| 6185 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6186 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6187 | that's true only with -std. */ |
| 6188 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6189 | |
| 6190 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6191 | inside strings and character constants. */ |
| 6192 | #define FOO(x) 'x' |
| 6193 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6194 | |
| 6195 | int test (int i, double x); |
| 6196 | struct s1 {int (*f) (int a);}; |
| 6197 | struct s2 {int (*f) (double a);}; |
| 6198 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6199 | int argc; |
| 6200 | char **argv; |
| 6201 | int |
| 6202 | main () |
| 6203 | { |
| 6204 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6205 | ; |
| 6206 | return 0; |
| 6207 | } |
| 6208 | _ACEOF |
| 6209 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6210 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6211 | do |
| 6212 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6213 | rm -f conftest.$ac_objext |
| 6214 | if { (ac_try="$ac_compile" |
| 6215 | case "(($ac_try" in |
| 6216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6217 | *) ac_try_echo=$ac_try;; |
| 6218 | esac |
| 6219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6220 | (eval "$ac_compile") 2>conftest.er1 |
| 6221 | ac_status=$? |
| 6222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6223 | rm -f conftest.er1 |
| 6224 | cat conftest.err >&5 |
| 6225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6226 | (exit $ac_status); } && |
| 6227 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6228 | { (case "(($ac_try" in |
| 6229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6230 | *) ac_try_echo=$ac_try;; |
| 6231 | esac |
| 6232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6233 | (eval "$ac_try") 2>&5 |
| 6234 | ac_status=$? |
| 6235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6236 | (exit $ac_status); }; } && |
| 6237 | { ac_try='test -s conftest.$ac_objext' |
| 6238 | { (case "(($ac_try" in |
| 6239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6240 | *) ac_try_echo=$ac_try;; |
| 6241 | esac |
| 6242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6243 | (eval "$ac_try") 2>&5 |
| 6244 | ac_status=$? |
| 6245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6246 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6247 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6248 | else |
| 6249 | echo "$as_me: failed program was:" >&5 |
| 6250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6251 | |
| 6252 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6253 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6254 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6255 | rm -f core conftest.err conftest.$ac_objext |
| 6256 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6257 | done |
| 6258 | rm -f conftest.$ac_ext |
| 6259 | CC=$ac_save_CC |
| 6260 | |
| 6261 | fi |
| 6262 | # AC_CACHE_VAL |
| 6263 | case "x$ac_cv_prog_cc_c89" in |
| 6264 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6265 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6266 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6267 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6268 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6269 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6270 | *) |
| 6271 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6272 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6273 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6274 | esac |
| 6275 | |
| 6276 | |
| 6277 | ac_ext=c |
| 6278 | ac_cpp='$CPP $CPPFLAGS' |
| 6279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6282 | |
| 6283 | ac_ext=cpp |
| 6284 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6285 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6286 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6287 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6288 | if test -z "$CXX"; then |
| 6289 | if test -n "$CCC"; then |
| 6290 | CXX=$CCC |
| 6291 | else |
| 6292 | if test -n "$ac_tool_prefix"; then |
| 6293 | for ac_prog in g++ |
| 6294 | do |
| 6295 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6296 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6297 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6298 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6299 | if test "${ac_cv_prog_CXX+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 |
| 6302 | if test -n "$CXX"; then |
| 6303 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6304 | else |
| 6305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6306 | for as_dir in $PATH |
| 6307 | do |
| 6308 | IFS=$as_save_IFS |
| 6309 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6310 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6311 | 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] | 6312 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6313 | 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] | 6314 | break 2 |
| 6315 | fi |
| 6316 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6317 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6318 | IFS=$as_save_IFS |
| 6319 | |
| 6320 | fi |
| 6321 | fi |
| 6322 | CXX=$ac_cv_prog_CXX |
| 6323 | if test -n "$CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6324 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6325 | echo "${ECHO_T}$CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6326 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6327 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6328 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6329 | fi |
| 6330 | |
| 6331 | |
| 6332 | test -n "$CXX" && break |
| 6333 | done |
| 6334 | fi |
| 6335 | if test -z "$CXX"; then |
| 6336 | ac_ct_CXX=$CXX |
| 6337 | for ac_prog in g++ |
| 6338 | do |
| 6339 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6340 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6341 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6343 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6345 | else |
| 6346 | if test -n "$ac_ct_CXX"; then |
| 6347 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6348 | else |
| 6349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6350 | for as_dir in $PATH |
| 6351 | do |
| 6352 | IFS=$as_save_IFS |
| 6353 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6354 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6355 | 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] | 6356 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6357 | 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] | 6358 | break 2 |
| 6359 | fi |
| 6360 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6361 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6362 | IFS=$as_save_IFS |
| 6363 | |
| 6364 | fi |
| 6365 | fi |
| 6366 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6367 | if test -n "$ac_ct_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6368 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6369 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6370 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6371 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6372 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6373 | fi |
| 6374 | |
| 6375 | |
| 6376 | test -n "$ac_ct_CXX" && break |
| 6377 | done |
| 6378 | |
| 6379 | if test "x$ac_ct_CXX" = x; then |
| 6380 | CXX="g++" |
| 6381 | else |
| 6382 | case $cross_compiling:$ac_tool_warned in |
| 6383 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6384 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6385 | whose name does not start with the host triplet. If you think this |
| 6386 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6387 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6388 | whose name does not start with the host triplet. If you think this |
| 6389 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6390 | ac_tool_warned=yes ;; |
| 6391 | esac |
| 6392 | CXX=$ac_ct_CXX |
| 6393 | fi |
| 6394 | fi |
| 6395 | |
| 6396 | fi |
| 6397 | fi |
| 6398 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6399 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6400 | ac_compiler=`set X $ac_compile; echo $2` |
| 6401 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6402 | case "(($ac_try" in |
| 6403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6404 | *) ac_try_echo=$ac_try;; |
| 6405 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6407 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6408 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6410 | (exit $ac_status); } |
| 6411 | { (ac_try="$ac_compiler -v >&5" |
| 6412 | case "(($ac_try" in |
| 6413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6414 | *) ac_try_echo=$ac_try;; |
| 6415 | esac |
| 6416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6417 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6418 | ac_status=$? |
| 6419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6420 | (exit $ac_status); } |
| 6421 | { (ac_try="$ac_compiler -V >&5" |
| 6422 | case "(($ac_try" in |
| 6423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6424 | *) ac_try_echo=$ac_try;; |
| 6425 | esac |
| 6426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6427 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6428 | ac_status=$? |
| 6429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6430 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6431 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6432 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6433 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6434 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6436 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6437 | cat >conftest.$ac_ext <<_ACEOF |
| 6438 | /* confdefs.h. */ |
| 6439 | _ACEOF |
| 6440 | cat confdefs.h >>conftest.$ac_ext |
| 6441 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6442 | /* end confdefs.h. */ |
| 6443 | |
| 6444 | int |
| 6445 | main () |
| 6446 | { |
| 6447 | #ifndef __GNUC__ |
| 6448 | choke me |
| 6449 | #endif |
| 6450 | |
| 6451 | ; |
| 6452 | return 0; |
| 6453 | } |
| 6454 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6455 | rm -f conftest.$ac_objext |
| 6456 | if { (ac_try="$ac_compile" |
| 6457 | case "(($ac_try" in |
| 6458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6459 | *) ac_try_echo=$ac_try;; |
| 6460 | esac |
| 6461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6462 | (eval "$ac_compile") 2>conftest.er1 |
| 6463 | ac_status=$? |
| 6464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6465 | rm -f conftest.er1 |
| 6466 | cat conftest.err >&5 |
| 6467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6468 | (exit $ac_status); } && |
| 6469 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6470 | { (case "(($ac_try" in |
| 6471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6472 | *) ac_try_echo=$ac_try;; |
| 6473 | esac |
| 6474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6475 | (eval "$ac_try") 2>&5 |
| 6476 | ac_status=$? |
| 6477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6478 | (exit $ac_status); }; } && |
| 6479 | { ac_try='test -s conftest.$ac_objext' |
| 6480 | { (case "(($ac_try" in |
| 6481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6482 | *) ac_try_echo=$ac_try;; |
| 6483 | esac |
| 6484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6485 | (eval "$ac_try") 2>&5 |
| 6486 | ac_status=$? |
| 6487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6488 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6489 | ac_compiler_gnu=yes |
| 6490 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6491 | echo "$as_me: failed program was:" >&5 |
| 6492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6493 | |
| 6494 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6495 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6496 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6498 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6499 | |
| 6500 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6501 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6502 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6503 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6504 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6505 | ac_save_CXXFLAGS=$CXXFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6506 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6507 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6508 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6510 | else |
| 6511 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6512 | ac_cxx_werror_flag=yes |
| 6513 | ac_cv_prog_cxx_g=no |
| 6514 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6515 | cat >conftest.$ac_ext <<_ACEOF |
| 6516 | /* confdefs.h. */ |
| 6517 | _ACEOF |
| 6518 | cat confdefs.h >>conftest.$ac_ext |
| 6519 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6520 | /* end confdefs.h. */ |
| 6521 | |
| 6522 | int |
| 6523 | main () |
| 6524 | { |
| 6525 | |
| 6526 | ; |
| 6527 | return 0; |
| 6528 | } |
| 6529 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6530 | rm -f conftest.$ac_objext |
| 6531 | if { (ac_try="$ac_compile" |
| 6532 | case "(($ac_try" in |
| 6533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6534 | *) ac_try_echo=$ac_try;; |
| 6535 | esac |
| 6536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6537 | (eval "$ac_compile") 2>conftest.er1 |
| 6538 | ac_status=$? |
| 6539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6540 | rm -f conftest.er1 |
| 6541 | cat conftest.err >&5 |
| 6542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6543 | (exit $ac_status); } && |
| 6544 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6545 | { (case "(($ac_try" in |
| 6546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6547 | *) ac_try_echo=$ac_try;; |
| 6548 | esac |
| 6549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6550 | (eval "$ac_try") 2>&5 |
| 6551 | ac_status=$? |
| 6552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6553 | (exit $ac_status); }; } && |
| 6554 | { ac_try='test -s conftest.$ac_objext' |
| 6555 | { (case "(($ac_try" in |
| 6556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6557 | *) ac_try_echo=$ac_try;; |
| 6558 | esac |
| 6559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6560 | (eval "$ac_try") 2>&5 |
| 6561 | ac_status=$? |
| 6562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6563 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6564 | ac_cv_prog_cxx_g=yes |
| 6565 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6566 | echo "$as_me: failed program was:" >&5 |
| 6567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6568 | |
| 6569 | CXXFLAGS="" |
| 6570 | cat >conftest.$ac_ext <<_ACEOF |
| 6571 | /* confdefs.h. */ |
| 6572 | _ACEOF |
| 6573 | cat confdefs.h >>conftest.$ac_ext |
| 6574 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6575 | /* end confdefs.h. */ |
| 6576 | |
| 6577 | int |
| 6578 | main () |
| 6579 | { |
| 6580 | |
| 6581 | ; |
| 6582 | return 0; |
| 6583 | } |
| 6584 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6585 | rm -f conftest.$ac_objext |
| 6586 | if { (ac_try="$ac_compile" |
| 6587 | case "(($ac_try" in |
| 6588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6589 | *) ac_try_echo=$ac_try;; |
| 6590 | esac |
| 6591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6592 | (eval "$ac_compile") 2>conftest.er1 |
| 6593 | ac_status=$? |
| 6594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6595 | rm -f conftest.er1 |
| 6596 | cat conftest.err >&5 |
| 6597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6598 | (exit $ac_status); } && |
| 6599 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6600 | { (case "(($ac_try" in |
| 6601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6602 | *) ac_try_echo=$ac_try;; |
| 6603 | esac |
| 6604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6605 | (eval "$ac_try") 2>&5 |
| 6606 | ac_status=$? |
| 6607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6608 | (exit $ac_status); }; } && |
| 6609 | { ac_try='test -s conftest.$ac_objext' |
| 6610 | { (case "(($ac_try" in |
| 6611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6612 | *) ac_try_echo=$ac_try;; |
| 6613 | esac |
| 6614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6615 | (eval "$ac_try") 2>&5 |
| 6616 | ac_status=$? |
| 6617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6618 | (exit $ac_status); }; }; then |
| 6619 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6620 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6621 | echo "$as_me: failed program was:" >&5 |
| 6622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6623 | |
| 6624 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6625 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6626 | cat >conftest.$ac_ext <<_ACEOF |
| 6627 | /* confdefs.h. */ |
| 6628 | _ACEOF |
| 6629 | cat confdefs.h >>conftest.$ac_ext |
| 6630 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6631 | /* end confdefs.h. */ |
| 6632 | |
| 6633 | int |
| 6634 | main () |
| 6635 | { |
| 6636 | |
| 6637 | ; |
| 6638 | return 0; |
| 6639 | } |
| 6640 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6641 | rm -f conftest.$ac_objext |
| 6642 | if { (ac_try="$ac_compile" |
| 6643 | case "(($ac_try" in |
| 6644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6645 | *) ac_try_echo=$ac_try;; |
| 6646 | esac |
| 6647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6648 | (eval "$ac_compile") 2>conftest.er1 |
| 6649 | ac_status=$? |
| 6650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6651 | rm -f conftest.er1 |
| 6652 | cat conftest.err >&5 |
| 6653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6654 | (exit $ac_status); } && |
| 6655 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6656 | { (case "(($ac_try" in |
| 6657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6658 | *) ac_try_echo=$ac_try;; |
| 6659 | esac |
| 6660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6661 | (eval "$ac_try") 2>&5 |
| 6662 | ac_status=$? |
| 6663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6664 | (exit $ac_status); }; } && |
| 6665 | { ac_try='test -s conftest.$ac_objext' |
| 6666 | { (case "(($ac_try" in |
| 6667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6668 | *) ac_try_echo=$ac_try;; |
| 6669 | esac |
| 6670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6671 | (eval "$ac_try") 2>&5 |
| 6672 | ac_status=$? |
| 6673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6674 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6675 | ac_cv_prog_cxx_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6676 | else |
| 6677 | echo "$as_me: failed program was:" >&5 |
| 6678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6679 | |
| 6680 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6681 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6682 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6684 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6685 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6687 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6688 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6690 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6691 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6692 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6693 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6694 | if test "$ac_test_CXXFLAGS" = set; then |
| 6695 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6696 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6697 | if test "$GXX" = yes; then |
| 6698 | CXXFLAGS="-g -O2" |
| 6699 | else |
| 6700 | CXXFLAGS="-g" |
| 6701 | fi |
| 6702 | else |
| 6703 | if test "$GXX" = yes; then |
| 6704 | CXXFLAGS="-O2" |
| 6705 | else |
| 6706 | CXXFLAGS= |
| 6707 | fi |
| 6708 | fi |
| 6709 | ac_ext=c |
| 6710 | ac_cpp='$CPP $CPPFLAGS' |
| 6711 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6712 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6713 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6714 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6715 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6716 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6717 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6718 | if test "${lt_cv_path_NM+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 | if test -n "$NM"; then |
| 6722 | # Let the user override the test. |
| 6723 | lt_cv_path_NM="$NM" |
| 6724 | else |
| 6725 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6726 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6727 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6728 | fi |
| 6729 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6730 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6731 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6732 | IFS="$lt_save_ifs" |
| 6733 | test -z "$ac_dir" && ac_dir=. |
| 6734 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6735 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6736 | # Check to see if the nm accepts a BSD-compat flag. |
| 6737 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6738 | # nm: unknown option "B" ignored |
| 6739 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6740 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6741 | */dev/null* | *'Invalid file or object type'*) |
| 6742 | lt_cv_path_NM="$tmp_nm -B" |
| 6743 | break |
| 6744 | ;; |
| 6745 | *) |
| 6746 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6747 | */dev/null*) |
| 6748 | lt_cv_path_NM="$tmp_nm -p" |
| 6749 | break |
| 6750 | ;; |
| 6751 | *) |
| 6752 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6753 | continue # so that we can try to find one that supports BSD flags |
| 6754 | ;; |
| 6755 | esac |
| 6756 | ;; |
| 6757 | esac |
| 6758 | fi |
| 6759 | done |
| 6760 | IFS="$lt_save_ifs" |
| 6761 | done |
| 6762 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6763 | fi |
| 6764 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6765 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6766 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6767 | NM="$lt_cv_path_NM" |
| 6768 | |
| 6769 | |
| 6770 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6771 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6772 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6773 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6775 | else |
| 6776 | llvm_cv_gnu_make_command='' |
| 6777 | for a in "$MAKE" make gmake gnumake ; do |
| 6778 | if test -z "$a" ; then continue ; fi ; |
| 6779 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6780 | then |
| 6781 | llvm_cv_gnu_make_command=$a ; |
| 6782 | break; |
| 6783 | fi |
| 6784 | done |
| 6785 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6786 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6787 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6788 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6789 | ifGNUmake='' ; |
| 6790 | else |
| 6791 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6792 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6793 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6794 | fi |
| 6795 | |
| 6796 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6797 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6798 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6799 | LN_S=$as_ln_s |
| 6800 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6801 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6802 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6803 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6804 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6805 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6806 | fi |
| 6807 | |
| 6808 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6809 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6810 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6812 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6814 | else |
| 6815 | case $CMP in |
| 6816 | [\\/]* | ?:[\\/]*) |
| 6817 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6818 | ;; |
| 6819 | *) |
| 6820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6821 | for as_dir in $PATH |
| 6822 | do |
| 6823 | IFS=$as_save_IFS |
| 6824 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6825 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6826 | 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] | 6827 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6828 | 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] | 6829 | break 2 |
| 6830 | fi |
| 6831 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6832 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6833 | IFS=$as_save_IFS |
| 6834 | |
| 6835 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6836 | ;; |
| 6837 | esac |
| 6838 | fi |
| 6839 | CMP=$ac_cv_path_CMP |
| 6840 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6841 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6842 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6843 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6844 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6845 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6846 | fi |
| 6847 | |
| 6848 | |
| 6849 | # Extract the first word of "cp", so it can be a program name with args. |
| 6850 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6851 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6852 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6853 | if test "${ac_cv_path_CP+set}" = set; then |
| 6854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6855 | else |
| 6856 | case $CP in |
| 6857 | [\\/]* | ?:[\\/]*) |
| 6858 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6859 | ;; |
| 6860 | *) |
| 6861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6862 | for as_dir in $PATH |
| 6863 | do |
| 6864 | IFS=$as_save_IFS |
| 6865 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6866 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6867 | 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] | 6868 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6869 | 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] | 6870 | break 2 |
| 6871 | fi |
| 6872 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6873 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6874 | IFS=$as_save_IFS |
| 6875 | |
| 6876 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6877 | ;; |
| 6878 | esac |
| 6879 | fi |
| 6880 | CP=$ac_cv_path_CP |
| 6881 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6882 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6883 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6884 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6885 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6886 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6887 | fi |
| 6888 | |
| 6889 | |
| 6890 | # Extract the first word of "date", so it can be a program name with args. |
| 6891 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6892 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6893 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6894 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6896 | else |
| 6897 | case $DATE in |
| 6898 | [\\/]* | ?:[\\/]*) |
| 6899 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6900 | ;; |
| 6901 | *) |
| 6902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6903 | for as_dir in $PATH |
| 6904 | do |
| 6905 | IFS=$as_save_IFS |
| 6906 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6907 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6908 | 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] | 6909 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6910 | 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] | 6911 | break 2 |
| 6912 | fi |
| 6913 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6914 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6915 | IFS=$as_save_IFS |
| 6916 | |
| 6917 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6918 | ;; |
| 6919 | esac |
| 6920 | fi |
| 6921 | DATE=$ac_cv_path_DATE |
| 6922 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6923 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6924 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6925 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6926 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6927 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6928 | fi |
| 6929 | |
| 6930 | |
| 6931 | # Extract the first word of "find", so it can be a program name with args. |
| 6932 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6933 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6934 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6935 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6937 | else |
| 6938 | case $FIND in |
| 6939 | [\\/]* | ?:[\\/]*) |
| 6940 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6941 | ;; |
| 6942 | *) |
| 6943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6944 | for as_dir in $PATH |
| 6945 | do |
| 6946 | IFS=$as_save_IFS |
| 6947 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6948 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6949 | 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] | 6950 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6951 | 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] | 6952 | break 2 |
| 6953 | fi |
| 6954 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6955 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6956 | IFS=$as_save_IFS |
| 6957 | |
| 6958 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6959 | ;; |
| 6960 | esac |
| 6961 | fi |
| 6962 | FIND=$ac_cv_path_FIND |
| 6963 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6964 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6965 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6966 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6967 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6968 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6969 | fi |
| 6970 | |
| 6971 | |
| 6972 | # Extract the first word of "grep", so it can be a program name with args. |
| 6973 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6974 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6976 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6978 | else |
| 6979 | case $GREP in |
| 6980 | [\\/]* | ?:[\\/]*) |
| 6981 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6982 | ;; |
| 6983 | *) |
| 6984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6985 | for as_dir in $PATH |
| 6986 | do |
| 6987 | IFS=$as_save_IFS |
| 6988 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6989 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6990 | 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] | 6991 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6992 | 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] | 6993 | break 2 |
| 6994 | fi |
| 6995 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6996 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6997 | IFS=$as_save_IFS |
| 6998 | |
| 6999 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 7000 | ;; |
| 7001 | esac |
| 7002 | fi |
| 7003 | GREP=$ac_cv_path_GREP |
| 7004 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7005 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 7006 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7007 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7008 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7009 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7010 | fi |
| 7011 | |
| 7012 | |
| 7013 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 7014 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7015 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7016 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7017 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 7018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7019 | else |
| 7020 | case $MKDIR in |
| 7021 | [\\/]* | ?:[\\/]*) |
| 7022 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 7023 | ;; |
| 7024 | *) |
| 7025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7026 | for as_dir in $PATH |
| 7027 | do |
| 7028 | IFS=$as_save_IFS |
| 7029 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7030 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7031 | 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] | 7032 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7033 | 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] | 7034 | break 2 |
| 7035 | fi |
| 7036 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7037 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7038 | IFS=$as_save_IFS |
| 7039 | |
| 7040 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 7041 | ;; |
| 7042 | esac |
| 7043 | fi |
| 7044 | MKDIR=$ac_cv_path_MKDIR |
| 7045 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7046 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 7047 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7048 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7049 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7050 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7051 | fi |
| 7052 | |
| 7053 | |
| 7054 | # Extract the first word of "mv", so it can be a program name with args. |
| 7055 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7056 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7057 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7058 | if test "${ac_cv_path_MV+set}" = set; then |
| 7059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7060 | else |
| 7061 | case $MV in |
| 7062 | [\\/]* | ?:[\\/]*) |
| 7063 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 7064 | ;; |
| 7065 | *) |
| 7066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7067 | for as_dir in $PATH |
| 7068 | do |
| 7069 | IFS=$as_save_IFS |
| 7070 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7071 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7072 | 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] | 7073 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7074 | 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] | 7075 | break 2 |
| 7076 | fi |
| 7077 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7078 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7079 | IFS=$as_save_IFS |
| 7080 | |
| 7081 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 7082 | ;; |
| 7083 | esac |
| 7084 | fi |
| 7085 | MV=$ac_cv_path_MV |
| 7086 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7087 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 7088 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7089 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7090 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7091 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7092 | fi |
| 7093 | |
| 7094 | |
| 7095 | if test -n "$ac_tool_prefix"; then |
| 7096 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7097 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7098 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7099 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7100 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 7101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7102 | else |
| 7103 | if test -n "$RANLIB"; then |
| 7104 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7105 | else |
| 7106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7107 | for as_dir in $PATH |
| 7108 | do |
| 7109 | IFS=$as_save_IFS |
| 7110 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7111 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7112 | 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] | 7113 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7114 | 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] | 7115 | break 2 |
| 7116 | fi |
| 7117 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7118 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7119 | IFS=$as_save_IFS |
| 7120 | |
| 7121 | fi |
| 7122 | fi |
| 7123 | RANLIB=$ac_cv_prog_RANLIB |
| 7124 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7125 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 7126 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7127 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7128 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7129 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7130 | fi |
| 7131 | |
| 7132 | |
| 7133 | fi |
| 7134 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7135 | ac_ct_RANLIB=$RANLIB |
| 7136 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7137 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7138 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7139 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7140 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 7141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7142 | else |
| 7143 | if test -n "$ac_ct_RANLIB"; then |
| 7144 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7145 | else |
| 7146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7147 | for as_dir in $PATH |
| 7148 | do |
| 7149 | IFS=$as_save_IFS |
| 7150 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7151 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7152 | 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] | 7153 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7154 | 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] | 7155 | break 2 |
| 7156 | fi |
| 7157 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7158 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7159 | IFS=$as_save_IFS |
| 7160 | |
| 7161 | fi |
| 7162 | fi |
| 7163 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7164 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7165 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7166 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7167 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7168 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7169 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7170 | fi |
| 7171 | |
| 7172 | if test "x$ac_ct_RANLIB" = x; then |
| 7173 | RANLIB=":" |
| 7174 | else |
| 7175 | case $cross_compiling:$ac_tool_warned in |
| 7176 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7177 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7178 | whose name does not start with the host triplet. If you think this |
| 7179 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7180 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7181 | whose name does not start with the host triplet. If you think this |
| 7182 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7183 | ac_tool_warned=yes ;; |
| 7184 | esac |
| 7185 | RANLIB=$ac_ct_RANLIB |
| 7186 | fi |
| 7187 | else |
| 7188 | RANLIB="$ac_cv_prog_RANLIB" |
| 7189 | fi |
| 7190 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7191 | if test -n "$ac_tool_prefix"; then |
| 7192 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 7193 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7194 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7195 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7196 | if test "${ac_cv_prog_AR+set}" = set; then |
| 7197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7198 | else |
| 7199 | if test -n "$AR"; then |
| 7200 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7201 | else |
| 7202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7203 | for as_dir in $PATH |
| 7204 | do |
| 7205 | IFS=$as_save_IFS |
| 7206 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7207 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7208 | 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] | 7209 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7210 | 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] | 7211 | break 2 |
| 7212 | fi |
| 7213 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7214 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7215 | IFS=$as_save_IFS |
| 7216 | |
| 7217 | fi |
| 7218 | fi |
| 7219 | AR=$ac_cv_prog_AR |
| 7220 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7221 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 7222 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7223 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7224 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7225 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7226 | fi |
| 7227 | |
| 7228 | |
| 7229 | fi |
| 7230 | if test -z "$ac_cv_prog_AR"; then |
| 7231 | ac_ct_AR=$AR |
| 7232 | # Extract the first word of "ar", so it can be a program name with args. |
| 7233 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7234 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7235 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7236 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 7237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7238 | else |
| 7239 | if test -n "$ac_ct_AR"; then |
| 7240 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7241 | else |
| 7242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7243 | for as_dir in $PATH |
| 7244 | do |
| 7245 | IFS=$as_save_IFS |
| 7246 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7247 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7248 | 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] | 7249 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7250 | 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] | 7251 | break 2 |
| 7252 | fi |
| 7253 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7254 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7255 | IFS=$as_save_IFS |
| 7256 | |
| 7257 | fi |
| 7258 | fi |
| 7259 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7260 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7261 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 7262 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7263 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7264 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7265 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7266 | fi |
| 7267 | |
| 7268 | if test "x$ac_ct_AR" = x; then |
| 7269 | AR="false" |
| 7270 | else |
| 7271 | case $cross_compiling:$ac_tool_warned in |
| 7272 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7273 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7274 | whose name does not start with the host triplet. If you think this |
| 7275 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7276 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7277 | whose name does not start with the host triplet. If you think this |
| 7278 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7279 | ac_tool_warned=yes ;; |
| 7280 | esac |
| 7281 | AR=$ac_ct_AR |
| 7282 | fi |
| 7283 | else |
| 7284 | AR="$ac_cv_prog_AR" |
| 7285 | fi |
| 7286 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7287 | # Extract the first word of "rm", so it can be a program name with args. |
| 7288 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7289 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7290 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7291 | if test "${ac_cv_path_RM+set}" = set; then |
| 7292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7293 | else |
| 7294 | case $RM in |
| 7295 | [\\/]* | ?:[\\/]*) |
| 7296 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7297 | ;; |
| 7298 | *) |
| 7299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7300 | for as_dir in $PATH |
| 7301 | do |
| 7302 | IFS=$as_save_IFS |
| 7303 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7304 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7305 | 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] | 7306 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7307 | 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] | 7308 | break 2 |
| 7309 | fi |
| 7310 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7311 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7312 | IFS=$as_save_IFS |
| 7313 | |
| 7314 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7315 | ;; |
| 7316 | esac |
| 7317 | fi |
| 7318 | RM=$ac_cv_path_RM |
| 7319 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7320 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7321 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7322 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7323 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7324 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7325 | fi |
| 7326 | |
| 7327 | |
| 7328 | # Extract the first word of "sed", so it can be a program name with args. |
| 7329 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7330 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7331 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7332 | if test "${ac_cv_path_SED+set}" = set; then |
| 7333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7334 | else |
| 7335 | case $SED in |
| 7336 | [\\/]* | ?:[\\/]*) |
| 7337 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7338 | ;; |
| 7339 | *) |
| 7340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7341 | for as_dir in $PATH |
| 7342 | do |
| 7343 | IFS=$as_save_IFS |
| 7344 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7345 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7346 | 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] | 7347 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7348 | 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] | 7349 | break 2 |
| 7350 | fi |
| 7351 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7352 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7353 | IFS=$as_save_IFS |
| 7354 | |
| 7355 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7356 | ;; |
| 7357 | esac |
| 7358 | fi |
| 7359 | SED=$ac_cv_path_SED |
| 7360 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7361 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7362 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7363 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7364 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7365 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7366 | fi |
| 7367 | |
| 7368 | |
| 7369 | # Extract the first word of "tar", so it can be a program name with args. |
| 7370 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7371 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7372 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7373 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7375 | else |
| 7376 | case $TAR in |
| 7377 | [\\/]* | ?:[\\/]*) |
| 7378 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7379 | ;; |
| 7380 | *) |
| 7381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7382 | for as_dir in $PATH |
| 7383 | do |
| 7384 | IFS=$as_save_IFS |
| 7385 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7386 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7387 | 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] | 7388 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7389 | 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] | 7390 | break 2 |
| 7391 | fi |
| 7392 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7393 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7394 | IFS=$as_save_IFS |
| 7395 | |
| 7396 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7397 | ;; |
| 7398 | esac |
| 7399 | fi |
| 7400 | TAR=$ac_cv_path_TAR |
| 7401 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7402 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7403 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7404 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7405 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7406 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7407 | fi |
| 7408 | |
| 7409 | |
| 7410 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7411 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7412 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7413 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7414 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7416 | else |
| 7417 | case $BINPWD in |
| 7418 | [\\/]* | ?:[\\/]*) |
| 7419 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7420 | ;; |
| 7421 | *) |
| 7422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7423 | for as_dir in $PATH |
| 7424 | do |
| 7425 | IFS=$as_save_IFS |
| 7426 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7427 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7428 | 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] | 7429 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7430 | 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] | 7431 | break 2 |
| 7432 | fi |
| 7433 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7434 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7435 | IFS=$as_save_IFS |
| 7436 | |
| 7437 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7438 | ;; |
| 7439 | esac |
| 7440 | fi |
| 7441 | BINPWD=$ac_cv_path_BINPWD |
| 7442 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7443 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7444 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7445 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7446 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7447 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7448 | fi |
| 7449 | |
| 7450 | |
| 7451 | |
| 7452 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7453 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7454 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7455 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7456 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7458 | else |
| 7459 | case $GRAPHVIZ in |
| 7460 | [\\/]* | ?:[\\/]*) |
| 7461 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7462 | ;; |
| 7463 | *) |
| 7464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7465 | for as_dir in $PATH |
| 7466 | do |
| 7467 | IFS=$as_save_IFS |
| 7468 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7469 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7470 | 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] | 7471 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7472 | 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] | 7473 | break 2 |
| 7474 | fi |
| 7475 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7476 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7477 | IFS=$as_save_IFS |
| 7478 | |
| 7479 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7480 | ;; |
| 7481 | esac |
| 7482 | fi |
| 7483 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7484 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7485 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7486 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7487 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7488 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7489 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7490 | fi |
| 7491 | |
| 7492 | |
| 7493 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7494 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7495 | cat >>confdefs.h <<\_ACEOF |
| 7496 | #define HAVE_GRAPHVIZ 1 |
| 7497 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7498 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7499 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7500 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7501 | fi |
| 7502 | |
| 7503 | cat >>confdefs.h <<_ACEOF |
| 7504 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7505 | _ACEOF |
| 7506 | |
| 7507 | fi |
| 7508 | # Extract the first word of "dot", so it can be a program name with args. |
| 7509 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7510 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7512 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7514 | else |
| 7515 | case $DOT in |
| 7516 | [\\/]* | ?:[\\/]*) |
| 7517 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7518 | ;; |
| 7519 | *) |
| 7520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7521 | for as_dir in $PATH |
| 7522 | do |
| 7523 | IFS=$as_save_IFS |
| 7524 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7525 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7526 | 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] | 7527 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7528 | 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] | 7529 | break 2 |
| 7530 | fi |
| 7531 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7532 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7533 | IFS=$as_save_IFS |
| 7534 | |
| 7535 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7536 | ;; |
| 7537 | esac |
| 7538 | fi |
| 7539 | DOT=$ac_cv_path_DOT |
| 7540 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7541 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7542 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7543 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7544 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7545 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7546 | fi |
| 7547 | |
| 7548 | |
| 7549 | if test "$DOT" != "echo dot" ; then |
| 7550 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7551 | cat >>confdefs.h <<\_ACEOF |
| 7552 | #define HAVE_DOT 1 |
| 7553 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7554 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7555 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7556 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7557 | fi |
| 7558 | |
| 7559 | cat >>confdefs.h <<_ACEOF |
| 7560 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7561 | _ACEOF |
| 7562 | |
| 7563 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7564 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7565 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7566 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7568 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7570 | else |
| 7571 | case $FDP in |
| 7572 | [\\/]* | ?:[\\/]*) |
| 7573 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7574 | ;; |
| 7575 | *) |
| 7576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7577 | for as_dir in $PATH |
| 7578 | do |
| 7579 | IFS=$as_save_IFS |
| 7580 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7581 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7582 | 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] | 7583 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7584 | 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] | 7585 | break 2 |
| 7586 | fi |
| 7587 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7588 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7589 | IFS=$as_save_IFS |
| 7590 | |
| 7591 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7592 | ;; |
| 7593 | esac |
| 7594 | fi |
| 7595 | FDP=$ac_cv_path_FDP |
| 7596 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7597 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7598 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7599 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7600 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7601 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7602 | fi |
| 7603 | |
| 7604 | |
| 7605 | if test "$FDP" != "echo fdp" ; then |
| 7606 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7607 | cat >>confdefs.h <<\_ACEOF |
| 7608 | #define HAVE_FDP 1 |
| 7609 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7610 | |
| 7611 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7612 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7613 | fi |
| 7614 | |
| 7615 | cat >>confdefs.h <<_ACEOF |
| 7616 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7617 | _ACEOF |
| 7618 | |
| 7619 | fi |
| 7620 | # Extract the first word of "neato", so it can be a program name with args. |
| 7621 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7622 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7623 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7624 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7626 | else |
| 7627 | case $NEATO in |
| 7628 | [\\/]* | ?:[\\/]*) |
| 7629 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7630 | ;; |
| 7631 | *) |
| 7632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7633 | for as_dir in $PATH |
| 7634 | do |
| 7635 | IFS=$as_save_IFS |
| 7636 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7637 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7638 | 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] | 7639 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7640 | 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] | 7641 | break 2 |
| 7642 | fi |
| 7643 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7644 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7645 | IFS=$as_save_IFS |
| 7646 | |
| 7647 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7648 | ;; |
| 7649 | esac |
| 7650 | fi |
| 7651 | NEATO=$ac_cv_path_NEATO |
| 7652 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7653 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7654 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7655 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7656 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7657 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7658 | fi |
| 7659 | |
| 7660 | |
| 7661 | if test "$NEATO" != "echo neato" ; then |
| 7662 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7663 | cat >>confdefs.h <<\_ACEOF |
| 7664 | #define HAVE_NEATO 1 |
| 7665 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7666 | |
| 7667 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7668 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7669 | fi |
| 7670 | |
| 7671 | cat >>confdefs.h <<_ACEOF |
| 7672 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7673 | _ACEOF |
| 7674 | |
| 7675 | fi |
| 7676 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7677 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7678 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7680 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7682 | else |
| 7683 | case $TWOPI in |
| 7684 | [\\/]* | ?:[\\/]*) |
| 7685 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7686 | ;; |
| 7687 | *) |
| 7688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7689 | for as_dir in $PATH |
| 7690 | do |
| 7691 | IFS=$as_save_IFS |
| 7692 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7693 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7694 | 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] | 7695 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7696 | 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] | 7697 | break 2 |
| 7698 | fi |
| 7699 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7700 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7701 | IFS=$as_save_IFS |
| 7702 | |
| 7703 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7704 | ;; |
| 7705 | esac |
| 7706 | fi |
| 7707 | TWOPI=$ac_cv_path_TWOPI |
| 7708 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7709 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7710 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7711 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7712 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7713 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7714 | fi |
| 7715 | |
| 7716 | |
| 7717 | if test "$TWOPI" != "echo twopi" ; then |
| 7718 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7719 | cat >>confdefs.h <<\_ACEOF |
| 7720 | #define HAVE_TWOPI 1 |
| 7721 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7722 | |
| 7723 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7724 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7725 | fi |
| 7726 | |
| 7727 | cat >>confdefs.h <<_ACEOF |
| 7728 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7729 | _ACEOF |
| 7730 | |
| 7731 | fi |
| 7732 | # Extract the first word of "circo", so it can be a program name with args. |
| 7733 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7734 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7736 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 7737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7738 | else |
| 7739 | case $CIRCO in |
| 7740 | [\\/]* | ?:[\\/]*) |
| 7741 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 7742 | ;; |
| 7743 | *) |
| 7744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7745 | for as_dir in $PATH |
| 7746 | do |
| 7747 | IFS=$as_save_IFS |
| 7748 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7749 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7750 | 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] | 7751 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7752 | 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] | 7753 | break 2 |
| 7754 | fi |
| 7755 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7756 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7757 | IFS=$as_save_IFS |
| 7758 | |
| 7759 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7760 | ;; |
| 7761 | esac |
| 7762 | fi |
| 7763 | CIRCO=$ac_cv_path_CIRCO |
| 7764 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7765 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7766 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7767 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7768 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7769 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7770 | fi |
| 7771 | |
| 7772 | |
| 7773 | if test "$CIRCO" != "echo circo" ; then |
| 7774 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7775 | cat >>confdefs.h <<\_ACEOF |
| 7776 | #define HAVE_CIRCO 1 |
| 7777 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7778 | |
| 7779 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7780 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7781 | fi |
| 7782 | |
| 7783 | cat >>confdefs.h <<_ACEOF |
| 7784 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7785 | _ACEOF |
| 7786 | |
| 7787 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7788 | for ac_prog in gv gsview32 |
| 7789 | do |
| 7790 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7791 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7792 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7794 | if test "${ac_cv_path_GV+set}" = set; then |
| 7795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7796 | else |
| 7797 | case $GV in |
| 7798 | [\\/]* | ?:[\\/]*) |
| 7799 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7800 | ;; |
| 7801 | *) |
| 7802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7803 | for as_dir in $PATH |
| 7804 | do |
| 7805 | IFS=$as_save_IFS |
| 7806 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7807 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7808 | 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] | 7809 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7810 | 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] | 7811 | break 2 |
| 7812 | fi |
| 7813 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7814 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7815 | IFS=$as_save_IFS |
| 7816 | |
| 7817 | ;; |
| 7818 | esac |
| 7819 | fi |
| 7820 | GV=$ac_cv_path_GV |
| 7821 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7822 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7823 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7824 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7825 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7826 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7827 | fi |
| 7828 | |
| 7829 | |
| 7830 | test -n "$GV" && break |
| 7831 | done |
| 7832 | test -n "$GV" || GV="echo gv" |
| 7833 | |
| 7834 | if test "$GV" != "echo gv" ; then |
| 7835 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7836 | cat >>confdefs.h <<\_ACEOF |
| 7837 | #define HAVE_GV 1 |
| 7838 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7839 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7840 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7841 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7842 | fi |
| 7843 | |
| 7844 | cat >>confdefs.h <<_ACEOF |
| 7845 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7846 | _ACEOF |
| 7847 | |
| 7848 | fi |
| 7849 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7850 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7851 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7852 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7853 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7855 | else |
| 7856 | case $DOTTY in |
| 7857 | [\\/]* | ?:[\\/]*) |
| 7858 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7859 | ;; |
| 7860 | *) |
| 7861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7862 | for as_dir in $PATH |
| 7863 | do |
| 7864 | IFS=$as_save_IFS |
| 7865 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7866 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7867 | 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] | 7868 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7869 | 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] | 7870 | break 2 |
| 7871 | fi |
| 7872 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7873 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7874 | IFS=$as_save_IFS |
| 7875 | |
| 7876 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7877 | ;; |
| 7878 | esac |
| 7879 | fi |
| 7880 | DOTTY=$ac_cv_path_DOTTY |
| 7881 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7882 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7883 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7884 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7885 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7886 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7887 | fi |
| 7888 | |
| 7889 | |
| 7890 | if test "$DOTTY" != "echo dotty" ; then |
| 7891 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7892 | cat >>confdefs.h <<\_ACEOF |
| 7893 | #define HAVE_DOTTY 1 |
| 7894 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7895 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7896 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7897 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7898 | fi |
| 7899 | |
| 7900 | cat >>confdefs.h <<_ACEOF |
| 7901 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7902 | _ACEOF |
| 7903 | |
| 7904 | fi |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 7905 | # Extract the first word of "xdot.py", so it can be a program name with args. |
| 7906 | set dummy xdot.py; ac_word=$2 |
| 7907 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7909 | if test "${ac_cv_path_XDOT_PY+set}" = set; then |
| 7910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7911 | else |
| 7912 | case $XDOT_PY in |
| 7913 | [\\/]* | ?:[\\/]*) |
| 7914 | ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. |
| 7915 | ;; |
| 7916 | *) |
| 7917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7918 | for as_dir in $PATH |
| 7919 | do |
| 7920 | IFS=$as_save_IFS |
| 7921 | test -z "$as_dir" && as_dir=. |
| 7922 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7923 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7924 | ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" |
| 7925 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7926 | break 2 |
| 7927 | fi |
| 7928 | done |
| 7929 | done |
| 7930 | IFS=$as_save_IFS |
| 7931 | |
| 7932 | test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" |
| 7933 | ;; |
| 7934 | esac |
| 7935 | fi |
| 7936 | XDOT_PY=$ac_cv_path_XDOT_PY |
| 7937 | if test -n "$XDOT_PY"; then |
| 7938 | { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 |
| 7939 | echo "${ECHO_T}$XDOT_PY" >&6; } |
| 7940 | else |
| 7941 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7942 | echo "${ECHO_T}no" >&6; } |
| 7943 | fi |
| 7944 | |
| 7945 | |
| 7946 | if test "$XDOT_PY" != "echo xdot.py" ; then |
| 7947 | |
| 7948 | cat >>confdefs.h <<\_ACEOF |
| 7949 | #define HAVE_XDOT_PY 1 |
| 7950 | _ACEOF |
| 7951 | |
| 7952 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7953 | XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7954 | fi |
| 7955 | |
| 7956 | cat >>confdefs.h <<_ACEOF |
| 7957 | #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" |
| 7958 | _ACEOF |
| 7959 | |
| 7960 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7961 | |
| 7962 | |
| 7963 | # Extract the first word of "perl", so it can be a program name with args. |
| 7964 | set dummy perl; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7965 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7967 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7969 | else |
| 7970 | case $PERL in |
| 7971 | [\\/]* | ?:[\\/]*) |
| 7972 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7973 | ;; |
| 7974 | *) |
| 7975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7976 | for as_dir in $PATH |
| 7977 | do |
| 7978 | IFS=$as_save_IFS |
| 7979 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7980 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7981 | 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] | 7982 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7983 | 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] | 7984 | break 2 |
| 7985 | fi |
| 7986 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7987 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7988 | IFS=$as_save_IFS |
| 7989 | |
| 7990 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7991 | ;; |
| 7992 | esac |
| 7993 | fi |
| 7994 | PERL=$ac_cv_path_PERL |
| 7995 | if test -n "$PERL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7996 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7997 | echo "${ECHO_T}$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7998 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7999 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8000 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8001 | fi |
| 8002 | |
| 8003 | |
| 8004 | if test "$PERL" != "none"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8005 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 8006 | 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] | 8007 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8008 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 8009 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8010 | else |
| 8011 | PERL=none |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8012 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 8013 | echo "${ECHO_T}not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8014 | fi |
| 8015 | fi |
| 8016 | |
| 8017 | |
| 8018 | if test x"$PERL" = xnone; then |
| 8019 | HAVE_PERL=0 |
| 8020 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8021 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 8022 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 8023 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8024 | else |
| 8025 | HAVE_PERL=1 |
| 8026 | |
| 8027 | fi |
| 8028 | |
| 8029 | # Find a good install program. We prefer a C program (faster), |
| 8030 | # so one script is as good as another. But avoid the broken or |
| 8031 | # incompatible versions: |
| 8032 | # SysV /etc/install, /usr/sbin/install |
| 8033 | # SunOS /usr/etc/install |
| 8034 | # IRIX /sbin/install |
| 8035 | # AIX /bin/install |
| 8036 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 8037 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 8038 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 8039 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 8040 | # OS/2's system install, which has a completely different semantic |
| 8041 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8042 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 8043 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8044 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8045 | if test "${ac_cv_path_install+set}" = set; then |
| 8046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8047 | else |
| 8048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8049 | for as_dir in $PATH |
| 8050 | do |
| 8051 | IFS=$as_save_IFS |
| 8052 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8053 | # Account for people who put trailing slashes in PATH elements. |
| 8054 | case $as_dir/ in |
| 8055 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8056 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8057 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8058 | /usr/ucb/* ) ;; |
| 8059 | *) |
| 8060 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 8061 | # Don't use installbsd from OSF since it installs stuff as root |
| 8062 | # by default. |
| 8063 | for ac_prog in ginstall scoinst install; do |
| 8064 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8065 | 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] | 8066 | if test $ac_prog = install && |
| 8067 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 8068 | # AIX install. It has an incompatible calling convention. |
| 8069 | : |
| 8070 | elif test $ac_prog = install && |
| 8071 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 8072 | # program-specific install script used by HP pwplus--don't use. |
| 8073 | : |
| 8074 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8075 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 8076 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8077 | fi |
| 8078 | fi |
| 8079 | done |
| 8080 | done |
| 8081 | ;; |
| 8082 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8083 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8084 | IFS=$as_save_IFS |
| 8085 | |
| 8086 | |
| 8087 | fi |
| 8088 | if test "${ac_cv_path_install+set}" = set; then |
| 8089 | INSTALL=$ac_cv_path_install |
| 8090 | else |
| 8091 | # As a last resort, use the slow shell script. Don't cache a |
| 8092 | # value for INSTALL within a source directory, because that will |
| 8093 | # break other packages using the cache if that directory is |
| 8094 | # removed, or if the value is a relative name. |
| 8095 | INSTALL=$ac_install_sh |
| 8096 | fi |
| 8097 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8098 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 8099 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8100 | |
| 8101 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 8102 | # It thinks the first close brace ends the variable substitution. |
| 8103 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 8104 | |
| 8105 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 8106 | |
| 8107 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 8108 | |
Eric Christopher | 2a1a44f | 2010-07-22 21:13:48 +0000 | [diff] [blame] | 8109 | case "$INSTALL" in |
| 8110 | [\\/$]* | ?:[\\/]* ) ;; |
| 8111 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 8112 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8113 | |
| 8114 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 8115 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8116 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8117 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8118 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 8119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8120 | else |
| 8121 | case $BZIP2 in |
| 8122 | [\\/]* | ?:[\\/]*) |
| 8123 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 8124 | ;; |
| 8125 | *) |
| 8126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8127 | for as_dir in $PATH |
| 8128 | do |
| 8129 | IFS=$as_save_IFS |
| 8130 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8131 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8132 | 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] | 8133 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8134 | 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] | 8135 | break 2 |
| 8136 | fi |
| 8137 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8138 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8139 | IFS=$as_save_IFS |
| 8140 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8141 | ;; |
| 8142 | esac |
| 8143 | fi |
| 8144 | BZIP2=$ac_cv_path_BZIP2 |
| 8145 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8146 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 8147 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8148 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8149 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8150 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8151 | fi |
| 8152 | |
| 8153 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 8154 | # Extract the first word of "cat", so it can be a program name with args. |
| 8155 | set dummy cat; ac_word=$2 |
| 8156 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8157 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8158 | if test "${ac_cv_path_CAT+set}" = set; then |
| 8159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8160 | else |
| 8161 | case $CAT in |
| 8162 | [\\/]* | ?:[\\/]*) |
| 8163 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
| 8164 | ;; |
| 8165 | *) |
| 8166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8167 | for as_dir in $PATH |
| 8168 | do |
| 8169 | IFS=$as_save_IFS |
| 8170 | test -z "$as_dir" && as_dir=. |
| 8171 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8172 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8173 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
| 8174 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8175 | break 2 |
| 8176 | fi |
| 8177 | done |
| 8178 | done |
| 8179 | IFS=$as_save_IFS |
| 8180 | |
| 8181 | ;; |
| 8182 | esac |
| 8183 | fi |
| 8184 | CAT=$ac_cv_path_CAT |
| 8185 | if test -n "$CAT"; then |
| 8186 | { echo "$as_me:$LINENO: result: $CAT" >&5 |
| 8187 | echo "${ECHO_T}$CAT" >&6; } |
| 8188 | else |
| 8189 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8190 | echo "${ECHO_T}no" >&6; } |
| 8191 | fi |
| 8192 | |
| 8193 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8194 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 8195 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8196 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8197 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8198 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 8199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8200 | else |
| 8201 | case $DOXYGEN in |
| 8202 | [\\/]* | ?:[\\/]*) |
| 8203 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 8204 | ;; |
| 8205 | *) |
| 8206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8207 | for as_dir in $PATH |
| 8208 | do |
| 8209 | IFS=$as_save_IFS |
| 8210 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8211 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8212 | 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] | 8213 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8214 | 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] | 8215 | break 2 |
| 8216 | fi |
| 8217 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8218 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8219 | IFS=$as_save_IFS |
| 8220 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8221 | ;; |
| 8222 | esac |
| 8223 | fi |
| 8224 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 8225 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8226 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 8227 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8228 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8229 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8230 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8231 | fi |
| 8232 | |
| 8233 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8234 | # Extract the first word of "groff", so it can be a program name with args. |
| 8235 | set dummy groff; 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_GROFF+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 $GROFF in |
| 8242 | [\\/]* | ?:[\\/]*) |
| 8243 | ac_cv_path_GROFF="$GROFF" # 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_GROFF="$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 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8261 | ;; |
| 8262 | esac |
| 8263 | fi |
| 8264 | GROFF=$ac_cv_path_GROFF |
| 8265 | if test -n "$GROFF"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8266 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 8267 | echo "${ECHO_T}$GROFF" >&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 | # Extract the first word of "gzip", so it can be a program name with args. |
| 8275 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8276 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8277 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8278 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 8279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8280 | else |
| 8281 | case $GZIP in |
| 8282 | [\\/]* | ?:[\\/]*) |
| 8283 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 8284 | ;; |
| 8285 | *) |
| 8286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8287 | for as_dir in $PATH |
| 8288 | do |
| 8289 | IFS=$as_save_IFS |
| 8290 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8291 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8292 | 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] | 8293 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8294 | 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] | 8295 | break 2 |
| 8296 | fi |
| 8297 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8298 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8299 | IFS=$as_save_IFS |
| 8300 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8301 | ;; |
| 8302 | esac |
| 8303 | fi |
| 8304 | GZIP=$ac_cv_path_GZIP |
| 8305 | if test -n "$GZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8306 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 8307 | echo "${ECHO_T}$GZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8308 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8309 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8310 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8311 | fi |
| 8312 | |
| 8313 | |
| 8314 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 8315 | set dummy pod2html; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8316 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8318 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 8319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8320 | else |
| 8321 | case $POD2HTML in |
| 8322 | [\\/]* | ?:[\\/]*) |
| 8323 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 8324 | ;; |
| 8325 | *) |
| 8326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8327 | for as_dir in $PATH |
| 8328 | do |
| 8329 | IFS=$as_save_IFS |
| 8330 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8331 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8332 | 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] | 8333 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8334 | 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] | 8335 | break 2 |
| 8336 | fi |
| 8337 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8338 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8339 | IFS=$as_save_IFS |
| 8340 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8341 | ;; |
| 8342 | esac |
| 8343 | fi |
| 8344 | POD2HTML=$ac_cv_path_POD2HTML |
| 8345 | if test -n "$POD2HTML"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8346 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 8347 | echo "${ECHO_T}$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8348 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8349 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8350 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8351 | fi |
| 8352 | |
| 8353 | |
| 8354 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 8355 | set dummy pod2man; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8356 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8357 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8358 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 8359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8360 | else |
| 8361 | case $POD2MAN in |
| 8362 | [\\/]* | ?:[\\/]*) |
| 8363 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 8364 | ;; |
| 8365 | *) |
| 8366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8367 | for as_dir in $PATH |
| 8368 | do |
| 8369 | IFS=$as_save_IFS |
| 8370 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8371 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8372 | 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] | 8373 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8374 | 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] | 8375 | break 2 |
| 8376 | fi |
| 8377 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8378 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8379 | IFS=$as_save_IFS |
| 8380 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8381 | ;; |
| 8382 | esac |
| 8383 | fi |
| 8384 | POD2MAN=$ac_cv_path_POD2MAN |
| 8385 | if test -n "$POD2MAN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8386 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 8387 | echo "${ECHO_T}$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8388 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8389 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8390 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8391 | fi |
| 8392 | |
| 8393 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 8394 | # Extract the first word of "pdfroff", so it can be a program name with args. |
| 8395 | set dummy pdfroff; ac_word=$2 |
| 8396 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8397 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8398 | if test "${ac_cv_path_PDFROFF+set}" = set; then |
| 8399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8400 | else |
| 8401 | case $PDFROFF in |
| 8402 | [\\/]* | ?:[\\/]*) |
| 8403 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. |
| 8404 | ;; |
| 8405 | *) |
| 8406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8407 | for as_dir in $PATH |
| 8408 | do |
| 8409 | IFS=$as_save_IFS |
| 8410 | test -z "$as_dir" && as_dir=. |
| 8411 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8412 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8413 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" |
| 8414 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8415 | break 2 |
| 8416 | fi |
| 8417 | done |
| 8418 | done |
| 8419 | IFS=$as_save_IFS |
| 8420 | |
| 8421 | ;; |
| 8422 | esac |
| 8423 | fi |
| 8424 | PDFROFF=$ac_cv_path_PDFROFF |
| 8425 | if test -n "$PDFROFF"; then |
| 8426 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 |
| 8427 | echo "${ECHO_T}$PDFROFF" >&6; } |
| 8428 | else |
| 8429 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8430 | echo "${ECHO_T}no" >&6; } |
| 8431 | fi |
| 8432 | |
| 8433 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8434 | # Extract the first word of "runtest", so it can be a program name with args. |
| 8435 | set dummy runtest; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8436 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8437 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8438 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 8439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8440 | else |
| 8441 | case $RUNTEST in |
| 8442 | [\\/]* | ?:[\\/]*) |
| 8443 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 8444 | ;; |
| 8445 | *) |
| 8446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8447 | for as_dir in $PATH |
| 8448 | do |
| 8449 | IFS=$as_save_IFS |
| 8450 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8451 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8452 | 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] | 8453 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8454 | 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] | 8455 | break 2 |
| 8456 | fi |
| 8457 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8458 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8459 | IFS=$as_save_IFS |
| 8460 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8461 | ;; |
| 8462 | esac |
| 8463 | fi |
| 8464 | RUNTEST=$ac_cv_path_RUNTEST |
| 8465 | if test -n "$RUNTEST"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8466 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8467 | echo "${ECHO_T}$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8468 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8469 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8470 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8471 | fi |
| 8472 | |
| 8473 | |
| 8474 | |
| 8475 | no_itcl=true |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8476 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8477 | 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] | 8478 | |
| 8479 | # Check whether --with-tclinclude was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8480 | if test "${with_tclinclude+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8481 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8482 | else |
| 8483 | with_tclinclude='' |
| 8484 | fi |
| 8485 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8486 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8488 | else |
| 8489 | |
| 8490 | if test x"${with_tclinclude}" != x ; then |
| 8491 | if test -f ${with_tclinclude}/tclsh ; then |
| 8492 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8493 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8494 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8495 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8496 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8497 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8498 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8499 | fi |
| 8500 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 8501 | fi |
| 8502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8503 | |
| 8504 | if test x"${ac_cv_path_tclsh}" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8505 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8506 | echo "${ECHO_T}none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8507 | 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 |
| 8508 | do |
| 8509 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8510 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8511 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8512 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8513 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8515 | else |
| 8516 | case $TCLSH in |
| 8517 | [\\/]* | ?:[\\/]*) |
| 8518 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8519 | ;; |
| 8520 | *) |
| 8521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8522 | for as_dir in $PATH |
| 8523 | do |
| 8524 | IFS=$as_save_IFS |
| 8525 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8526 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8527 | 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] | 8528 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8529 | 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] | 8530 | break 2 |
| 8531 | fi |
| 8532 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8533 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8534 | IFS=$as_save_IFS |
| 8535 | |
| 8536 | ;; |
| 8537 | esac |
| 8538 | fi |
| 8539 | TCLSH=$ac_cv_path_TCLSH |
| 8540 | if test -n "$TCLSH"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8541 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8542 | echo "${ECHO_T}$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8543 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8544 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8545 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8546 | fi |
| 8547 | |
| 8548 | |
| 8549 | test -n "$TCLSH" && break |
| 8550 | done |
| 8551 | |
| 8552 | if test x"${TCLSH}" = x ; then |
| 8553 | ac_cv_path_tclsh=''; |
| 8554 | else |
| 8555 | ac_cv_path_tclsh="${TCLSH}"; |
| 8556 | fi |
| 8557 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8558 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8559 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8560 | TCLSH="${ac_cv_path_tclsh}" |
| 8561 | |
| 8562 | fi |
| 8563 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8564 | # Extract the first word of "zip", so it can be a program name with args. |
| 8565 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8566 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8568 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8570 | else |
| 8571 | case $ZIP in |
| 8572 | [\\/]* | ?:[\\/]*) |
| 8573 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8574 | ;; |
| 8575 | *) |
| 8576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8577 | for as_dir in $PATH |
| 8578 | do |
| 8579 | IFS=$as_save_IFS |
| 8580 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8581 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8582 | 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] | 8583 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8584 | 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] | 8585 | break 2 |
| 8586 | fi |
| 8587 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8588 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8589 | IFS=$as_save_IFS |
| 8590 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8591 | ;; |
| 8592 | esac |
| 8593 | fi |
| 8594 | ZIP=$ac_cv_path_ZIP |
| 8595 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8596 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8597 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8598 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8599 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8600 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8601 | fi |
| 8602 | |
| 8603 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8604 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8605 | do |
| 8606 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8607 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8608 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8609 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8610 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8612 | else |
| 8613 | case $OCAMLC in |
| 8614 | [\\/]* | ?:[\\/]*) |
| 8615 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8616 | ;; |
| 8617 | *) |
| 8618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8619 | for as_dir in $PATH |
| 8620 | do |
| 8621 | IFS=$as_save_IFS |
| 8622 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8623 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8624 | 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] | 8625 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8626 | 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] | 8627 | break 2 |
| 8628 | fi |
| 8629 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8630 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8631 | IFS=$as_save_IFS |
| 8632 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8633 | ;; |
| 8634 | esac |
| 8635 | fi |
| 8636 | OCAMLC=$ac_cv_path_OCAMLC |
| 8637 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8638 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8639 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8640 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8641 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8642 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8643 | fi |
| 8644 | |
| 8645 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8646 | test -n "$OCAMLC" && break |
| 8647 | done |
| 8648 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8649 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8650 | do |
| 8651 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8652 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8653 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8654 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8655 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8657 | else |
| 8658 | case $OCAMLOPT in |
| 8659 | [\\/]* | ?:[\\/]*) |
| 8660 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8661 | ;; |
| 8662 | *) |
| 8663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8664 | for as_dir in $PATH |
| 8665 | do |
| 8666 | IFS=$as_save_IFS |
| 8667 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8668 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8669 | 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] | 8670 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8671 | 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] | 8672 | break 2 |
| 8673 | fi |
| 8674 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8675 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8676 | IFS=$as_save_IFS |
| 8677 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8678 | ;; |
| 8679 | esac |
| 8680 | fi |
| 8681 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8682 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8683 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8684 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8685 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8686 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8687 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8688 | fi |
| 8689 | |
| 8690 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8691 | test -n "$OCAMLOPT" && break |
| 8692 | done |
| 8693 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8694 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8695 | do |
| 8696 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8697 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8698 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8700 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8702 | else |
| 8703 | case $OCAMLDEP in |
| 8704 | [\\/]* | ?:[\\/]*) |
| 8705 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8706 | ;; |
| 8707 | *) |
| 8708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8709 | for as_dir in $PATH |
| 8710 | do |
| 8711 | IFS=$as_save_IFS |
| 8712 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8713 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8714 | 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] | 8715 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8716 | 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] | 8717 | break 2 |
| 8718 | fi |
| 8719 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8720 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8721 | IFS=$as_save_IFS |
| 8722 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8723 | ;; |
| 8724 | esac |
| 8725 | fi |
| 8726 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8727 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8728 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8729 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8730 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8731 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8732 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8733 | fi |
| 8734 | |
| 8735 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8736 | test -n "$OCAMLDEP" && break |
| 8737 | done |
| 8738 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8739 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8740 | do |
| 8741 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8742 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8743 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8744 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8745 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8747 | else |
| 8748 | case $OCAMLDOC in |
| 8749 | [\\/]* | ?:[\\/]*) |
| 8750 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8751 | ;; |
| 8752 | *) |
| 8753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8754 | for as_dir in $PATH |
| 8755 | do |
| 8756 | IFS=$as_save_IFS |
| 8757 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8758 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8759 | 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] | 8760 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8761 | 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] | 8762 | break 2 |
| 8763 | fi |
| 8764 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8765 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8766 | IFS=$as_save_IFS |
| 8767 | |
| 8768 | ;; |
| 8769 | esac |
| 8770 | fi |
| 8771 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8772 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8773 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8774 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8775 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8776 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8777 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8778 | fi |
| 8779 | |
| 8780 | |
| 8781 | test -n "$OCAMLDOC" && break |
| 8782 | done |
| 8783 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8784 | for ac_prog in gas as |
| 8785 | do |
| 8786 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8787 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8788 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8789 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8790 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8792 | else |
| 8793 | case $GAS in |
| 8794 | [\\/]* | ?:[\\/]*) |
| 8795 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8796 | ;; |
| 8797 | *) |
| 8798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8799 | for as_dir in $PATH |
| 8800 | do |
| 8801 | IFS=$as_save_IFS |
| 8802 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8803 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8804 | 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] | 8805 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8806 | 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] | 8807 | break 2 |
| 8808 | fi |
| 8809 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8810 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8811 | IFS=$as_save_IFS |
| 8812 | |
| 8813 | ;; |
| 8814 | esac |
| 8815 | fi |
| 8816 | GAS=$ac_cv_path_GAS |
| 8817 | if test -n "$GAS"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8818 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8819 | echo "${ECHO_T}$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8820 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8821 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8822 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8823 | fi |
| 8824 | |
| 8825 | |
| 8826 | test -n "$GAS" && break |
| 8827 | done |
| 8828 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8829 | |
Daniel Dunbar | ee0f32d | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 8830 | { echo "$as_me:$LINENO: checking for linker version" >&5 |
| 8831 | echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } |
| 8832 | if test "${llvm_cv_link_version+set}" = set; then |
| 8833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8834 | else |
| 8835 | |
| 8836 | version_string="$(ld -v 2>&1 | head -1)" |
| 8837 | |
| 8838 | # Check for ld64. |
| 8839 | if (echo "$version_string" | grep -q "ld64"); then |
| 8840 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#") |
| 8841 | else |
| 8842 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") |
| 8843 | fi |
| 8844 | |
| 8845 | fi |
| 8846 | { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 |
| 8847 | echo "${ECHO_T}$llvm_cv_link_version" >&6; } |
| 8848 | |
| 8849 | cat >>confdefs.h <<_ACEOF |
| 8850 | #define HOST_LINK_VERSION "$llvm_cv_link_version" |
| 8851 | _ACEOF |
| 8852 | |
| 8853 | |
| 8854 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8855 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8856 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8857 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8859 | else |
| 8860 | ac_ext=c |
| 8861 | ac_cpp='$CPP $CPPFLAGS' |
| 8862 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8863 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8864 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8865 | |
| 8866 | oldcflags="$CFLAGS" |
| 8867 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8868 | cat >conftest.$ac_ext <<_ACEOF |
| 8869 | /* confdefs.h. */ |
| 8870 | _ACEOF |
| 8871 | cat confdefs.h >>conftest.$ac_ext |
| 8872 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8873 | /* end confdefs.h. */ |
| 8874 | |
| 8875 | int |
| 8876 | main () |
| 8877 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8878 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8879 | ; |
| 8880 | return 0; |
| 8881 | } |
| 8882 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8883 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8884 | if { (ac_try="$ac_link" |
| 8885 | case "(($ac_try" in |
| 8886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8887 | *) ac_try_echo=$ac_try;; |
| 8888 | esac |
| 8889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8890 | (eval "$ac_link") 2>conftest.er1 |
| 8891 | ac_status=$? |
| 8892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8893 | rm -f conftest.er1 |
| 8894 | cat conftest.err >&5 |
| 8895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8896 | (exit $ac_status); } && |
| 8897 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8898 | { (case "(($ac_try" in |
| 8899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8900 | *) ac_try_echo=$ac_try;; |
| 8901 | esac |
| 8902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8903 | (eval "$ac_try") 2>&5 |
| 8904 | ac_status=$? |
| 8905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8906 | (exit $ac_status); }; } && |
| 8907 | { ac_try='test -s conftest$ac_exeext' |
| 8908 | { (case "(($ac_try" in |
| 8909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8910 | *) ac_try_echo=$ac_try;; |
| 8911 | esac |
| 8912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8913 | (eval "$ac_try") 2>&5 |
| 8914 | ac_status=$? |
| 8915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8916 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8917 | llvm_cv_link_use_r=yes |
| 8918 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8919 | echo "$as_me: failed program was:" >&5 |
| 8920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8921 | |
| 8922 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8923 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8924 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8925 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8926 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8927 | CFLAGS="$oldcflags" |
| 8928 | ac_ext=c |
| 8929 | ac_cpp='$CPP $CPPFLAGS' |
| 8930 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8931 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8932 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8933 | |
| 8934 | |
| 8935 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8936 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8937 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8938 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8939 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8940 | cat >>confdefs.h <<\_ACEOF |
| 8941 | #define HAVE_LINK_R 1 |
| 8942 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8943 | |
| 8944 | fi |
| 8945 | |
| 8946 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8947 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8948 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8949 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8951 | else |
| 8952 | ac_ext=c |
| 8953 | ac_cpp='$CPP $CPPFLAGS' |
| 8954 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8955 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8956 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8957 | |
| 8958 | oldcflags="$CFLAGS" |
| 8959 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8960 | cat >conftest.$ac_ext <<_ACEOF |
| 8961 | /* confdefs.h. */ |
| 8962 | _ACEOF |
| 8963 | cat confdefs.h >>conftest.$ac_ext |
| 8964 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8965 | /* end confdefs.h. */ |
| 8966 | |
| 8967 | int |
| 8968 | main () |
| 8969 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8970 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8971 | ; |
| 8972 | return 0; |
| 8973 | } |
| 8974 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8975 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8976 | if { (ac_try="$ac_link" |
| 8977 | case "(($ac_try" in |
| 8978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8979 | *) ac_try_echo=$ac_try;; |
| 8980 | esac |
| 8981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8982 | (eval "$ac_link") 2>conftest.er1 |
| 8983 | ac_status=$? |
| 8984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8985 | rm -f conftest.er1 |
| 8986 | cat conftest.err >&5 |
| 8987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8988 | (exit $ac_status); } && |
| 8989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 8996 | ac_status=$? |
| 8997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8998 | (exit $ac_status); }; } && |
| 8999 | { ac_try='test -s conftest$ac_exeext' |
| 9000 | { (case "(($ac_try" in |
| 9001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9002 | *) ac_try_echo=$ac_try;; |
| 9003 | esac |
| 9004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9005 | (eval "$ac_try") 2>&5 |
| 9006 | ac_status=$? |
| 9007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9008 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9009 | llvm_cv_link_use_export_dynamic=yes |
| 9010 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9011 | echo "$as_me: failed program was:" >&5 |
| 9012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9013 | |
| 9014 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9015 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9016 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9017 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9018 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9019 | CFLAGS="$oldcflags" |
| 9020 | ac_ext=c |
| 9021 | ac_cpp='$CPP $CPPFLAGS' |
| 9022 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9023 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9024 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9025 | |
| 9026 | |
| 9027 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9028 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 9029 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9030 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 9031 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9032 | cat >>confdefs.h <<\_ACEOF |
| 9033 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 9034 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9035 | |
| 9036 | fi |
| 9037 | |
| 9038 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9039 | { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 |
| 9040 | echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } |
| 9041 | if test "${llvm_cv_link_use_version_script+set}" = set; then |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9043 | else |
| 9044 | ac_ext=c |
| 9045 | ac_cpp='$CPP $CPPFLAGS' |
| 9046 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9047 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9048 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9049 | |
| 9050 | oldcflags="$CFLAGS" |
| 9051 | |
| 9052 | # The following code is from the autoconf manual, |
| 9053 | # "11.13: Limitations of Usual Tools". |
| 9054 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). |
| 9055 | # Use mktemp if possible; otherwise fall back on mkdir, |
| 9056 | # with $RANDOM to make collisions less likely. |
| 9057 | : ${TMPDIR=/tmp} |
| 9058 | { |
| 9059 | tmp=` |
| 9060 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null |
| 9061 | ` && |
| 9062 | test -n "$tmp" && test -d "$tmp" |
| 9063 | } || { |
| 9064 | tmp=$TMPDIR/foo$$-$RANDOM |
| 9065 | (umask 077 && mkdir "$tmp") |
| 9066 | } || exit $? |
| 9067 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9068 | echo "{" > "$tmp/export.map" |
| 9069 | echo " global: main;" >> "$tmp/export.map" |
| 9070 | echo " local: *;" >> "$tmp/export.map" |
| 9071 | echo "};" >> "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9072 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9073 | CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9074 | cat >conftest.$ac_ext <<_ACEOF |
| 9075 | /* confdefs.h. */ |
| 9076 | _ACEOF |
| 9077 | cat confdefs.h >>conftest.$ac_ext |
| 9078 | cat >>conftest.$ac_ext <<_ACEOF |
| 9079 | /* end confdefs.h. */ |
| 9080 | |
| 9081 | int |
| 9082 | main () |
| 9083 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 9084 | |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9085 | ; |
| 9086 | return 0; |
| 9087 | } |
| 9088 | _ACEOF |
| 9089 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9090 | if { (ac_try="$ac_link" |
| 9091 | case "(($ac_try" in |
| 9092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9093 | *) ac_try_echo=$ac_try;; |
| 9094 | esac |
| 9095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9096 | (eval "$ac_link") 2>conftest.er1 |
| 9097 | ac_status=$? |
| 9098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9099 | rm -f conftest.er1 |
| 9100 | cat conftest.err >&5 |
| 9101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9102 | (exit $ac_status); } && |
| 9103 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9104 | { (case "(($ac_try" in |
| 9105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9106 | *) ac_try_echo=$ac_try;; |
| 9107 | esac |
| 9108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9109 | (eval "$ac_try") 2>&5 |
| 9110 | ac_status=$? |
| 9111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9112 | (exit $ac_status); }; } && |
| 9113 | { ac_try='test -s conftest$ac_exeext' |
| 9114 | { (case "(($ac_try" in |
| 9115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9116 | *) ac_try_echo=$ac_try;; |
| 9117 | esac |
| 9118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9119 | (eval "$ac_try") 2>&5 |
| 9120 | ac_status=$? |
| 9121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9122 | (exit $ac_status); }; }; then |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9123 | llvm_cv_link_use_version_script=yes |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9124 | else |
| 9125 | echo "$as_me: failed program was:" >&5 |
| 9126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9127 | |
Dan Gohman | 943005e | 2010-06-01 16:22:27 +0000 | [diff] [blame] | 9128 | llvm_cv_link_use_version_script=no |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9129 | fi |
| 9130 | |
| 9131 | rm -f core conftest.err conftest.$ac_objext \ |
| 9132 | conftest$ac_exeext conftest.$ac_ext |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9133 | rm "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9134 | rmdir "$tmp" |
| 9135 | CFLAGS="$oldcflags" |
| 9136 | ac_ext=c |
| 9137 | ac_cpp='$CPP $CPPFLAGS' |
| 9138 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9139 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9140 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9141 | |
| 9142 | |
| 9143 | fi |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9144 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 |
| 9145 | echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } |
| 9146 | if test "$llvm_cv_link_use_version_script" = yes ; then |
| 9147 | HAVE_LINK_VERSION_SCRIPT=1 |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9148 | |
| 9149 | fi |
| 9150 | |
| 9151 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9152 | |
| 9153 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9154 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 9155 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 9156 | if test "${ac_cv_c_const+set}" = set; then |
| 9157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9158 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9159 | cat >conftest.$ac_ext <<_ACEOF |
| 9160 | /* confdefs.h. */ |
| 9161 | _ACEOF |
| 9162 | cat confdefs.h >>conftest.$ac_ext |
| 9163 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9164 | /* end confdefs.h. */ |
| 9165 | |
| 9166 | int |
| 9167 | main () |
| 9168 | { |
| 9169 | /* FIXME: Include the comments suggested by Paul. */ |
| 9170 | #ifndef __cplusplus |
| 9171 | /* Ultrix mips cc rejects this. */ |
| 9172 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9173 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9174 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9175 | char const *const *ccp; |
| 9176 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9177 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 9178 | struct point {int x, y;}; |
| 9179 | static struct point const zero = {0,0}; |
| 9180 | /* AIX XL C 1.02.0.0 rejects this. |
| 9181 | It does not let you subtract one const X* pointer from another in |
| 9182 | an arm of an if-expression whose if-part is not a constant |
| 9183 | expression */ |
| 9184 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9185 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9186 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9187 | ++ccp; |
| 9188 | p = (char**) ccp; |
| 9189 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9190 | { /* SCO 3.2v4 cc rejects this. */ |
| 9191 | char *t; |
| 9192 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 9193 | |
| 9194 | *t++ = 0; |
| 9195 | if (s) return 0; |
| 9196 | } |
| 9197 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 9198 | int x[] = {25, 17}; |
| 9199 | const int *foo = &x[0]; |
| 9200 | ++foo; |
| 9201 | } |
| 9202 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 9203 | typedef const int *iptr; |
| 9204 | iptr p = 0; |
| 9205 | ++p; |
| 9206 | } |
| 9207 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 9208 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 9209 | struct s { int j; const int *ap[3]; }; |
| 9210 | struct s *b; b->j = 5; |
| 9211 | } |
| 9212 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 9213 | const int foo = 10; |
| 9214 | if (!foo) return 0; |
| 9215 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9216 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9217 | #endif |
| 9218 | |
| 9219 | ; |
| 9220 | return 0; |
| 9221 | } |
| 9222 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9223 | rm -f conftest.$ac_objext |
| 9224 | if { (ac_try="$ac_compile" |
| 9225 | case "(($ac_try" in |
| 9226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9227 | *) ac_try_echo=$ac_try;; |
| 9228 | esac |
| 9229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9230 | (eval "$ac_compile") 2>conftest.er1 |
| 9231 | ac_status=$? |
| 9232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9233 | rm -f conftest.er1 |
| 9234 | cat conftest.err >&5 |
| 9235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9236 | (exit $ac_status); } && |
| 9237 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 9244 | ac_status=$? |
| 9245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9246 | (exit $ac_status); }; } && |
| 9247 | { ac_try='test -s conftest.$ac_objext' |
| 9248 | { (case "(($ac_try" in |
| 9249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9250 | *) ac_try_echo=$ac_try;; |
| 9251 | esac |
| 9252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9253 | (eval "$ac_try") 2>&5 |
| 9254 | ac_status=$? |
| 9255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9256 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9257 | ac_cv_c_const=yes |
| 9258 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9259 | echo "$as_me: failed program was:" >&5 |
| 9260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9261 | |
| 9262 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9263 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9264 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9266 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9267 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 9268 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9269 | if test $ac_cv_c_const = no; then |
| 9270 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9271 | cat >>confdefs.h <<\_ACEOF |
| 9272 | #define const |
| 9273 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9274 | |
| 9275 | fi |
| 9276 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9277 | |
| 9278 | |
| 9279 | |
| 9280 | |
| 9281 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9282 | ac_header_dirent=no |
| 9283 | 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] | 9284 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 9285 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 9286 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 9287 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9289 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9290 | cat >conftest.$ac_ext <<_ACEOF |
| 9291 | /* confdefs.h. */ |
| 9292 | _ACEOF |
| 9293 | cat confdefs.h >>conftest.$ac_ext |
| 9294 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9295 | /* end confdefs.h. */ |
| 9296 | #include <sys/types.h> |
| 9297 | #include <$ac_hdr> |
| 9298 | |
| 9299 | int |
| 9300 | main () |
| 9301 | { |
| 9302 | if ((DIR *) 0) |
| 9303 | return 0; |
| 9304 | ; |
| 9305 | return 0; |
| 9306 | } |
| 9307 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9308 | rm -f conftest.$ac_objext |
| 9309 | if { (ac_try="$ac_compile" |
| 9310 | case "(($ac_try" in |
| 9311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9312 | *) ac_try_echo=$ac_try;; |
| 9313 | esac |
| 9314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9315 | (eval "$ac_compile") 2>conftest.er1 |
| 9316 | ac_status=$? |
| 9317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9318 | rm -f conftest.er1 |
| 9319 | cat conftest.err >&5 |
| 9320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9321 | (exit $ac_status); } && |
| 9322 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9323 | { (case "(($ac_try" in |
| 9324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9325 | *) ac_try_echo=$ac_try;; |
| 9326 | esac |
| 9327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9328 | (eval "$ac_try") 2>&5 |
| 9329 | ac_status=$? |
| 9330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9331 | (exit $ac_status); }; } && |
| 9332 | { ac_try='test -s conftest.$ac_objext' |
| 9333 | { (case "(($ac_try" in |
| 9334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9335 | *) ac_try_echo=$ac_try;; |
| 9336 | esac |
| 9337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9338 | (eval "$ac_try") 2>&5 |
| 9339 | ac_status=$? |
| 9340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9341 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9342 | eval "$as_ac_Header=yes" |
| 9343 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9344 | echo "$as_me: failed program was:" >&5 |
| 9345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9346 | |
| 9347 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9348 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9349 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9351 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9352 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9353 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9354 | echo "${ECHO_T}$ac_res" >&6; } |
| 9355 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9356 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9357 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9358 | _ACEOF |
| 9359 | |
| 9360 | ac_header_dirent=$ac_hdr; break |
| 9361 | fi |
| 9362 | |
| 9363 | done |
| 9364 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 9365 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9366 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9367 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9368 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9370 | else |
| 9371 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9372 | cat >conftest.$ac_ext <<_ACEOF |
| 9373 | /* confdefs.h. */ |
| 9374 | _ACEOF |
| 9375 | cat confdefs.h >>conftest.$ac_ext |
| 9376 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9377 | /* end confdefs.h. */ |
| 9378 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9379 | /* Override any GCC internal prototype to avoid an error. |
| 9380 | Use char because int might match the return type of a GCC |
| 9381 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9382 | #ifdef __cplusplus |
| 9383 | extern "C" |
| 9384 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9385 | char opendir (); |
| 9386 | int |
| 9387 | main () |
| 9388 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9389 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9390 | ; |
| 9391 | return 0; |
| 9392 | } |
| 9393 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9394 | for ac_lib in '' dir; do |
| 9395 | if test -z "$ac_lib"; then |
| 9396 | ac_res="none required" |
| 9397 | else |
| 9398 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9399 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9400 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9401 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9402 | if { (ac_try="$ac_link" |
| 9403 | case "(($ac_try" in |
| 9404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9405 | *) ac_try_echo=$ac_try;; |
| 9406 | esac |
| 9407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9408 | (eval "$ac_link") 2>conftest.er1 |
| 9409 | ac_status=$? |
| 9410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9411 | rm -f conftest.er1 |
| 9412 | cat conftest.err >&5 |
| 9413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9414 | (exit $ac_status); } && |
| 9415 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9416 | { (case "(($ac_try" in |
| 9417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9418 | *) ac_try_echo=$ac_try;; |
| 9419 | esac |
| 9420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9421 | (eval "$ac_try") 2>&5 |
| 9422 | ac_status=$? |
| 9423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9424 | (exit $ac_status); }; } && |
| 9425 | { ac_try='test -s conftest$ac_exeext' |
| 9426 | { (case "(($ac_try" in |
| 9427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9428 | *) ac_try_echo=$ac_try;; |
| 9429 | esac |
| 9430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9431 | (eval "$ac_try") 2>&5 |
| 9432 | ac_status=$? |
| 9433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9434 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9435 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9436 | else |
| 9437 | echo "$as_me: failed program was:" >&5 |
| 9438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9439 | |
| 9440 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9441 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9442 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9443 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9444 | conftest$ac_exeext |
| 9445 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9446 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9447 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9448 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9449 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9450 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9451 | else |
| 9452 | ac_cv_search_opendir=no |
| 9453 | fi |
| 9454 | rm conftest.$ac_ext |
| 9455 | LIBS=$ac_func_search_save_LIBS |
| 9456 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9457 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9458 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9459 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9460 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9461 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9462 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9463 | fi |
| 9464 | |
| 9465 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9466 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9467 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9468 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9470 | else |
| 9471 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9472 | cat >conftest.$ac_ext <<_ACEOF |
| 9473 | /* confdefs.h. */ |
| 9474 | _ACEOF |
| 9475 | cat confdefs.h >>conftest.$ac_ext |
| 9476 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9477 | /* end confdefs.h. */ |
| 9478 | |
| 9479 | /* Override any GCC internal prototype to avoid an error. |
| 9480 | Use char because int might match the return type of a GCC |
| 9481 | builtin and then its argument prototype would still apply. */ |
| 9482 | #ifdef __cplusplus |
| 9483 | extern "C" |
| 9484 | #endif |
| 9485 | char opendir (); |
| 9486 | int |
| 9487 | main () |
| 9488 | { |
| 9489 | return opendir (); |
| 9490 | ; |
| 9491 | return 0; |
| 9492 | } |
| 9493 | _ACEOF |
| 9494 | for ac_lib in '' x; do |
| 9495 | if test -z "$ac_lib"; then |
| 9496 | ac_res="none required" |
| 9497 | else |
| 9498 | ac_res=-l$ac_lib |
| 9499 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9500 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9501 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9502 | if { (ac_try="$ac_link" |
| 9503 | case "(($ac_try" in |
| 9504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9505 | *) ac_try_echo=$ac_try;; |
| 9506 | esac |
| 9507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9508 | (eval "$ac_link") 2>conftest.er1 |
| 9509 | ac_status=$? |
| 9510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9511 | rm -f conftest.er1 |
| 9512 | cat conftest.err >&5 |
| 9513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9514 | (exit $ac_status); } && |
| 9515 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9516 | { (case "(($ac_try" in |
| 9517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9518 | *) ac_try_echo=$ac_try;; |
| 9519 | esac |
| 9520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9521 | (eval "$ac_try") 2>&5 |
| 9522 | ac_status=$? |
| 9523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9524 | (exit $ac_status); }; } && |
| 9525 | { ac_try='test -s conftest$ac_exeext' |
| 9526 | { (case "(($ac_try" in |
| 9527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9528 | *) ac_try_echo=$ac_try;; |
| 9529 | esac |
| 9530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9531 | (eval "$ac_try") 2>&5 |
| 9532 | ac_status=$? |
| 9533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9534 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9535 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9536 | else |
| 9537 | echo "$as_me: failed program was:" >&5 |
| 9538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9539 | |
| 9540 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9541 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9542 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9543 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9544 | conftest$ac_exeext |
| 9545 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9546 | break |
| 9547 | fi |
| 9548 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9549 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9550 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9551 | else |
| 9552 | ac_cv_search_opendir=no |
| 9553 | fi |
| 9554 | rm conftest.$ac_ext |
| 9555 | LIBS=$ac_func_search_save_LIBS |
| 9556 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9557 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9558 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9559 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9560 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9561 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9562 | |
| 9563 | fi |
| 9564 | |
| 9565 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9566 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9567 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9568 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9569 | do |
| 9570 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9571 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9572 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9573 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9574 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9576 | fi |
| 9577 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9578 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9579 | echo "${ECHO_T}$ac_res" >&6; } |
| 9580 | else |
| 9581 | # Is the header compilable? |
| 9582 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9583 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 9584 | cat >conftest.$ac_ext <<_ACEOF |
| 9585 | /* confdefs.h. */ |
| 9586 | _ACEOF |
| 9587 | cat confdefs.h >>conftest.$ac_ext |
| 9588 | cat >>conftest.$ac_ext <<_ACEOF |
| 9589 | /* end confdefs.h. */ |
| 9590 | $ac_includes_default |
| 9591 | #include <$ac_header> |
| 9592 | _ACEOF |
| 9593 | rm -f conftest.$ac_objext |
| 9594 | if { (ac_try="$ac_compile" |
| 9595 | case "(($ac_try" in |
| 9596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9597 | *) ac_try_echo=$ac_try;; |
| 9598 | esac |
| 9599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9600 | (eval "$ac_compile") 2>conftest.er1 |
| 9601 | ac_status=$? |
| 9602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9603 | rm -f conftest.er1 |
| 9604 | cat conftest.err >&5 |
| 9605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9606 | (exit $ac_status); } && |
| 9607 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9608 | { (case "(($ac_try" in |
| 9609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9610 | *) ac_try_echo=$ac_try;; |
| 9611 | esac |
| 9612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9613 | (eval "$ac_try") 2>&5 |
| 9614 | ac_status=$? |
| 9615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9616 | (exit $ac_status); }; } && |
| 9617 | { ac_try='test -s conftest.$ac_objext' |
| 9618 | { (case "(($ac_try" in |
| 9619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9620 | *) ac_try_echo=$ac_try;; |
| 9621 | esac |
| 9622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9623 | (eval "$ac_try") 2>&5 |
| 9624 | ac_status=$? |
| 9625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9626 | (exit $ac_status); }; }; then |
| 9627 | ac_header_compiler=yes |
| 9628 | else |
| 9629 | echo "$as_me: failed program was:" >&5 |
| 9630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9631 | |
| 9632 | ac_header_compiler=no |
| 9633 | fi |
| 9634 | |
| 9635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9636 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9637 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9638 | |
| 9639 | # Is the header present? |
| 9640 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9641 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 9642 | cat >conftest.$ac_ext <<_ACEOF |
| 9643 | /* confdefs.h. */ |
| 9644 | _ACEOF |
| 9645 | cat confdefs.h >>conftest.$ac_ext |
| 9646 | cat >>conftest.$ac_ext <<_ACEOF |
| 9647 | /* end confdefs.h. */ |
| 9648 | #include <$ac_header> |
| 9649 | _ACEOF |
| 9650 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9651 | case "(($ac_try" in |
| 9652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9653 | *) ac_try_echo=$ac_try;; |
| 9654 | esac |
| 9655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9656 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9657 | ac_status=$? |
| 9658 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9659 | rm -f conftest.er1 |
| 9660 | cat conftest.err >&5 |
| 9661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9662 | (exit $ac_status); } >/dev/null; then |
| 9663 | if test -s conftest.err; then |
| 9664 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9665 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9666 | else |
| 9667 | ac_cpp_err= |
| 9668 | fi |
| 9669 | else |
| 9670 | ac_cpp_err=yes |
| 9671 | fi |
| 9672 | if test -z "$ac_cpp_err"; then |
| 9673 | ac_header_preproc=yes |
| 9674 | else |
| 9675 | echo "$as_me: failed program was:" >&5 |
| 9676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9677 | |
| 9678 | ac_header_preproc=no |
| 9679 | fi |
| 9680 | |
| 9681 | rm -f conftest.err conftest.$ac_ext |
| 9682 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9683 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9684 | |
| 9685 | # So? What about this header? |
| 9686 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9687 | yes:no: ) |
| 9688 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9689 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9690 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9691 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9692 | ac_header_preproc=yes |
| 9693 | ;; |
| 9694 | no:yes:* ) |
| 9695 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9696 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9697 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9698 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9699 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9700 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9701 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9702 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9703 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9704 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9705 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9706 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9707 | ( cat <<\_ASBOX |
| 9708 | ## ----------------------------------- ## |
| 9709 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9710 | ## ----------------------------------- ## |
| 9711 | _ASBOX |
| 9712 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 9713 | ;; |
| 9714 | esac |
| 9715 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9716 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9717 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9719 | else |
| 9720 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9721 | fi |
| 9722 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9723 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9724 | echo "${ECHO_T}$ac_res" >&6; } |
| 9725 | |
| 9726 | fi |
| 9727 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9728 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9729 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9730 | _ACEOF |
| 9731 | |
| 9732 | fi |
| 9733 | |
| 9734 | done |
| 9735 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9736 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9737 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9738 | enableval=$enable_ltdl_install; |
| 9739 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9740 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9741 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9742 | |
| 9743 | |
| 9744 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9745 | INSTALL_LTDL_TRUE= |
| 9746 | INSTALL_LTDL_FALSE='#' |
| 9747 | else |
| 9748 | INSTALL_LTDL_TRUE='#' |
| 9749 | INSTALL_LTDL_FALSE= |
| 9750 | fi |
| 9751 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9752 | |
| 9753 | |
| 9754 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9755 | CONVENIENCE_LTDL_TRUE= |
| 9756 | CONVENIENCE_LTDL_FALSE='#' |
| 9757 | else |
| 9758 | CONVENIENCE_LTDL_TRUE='#' |
| 9759 | CONVENIENCE_LTDL_FALSE= |
| 9760 | fi |
| 9761 | |
| 9762 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9763 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9764 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9765 | library_names_spec= |
| 9766 | libname_spec='lib$name' |
| 9767 | soname_spec= |
| 9768 | shrext_cmds=".so" |
| 9769 | postinstall_cmds= |
| 9770 | postuninstall_cmds= |
| 9771 | finish_cmds= |
| 9772 | finish_eval= |
| 9773 | shlibpath_var= |
| 9774 | shlibpath_overrides_runpath=unknown |
| 9775 | version_type=none |
| 9776 | dynamic_linker="$host_os ld.so" |
| 9777 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9778 | if test "$GCC" = yes; then |
| 9779 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9780 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9781 | # if the path contains ";" then we assume it to be the separator |
| 9782 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9783 | # assumed that no part of a normal pathname contains ";" but that should |
| 9784 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9785 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9786 | else |
| 9787 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9788 | fi |
| 9789 | else |
| 9790 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9791 | fi |
| 9792 | need_lib_prefix=unknown |
| 9793 | hardcode_into_libs=no |
| 9794 | |
| 9795 | # when you set need_version to no, make sure it does not cause -set_version |
| 9796 | # flags to be left without arguments |
| 9797 | need_version=unknown |
| 9798 | |
| 9799 | case $host_os in |
| 9800 | aix3*) |
| 9801 | version_type=linux |
| 9802 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9803 | shlibpath_var=LIBPATH |
| 9804 | |
| 9805 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9806 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9807 | ;; |
| 9808 | |
| 9809 | aix4* | aix5*) |
| 9810 | version_type=linux |
| 9811 | need_lib_prefix=no |
| 9812 | need_version=no |
| 9813 | hardcode_into_libs=yes |
| 9814 | if test "$host_cpu" = ia64; then |
| 9815 | # AIX 5 supports IA64 |
| 9816 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9817 | shlibpath_var=LD_LIBRARY_PATH |
| 9818 | else |
| 9819 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9820 | # for dependence libraries. The import file would start with |
| 9821 | # the line `#! .'. This would cause the generated library to |
| 9822 | # depend on `.', always an invalid library. This was fixed in |
| 9823 | # development snapshots of GCC prior to 3.0. |
| 9824 | case $host_os in |
| 9825 | aix4 | aix4.[01] | aix4.[01].*) |
| 9826 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9827 | echo ' yes ' |
| 9828 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9829 | : |
| 9830 | else |
| 9831 | can_build_shared=no |
| 9832 | fi |
| 9833 | ;; |
| 9834 | esac |
| 9835 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9836 | # soname into executable. Probably we can add versioning support to |
| 9837 | # collect2, so additional links can be useful in future. |
| 9838 | if test "$aix_use_runtimelinking" = yes; then |
| 9839 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9840 | # instead of lib<name>.a to let people know that these are not |
| 9841 | # typical AIX shared libraries. |
| 9842 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9843 | else |
| 9844 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9845 | # and later when we are not doing run time linking. |
| 9846 | library_names_spec='${libname}${release}.a $libname.a' |
| 9847 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9848 | fi |
| 9849 | shlibpath_var=LIBPATH |
| 9850 | fi |
| 9851 | ;; |
| 9852 | |
| 9853 | amigaos*) |
| 9854 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9855 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9856 | 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' |
| 9857 | ;; |
| 9858 | |
| 9859 | beos*) |
| 9860 | library_names_spec='${libname}${shared_ext}' |
| 9861 | dynamic_linker="$host_os ld.so" |
| 9862 | shlibpath_var=LIBRARY_PATH |
| 9863 | ;; |
| 9864 | |
| 9865 | bsdi[45]*) |
| 9866 | version_type=linux |
| 9867 | need_version=no |
| 9868 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9869 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9870 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9871 | shlibpath_var=LD_LIBRARY_PATH |
| 9872 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9873 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9874 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9875 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9876 | # libtool to hard-code these into programs |
| 9877 | ;; |
| 9878 | |
| 9879 | cygwin* | mingw* | pw32*) |
| 9880 | version_type=windows |
| 9881 | shrext_cmds=".dll" |
| 9882 | need_version=no |
| 9883 | need_lib_prefix=no |
| 9884 | |
| 9885 | case $GCC,$host_os in |
| 9886 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9887 | library_names_spec='$libname.dll.a' |
| 9888 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9889 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9890 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9891 | dldir=$destdir/`dirname \$dlpath`~ |
| 9892 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9893 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9894 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9895 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9896 | dlpath=$dir/\$dldll~ |
| 9897 | $rm \$dlpath' |
| 9898 | shlibpath_overrides_runpath=yes |
| 9899 | |
| 9900 | case $host_os in |
| 9901 | cygwin*) |
| 9902 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9903 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9904 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9905 | ;; |
| 9906 | mingw*) |
| 9907 | # MinGW DLLs use traditional 'lib' prefix |
| 9908 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9909 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9910 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9911 | # It is most probably a Windows format PATH printed by |
| 9912 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9913 | # path with ; separators, and with drive letters. We can handle the |
| 9914 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9915 | # especially as we might pass files found there to a mingw objdump, |
| 9916 | # which wouldn't understand a cygwinified path. Ahh. |
| 9917 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9918 | else |
| 9919 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9920 | fi |
| 9921 | ;; |
| 9922 | pw32*) |
| 9923 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9924 | 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] | 9925 | ;; |
| 9926 | esac |
| 9927 | ;; |
| 9928 | |
| 9929 | *) |
| 9930 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9931 | ;; |
| 9932 | esac |
| 9933 | dynamic_linker='Win32 ld.exe' |
| 9934 | # FIXME: first we should search . and the directory the executable is in |
| 9935 | shlibpath_var=PATH |
| 9936 | ;; |
| 9937 | |
| 9938 | darwin* | rhapsody*) |
| 9939 | dynamic_linker="$host_os dyld" |
| 9940 | version_type=darwin |
| 9941 | need_lib_prefix=no |
| 9942 | need_version=no |
| 9943 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9944 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9945 | shlibpath_overrides_runpath=yes |
| 9946 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9947 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9948 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9949 | if test "$GCC" = yes; then |
| 9950 | 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"` |
| 9951 | else |
| 9952 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9953 | fi |
| 9954 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9955 | ;; |
| 9956 | |
| 9957 | dgux*) |
| 9958 | version_type=linux |
| 9959 | need_lib_prefix=no |
| 9960 | need_version=no |
| 9961 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9962 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9963 | shlibpath_var=LD_LIBRARY_PATH |
| 9964 | ;; |
| 9965 | |
| 9966 | freebsd1*) |
| 9967 | dynamic_linker=no |
| 9968 | ;; |
| 9969 | |
| 9970 | kfreebsd*-gnu) |
| 9971 | version_type=linux |
| 9972 | need_lib_prefix=no |
| 9973 | need_version=no |
| 9974 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9975 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9976 | shlibpath_var=LD_LIBRARY_PATH |
| 9977 | shlibpath_overrides_runpath=no |
| 9978 | hardcode_into_libs=yes |
| 9979 | dynamic_linker='GNU ld.so' |
| 9980 | ;; |
| 9981 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9982 | freebsd* | dragonfly*) |
| 9983 | # DragonFly does not have aout. When/if they implement a new |
| 9984 | # versioning mechanism, adjust this. |
| 9985 | if test -x /usr/bin/objformat; then |
| 9986 | objformat=`/usr/bin/objformat` |
| 9987 | else |
| 9988 | case $host_os in |
| 9989 | freebsd[123]*) objformat=aout ;; |
| 9990 | *) objformat=elf ;; |
| 9991 | esac |
| 9992 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9993 | version_type=freebsd-$objformat |
| 9994 | case $version_type in |
| 9995 | freebsd-elf*) |
| 9996 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9997 | need_version=no |
| 9998 | need_lib_prefix=no |
| 9999 | ;; |
| 10000 | freebsd-*) |
| 10001 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10002 | need_version=yes |
| 10003 | ;; |
| 10004 | esac |
| 10005 | shlibpath_var=LD_LIBRARY_PATH |
| 10006 | case $host_os in |
| 10007 | freebsd2*) |
| 10008 | shlibpath_overrides_runpath=yes |
| 10009 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10010 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10011 | shlibpath_overrides_runpath=yes |
| 10012 | hardcode_into_libs=yes |
| 10013 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10014 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10015 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10016 | shlibpath_overrides_runpath=no |
| 10017 | hardcode_into_libs=yes |
| 10018 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10019 | freebsd*) # from 4.6 on |
| 10020 | shlibpath_overrides_runpath=yes |
| 10021 | hardcode_into_libs=yes |
| 10022 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10023 | esac |
| 10024 | ;; |
| 10025 | |
| 10026 | gnu*) |
| 10027 | version_type=linux |
| 10028 | need_lib_prefix=no |
| 10029 | need_version=no |
| 10030 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10031 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10032 | shlibpath_var=LD_LIBRARY_PATH |
| 10033 | hardcode_into_libs=yes |
| 10034 | ;; |
| 10035 | |
| 10036 | hpux9* | hpux10* | hpux11*) |
| 10037 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10038 | # link against other versions. |
| 10039 | version_type=sunos |
| 10040 | need_lib_prefix=no |
| 10041 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10042 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10043 | ia64*) |
| 10044 | shrext_cmds='.so' |
| 10045 | hardcode_into_libs=yes |
| 10046 | dynamic_linker="$host_os dld.so" |
| 10047 | shlibpath_var=LD_LIBRARY_PATH |
| 10048 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10049 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10050 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10051 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10052 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10053 | else |
| 10054 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10055 | fi |
| 10056 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10057 | ;; |
| 10058 | hppa*64*) |
| 10059 | shrext_cmds='.sl' |
| 10060 | hardcode_into_libs=yes |
| 10061 | dynamic_linker="$host_os dld.sl" |
| 10062 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10063 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10064 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10065 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10066 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10067 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10068 | ;; |
| 10069 | *) |
| 10070 | shrext_cmds='.sl' |
| 10071 | dynamic_linker="$host_os dld.sl" |
| 10072 | shlibpath_var=SHLIB_PATH |
| 10073 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10074 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10075 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10076 | ;; |
| 10077 | esac |
| 10078 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 10079 | postinstall_cmds='chmod 555 $lib' |
| 10080 | ;; |
| 10081 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10082 | interix3*) |
| 10083 | version_type=linux |
| 10084 | need_lib_prefix=no |
| 10085 | need_version=no |
| 10086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10087 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10088 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10089 | shlibpath_var=LD_LIBRARY_PATH |
| 10090 | shlibpath_overrides_runpath=no |
| 10091 | hardcode_into_libs=yes |
| 10092 | ;; |
| 10093 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10094 | irix5* | irix6* | nonstopux*) |
| 10095 | case $host_os in |
| 10096 | nonstopux*) version_type=nonstopux ;; |
| 10097 | *) |
| 10098 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10099 | version_type=linux |
| 10100 | else |
| 10101 | version_type=irix |
| 10102 | fi ;; |
| 10103 | esac |
| 10104 | need_lib_prefix=no |
| 10105 | need_version=no |
| 10106 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10108 | case $host_os in |
| 10109 | irix5* | nonstopux*) |
| 10110 | libsuff= shlibsuff= |
| 10111 | ;; |
| 10112 | *) |
| 10113 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10114 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10115 | libsuff= shlibsuff= libmagic=32-bit;; |
| 10116 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10117 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10118 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10119 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10120 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 10121 | esac |
| 10122 | ;; |
| 10123 | esac |
| 10124 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10125 | shlibpath_overrides_runpath=no |
| 10126 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10127 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10128 | hardcode_into_libs=yes |
| 10129 | ;; |
| 10130 | |
| 10131 | # No shared lib support for Linux oldld, aout, or coff. |
| 10132 | linux*oldld* | linux*aout* | linux*coff*) |
| 10133 | dynamic_linker=no |
| 10134 | ;; |
| 10135 | |
| 10136 | # This must be Linux ELF. |
| 10137 | linux*) |
| 10138 | version_type=linux |
| 10139 | need_lib_prefix=no |
| 10140 | need_version=no |
| 10141 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10142 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10143 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10144 | shlibpath_var=LD_LIBRARY_PATH |
| 10145 | shlibpath_overrides_runpath=no |
| 10146 | # This implies no fast_install, which is unacceptable. |
| 10147 | # Some rework will be needed to allow for fast_install |
| 10148 | # before this can be enabled. |
| 10149 | hardcode_into_libs=yes |
| 10150 | |
| 10151 | # Append ld.so.conf contents to the search path |
| 10152 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10153 | 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] | 10154 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10155 | fi |
| 10156 | |
| 10157 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10158 | # powerpc, because MkLinux only supported shared libraries with the |
| 10159 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10160 | # most powerpc-linux boxes support dynamic linking these days and |
| 10161 | # people can always --disable-shared, the test was removed, and we |
| 10162 | # assume the GNU/Linux dynamic linker is in use. |
| 10163 | dynamic_linker='GNU/Linux ld.so' |
| 10164 | ;; |
| 10165 | |
| 10166 | knetbsd*-gnu) |
| 10167 | version_type=linux |
| 10168 | need_lib_prefix=no |
| 10169 | need_version=no |
| 10170 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10171 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10172 | shlibpath_var=LD_LIBRARY_PATH |
| 10173 | shlibpath_overrides_runpath=no |
| 10174 | hardcode_into_libs=yes |
| 10175 | dynamic_linker='GNU ld.so' |
| 10176 | ;; |
| 10177 | |
| 10178 | netbsd*) |
| 10179 | version_type=sunos |
| 10180 | need_lib_prefix=no |
| 10181 | need_version=no |
| 10182 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10183 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10184 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10185 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10186 | else |
| 10187 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10188 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10189 | dynamic_linker='NetBSD ld.elf_so' |
| 10190 | fi |
| 10191 | shlibpath_var=LD_LIBRARY_PATH |
| 10192 | shlibpath_overrides_runpath=yes |
| 10193 | hardcode_into_libs=yes |
| 10194 | ;; |
| 10195 | |
| 10196 | newsos6) |
| 10197 | version_type=linux |
| 10198 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10199 | shlibpath_var=LD_LIBRARY_PATH |
| 10200 | shlibpath_overrides_runpath=yes |
| 10201 | ;; |
| 10202 | |
| 10203 | nto-qnx*) |
| 10204 | version_type=linux |
| 10205 | need_lib_prefix=no |
| 10206 | need_version=no |
| 10207 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10208 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10209 | shlibpath_var=LD_LIBRARY_PATH |
| 10210 | shlibpath_overrides_runpath=yes |
| 10211 | ;; |
| 10212 | |
| 10213 | openbsd*) |
| 10214 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10215 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10216 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10217 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10218 | case $host_os in |
| 10219 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10220 | *) need_version=no ;; |
| 10221 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10222 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10223 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10224 | shlibpath_var=LD_LIBRARY_PATH |
| 10225 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10226 | case $host_os in |
| 10227 | openbsd2.[89] | openbsd2.[89].*) |
| 10228 | shlibpath_overrides_runpath=no |
| 10229 | ;; |
| 10230 | *) |
| 10231 | shlibpath_overrides_runpath=yes |
| 10232 | ;; |
| 10233 | esac |
| 10234 | else |
| 10235 | shlibpath_overrides_runpath=yes |
| 10236 | fi |
| 10237 | ;; |
| 10238 | |
| 10239 | os2*) |
| 10240 | libname_spec='$name' |
| 10241 | shrext_cmds=".dll" |
| 10242 | need_lib_prefix=no |
| 10243 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10244 | dynamic_linker='OS/2 ld.exe' |
| 10245 | shlibpath_var=LIBPATH |
| 10246 | ;; |
| 10247 | |
| 10248 | osf3* | osf4* | osf5*) |
| 10249 | version_type=osf |
| 10250 | need_lib_prefix=no |
| 10251 | need_version=no |
| 10252 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10253 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10254 | shlibpath_var=LD_LIBRARY_PATH |
| 10255 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10256 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10257 | ;; |
| 10258 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10259 | solaris*) |
| 10260 | version_type=linux |
| 10261 | need_lib_prefix=no |
| 10262 | need_version=no |
| 10263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10264 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10265 | shlibpath_var=LD_LIBRARY_PATH |
| 10266 | shlibpath_overrides_runpath=yes |
| 10267 | hardcode_into_libs=yes |
| 10268 | # ldd complains unless libraries are executable |
| 10269 | postinstall_cmds='chmod +x $lib' |
| 10270 | ;; |
| 10271 | |
| 10272 | sunos4*) |
| 10273 | version_type=sunos |
| 10274 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10275 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10276 | shlibpath_var=LD_LIBRARY_PATH |
| 10277 | shlibpath_overrides_runpath=yes |
| 10278 | if test "$with_gnu_ld" = yes; then |
| 10279 | need_lib_prefix=no |
| 10280 | fi |
| 10281 | need_version=yes |
| 10282 | ;; |
| 10283 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10284 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10285 | version_type=linux |
| 10286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10287 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10288 | shlibpath_var=LD_LIBRARY_PATH |
| 10289 | case $host_vendor in |
| 10290 | sni) |
| 10291 | shlibpath_overrides_runpath=no |
| 10292 | need_lib_prefix=no |
| 10293 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10294 | runpath_var=LD_RUN_PATH |
| 10295 | ;; |
| 10296 | siemens) |
| 10297 | need_lib_prefix=no |
| 10298 | ;; |
| 10299 | motorola) |
| 10300 | need_lib_prefix=no |
| 10301 | need_version=no |
| 10302 | shlibpath_overrides_runpath=no |
| 10303 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10304 | ;; |
| 10305 | esac |
| 10306 | ;; |
| 10307 | |
| 10308 | sysv4*MP*) |
| 10309 | if test -d /usr/nec ;then |
| 10310 | version_type=linux |
| 10311 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10312 | soname_spec='$libname${shared_ext}.$major' |
| 10313 | shlibpath_var=LD_LIBRARY_PATH |
| 10314 | fi |
| 10315 | ;; |
| 10316 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10317 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10318 | version_type=freebsd-elf |
| 10319 | need_lib_prefix=no |
| 10320 | need_version=no |
| 10321 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10322 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10323 | shlibpath_var=LD_LIBRARY_PATH |
| 10324 | hardcode_into_libs=yes |
| 10325 | if test "$with_gnu_ld" = yes; then |
| 10326 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 10327 | shlibpath_overrides_runpath=no |
| 10328 | else |
| 10329 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 10330 | shlibpath_overrides_runpath=yes |
| 10331 | case $host_os in |
| 10332 | sco3.2v5*) |
| 10333 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10334 | ;; |
| 10335 | esac |
| 10336 | fi |
| 10337 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10338 | ;; |
| 10339 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10340 | uts4*) |
| 10341 | version_type=linux |
| 10342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10343 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10344 | shlibpath_var=LD_LIBRARY_PATH |
| 10345 | ;; |
| 10346 | |
| 10347 | *) |
| 10348 | dynamic_linker=no |
| 10349 | ;; |
| 10350 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10351 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 10352 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10353 | test "$dynamic_linker" = no && can_build_shared=no |
| 10354 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10355 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10356 | if test "$GCC" = yes; then |
| 10357 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10358 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10359 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10360 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10361 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 10362 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 10363 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 10364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10365 | else |
| 10366 | |
| 10367 | module=yes |
| 10368 | eval libltdl_cv_shlibext=$shrext_cmds |
| 10369 | |
| 10370 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10371 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 10372 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10373 | if test -n "$libltdl_cv_shlibext"; then |
| 10374 | |
| 10375 | cat >>confdefs.h <<_ACEOF |
| 10376 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 10377 | _ACEOF |
| 10378 | |
| 10379 | fi |
| 10380 | |
| 10381 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10382 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 10383 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 10384 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 10385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10386 | else |
| 10387 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 10388 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10389 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 10390 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10391 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 10392 | |
| 10393 | cat >>confdefs.h <<_ACEOF |
| 10394 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 10395 | _ACEOF |
| 10396 | |
| 10397 | fi |
| 10398 | |
| 10399 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10400 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 10401 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 10402 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 10403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10404 | else |
| 10405 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 10406 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10407 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 10408 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10409 | if test -n "$libltdl_cv_sys_search_path"; then |
| 10410 | sys_search_path= |
| 10411 | for dir in $libltdl_cv_sys_search_path; do |
| 10412 | if test -z "$sys_search_path"; then |
| 10413 | sys_search_path="$dir" |
| 10414 | else |
| 10415 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 10416 | fi |
| 10417 | done |
| 10418 | |
| 10419 | cat >>confdefs.h <<_ACEOF |
| 10420 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 10421 | _ACEOF |
| 10422 | |
| 10423 | fi |
| 10424 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10425 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 10426 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 10427 | if test "${libltdl_cv_objdir+set}" = set; then |
| 10428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10429 | else |
| 10430 | libltdl_cv_objdir="$objdir" |
| 10431 | if test -n "$objdir"; then |
| 10432 | : |
| 10433 | else |
| 10434 | rm -f .libs 2>/dev/null |
| 10435 | mkdir .libs 2>/dev/null |
| 10436 | if test -d .libs; then |
| 10437 | libltdl_cv_objdir=.libs |
| 10438 | else |
| 10439 | # MS-DOS does not allow filenames that begin with a dot. |
| 10440 | libltdl_cv_objdir=_libs |
| 10441 | fi |
| 10442 | rmdir .libs 2>/dev/null |
| 10443 | fi |
| 10444 | |
| 10445 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10446 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 10447 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10448 | |
| 10449 | cat >>confdefs.h <<_ACEOF |
| 10450 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 10451 | _ACEOF |
| 10452 | |
| 10453 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10454 | |
| 10455 | |
| 10456 | |
| 10457 | |
| 10458 | # 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] | 10459 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 10460 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 10461 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 10462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10463 | else |
| 10464 | |
| 10465 | # These are sane defaults that work on at least a few old systems. |
| 10466 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 10467 | |
| 10468 | # Character class describing NM global symbol codes. |
| 10469 | symcode='[BCDEGRST]' |
| 10470 | |
| 10471 | # Regexp to match symbols that can be accessed directly from C. |
| 10472 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 10473 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10474 | # Transform an extracted symbol line into a proper C declaration |
| 10475 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 10476 | |
| 10477 | # Transform an extracted symbol line into symbol name and symbol address |
| 10478 | 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'" |
| 10479 | |
| 10480 | # Define system-specific variables. |
| 10481 | case $host_os in |
| 10482 | aix*) |
| 10483 | symcode='[BCDT]' |
| 10484 | ;; |
| 10485 | cygwin* | mingw* | pw32*) |
| 10486 | symcode='[ABCDGISTW]' |
| 10487 | ;; |
| 10488 | hpux*) # Its linker distinguishes data from code symbols |
| 10489 | if test "$host_cpu" = ia64; then |
| 10490 | symcode='[ABCDEGRST]' |
| 10491 | fi |
| 10492 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10493 | 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'" |
| 10494 | ;; |
| 10495 | linux*) |
| 10496 | if test "$host_cpu" = ia64; then |
| 10497 | symcode='[ABCDGIRSTW]' |
| 10498 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10499 | 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'" |
| 10500 | fi |
| 10501 | ;; |
| 10502 | irix* | nonstopux*) |
| 10503 | symcode='[BCDEGRST]' |
| 10504 | ;; |
| 10505 | osf*) |
| 10506 | symcode='[BCDEGQRST]' |
| 10507 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10508 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10509 | symcode='[BDRT]' |
| 10510 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10511 | sco3.2v5*) |
| 10512 | symcode='[DT]' |
| 10513 | ;; |
| 10514 | sysv4.2uw2*) |
| 10515 | symcode='[DT]' |
| 10516 | ;; |
| 10517 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 10518 | symcode='[ABDT]' |
| 10519 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10520 | sysv4) |
| 10521 | symcode='[DFNSTU]' |
| 10522 | ;; |
| 10523 | esac |
| 10524 | |
| 10525 | # Handle CRLF in mingw tool chain |
| 10526 | opt_cr= |
| 10527 | case $build_os in |
| 10528 | mingw*) |
| 10529 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 10530 | ;; |
| 10531 | esac |
| 10532 | |
| 10533 | # If we're using GNU nm, then use its standard symbol codes. |
| 10534 | case `$NM -V 2>&1` in |
| 10535 | *GNU* | *'with BFD'*) |
| 10536 | symcode='[ABCDGIRSTW]' ;; |
| 10537 | esac |
| 10538 | |
| 10539 | # Try without a prefix undercore, then with it. |
| 10540 | for ac_symprfx in "" "_"; do |
| 10541 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10542 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 10543 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 10544 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10545 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10546 | 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] | 10547 | |
| 10548 | # Check to see that the pipe works correctly. |
| 10549 | pipe_works=no |
| 10550 | |
| 10551 | rm -f conftest* |
| 10552 | cat > conftest.$ac_ext <<EOF |
| 10553 | #ifdef __cplusplus |
| 10554 | extern "C" { |
| 10555 | #endif |
| 10556 | char nm_test_var; |
| 10557 | void nm_test_func(){} |
| 10558 | #ifdef __cplusplus |
| 10559 | } |
| 10560 | #endif |
| 10561 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 10562 | EOF |
| 10563 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10565 | (eval $ac_compile) 2>&5 |
| 10566 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10568 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10569 | # Now try to grab the symbols. |
| 10570 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10571 | 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] | 10572 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 10573 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10575 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10576 | # Try sorting and uniquifying the output. |
| 10577 | if sort "$nlist" | uniq > "$nlist"T; then |
| 10578 | mv -f "$nlist"T "$nlist" |
| 10579 | else |
| 10580 | rm -f "$nlist"T |
| 10581 | fi |
| 10582 | |
| 10583 | # Make sure that we snagged all the symbols we need. |
| 10584 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 10585 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 10586 | cat <<EOF > conftest.$ac_ext |
| 10587 | #ifdef __cplusplus |
| 10588 | extern "C" { |
| 10589 | #endif |
| 10590 | |
| 10591 | EOF |
| 10592 | # Now generate the symbol file. |
| 10593 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 10594 | |
| 10595 | cat <<EOF >> conftest.$ac_ext |
| 10596 | #if defined (__STDC__) && __STDC__ |
| 10597 | # define lt_ptr_t void * |
| 10598 | #else |
| 10599 | # define lt_ptr_t char * |
| 10600 | # define const |
| 10601 | #endif |
| 10602 | |
| 10603 | /* The mapping between symbol names and symbols. */ |
| 10604 | const struct { |
| 10605 | const char *name; |
| 10606 | lt_ptr_t address; |
| 10607 | } |
| 10608 | lt_preloaded_symbols[] = |
| 10609 | { |
| 10610 | EOF |
| 10611 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10612 | cat <<\EOF >> conftest.$ac_ext |
| 10613 | {0, (lt_ptr_t) 0} |
| 10614 | }; |
| 10615 | |
| 10616 | #ifdef __cplusplus |
| 10617 | } |
| 10618 | #endif |
| 10619 | EOF |
| 10620 | # Now try linking the two files. |
| 10621 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10622 | lt_save_LIBS="$LIBS" |
| 10623 | lt_save_CFLAGS="$CFLAGS" |
| 10624 | LIBS="conftstm.$ac_objext" |
| 10625 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10627 | (eval $ac_link) 2>&5 |
| 10628 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10630 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10631 | pipe_works=yes |
| 10632 | fi |
| 10633 | LIBS="$lt_save_LIBS" |
| 10634 | CFLAGS="$lt_save_CFLAGS" |
| 10635 | else |
| 10636 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10637 | fi |
| 10638 | else |
| 10639 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10640 | fi |
| 10641 | else |
| 10642 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10643 | fi |
| 10644 | else |
| 10645 | echo "$progname: failed program was:" >&5 |
| 10646 | cat conftest.$ac_ext >&5 |
| 10647 | fi |
| 10648 | rm -f conftest* conftst* |
| 10649 | |
| 10650 | # Do not use the global_symbol_pipe unless it works. |
| 10651 | if test "$pipe_works" = yes; then |
| 10652 | break |
| 10653 | else |
| 10654 | lt_cv_sys_global_symbol_pipe= |
| 10655 | fi |
| 10656 | done |
| 10657 | |
| 10658 | fi |
| 10659 | |
| 10660 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10661 | lt_cv_sys_global_symbol_to_cdecl= |
| 10662 | fi |
| 10663 | 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] | 10664 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10665 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10666 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10667 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10668 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10669 | fi |
| 10670 | |
| 10671 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10672 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10673 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 10674 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10676 | else |
| 10677 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10678 | libltdl_cv_preloaded_symbols=yes |
| 10679 | else |
| 10680 | libltdl_cv_preloaded_symbols=no |
| 10681 | fi |
| 10682 | |
| 10683 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10684 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10685 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10686 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10687 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10688 | cat >>confdefs.h <<\_ACEOF |
| 10689 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10690 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10691 | |
| 10692 | fi |
| 10693 | |
| 10694 | LIBADD_DL= |
| 10695 | |
| 10696 | ac_ext=c |
| 10697 | ac_cpp='$CPP $CPPFLAGS' |
| 10698 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10699 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10700 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10701 | |
| 10702 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10703 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10704 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 10705 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10707 | else |
| 10708 | cat >conftest.$ac_ext <<_ACEOF |
| 10709 | /* confdefs.h. */ |
| 10710 | _ACEOF |
| 10711 | cat confdefs.h >>conftest.$ac_ext |
| 10712 | cat >>conftest.$ac_ext <<_ACEOF |
| 10713 | /* end confdefs.h. */ |
| 10714 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10715 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10716 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10717 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10718 | /* System header to define __stub macros and hopefully few prototypes, |
| 10719 | which can conflict with char shl_load (); below. |
| 10720 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10721 | <limits.h> exists even on freestanding compilers. */ |
| 10722 | |
| 10723 | #ifdef __STDC__ |
| 10724 | # include <limits.h> |
| 10725 | #else |
| 10726 | # include <assert.h> |
| 10727 | #endif |
| 10728 | |
| 10729 | #undef shl_load |
| 10730 | |
| 10731 | /* Override any GCC internal prototype to avoid an error. |
| 10732 | Use char because int might match the return type of a GCC |
| 10733 | builtin and then its argument prototype would still apply. */ |
| 10734 | #ifdef __cplusplus |
| 10735 | extern "C" |
| 10736 | #endif |
| 10737 | char shl_load (); |
| 10738 | /* The GNU C library defines this for functions which it implements |
| 10739 | to always fail with ENOSYS. Some functions are actually named |
| 10740 | something starting with __ and the normal name is an alias. */ |
| 10741 | #if defined __stub_shl_load || defined __stub___shl_load |
| 10742 | choke me |
| 10743 | #endif |
| 10744 | |
| 10745 | int |
| 10746 | main () |
| 10747 | { |
| 10748 | return shl_load (); |
| 10749 | ; |
| 10750 | return 0; |
| 10751 | } |
| 10752 | _ACEOF |
| 10753 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10754 | if { (ac_try="$ac_link" |
| 10755 | case "(($ac_try" in |
| 10756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10757 | *) ac_try_echo=$ac_try;; |
| 10758 | esac |
| 10759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10760 | (eval "$ac_link") 2>conftest.er1 |
| 10761 | ac_status=$? |
| 10762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10763 | rm -f conftest.er1 |
| 10764 | cat conftest.err >&5 |
| 10765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10766 | (exit $ac_status); } && |
| 10767 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10768 | { (case "(($ac_try" in |
| 10769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10770 | *) ac_try_echo=$ac_try;; |
| 10771 | esac |
| 10772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10773 | (eval "$ac_try") 2>&5 |
| 10774 | ac_status=$? |
| 10775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10776 | (exit $ac_status); }; } && |
| 10777 | { ac_try='test -s conftest$ac_exeext' |
| 10778 | { (case "(($ac_try" in |
| 10779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10780 | *) ac_try_echo=$ac_try;; |
| 10781 | esac |
| 10782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10783 | (eval "$ac_try") 2>&5 |
| 10784 | ac_status=$? |
| 10785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10786 | (exit $ac_status); }; }; then |
| 10787 | ac_cv_func_shl_load=yes |
| 10788 | else |
| 10789 | echo "$as_me: failed program was:" >&5 |
| 10790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10791 | |
| 10792 | ac_cv_func_shl_load=no |
| 10793 | fi |
| 10794 | |
| 10795 | rm -f core conftest.err conftest.$ac_objext \ |
| 10796 | conftest$ac_exeext conftest.$ac_ext |
| 10797 | fi |
| 10798 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10799 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 10800 | if test $ac_cv_func_shl_load = yes; then |
| 10801 | |
| 10802 | cat >>confdefs.h <<\_ACEOF |
| 10803 | #define HAVE_SHL_LOAD 1 |
| 10804 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10805 | |
| 10806 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10807 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10808 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 10809 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10811 | else |
| 10812 | ac_check_lib_save_LIBS=$LIBS |
| 10813 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10814 | cat >conftest.$ac_ext <<_ACEOF |
| 10815 | /* confdefs.h. */ |
| 10816 | _ACEOF |
| 10817 | cat confdefs.h >>conftest.$ac_ext |
| 10818 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10819 | /* end confdefs.h. */ |
| 10820 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10821 | /* Override any GCC internal prototype to avoid an error. |
| 10822 | Use char because int might match the return type of a GCC |
| 10823 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10824 | #ifdef __cplusplus |
| 10825 | extern "C" |
| 10826 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10827 | char shl_load (); |
| 10828 | int |
| 10829 | main () |
| 10830 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10831 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10832 | ; |
| 10833 | return 0; |
| 10834 | } |
| 10835 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10836 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10837 | if { (ac_try="$ac_link" |
| 10838 | case "(($ac_try" in |
| 10839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10840 | *) ac_try_echo=$ac_try;; |
| 10841 | esac |
| 10842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10843 | (eval "$ac_link") 2>conftest.er1 |
| 10844 | ac_status=$? |
| 10845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10846 | rm -f conftest.er1 |
| 10847 | cat conftest.err >&5 |
| 10848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10849 | (exit $ac_status); } && |
| 10850 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10851 | { (case "(($ac_try" in |
| 10852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10853 | *) ac_try_echo=$ac_try;; |
| 10854 | esac |
| 10855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10856 | (eval "$ac_try") 2>&5 |
| 10857 | ac_status=$? |
| 10858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10859 | (exit $ac_status); }; } && |
| 10860 | { ac_try='test -s conftest$ac_exeext' |
| 10861 | { (case "(($ac_try" in |
| 10862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10863 | *) ac_try_echo=$ac_try;; |
| 10864 | esac |
| 10865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10866 | (eval "$ac_try") 2>&5 |
| 10867 | ac_status=$? |
| 10868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10869 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10870 | ac_cv_lib_dld_shl_load=yes |
| 10871 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10872 | echo "$as_me: failed program was:" >&5 |
| 10873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10874 | |
| 10875 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10876 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10877 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10878 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10879 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10880 | LIBS=$ac_check_lib_save_LIBS |
| 10881 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10882 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10883 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 10884 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10885 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10886 | cat >>confdefs.h <<\_ACEOF |
| 10887 | #define HAVE_SHL_LOAD 1 |
| 10888 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10889 | |
| 10890 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10891 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10892 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10893 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 10894 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10896 | else |
| 10897 | ac_check_lib_save_LIBS=$LIBS |
| 10898 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10899 | cat >conftest.$ac_ext <<_ACEOF |
| 10900 | /* confdefs.h. */ |
| 10901 | _ACEOF |
| 10902 | cat confdefs.h >>conftest.$ac_ext |
| 10903 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10904 | /* end confdefs.h. */ |
| 10905 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10906 | /* Override any GCC internal prototype to avoid an error. |
| 10907 | Use char because int might match the return type of a GCC |
| 10908 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10909 | #ifdef __cplusplus |
| 10910 | extern "C" |
| 10911 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10912 | char dlopen (); |
| 10913 | int |
| 10914 | main () |
| 10915 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10916 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10917 | ; |
| 10918 | return 0; |
| 10919 | } |
| 10920 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10921 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10922 | if { (ac_try="$ac_link" |
| 10923 | case "(($ac_try" in |
| 10924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10925 | *) ac_try_echo=$ac_try;; |
| 10926 | esac |
| 10927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10928 | (eval "$ac_link") 2>conftest.er1 |
| 10929 | ac_status=$? |
| 10930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10931 | rm -f conftest.er1 |
| 10932 | cat conftest.err >&5 |
| 10933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10934 | (exit $ac_status); } && |
| 10935 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10936 | { (case "(($ac_try" in |
| 10937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10938 | *) ac_try_echo=$ac_try;; |
| 10939 | esac |
| 10940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10941 | (eval "$ac_try") 2>&5 |
| 10942 | ac_status=$? |
| 10943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10944 | (exit $ac_status); }; } && |
| 10945 | { ac_try='test -s conftest$ac_exeext' |
| 10946 | { (case "(($ac_try" in |
| 10947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10948 | *) ac_try_echo=$ac_try;; |
| 10949 | esac |
| 10950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10951 | (eval "$ac_try") 2>&5 |
| 10952 | ac_status=$? |
| 10953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10954 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10955 | ac_cv_lib_dl_dlopen=yes |
| 10956 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10957 | echo "$as_me: failed program was:" >&5 |
| 10958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10959 | |
| 10960 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10961 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10962 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10963 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10964 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10965 | LIBS=$ac_check_lib_save_LIBS |
| 10966 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10967 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10968 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 10969 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10970 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10971 | cat >>confdefs.h <<\_ACEOF |
| 10972 | #define HAVE_LIBDL 1 |
| 10973 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10974 | |
| 10975 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10976 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10977 | cat >conftest.$ac_ext <<_ACEOF |
| 10978 | /* confdefs.h. */ |
| 10979 | _ACEOF |
| 10980 | cat confdefs.h >>conftest.$ac_ext |
| 10981 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10982 | /* end confdefs.h. */ |
| 10983 | #if HAVE_DLFCN_H |
| 10984 | # include <dlfcn.h> |
| 10985 | #endif |
| 10986 | |
| 10987 | int |
| 10988 | main () |
| 10989 | { |
| 10990 | dlopen(0, 0); |
| 10991 | ; |
| 10992 | return 0; |
| 10993 | } |
| 10994 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10995 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10996 | if { (ac_try="$ac_link" |
| 10997 | case "(($ac_try" in |
| 10998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10999 | *) ac_try_echo=$ac_try;; |
| 11000 | esac |
| 11001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11002 | (eval "$ac_link") 2>conftest.er1 |
| 11003 | ac_status=$? |
| 11004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11005 | rm -f conftest.er1 |
| 11006 | cat conftest.err >&5 |
| 11007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11008 | (exit $ac_status); } && |
| 11009 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11010 | { (case "(($ac_try" in |
| 11011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11012 | *) ac_try_echo=$ac_try;; |
| 11013 | esac |
| 11014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11015 | (eval "$ac_try") 2>&5 |
| 11016 | ac_status=$? |
| 11017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11018 | (exit $ac_status); }; } && |
| 11019 | { ac_try='test -s conftest$ac_exeext' |
| 11020 | { (case "(($ac_try" in |
| 11021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11022 | *) ac_try_echo=$ac_try;; |
| 11023 | esac |
| 11024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11025 | (eval "$ac_try") 2>&5 |
| 11026 | ac_status=$? |
| 11027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11028 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11029 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11030 | cat >>confdefs.h <<\_ACEOF |
| 11031 | #define HAVE_LIBDL 1 |
| 11032 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11033 | libltdl_cv_func_dlopen="yes" |
| 11034 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11035 | echo "$as_me: failed program was:" >&5 |
| 11036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11037 | |
| 11038 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 11039 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 11040 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 11041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11042 | else |
| 11043 | ac_check_lib_save_LIBS=$LIBS |
| 11044 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11045 | cat >conftest.$ac_ext <<_ACEOF |
| 11046 | /* confdefs.h. */ |
| 11047 | _ACEOF |
| 11048 | cat confdefs.h >>conftest.$ac_ext |
| 11049 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11050 | /* end confdefs.h. */ |
| 11051 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11052 | /* Override any GCC internal prototype to avoid an error. |
| 11053 | Use char because int might match the return type of a GCC |
| 11054 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11055 | #ifdef __cplusplus |
| 11056 | extern "C" |
| 11057 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11058 | char dlopen (); |
| 11059 | int |
| 11060 | main () |
| 11061 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11062 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11063 | ; |
| 11064 | return 0; |
| 11065 | } |
| 11066 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11067 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11068 | if { (ac_try="$ac_link" |
| 11069 | case "(($ac_try" in |
| 11070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11071 | *) ac_try_echo=$ac_try;; |
| 11072 | esac |
| 11073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11074 | (eval "$ac_link") 2>conftest.er1 |
| 11075 | ac_status=$? |
| 11076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11077 | rm -f conftest.er1 |
| 11078 | cat conftest.err >&5 |
| 11079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11080 | (exit $ac_status); } && |
| 11081 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11082 | { (case "(($ac_try" in |
| 11083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11084 | *) ac_try_echo=$ac_try;; |
| 11085 | esac |
| 11086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11087 | (eval "$ac_try") 2>&5 |
| 11088 | ac_status=$? |
| 11089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11090 | (exit $ac_status); }; } && |
| 11091 | { ac_try='test -s conftest$ac_exeext' |
| 11092 | { (case "(($ac_try" in |
| 11093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11094 | *) ac_try_echo=$ac_try;; |
| 11095 | esac |
| 11096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11097 | (eval "$ac_try") 2>&5 |
| 11098 | ac_status=$? |
| 11099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11100 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11101 | ac_cv_lib_svld_dlopen=yes |
| 11102 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11103 | echo "$as_me: failed program was:" >&5 |
| 11104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11105 | |
| 11106 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11107 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11108 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11109 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11110 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11111 | LIBS=$ac_check_lib_save_LIBS |
| 11112 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11113 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11114 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 11115 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11116 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11117 | cat >>confdefs.h <<\_ACEOF |
| 11118 | #define HAVE_LIBDL 1 |
| 11119 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11120 | |
| 11121 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 11122 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11123 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 11124 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 11125 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 11126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11127 | else |
| 11128 | ac_check_lib_save_LIBS=$LIBS |
| 11129 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11130 | cat >conftest.$ac_ext <<_ACEOF |
| 11131 | /* confdefs.h. */ |
| 11132 | _ACEOF |
| 11133 | cat confdefs.h >>conftest.$ac_ext |
| 11134 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11135 | /* end confdefs.h. */ |
| 11136 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11137 | /* Override any GCC internal prototype to avoid an error. |
| 11138 | Use char because int might match the return type of a GCC |
| 11139 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11140 | #ifdef __cplusplus |
| 11141 | extern "C" |
| 11142 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11143 | char dld_link (); |
| 11144 | int |
| 11145 | main () |
| 11146 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11147 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11148 | ; |
| 11149 | return 0; |
| 11150 | } |
| 11151 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11152 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11153 | if { (ac_try="$ac_link" |
| 11154 | case "(($ac_try" in |
| 11155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11156 | *) ac_try_echo=$ac_try;; |
| 11157 | esac |
| 11158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11159 | (eval "$ac_link") 2>conftest.er1 |
| 11160 | ac_status=$? |
| 11161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11162 | rm -f conftest.er1 |
| 11163 | cat conftest.err >&5 |
| 11164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11165 | (exit $ac_status); } && |
| 11166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11167 | { (case "(($ac_try" in |
| 11168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11169 | *) ac_try_echo=$ac_try;; |
| 11170 | esac |
| 11171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11172 | (eval "$ac_try") 2>&5 |
| 11173 | ac_status=$? |
| 11174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11175 | (exit $ac_status); }; } && |
| 11176 | { ac_try='test -s conftest$ac_exeext' |
| 11177 | { (case "(($ac_try" in |
| 11178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11179 | *) ac_try_echo=$ac_try;; |
| 11180 | esac |
| 11181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11182 | (eval "$ac_try") 2>&5 |
| 11183 | ac_status=$? |
| 11184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11185 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11186 | ac_cv_lib_dld_dld_link=yes |
| 11187 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11188 | echo "$as_me: failed program was:" >&5 |
| 11189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11190 | |
| 11191 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11192 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11193 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11194 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11195 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11196 | LIBS=$ac_check_lib_save_LIBS |
| 11197 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11198 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11199 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 11200 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11201 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11202 | cat >>confdefs.h <<\_ACEOF |
| 11203 | #define HAVE_DLD 1 |
| 11204 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11205 | |
| 11206 | LIBADD_DL="$LIBADD_DL -ldld" |
| 11207 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11208 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 11209 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 11210 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 11211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11212 | else |
| 11213 | cat >conftest.$ac_ext <<_ACEOF |
| 11214 | /* confdefs.h. */ |
| 11215 | _ACEOF |
| 11216 | cat confdefs.h >>conftest.$ac_ext |
| 11217 | cat >>conftest.$ac_ext <<_ACEOF |
| 11218 | /* end confdefs.h. */ |
| 11219 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 11220 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11221 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11222 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11223 | /* System header to define __stub macros and hopefully few prototypes, |
| 11224 | which can conflict with char _dyld_func_lookup (); below. |
| 11225 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11226 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11227 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11228 | #ifdef __STDC__ |
| 11229 | # include <limits.h> |
| 11230 | #else |
| 11231 | # include <assert.h> |
| 11232 | #endif |
| 11233 | |
| 11234 | #undef _dyld_func_lookup |
| 11235 | |
| 11236 | /* Override any GCC internal prototype to avoid an error. |
| 11237 | Use char because int might match the return type of a GCC |
| 11238 | builtin and then its argument prototype would still apply. */ |
| 11239 | #ifdef __cplusplus |
| 11240 | extern "C" |
| 11241 | #endif |
| 11242 | char _dyld_func_lookup (); |
| 11243 | /* The GNU C library defines this for functions which it implements |
| 11244 | to always fail with ENOSYS. Some functions are actually named |
| 11245 | something starting with __ and the normal name is an alias. */ |
| 11246 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 11247 | choke me |
| 11248 | #endif |
| 11249 | |
| 11250 | int |
| 11251 | main () |
| 11252 | { |
| 11253 | return _dyld_func_lookup (); |
| 11254 | ; |
| 11255 | return 0; |
| 11256 | } |
| 11257 | _ACEOF |
| 11258 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11259 | if { (ac_try="$ac_link" |
| 11260 | case "(($ac_try" in |
| 11261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11262 | *) ac_try_echo=$ac_try;; |
| 11263 | esac |
| 11264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11265 | (eval "$ac_link") 2>conftest.er1 |
| 11266 | ac_status=$? |
| 11267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11268 | rm -f conftest.er1 |
| 11269 | cat conftest.err >&5 |
| 11270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11271 | (exit $ac_status); } && |
| 11272 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11273 | { (case "(($ac_try" in |
| 11274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11275 | *) ac_try_echo=$ac_try;; |
| 11276 | esac |
| 11277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11278 | (eval "$ac_try") 2>&5 |
| 11279 | ac_status=$? |
| 11280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11281 | (exit $ac_status); }; } && |
| 11282 | { ac_try='test -s conftest$ac_exeext' |
| 11283 | { (case "(($ac_try" in |
| 11284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11285 | *) ac_try_echo=$ac_try;; |
| 11286 | esac |
| 11287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11288 | (eval "$ac_try") 2>&5 |
| 11289 | ac_status=$? |
| 11290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11291 | (exit $ac_status); }; }; then |
| 11292 | ac_cv_func__dyld_func_lookup=yes |
| 11293 | else |
| 11294 | echo "$as_me: failed program was:" >&5 |
| 11295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11296 | |
| 11297 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11298 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11299 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11300 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11301 | conftest$ac_exeext conftest.$ac_ext |
| 11302 | fi |
| 11303 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 11304 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 11305 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 11306 | |
| 11307 | cat >>confdefs.h <<\_ACEOF |
| 11308 | #define HAVE_DYLD 1 |
| 11309 | _ACEOF |
| 11310 | |
| 11311 | fi |
| 11312 | |
| 11313 | |
| 11314 | fi |
| 11315 | |
| 11316 | |
| 11317 | fi |
| 11318 | |
| 11319 | |
| 11320 | fi |
| 11321 | |
| 11322 | rm -f core conftest.err conftest.$ac_objext \ |
| 11323 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11324 | |
| 11325 | fi |
| 11326 | |
| 11327 | |
| 11328 | fi |
| 11329 | |
| 11330 | |
| 11331 | fi |
| 11332 | |
| 11333 | |
| 11334 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 11335 | then |
| 11336 | lt_save_LIBS="$LIBS" |
| 11337 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11338 | |
| 11339 | for ac_func in dlerror |
| 11340 | do |
| 11341 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11342 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11343 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11344 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11346 | else |
| 11347 | cat >conftest.$ac_ext <<_ACEOF |
| 11348 | /* confdefs.h. */ |
| 11349 | _ACEOF |
| 11350 | cat confdefs.h >>conftest.$ac_ext |
| 11351 | cat >>conftest.$ac_ext <<_ACEOF |
| 11352 | /* end confdefs.h. */ |
| 11353 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11354 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11355 | #define $ac_func innocuous_$ac_func |
| 11356 | |
| 11357 | /* System header to define __stub macros and hopefully few prototypes, |
| 11358 | which can conflict with char $ac_func (); below. |
| 11359 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11360 | <limits.h> exists even on freestanding compilers. */ |
| 11361 | |
| 11362 | #ifdef __STDC__ |
| 11363 | # include <limits.h> |
| 11364 | #else |
| 11365 | # include <assert.h> |
| 11366 | #endif |
| 11367 | |
| 11368 | #undef $ac_func |
| 11369 | |
| 11370 | /* Override any GCC internal prototype to avoid an error. |
| 11371 | Use char because int might match the return type of a GCC |
| 11372 | builtin and then its argument prototype would still apply. */ |
| 11373 | #ifdef __cplusplus |
| 11374 | extern "C" |
| 11375 | #endif |
| 11376 | char $ac_func (); |
| 11377 | /* The GNU C library defines this for functions which it implements |
| 11378 | to always fail with ENOSYS. Some functions are actually named |
| 11379 | something starting with __ and the normal name is an alias. */ |
| 11380 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11381 | choke me |
| 11382 | #endif |
| 11383 | |
| 11384 | int |
| 11385 | main () |
| 11386 | { |
| 11387 | return $ac_func (); |
| 11388 | ; |
| 11389 | return 0; |
| 11390 | } |
| 11391 | _ACEOF |
| 11392 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11393 | if { (ac_try="$ac_link" |
| 11394 | case "(($ac_try" in |
| 11395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11396 | *) ac_try_echo=$ac_try;; |
| 11397 | esac |
| 11398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11399 | (eval "$ac_link") 2>conftest.er1 |
| 11400 | ac_status=$? |
| 11401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11402 | rm -f conftest.er1 |
| 11403 | cat conftest.err >&5 |
| 11404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11405 | (exit $ac_status); } && |
| 11406 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11407 | { (case "(($ac_try" in |
| 11408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11409 | *) ac_try_echo=$ac_try;; |
| 11410 | esac |
| 11411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11412 | (eval "$ac_try") 2>&5 |
| 11413 | ac_status=$? |
| 11414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11415 | (exit $ac_status); }; } && |
| 11416 | { ac_try='test -s conftest$ac_exeext' |
| 11417 | { (case "(($ac_try" in |
| 11418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11419 | *) ac_try_echo=$ac_try;; |
| 11420 | esac |
| 11421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11422 | (eval "$ac_try") 2>&5 |
| 11423 | ac_status=$? |
| 11424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11425 | (exit $ac_status); }; }; then |
| 11426 | eval "$as_ac_var=yes" |
| 11427 | else |
| 11428 | echo "$as_me: failed program was:" >&5 |
| 11429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11430 | |
| 11431 | eval "$as_ac_var=no" |
| 11432 | fi |
| 11433 | |
| 11434 | rm -f core conftest.err conftest.$ac_objext \ |
| 11435 | conftest$ac_exeext conftest.$ac_ext |
| 11436 | fi |
| 11437 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11438 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11439 | echo "${ECHO_T}$ac_res" >&6; } |
| 11440 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11441 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11442 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11443 | _ACEOF |
| 11444 | |
| 11445 | fi |
| 11446 | done |
| 11447 | |
| 11448 | LIBS="$lt_save_LIBS" |
| 11449 | fi |
| 11450 | ac_ext=c |
| 11451 | ac_cpp='$CPP $CPPFLAGS' |
| 11452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11455 | |
| 11456 | |
| 11457 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11458 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 11459 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 11460 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 11461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11462 | else |
| 11463 | ac_cv_sys_symbol_underscore=no |
| 11464 | cat > conftest.$ac_ext <<EOF |
| 11465 | void nm_test_func(){} |
| 11466 | int main(){nm_test_func;return 0;} |
| 11467 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11469 | (eval $ac_compile) 2>&5 |
| 11470 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11472 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11473 | # Now try to grab the symbols. |
| 11474 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11475 | 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] | 11476 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 11477 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11479 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11480 | # See whether the symbols have a leading underscore. |
| 11481 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 11482 | ac_cv_sys_symbol_underscore=yes |
| 11483 | else |
| 11484 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 11485 | : |
| 11486 | else |
| 11487 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 11488 | fi |
| 11489 | fi |
| 11490 | else |
| 11491 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11492 | fi |
| 11493 | else |
| 11494 | echo "configure: failed program was:" >&5 |
| 11495 | cat conftest.c >&5 |
| 11496 | fi |
| 11497 | rm -rf conftest* |
| 11498 | |
| 11499 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11500 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 11501 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11502 | |
| 11503 | |
| 11504 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 11505 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 11506 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11507 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 11508 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 11509 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 11510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11511 | else |
| 11512 | libltdl_cv_need_uscore=unknown |
| 11513 | save_LIBS="$LIBS" |
| 11514 | LIBS="$LIBS $LIBADD_DL" |
| 11515 | if test "$cross_compiling" = yes; then : |
| 11516 | libltdl_cv_need_uscore=cross |
| 11517 | else |
| 11518 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11519 | lt_status=$lt_dlunknown |
| 11520 | cat > conftest.$ac_ext <<EOF |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 11521 | #line 11525 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11522 | #include "confdefs.h" |
| 11523 | |
| 11524 | #if HAVE_DLFCN_H |
| 11525 | #include <dlfcn.h> |
| 11526 | #endif |
| 11527 | |
| 11528 | #include <stdio.h> |
| 11529 | |
| 11530 | #ifdef RTLD_GLOBAL |
| 11531 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11532 | #else |
| 11533 | # ifdef DL_GLOBAL |
| 11534 | # define LT_DLGLOBAL DL_GLOBAL |
| 11535 | # else |
| 11536 | # define LT_DLGLOBAL 0 |
| 11537 | # endif |
| 11538 | #endif |
| 11539 | |
| 11540 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11541 | find out it does not work in some platform. */ |
| 11542 | #ifndef LT_DLLAZY_OR_NOW |
| 11543 | # ifdef RTLD_LAZY |
| 11544 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11545 | # else |
| 11546 | # ifdef DL_LAZY |
| 11547 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11548 | # else |
| 11549 | # ifdef RTLD_NOW |
| 11550 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11551 | # else |
| 11552 | # ifdef DL_NOW |
| 11553 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11554 | # else |
| 11555 | # define LT_DLLAZY_OR_NOW 0 |
| 11556 | # endif |
| 11557 | # endif |
| 11558 | # endif |
| 11559 | # endif |
| 11560 | #endif |
| 11561 | |
| 11562 | #ifdef __cplusplus |
| 11563 | extern "C" void exit (int); |
| 11564 | #endif |
| 11565 | |
| 11566 | void fnord() { int i=42;} |
| 11567 | int main () |
| 11568 | { |
| 11569 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11570 | int status = $lt_dlunknown; |
| 11571 | |
| 11572 | if (self) |
| 11573 | { |
| 11574 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11575 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11576 | /* dlclose (self); */ |
| 11577 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11578 | else |
| 11579 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11580 | |
| 11581 | exit (status); |
| 11582 | } |
| 11583 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11585 | (eval $ac_link) 2>&5 |
| 11586 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11588 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11589 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11590 | lt_status=$? |
| 11591 | case x$lt_status in |
| 11592 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 11593 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11594 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11595 | esac |
| 11596 | else : |
| 11597 | # compilation failed |
| 11598 | |
| 11599 | fi |
| 11600 | fi |
| 11601 | rm -fr conftest* |
| 11602 | |
| 11603 | LIBS="$save_LIBS" |
| 11604 | |
| 11605 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11606 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 11607 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11608 | fi |
| 11609 | fi |
| 11610 | |
| 11611 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11612 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11613 | cat >>confdefs.h <<\_ACEOF |
| 11614 | #define NEED_USCORE 1 |
| 11615 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11616 | |
| 11617 | fi |
| 11618 | |
| 11619 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11620 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11621 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 11622 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11624 | else |
| 11625 | # PORTME does your system automatically load deplibs for dlopen? |
| 11626 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11627 | # For now, we just catch OSes we know something about -- in the |
| 11628 | # future, we'll try test this programmatically. |
| 11629 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11630 | case "$host_os" in |
| 11631 | aix3*|aix4.1.*|aix4.2.*) |
| 11632 | # Unknown whether this is true for these versions of AIX, but |
| 11633 | # we want this `case' here to explicitly catch those versions. |
| 11634 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11635 | ;; |
| 11636 | aix[45]*) |
| 11637 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11638 | ;; |
| 11639 | darwin*) |
| 11640 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11641 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11642 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11643 | ;; |
| 11644 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11645 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11646 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11647 | ;; |
| 11648 | hpux10*|hpux11*) |
| 11649 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11650 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11651 | interix*) |
| 11652 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11653 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11654 | irix[12345]*|irix6.[01]*) |
| 11655 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11656 | # know how it worked for any of those versions. |
| 11657 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11658 | ;; |
| 11659 | irix*) |
| 11660 | # The case above catches anything before 6.2, and it's known that |
| 11661 | # at 6.2 and later dlopen does load deplibs. |
| 11662 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11663 | ;; |
| 11664 | netbsd*) |
| 11665 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11666 | ;; |
| 11667 | openbsd*) |
| 11668 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11669 | ;; |
| 11670 | osf[1234]*) |
| 11671 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11672 | # it did *not* use an RPATH in a shared library to find objects the |
| 11673 | # library depends on, so we explictly say `no'. |
| 11674 | libltdl_cv_sys_dlopen_deplibs=no |
| 11675 | ;; |
| 11676 | osf5.0|osf5.0a|osf5.1) |
| 11677 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11678 | # it even uses RPATH in a shared library to search for shared objects |
| 11679 | # that the library depends on, but there's no easy way to know if that |
| 11680 | # patch is installed. Since this is the case, all we can really |
| 11681 | # say is unknown -- it depends on the patch being installed. If |
| 11682 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11683 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11684 | ;; |
| 11685 | osf*) |
| 11686 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11687 | # the comments above for what we know about them. |
| 11688 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11689 | # is used to find them so we can finally say `yes'. |
| 11690 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11691 | ;; |
| 11692 | solaris*) |
| 11693 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11694 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11695 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11696 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11697 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11698 | esac |
| 11699 | |
| 11700 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11701 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11702 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11703 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11704 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11705 | cat >>confdefs.h <<\_ACEOF |
| 11706 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11707 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11708 | |
| 11709 | fi |
| 11710 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11711 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11712 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11713 | do |
| 11714 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11715 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11716 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11717 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11718 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11720 | fi |
| 11721 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11722 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11723 | echo "${ECHO_T}$ac_res" >&6; } |
| 11724 | else |
| 11725 | # Is the header compilable? |
| 11726 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11727 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11728 | cat >conftest.$ac_ext <<_ACEOF |
| 11729 | /* confdefs.h. */ |
| 11730 | _ACEOF |
| 11731 | cat confdefs.h >>conftest.$ac_ext |
| 11732 | cat >>conftest.$ac_ext <<_ACEOF |
| 11733 | /* end confdefs.h. */ |
| 11734 | $ac_includes_default |
| 11735 | #include <$ac_header> |
| 11736 | _ACEOF |
| 11737 | rm -f conftest.$ac_objext |
| 11738 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 11745 | ac_status=$? |
| 11746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11747 | rm -f conftest.er1 |
| 11748 | cat conftest.err >&5 |
| 11749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11750 | (exit $ac_status); } && |
| 11751 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11752 | { (case "(($ac_try" in |
| 11753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11754 | *) ac_try_echo=$ac_try;; |
| 11755 | esac |
| 11756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11757 | (eval "$ac_try") 2>&5 |
| 11758 | ac_status=$? |
| 11759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11760 | (exit $ac_status); }; } && |
| 11761 | { ac_try='test -s conftest.$ac_objext' |
| 11762 | { (case "(($ac_try" in |
| 11763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11764 | *) ac_try_echo=$ac_try;; |
| 11765 | esac |
| 11766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11767 | (eval "$ac_try") 2>&5 |
| 11768 | ac_status=$? |
| 11769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11770 | (exit $ac_status); }; }; then |
| 11771 | ac_header_compiler=yes |
| 11772 | else |
| 11773 | echo "$as_me: failed program was:" >&5 |
| 11774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11775 | |
| 11776 | ac_header_compiler=no |
| 11777 | fi |
| 11778 | |
| 11779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11780 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11781 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11782 | |
| 11783 | # Is the header present? |
| 11784 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11785 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11786 | cat >conftest.$ac_ext <<_ACEOF |
| 11787 | /* confdefs.h. */ |
| 11788 | _ACEOF |
| 11789 | cat confdefs.h >>conftest.$ac_ext |
| 11790 | cat >>conftest.$ac_ext <<_ACEOF |
| 11791 | /* end confdefs.h. */ |
| 11792 | #include <$ac_header> |
| 11793 | _ACEOF |
| 11794 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11795 | case "(($ac_try" in |
| 11796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11797 | *) ac_try_echo=$ac_try;; |
| 11798 | esac |
| 11799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11800 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11801 | ac_status=$? |
| 11802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11803 | rm -f conftest.er1 |
| 11804 | cat conftest.err >&5 |
| 11805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11806 | (exit $ac_status); } >/dev/null; then |
| 11807 | if test -s conftest.err; then |
| 11808 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11809 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11810 | else |
| 11811 | ac_cpp_err= |
| 11812 | fi |
| 11813 | else |
| 11814 | ac_cpp_err=yes |
| 11815 | fi |
| 11816 | if test -z "$ac_cpp_err"; then |
| 11817 | ac_header_preproc=yes |
| 11818 | else |
| 11819 | echo "$as_me: failed program was:" >&5 |
| 11820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11821 | |
| 11822 | ac_header_preproc=no |
| 11823 | fi |
| 11824 | |
| 11825 | rm -f conftest.err conftest.$ac_ext |
| 11826 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11827 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11828 | |
| 11829 | # So? What about this header? |
| 11830 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11831 | yes:no: ) |
| 11832 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11833 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11834 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11835 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11836 | ac_header_preproc=yes |
| 11837 | ;; |
| 11838 | no:yes:* ) |
| 11839 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11840 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11841 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11842 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11843 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11844 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11845 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11846 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11847 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11848 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11849 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11850 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11851 | ( cat <<\_ASBOX |
| 11852 | ## ----------------------------------- ## |
| 11853 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11854 | ## ----------------------------------- ## |
| 11855 | _ASBOX |
| 11856 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11857 | ;; |
| 11858 | esac |
| 11859 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11860 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11861 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11863 | else |
| 11864 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11865 | fi |
| 11866 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11867 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11868 | echo "${ECHO_T}$ac_res" >&6; } |
| 11869 | |
| 11870 | fi |
| 11871 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11872 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11873 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11874 | _ACEOF |
| 11875 | |
| 11876 | fi |
| 11877 | |
| 11878 | done |
| 11879 | |
| 11880 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11881 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11882 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 11883 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11885 | else |
| 11886 | cat >conftest.$ac_ext <<_ACEOF |
| 11887 | /* confdefs.h. */ |
| 11888 | _ACEOF |
| 11889 | cat confdefs.h >>conftest.$ac_ext |
| 11890 | cat >>conftest.$ac_ext <<_ACEOF |
| 11891 | /* end confdefs.h. */ |
| 11892 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11893 | # include <argz.h> |
| 11894 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11895 | |
| 11896 | typedef error_t ac__type_new_; |
| 11897 | int |
| 11898 | main () |
| 11899 | { |
| 11900 | if ((ac__type_new_ *) 0) |
| 11901 | return 0; |
| 11902 | if (sizeof (ac__type_new_)) |
| 11903 | return 0; |
| 11904 | ; |
| 11905 | return 0; |
| 11906 | } |
| 11907 | _ACEOF |
| 11908 | rm -f conftest.$ac_objext |
| 11909 | if { (ac_try="$ac_compile" |
| 11910 | case "(($ac_try" in |
| 11911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11912 | *) ac_try_echo=$ac_try;; |
| 11913 | esac |
| 11914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11915 | (eval "$ac_compile") 2>conftest.er1 |
| 11916 | ac_status=$? |
| 11917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11918 | rm -f conftest.er1 |
| 11919 | cat conftest.err >&5 |
| 11920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11921 | (exit $ac_status); } && |
| 11922 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11923 | { (case "(($ac_try" in |
| 11924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11925 | *) ac_try_echo=$ac_try;; |
| 11926 | esac |
| 11927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11928 | (eval "$ac_try") 2>&5 |
| 11929 | ac_status=$? |
| 11930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11931 | (exit $ac_status); }; } && |
| 11932 | { ac_try='test -s conftest.$ac_objext' |
| 11933 | { (case "(($ac_try" in |
| 11934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11935 | *) ac_try_echo=$ac_try;; |
| 11936 | esac |
| 11937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11938 | (eval "$ac_try") 2>&5 |
| 11939 | ac_status=$? |
| 11940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11941 | (exit $ac_status); }; }; then |
| 11942 | ac_cv_type_error_t=yes |
| 11943 | else |
| 11944 | echo "$as_me: failed program was:" >&5 |
| 11945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11946 | |
| 11947 | ac_cv_type_error_t=no |
| 11948 | fi |
| 11949 | |
| 11950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11951 | fi |
| 11952 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11953 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 11954 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11955 | |
| 11956 | cat >>confdefs.h <<_ACEOF |
| 11957 | #define HAVE_ERROR_T 1 |
| 11958 | _ACEOF |
| 11959 | |
| 11960 | |
| 11961 | else |
| 11962 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11963 | cat >>confdefs.h <<\_ACEOF |
| 11964 | #define error_t int |
| 11965 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11966 | |
| 11967 | fi |
| 11968 | |
| 11969 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11970 | |
| 11971 | |
| 11972 | |
| 11973 | |
| 11974 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11975 | 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] | 11976 | do |
| 11977 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11978 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11979 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11980 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11982 | else |
| 11983 | cat >conftest.$ac_ext <<_ACEOF |
| 11984 | /* confdefs.h. */ |
| 11985 | _ACEOF |
| 11986 | cat confdefs.h >>conftest.$ac_ext |
| 11987 | cat >>conftest.$ac_ext <<_ACEOF |
| 11988 | /* end confdefs.h. */ |
| 11989 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11990 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11991 | #define $ac_func innocuous_$ac_func |
| 11992 | |
| 11993 | /* System header to define __stub macros and hopefully few prototypes, |
| 11994 | which can conflict with char $ac_func (); below. |
| 11995 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11996 | <limits.h> exists even on freestanding compilers. */ |
| 11997 | |
| 11998 | #ifdef __STDC__ |
| 11999 | # include <limits.h> |
| 12000 | #else |
| 12001 | # include <assert.h> |
| 12002 | #endif |
| 12003 | |
| 12004 | #undef $ac_func |
| 12005 | |
| 12006 | /* Override any GCC internal prototype to avoid an error. |
| 12007 | Use char because int might match the return type of a GCC |
| 12008 | builtin and then its argument prototype would still apply. */ |
| 12009 | #ifdef __cplusplus |
| 12010 | extern "C" |
| 12011 | #endif |
| 12012 | char $ac_func (); |
| 12013 | /* The GNU C library defines this for functions which it implements |
| 12014 | to always fail with ENOSYS. Some functions are actually named |
| 12015 | something starting with __ and the normal name is an alias. */ |
| 12016 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12017 | choke me |
| 12018 | #endif |
| 12019 | |
| 12020 | int |
| 12021 | main () |
| 12022 | { |
| 12023 | return $ac_func (); |
| 12024 | ; |
| 12025 | return 0; |
| 12026 | } |
| 12027 | _ACEOF |
| 12028 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12029 | if { (ac_try="$ac_link" |
| 12030 | case "(($ac_try" in |
| 12031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12032 | *) ac_try_echo=$ac_try;; |
| 12033 | esac |
| 12034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12035 | (eval "$ac_link") 2>conftest.er1 |
| 12036 | ac_status=$? |
| 12037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12038 | rm -f conftest.er1 |
| 12039 | cat conftest.err >&5 |
| 12040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12041 | (exit $ac_status); } && |
| 12042 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12043 | { (case "(($ac_try" in |
| 12044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12045 | *) ac_try_echo=$ac_try;; |
| 12046 | esac |
| 12047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12048 | (eval "$ac_try") 2>&5 |
| 12049 | ac_status=$? |
| 12050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12051 | (exit $ac_status); }; } && |
| 12052 | { ac_try='test -s conftest$ac_exeext' |
| 12053 | { (case "(($ac_try" in |
| 12054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12055 | *) ac_try_echo=$ac_try;; |
| 12056 | esac |
| 12057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12058 | (eval "$ac_try") 2>&5 |
| 12059 | ac_status=$? |
| 12060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12061 | (exit $ac_status); }; }; then |
| 12062 | eval "$as_ac_var=yes" |
| 12063 | else |
| 12064 | echo "$as_me: failed program was:" >&5 |
| 12065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12066 | |
| 12067 | eval "$as_ac_var=no" |
| 12068 | fi |
| 12069 | |
| 12070 | rm -f core conftest.err conftest.$ac_objext \ |
| 12071 | conftest$ac_exeext conftest.$ac_ext |
| 12072 | fi |
| 12073 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12074 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12075 | echo "${ECHO_T}$ac_res" >&6; } |
| 12076 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12077 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12078 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12079 | _ACEOF |
| 12080 | |
| 12081 | fi |
| 12082 | done |
| 12083 | |
| 12084 | |
| 12085 | |
| 12086 | |
| 12087 | |
| 12088 | |
| 12089 | |
| 12090 | |
| 12091 | |
| 12092 | |
| 12093 | |
| 12094 | |
| 12095 | |
| 12096 | |
| 12097 | |
| 12098 | |
| 12099 | |
| 12100 | |
| 12101 | |
| 12102 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12103 | |
| 12104 | |
| 12105 | |
| 12106 | |
| 12107 | |
| 12108 | |
| 12109 | |
| 12110 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12111 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 12112 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12113 | do |
| 12114 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12115 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12116 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12117 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12118 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12120 | fi |
| 12121 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12122 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12123 | echo "${ECHO_T}$ac_res" >&6; } |
| 12124 | else |
| 12125 | # Is the header compilable? |
| 12126 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12127 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12128 | cat >conftest.$ac_ext <<_ACEOF |
| 12129 | /* confdefs.h. */ |
| 12130 | _ACEOF |
| 12131 | cat confdefs.h >>conftest.$ac_ext |
| 12132 | cat >>conftest.$ac_ext <<_ACEOF |
| 12133 | /* end confdefs.h. */ |
| 12134 | $ac_includes_default |
| 12135 | #include <$ac_header> |
| 12136 | _ACEOF |
| 12137 | rm -f conftest.$ac_objext |
| 12138 | if { (ac_try="$ac_compile" |
| 12139 | case "(($ac_try" in |
| 12140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12141 | *) ac_try_echo=$ac_try;; |
| 12142 | esac |
| 12143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12144 | (eval "$ac_compile") 2>conftest.er1 |
| 12145 | ac_status=$? |
| 12146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12147 | rm -f conftest.er1 |
| 12148 | cat conftest.err >&5 |
| 12149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12150 | (exit $ac_status); } && |
| 12151 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12152 | { (case "(($ac_try" in |
| 12153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12154 | *) ac_try_echo=$ac_try;; |
| 12155 | esac |
| 12156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12157 | (eval "$ac_try") 2>&5 |
| 12158 | ac_status=$? |
| 12159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12160 | (exit $ac_status); }; } && |
| 12161 | { ac_try='test -s conftest.$ac_objext' |
| 12162 | { (case "(($ac_try" in |
| 12163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12164 | *) ac_try_echo=$ac_try;; |
| 12165 | esac |
| 12166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12167 | (eval "$ac_try") 2>&5 |
| 12168 | ac_status=$? |
| 12169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12170 | (exit $ac_status); }; }; then |
| 12171 | ac_header_compiler=yes |
| 12172 | else |
| 12173 | echo "$as_me: failed program was:" >&5 |
| 12174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12175 | |
| 12176 | ac_header_compiler=no |
| 12177 | fi |
| 12178 | |
| 12179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12180 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12181 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12182 | |
| 12183 | # Is the header present? |
| 12184 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12185 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12186 | cat >conftest.$ac_ext <<_ACEOF |
| 12187 | /* confdefs.h. */ |
| 12188 | _ACEOF |
| 12189 | cat confdefs.h >>conftest.$ac_ext |
| 12190 | cat >>conftest.$ac_ext <<_ACEOF |
| 12191 | /* end confdefs.h. */ |
| 12192 | #include <$ac_header> |
| 12193 | _ACEOF |
| 12194 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12195 | case "(($ac_try" in |
| 12196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12197 | *) ac_try_echo=$ac_try;; |
| 12198 | esac |
| 12199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12200 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12201 | ac_status=$? |
| 12202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12203 | rm -f conftest.er1 |
| 12204 | cat conftest.err >&5 |
| 12205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12206 | (exit $ac_status); } >/dev/null; then |
| 12207 | if test -s conftest.err; then |
| 12208 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12209 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12210 | else |
| 12211 | ac_cpp_err= |
| 12212 | fi |
| 12213 | else |
| 12214 | ac_cpp_err=yes |
| 12215 | fi |
| 12216 | if test -z "$ac_cpp_err"; then |
| 12217 | ac_header_preproc=yes |
| 12218 | else |
| 12219 | echo "$as_me: failed program was:" >&5 |
| 12220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12221 | |
| 12222 | ac_header_preproc=no |
| 12223 | fi |
| 12224 | |
| 12225 | rm -f conftest.err conftest.$ac_ext |
| 12226 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12227 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12228 | |
| 12229 | # So? What about this header? |
| 12230 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12231 | yes:no: ) |
| 12232 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12233 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12234 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12235 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12236 | ac_header_preproc=yes |
| 12237 | ;; |
| 12238 | no:yes:* ) |
| 12239 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12240 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12241 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12242 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12243 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12244 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12245 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12246 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12247 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12248 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12249 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12250 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12251 | ( cat <<\_ASBOX |
| 12252 | ## ----------------------------------- ## |
| 12253 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12254 | ## ----------------------------------- ## |
| 12255 | _ASBOX |
| 12256 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12257 | ;; |
| 12258 | esac |
| 12259 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12260 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12261 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12263 | else |
| 12264 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12265 | fi |
| 12266 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12267 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12268 | echo "${ECHO_T}$ac_res" >&6; } |
| 12269 | |
| 12270 | fi |
| 12271 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12272 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12273 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12274 | _ACEOF |
| 12275 | |
| 12276 | fi |
| 12277 | |
| 12278 | done |
| 12279 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12280 | |
| 12281 | |
| 12282 | |
| 12283 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12284 | 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] | 12285 | do |
| 12286 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12287 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12288 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12289 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12290 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12292 | fi |
| 12293 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12294 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12295 | echo "${ECHO_T}$ac_res" >&6; } |
| 12296 | else |
| 12297 | # Is the header compilable? |
| 12298 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12299 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12300 | cat >conftest.$ac_ext <<_ACEOF |
| 12301 | /* confdefs.h. */ |
| 12302 | _ACEOF |
| 12303 | cat confdefs.h >>conftest.$ac_ext |
| 12304 | cat >>conftest.$ac_ext <<_ACEOF |
| 12305 | /* end confdefs.h. */ |
| 12306 | $ac_includes_default |
| 12307 | #include <$ac_header> |
| 12308 | _ACEOF |
| 12309 | rm -f conftest.$ac_objext |
| 12310 | if { (ac_try="$ac_compile" |
| 12311 | case "(($ac_try" in |
| 12312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12313 | *) ac_try_echo=$ac_try;; |
| 12314 | esac |
| 12315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12316 | (eval "$ac_compile") 2>conftest.er1 |
| 12317 | ac_status=$? |
| 12318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12319 | rm -f conftest.er1 |
| 12320 | cat conftest.err >&5 |
| 12321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12322 | (exit $ac_status); } && |
| 12323 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12324 | { (case "(($ac_try" in |
| 12325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12326 | *) ac_try_echo=$ac_try;; |
| 12327 | esac |
| 12328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12329 | (eval "$ac_try") 2>&5 |
| 12330 | ac_status=$? |
| 12331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12332 | (exit $ac_status); }; } && |
| 12333 | { ac_try='test -s conftest.$ac_objext' |
| 12334 | { (case "(($ac_try" in |
| 12335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12336 | *) ac_try_echo=$ac_try;; |
| 12337 | esac |
| 12338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12339 | (eval "$ac_try") 2>&5 |
| 12340 | ac_status=$? |
| 12341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12342 | (exit $ac_status); }; }; then |
| 12343 | ac_header_compiler=yes |
| 12344 | else |
| 12345 | echo "$as_me: failed program was:" >&5 |
| 12346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12347 | |
| 12348 | ac_header_compiler=no |
| 12349 | fi |
| 12350 | |
| 12351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12352 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12353 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12354 | |
| 12355 | # Is the header present? |
| 12356 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12357 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12358 | cat >conftest.$ac_ext <<_ACEOF |
| 12359 | /* confdefs.h. */ |
| 12360 | _ACEOF |
| 12361 | cat confdefs.h >>conftest.$ac_ext |
| 12362 | cat >>conftest.$ac_ext <<_ACEOF |
| 12363 | /* end confdefs.h. */ |
| 12364 | #include <$ac_header> |
| 12365 | _ACEOF |
| 12366 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12367 | case "(($ac_try" in |
| 12368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12369 | *) ac_try_echo=$ac_try;; |
| 12370 | esac |
| 12371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12372 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12373 | ac_status=$? |
| 12374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12375 | rm -f conftest.er1 |
| 12376 | cat conftest.err >&5 |
| 12377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12378 | (exit $ac_status); } >/dev/null; then |
| 12379 | if test -s conftest.err; then |
| 12380 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12381 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12382 | else |
| 12383 | ac_cpp_err= |
| 12384 | fi |
| 12385 | else |
| 12386 | ac_cpp_err=yes |
| 12387 | fi |
| 12388 | if test -z "$ac_cpp_err"; then |
| 12389 | ac_header_preproc=yes |
| 12390 | else |
| 12391 | echo "$as_me: failed program was:" >&5 |
| 12392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12393 | |
| 12394 | ac_header_preproc=no |
| 12395 | fi |
| 12396 | |
| 12397 | rm -f conftest.err conftest.$ac_ext |
| 12398 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12399 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12400 | |
| 12401 | # So? What about this header? |
| 12402 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12403 | yes:no: ) |
| 12404 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12405 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12406 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12407 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12408 | ac_header_preproc=yes |
| 12409 | ;; |
| 12410 | no:yes:* ) |
| 12411 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12412 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12413 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12414 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12415 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12416 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12417 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12418 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12419 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12420 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12421 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12422 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12423 | ( cat <<\_ASBOX |
| 12424 | ## ----------------------------------- ## |
| 12425 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12426 | ## ----------------------------------- ## |
| 12427 | _ASBOX |
| 12428 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12429 | ;; |
| 12430 | esac |
| 12431 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12432 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12433 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12435 | else |
| 12436 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12437 | fi |
| 12438 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12439 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12440 | echo "${ECHO_T}$ac_res" >&6; } |
| 12441 | |
| 12442 | fi |
| 12443 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12444 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12445 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12446 | _ACEOF |
| 12447 | |
| 12448 | fi |
| 12449 | |
| 12450 | done |
| 12451 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12452 | |
| 12453 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12454 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12455 | do |
| 12456 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12457 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12458 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12459 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12460 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12462 | fi |
| 12463 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12464 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12465 | echo "${ECHO_T}$ac_res" >&6; } |
| 12466 | else |
| 12467 | # Is the header compilable? |
| 12468 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12469 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12470 | cat >conftest.$ac_ext <<_ACEOF |
| 12471 | /* confdefs.h. */ |
| 12472 | _ACEOF |
| 12473 | cat confdefs.h >>conftest.$ac_ext |
| 12474 | cat >>conftest.$ac_ext <<_ACEOF |
| 12475 | /* end confdefs.h. */ |
| 12476 | $ac_includes_default |
| 12477 | #include <$ac_header> |
| 12478 | _ACEOF |
| 12479 | rm -f conftest.$ac_objext |
| 12480 | if { (ac_try="$ac_compile" |
| 12481 | case "(($ac_try" in |
| 12482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12483 | *) ac_try_echo=$ac_try;; |
| 12484 | esac |
| 12485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12486 | (eval "$ac_compile") 2>conftest.er1 |
| 12487 | ac_status=$? |
| 12488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12489 | rm -f conftest.er1 |
| 12490 | cat conftest.err >&5 |
| 12491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12492 | (exit $ac_status); } && |
| 12493 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12494 | { (case "(($ac_try" in |
| 12495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12496 | *) ac_try_echo=$ac_try;; |
| 12497 | esac |
| 12498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12499 | (eval "$ac_try") 2>&5 |
| 12500 | ac_status=$? |
| 12501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12502 | (exit $ac_status); }; } && |
| 12503 | { ac_try='test -s conftest.$ac_objext' |
| 12504 | { (case "(($ac_try" in |
| 12505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12506 | *) ac_try_echo=$ac_try;; |
| 12507 | esac |
| 12508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12509 | (eval "$ac_try") 2>&5 |
| 12510 | ac_status=$? |
| 12511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12512 | (exit $ac_status); }; }; then |
| 12513 | ac_header_compiler=yes |
| 12514 | else |
| 12515 | echo "$as_me: failed program was:" >&5 |
| 12516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12517 | |
| 12518 | ac_header_compiler=no |
| 12519 | fi |
| 12520 | |
| 12521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12522 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12523 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12524 | |
| 12525 | # Is the header present? |
| 12526 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12527 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12528 | cat >conftest.$ac_ext <<_ACEOF |
| 12529 | /* confdefs.h. */ |
| 12530 | _ACEOF |
| 12531 | cat confdefs.h >>conftest.$ac_ext |
| 12532 | cat >>conftest.$ac_ext <<_ACEOF |
| 12533 | /* end confdefs.h. */ |
| 12534 | #include <$ac_header> |
| 12535 | _ACEOF |
| 12536 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12537 | case "(($ac_try" in |
| 12538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12539 | *) ac_try_echo=$ac_try;; |
| 12540 | esac |
| 12541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12542 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12543 | ac_status=$? |
| 12544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12545 | rm -f conftest.er1 |
| 12546 | cat conftest.err >&5 |
| 12547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12548 | (exit $ac_status); } >/dev/null; then |
| 12549 | if test -s conftest.err; then |
| 12550 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12551 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12552 | else |
| 12553 | ac_cpp_err= |
| 12554 | fi |
| 12555 | else |
| 12556 | ac_cpp_err=yes |
| 12557 | fi |
| 12558 | if test -z "$ac_cpp_err"; then |
| 12559 | ac_header_preproc=yes |
| 12560 | else |
| 12561 | echo "$as_me: failed program was:" >&5 |
| 12562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12563 | |
| 12564 | ac_header_preproc=no |
| 12565 | fi |
| 12566 | |
| 12567 | rm -f conftest.err conftest.$ac_ext |
| 12568 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12569 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12570 | |
| 12571 | # So? What about this header? |
| 12572 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12573 | yes:no: ) |
| 12574 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12575 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12576 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12577 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12578 | ac_header_preproc=yes |
| 12579 | ;; |
| 12580 | no:yes:* ) |
| 12581 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12582 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12583 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12584 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12585 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12586 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12587 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12588 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12589 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12590 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12591 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12592 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12593 | ( cat <<\_ASBOX |
| 12594 | ## ----------------------------------- ## |
| 12595 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12596 | ## ----------------------------------- ## |
| 12597 | _ASBOX |
| 12598 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12599 | ;; |
| 12600 | esac |
| 12601 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12602 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12603 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12605 | else |
| 12606 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12607 | fi |
| 12608 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12609 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12610 | echo "${ECHO_T}$ac_res" >&6; } |
| 12611 | |
| 12612 | fi |
| 12613 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12614 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12615 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12616 | _ACEOF |
| 12617 | break |
| 12618 | fi |
| 12619 | |
| 12620 | done |
| 12621 | |
| 12622 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12623 | |
| 12624 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12625 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12626 | do |
| 12627 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12628 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12629 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12630 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12632 | else |
| 12633 | cat >conftest.$ac_ext <<_ACEOF |
| 12634 | /* confdefs.h. */ |
| 12635 | _ACEOF |
| 12636 | cat confdefs.h >>conftest.$ac_ext |
| 12637 | cat >>conftest.$ac_ext <<_ACEOF |
| 12638 | /* end confdefs.h. */ |
| 12639 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12640 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12641 | #define $ac_func innocuous_$ac_func |
| 12642 | |
| 12643 | /* System header to define __stub macros and hopefully few prototypes, |
| 12644 | which can conflict with char $ac_func (); below. |
| 12645 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12646 | <limits.h> exists even on freestanding compilers. */ |
| 12647 | |
| 12648 | #ifdef __STDC__ |
| 12649 | # include <limits.h> |
| 12650 | #else |
| 12651 | # include <assert.h> |
| 12652 | #endif |
| 12653 | |
| 12654 | #undef $ac_func |
| 12655 | |
| 12656 | /* Override any GCC internal prototype to avoid an error. |
| 12657 | Use char because int might match the return type of a GCC |
| 12658 | builtin and then its argument prototype would still apply. */ |
| 12659 | #ifdef __cplusplus |
| 12660 | extern "C" |
| 12661 | #endif |
| 12662 | char $ac_func (); |
| 12663 | /* The GNU C library defines this for functions which it implements |
| 12664 | to always fail with ENOSYS. Some functions are actually named |
| 12665 | something starting with __ and the normal name is an alias. */ |
| 12666 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12667 | choke me |
| 12668 | #endif |
| 12669 | |
| 12670 | int |
| 12671 | main () |
| 12672 | { |
| 12673 | return $ac_func (); |
| 12674 | ; |
| 12675 | return 0; |
| 12676 | } |
| 12677 | _ACEOF |
| 12678 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12679 | if { (ac_try="$ac_link" |
| 12680 | case "(($ac_try" in |
| 12681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12682 | *) ac_try_echo=$ac_try;; |
| 12683 | esac |
| 12684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12685 | (eval "$ac_link") 2>conftest.er1 |
| 12686 | ac_status=$? |
| 12687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12688 | rm -f conftest.er1 |
| 12689 | cat conftest.err >&5 |
| 12690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12691 | (exit $ac_status); } && |
| 12692 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12693 | { (case "(($ac_try" in |
| 12694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12695 | *) ac_try_echo=$ac_try;; |
| 12696 | esac |
| 12697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12698 | (eval "$ac_try") 2>&5 |
| 12699 | ac_status=$? |
| 12700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12701 | (exit $ac_status); }; } && |
| 12702 | { ac_try='test -s conftest$ac_exeext' |
| 12703 | { (case "(($ac_try" in |
| 12704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12705 | *) ac_try_echo=$ac_try;; |
| 12706 | esac |
| 12707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12708 | (eval "$ac_try") 2>&5 |
| 12709 | ac_status=$? |
| 12710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12711 | (exit $ac_status); }; }; then |
| 12712 | eval "$as_ac_var=yes" |
| 12713 | else |
| 12714 | echo "$as_me: failed program was:" >&5 |
| 12715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12716 | |
| 12717 | eval "$as_ac_var=no" |
| 12718 | fi |
| 12719 | |
| 12720 | rm -f core conftest.err conftest.$ac_objext \ |
| 12721 | conftest$ac_exeext conftest.$ac_ext |
| 12722 | fi |
| 12723 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12724 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12725 | echo "${ECHO_T}$ac_res" >&6; } |
| 12726 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12727 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12728 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12729 | _ACEOF |
| 12730 | break |
| 12731 | fi |
| 12732 | done |
| 12733 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12734 | |
| 12735 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12736 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12737 | do |
| 12738 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12739 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12740 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12741 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12743 | else |
| 12744 | cat >conftest.$ac_ext <<_ACEOF |
| 12745 | /* confdefs.h. */ |
| 12746 | _ACEOF |
| 12747 | cat confdefs.h >>conftest.$ac_ext |
| 12748 | cat >>conftest.$ac_ext <<_ACEOF |
| 12749 | /* end confdefs.h. */ |
| 12750 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12751 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12752 | #define $ac_func innocuous_$ac_func |
| 12753 | |
| 12754 | /* System header to define __stub macros and hopefully few prototypes, |
| 12755 | which can conflict with char $ac_func (); below. |
| 12756 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12757 | <limits.h> exists even on freestanding compilers. */ |
| 12758 | |
| 12759 | #ifdef __STDC__ |
| 12760 | # include <limits.h> |
| 12761 | #else |
| 12762 | # include <assert.h> |
| 12763 | #endif |
| 12764 | |
| 12765 | #undef $ac_func |
| 12766 | |
| 12767 | /* Override any GCC internal prototype to avoid an error. |
| 12768 | Use char because int might match the return type of a GCC |
| 12769 | builtin and then its argument prototype would still apply. */ |
| 12770 | #ifdef __cplusplus |
| 12771 | extern "C" |
| 12772 | #endif |
| 12773 | char $ac_func (); |
| 12774 | /* The GNU C library defines this for functions which it implements |
| 12775 | to always fail with ENOSYS. Some functions are actually named |
| 12776 | something starting with __ and the normal name is an alias. */ |
| 12777 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12778 | choke me |
| 12779 | #endif |
| 12780 | |
| 12781 | int |
| 12782 | main () |
| 12783 | { |
| 12784 | return $ac_func (); |
| 12785 | ; |
| 12786 | return 0; |
| 12787 | } |
| 12788 | _ACEOF |
| 12789 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12790 | if { (ac_try="$ac_link" |
| 12791 | case "(($ac_try" in |
| 12792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12793 | *) ac_try_echo=$ac_try;; |
| 12794 | esac |
| 12795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12796 | (eval "$ac_link") 2>conftest.er1 |
| 12797 | ac_status=$? |
| 12798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12799 | rm -f conftest.er1 |
| 12800 | cat conftest.err >&5 |
| 12801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12802 | (exit $ac_status); } && |
| 12803 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12804 | { (case "(($ac_try" in |
| 12805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12806 | *) ac_try_echo=$ac_try;; |
| 12807 | esac |
| 12808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12809 | (eval "$ac_try") 2>&5 |
| 12810 | ac_status=$? |
| 12811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12812 | (exit $ac_status); }; } && |
| 12813 | { ac_try='test -s conftest$ac_exeext' |
| 12814 | { (case "(($ac_try" in |
| 12815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12816 | *) ac_try_echo=$ac_try;; |
| 12817 | esac |
| 12818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12819 | (eval "$ac_try") 2>&5 |
| 12820 | ac_status=$? |
| 12821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12822 | (exit $ac_status); }; }; then |
| 12823 | eval "$as_ac_var=yes" |
| 12824 | else |
| 12825 | echo "$as_me: failed program was:" >&5 |
| 12826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12827 | |
| 12828 | eval "$as_ac_var=no" |
| 12829 | fi |
| 12830 | |
| 12831 | rm -f core conftest.err conftest.$ac_objext \ |
| 12832 | conftest$ac_exeext conftest.$ac_ext |
| 12833 | fi |
| 12834 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12835 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12836 | echo "${ECHO_T}$ac_res" >&6; } |
| 12837 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12838 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12839 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12840 | _ACEOF |
| 12841 | break |
| 12842 | fi |
| 12843 | done |
| 12844 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12845 | |
| 12846 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12847 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12848 | do |
| 12849 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12850 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12851 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12852 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12854 | else |
| 12855 | cat >conftest.$ac_ext <<_ACEOF |
| 12856 | /* confdefs.h. */ |
| 12857 | _ACEOF |
| 12858 | cat confdefs.h >>conftest.$ac_ext |
| 12859 | cat >>conftest.$ac_ext <<_ACEOF |
| 12860 | /* end confdefs.h. */ |
| 12861 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12862 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12863 | #define $ac_func innocuous_$ac_func |
| 12864 | |
| 12865 | /* System header to define __stub macros and hopefully few prototypes, |
| 12866 | which can conflict with char $ac_func (); below. |
| 12867 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12868 | <limits.h> exists even on freestanding compilers. */ |
| 12869 | |
| 12870 | #ifdef __STDC__ |
| 12871 | # include <limits.h> |
| 12872 | #else |
| 12873 | # include <assert.h> |
| 12874 | #endif |
| 12875 | |
| 12876 | #undef $ac_func |
| 12877 | |
| 12878 | /* Override any GCC internal prototype to avoid an error. |
| 12879 | Use char because int might match the return type of a GCC |
| 12880 | builtin and then its argument prototype would still apply. */ |
| 12881 | #ifdef __cplusplus |
| 12882 | extern "C" |
| 12883 | #endif |
| 12884 | char $ac_func (); |
| 12885 | /* The GNU C library defines this for functions which it implements |
| 12886 | to always fail with ENOSYS. Some functions are actually named |
| 12887 | something starting with __ and the normal name is an alias. */ |
| 12888 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12889 | choke me |
| 12890 | #endif |
| 12891 | |
| 12892 | int |
| 12893 | main () |
| 12894 | { |
| 12895 | return $ac_func (); |
| 12896 | ; |
| 12897 | return 0; |
| 12898 | } |
| 12899 | _ACEOF |
| 12900 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12901 | if { (ac_try="$ac_link" |
| 12902 | case "(($ac_try" in |
| 12903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12904 | *) ac_try_echo=$ac_try;; |
| 12905 | esac |
| 12906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12907 | (eval "$ac_link") 2>conftest.er1 |
| 12908 | ac_status=$? |
| 12909 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12910 | rm -f conftest.er1 |
| 12911 | cat conftest.err >&5 |
| 12912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12913 | (exit $ac_status); } && |
| 12914 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12915 | { (case "(($ac_try" in |
| 12916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12917 | *) ac_try_echo=$ac_try;; |
| 12918 | esac |
| 12919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12920 | (eval "$ac_try") 2>&5 |
| 12921 | ac_status=$? |
| 12922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12923 | (exit $ac_status); }; } && |
| 12924 | { ac_try='test -s conftest$ac_exeext' |
| 12925 | { (case "(($ac_try" in |
| 12926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12927 | *) ac_try_echo=$ac_try;; |
| 12928 | esac |
| 12929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12930 | (eval "$ac_try") 2>&5 |
| 12931 | ac_status=$? |
| 12932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12933 | (exit $ac_status); }; }; then |
| 12934 | eval "$as_ac_var=yes" |
| 12935 | else |
| 12936 | echo "$as_me: failed program was:" >&5 |
| 12937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12938 | |
| 12939 | eval "$as_ac_var=no" |
| 12940 | fi |
| 12941 | |
| 12942 | rm -f core conftest.err conftest.$ac_objext \ |
| 12943 | conftest$ac_exeext conftest.$ac_ext |
| 12944 | fi |
| 12945 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12946 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12947 | echo "${ECHO_T}$ac_res" >&6; } |
| 12948 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12949 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12950 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12951 | _ACEOF |
| 12952 | break |
| 12953 | fi |
| 12954 | done |
| 12955 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12956 | |
| 12957 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12958 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12959 | do |
| 12960 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12961 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12962 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12963 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12965 | else |
| 12966 | cat >conftest.$ac_ext <<_ACEOF |
| 12967 | /* confdefs.h. */ |
| 12968 | _ACEOF |
| 12969 | cat confdefs.h >>conftest.$ac_ext |
| 12970 | cat >>conftest.$ac_ext <<_ACEOF |
| 12971 | /* end confdefs.h. */ |
| 12972 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12973 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12974 | #define $ac_func innocuous_$ac_func |
| 12975 | |
| 12976 | /* System header to define __stub macros and hopefully few prototypes, |
| 12977 | which can conflict with char $ac_func (); below. |
| 12978 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12979 | <limits.h> exists even on freestanding compilers. */ |
| 12980 | |
| 12981 | #ifdef __STDC__ |
| 12982 | # include <limits.h> |
| 12983 | #else |
| 12984 | # include <assert.h> |
| 12985 | #endif |
| 12986 | |
| 12987 | #undef $ac_func |
| 12988 | |
| 12989 | /* Override any GCC internal prototype to avoid an error. |
| 12990 | Use char because int might match the return type of a GCC |
| 12991 | builtin and then its argument prototype would still apply. */ |
| 12992 | #ifdef __cplusplus |
| 12993 | extern "C" |
| 12994 | #endif |
| 12995 | char $ac_func (); |
| 12996 | /* The GNU C library defines this for functions which it implements |
| 12997 | to always fail with ENOSYS. Some functions are actually named |
| 12998 | something starting with __ and the normal name is an alias. */ |
| 12999 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 13000 | choke me |
| 13001 | #endif |
| 13002 | |
| 13003 | int |
| 13004 | main () |
| 13005 | { |
| 13006 | return $ac_func (); |
| 13007 | ; |
| 13008 | return 0; |
| 13009 | } |
| 13010 | _ACEOF |
| 13011 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13012 | if { (ac_try="$ac_link" |
| 13013 | case "(($ac_try" in |
| 13014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13015 | *) ac_try_echo=$ac_try;; |
| 13016 | esac |
| 13017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13018 | (eval "$ac_link") 2>conftest.er1 |
| 13019 | ac_status=$? |
| 13020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13021 | rm -f conftest.er1 |
| 13022 | cat conftest.err >&5 |
| 13023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13024 | (exit $ac_status); } && |
| 13025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13026 | { (case "(($ac_try" in |
| 13027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13028 | *) ac_try_echo=$ac_try;; |
| 13029 | esac |
| 13030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13031 | (eval "$ac_try") 2>&5 |
| 13032 | ac_status=$? |
| 13033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13034 | (exit $ac_status); }; } && |
| 13035 | { ac_try='test -s conftest$ac_exeext' |
| 13036 | { (case "(($ac_try" in |
| 13037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13038 | *) ac_try_echo=$ac_try;; |
| 13039 | esac |
| 13040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13041 | (eval "$ac_try") 2>&5 |
| 13042 | ac_status=$? |
| 13043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13044 | (exit $ac_status); }; }; then |
| 13045 | eval "$as_ac_var=yes" |
| 13046 | else |
| 13047 | echo "$as_me: failed program was:" >&5 |
| 13048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13049 | |
| 13050 | eval "$as_ac_var=no" |
| 13051 | fi |
| 13052 | |
| 13053 | rm -f core conftest.err conftest.$ac_objext \ |
| 13054 | conftest$ac_exeext conftest.$ac_ext |
| 13055 | fi |
| 13056 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13057 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13058 | echo "${ECHO_T}$ac_res" >&6; } |
| 13059 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13060 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13061 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13062 | _ACEOF |
| 13063 | |
| 13064 | fi |
| 13065 | done |
| 13066 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13067 | |
| 13068 | |
| 13069 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13070 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13071 | do |
| 13072 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13073 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13074 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 13075 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 13076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13077 | else |
| 13078 | cat >conftest.$ac_ext <<_ACEOF |
| 13079 | /* confdefs.h. */ |
| 13080 | _ACEOF |
| 13081 | cat confdefs.h >>conftest.$ac_ext |
| 13082 | cat >>conftest.$ac_ext <<_ACEOF |
| 13083 | /* end confdefs.h. */ |
| 13084 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13085 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13086 | #define $ac_func innocuous_$ac_func |
| 13087 | |
| 13088 | /* System header to define __stub macros and hopefully few prototypes, |
| 13089 | which can conflict with char $ac_func (); below. |
| 13090 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13091 | <limits.h> exists even on freestanding compilers. */ |
| 13092 | |
| 13093 | #ifdef __STDC__ |
| 13094 | # include <limits.h> |
| 13095 | #else |
| 13096 | # include <assert.h> |
| 13097 | #endif |
| 13098 | |
| 13099 | #undef $ac_func |
| 13100 | |
| 13101 | /* Override any GCC internal prototype to avoid an error. |
| 13102 | Use char because int might match the return type of a GCC |
| 13103 | builtin and then its argument prototype would still apply. */ |
| 13104 | #ifdef __cplusplus |
| 13105 | extern "C" |
| 13106 | #endif |
| 13107 | char $ac_func (); |
| 13108 | /* The GNU C library defines this for functions which it implements |
| 13109 | to always fail with ENOSYS. Some functions are actually named |
| 13110 | something starting with __ and the normal name is an alias. */ |
| 13111 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 13112 | choke me |
| 13113 | #endif |
| 13114 | |
| 13115 | int |
| 13116 | main () |
| 13117 | { |
| 13118 | return $ac_func (); |
| 13119 | ; |
| 13120 | return 0; |
| 13121 | } |
| 13122 | _ACEOF |
| 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 |
| 13157 | eval "$as_ac_var=yes" |
| 13158 | else |
| 13159 | echo "$as_me: failed program was:" >&5 |
| 13160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13161 | |
| 13162 | eval "$as_ac_var=no" |
| 13163 | fi |
| 13164 | |
| 13165 | rm -f core conftest.err conftest.$ac_objext \ |
| 13166 | conftest$ac_exeext conftest.$ac_ext |
| 13167 | fi |
| 13168 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13169 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13170 | echo "${ECHO_T}$ac_res" >&6; } |
| 13171 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13172 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13173 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13174 | _ACEOF |
| 13175 | |
| 13176 | fi |
| 13177 | done |
| 13178 | |
| 13179 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 13180 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 13181 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13182 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 13183 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13184 | LLVMGCCCOMMAND="$LLVMGCC" |
| 13185 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13186 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 13187 | |
| 13188 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 13189 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13190 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 13191 | set dummy $LLVMGCC; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13192 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13193 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13194 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 13195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13196 | else |
| 13197 | case $LLVMGCC in |
| 13198 | [\\/]* | ?:[\\/]*) |
| 13199 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 13200 | ;; |
| 13201 | *) |
| 13202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13203 | for as_dir in $PATH |
| 13204 | do |
| 13205 | IFS=$as_save_IFS |
| 13206 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13207 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13208 | 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] | 13209 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13210 | 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] | 13211 | break 2 |
| 13212 | fi |
| 13213 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13214 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13215 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13216 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13217 | ;; |
| 13218 | esac |
| 13219 | fi |
| 13220 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13221 | if test -n "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13222 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 13223 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13224 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13225 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13226 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13227 | fi |
| 13228 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13229 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13230 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 13231 | set dummy $LLVMGXX; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13232 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13233 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13234 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 13235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13236 | else |
| 13237 | case $LLVMGXX in |
| 13238 | [\\/]* | ?:[\\/]*) |
| 13239 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 13240 | ;; |
| 13241 | *) |
| 13242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13243 | for as_dir in $PATH |
| 13244 | do |
| 13245 | IFS=$as_save_IFS |
| 13246 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13247 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13248 | 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] | 13249 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13250 | 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] | 13251 | break 2 |
| 13252 | fi |
| 13253 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13254 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13255 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13256 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13257 | ;; |
| 13258 | esac |
| 13259 | fi |
| 13260 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13261 | if test -n "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13262 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 13263 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13264 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13265 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13266 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13267 | fi |
| 13268 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13269 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13270 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13271 | if test -z "$LLVMGCC"; then |
| 13272 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13273 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13274 | fi |
| 13275 | if test -z "$LLVMGXX"; then |
| 13276 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13277 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13278 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13279 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13280 | LLVMGCC=$LLVMGCC |
| 13281 | |
| 13282 | LLVMGXX=$LLVMGXX |
| 13283 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13284 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 13285 | |
| 13286 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 13287 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13288 | fi |
| 13289 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13290 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 13291 | # Check whether --with-llvmcc was given. |
| 13292 | if test "${with_llvmcc+set}" = set; then |
| 13293 | withval=$with_llvmcc; |
| 13294 | else |
| 13295 | with_llvmcc=check |
| 13296 | fi |
| 13297 | |
| 13298 | { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5 |
| 13299 | echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; } |
| 13300 | if test "$with_llvmcc" != "check"; then |
| 13301 | if (test "$with_llvmcc" != "llvm-gcc" && |
| 13302 | test "$with_llvmcc" != "clang" && |
| 13303 | test "$with_llvmcc" != "none"); then |
| 13304 | { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5 |
| 13305 | echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;} |
| 13306 | { (exit 1); exit 1; }; } |
| 13307 | fi |
| 13308 | WITH_LLVMCC="$with_llvmcc" |
| 13309 | elif test -n "$LLVMGCC"; then |
| 13310 | WITH_LLVMCC=llvm-gcc |
| 13311 | elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then |
| 13312 | WITH_LLVMCC=clang |
| 13313 | else |
| 13314 | WITH_LLVMCC=none |
| 13315 | fi |
| 13316 | { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5 |
| 13317 | echo "${ECHO_T}$WITH_LLVMCC" >&6; } |
| 13318 | LLVMCC_OPTION=$WITH_LLVMCC |
| 13319 | |
| 13320 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13321 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 13322 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13323 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 13324 | ICC=no |
| 13325 | IXX=no |
| 13326 | case $CC in |
| 13327 | icc*|icpc*) |
| 13328 | ICC=yes |
| 13329 | IXX=yes |
| 13330 | ;; |
| 13331 | *) |
| 13332 | ;; |
| 13333 | esac |
| 13334 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13335 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 13336 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13337 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 13338 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 13339 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13340 | fi |
| 13341 | |
| 13342 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 13343 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13344 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 13345 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 13346 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13347 | fi |
| 13348 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 13349 | if test "$GCC" = "yes" |
| 13350 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13351 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13352 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 13353 | #error Unsupported GCC version |
| 13354 | #endif |
| 13355 | |
| 13356 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13357 | rm -f conftest.$ac_objext |
| 13358 | if { (ac_try="$ac_compile" |
| 13359 | case "(($ac_try" in |
| 13360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13361 | *) ac_try_echo=$ac_try;; |
| 13362 | esac |
| 13363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13364 | (eval "$ac_compile") 2>conftest.er1 |
| 13365 | ac_status=$? |
| 13366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13367 | rm -f conftest.er1 |
| 13368 | cat conftest.err >&5 |
| 13369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13370 | (exit $ac_status); } && |
| 13371 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13372 | { (case "(($ac_try" in |
| 13373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13374 | *) ac_try_echo=$ac_try;; |
| 13375 | esac |
| 13376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13377 | (eval "$ac_try") 2>&5 |
| 13378 | ac_status=$? |
| 13379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13380 | (exit $ac_status); }; } && |
| 13381 | { ac_try='test -s conftest.$ac_objext' |
| 13382 | { (case "(($ac_try" in |
| 13383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13384 | *) ac_try_echo=$ac_try;; |
| 13385 | esac |
| 13386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13387 | (eval "$ac_try") 2>&5 |
| 13388 | ac_status=$? |
| 13389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13390 | (exit $ac_status); }; }; then |
| 13391 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13392 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13393 | echo "$as_me: failed program was:" >&5 |
| 13394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13395 | |
| 13396 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 13397 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 13398 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13399 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13400 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13402 | fi |
| 13403 | |
| 13404 | if test -z "$llvm_cv_gnu_make_command" |
| 13405 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13406 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 13407 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 13408 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13409 | fi |
| 13410 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13411 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13412 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13413 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13414 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 13415 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13416 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 13417 | |
| 13418 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 13419 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13420 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 13421 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13422 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 13423 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13424 | |
| 13425 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 13426 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 13427 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 13428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13429 | else |
| 13430 | ac_check_lib_save_LIBS=$LIBS |
| 13431 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13432 | cat >conftest.$ac_ext <<_ACEOF |
| 13433 | /* confdefs.h. */ |
| 13434 | _ACEOF |
| 13435 | cat confdefs.h >>conftest.$ac_ext |
| 13436 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13437 | /* end confdefs.h. */ |
| 13438 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13439 | /* Override any GCC internal prototype to avoid an error. |
| 13440 | Use char because int might match the return type of a GCC |
| 13441 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13442 | #ifdef __cplusplus |
| 13443 | extern "C" |
| 13444 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13445 | char sin (); |
| 13446 | int |
| 13447 | main () |
| 13448 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13449 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13450 | ; |
| 13451 | return 0; |
| 13452 | } |
| 13453 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13454 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13455 | if { (ac_try="$ac_link" |
| 13456 | case "(($ac_try" in |
| 13457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13458 | *) ac_try_echo=$ac_try;; |
| 13459 | esac |
| 13460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13461 | (eval "$ac_link") 2>conftest.er1 |
| 13462 | ac_status=$? |
| 13463 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13464 | rm -f conftest.er1 |
| 13465 | cat conftest.err >&5 |
| 13466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13467 | (exit $ac_status); } && |
| 13468 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13469 | { (case "(($ac_try" in |
| 13470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13471 | *) ac_try_echo=$ac_try;; |
| 13472 | esac |
| 13473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13474 | (eval "$ac_try") 2>&5 |
| 13475 | ac_status=$? |
| 13476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13477 | (exit $ac_status); }; } && |
| 13478 | { ac_try='test -s conftest$ac_exeext' |
| 13479 | { (case "(($ac_try" in |
| 13480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13481 | *) ac_try_echo=$ac_try;; |
| 13482 | esac |
| 13483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13484 | (eval "$ac_try") 2>&5 |
| 13485 | ac_status=$? |
| 13486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13487 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13488 | ac_cv_lib_m_sin=yes |
| 13489 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13490 | echo "$as_me: failed program was:" >&5 |
| 13491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13492 | |
| 13493 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13494 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13495 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13496 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13497 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13498 | LIBS=$ac_check_lib_save_LIBS |
| 13499 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13500 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 13501 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 13502 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13503 | cat >>confdefs.h <<_ACEOF |
| 13504 | #define HAVE_LIBM 1 |
| 13505 | _ACEOF |
| 13506 | |
| 13507 | LIBS="-lm $LIBS" |
| 13508 | |
| 13509 | fi |
| 13510 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 13511 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13512 | |
| 13513 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 13514 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 13515 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 13516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13517 | else |
| 13518 | ac_check_lib_save_LIBS=$LIBS |
| 13519 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13520 | cat >conftest.$ac_ext <<_ACEOF |
| 13521 | /* confdefs.h. */ |
| 13522 | _ACEOF |
| 13523 | cat confdefs.h >>conftest.$ac_ext |
| 13524 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13525 | /* end confdefs.h. */ |
| 13526 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13527 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13528 | int |
| 13529 | main () |
| 13530 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13531 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13532 | ; |
| 13533 | return 0; |
| 13534 | } |
| 13535 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13536 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13537 | if { (ac_try="$ac_link" |
| 13538 | case "(($ac_try" in |
| 13539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13540 | *) ac_try_echo=$ac_try;; |
| 13541 | esac |
| 13542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13543 | (eval "$ac_link") 2>conftest.er1 |
| 13544 | ac_status=$? |
| 13545 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13546 | rm -f conftest.er1 |
| 13547 | cat conftest.err >&5 |
| 13548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13549 | (exit $ac_status); } && |
| 13550 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13551 | { (case "(($ac_try" in |
| 13552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13553 | *) ac_try_echo=$ac_try;; |
| 13554 | esac |
| 13555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13556 | (eval "$ac_try") 2>&5 |
| 13557 | ac_status=$? |
| 13558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13559 | (exit $ac_status); }; } && |
| 13560 | { ac_try='test -s conftest$ac_exeext' |
| 13561 | { (case "(($ac_try" in |
| 13562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13563 | *) ac_try_echo=$ac_try;; |
| 13564 | esac |
| 13565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13566 | (eval "$ac_try") 2>&5 |
| 13567 | ac_status=$? |
| 13568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13569 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13570 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13571 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13572 | echo "$as_me: failed program was:" >&5 |
| 13573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13574 | |
| 13575 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13576 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13577 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13578 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13579 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13580 | LIBS=$ac_check_lib_save_LIBS |
| 13581 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13582 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 13583 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 13584 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13585 | cat >>confdefs.h <<_ACEOF |
| 13586 | #define HAVE_LIBIMAGEHLP 1 |
| 13587 | _ACEOF |
| 13588 | |
| 13589 | LIBS="-limagehlp $LIBS" |
| 13590 | |
| 13591 | fi |
| 13592 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13593 | |
| 13594 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 13595 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 13596 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 13597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13598 | else |
| 13599 | ac_check_lib_save_LIBS=$LIBS |
| 13600 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13601 | cat >conftest.$ac_ext <<_ACEOF |
| 13602 | /* confdefs.h. */ |
| 13603 | _ACEOF |
| 13604 | cat confdefs.h >>conftest.$ac_ext |
| 13605 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13606 | /* end confdefs.h. */ |
| 13607 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13608 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13609 | int |
| 13610 | main () |
| 13611 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13612 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13613 | ; |
| 13614 | return 0; |
| 13615 | } |
| 13616 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13617 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13618 | if { (ac_try="$ac_link" |
| 13619 | case "(($ac_try" in |
| 13620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13621 | *) ac_try_echo=$ac_try;; |
| 13622 | esac |
| 13623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13624 | (eval "$ac_link") 2>conftest.er1 |
| 13625 | ac_status=$? |
| 13626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13627 | rm -f conftest.er1 |
| 13628 | cat conftest.err >&5 |
| 13629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13630 | (exit $ac_status); } && |
| 13631 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13632 | { (case "(($ac_try" in |
| 13633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13634 | *) ac_try_echo=$ac_try;; |
| 13635 | esac |
| 13636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13637 | (eval "$ac_try") 2>&5 |
| 13638 | ac_status=$? |
| 13639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13640 | (exit $ac_status); }; } && |
| 13641 | { ac_try='test -s conftest$ac_exeext' |
| 13642 | { (case "(($ac_try" in |
| 13643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13644 | *) ac_try_echo=$ac_try;; |
| 13645 | esac |
| 13646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13647 | (eval "$ac_try") 2>&5 |
| 13648 | ac_status=$? |
| 13649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13650 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13651 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13652 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13653 | echo "$as_me: failed program was:" >&5 |
| 13654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13655 | |
| 13656 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13657 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13658 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13659 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13660 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13661 | LIBS=$ac_check_lib_save_LIBS |
| 13662 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13663 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 13664 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 13665 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13666 | cat >>confdefs.h <<_ACEOF |
| 13667 | #define HAVE_LIBPSAPI 1 |
| 13668 | _ACEOF |
| 13669 | |
| 13670 | LIBS="-lpsapi $LIBS" |
| 13671 | |
| 13672 | fi |
| 13673 | |
| 13674 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13675 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13676 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 13677 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 13678 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13680 | else |
| 13681 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13682 | cat >conftest.$ac_ext <<_ACEOF |
| 13683 | /* confdefs.h. */ |
| 13684 | _ACEOF |
| 13685 | cat confdefs.h >>conftest.$ac_ext |
| 13686 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13687 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13688 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13689 | /* Override any GCC internal prototype to avoid an error. |
| 13690 | Use char because int might match the return type of a GCC |
| 13691 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13692 | #ifdef __cplusplus |
| 13693 | extern "C" |
| 13694 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13695 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13696 | int |
| 13697 | main () |
| 13698 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13699 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13700 | ; |
| 13701 | return 0; |
| 13702 | } |
| 13703 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13704 | for ac_lib in '' dl; do |
| 13705 | if test -z "$ac_lib"; then |
| 13706 | ac_res="none required" |
| 13707 | else |
| 13708 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13709 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13710 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13711 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13712 | if { (ac_try="$ac_link" |
| 13713 | case "(($ac_try" in |
| 13714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13715 | *) ac_try_echo=$ac_try;; |
| 13716 | esac |
| 13717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13718 | (eval "$ac_link") 2>conftest.er1 |
| 13719 | ac_status=$? |
| 13720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13721 | rm -f conftest.er1 |
| 13722 | cat conftest.err >&5 |
| 13723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13724 | (exit $ac_status); } && |
| 13725 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13726 | { (case "(($ac_try" in |
| 13727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13728 | *) ac_try_echo=$ac_try;; |
| 13729 | esac |
| 13730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13731 | (eval "$ac_try") 2>&5 |
| 13732 | ac_status=$? |
| 13733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13734 | (exit $ac_status); }; } && |
| 13735 | { ac_try='test -s conftest$ac_exeext' |
| 13736 | { (case "(($ac_try" in |
| 13737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13738 | *) ac_try_echo=$ac_try;; |
| 13739 | esac |
| 13740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13741 | (eval "$ac_try") 2>&5 |
| 13742 | ac_status=$? |
| 13743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13744 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13745 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13746 | else |
| 13747 | echo "$as_me: failed program was:" >&5 |
| 13748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13749 | |
| 13750 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13751 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13752 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13753 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13754 | conftest$ac_exeext |
| 13755 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13756 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13757 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13758 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13759 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13760 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13761 | else |
| 13762 | ac_cv_search_dlopen=no |
| 13763 | fi |
| 13764 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13765 | LIBS=$ac_func_search_save_LIBS |
| 13766 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13767 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 13768 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13769 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13770 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13771 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13772 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13773 | cat >>confdefs.h <<\_ACEOF |
| 13774 | #define HAVE_DLOPEN 1 |
| 13775 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13776 | |
| 13777 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13778 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 13779 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13780 | fi |
| 13781 | |
| 13782 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13783 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13784 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 13785 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 13786 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13788 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13789 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13790 | cat >conftest.$ac_ext <<_ACEOF |
| 13791 | /* confdefs.h. */ |
| 13792 | _ACEOF |
| 13793 | cat confdefs.h >>conftest.$ac_ext |
| 13794 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13795 | /* end confdefs.h. */ |
| 13796 | |
| 13797 | /* Override any GCC internal prototype to avoid an error. |
| 13798 | Use char because int might match the return type of a GCC |
| 13799 | builtin and then its argument prototype would still apply. */ |
| 13800 | #ifdef __cplusplus |
| 13801 | extern "C" |
| 13802 | #endif |
| 13803 | char ffi_call (); |
| 13804 | int |
| 13805 | main () |
| 13806 | { |
| 13807 | return ffi_call (); |
| 13808 | ; |
| 13809 | return 0; |
| 13810 | } |
| 13811 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13812 | for ac_lib in '' ffi; do |
| 13813 | if test -z "$ac_lib"; then |
| 13814 | ac_res="none required" |
| 13815 | else |
| 13816 | ac_res=-l$ac_lib |
| 13817 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13818 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13819 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13820 | if { (ac_try="$ac_link" |
| 13821 | case "(($ac_try" in |
| 13822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13823 | *) ac_try_echo=$ac_try;; |
| 13824 | esac |
| 13825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13826 | (eval "$ac_link") 2>conftest.er1 |
| 13827 | ac_status=$? |
| 13828 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13829 | rm -f conftest.er1 |
| 13830 | cat conftest.err >&5 |
| 13831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13832 | (exit $ac_status); } && |
| 13833 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13834 | { (case "(($ac_try" in |
| 13835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13836 | *) ac_try_echo=$ac_try;; |
| 13837 | esac |
| 13838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13839 | (eval "$ac_try") 2>&5 |
| 13840 | ac_status=$? |
| 13841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13842 | (exit $ac_status); }; } && |
| 13843 | { ac_try='test -s conftest$ac_exeext' |
| 13844 | { (case "(($ac_try" in |
| 13845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13846 | *) ac_try_echo=$ac_try;; |
| 13847 | esac |
| 13848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13849 | (eval "$ac_try") 2>&5 |
| 13850 | ac_status=$? |
| 13851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13852 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13853 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13854 | else |
| 13855 | echo "$as_me: failed program was:" >&5 |
| 13856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13857 | |
| 13858 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13859 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13860 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13861 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13862 | conftest$ac_exeext |
| 13863 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13864 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13865 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13866 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13867 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13868 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13869 | else |
| 13870 | ac_cv_search_ffi_call=no |
| 13871 | fi |
| 13872 | rm conftest.$ac_ext |
| 13873 | LIBS=$ac_func_search_save_LIBS |
| 13874 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13875 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 13876 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13877 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13878 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13879 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13880 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13881 | cat >>confdefs.h <<\_ACEOF |
| 13882 | #define HAVE_FFI_CALL 1 |
| 13883 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13884 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13885 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 13886 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 13887 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 13888 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13889 | fi |
| 13890 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13891 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13892 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13893 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 13894 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 13895 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13897 | else |
| 13898 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13899 | cat >conftest.$ac_ext <<_ACEOF |
| 13900 | /* confdefs.h. */ |
| 13901 | _ACEOF |
| 13902 | cat confdefs.h >>conftest.$ac_ext |
| 13903 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13904 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13905 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13906 | /* Override any GCC internal prototype to avoid an error. |
| 13907 | Use char because int might match the return type of a GCC |
| 13908 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13909 | #ifdef __cplusplus |
| 13910 | extern "C" |
| 13911 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13912 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13913 | int |
| 13914 | main () |
| 13915 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13916 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13917 | ; |
| 13918 | return 0; |
| 13919 | } |
| 13920 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13921 | for ac_lib in '' malloc; do |
| 13922 | if test -z "$ac_lib"; then |
| 13923 | ac_res="none required" |
| 13924 | else |
| 13925 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13926 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13927 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13928 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13929 | if { (ac_try="$ac_link" |
| 13930 | case "(($ac_try" in |
| 13931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13932 | *) ac_try_echo=$ac_try;; |
| 13933 | esac |
| 13934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13935 | (eval "$ac_link") 2>conftest.er1 |
| 13936 | ac_status=$? |
| 13937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13938 | rm -f conftest.er1 |
| 13939 | cat conftest.err >&5 |
| 13940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13941 | (exit $ac_status); } && |
| 13942 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13943 | { (case "(($ac_try" in |
| 13944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13945 | *) ac_try_echo=$ac_try;; |
| 13946 | esac |
| 13947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13948 | (eval "$ac_try") 2>&5 |
| 13949 | ac_status=$? |
| 13950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13951 | (exit $ac_status); }; } && |
| 13952 | { ac_try='test -s conftest$ac_exeext' |
| 13953 | { (case "(($ac_try" in |
| 13954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13955 | *) ac_try_echo=$ac_try;; |
| 13956 | esac |
| 13957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13958 | (eval "$ac_try") 2>&5 |
| 13959 | ac_status=$? |
| 13960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13961 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13962 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13963 | else |
| 13964 | echo "$as_me: failed program was:" >&5 |
| 13965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13966 | |
| 13967 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13968 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13969 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13970 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13971 | conftest$ac_exeext |
| 13972 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13973 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13974 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13975 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13976 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13977 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13978 | else |
| 13979 | ac_cv_search_mallinfo=no |
| 13980 | fi |
| 13981 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13982 | LIBS=$ac_func_search_save_LIBS |
| 13983 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13984 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 13985 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13986 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13987 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13988 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13989 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13990 | cat >>confdefs.h <<\_ACEOF |
| 13991 | #define HAVE_MALLINFO 1 |
| 13992 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13993 | |
| 13994 | fi |
| 13995 | |
| 13996 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13997 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13998 | |
| 13999 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 14000 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 14001 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 14002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14003 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 14004 | ac_check_lib_save_LIBS=$LIBS |
| 14005 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14006 | cat >conftest.$ac_ext <<_ACEOF |
| 14007 | /* confdefs.h. */ |
| 14008 | _ACEOF |
| 14009 | cat confdefs.h >>conftest.$ac_ext |
| 14010 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14011 | /* end confdefs.h. */ |
| 14012 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14013 | /* Override any GCC internal prototype to avoid an error. |
| 14014 | Use char because int might match the return type of a GCC |
| 14015 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14016 | #ifdef __cplusplus |
| 14017 | extern "C" |
| 14018 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14019 | char pthread_mutex_init (); |
| 14020 | int |
| 14021 | main () |
| 14022 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14023 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14024 | ; |
| 14025 | return 0; |
| 14026 | } |
| 14027 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14028 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14029 | if { (ac_try="$ac_link" |
| 14030 | case "(($ac_try" in |
| 14031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14032 | *) ac_try_echo=$ac_try;; |
| 14033 | esac |
| 14034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14035 | (eval "$ac_link") 2>conftest.er1 |
| 14036 | ac_status=$? |
| 14037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14038 | rm -f conftest.er1 |
| 14039 | cat conftest.err >&5 |
| 14040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14041 | (exit $ac_status); } && |
| 14042 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14043 | { (case "(($ac_try" in |
| 14044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14045 | *) ac_try_echo=$ac_try;; |
| 14046 | esac |
| 14047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14048 | (eval "$ac_try") 2>&5 |
| 14049 | ac_status=$? |
| 14050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14051 | (exit $ac_status); }; } && |
| 14052 | { ac_try='test -s conftest$ac_exeext' |
| 14053 | { (case "(($ac_try" in |
| 14054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14055 | *) ac_try_echo=$ac_try;; |
| 14056 | esac |
| 14057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14058 | (eval "$ac_try") 2>&5 |
| 14059 | ac_status=$? |
| 14060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14061 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 14062 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14063 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14064 | echo "$as_me: failed program was:" >&5 |
| 14065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14066 | |
| 14067 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14068 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14069 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14070 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14071 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 14072 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14073 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14074 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 14075 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 14076 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 14077 | cat >>confdefs.h <<_ACEOF |
| 14078 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 14079 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14080 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 14081 | LIBS="-lpthread $LIBS" |
| 14082 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14083 | fi |
| 14084 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14085 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 14086 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 14087 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 14088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14089 | else |
| 14090 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14091 | cat >conftest.$ac_ext <<_ACEOF |
| 14092 | /* confdefs.h. */ |
| 14093 | _ACEOF |
| 14094 | cat confdefs.h >>conftest.$ac_ext |
| 14095 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14096 | /* end confdefs.h. */ |
| 14097 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14098 | /* Override any GCC internal prototype to avoid an error. |
| 14099 | Use char because int might match the return type of a GCC |
| 14100 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14101 | #ifdef __cplusplus |
| 14102 | extern "C" |
| 14103 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14104 | char pthread_mutex_lock (); |
| 14105 | int |
| 14106 | main () |
| 14107 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14108 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14109 | ; |
| 14110 | return 0; |
| 14111 | } |
| 14112 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14113 | for ac_lib in '' pthread; do |
| 14114 | if test -z "$ac_lib"; then |
| 14115 | ac_res="none required" |
| 14116 | else |
| 14117 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14118 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14119 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14120 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14121 | if { (ac_try="$ac_link" |
| 14122 | case "(($ac_try" in |
| 14123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14124 | *) ac_try_echo=$ac_try;; |
| 14125 | esac |
| 14126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14127 | (eval "$ac_link") 2>conftest.er1 |
| 14128 | ac_status=$? |
| 14129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14130 | rm -f conftest.er1 |
| 14131 | cat conftest.err >&5 |
| 14132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14133 | (exit $ac_status); } && |
| 14134 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14135 | { (case "(($ac_try" in |
| 14136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14137 | *) ac_try_echo=$ac_try;; |
| 14138 | esac |
| 14139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14140 | (eval "$ac_try") 2>&5 |
| 14141 | ac_status=$? |
| 14142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14143 | (exit $ac_status); }; } && |
| 14144 | { ac_try='test -s conftest$ac_exeext' |
| 14145 | { (case "(($ac_try" in |
| 14146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14147 | *) ac_try_echo=$ac_try;; |
| 14148 | esac |
| 14149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14150 | (eval "$ac_try") 2>&5 |
| 14151 | ac_status=$? |
| 14152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14153 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14154 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14155 | else |
| 14156 | echo "$as_me: failed program was:" >&5 |
| 14157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14158 | |
| 14159 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14160 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14161 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14162 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14163 | conftest$ac_exeext |
| 14164 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14165 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14166 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14167 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14168 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 14169 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14170 | else |
| 14171 | ac_cv_search_pthread_mutex_lock=no |
| 14172 | fi |
| 14173 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14174 | LIBS=$ac_func_search_save_LIBS |
| 14175 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14176 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 14177 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14178 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14179 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14180 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14181 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14182 | cat >>confdefs.h <<\_ACEOF |
| 14183 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 14184 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 14185 | |
| 14186 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14187 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14188 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 14189 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 14190 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 14191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14192 | else |
| 14193 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14194 | cat >conftest.$ac_ext <<_ACEOF |
| 14195 | /* confdefs.h. */ |
| 14196 | _ACEOF |
| 14197 | cat confdefs.h >>conftest.$ac_ext |
| 14198 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14199 | /* end confdefs.h. */ |
| 14200 | |
| 14201 | /* Override any GCC internal prototype to avoid an error. |
| 14202 | Use char because int might match the return type of a GCC |
| 14203 | builtin and then its argument prototype would still apply. */ |
| 14204 | #ifdef __cplusplus |
| 14205 | extern "C" |
| 14206 | #endif |
| 14207 | char pthread_rwlock_init (); |
| 14208 | int |
| 14209 | main () |
| 14210 | { |
| 14211 | return pthread_rwlock_init (); |
| 14212 | ; |
| 14213 | return 0; |
| 14214 | } |
| 14215 | _ACEOF |
| 14216 | for ac_lib in '' pthread; do |
| 14217 | if test -z "$ac_lib"; then |
| 14218 | ac_res="none required" |
| 14219 | else |
| 14220 | ac_res=-l$ac_lib |
| 14221 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14222 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14223 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14224 | if { (ac_try="$ac_link" |
| 14225 | case "(($ac_try" in |
| 14226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14227 | *) ac_try_echo=$ac_try;; |
| 14228 | esac |
| 14229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14230 | (eval "$ac_link") 2>conftest.er1 |
| 14231 | ac_status=$? |
| 14232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14233 | rm -f conftest.er1 |
| 14234 | cat conftest.err >&5 |
| 14235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14236 | (exit $ac_status); } && |
| 14237 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14238 | { (case "(($ac_try" in |
| 14239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14240 | *) ac_try_echo=$ac_try;; |
| 14241 | esac |
| 14242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14243 | (eval "$ac_try") 2>&5 |
| 14244 | ac_status=$? |
| 14245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14246 | (exit $ac_status); }; } && |
| 14247 | { ac_try='test -s conftest$ac_exeext' |
| 14248 | { (case "(($ac_try" in |
| 14249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14250 | *) ac_try_echo=$ac_try;; |
| 14251 | esac |
| 14252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14253 | (eval "$ac_try") 2>&5 |
| 14254 | ac_status=$? |
| 14255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14256 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14257 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14258 | else |
| 14259 | echo "$as_me: failed program was:" >&5 |
| 14260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14261 | |
| 14262 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14263 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14264 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14265 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14266 | conftest$ac_exeext |
| 14267 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14268 | break |
| 14269 | fi |
| 14270 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14271 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 14272 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14273 | else |
| 14274 | ac_cv_search_pthread_rwlock_init=no |
| 14275 | fi |
| 14276 | rm conftest.$ac_ext |
| 14277 | LIBS=$ac_func_search_save_LIBS |
| 14278 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14279 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 14280 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14281 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14282 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14283 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14284 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14285 | cat >>confdefs.h <<\_ACEOF |
| 14286 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 14287 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14288 | |
| 14289 | fi |
| 14290 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14291 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 14292 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 14293 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 14294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14295 | else |
| 14296 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14297 | cat >conftest.$ac_ext <<_ACEOF |
| 14298 | /* confdefs.h. */ |
| 14299 | _ACEOF |
| 14300 | cat confdefs.h >>conftest.$ac_ext |
| 14301 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14302 | /* end confdefs.h. */ |
| 14303 | |
| 14304 | /* Override any GCC internal prototype to avoid an error. |
| 14305 | Use char because int might match the return type of a GCC |
| 14306 | builtin and then its argument prototype would still apply. */ |
| 14307 | #ifdef __cplusplus |
| 14308 | extern "C" |
| 14309 | #endif |
| 14310 | char pthread_getspecific (); |
| 14311 | int |
| 14312 | main () |
| 14313 | { |
| 14314 | return pthread_getspecific (); |
| 14315 | ; |
| 14316 | return 0; |
| 14317 | } |
| 14318 | _ACEOF |
| 14319 | for ac_lib in '' pthread; do |
| 14320 | if test -z "$ac_lib"; then |
| 14321 | ac_res="none required" |
| 14322 | else |
| 14323 | ac_res=-l$ac_lib |
| 14324 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14325 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14326 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14327 | if { (ac_try="$ac_link" |
| 14328 | case "(($ac_try" in |
| 14329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14330 | *) ac_try_echo=$ac_try;; |
| 14331 | esac |
| 14332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14333 | (eval "$ac_link") 2>conftest.er1 |
| 14334 | ac_status=$? |
| 14335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14336 | rm -f conftest.er1 |
| 14337 | cat conftest.err >&5 |
| 14338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14339 | (exit $ac_status); } && |
| 14340 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14341 | { (case "(($ac_try" in |
| 14342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14343 | *) ac_try_echo=$ac_try;; |
| 14344 | esac |
| 14345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14346 | (eval "$ac_try") 2>&5 |
| 14347 | ac_status=$? |
| 14348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14349 | (exit $ac_status); }; } && |
| 14350 | { ac_try='test -s conftest$ac_exeext' |
| 14351 | { (case "(($ac_try" in |
| 14352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14353 | *) ac_try_echo=$ac_try;; |
| 14354 | esac |
| 14355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14356 | (eval "$ac_try") 2>&5 |
| 14357 | ac_status=$? |
| 14358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14359 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14360 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14361 | else |
| 14362 | echo "$as_me: failed program was:" >&5 |
| 14363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14364 | |
| 14365 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14366 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14367 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14368 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14369 | conftest$ac_exeext |
| 14370 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14371 | break |
| 14372 | fi |
| 14373 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14374 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 14375 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14376 | else |
| 14377 | ac_cv_search_pthread_getspecific=no |
| 14378 | fi |
| 14379 | rm conftest.$ac_ext |
| 14380 | LIBS=$ac_func_search_save_LIBS |
| 14381 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14382 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 14383 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14384 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14385 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14386 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14387 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14388 | cat >>confdefs.h <<\_ACEOF |
| 14389 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 14390 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14391 | |
| 14392 | fi |
| 14393 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 14394 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 14395 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14396 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14397 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14398 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14399 | withval=$with_udis86; |
| 14400 | USE_UDIS86=1 |
| 14401 | |
| 14402 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 14403 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14404 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 14405 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14406 | |
| 14407 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 14408 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 14409 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 14410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14411 | else |
| 14412 | ac_check_lib_save_LIBS=$LIBS |
| 14413 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14414 | cat >conftest.$ac_ext <<_ACEOF |
| 14415 | /* confdefs.h. */ |
| 14416 | _ACEOF |
| 14417 | cat confdefs.h >>conftest.$ac_ext |
| 14418 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14419 | /* end confdefs.h. */ |
| 14420 | |
| 14421 | /* Override any GCC internal prototype to avoid an error. |
| 14422 | Use char because int might match the return type of a GCC |
| 14423 | builtin and then its argument prototype would still apply. */ |
| 14424 | #ifdef __cplusplus |
| 14425 | extern "C" |
| 14426 | #endif |
| 14427 | char ud_init (); |
| 14428 | int |
| 14429 | main () |
| 14430 | { |
| 14431 | return ud_init (); |
| 14432 | ; |
| 14433 | return 0; |
| 14434 | } |
| 14435 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14436 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14437 | if { (ac_try="$ac_link" |
| 14438 | case "(($ac_try" in |
| 14439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14440 | *) ac_try_echo=$ac_try;; |
| 14441 | esac |
| 14442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14443 | (eval "$ac_link") 2>conftest.er1 |
| 14444 | ac_status=$? |
| 14445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14446 | rm -f conftest.er1 |
| 14447 | cat conftest.err >&5 |
| 14448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14449 | (exit $ac_status); } && |
| 14450 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14451 | { (case "(($ac_try" in |
| 14452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14453 | *) ac_try_echo=$ac_try;; |
| 14454 | esac |
| 14455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14456 | (eval "$ac_try") 2>&5 |
| 14457 | ac_status=$? |
| 14458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14459 | (exit $ac_status); }; } && |
| 14460 | { ac_try='test -s conftest$ac_exeext' |
| 14461 | { (case "(($ac_try" in |
| 14462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14463 | *) ac_try_echo=$ac_try;; |
| 14464 | esac |
| 14465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14466 | (eval "$ac_try") 2>&5 |
| 14467 | ac_status=$? |
| 14468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14469 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14470 | ac_cv_lib_udis86_ud_init=yes |
| 14471 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14472 | echo "$as_me: failed program was:" >&5 |
| 14473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14474 | |
| 14475 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14476 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14477 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14478 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14479 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14480 | LIBS=$ac_check_lib_save_LIBS |
| 14481 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14482 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 14483 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 14484 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14485 | cat >>confdefs.h <<_ACEOF |
| 14486 | #define HAVE_LIBUDIS86 1 |
| 14487 | _ACEOF |
| 14488 | |
| 14489 | LIBS="-ludis86 $LIBS" |
| 14490 | |
| 14491 | else |
| 14492 | |
| 14493 | echo "Error! You need to have libudis86 around." |
| 14494 | exit -1 |
| 14495 | |
| 14496 | fi |
| 14497 | |
| 14498 | |
| 14499 | else |
| 14500 | USE_UDIS86=0 |
| 14501 | |
| 14502 | fi |
| 14503 | |
| 14504 | |
| 14505 | cat >>confdefs.h <<_ACEOF |
| 14506 | #define USE_UDIS86 $USE_UDIS86 |
| 14507 | _ACEOF |
| 14508 | |
| 14509 | |
| 14510 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14511 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14512 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14513 | withval=$with_oprofile; |
| 14514 | USE_OPROFILE=1 |
| 14515 | |
| 14516 | case "$withval" in |
| 14517 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14518 | no) llvm_cv_oppath= |
| 14519 | USE_OPROFILE=0 |
| 14520 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14521 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 14522 | CPPFLAGS="-I${withval}/include";; |
| 14523 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14524 | if test -n "$llvm_cv_oppath" ; then |
| 14525 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14526 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 14527 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 14528 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14530 | else |
| 14531 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14532 | cat >conftest.$ac_ext <<_ACEOF |
| 14533 | /* confdefs.h. */ |
| 14534 | _ACEOF |
| 14535 | cat confdefs.h >>conftest.$ac_ext |
| 14536 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14537 | /* end confdefs.h. */ |
| 14538 | |
| 14539 | /* Override any GCC internal prototype to avoid an error. |
| 14540 | Use char because int might match the return type of a GCC |
| 14541 | builtin and then its argument prototype would still apply. */ |
| 14542 | #ifdef __cplusplus |
| 14543 | extern "C" |
| 14544 | #endif |
| 14545 | char bfd_init (); |
| 14546 | int |
| 14547 | main () |
| 14548 | { |
| 14549 | return bfd_init (); |
| 14550 | ; |
| 14551 | return 0; |
| 14552 | } |
| 14553 | _ACEOF |
| 14554 | for ac_lib in '' bfd; do |
| 14555 | if test -z "$ac_lib"; then |
| 14556 | ac_res="none required" |
| 14557 | else |
| 14558 | ac_res=-l$ac_lib |
| 14559 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14560 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14561 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14562 | if { (ac_try="$ac_link" |
| 14563 | case "(($ac_try" in |
| 14564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14565 | *) ac_try_echo=$ac_try;; |
| 14566 | esac |
| 14567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14568 | (eval "$ac_link") 2>conftest.er1 |
| 14569 | ac_status=$? |
| 14570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14571 | rm -f conftest.er1 |
| 14572 | cat conftest.err >&5 |
| 14573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14574 | (exit $ac_status); } && |
| 14575 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14576 | { (case "(($ac_try" in |
| 14577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14578 | *) ac_try_echo=$ac_try;; |
| 14579 | esac |
| 14580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14581 | (eval "$ac_try") 2>&5 |
| 14582 | ac_status=$? |
| 14583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14584 | (exit $ac_status); }; } && |
| 14585 | { ac_try='test -s conftest$ac_exeext' |
| 14586 | { (case "(($ac_try" in |
| 14587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14588 | *) ac_try_echo=$ac_try;; |
| 14589 | esac |
| 14590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14591 | (eval "$ac_try") 2>&5 |
| 14592 | ac_status=$? |
| 14593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14594 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14595 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14596 | else |
| 14597 | echo "$as_me: failed program was:" >&5 |
| 14598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14599 | |
| 14600 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14601 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14602 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14603 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14604 | conftest$ac_exeext |
| 14605 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14606 | break |
| 14607 | fi |
| 14608 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14609 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14610 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14611 | else |
| 14612 | ac_cv_search_bfd_init=no |
| 14613 | fi |
| 14614 | rm conftest.$ac_ext |
| 14615 | LIBS=$ac_func_search_save_LIBS |
| 14616 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14617 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 14618 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14619 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14620 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14621 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14622 | |
| 14623 | fi |
| 14624 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14625 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 14626 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 14627 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14629 | else |
| 14630 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14631 | cat >conftest.$ac_ext <<_ACEOF |
| 14632 | /* confdefs.h. */ |
| 14633 | _ACEOF |
| 14634 | cat confdefs.h >>conftest.$ac_ext |
| 14635 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14636 | /* end confdefs.h. */ |
| 14637 | |
| 14638 | /* Override any GCC internal prototype to avoid an error. |
| 14639 | Use char because int might match the return type of a GCC |
| 14640 | builtin and then its argument prototype would still apply. */ |
| 14641 | #ifdef __cplusplus |
| 14642 | extern "C" |
| 14643 | #endif |
| 14644 | char op_open_agent (); |
| 14645 | int |
| 14646 | main () |
| 14647 | { |
| 14648 | return op_open_agent (); |
| 14649 | ; |
| 14650 | return 0; |
| 14651 | } |
| 14652 | _ACEOF |
| 14653 | for ac_lib in '' opagent; do |
| 14654 | if test -z "$ac_lib"; then |
| 14655 | ac_res="none required" |
| 14656 | else |
| 14657 | ac_res=-l$ac_lib |
| 14658 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14659 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14660 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14661 | if { (ac_try="$ac_link" |
| 14662 | case "(($ac_try" in |
| 14663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14664 | *) ac_try_echo=$ac_try;; |
| 14665 | esac |
| 14666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14667 | (eval "$ac_link") 2>conftest.er1 |
| 14668 | ac_status=$? |
| 14669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14670 | rm -f conftest.er1 |
| 14671 | cat conftest.err >&5 |
| 14672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14673 | (exit $ac_status); } && |
| 14674 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14675 | { (case "(($ac_try" in |
| 14676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14677 | *) ac_try_echo=$ac_try;; |
| 14678 | esac |
| 14679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14680 | (eval "$ac_try") 2>&5 |
| 14681 | ac_status=$? |
| 14682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14683 | (exit $ac_status); }; } && |
| 14684 | { ac_try='test -s conftest$ac_exeext' |
| 14685 | { (case "(($ac_try" in |
| 14686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14687 | *) ac_try_echo=$ac_try;; |
| 14688 | esac |
| 14689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14690 | (eval "$ac_try") 2>&5 |
| 14691 | ac_status=$? |
| 14692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14693 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14694 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14695 | else |
| 14696 | echo "$as_me: failed program was:" >&5 |
| 14697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14698 | |
| 14699 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14700 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14701 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14702 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14703 | conftest$ac_exeext |
| 14704 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14705 | break |
| 14706 | fi |
| 14707 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14708 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14709 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14710 | else |
| 14711 | ac_cv_search_op_open_agent=no |
| 14712 | fi |
| 14713 | rm conftest.$ac_ext |
| 14714 | LIBS=$ac_func_search_save_LIBS |
| 14715 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14716 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 14717 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14718 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14719 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14720 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14721 | |
| 14722 | else |
| 14723 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14724 | echo "Error! You need to have libopagent around." |
| 14725 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14726 | |
| 14727 | fi |
| 14728 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14729 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14730 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14731 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14732 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14734 | fi |
| 14735 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14736 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14737 | else |
| 14738 | # Is the header compilable? |
| 14739 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 14740 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 14741 | cat >conftest.$ac_ext <<_ACEOF |
| 14742 | /* confdefs.h. */ |
| 14743 | _ACEOF |
| 14744 | cat confdefs.h >>conftest.$ac_ext |
| 14745 | cat >>conftest.$ac_ext <<_ACEOF |
| 14746 | /* end confdefs.h. */ |
| 14747 | $ac_includes_default |
| 14748 | #include <opagent.h> |
| 14749 | _ACEOF |
| 14750 | rm -f conftest.$ac_objext |
| 14751 | if { (ac_try="$ac_compile" |
| 14752 | case "(($ac_try" in |
| 14753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14754 | *) ac_try_echo=$ac_try;; |
| 14755 | esac |
| 14756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14757 | (eval "$ac_compile") 2>conftest.er1 |
| 14758 | ac_status=$? |
| 14759 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14760 | rm -f conftest.er1 |
| 14761 | cat conftest.err >&5 |
| 14762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14763 | (exit $ac_status); } && |
| 14764 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14765 | { (case "(($ac_try" in |
| 14766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14767 | *) ac_try_echo=$ac_try;; |
| 14768 | esac |
| 14769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14770 | (eval "$ac_try") 2>&5 |
| 14771 | ac_status=$? |
| 14772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14773 | (exit $ac_status); }; } && |
| 14774 | { ac_try='test -s conftest.$ac_objext' |
| 14775 | { (case "(($ac_try" in |
| 14776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14777 | *) ac_try_echo=$ac_try;; |
| 14778 | esac |
| 14779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14780 | (eval "$ac_try") 2>&5 |
| 14781 | ac_status=$? |
| 14782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14783 | (exit $ac_status); }; }; then |
| 14784 | ac_header_compiler=yes |
| 14785 | else |
| 14786 | echo "$as_me: failed program was:" >&5 |
| 14787 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14788 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14789 | ac_header_compiler=no |
| 14790 | fi |
| 14791 | |
| 14792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14793 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14794 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14795 | |
| 14796 | # Is the header present? |
| 14797 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 14798 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 14799 | cat >conftest.$ac_ext <<_ACEOF |
| 14800 | /* confdefs.h. */ |
| 14801 | _ACEOF |
| 14802 | cat confdefs.h >>conftest.$ac_ext |
| 14803 | cat >>conftest.$ac_ext <<_ACEOF |
| 14804 | /* end confdefs.h. */ |
| 14805 | #include <opagent.h> |
| 14806 | _ACEOF |
| 14807 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14808 | case "(($ac_try" in |
| 14809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14810 | *) ac_try_echo=$ac_try;; |
| 14811 | esac |
| 14812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14813 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14814 | ac_status=$? |
| 14815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14816 | rm -f conftest.er1 |
| 14817 | cat conftest.err >&5 |
| 14818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14819 | (exit $ac_status); } >/dev/null; then |
| 14820 | if test -s conftest.err; then |
| 14821 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14822 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14823 | else |
| 14824 | ac_cpp_err= |
| 14825 | fi |
| 14826 | else |
| 14827 | ac_cpp_err=yes |
| 14828 | fi |
| 14829 | if test -z "$ac_cpp_err"; then |
| 14830 | ac_header_preproc=yes |
| 14831 | else |
| 14832 | echo "$as_me: failed program was:" >&5 |
| 14833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14834 | |
| 14835 | ac_header_preproc=no |
| 14836 | fi |
| 14837 | |
| 14838 | rm -f conftest.err conftest.$ac_ext |
| 14839 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14840 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14841 | |
| 14842 | # So? What about this header? |
| 14843 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14844 | yes:no: ) |
| 14845 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14846 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14847 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 14848 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 14849 | ac_header_preproc=yes |
| 14850 | ;; |
| 14851 | no:yes:* ) |
| 14852 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 14853 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 14854 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 14855 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 14856 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 14857 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 14858 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14859 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14860 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 14861 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 14862 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 14863 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 14864 | ( cat <<\_ASBOX |
| 14865 | ## ----------------------------------- ## |
| 14866 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 14867 | ## ----------------------------------- ## |
| 14868 | _ASBOX |
| 14869 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14870 | ;; |
| 14871 | esac |
| 14872 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14873 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14874 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14876 | else |
| 14877 | ac_cv_header_opagent_h=$ac_header_preproc |
| 14878 | fi |
| 14879 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14880 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14881 | |
| 14882 | fi |
| 14883 | if test $ac_cv_header_opagent_h = yes; then |
| 14884 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14885 | else |
| 14886 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14887 | echo "Error! You need to have opagent.h around." |
| 14888 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14889 | |
| 14890 | fi |
| 14891 | |
| 14892 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14893 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14894 | |
| 14895 | else |
| 14896 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14897 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14898 | |
| 14899 | |
| 14900 | fi |
| 14901 | |
| 14902 | |
| 14903 | cat >>confdefs.h <<_ACEOF |
| 14904 | #define USE_OPROFILE $USE_OPROFILE |
| 14905 | _ACEOF |
| 14906 | |
| 14907 | |
| 14908 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14909 | |
| 14910 | |
| 14911 | |
| 14912 | |
| 14913 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14914 | ac_header_dirent=no |
| 14915 | 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] | 14916 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 14917 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 14918 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 14919 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14921 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14922 | cat >conftest.$ac_ext <<_ACEOF |
| 14923 | /* confdefs.h. */ |
| 14924 | _ACEOF |
| 14925 | cat confdefs.h >>conftest.$ac_ext |
| 14926 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14927 | /* end confdefs.h. */ |
| 14928 | #include <sys/types.h> |
| 14929 | #include <$ac_hdr> |
| 14930 | |
| 14931 | int |
| 14932 | main () |
| 14933 | { |
| 14934 | if ((DIR *) 0) |
| 14935 | return 0; |
| 14936 | ; |
| 14937 | return 0; |
| 14938 | } |
| 14939 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14940 | rm -f conftest.$ac_objext |
| 14941 | if { (ac_try="$ac_compile" |
| 14942 | case "(($ac_try" in |
| 14943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14944 | *) ac_try_echo=$ac_try;; |
| 14945 | esac |
| 14946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14947 | (eval "$ac_compile") 2>conftest.er1 |
| 14948 | ac_status=$? |
| 14949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14950 | rm -f conftest.er1 |
| 14951 | cat conftest.err >&5 |
| 14952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14953 | (exit $ac_status); } && |
| 14954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14955 | { (case "(($ac_try" in |
| 14956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14957 | *) ac_try_echo=$ac_try;; |
| 14958 | esac |
| 14959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14960 | (eval "$ac_try") 2>&5 |
| 14961 | ac_status=$? |
| 14962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14963 | (exit $ac_status); }; } && |
| 14964 | { ac_try='test -s conftest.$ac_objext' |
| 14965 | { (case "(($ac_try" in |
| 14966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14967 | *) ac_try_echo=$ac_try;; |
| 14968 | esac |
| 14969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14970 | (eval "$ac_try") 2>&5 |
| 14971 | ac_status=$? |
| 14972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14973 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14974 | eval "$as_ac_Header=yes" |
| 14975 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14976 | echo "$as_me: failed program was:" >&5 |
| 14977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14978 | |
| 14979 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14980 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14981 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14983 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14984 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14985 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14986 | echo "${ECHO_T}$ac_res" >&6; } |
| 14987 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14988 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14989 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14990 | _ACEOF |
| 14991 | |
| 14992 | ac_header_dirent=$ac_hdr; break |
| 14993 | fi |
| 14994 | |
| 14995 | done |
| 14996 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 14997 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14998 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14999 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 15000 | if test "${ac_cv_search_opendir+set}" = set; then |
| 15001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15002 | else |
| 15003 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15004 | cat >conftest.$ac_ext <<_ACEOF |
| 15005 | /* confdefs.h. */ |
| 15006 | _ACEOF |
| 15007 | cat confdefs.h >>conftest.$ac_ext |
| 15008 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15009 | /* end confdefs.h. */ |
| 15010 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15011 | /* Override any GCC internal prototype to avoid an error. |
| 15012 | Use char because int might match the return type of a GCC |
| 15013 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15014 | #ifdef __cplusplus |
| 15015 | extern "C" |
| 15016 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15017 | char opendir (); |
| 15018 | int |
| 15019 | main () |
| 15020 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15021 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15022 | ; |
| 15023 | return 0; |
| 15024 | } |
| 15025 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15026 | for ac_lib in '' dir; do |
| 15027 | if test -z "$ac_lib"; then |
| 15028 | ac_res="none required" |
| 15029 | else |
| 15030 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15031 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15032 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15033 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15034 | if { (ac_try="$ac_link" |
| 15035 | case "(($ac_try" in |
| 15036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15037 | *) ac_try_echo=$ac_try;; |
| 15038 | esac |
| 15039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15040 | (eval "$ac_link") 2>conftest.er1 |
| 15041 | ac_status=$? |
| 15042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15043 | rm -f conftest.er1 |
| 15044 | cat conftest.err >&5 |
| 15045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15046 | (exit $ac_status); } && |
| 15047 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15048 | { (case "(($ac_try" in |
| 15049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15050 | *) ac_try_echo=$ac_try;; |
| 15051 | esac |
| 15052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15053 | (eval "$ac_try") 2>&5 |
| 15054 | ac_status=$? |
| 15055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15056 | (exit $ac_status); }; } && |
| 15057 | { ac_try='test -s conftest$ac_exeext' |
| 15058 | { (case "(($ac_try" in |
| 15059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15060 | *) ac_try_echo=$ac_try;; |
| 15061 | esac |
| 15062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15063 | (eval "$ac_try") 2>&5 |
| 15064 | ac_status=$? |
| 15065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15066 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15067 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15068 | else |
| 15069 | echo "$as_me: failed program was:" >&5 |
| 15070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15071 | |
| 15072 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15073 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15074 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15075 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15076 | conftest$ac_exeext |
| 15077 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15078 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15079 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15080 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15081 | if test "${ac_cv_search_opendir+set}" = set; then |
| 15082 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15083 | else |
| 15084 | ac_cv_search_opendir=no |
| 15085 | fi |
| 15086 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15087 | LIBS=$ac_func_search_save_LIBS |
| 15088 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15089 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 15090 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15091 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15092 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15093 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15094 | |
| 15095 | fi |
| 15096 | |
| 15097 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15098 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 15099 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 15100 | if test "${ac_cv_search_opendir+set}" = set; then |
| 15101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15102 | else |
| 15103 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15104 | cat >conftest.$ac_ext <<_ACEOF |
| 15105 | /* confdefs.h. */ |
| 15106 | _ACEOF |
| 15107 | cat confdefs.h >>conftest.$ac_ext |
| 15108 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15109 | /* end confdefs.h. */ |
| 15110 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15111 | /* Override any GCC internal prototype to avoid an error. |
| 15112 | Use char because int might match the return type of a GCC |
| 15113 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15114 | #ifdef __cplusplus |
| 15115 | extern "C" |
| 15116 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15117 | char opendir (); |
| 15118 | int |
| 15119 | main () |
| 15120 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15121 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15122 | ; |
| 15123 | return 0; |
| 15124 | } |
| 15125 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15126 | for ac_lib in '' x; do |
| 15127 | if test -z "$ac_lib"; then |
| 15128 | ac_res="none required" |
| 15129 | else |
| 15130 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15131 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15132 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15133 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15134 | if { (ac_try="$ac_link" |
| 15135 | case "(($ac_try" in |
| 15136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15137 | *) ac_try_echo=$ac_try;; |
| 15138 | esac |
| 15139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15140 | (eval "$ac_link") 2>conftest.er1 |
| 15141 | ac_status=$? |
| 15142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15143 | rm -f conftest.er1 |
| 15144 | cat conftest.err >&5 |
| 15145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15146 | (exit $ac_status); } && |
| 15147 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15148 | { (case "(($ac_try" in |
| 15149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15150 | *) ac_try_echo=$ac_try;; |
| 15151 | esac |
| 15152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15153 | (eval "$ac_try") 2>&5 |
| 15154 | ac_status=$? |
| 15155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15156 | (exit $ac_status); }; } && |
| 15157 | { ac_try='test -s conftest$ac_exeext' |
| 15158 | { (case "(($ac_try" in |
| 15159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15160 | *) ac_try_echo=$ac_try;; |
| 15161 | esac |
| 15162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15163 | (eval "$ac_try") 2>&5 |
| 15164 | ac_status=$? |
| 15165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15166 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15167 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15168 | else |
| 15169 | echo "$as_me: failed program was:" >&5 |
| 15170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15171 | |
| 15172 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15173 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15174 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15175 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15176 | conftest$ac_exeext |
| 15177 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15178 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15179 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15180 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15181 | if test "${ac_cv_search_opendir+set}" = set; then |
| 15182 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15183 | else |
| 15184 | ac_cv_search_opendir=no |
| 15185 | fi |
| 15186 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15187 | LIBS=$ac_func_search_save_LIBS |
| 15188 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15189 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 15190 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15191 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15192 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15193 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15194 | |
| 15195 | fi |
| 15196 | |
| 15197 | fi |
| 15198 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15199 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 15200 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 15201 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 15202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15203 | else |
| 15204 | ac_ext=c |
| 15205 | ac_cpp='$CPP $CPPFLAGS' |
| 15206 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15207 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15208 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15209 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15210 | cat >conftest.$ac_ext <<_ACEOF |
| 15211 | /* confdefs.h. */ |
| 15212 | _ACEOF |
| 15213 | cat confdefs.h >>conftest.$ac_ext |
| 15214 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15215 | /* end confdefs.h. */ |
| 15216 | #include <sys/mman.h> |
| 15217 | #include <unistd.h> |
| 15218 | #include <fcntl.h> |
| 15219 | int |
| 15220 | main () |
| 15221 | { |
| 15222 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 15223 | ; |
| 15224 | return 0; |
| 15225 | } |
| 15226 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15227 | rm -f conftest.$ac_objext |
| 15228 | if { (ac_try="$ac_compile" |
| 15229 | case "(($ac_try" in |
| 15230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15231 | *) ac_try_echo=$ac_try;; |
| 15232 | esac |
| 15233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15234 | (eval "$ac_compile") 2>conftest.er1 |
| 15235 | ac_status=$? |
| 15236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15237 | rm -f conftest.er1 |
| 15238 | cat conftest.err >&5 |
| 15239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15240 | (exit $ac_status); } && |
| 15241 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15242 | { (case "(($ac_try" in |
| 15243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15244 | *) ac_try_echo=$ac_try;; |
| 15245 | esac |
| 15246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15247 | (eval "$ac_try") 2>&5 |
| 15248 | ac_status=$? |
| 15249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15250 | (exit $ac_status); }; } && |
| 15251 | { ac_try='test -s conftest.$ac_objext' |
| 15252 | { (case "(($ac_try" in |
| 15253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15254 | *) ac_try_echo=$ac_try;; |
| 15255 | esac |
| 15256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15257 | (eval "$ac_try") 2>&5 |
| 15258 | ac_status=$? |
| 15259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15260 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15261 | ac_cv_header_mmap_anon=yes |
| 15262 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15263 | echo "$as_me: failed program was:" >&5 |
| 15264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15265 | |
| 15266 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15267 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15268 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15270 | ac_ext=c |
| 15271 | ac_cpp='$CPP $CPPFLAGS' |
| 15272 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15273 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15274 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15275 | |
| 15276 | |
| 15277 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15278 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 15279 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15280 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 15281 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15282 | cat >>confdefs.h <<\_ACEOF |
| 15283 | #define HAVE_MMAP_ANONYMOUS 1 |
| 15284 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15285 | |
| 15286 | fi |
| 15287 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15288 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 15289 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 15290 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 15291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15292 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15293 | cat >conftest.$ac_ext <<_ACEOF |
| 15294 | /* confdefs.h. */ |
| 15295 | _ACEOF |
| 15296 | cat confdefs.h >>conftest.$ac_ext |
| 15297 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15298 | /* end confdefs.h. */ |
| 15299 | #include <sys/types.h> |
| 15300 | #include <sys/stat.h> |
| 15301 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15302 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15303 | # if S_ISBLK (S_IFDIR) |
| 15304 | You lose. |
| 15305 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15306 | #endif |
| 15307 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15308 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15309 | # if S_ISBLK (S_IFCHR) |
| 15310 | You lose. |
| 15311 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15312 | #endif |
| 15313 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15314 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15315 | # if S_ISLNK (S_IFREG) |
| 15316 | You lose. |
| 15317 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15318 | #endif |
| 15319 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15320 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15321 | # if S_ISSOCK (S_IFREG) |
| 15322 | You lose. |
| 15323 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15324 | #endif |
| 15325 | |
| 15326 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15327 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15328 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 15329 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15330 | else |
| 15331 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 15332 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15333 | rm -f conftest* |
| 15334 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15335 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15336 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 15337 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15338 | if test $ac_cv_header_stat_broken = yes; then |
| 15339 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15340 | cat >>confdefs.h <<\_ACEOF |
| 15341 | #define STAT_MACROS_BROKEN 1 |
| 15342 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15343 | |
| 15344 | fi |
| 15345 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15346 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 15347 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 15348 | if test "${ac_cv_header_stdc+set}" = set; then |
| 15349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15350 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15351 | cat >conftest.$ac_ext <<_ACEOF |
| 15352 | /* confdefs.h. */ |
| 15353 | _ACEOF |
| 15354 | cat confdefs.h >>conftest.$ac_ext |
| 15355 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15356 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15357 | #include <stdlib.h> |
| 15358 | #include <stdarg.h> |
| 15359 | #include <string.h> |
| 15360 | #include <float.h> |
| 15361 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15362 | int |
| 15363 | main () |
| 15364 | { |
| 15365 | |
| 15366 | ; |
| 15367 | return 0; |
| 15368 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15369 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15370 | rm -f conftest.$ac_objext |
| 15371 | if { (ac_try="$ac_compile" |
| 15372 | case "(($ac_try" in |
| 15373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15374 | *) ac_try_echo=$ac_try;; |
| 15375 | esac |
| 15376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15377 | (eval "$ac_compile") 2>conftest.er1 |
| 15378 | ac_status=$? |
| 15379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15380 | rm -f conftest.er1 |
| 15381 | cat conftest.err >&5 |
| 15382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15383 | (exit $ac_status); } && |
| 15384 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15385 | { (case "(($ac_try" in |
| 15386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15387 | *) ac_try_echo=$ac_try;; |
| 15388 | esac |
| 15389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15390 | (eval "$ac_try") 2>&5 |
| 15391 | ac_status=$? |
| 15392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15393 | (exit $ac_status); }; } && |
| 15394 | { ac_try='test -s conftest.$ac_objext' |
| 15395 | { (case "(($ac_try" in |
| 15396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15397 | *) ac_try_echo=$ac_try;; |
| 15398 | esac |
| 15399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15400 | (eval "$ac_try") 2>&5 |
| 15401 | ac_status=$? |
| 15402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15403 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15404 | ac_cv_header_stdc=yes |
| 15405 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15406 | echo "$as_me: failed program was:" >&5 |
| 15407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15408 | |
| 15409 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15410 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15411 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15413 | |
| 15414 | if test $ac_cv_header_stdc = yes; then |
| 15415 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15416 | cat >conftest.$ac_ext <<_ACEOF |
| 15417 | /* confdefs.h. */ |
| 15418 | _ACEOF |
| 15419 | cat confdefs.h >>conftest.$ac_ext |
| 15420 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15421 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15422 | #include <string.h> |
| 15423 | |
| 15424 | _ACEOF |
| 15425 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15426 | $EGREP "memchr" >/dev/null 2>&1; then |
| 15427 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15428 | else |
| 15429 | ac_cv_header_stdc=no |
| 15430 | fi |
| 15431 | rm -f conftest* |
| 15432 | |
| 15433 | fi |
| 15434 | |
| 15435 | if test $ac_cv_header_stdc = yes; then |
| 15436 | # 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] | 15437 | cat >conftest.$ac_ext <<_ACEOF |
| 15438 | /* confdefs.h. */ |
| 15439 | _ACEOF |
| 15440 | cat confdefs.h >>conftest.$ac_ext |
| 15441 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15442 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15443 | #include <stdlib.h> |
| 15444 | |
| 15445 | _ACEOF |
| 15446 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15447 | $EGREP "free" >/dev/null 2>&1; then |
| 15448 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15449 | else |
| 15450 | ac_cv_header_stdc=no |
| 15451 | fi |
| 15452 | rm -f conftest* |
| 15453 | |
| 15454 | fi |
| 15455 | |
| 15456 | if test $ac_cv_header_stdc = yes; then |
| 15457 | # /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] | 15458 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15459 | : |
| 15460 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15461 | cat >conftest.$ac_ext <<_ACEOF |
| 15462 | /* confdefs.h. */ |
| 15463 | _ACEOF |
| 15464 | cat confdefs.h >>conftest.$ac_ext |
| 15465 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15466 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15467 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15468 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15469 | #if ((' ' & 0x0FF) == 0x020) |
| 15470 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 15471 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 15472 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15473 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15474 | (('a' <= (c) && (c) <= 'i') \ |
| 15475 | || ('j' <= (c) && (c) <= 'r') \ |
| 15476 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15477 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 15478 | #endif |
| 15479 | |
| 15480 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 15481 | int |
| 15482 | main () |
| 15483 | { |
| 15484 | int i; |
| 15485 | for (i = 0; i < 256; i++) |
| 15486 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15487 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15488 | return 2; |
| 15489 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15490 | } |
| 15491 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15492 | rm -f conftest$ac_exeext |
| 15493 | if { (ac_try="$ac_link" |
| 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_link") 2>&5 |
| 15500 | ac_status=$? |
| 15501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15502 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15503 | { (case "(($ac_try" in |
| 15504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15505 | *) ac_try_echo=$ac_try;; |
| 15506 | esac |
| 15507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15508 | (eval "$ac_try") 2>&5 |
| 15509 | ac_status=$? |
| 15510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15511 | (exit $ac_status); }; }; then |
| 15512 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15513 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15514 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15515 | echo "$as_me: failed program was:" >&5 |
| 15516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15517 | |
| 15518 | ( exit $ac_status ) |
| 15519 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15520 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15521 | 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] | 15522 | fi |
| 15523 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15524 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15525 | fi |
| 15526 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15527 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 15528 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15529 | if test $ac_cv_header_stdc = yes; then |
| 15530 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15531 | cat >>confdefs.h <<\_ACEOF |
| 15532 | #define STDC_HEADERS 1 |
| 15533 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15534 | |
| 15535 | fi |
| 15536 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15537 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 15538 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 15539 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 15540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15541 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15542 | cat >conftest.$ac_ext <<_ACEOF |
| 15543 | /* confdefs.h. */ |
| 15544 | _ACEOF |
| 15545 | cat confdefs.h >>conftest.$ac_ext |
| 15546 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15547 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15548 | #include <sys/types.h> |
| 15549 | #include <sys/wait.h> |
| 15550 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15551 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15552 | #endif |
| 15553 | #ifndef WIFEXITED |
| 15554 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 15555 | #endif |
| 15556 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15557 | int |
| 15558 | main () |
| 15559 | { |
| 15560 | int s; |
| 15561 | wait (&s); |
| 15562 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 15563 | ; |
| 15564 | return 0; |
| 15565 | } |
| 15566 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15567 | rm -f conftest.$ac_objext |
| 15568 | if { (ac_try="$ac_compile" |
| 15569 | case "(($ac_try" in |
| 15570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15571 | *) ac_try_echo=$ac_try;; |
| 15572 | esac |
| 15573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15574 | (eval "$ac_compile") 2>conftest.er1 |
| 15575 | ac_status=$? |
| 15576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15577 | rm -f conftest.er1 |
| 15578 | cat conftest.err >&5 |
| 15579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15580 | (exit $ac_status); } && |
| 15581 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15582 | { (case "(($ac_try" in |
| 15583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15584 | *) ac_try_echo=$ac_try;; |
| 15585 | esac |
| 15586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15587 | (eval "$ac_try") 2>&5 |
| 15588 | ac_status=$? |
| 15589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15590 | (exit $ac_status); }; } && |
| 15591 | { ac_try='test -s conftest.$ac_objext' |
| 15592 | { (case "(($ac_try" in |
| 15593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15594 | *) ac_try_echo=$ac_try;; |
| 15595 | esac |
| 15596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15597 | (eval "$ac_try") 2>&5 |
| 15598 | ac_status=$? |
| 15599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15600 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15601 | ac_cv_header_sys_wait_h=yes |
| 15602 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15603 | echo "$as_me: failed program was:" >&5 |
| 15604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15605 | |
| 15606 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15607 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15608 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15610 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15611 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 15612 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15613 | if test $ac_cv_header_sys_wait_h = yes; then |
| 15614 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15615 | cat >>confdefs.h <<\_ACEOF |
| 15616 | #define HAVE_SYS_WAIT_H 1 |
| 15617 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15618 | |
| 15619 | fi |
| 15620 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15621 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15622 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 15623 | if test "${ac_cv_header_time+set}" = set; then |
| 15624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15625 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15626 | cat >conftest.$ac_ext <<_ACEOF |
| 15627 | /* confdefs.h. */ |
| 15628 | _ACEOF |
| 15629 | cat confdefs.h >>conftest.$ac_ext |
| 15630 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15631 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15632 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15633 | #include <sys/time.h> |
| 15634 | #include <time.h> |
| 15635 | |
| 15636 | int |
| 15637 | main () |
| 15638 | { |
| 15639 | if ((struct tm *) 0) |
| 15640 | return 0; |
| 15641 | ; |
| 15642 | return 0; |
| 15643 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15644 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15645 | rm -f conftest.$ac_objext |
| 15646 | if { (ac_try="$ac_compile" |
| 15647 | case "(($ac_try" in |
| 15648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15649 | *) ac_try_echo=$ac_try;; |
| 15650 | esac |
| 15651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15652 | (eval "$ac_compile") 2>conftest.er1 |
| 15653 | ac_status=$? |
| 15654 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15655 | rm -f conftest.er1 |
| 15656 | cat conftest.err >&5 |
| 15657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15658 | (exit $ac_status); } && |
| 15659 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15660 | { (case "(($ac_try" in |
| 15661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15662 | *) ac_try_echo=$ac_try;; |
| 15663 | esac |
| 15664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15665 | (eval "$ac_try") 2>&5 |
| 15666 | ac_status=$? |
| 15667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15668 | (exit $ac_status); }; } && |
| 15669 | { ac_try='test -s conftest.$ac_objext' |
| 15670 | { (case "(($ac_try" in |
| 15671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15672 | *) ac_try_echo=$ac_try;; |
| 15673 | esac |
| 15674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15675 | (eval "$ac_try") 2>&5 |
| 15676 | ac_status=$? |
| 15677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15678 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15679 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15680 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15681 | echo "$as_me: failed program was:" >&5 |
| 15682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15683 | |
| 15684 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15685 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15686 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15688 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15689 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15690 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15691 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15692 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15693 | cat >>confdefs.h <<\_ACEOF |
| 15694 | #define TIME_WITH_SYS_TIME 1 |
| 15695 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15696 | |
| 15697 | fi |
| 15698 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15699 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15700 | |
| 15701 | |
| 15702 | |
| 15703 | |
| 15704 | |
| 15705 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15706 | 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] | 15707 | do |
| 15708 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15709 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15710 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15711 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15712 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15714 | fi |
| 15715 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15716 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15717 | echo "${ECHO_T}$ac_res" >&6; } |
| 15718 | else |
| 15719 | # Is the header compilable? |
| 15720 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15721 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15722 | cat >conftest.$ac_ext <<_ACEOF |
| 15723 | /* confdefs.h. */ |
| 15724 | _ACEOF |
| 15725 | cat confdefs.h >>conftest.$ac_ext |
| 15726 | cat >>conftest.$ac_ext <<_ACEOF |
| 15727 | /* end confdefs.h. */ |
| 15728 | $ac_includes_default |
| 15729 | #include <$ac_header> |
| 15730 | _ACEOF |
| 15731 | rm -f conftest.$ac_objext |
| 15732 | if { (ac_try="$ac_compile" |
| 15733 | case "(($ac_try" in |
| 15734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15735 | *) ac_try_echo=$ac_try;; |
| 15736 | esac |
| 15737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15738 | (eval "$ac_compile") 2>conftest.er1 |
| 15739 | ac_status=$? |
| 15740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15741 | rm -f conftest.er1 |
| 15742 | cat conftest.err >&5 |
| 15743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15744 | (exit $ac_status); } && |
| 15745 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15746 | { (case "(($ac_try" in |
| 15747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15748 | *) ac_try_echo=$ac_try;; |
| 15749 | esac |
| 15750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15751 | (eval "$ac_try") 2>&5 |
| 15752 | ac_status=$? |
| 15753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15754 | (exit $ac_status); }; } && |
| 15755 | { ac_try='test -s conftest.$ac_objext' |
| 15756 | { (case "(($ac_try" in |
| 15757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15758 | *) ac_try_echo=$ac_try;; |
| 15759 | esac |
| 15760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15761 | (eval "$ac_try") 2>&5 |
| 15762 | ac_status=$? |
| 15763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15764 | (exit $ac_status); }; }; then |
| 15765 | ac_header_compiler=yes |
| 15766 | else |
| 15767 | echo "$as_me: failed program was:" >&5 |
| 15768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15769 | |
| 15770 | ac_header_compiler=no |
| 15771 | fi |
| 15772 | |
| 15773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15774 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15775 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15776 | |
| 15777 | # Is the header present? |
| 15778 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15779 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15780 | cat >conftest.$ac_ext <<_ACEOF |
| 15781 | /* confdefs.h. */ |
| 15782 | _ACEOF |
| 15783 | cat confdefs.h >>conftest.$ac_ext |
| 15784 | cat >>conftest.$ac_ext <<_ACEOF |
| 15785 | /* end confdefs.h. */ |
| 15786 | #include <$ac_header> |
| 15787 | _ACEOF |
| 15788 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15789 | case "(($ac_try" in |
| 15790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15791 | *) ac_try_echo=$ac_try;; |
| 15792 | esac |
| 15793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15794 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15795 | ac_status=$? |
| 15796 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15797 | rm -f conftest.er1 |
| 15798 | cat conftest.err >&5 |
| 15799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15800 | (exit $ac_status); } >/dev/null; then |
| 15801 | if test -s conftest.err; then |
| 15802 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15803 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15804 | else |
| 15805 | ac_cpp_err= |
| 15806 | fi |
| 15807 | else |
| 15808 | ac_cpp_err=yes |
| 15809 | fi |
| 15810 | if test -z "$ac_cpp_err"; then |
| 15811 | ac_header_preproc=yes |
| 15812 | else |
| 15813 | echo "$as_me: failed program was:" >&5 |
| 15814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15815 | |
| 15816 | ac_header_preproc=no |
| 15817 | fi |
| 15818 | |
| 15819 | rm -f conftest.err conftest.$ac_ext |
| 15820 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15821 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15822 | |
| 15823 | # So? What about this header? |
| 15824 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15825 | yes:no: ) |
| 15826 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15827 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15828 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15829 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15830 | ac_header_preproc=yes |
| 15831 | ;; |
| 15832 | no:yes:* ) |
| 15833 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15834 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15835 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15836 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15837 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15838 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15839 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15840 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15841 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15842 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15843 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15844 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15845 | ( cat <<\_ASBOX |
| 15846 | ## ----------------------------------- ## |
| 15847 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15848 | ## ----------------------------------- ## |
| 15849 | _ASBOX |
| 15850 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15851 | ;; |
| 15852 | esac |
| 15853 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15854 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15855 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15857 | else |
| 15858 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15859 | fi |
| 15860 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15861 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15862 | echo "${ECHO_T}$ac_res" >&6; } |
| 15863 | |
| 15864 | fi |
| 15865 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15866 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15867 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15868 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15869 | |
| 15870 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15871 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15872 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15873 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15874 | |
| 15875 | |
| 15876 | |
| 15877 | |
| 15878 | |
| 15879 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15880 | 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] | 15881 | do |
| 15882 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15883 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15884 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15885 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15886 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15888 | fi |
| 15889 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15890 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15891 | echo "${ECHO_T}$ac_res" >&6; } |
| 15892 | else |
| 15893 | # Is the header compilable? |
| 15894 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15895 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15896 | cat >conftest.$ac_ext <<_ACEOF |
| 15897 | /* confdefs.h. */ |
| 15898 | _ACEOF |
| 15899 | cat confdefs.h >>conftest.$ac_ext |
| 15900 | cat >>conftest.$ac_ext <<_ACEOF |
| 15901 | /* end confdefs.h. */ |
| 15902 | $ac_includes_default |
| 15903 | #include <$ac_header> |
| 15904 | _ACEOF |
| 15905 | rm -f conftest.$ac_objext |
| 15906 | if { (ac_try="$ac_compile" |
| 15907 | case "(($ac_try" in |
| 15908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15909 | *) ac_try_echo=$ac_try;; |
| 15910 | esac |
| 15911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15912 | (eval "$ac_compile") 2>conftest.er1 |
| 15913 | ac_status=$? |
| 15914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15915 | rm -f conftest.er1 |
| 15916 | cat conftest.err >&5 |
| 15917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15918 | (exit $ac_status); } && |
| 15919 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15920 | { (case "(($ac_try" in |
| 15921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15922 | *) ac_try_echo=$ac_try;; |
| 15923 | esac |
| 15924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15925 | (eval "$ac_try") 2>&5 |
| 15926 | ac_status=$? |
| 15927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15928 | (exit $ac_status); }; } && |
| 15929 | { ac_try='test -s conftest.$ac_objext' |
| 15930 | { (case "(($ac_try" in |
| 15931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15932 | *) ac_try_echo=$ac_try;; |
| 15933 | esac |
| 15934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15935 | (eval "$ac_try") 2>&5 |
| 15936 | ac_status=$? |
| 15937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15938 | (exit $ac_status); }; }; then |
| 15939 | ac_header_compiler=yes |
| 15940 | else |
| 15941 | echo "$as_me: failed program was:" >&5 |
| 15942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15943 | |
| 15944 | ac_header_compiler=no |
| 15945 | fi |
| 15946 | |
| 15947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15948 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15949 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15950 | |
| 15951 | # Is the header present? |
| 15952 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15953 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15954 | cat >conftest.$ac_ext <<_ACEOF |
| 15955 | /* confdefs.h. */ |
| 15956 | _ACEOF |
| 15957 | cat confdefs.h >>conftest.$ac_ext |
| 15958 | cat >>conftest.$ac_ext <<_ACEOF |
| 15959 | /* end confdefs.h. */ |
| 15960 | #include <$ac_header> |
| 15961 | _ACEOF |
| 15962 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15963 | case "(($ac_try" in |
| 15964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15965 | *) ac_try_echo=$ac_try;; |
| 15966 | esac |
| 15967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15968 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15969 | ac_status=$? |
| 15970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15971 | rm -f conftest.er1 |
| 15972 | cat conftest.err >&5 |
| 15973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15974 | (exit $ac_status); } >/dev/null; then |
| 15975 | if test -s conftest.err; then |
| 15976 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15977 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15978 | else |
| 15979 | ac_cpp_err= |
| 15980 | fi |
| 15981 | else |
| 15982 | ac_cpp_err=yes |
| 15983 | fi |
| 15984 | if test -z "$ac_cpp_err"; then |
| 15985 | ac_header_preproc=yes |
| 15986 | else |
| 15987 | echo "$as_me: failed program was:" >&5 |
| 15988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15989 | |
| 15990 | ac_header_preproc=no |
| 15991 | fi |
| 15992 | |
| 15993 | rm -f conftest.err conftest.$ac_ext |
| 15994 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15995 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15996 | |
| 15997 | # So? What about this header? |
| 15998 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15999 | yes:no: ) |
| 16000 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16001 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16002 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16003 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16004 | ac_header_preproc=yes |
| 16005 | ;; |
| 16006 | no:yes:* ) |
| 16007 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16008 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16009 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16010 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16011 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16012 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16013 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16014 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16015 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16016 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16017 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16018 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16019 | ( cat <<\_ASBOX |
| 16020 | ## ----------------------------------- ## |
| 16021 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16022 | ## ----------------------------------- ## |
| 16023 | _ASBOX |
| 16024 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16025 | ;; |
| 16026 | esac |
| 16027 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16028 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16029 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16031 | else |
| 16032 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16033 | fi |
| 16034 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16035 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16036 | echo "${ECHO_T}$ac_res" >&6; } |
| 16037 | |
| 16038 | fi |
| 16039 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 16040 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16041 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 16042 | _ACEOF |
| 16043 | |
| 16044 | fi |
| 16045 | |
| 16046 | done |
| 16047 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16048 | |
| 16049 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 16050 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16051 | do |
| 16052 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16053 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16054 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16055 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16056 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16058 | fi |
| 16059 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16060 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16061 | echo "${ECHO_T}$ac_res" >&6; } |
| 16062 | else |
| 16063 | # Is the header compilable? |
| 16064 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16065 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16066 | cat >conftest.$ac_ext <<_ACEOF |
| 16067 | /* confdefs.h. */ |
| 16068 | _ACEOF |
| 16069 | cat confdefs.h >>conftest.$ac_ext |
| 16070 | cat >>conftest.$ac_ext <<_ACEOF |
| 16071 | /* end confdefs.h. */ |
| 16072 | $ac_includes_default |
| 16073 | #include <$ac_header> |
| 16074 | _ACEOF |
| 16075 | rm -f conftest.$ac_objext |
| 16076 | if { (ac_try="$ac_compile" |
| 16077 | case "(($ac_try" in |
| 16078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16079 | *) ac_try_echo=$ac_try;; |
| 16080 | esac |
| 16081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16082 | (eval "$ac_compile") 2>conftest.er1 |
| 16083 | ac_status=$? |
| 16084 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16085 | rm -f conftest.er1 |
| 16086 | cat conftest.err >&5 |
| 16087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16088 | (exit $ac_status); } && |
| 16089 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16090 | { (case "(($ac_try" in |
| 16091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16092 | *) ac_try_echo=$ac_try;; |
| 16093 | esac |
| 16094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16095 | (eval "$ac_try") 2>&5 |
| 16096 | ac_status=$? |
| 16097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16098 | (exit $ac_status); }; } && |
| 16099 | { ac_try='test -s conftest.$ac_objext' |
| 16100 | { (case "(($ac_try" in |
| 16101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16102 | *) ac_try_echo=$ac_try;; |
| 16103 | esac |
| 16104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16105 | (eval "$ac_try") 2>&5 |
| 16106 | ac_status=$? |
| 16107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16108 | (exit $ac_status); }; }; then |
| 16109 | ac_header_compiler=yes |
| 16110 | else |
| 16111 | echo "$as_me: failed program was:" >&5 |
| 16112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16113 | |
| 16114 | ac_header_compiler=no |
| 16115 | fi |
| 16116 | |
| 16117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16118 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16119 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16120 | |
| 16121 | # Is the header present? |
| 16122 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16123 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16124 | cat >conftest.$ac_ext <<_ACEOF |
| 16125 | /* confdefs.h. */ |
| 16126 | _ACEOF |
| 16127 | cat confdefs.h >>conftest.$ac_ext |
| 16128 | cat >>conftest.$ac_ext <<_ACEOF |
| 16129 | /* end confdefs.h. */ |
| 16130 | #include <$ac_header> |
| 16131 | _ACEOF |
| 16132 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16133 | case "(($ac_try" in |
| 16134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16135 | *) ac_try_echo=$ac_try;; |
| 16136 | esac |
| 16137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16138 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16139 | ac_status=$? |
| 16140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16141 | rm -f conftest.er1 |
| 16142 | cat conftest.err >&5 |
| 16143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16144 | (exit $ac_status); } >/dev/null; then |
| 16145 | if test -s conftest.err; then |
| 16146 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16147 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16148 | else |
| 16149 | ac_cpp_err= |
| 16150 | fi |
| 16151 | else |
| 16152 | ac_cpp_err=yes |
| 16153 | fi |
| 16154 | if test -z "$ac_cpp_err"; then |
| 16155 | ac_header_preproc=yes |
| 16156 | else |
| 16157 | echo "$as_me: failed program was:" >&5 |
| 16158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16159 | |
| 16160 | ac_header_preproc=no |
| 16161 | fi |
| 16162 | |
| 16163 | rm -f conftest.err conftest.$ac_ext |
| 16164 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16165 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16166 | |
| 16167 | # So? What about this header? |
| 16168 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16169 | yes:no: ) |
| 16170 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16171 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16172 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16173 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16174 | ac_header_preproc=yes |
| 16175 | ;; |
| 16176 | no:yes:* ) |
| 16177 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16178 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16179 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16180 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16181 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16182 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16183 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16184 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16185 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16186 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16187 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16188 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16189 | ( cat <<\_ASBOX |
| 16190 | ## ----------------------------------- ## |
| 16191 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16192 | ## ----------------------------------- ## |
| 16193 | _ASBOX |
| 16194 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16195 | ;; |
| 16196 | esac |
| 16197 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16198 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16199 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16201 | else |
| 16202 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16203 | fi |
| 16204 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16205 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16206 | echo "${ECHO_T}$ac_res" >&6; } |
| 16207 | |
| 16208 | fi |
| 16209 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16210 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16211 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16212 | _ACEOF |
| 16213 | |
| 16214 | fi |
| 16215 | |
| 16216 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 16217 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16218 | |
| 16219 | |
| 16220 | |
| 16221 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16222 | 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] | 16223 | do |
| 16224 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16225 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16226 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16227 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16228 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16230 | fi |
| 16231 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16232 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16233 | echo "${ECHO_T}$ac_res" >&6; } |
| 16234 | else |
| 16235 | # Is the header compilable? |
| 16236 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16237 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16238 | cat >conftest.$ac_ext <<_ACEOF |
| 16239 | /* confdefs.h. */ |
| 16240 | _ACEOF |
| 16241 | cat confdefs.h >>conftest.$ac_ext |
| 16242 | cat >>conftest.$ac_ext <<_ACEOF |
| 16243 | /* end confdefs.h. */ |
| 16244 | $ac_includes_default |
| 16245 | #include <$ac_header> |
| 16246 | _ACEOF |
| 16247 | rm -f conftest.$ac_objext |
| 16248 | if { (ac_try="$ac_compile" |
| 16249 | case "(($ac_try" in |
| 16250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16251 | *) ac_try_echo=$ac_try;; |
| 16252 | esac |
| 16253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16254 | (eval "$ac_compile") 2>conftest.er1 |
| 16255 | ac_status=$? |
| 16256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16257 | rm -f conftest.er1 |
| 16258 | cat conftest.err >&5 |
| 16259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16260 | (exit $ac_status); } && |
| 16261 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16262 | { (case "(($ac_try" in |
| 16263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16264 | *) ac_try_echo=$ac_try;; |
| 16265 | esac |
| 16266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16267 | (eval "$ac_try") 2>&5 |
| 16268 | ac_status=$? |
| 16269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16270 | (exit $ac_status); }; } && |
| 16271 | { ac_try='test -s conftest.$ac_objext' |
| 16272 | { (case "(($ac_try" in |
| 16273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16274 | *) ac_try_echo=$ac_try;; |
| 16275 | esac |
| 16276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16277 | (eval "$ac_try") 2>&5 |
| 16278 | ac_status=$? |
| 16279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16280 | (exit $ac_status); }; }; then |
| 16281 | ac_header_compiler=yes |
| 16282 | else |
| 16283 | echo "$as_me: failed program was:" >&5 |
| 16284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16285 | |
| 16286 | ac_header_compiler=no |
| 16287 | fi |
| 16288 | |
| 16289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16290 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16291 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16292 | |
| 16293 | # Is the header present? |
| 16294 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16295 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16296 | cat >conftest.$ac_ext <<_ACEOF |
| 16297 | /* confdefs.h. */ |
| 16298 | _ACEOF |
| 16299 | cat confdefs.h >>conftest.$ac_ext |
| 16300 | cat >>conftest.$ac_ext <<_ACEOF |
| 16301 | /* end confdefs.h. */ |
| 16302 | #include <$ac_header> |
| 16303 | _ACEOF |
| 16304 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16305 | case "(($ac_try" in |
| 16306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16307 | *) ac_try_echo=$ac_try;; |
| 16308 | esac |
| 16309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16310 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16311 | ac_status=$? |
| 16312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16313 | rm -f conftest.er1 |
| 16314 | cat conftest.err >&5 |
| 16315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16316 | (exit $ac_status); } >/dev/null; then |
| 16317 | if test -s conftest.err; then |
| 16318 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16319 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16320 | else |
| 16321 | ac_cpp_err= |
| 16322 | fi |
| 16323 | else |
| 16324 | ac_cpp_err=yes |
| 16325 | fi |
| 16326 | if test -z "$ac_cpp_err"; then |
| 16327 | ac_header_preproc=yes |
| 16328 | else |
| 16329 | echo "$as_me: failed program was:" >&5 |
| 16330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16331 | |
| 16332 | ac_header_preproc=no |
| 16333 | fi |
| 16334 | |
| 16335 | rm -f conftest.err conftest.$ac_ext |
| 16336 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16337 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16338 | |
| 16339 | # So? What about this header? |
| 16340 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16341 | yes:no: ) |
| 16342 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16343 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16344 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16345 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16346 | ac_header_preproc=yes |
| 16347 | ;; |
| 16348 | no:yes:* ) |
| 16349 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16350 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16351 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16352 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16353 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16354 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16355 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16356 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16357 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16358 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16359 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16360 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16361 | ( cat <<\_ASBOX |
| 16362 | ## ----------------------------------- ## |
| 16363 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16364 | ## ----------------------------------- ## |
| 16365 | _ASBOX |
| 16366 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16367 | ;; |
| 16368 | esac |
| 16369 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16370 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16371 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16373 | else |
| 16374 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16375 | fi |
| 16376 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16377 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16378 | echo "${ECHO_T}$ac_res" >&6; } |
| 16379 | |
| 16380 | fi |
| 16381 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16382 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16383 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16384 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16385 | |
| 16386 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16387 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16388 | done |
| 16389 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16390 | |
| 16391 | |
| 16392 | |
| 16393 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 16394 | 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] | 16395 | do |
| 16396 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16397 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16398 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16399 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16400 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16402 | fi |
| 16403 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16404 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16405 | echo "${ECHO_T}$ac_res" >&6; } |
| 16406 | else |
| 16407 | # Is the header compilable? |
| 16408 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16409 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16410 | cat >conftest.$ac_ext <<_ACEOF |
| 16411 | /* confdefs.h. */ |
| 16412 | _ACEOF |
| 16413 | cat confdefs.h >>conftest.$ac_ext |
| 16414 | cat >>conftest.$ac_ext <<_ACEOF |
| 16415 | /* end confdefs.h. */ |
| 16416 | $ac_includes_default |
| 16417 | #include <$ac_header> |
| 16418 | _ACEOF |
| 16419 | rm -f conftest.$ac_objext |
| 16420 | if { (ac_try="$ac_compile" |
| 16421 | case "(($ac_try" in |
| 16422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16423 | *) ac_try_echo=$ac_try;; |
| 16424 | esac |
| 16425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16426 | (eval "$ac_compile") 2>conftest.er1 |
| 16427 | ac_status=$? |
| 16428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16429 | rm -f conftest.er1 |
| 16430 | cat conftest.err >&5 |
| 16431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16432 | (exit $ac_status); } && |
| 16433 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16434 | { (case "(($ac_try" in |
| 16435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16436 | *) ac_try_echo=$ac_try;; |
| 16437 | esac |
| 16438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16439 | (eval "$ac_try") 2>&5 |
| 16440 | ac_status=$? |
| 16441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16442 | (exit $ac_status); }; } && |
| 16443 | { ac_try='test -s conftest.$ac_objext' |
| 16444 | { (case "(($ac_try" in |
| 16445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16446 | *) ac_try_echo=$ac_try;; |
| 16447 | esac |
| 16448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16449 | (eval "$ac_try") 2>&5 |
| 16450 | ac_status=$? |
| 16451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16452 | (exit $ac_status); }; }; then |
| 16453 | ac_header_compiler=yes |
| 16454 | else |
| 16455 | echo "$as_me: failed program was:" >&5 |
| 16456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16457 | |
| 16458 | ac_header_compiler=no |
| 16459 | fi |
| 16460 | |
| 16461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16462 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16463 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16464 | |
| 16465 | # Is the header present? |
| 16466 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16467 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16468 | cat >conftest.$ac_ext <<_ACEOF |
| 16469 | /* confdefs.h. */ |
| 16470 | _ACEOF |
| 16471 | cat confdefs.h >>conftest.$ac_ext |
| 16472 | cat >>conftest.$ac_ext <<_ACEOF |
| 16473 | /* end confdefs.h. */ |
| 16474 | #include <$ac_header> |
| 16475 | _ACEOF |
| 16476 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16477 | case "(($ac_try" in |
| 16478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16479 | *) ac_try_echo=$ac_try;; |
| 16480 | esac |
| 16481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16482 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16483 | ac_status=$? |
| 16484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16485 | rm -f conftest.er1 |
| 16486 | cat conftest.err >&5 |
| 16487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16488 | (exit $ac_status); } >/dev/null; then |
| 16489 | if test -s conftest.err; then |
| 16490 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16491 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16492 | else |
| 16493 | ac_cpp_err= |
| 16494 | fi |
| 16495 | else |
| 16496 | ac_cpp_err=yes |
| 16497 | fi |
| 16498 | if test -z "$ac_cpp_err"; then |
| 16499 | ac_header_preproc=yes |
| 16500 | else |
| 16501 | echo "$as_me: failed program was:" >&5 |
| 16502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16503 | |
| 16504 | ac_header_preproc=no |
| 16505 | fi |
| 16506 | |
| 16507 | rm -f conftest.err conftest.$ac_ext |
| 16508 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16509 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16510 | |
| 16511 | # So? What about this header? |
| 16512 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16513 | yes:no: ) |
| 16514 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16515 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16516 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16517 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16518 | ac_header_preproc=yes |
| 16519 | ;; |
| 16520 | no:yes:* ) |
| 16521 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16522 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16523 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16524 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16525 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16526 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16527 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16528 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16529 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16530 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16531 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16532 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16533 | ( cat <<\_ASBOX |
| 16534 | ## ----------------------------------- ## |
| 16535 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16536 | ## ----------------------------------- ## |
| 16537 | _ASBOX |
| 16538 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16539 | ;; |
| 16540 | esac |
| 16541 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16542 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16543 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16545 | else |
| 16546 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16547 | fi |
| 16548 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16549 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16550 | echo "${ECHO_T}$ac_res" >&6; } |
| 16551 | |
| 16552 | fi |
| 16553 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16554 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16555 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16556 | _ACEOF |
| 16557 | |
| 16558 | fi |
| 16559 | |
| 16560 | done |
| 16561 | |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 16562 | |
| 16563 | for ac_header in valgrind/valgrind.h |
| 16564 | do |
| 16565 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16566 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16567 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16568 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16569 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16571 | fi |
| 16572 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16573 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16574 | echo "${ECHO_T}$ac_res" >&6; } |
| 16575 | else |
| 16576 | # Is the header compilable? |
| 16577 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16578 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16579 | cat >conftest.$ac_ext <<_ACEOF |
| 16580 | /* confdefs.h. */ |
| 16581 | _ACEOF |
| 16582 | cat confdefs.h >>conftest.$ac_ext |
| 16583 | cat >>conftest.$ac_ext <<_ACEOF |
| 16584 | /* end confdefs.h. */ |
| 16585 | $ac_includes_default |
| 16586 | #include <$ac_header> |
| 16587 | _ACEOF |
| 16588 | rm -f conftest.$ac_objext |
| 16589 | if { (ac_try="$ac_compile" |
| 16590 | case "(($ac_try" in |
| 16591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16592 | *) ac_try_echo=$ac_try;; |
| 16593 | esac |
| 16594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16595 | (eval "$ac_compile") 2>conftest.er1 |
| 16596 | ac_status=$? |
| 16597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16598 | rm -f conftest.er1 |
| 16599 | cat conftest.err >&5 |
| 16600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16601 | (exit $ac_status); } && |
| 16602 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16603 | { (case "(($ac_try" in |
| 16604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16605 | *) ac_try_echo=$ac_try;; |
| 16606 | esac |
| 16607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16608 | (eval "$ac_try") 2>&5 |
| 16609 | ac_status=$? |
| 16610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16611 | (exit $ac_status); }; } && |
| 16612 | { ac_try='test -s conftest.$ac_objext' |
| 16613 | { (case "(($ac_try" in |
| 16614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16615 | *) ac_try_echo=$ac_try;; |
| 16616 | esac |
| 16617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16618 | (eval "$ac_try") 2>&5 |
| 16619 | ac_status=$? |
| 16620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16621 | (exit $ac_status); }; }; then |
| 16622 | ac_header_compiler=yes |
| 16623 | else |
| 16624 | echo "$as_me: failed program was:" >&5 |
| 16625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16626 | |
| 16627 | ac_header_compiler=no |
| 16628 | fi |
| 16629 | |
| 16630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16631 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16632 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16633 | |
| 16634 | # Is the header present? |
| 16635 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16636 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16637 | cat >conftest.$ac_ext <<_ACEOF |
| 16638 | /* confdefs.h. */ |
| 16639 | _ACEOF |
| 16640 | cat confdefs.h >>conftest.$ac_ext |
| 16641 | cat >>conftest.$ac_ext <<_ACEOF |
| 16642 | /* end confdefs.h. */ |
| 16643 | #include <$ac_header> |
| 16644 | _ACEOF |
| 16645 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16646 | case "(($ac_try" in |
| 16647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16648 | *) ac_try_echo=$ac_try;; |
| 16649 | esac |
| 16650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16651 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16652 | ac_status=$? |
| 16653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16654 | rm -f conftest.er1 |
| 16655 | cat conftest.err >&5 |
| 16656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16657 | (exit $ac_status); } >/dev/null; then |
| 16658 | if test -s conftest.err; then |
| 16659 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16660 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16661 | else |
| 16662 | ac_cpp_err= |
| 16663 | fi |
| 16664 | else |
| 16665 | ac_cpp_err=yes |
| 16666 | fi |
| 16667 | if test -z "$ac_cpp_err"; then |
| 16668 | ac_header_preproc=yes |
| 16669 | else |
| 16670 | echo "$as_me: failed program was:" >&5 |
| 16671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16672 | |
| 16673 | ac_header_preproc=no |
| 16674 | fi |
| 16675 | |
| 16676 | rm -f conftest.err conftest.$ac_ext |
| 16677 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16678 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16679 | |
| 16680 | # So? What about this header? |
| 16681 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16682 | yes:no: ) |
| 16683 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16684 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16685 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16686 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16687 | ac_header_preproc=yes |
| 16688 | ;; |
| 16689 | no:yes:* ) |
| 16690 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16691 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16692 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16693 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16694 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16695 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16696 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16697 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16698 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16699 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16700 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16701 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16702 | ( cat <<\_ASBOX |
| 16703 | ## ----------------------------------- ## |
| 16704 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16705 | ## ----------------------------------- ## |
| 16706 | _ASBOX |
| 16707 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16708 | ;; |
| 16709 | esac |
| 16710 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16711 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16712 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16714 | else |
| 16715 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16716 | fi |
| 16717 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16718 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16719 | echo "${ECHO_T}$ac_res" >&6; } |
| 16720 | |
| 16721 | fi |
| 16722 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16723 | cat >>confdefs.h <<_ACEOF |
| 16724 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16725 | _ACEOF |
| 16726 | |
| 16727 | fi |
| 16728 | |
| 16729 | done |
| 16730 | |
Dan Gohman | c6ce9d6 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 16731 | |
| 16732 | for ac_header in fenv.h |
| 16733 | do |
| 16734 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16735 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16736 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16737 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16738 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16740 | fi |
| 16741 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16742 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16743 | echo "${ECHO_T}$ac_res" >&6; } |
| 16744 | else |
| 16745 | # Is the header compilable? |
| 16746 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16747 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16748 | cat >conftest.$ac_ext <<_ACEOF |
| 16749 | /* confdefs.h. */ |
| 16750 | _ACEOF |
| 16751 | cat confdefs.h >>conftest.$ac_ext |
| 16752 | cat >>conftest.$ac_ext <<_ACEOF |
| 16753 | /* end confdefs.h. */ |
| 16754 | $ac_includes_default |
| 16755 | #include <$ac_header> |
| 16756 | _ACEOF |
| 16757 | rm -f conftest.$ac_objext |
| 16758 | if { (ac_try="$ac_compile" |
| 16759 | case "(($ac_try" in |
| 16760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16761 | *) ac_try_echo=$ac_try;; |
| 16762 | esac |
| 16763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16764 | (eval "$ac_compile") 2>conftest.er1 |
| 16765 | ac_status=$? |
| 16766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16767 | rm -f conftest.er1 |
| 16768 | cat conftest.err >&5 |
| 16769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16770 | (exit $ac_status); } && |
| 16771 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16772 | { (case "(($ac_try" in |
| 16773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16774 | *) ac_try_echo=$ac_try;; |
| 16775 | esac |
| 16776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16777 | (eval "$ac_try") 2>&5 |
| 16778 | ac_status=$? |
| 16779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16780 | (exit $ac_status); }; } && |
| 16781 | { ac_try='test -s conftest.$ac_objext' |
| 16782 | { (case "(($ac_try" in |
| 16783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16784 | *) ac_try_echo=$ac_try;; |
| 16785 | esac |
| 16786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16787 | (eval "$ac_try") 2>&5 |
| 16788 | ac_status=$? |
| 16789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16790 | (exit $ac_status); }; }; then |
| 16791 | ac_header_compiler=yes |
| 16792 | else |
| 16793 | echo "$as_me: failed program was:" >&5 |
| 16794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16795 | |
| 16796 | ac_header_compiler=no |
| 16797 | fi |
| 16798 | |
| 16799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16800 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16801 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16802 | |
| 16803 | # Is the header present? |
| 16804 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16805 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16806 | cat >conftest.$ac_ext <<_ACEOF |
| 16807 | /* confdefs.h. */ |
| 16808 | _ACEOF |
| 16809 | cat confdefs.h >>conftest.$ac_ext |
| 16810 | cat >>conftest.$ac_ext <<_ACEOF |
| 16811 | /* end confdefs.h. */ |
| 16812 | #include <$ac_header> |
| 16813 | _ACEOF |
| 16814 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16815 | case "(($ac_try" in |
| 16816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16817 | *) ac_try_echo=$ac_try;; |
| 16818 | esac |
| 16819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16820 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16821 | ac_status=$? |
| 16822 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16823 | rm -f conftest.er1 |
| 16824 | cat conftest.err >&5 |
| 16825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16826 | (exit $ac_status); } >/dev/null; then |
| 16827 | if test -s conftest.err; then |
| 16828 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16829 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16830 | else |
| 16831 | ac_cpp_err= |
| 16832 | fi |
| 16833 | else |
| 16834 | ac_cpp_err=yes |
| 16835 | fi |
| 16836 | if test -z "$ac_cpp_err"; then |
| 16837 | ac_header_preproc=yes |
| 16838 | else |
| 16839 | echo "$as_me: failed program was:" >&5 |
| 16840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16841 | |
| 16842 | ac_header_preproc=no |
| 16843 | fi |
| 16844 | |
| 16845 | rm -f conftest.err conftest.$ac_ext |
| 16846 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16847 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16848 | |
| 16849 | # So? What about this header? |
| 16850 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16851 | yes:no: ) |
| 16852 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16853 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16854 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16855 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16856 | ac_header_preproc=yes |
| 16857 | ;; |
| 16858 | no:yes:* ) |
| 16859 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16860 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16861 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16862 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16863 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16864 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16865 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16866 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16867 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16868 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16869 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16870 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16871 | ( cat <<\_ASBOX |
| 16872 | ## ----------------------------------- ## |
| 16873 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16874 | ## ----------------------------------- ## |
| 16875 | _ASBOX |
| 16876 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16877 | ;; |
| 16878 | esac |
| 16879 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16880 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16881 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16883 | else |
| 16884 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16885 | fi |
| 16886 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16887 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16888 | echo "${ECHO_T}$ac_res" >&6; } |
| 16889 | |
| 16890 | fi |
| 16891 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16892 | cat >>confdefs.h <<_ACEOF |
| 16893 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16894 | _ACEOF |
| 16895 | |
| 16896 | fi |
| 16897 | |
| 16898 | done |
| 16899 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16900 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16901 | |
| 16902 | for ac_header in pthread.h |
| 16903 | do |
| 16904 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16905 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16906 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16907 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16908 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16910 | fi |
| 16911 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16912 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16913 | echo "${ECHO_T}$ac_res" >&6; } |
| 16914 | else |
| 16915 | # Is the header compilable? |
| 16916 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16917 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16918 | cat >conftest.$ac_ext <<_ACEOF |
| 16919 | /* confdefs.h. */ |
| 16920 | _ACEOF |
| 16921 | cat confdefs.h >>conftest.$ac_ext |
| 16922 | cat >>conftest.$ac_ext <<_ACEOF |
| 16923 | /* end confdefs.h. */ |
| 16924 | $ac_includes_default |
| 16925 | #include <$ac_header> |
| 16926 | _ACEOF |
| 16927 | rm -f conftest.$ac_objext |
| 16928 | if { (ac_try="$ac_compile" |
| 16929 | case "(($ac_try" in |
| 16930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16931 | *) ac_try_echo=$ac_try;; |
| 16932 | esac |
| 16933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16934 | (eval "$ac_compile") 2>conftest.er1 |
| 16935 | ac_status=$? |
| 16936 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16937 | rm -f conftest.er1 |
| 16938 | cat conftest.err >&5 |
| 16939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16940 | (exit $ac_status); } && |
| 16941 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16942 | { (case "(($ac_try" in |
| 16943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16944 | *) ac_try_echo=$ac_try;; |
| 16945 | esac |
| 16946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16947 | (eval "$ac_try") 2>&5 |
| 16948 | ac_status=$? |
| 16949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16950 | (exit $ac_status); }; } && |
| 16951 | { ac_try='test -s conftest.$ac_objext' |
| 16952 | { (case "(($ac_try" in |
| 16953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16954 | *) ac_try_echo=$ac_try;; |
| 16955 | esac |
| 16956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16957 | (eval "$ac_try") 2>&5 |
| 16958 | ac_status=$? |
| 16959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16960 | (exit $ac_status); }; }; then |
| 16961 | ac_header_compiler=yes |
| 16962 | else |
| 16963 | echo "$as_me: failed program was:" >&5 |
| 16964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16965 | |
| 16966 | ac_header_compiler=no |
| 16967 | fi |
| 16968 | |
| 16969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16970 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16971 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16972 | |
| 16973 | # Is the header present? |
| 16974 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16975 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16976 | cat >conftest.$ac_ext <<_ACEOF |
| 16977 | /* confdefs.h. */ |
| 16978 | _ACEOF |
| 16979 | cat confdefs.h >>conftest.$ac_ext |
| 16980 | cat >>conftest.$ac_ext <<_ACEOF |
| 16981 | /* end confdefs.h. */ |
| 16982 | #include <$ac_header> |
| 16983 | _ACEOF |
| 16984 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16985 | case "(($ac_try" in |
| 16986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16987 | *) ac_try_echo=$ac_try;; |
| 16988 | esac |
| 16989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16990 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16991 | ac_status=$? |
| 16992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16993 | rm -f conftest.er1 |
| 16994 | cat conftest.err >&5 |
| 16995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16996 | (exit $ac_status); } >/dev/null; then |
| 16997 | if test -s conftest.err; then |
| 16998 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16999 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 17000 | else |
| 17001 | ac_cpp_err= |
| 17002 | fi |
| 17003 | else |
| 17004 | ac_cpp_err=yes |
| 17005 | fi |
| 17006 | if test -z "$ac_cpp_err"; then |
| 17007 | ac_header_preproc=yes |
| 17008 | else |
| 17009 | echo "$as_me: failed program was:" >&5 |
| 17010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17011 | |
| 17012 | ac_header_preproc=no |
| 17013 | fi |
| 17014 | |
| 17015 | rm -f conftest.err conftest.$ac_ext |
| 17016 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17017 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17018 | |
| 17019 | # So? What about this header? |
| 17020 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17021 | yes:no: ) |
| 17022 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17023 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17024 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17025 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 17026 | ac_header_preproc=yes |
| 17027 | ;; |
| 17028 | no:yes:* ) |
| 17029 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17030 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17031 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17032 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17033 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17034 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17035 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17036 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17037 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17038 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17039 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17040 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17041 | ( cat <<\_ASBOX |
| 17042 | ## ----------------------------------- ## |
| 17043 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 17044 | ## ----------------------------------- ## |
| 17045 | _ASBOX |
| 17046 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17047 | ;; |
| 17048 | esac |
| 17049 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17050 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17051 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17053 | else |
| 17054 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17055 | fi |
| 17056 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17057 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17058 | echo "${ECHO_T}$ac_res" >&6; } |
| 17059 | |
| 17060 | fi |
| 17061 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 17062 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17063 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 17064 | _ACEOF |
| 17065 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 17066 | |
| 17067 | else |
| 17068 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 17069 | |
| 17070 | fi |
| 17071 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 17072 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 17073 | |
| 17074 | else |
| 17075 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 17076 | |
| 17077 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 17078 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 17079 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17080 | |
| 17081 | |
| 17082 | for ac_header in ffi.h ffi/ffi.h |
| 17083 | do |
| 17084 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17085 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17086 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17087 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17088 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17090 | fi |
| 17091 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17092 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17093 | echo "${ECHO_T}$ac_res" >&6; } |
| 17094 | else |
| 17095 | # Is the header compilable? |
| 17096 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 17097 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 17098 | cat >conftest.$ac_ext <<_ACEOF |
| 17099 | /* confdefs.h. */ |
| 17100 | _ACEOF |
| 17101 | cat confdefs.h >>conftest.$ac_ext |
| 17102 | cat >>conftest.$ac_ext <<_ACEOF |
| 17103 | /* end confdefs.h. */ |
| 17104 | $ac_includes_default |
| 17105 | #include <$ac_header> |
| 17106 | _ACEOF |
| 17107 | rm -f conftest.$ac_objext |
| 17108 | if { (ac_try="$ac_compile" |
| 17109 | case "(($ac_try" in |
| 17110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17111 | *) ac_try_echo=$ac_try;; |
| 17112 | esac |
| 17113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17114 | (eval "$ac_compile") 2>conftest.er1 |
| 17115 | ac_status=$? |
| 17116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17117 | rm -f conftest.er1 |
| 17118 | cat conftest.err >&5 |
| 17119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17120 | (exit $ac_status); } && |
| 17121 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17122 | { (case "(($ac_try" in |
| 17123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17124 | *) ac_try_echo=$ac_try;; |
| 17125 | esac |
| 17126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17127 | (eval "$ac_try") 2>&5 |
| 17128 | ac_status=$? |
| 17129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17130 | (exit $ac_status); }; } && |
| 17131 | { ac_try='test -s conftest.$ac_objext' |
| 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_try") 2>&5 |
| 17138 | ac_status=$? |
| 17139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17140 | (exit $ac_status); }; }; then |
| 17141 | ac_header_compiler=yes |
| 17142 | else |
| 17143 | echo "$as_me: failed program was:" >&5 |
| 17144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17145 | |
| 17146 | ac_header_compiler=no |
| 17147 | fi |
| 17148 | |
| 17149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17150 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17151 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17152 | |
| 17153 | # Is the header present? |
| 17154 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 17155 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 17156 | cat >conftest.$ac_ext <<_ACEOF |
| 17157 | /* confdefs.h. */ |
| 17158 | _ACEOF |
| 17159 | cat confdefs.h >>conftest.$ac_ext |
| 17160 | cat >>conftest.$ac_ext <<_ACEOF |
| 17161 | /* end confdefs.h. */ |
| 17162 | #include <$ac_header> |
| 17163 | _ACEOF |
| 17164 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17165 | case "(($ac_try" in |
| 17166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17167 | *) ac_try_echo=$ac_try;; |
| 17168 | esac |
| 17169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17170 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17171 | ac_status=$? |
| 17172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17173 | rm -f conftest.er1 |
| 17174 | cat conftest.err >&5 |
| 17175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17176 | (exit $ac_status); } >/dev/null; then |
| 17177 | if test -s conftest.err; then |
| 17178 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17179 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 17180 | else |
| 17181 | ac_cpp_err= |
| 17182 | fi |
| 17183 | else |
| 17184 | ac_cpp_err=yes |
| 17185 | fi |
| 17186 | if test -z "$ac_cpp_err"; then |
| 17187 | ac_header_preproc=yes |
| 17188 | else |
| 17189 | echo "$as_me: failed program was:" >&5 |
| 17190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17191 | |
| 17192 | ac_header_preproc=no |
| 17193 | fi |
| 17194 | |
| 17195 | rm -f conftest.err conftest.$ac_ext |
| 17196 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17197 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17198 | |
| 17199 | # So? What about this header? |
| 17200 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17201 | yes:no: ) |
| 17202 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17203 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17204 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17205 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 17206 | ac_header_preproc=yes |
| 17207 | ;; |
| 17208 | no:yes:* ) |
| 17209 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17210 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17211 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17212 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17213 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17214 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17215 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17216 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17217 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17218 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17219 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17220 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17221 | ( cat <<\_ASBOX |
| 17222 | ## ----------------------------------- ## |
| 17223 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 17224 | ## ----------------------------------- ## |
| 17225 | _ASBOX |
| 17226 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17227 | ;; |
| 17228 | esac |
| 17229 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17230 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17231 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17233 | else |
| 17234 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17235 | fi |
| 17236 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17237 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17238 | echo "${ECHO_T}$ac_res" >&6; } |
| 17239 | |
| 17240 | fi |
| 17241 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 17242 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17243 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 17244 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 17245 | |
| 17246 | fi |
| 17247 | |
| 17248 | done |
| 17249 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 17250 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 17251 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 17252 | |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 17253 | for ac_header in CrashReporterClient.h |
| 17254 | do |
| 17255 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17256 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17257 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17258 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17259 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17261 | fi |
| 17262 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17263 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17264 | echo "${ECHO_T}$ac_res" >&6; } |
| 17265 | else |
| 17266 | # Is the header compilable? |
| 17267 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 17268 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 17269 | cat >conftest.$ac_ext <<_ACEOF |
| 17270 | /* confdefs.h. */ |
| 17271 | _ACEOF |
| 17272 | cat confdefs.h >>conftest.$ac_ext |
| 17273 | cat >>conftest.$ac_ext <<_ACEOF |
| 17274 | /* end confdefs.h. */ |
| 17275 | $ac_includes_default |
| 17276 | #include <$ac_header> |
| 17277 | _ACEOF |
| 17278 | rm -f conftest.$ac_objext |
| 17279 | if { (ac_try="$ac_compile" |
| 17280 | case "(($ac_try" in |
| 17281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17282 | *) ac_try_echo=$ac_try;; |
| 17283 | esac |
| 17284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17285 | (eval "$ac_compile") 2>conftest.er1 |
| 17286 | ac_status=$? |
| 17287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17288 | rm -f conftest.er1 |
| 17289 | cat conftest.err >&5 |
| 17290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17291 | (exit $ac_status); } && |
| 17292 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17293 | { (case "(($ac_try" in |
| 17294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17295 | *) ac_try_echo=$ac_try;; |
| 17296 | esac |
| 17297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17298 | (eval "$ac_try") 2>&5 |
| 17299 | ac_status=$? |
| 17300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17301 | (exit $ac_status); }; } && |
| 17302 | { ac_try='test -s conftest.$ac_objext' |
| 17303 | { (case "(($ac_try" in |
| 17304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17305 | *) ac_try_echo=$ac_try;; |
| 17306 | esac |
| 17307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17308 | (eval "$ac_try") 2>&5 |
| 17309 | ac_status=$? |
| 17310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17311 | (exit $ac_status); }; }; then |
| 17312 | ac_header_compiler=yes |
| 17313 | else |
| 17314 | echo "$as_me: failed program was:" >&5 |
| 17315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17316 | |
| 17317 | ac_header_compiler=no |
| 17318 | fi |
| 17319 | |
| 17320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17321 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17322 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17323 | |
| 17324 | # Is the header present? |
| 17325 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 17326 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 17327 | cat >conftest.$ac_ext <<_ACEOF |
| 17328 | /* confdefs.h. */ |
| 17329 | _ACEOF |
| 17330 | cat confdefs.h >>conftest.$ac_ext |
| 17331 | cat >>conftest.$ac_ext <<_ACEOF |
| 17332 | /* end confdefs.h. */ |
| 17333 | #include <$ac_header> |
| 17334 | _ACEOF |
| 17335 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17336 | case "(($ac_try" in |
| 17337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17338 | *) ac_try_echo=$ac_try;; |
| 17339 | esac |
| 17340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17341 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17342 | ac_status=$? |
| 17343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17344 | rm -f conftest.er1 |
| 17345 | cat conftest.err >&5 |
| 17346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17347 | (exit $ac_status); } >/dev/null; then |
| 17348 | if test -s conftest.err; then |
| 17349 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17350 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 17351 | else |
| 17352 | ac_cpp_err= |
| 17353 | fi |
| 17354 | else |
| 17355 | ac_cpp_err=yes |
| 17356 | fi |
| 17357 | if test -z "$ac_cpp_err"; then |
| 17358 | ac_header_preproc=yes |
| 17359 | else |
| 17360 | echo "$as_me: failed program was:" >&5 |
| 17361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17362 | |
| 17363 | ac_header_preproc=no |
| 17364 | fi |
| 17365 | |
| 17366 | rm -f conftest.err conftest.$ac_ext |
| 17367 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17368 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17369 | |
| 17370 | # So? What about this header? |
| 17371 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17372 | yes:no: ) |
| 17373 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17374 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17375 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17376 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 17377 | ac_header_preproc=yes |
| 17378 | ;; |
| 17379 | no:yes:* ) |
| 17380 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17381 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17382 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17383 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17384 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17385 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17386 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17387 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17388 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17389 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17390 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17391 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17392 | ( cat <<\_ASBOX |
| 17393 | ## ----------------------------------- ## |
| 17394 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 17395 | ## ----------------------------------- ## |
| 17396 | _ASBOX |
| 17397 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17398 | ;; |
| 17399 | esac |
| 17400 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17401 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17402 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17404 | else |
| 17405 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17406 | fi |
| 17407 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17408 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17409 | echo "${ECHO_T}$ac_res" >&6; } |
| 17410 | |
| 17411 | fi |
| 17412 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 17413 | cat >>confdefs.h <<_ACEOF |
| 17414 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17415 | _ACEOF |
| 17416 | |
| 17417 | fi |
| 17418 | |
| 17419 | done |
| 17420 | |
| 17421 | |
| 17422 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 17423 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17424 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17425 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 17426 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 17427 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 17428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17429 | else |
| 17430 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 17431 | ac_ext=cpp |
| 17432 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17433 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17434 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17435 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17436 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 17437 | ac_save_CXXFLAGS=$CXXFLAGS |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 17438 | CXXFLAGS=-pedantic |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17439 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17440 | ac_cv_huge_val_sanity=yes |
| 17441 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17442 | cat >conftest.$ac_ext <<_ACEOF |
| 17443 | /* confdefs.h. */ |
| 17444 | _ACEOF |
| 17445 | cat confdefs.h >>conftest.$ac_ext |
| 17446 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17447 | /* end confdefs.h. */ |
| 17448 | #include <math.h> |
| 17449 | int |
| 17450 | main () |
| 17451 | { |
| 17452 | double x = HUGE_VAL; return x != x; |
| 17453 | ; |
| 17454 | return 0; |
| 17455 | } |
| 17456 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17457 | rm -f conftest$ac_exeext |
| 17458 | if { (ac_try="$ac_link" |
| 17459 | case "(($ac_try" in |
| 17460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17461 | *) ac_try_echo=$ac_try;; |
| 17462 | esac |
| 17463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17464 | (eval "$ac_link") 2>&5 |
| 17465 | ac_status=$? |
| 17466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17467 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17468 | { (case "(($ac_try" in |
| 17469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17470 | *) ac_try_echo=$ac_try;; |
| 17471 | esac |
| 17472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17473 | (eval "$ac_try") 2>&5 |
| 17474 | ac_status=$? |
| 17475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17476 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17477 | ac_cv_huge_val_sanity=yes |
| 17478 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17479 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17480 | echo "$as_me: failed program was:" >&5 |
| 17481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17482 | |
| 17483 | ( exit $ac_status ) |
| 17484 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17485 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17486 | 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] | 17487 | fi |
| 17488 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17489 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 17490 | CXXFLAGS=$ac_save_CXXFLAGS |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17491 | ac_ext=c |
| 17492 | ac_cpp='$CPP $CPPFLAGS' |
| 17493 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17494 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17495 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17496 | |
| 17497 | |
| 17498 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17499 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 17500 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17501 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 17502 | |
| 17503 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17504 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 17505 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 17506 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 17507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17508 | else |
| 17509 | cat >conftest.$ac_ext <<_ACEOF |
| 17510 | /* confdefs.h. */ |
| 17511 | _ACEOF |
| 17512 | cat confdefs.h >>conftest.$ac_ext |
| 17513 | cat >>conftest.$ac_ext <<_ACEOF |
| 17514 | /* end confdefs.h. */ |
| 17515 | $ac_includes_default |
| 17516 | typedef pid_t ac__type_new_; |
| 17517 | int |
| 17518 | main () |
| 17519 | { |
| 17520 | if ((ac__type_new_ *) 0) |
| 17521 | return 0; |
| 17522 | if (sizeof (ac__type_new_)) |
| 17523 | return 0; |
| 17524 | ; |
| 17525 | return 0; |
| 17526 | } |
| 17527 | _ACEOF |
| 17528 | rm -f conftest.$ac_objext |
| 17529 | if { (ac_try="$ac_compile" |
| 17530 | case "(($ac_try" in |
| 17531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17532 | *) ac_try_echo=$ac_try;; |
| 17533 | esac |
| 17534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17535 | (eval "$ac_compile") 2>conftest.er1 |
| 17536 | ac_status=$? |
| 17537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17538 | rm -f conftest.er1 |
| 17539 | cat conftest.err >&5 |
| 17540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17541 | (exit $ac_status); } && |
| 17542 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17543 | { (case "(($ac_try" in |
| 17544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17545 | *) ac_try_echo=$ac_try;; |
| 17546 | esac |
| 17547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17548 | (eval "$ac_try") 2>&5 |
| 17549 | ac_status=$? |
| 17550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17551 | (exit $ac_status); }; } && |
| 17552 | { ac_try='test -s conftest.$ac_objext' |
| 17553 | { (case "(($ac_try" in |
| 17554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17555 | *) ac_try_echo=$ac_try;; |
| 17556 | esac |
| 17557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17558 | (eval "$ac_try") 2>&5 |
| 17559 | ac_status=$? |
| 17560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17561 | (exit $ac_status); }; }; then |
| 17562 | ac_cv_type_pid_t=yes |
| 17563 | else |
| 17564 | echo "$as_me: failed program was:" >&5 |
| 17565 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17566 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17567 | ac_cv_type_pid_t=no |
| 17568 | fi |
| 17569 | |
| 17570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17571 | fi |
| 17572 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 17573 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 17574 | if test $ac_cv_type_pid_t = yes; then |
| 17575 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17576 | else |
| 17577 | |
| 17578 | cat >>confdefs.h <<_ACEOF |
| 17579 | #define pid_t int |
| 17580 | _ACEOF |
| 17581 | |
| 17582 | fi |
| 17583 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17584 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 17585 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 17586 | if test "${ac_cv_type_size_t+set}" = set; then |
| 17587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17588 | else |
| 17589 | cat >conftest.$ac_ext <<_ACEOF |
| 17590 | /* confdefs.h. */ |
| 17591 | _ACEOF |
| 17592 | cat confdefs.h >>conftest.$ac_ext |
| 17593 | cat >>conftest.$ac_ext <<_ACEOF |
| 17594 | /* end confdefs.h. */ |
| 17595 | $ac_includes_default |
| 17596 | typedef size_t ac__type_new_; |
| 17597 | int |
| 17598 | main () |
| 17599 | { |
| 17600 | if ((ac__type_new_ *) 0) |
| 17601 | return 0; |
| 17602 | if (sizeof (ac__type_new_)) |
| 17603 | return 0; |
| 17604 | ; |
| 17605 | return 0; |
| 17606 | } |
| 17607 | _ACEOF |
| 17608 | rm -f conftest.$ac_objext |
| 17609 | if { (ac_try="$ac_compile" |
| 17610 | case "(($ac_try" in |
| 17611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17612 | *) ac_try_echo=$ac_try;; |
| 17613 | esac |
| 17614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17615 | (eval "$ac_compile") 2>conftest.er1 |
| 17616 | ac_status=$? |
| 17617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17618 | rm -f conftest.er1 |
| 17619 | cat conftest.err >&5 |
| 17620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17621 | (exit $ac_status); } && |
| 17622 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17623 | { (case "(($ac_try" in |
| 17624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17625 | *) ac_try_echo=$ac_try;; |
| 17626 | esac |
| 17627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17628 | (eval "$ac_try") 2>&5 |
| 17629 | ac_status=$? |
| 17630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17631 | (exit $ac_status); }; } && |
| 17632 | { ac_try='test -s conftest.$ac_objext' |
| 17633 | { (case "(($ac_try" in |
| 17634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17635 | *) ac_try_echo=$ac_try;; |
| 17636 | esac |
| 17637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17638 | (eval "$ac_try") 2>&5 |
| 17639 | ac_status=$? |
| 17640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17641 | (exit $ac_status); }; }; then |
| 17642 | ac_cv_type_size_t=yes |
| 17643 | else |
| 17644 | echo "$as_me: failed program was:" >&5 |
| 17645 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17646 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17647 | ac_cv_type_size_t=no |
| 17648 | fi |
| 17649 | |
| 17650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17651 | fi |
| 17652 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 17653 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 17654 | if test $ac_cv_type_size_t = yes; then |
| 17655 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17656 | else |
| 17657 | |
| 17658 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17659 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17660 | _ACEOF |
| 17661 | |
| 17662 | fi |
| 17663 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17664 | |
| 17665 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17666 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17667 | _ACEOF |
| 17668 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17669 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 17670 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 17671 | if test "${ac_cv_struct_tm+set}" = set; then |
| 17672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17673 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17674 | cat >conftest.$ac_ext <<_ACEOF |
| 17675 | /* confdefs.h. */ |
| 17676 | _ACEOF |
| 17677 | cat confdefs.h >>conftest.$ac_ext |
| 17678 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17679 | /* end confdefs.h. */ |
| 17680 | #include <sys/types.h> |
| 17681 | #include <time.h> |
| 17682 | |
| 17683 | int |
| 17684 | main () |
| 17685 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17686 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17687 | ; |
| 17688 | return 0; |
| 17689 | } |
| 17690 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17691 | rm -f conftest.$ac_objext |
| 17692 | if { (ac_try="$ac_compile" |
| 17693 | case "(($ac_try" in |
| 17694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17695 | *) ac_try_echo=$ac_try;; |
| 17696 | esac |
| 17697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17698 | (eval "$ac_compile") 2>conftest.er1 |
| 17699 | ac_status=$? |
| 17700 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17701 | rm -f conftest.er1 |
| 17702 | cat conftest.err >&5 |
| 17703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17704 | (exit $ac_status); } && |
| 17705 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17706 | { (case "(($ac_try" in |
| 17707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17708 | *) ac_try_echo=$ac_try;; |
| 17709 | esac |
| 17710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17711 | (eval "$ac_try") 2>&5 |
| 17712 | ac_status=$? |
| 17713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17714 | (exit $ac_status); }; } && |
| 17715 | { ac_try='test -s conftest.$ac_objext' |
| 17716 | { (case "(($ac_try" in |
| 17717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17718 | *) ac_try_echo=$ac_try;; |
| 17719 | esac |
| 17720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17721 | (eval "$ac_try") 2>&5 |
| 17722 | ac_status=$? |
| 17723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17724 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17725 | ac_cv_struct_tm=time.h |
| 17726 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17727 | echo "$as_me: failed program was:" >&5 |
| 17728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17729 | |
| 17730 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17731 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17732 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17734 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17735 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 17736 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17737 | if test $ac_cv_struct_tm = sys/time.h; then |
| 17738 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17739 | cat >>confdefs.h <<\_ACEOF |
| 17740 | #define TM_IN_SYS_TIME 1 |
| 17741 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17742 | |
| 17743 | fi |
| 17744 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17745 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 17746 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 17747 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 17748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17749 | else |
| 17750 | cat >conftest.$ac_ext <<_ACEOF |
| 17751 | /* confdefs.h. */ |
| 17752 | _ACEOF |
| 17753 | cat confdefs.h >>conftest.$ac_ext |
| 17754 | cat >>conftest.$ac_ext <<_ACEOF |
| 17755 | /* end confdefs.h. */ |
| 17756 | $ac_includes_default |
| 17757 | typedef int64_t ac__type_new_; |
| 17758 | int |
| 17759 | main () |
| 17760 | { |
| 17761 | if ((ac__type_new_ *) 0) |
| 17762 | return 0; |
| 17763 | if (sizeof (ac__type_new_)) |
| 17764 | return 0; |
| 17765 | ; |
| 17766 | return 0; |
| 17767 | } |
| 17768 | _ACEOF |
| 17769 | rm -f conftest.$ac_objext |
| 17770 | if { (ac_try="$ac_compile" |
| 17771 | case "(($ac_try" in |
| 17772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17773 | *) ac_try_echo=$ac_try;; |
| 17774 | esac |
| 17775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17776 | (eval "$ac_compile") 2>conftest.er1 |
| 17777 | ac_status=$? |
| 17778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17779 | rm -f conftest.er1 |
| 17780 | cat conftest.err >&5 |
| 17781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17782 | (exit $ac_status); } && |
| 17783 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17784 | { (case "(($ac_try" in |
| 17785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17786 | *) ac_try_echo=$ac_try;; |
| 17787 | esac |
| 17788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17789 | (eval "$ac_try") 2>&5 |
| 17790 | ac_status=$? |
| 17791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17792 | (exit $ac_status); }; } && |
| 17793 | { ac_try='test -s conftest.$ac_objext' |
| 17794 | { (case "(($ac_try" in |
| 17795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17796 | *) ac_try_echo=$ac_try;; |
| 17797 | esac |
| 17798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17799 | (eval "$ac_try") 2>&5 |
| 17800 | ac_status=$? |
| 17801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17802 | (exit $ac_status); }; }; then |
| 17803 | ac_cv_type_int64_t=yes |
| 17804 | else |
| 17805 | echo "$as_me: failed program was:" >&5 |
| 17806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17807 | |
| 17808 | ac_cv_type_int64_t=no |
| 17809 | fi |
| 17810 | |
| 17811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17812 | fi |
| 17813 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 17814 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 17815 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17816 | |
| 17817 | cat >>confdefs.h <<_ACEOF |
| 17818 | #define HAVE_INT64_T 1 |
| 17819 | _ACEOF |
| 17820 | |
| 17821 | |
| 17822 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17823 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 17824 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 17825 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17826 | fi |
| 17827 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17828 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 17829 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 17830 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 17831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17832 | else |
| 17833 | cat >conftest.$ac_ext <<_ACEOF |
| 17834 | /* confdefs.h. */ |
| 17835 | _ACEOF |
| 17836 | cat confdefs.h >>conftest.$ac_ext |
| 17837 | cat >>conftest.$ac_ext <<_ACEOF |
| 17838 | /* end confdefs.h. */ |
| 17839 | $ac_includes_default |
| 17840 | typedef uint64_t ac__type_new_; |
| 17841 | int |
| 17842 | main () |
| 17843 | { |
| 17844 | if ((ac__type_new_ *) 0) |
| 17845 | return 0; |
| 17846 | if (sizeof (ac__type_new_)) |
| 17847 | return 0; |
| 17848 | ; |
| 17849 | return 0; |
| 17850 | } |
| 17851 | _ACEOF |
| 17852 | rm -f conftest.$ac_objext |
| 17853 | if { (ac_try="$ac_compile" |
| 17854 | case "(($ac_try" in |
| 17855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17856 | *) ac_try_echo=$ac_try;; |
| 17857 | esac |
| 17858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17859 | (eval "$ac_compile") 2>conftest.er1 |
| 17860 | ac_status=$? |
| 17861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17862 | rm -f conftest.er1 |
| 17863 | cat conftest.err >&5 |
| 17864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17865 | (exit $ac_status); } && |
| 17866 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17867 | { (case "(($ac_try" in |
| 17868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17869 | *) ac_try_echo=$ac_try;; |
| 17870 | esac |
| 17871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17872 | (eval "$ac_try") 2>&5 |
| 17873 | ac_status=$? |
| 17874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17875 | (exit $ac_status); }; } && |
| 17876 | { ac_try='test -s conftest.$ac_objext' |
| 17877 | { (case "(($ac_try" in |
| 17878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17879 | *) ac_try_echo=$ac_try;; |
| 17880 | esac |
| 17881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17882 | (eval "$ac_try") 2>&5 |
| 17883 | ac_status=$? |
| 17884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17885 | (exit $ac_status); }; }; then |
| 17886 | ac_cv_type_uint64_t=yes |
| 17887 | else |
| 17888 | echo "$as_me: failed program was:" >&5 |
| 17889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17890 | |
| 17891 | ac_cv_type_uint64_t=no |
| 17892 | fi |
| 17893 | |
| 17894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17895 | fi |
| 17896 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 17897 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 17898 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17899 | |
| 17900 | cat >>confdefs.h <<_ACEOF |
| 17901 | #define HAVE_UINT64_T 1 |
| 17902 | _ACEOF |
| 17903 | |
| 17904 | |
| 17905 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17906 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 17907 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 17908 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 17909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17910 | else |
| 17911 | cat >conftest.$ac_ext <<_ACEOF |
| 17912 | /* confdefs.h. */ |
| 17913 | _ACEOF |
| 17914 | cat confdefs.h >>conftest.$ac_ext |
| 17915 | cat >>conftest.$ac_ext <<_ACEOF |
| 17916 | /* end confdefs.h. */ |
| 17917 | $ac_includes_default |
| 17918 | typedef u_int64_t ac__type_new_; |
| 17919 | int |
| 17920 | main () |
| 17921 | { |
| 17922 | if ((ac__type_new_ *) 0) |
| 17923 | return 0; |
| 17924 | if (sizeof (ac__type_new_)) |
| 17925 | return 0; |
| 17926 | ; |
| 17927 | return 0; |
| 17928 | } |
| 17929 | _ACEOF |
| 17930 | rm -f conftest.$ac_objext |
| 17931 | if { (ac_try="$ac_compile" |
| 17932 | case "(($ac_try" in |
| 17933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17934 | *) ac_try_echo=$ac_try;; |
| 17935 | esac |
| 17936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17937 | (eval "$ac_compile") 2>conftest.er1 |
| 17938 | ac_status=$? |
| 17939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17940 | rm -f conftest.er1 |
| 17941 | cat conftest.err >&5 |
| 17942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17943 | (exit $ac_status); } && |
| 17944 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17945 | { (case "(($ac_try" in |
| 17946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17947 | *) ac_try_echo=$ac_try;; |
| 17948 | esac |
| 17949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17950 | (eval "$ac_try") 2>&5 |
| 17951 | ac_status=$? |
| 17952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17953 | (exit $ac_status); }; } && |
| 17954 | { ac_try='test -s conftest.$ac_objext' |
| 17955 | { (case "(($ac_try" in |
| 17956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17957 | *) ac_try_echo=$ac_try;; |
| 17958 | esac |
| 17959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17960 | (eval "$ac_try") 2>&5 |
| 17961 | ac_status=$? |
| 17962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17963 | (exit $ac_status); }; }; then |
| 17964 | ac_cv_type_u_int64_t=yes |
| 17965 | else |
| 17966 | echo "$as_me: failed program was:" >&5 |
| 17967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17968 | |
| 17969 | ac_cv_type_u_int64_t=no |
| 17970 | fi |
| 17971 | |
| 17972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17973 | fi |
| 17974 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 17975 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 17976 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17977 | |
| 17978 | cat >>confdefs.h <<_ACEOF |
| 17979 | #define HAVE_U_INT64_T 1 |
| 17980 | _ACEOF |
| 17981 | |
| 17982 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17983 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17984 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 17985 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 17986 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17987 | fi |
| 17988 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17989 | fi |
| 17990 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17991 | |
| 17992 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17993 | |
| 17994 | |
| 17995 | |
| 17996 | |
| 17997 | |
| 17998 | |
| 17999 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18000 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18001 | do |
| 18002 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18003 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18004 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18005 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18007 | else |
| 18008 | cat >conftest.$ac_ext <<_ACEOF |
| 18009 | /* confdefs.h. */ |
| 18010 | _ACEOF |
| 18011 | cat confdefs.h >>conftest.$ac_ext |
| 18012 | cat >>conftest.$ac_ext <<_ACEOF |
| 18013 | /* end confdefs.h. */ |
| 18014 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18015 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18016 | #define $ac_func innocuous_$ac_func |
| 18017 | |
| 18018 | /* System header to define __stub macros and hopefully few prototypes, |
| 18019 | which can conflict with char $ac_func (); below. |
| 18020 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18021 | <limits.h> exists even on freestanding compilers. */ |
| 18022 | |
| 18023 | #ifdef __STDC__ |
| 18024 | # include <limits.h> |
| 18025 | #else |
| 18026 | # include <assert.h> |
| 18027 | #endif |
| 18028 | |
| 18029 | #undef $ac_func |
| 18030 | |
| 18031 | /* Override any GCC internal prototype to avoid an error. |
| 18032 | Use char because int might match the return type of a GCC |
| 18033 | builtin and then its argument prototype would still apply. */ |
| 18034 | #ifdef __cplusplus |
| 18035 | extern "C" |
| 18036 | #endif |
| 18037 | char $ac_func (); |
| 18038 | /* The GNU C library defines this for functions which it implements |
| 18039 | to always fail with ENOSYS. Some functions are actually named |
| 18040 | something starting with __ and the normal name is an alias. */ |
| 18041 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18042 | choke me |
| 18043 | #endif |
| 18044 | |
| 18045 | int |
| 18046 | main () |
| 18047 | { |
| 18048 | return $ac_func (); |
| 18049 | ; |
| 18050 | return 0; |
| 18051 | } |
| 18052 | _ACEOF |
| 18053 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18054 | if { (ac_try="$ac_link" |
| 18055 | case "(($ac_try" in |
| 18056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18057 | *) ac_try_echo=$ac_try;; |
| 18058 | esac |
| 18059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18060 | (eval "$ac_link") 2>conftest.er1 |
| 18061 | ac_status=$? |
| 18062 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18063 | rm -f conftest.er1 |
| 18064 | cat conftest.err >&5 |
| 18065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18066 | (exit $ac_status); } && |
| 18067 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18068 | { (case "(($ac_try" in |
| 18069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18070 | *) ac_try_echo=$ac_try;; |
| 18071 | esac |
| 18072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18073 | (eval "$ac_try") 2>&5 |
| 18074 | ac_status=$? |
| 18075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18076 | (exit $ac_status); }; } && |
| 18077 | { ac_try='test -s conftest$ac_exeext' |
| 18078 | { (case "(($ac_try" in |
| 18079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18080 | *) ac_try_echo=$ac_try;; |
| 18081 | esac |
| 18082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18083 | (eval "$ac_try") 2>&5 |
| 18084 | ac_status=$? |
| 18085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18086 | (exit $ac_status); }; }; then |
| 18087 | eval "$as_ac_var=yes" |
| 18088 | else |
| 18089 | echo "$as_me: failed program was:" >&5 |
| 18090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18091 | |
| 18092 | eval "$as_ac_var=no" |
| 18093 | fi |
| 18094 | |
| 18095 | rm -f core conftest.err conftest.$ac_objext \ |
| 18096 | conftest$ac_exeext conftest.$ac_ext |
| 18097 | fi |
| 18098 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18099 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18100 | echo "${ECHO_T}$ac_res" >&6; } |
| 18101 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18102 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18103 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18104 | _ACEOF |
| 18105 | |
| 18106 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18107 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18108 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18109 | |
| 18110 | |
| 18111 | |
| 18112 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 18113 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18114 | do |
| 18115 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18116 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18117 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18118 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18120 | else |
| 18121 | cat >conftest.$ac_ext <<_ACEOF |
| 18122 | /* confdefs.h. */ |
| 18123 | _ACEOF |
| 18124 | cat confdefs.h >>conftest.$ac_ext |
| 18125 | cat >>conftest.$ac_ext <<_ACEOF |
| 18126 | /* end confdefs.h. */ |
| 18127 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18128 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18129 | #define $ac_func innocuous_$ac_func |
| 18130 | |
| 18131 | /* System header to define __stub macros and hopefully few prototypes, |
| 18132 | which can conflict with char $ac_func (); below. |
| 18133 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18134 | <limits.h> exists even on freestanding compilers. */ |
| 18135 | |
| 18136 | #ifdef __STDC__ |
| 18137 | # include <limits.h> |
| 18138 | #else |
| 18139 | # include <assert.h> |
| 18140 | #endif |
| 18141 | |
| 18142 | #undef $ac_func |
| 18143 | |
| 18144 | /* Override any GCC internal prototype to avoid an error. |
| 18145 | Use char because int might match the return type of a GCC |
| 18146 | builtin and then its argument prototype would still apply. */ |
| 18147 | #ifdef __cplusplus |
| 18148 | extern "C" |
| 18149 | #endif |
| 18150 | char $ac_func (); |
| 18151 | /* The GNU C library defines this for functions which it implements |
| 18152 | to always fail with ENOSYS. Some functions are actually named |
| 18153 | something starting with __ and the normal name is an alias. */ |
| 18154 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18155 | choke me |
| 18156 | #endif |
| 18157 | |
| 18158 | int |
| 18159 | main () |
| 18160 | { |
| 18161 | return $ac_func (); |
| 18162 | ; |
| 18163 | return 0; |
| 18164 | } |
| 18165 | _ACEOF |
| 18166 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18167 | if { (ac_try="$ac_link" |
| 18168 | case "(($ac_try" in |
| 18169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18170 | *) ac_try_echo=$ac_try;; |
| 18171 | esac |
| 18172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18173 | (eval "$ac_link") 2>conftest.er1 |
| 18174 | ac_status=$? |
| 18175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18176 | rm -f conftest.er1 |
| 18177 | cat conftest.err >&5 |
| 18178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18179 | (exit $ac_status); } && |
| 18180 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18181 | { (case "(($ac_try" in |
| 18182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18183 | *) ac_try_echo=$ac_try;; |
| 18184 | esac |
| 18185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18186 | (eval "$ac_try") 2>&5 |
| 18187 | ac_status=$? |
| 18188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18189 | (exit $ac_status); }; } && |
| 18190 | { ac_try='test -s conftest$ac_exeext' |
| 18191 | { (case "(($ac_try" in |
| 18192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18193 | *) ac_try_echo=$ac_try;; |
| 18194 | esac |
| 18195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18196 | (eval "$ac_try") 2>&5 |
| 18197 | ac_status=$? |
| 18198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18199 | (exit $ac_status); }; }; then |
| 18200 | eval "$as_ac_var=yes" |
| 18201 | else |
| 18202 | echo "$as_me: failed program was:" >&5 |
| 18203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18204 | |
| 18205 | eval "$as_ac_var=no" |
| 18206 | fi |
| 18207 | |
| 18208 | rm -f core conftest.err conftest.$ac_objext \ |
| 18209 | conftest$ac_exeext conftest.$ac_ext |
| 18210 | fi |
| 18211 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18212 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18213 | echo "${ECHO_T}$ac_res" >&6; } |
| 18214 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 18215 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18216 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 18217 | _ACEOF |
| 18218 | |
| 18219 | fi |
| 18220 | done |
| 18221 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18222 | |
| 18223 | |
| 18224 | |
| 18225 | |
| 18226 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18227 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18228 | do |
| 18229 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18230 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18231 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18232 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18234 | else |
| 18235 | cat >conftest.$ac_ext <<_ACEOF |
| 18236 | /* confdefs.h. */ |
| 18237 | _ACEOF |
| 18238 | cat confdefs.h >>conftest.$ac_ext |
| 18239 | cat >>conftest.$ac_ext <<_ACEOF |
| 18240 | /* end confdefs.h. */ |
| 18241 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18242 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18243 | #define $ac_func innocuous_$ac_func |
| 18244 | |
| 18245 | /* System header to define __stub macros and hopefully few prototypes, |
| 18246 | which can conflict with char $ac_func (); below. |
| 18247 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18248 | <limits.h> exists even on freestanding compilers. */ |
| 18249 | |
| 18250 | #ifdef __STDC__ |
| 18251 | # include <limits.h> |
| 18252 | #else |
| 18253 | # include <assert.h> |
| 18254 | #endif |
| 18255 | |
| 18256 | #undef $ac_func |
| 18257 | |
| 18258 | /* Override any GCC internal prototype to avoid an error. |
| 18259 | Use char because int might match the return type of a GCC |
| 18260 | builtin and then its argument prototype would still apply. */ |
| 18261 | #ifdef __cplusplus |
| 18262 | extern "C" |
| 18263 | #endif |
| 18264 | char $ac_func (); |
| 18265 | /* The GNU C library defines this for functions which it implements |
| 18266 | to always fail with ENOSYS. Some functions are actually named |
| 18267 | something starting with __ and the normal name is an alias. */ |
| 18268 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18269 | choke me |
| 18270 | #endif |
| 18271 | |
| 18272 | int |
| 18273 | main () |
| 18274 | { |
| 18275 | return $ac_func (); |
| 18276 | ; |
| 18277 | return 0; |
| 18278 | } |
| 18279 | _ACEOF |
| 18280 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18281 | if { (ac_try="$ac_link" |
| 18282 | case "(($ac_try" in |
| 18283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18284 | *) ac_try_echo=$ac_try;; |
| 18285 | esac |
| 18286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18287 | (eval "$ac_link") 2>conftest.er1 |
| 18288 | ac_status=$? |
| 18289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18290 | rm -f conftest.er1 |
| 18291 | cat conftest.err >&5 |
| 18292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18293 | (exit $ac_status); } && |
| 18294 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18295 | { (case "(($ac_try" in |
| 18296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18297 | *) ac_try_echo=$ac_try;; |
| 18298 | esac |
| 18299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18300 | (eval "$ac_try") 2>&5 |
| 18301 | ac_status=$? |
| 18302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18303 | (exit $ac_status); }; } && |
| 18304 | { ac_try='test -s conftest$ac_exeext' |
| 18305 | { (case "(($ac_try" in |
| 18306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18307 | *) ac_try_echo=$ac_try;; |
| 18308 | esac |
| 18309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18310 | (eval "$ac_try") 2>&5 |
| 18311 | ac_status=$? |
| 18312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18313 | (exit $ac_status); }; }; then |
| 18314 | eval "$as_ac_var=yes" |
| 18315 | else |
| 18316 | echo "$as_me: failed program was:" >&5 |
| 18317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18318 | |
| 18319 | eval "$as_ac_var=no" |
| 18320 | fi |
| 18321 | |
| 18322 | rm -f core conftest.err conftest.$ac_objext \ |
| 18323 | conftest$ac_exeext conftest.$ac_ext |
| 18324 | fi |
| 18325 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18326 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18327 | echo "${ECHO_T}$ac_res" >&6; } |
| 18328 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18329 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18330 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18331 | _ACEOF |
| 18332 | |
| 18333 | fi |
| 18334 | done |
| 18335 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18336 | |
| 18337 | |
| 18338 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18339 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18340 | do |
| 18341 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18342 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18343 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18344 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18346 | else |
| 18347 | cat >conftest.$ac_ext <<_ACEOF |
| 18348 | /* confdefs.h. */ |
| 18349 | _ACEOF |
| 18350 | cat confdefs.h >>conftest.$ac_ext |
| 18351 | cat >>conftest.$ac_ext <<_ACEOF |
| 18352 | /* end confdefs.h. */ |
| 18353 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18354 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18355 | #define $ac_func innocuous_$ac_func |
| 18356 | |
| 18357 | /* System header to define __stub macros and hopefully few prototypes, |
| 18358 | which can conflict with char $ac_func (); below. |
| 18359 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18360 | <limits.h> exists even on freestanding compilers. */ |
| 18361 | |
| 18362 | #ifdef __STDC__ |
| 18363 | # include <limits.h> |
| 18364 | #else |
| 18365 | # include <assert.h> |
| 18366 | #endif |
| 18367 | |
| 18368 | #undef $ac_func |
| 18369 | |
| 18370 | /* Override any GCC internal prototype to avoid an error. |
| 18371 | Use char because int might match the return type of a GCC |
| 18372 | builtin and then its argument prototype would still apply. */ |
| 18373 | #ifdef __cplusplus |
| 18374 | extern "C" |
| 18375 | #endif |
| 18376 | char $ac_func (); |
| 18377 | /* The GNU C library defines this for functions which it implements |
| 18378 | to always fail with ENOSYS. Some functions are actually named |
| 18379 | something starting with __ and the normal name is an alias. */ |
| 18380 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18381 | choke me |
| 18382 | #endif |
| 18383 | |
| 18384 | int |
| 18385 | main () |
| 18386 | { |
| 18387 | return $ac_func (); |
| 18388 | ; |
| 18389 | return 0; |
| 18390 | } |
| 18391 | _ACEOF |
| 18392 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18393 | if { (ac_try="$ac_link" |
| 18394 | case "(($ac_try" in |
| 18395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18396 | *) ac_try_echo=$ac_try;; |
| 18397 | esac |
| 18398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18399 | (eval "$ac_link") 2>conftest.er1 |
| 18400 | ac_status=$? |
| 18401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18402 | rm -f conftest.er1 |
| 18403 | cat conftest.err >&5 |
| 18404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18405 | (exit $ac_status); } && |
| 18406 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18407 | { (case "(($ac_try" in |
| 18408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18409 | *) ac_try_echo=$ac_try;; |
| 18410 | esac |
| 18411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18412 | (eval "$ac_try") 2>&5 |
| 18413 | ac_status=$? |
| 18414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18415 | (exit $ac_status); }; } && |
| 18416 | { ac_try='test -s conftest$ac_exeext' |
| 18417 | { (case "(($ac_try" in |
| 18418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18419 | *) ac_try_echo=$ac_try;; |
| 18420 | esac |
| 18421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18422 | (eval "$ac_try") 2>&5 |
| 18423 | ac_status=$? |
| 18424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18425 | (exit $ac_status); }; }; then |
| 18426 | eval "$as_ac_var=yes" |
| 18427 | else |
| 18428 | echo "$as_me: failed program was:" >&5 |
| 18429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18430 | |
| 18431 | eval "$as_ac_var=no" |
| 18432 | fi |
| 18433 | |
| 18434 | rm -f core conftest.err conftest.$ac_objext \ |
| 18435 | conftest$ac_exeext conftest.$ac_ext |
| 18436 | fi |
| 18437 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18438 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18439 | echo "${ECHO_T}$ac_res" >&6; } |
| 18440 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18441 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18442 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18443 | _ACEOF |
| 18444 | |
| 18445 | fi |
| 18446 | done |
| 18447 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18448 | |
| 18449 | |
| 18450 | |
| 18451 | |
| 18452 | |
Eric Christopher | e429182 | 2010-04-16 05:14:21 +0000 | [diff] [blame] | 18453 | |
| 18454 | for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18455 | do |
| 18456 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18457 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18458 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18459 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18461 | else |
| 18462 | cat >conftest.$ac_ext <<_ACEOF |
| 18463 | /* confdefs.h. */ |
| 18464 | _ACEOF |
| 18465 | cat confdefs.h >>conftest.$ac_ext |
| 18466 | cat >>conftest.$ac_ext <<_ACEOF |
| 18467 | /* end confdefs.h. */ |
| 18468 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18469 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18470 | #define $ac_func innocuous_$ac_func |
| 18471 | |
| 18472 | /* System header to define __stub macros and hopefully few prototypes, |
| 18473 | which can conflict with char $ac_func (); below. |
| 18474 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18475 | <limits.h> exists even on freestanding compilers. */ |
| 18476 | |
| 18477 | #ifdef __STDC__ |
| 18478 | # include <limits.h> |
| 18479 | #else |
| 18480 | # include <assert.h> |
| 18481 | #endif |
| 18482 | |
| 18483 | #undef $ac_func |
| 18484 | |
| 18485 | /* Override any GCC internal prototype to avoid an error. |
| 18486 | Use char because int might match the return type of a GCC |
| 18487 | builtin and then its argument prototype would still apply. */ |
| 18488 | #ifdef __cplusplus |
| 18489 | extern "C" |
| 18490 | #endif |
| 18491 | char $ac_func (); |
| 18492 | /* The GNU C library defines this for functions which it implements |
| 18493 | to always fail with ENOSYS. Some functions are actually named |
| 18494 | something starting with __ and the normal name is an alias. */ |
| 18495 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18496 | choke me |
| 18497 | #endif |
| 18498 | |
| 18499 | int |
| 18500 | main () |
| 18501 | { |
| 18502 | return $ac_func (); |
| 18503 | ; |
| 18504 | return 0; |
| 18505 | } |
| 18506 | _ACEOF |
| 18507 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18508 | if { (ac_try="$ac_link" |
| 18509 | case "(($ac_try" in |
| 18510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18511 | *) ac_try_echo=$ac_try;; |
| 18512 | esac |
| 18513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18514 | (eval "$ac_link") 2>conftest.er1 |
| 18515 | ac_status=$? |
| 18516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18517 | rm -f conftest.er1 |
| 18518 | cat conftest.err >&5 |
| 18519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18520 | (exit $ac_status); } && |
| 18521 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18522 | { (case "(($ac_try" in |
| 18523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18524 | *) ac_try_echo=$ac_try;; |
| 18525 | esac |
| 18526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18527 | (eval "$ac_try") 2>&5 |
| 18528 | ac_status=$? |
| 18529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18530 | (exit $ac_status); }; } && |
| 18531 | { ac_try='test -s conftest$ac_exeext' |
| 18532 | { (case "(($ac_try" in |
| 18533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18534 | *) ac_try_echo=$ac_try;; |
| 18535 | esac |
| 18536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18537 | (eval "$ac_try") 2>&5 |
| 18538 | ac_status=$? |
| 18539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18540 | (exit $ac_status); }; }; then |
| 18541 | eval "$as_ac_var=yes" |
| 18542 | else |
| 18543 | echo "$as_me: failed program was:" >&5 |
| 18544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18545 | |
| 18546 | eval "$as_ac_var=no" |
| 18547 | fi |
| 18548 | |
| 18549 | rm -f core conftest.err conftest.$ac_objext \ |
| 18550 | conftest$ac_exeext conftest.$ac_ext |
| 18551 | fi |
| 18552 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18553 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18554 | echo "${ECHO_T}$ac_res" >&6; } |
| 18555 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 18556 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18557 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 18558 | _ACEOF |
| 18559 | |
| 18560 | fi |
| 18561 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18562 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18563 | |
| 18564 | |
| 18565 | |
| 18566 | |
Jeffrey Yasskin | b7a8d40 | 2009-09-25 21:07:20 +0000 | [diff] [blame] | 18567 | for ac_func in strerror strerror_r strerror_s setenv |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18568 | do |
| 18569 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18570 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18571 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18572 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18574 | else |
| 18575 | cat >conftest.$ac_ext <<_ACEOF |
| 18576 | /* confdefs.h. */ |
| 18577 | _ACEOF |
| 18578 | cat confdefs.h >>conftest.$ac_ext |
| 18579 | cat >>conftest.$ac_ext <<_ACEOF |
| 18580 | /* end confdefs.h. */ |
| 18581 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18582 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18583 | #define $ac_func innocuous_$ac_func |
| 18584 | |
| 18585 | /* System header to define __stub macros and hopefully few prototypes, |
| 18586 | which can conflict with char $ac_func (); below. |
| 18587 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18588 | <limits.h> exists even on freestanding compilers. */ |
| 18589 | |
| 18590 | #ifdef __STDC__ |
| 18591 | # include <limits.h> |
| 18592 | #else |
| 18593 | # include <assert.h> |
| 18594 | #endif |
| 18595 | |
| 18596 | #undef $ac_func |
| 18597 | |
| 18598 | /* Override any GCC internal prototype to avoid an error. |
| 18599 | Use char because int might match the return type of a GCC |
| 18600 | builtin and then its argument prototype would still apply. */ |
| 18601 | #ifdef __cplusplus |
| 18602 | extern "C" |
| 18603 | #endif |
| 18604 | char $ac_func (); |
| 18605 | /* The GNU C library defines this for functions which it implements |
| 18606 | to always fail with ENOSYS. Some functions are actually named |
| 18607 | something starting with __ and the normal name is an alias. */ |
| 18608 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18609 | choke me |
| 18610 | #endif |
| 18611 | |
| 18612 | int |
| 18613 | main () |
| 18614 | { |
| 18615 | return $ac_func (); |
| 18616 | ; |
| 18617 | return 0; |
| 18618 | } |
| 18619 | _ACEOF |
| 18620 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18621 | if { (ac_try="$ac_link" |
| 18622 | case "(($ac_try" in |
| 18623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18624 | *) ac_try_echo=$ac_try;; |
| 18625 | esac |
| 18626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18627 | (eval "$ac_link") 2>conftest.er1 |
| 18628 | ac_status=$? |
| 18629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18630 | rm -f conftest.er1 |
| 18631 | cat conftest.err >&5 |
| 18632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18633 | (exit $ac_status); } && |
| 18634 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18635 | { (case "(($ac_try" in |
| 18636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18637 | *) ac_try_echo=$ac_try;; |
| 18638 | esac |
| 18639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18640 | (eval "$ac_try") 2>&5 |
| 18641 | ac_status=$? |
| 18642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18643 | (exit $ac_status); }; } && |
| 18644 | { ac_try='test -s conftest$ac_exeext' |
| 18645 | { (case "(($ac_try" in |
| 18646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18647 | *) ac_try_echo=$ac_try;; |
| 18648 | esac |
| 18649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18650 | (eval "$ac_try") 2>&5 |
| 18651 | ac_status=$? |
| 18652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18653 | (exit $ac_status); }; }; then |
| 18654 | eval "$as_ac_var=yes" |
| 18655 | else |
| 18656 | echo "$as_me: failed program was:" >&5 |
| 18657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18658 | |
| 18659 | eval "$as_ac_var=no" |
| 18660 | fi |
| 18661 | |
| 18662 | rm -f core conftest.err conftest.$ac_objext \ |
| 18663 | conftest$ac_exeext conftest.$ac_ext |
| 18664 | fi |
| 18665 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18666 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18667 | echo "${ECHO_T}$ac_res" >&6; } |
| 18668 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 18669 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18670 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 18671 | _ACEOF |
| 18672 | |
| 18673 | fi |
| 18674 | done |
| 18675 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18676 | |
| 18677 | |
| 18678 | |
| 18679 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 18680 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18681 | do |
| 18682 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18683 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18684 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18685 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18687 | else |
| 18688 | cat >conftest.$ac_ext <<_ACEOF |
| 18689 | /* confdefs.h. */ |
| 18690 | _ACEOF |
| 18691 | cat confdefs.h >>conftest.$ac_ext |
| 18692 | cat >>conftest.$ac_ext <<_ACEOF |
| 18693 | /* end confdefs.h. */ |
| 18694 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18695 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18696 | #define $ac_func innocuous_$ac_func |
| 18697 | |
| 18698 | /* System header to define __stub macros and hopefully few prototypes, |
| 18699 | which can conflict with char $ac_func (); below. |
| 18700 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18701 | <limits.h> exists even on freestanding compilers. */ |
| 18702 | |
| 18703 | #ifdef __STDC__ |
| 18704 | # include <limits.h> |
| 18705 | #else |
| 18706 | # include <assert.h> |
| 18707 | #endif |
| 18708 | |
| 18709 | #undef $ac_func |
| 18710 | |
| 18711 | /* Override any GCC internal prototype to avoid an error. |
| 18712 | Use char because int might match the return type of a GCC |
| 18713 | builtin and then its argument prototype would still apply. */ |
| 18714 | #ifdef __cplusplus |
| 18715 | extern "C" |
| 18716 | #endif |
| 18717 | char $ac_func (); |
| 18718 | /* The GNU C library defines this for functions which it implements |
| 18719 | to always fail with ENOSYS. Some functions are actually named |
| 18720 | something starting with __ and the normal name is an alias. */ |
| 18721 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18722 | choke me |
| 18723 | #endif |
| 18724 | |
| 18725 | int |
| 18726 | main () |
| 18727 | { |
| 18728 | return $ac_func (); |
| 18729 | ; |
| 18730 | return 0; |
| 18731 | } |
| 18732 | _ACEOF |
| 18733 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18734 | if { (ac_try="$ac_link" |
| 18735 | case "(($ac_try" in |
| 18736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18737 | *) ac_try_echo=$ac_try;; |
| 18738 | esac |
| 18739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18740 | (eval "$ac_link") 2>conftest.er1 |
| 18741 | ac_status=$? |
| 18742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18743 | rm -f conftest.er1 |
| 18744 | cat conftest.err >&5 |
| 18745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18746 | (exit $ac_status); } && |
| 18747 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18748 | { (case "(($ac_try" in |
| 18749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18750 | *) ac_try_echo=$ac_try;; |
| 18751 | esac |
| 18752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18753 | (eval "$ac_try") 2>&5 |
| 18754 | ac_status=$? |
| 18755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18756 | (exit $ac_status); }; } && |
| 18757 | { ac_try='test -s conftest$ac_exeext' |
| 18758 | { (case "(($ac_try" in |
| 18759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18760 | *) ac_try_echo=$ac_try;; |
| 18761 | esac |
| 18762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18763 | (eval "$ac_try") 2>&5 |
| 18764 | ac_status=$? |
| 18765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18766 | (exit $ac_status); }; }; then |
| 18767 | eval "$as_ac_var=yes" |
| 18768 | else |
| 18769 | echo "$as_me: failed program was:" >&5 |
| 18770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18771 | |
| 18772 | eval "$as_ac_var=no" |
| 18773 | fi |
| 18774 | |
| 18775 | rm -f core conftest.err conftest.$ac_objext \ |
| 18776 | conftest$ac_exeext conftest.$ac_ext |
| 18777 | fi |
| 18778 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18779 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18780 | echo "${ECHO_T}$ac_res" >&6; } |
| 18781 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18782 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18783 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18784 | _ACEOF |
| 18785 | |
| 18786 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18787 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18788 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18789 | |
| 18790 | |
| 18791 | |
| 18792 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 18793 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18794 | do |
| 18795 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18796 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18797 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18798 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18800 | else |
| 18801 | cat >conftest.$ac_ext <<_ACEOF |
| 18802 | /* confdefs.h. */ |
| 18803 | _ACEOF |
| 18804 | cat confdefs.h >>conftest.$ac_ext |
| 18805 | cat >>conftest.$ac_ext <<_ACEOF |
| 18806 | /* end confdefs.h. */ |
| 18807 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18808 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18809 | #define $ac_func innocuous_$ac_func |
| 18810 | |
| 18811 | /* System header to define __stub macros and hopefully few prototypes, |
| 18812 | which can conflict with char $ac_func (); below. |
| 18813 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18814 | <limits.h> exists even on freestanding compilers. */ |
| 18815 | |
| 18816 | #ifdef __STDC__ |
| 18817 | # include <limits.h> |
| 18818 | #else |
| 18819 | # include <assert.h> |
| 18820 | #endif |
| 18821 | |
| 18822 | #undef $ac_func |
| 18823 | |
| 18824 | /* Override any GCC internal prototype to avoid an error. |
| 18825 | Use char because int might match the return type of a GCC |
| 18826 | builtin and then its argument prototype would still apply. */ |
| 18827 | #ifdef __cplusplus |
| 18828 | extern "C" |
| 18829 | #endif |
| 18830 | char $ac_func (); |
| 18831 | /* The GNU C library defines this for functions which it implements |
| 18832 | to always fail with ENOSYS. Some functions are actually named |
| 18833 | something starting with __ and the normal name is an alias. */ |
| 18834 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18835 | choke me |
| 18836 | #endif |
| 18837 | |
| 18838 | int |
| 18839 | main () |
| 18840 | { |
| 18841 | return $ac_func (); |
| 18842 | ; |
| 18843 | return 0; |
| 18844 | } |
| 18845 | _ACEOF |
| 18846 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18847 | if { (ac_try="$ac_link" |
| 18848 | case "(($ac_try" in |
| 18849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18850 | *) ac_try_echo=$ac_try;; |
| 18851 | esac |
| 18852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18853 | (eval "$ac_link") 2>conftest.er1 |
| 18854 | ac_status=$? |
| 18855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18856 | rm -f conftest.er1 |
| 18857 | cat conftest.err >&5 |
| 18858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18859 | (exit $ac_status); } && |
| 18860 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 18867 | ac_status=$? |
| 18868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18869 | (exit $ac_status); }; } && |
| 18870 | { ac_try='test -s conftest$ac_exeext' |
| 18871 | { (case "(($ac_try" in |
| 18872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18873 | *) ac_try_echo=$ac_try;; |
| 18874 | esac |
| 18875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18876 | (eval "$ac_try") 2>&5 |
| 18877 | ac_status=$? |
| 18878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18879 | (exit $ac_status); }; }; then |
| 18880 | eval "$as_ac_var=yes" |
| 18881 | else |
| 18882 | echo "$as_me: failed program was:" >&5 |
| 18883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18884 | |
| 18885 | eval "$as_ac_var=no" |
| 18886 | fi |
| 18887 | |
| 18888 | rm -f core conftest.err conftest.$ac_objext \ |
| 18889 | conftest$ac_exeext conftest.$ac_ext |
| 18890 | fi |
| 18891 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18892 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18893 | echo "${ECHO_T}$ac_res" >&6; } |
| 18894 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 18895 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18896 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 18897 | _ACEOF |
| 18898 | |
| 18899 | fi |
| 18900 | done |
| 18901 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18902 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 18903 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 18904 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 18905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18906 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18907 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18908 | ac_cpp='$CPP $CPPFLAGS' |
| 18909 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18910 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18911 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18912 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18913 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18914 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18915 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18916 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18917 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18918 | /* confdefs.h. */ |
| 18919 | _ACEOF |
| 18920 | cat confdefs.h >>conftest.$ac_ext |
| 18921 | cat >>conftest.$ac_ext <<_ACEOF |
| 18922 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18923 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18924 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18925 | #include <stdlib.h> |
| 18926 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18927 | int |
| 18928 | main () |
| 18929 | { |
| 18930 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18931 | volatile double A, B; |
| 18932 | char Buffer[100]; |
| 18933 | A = 1; |
| 18934 | A /= 10.0; |
| 18935 | sprintf(Buffer, "%a", A); |
| 18936 | B = atof(Buffer); |
| 18937 | if (A != B) |
| 18938 | return (1); |
| 18939 | if (A != 0x1.999999999999ap-4) |
| 18940 | return (1); |
| 18941 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18942 | ; |
| 18943 | return 0; |
| 18944 | } |
| 18945 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18946 | rm -f conftest$ac_exeext |
| 18947 | if { (ac_try="$ac_link" |
| 18948 | case "(($ac_try" in |
| 18949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18950 | *) ac_try_echo=$ac_try;; |
| 18951 | esac |
| 18952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18953 | (eval "$ac_link") 2>&5 |
| 18954 | ac_status=$? |
| 18955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18956 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18957 | { (case "(($ac_try" in |
| 18958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18959 | *) ac_try_echo=$ac_try;; |
| 18960 | esac |
| 18961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18962 | (eval "$ac_try") 2>&5 |
| 18963 | ac_status=$? |
| 18964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18965 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18966 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18967 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18968 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18969 | echo "$as_me: failed program was:" >&5 |
| 18970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18971 | |
| 18972 | ( exit $ac_status ) |
| 18973 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18974 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18975 | 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] | 18976 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18977 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18978 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18979 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18980 | ac_cpp='$CPP $CPPFLAGS' |
| 18981 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18982 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18983 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18984 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18985 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18986 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 18987 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18988 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18989 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18990 | cat >>confdefs.h <<\_ACEOF |
| 18991 | #define HAVE_PRINTF_A 1 |
| 18992 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18993 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18994 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18995 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18996 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18997 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 18998 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 18999 | if test "${ac_cv_func_rand48+set}" = set; then |
| 19000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19001 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19002 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19003 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19004 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19005 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19006 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19007 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19008 | cat >conftest.$ac_ext <<_ACEOF |
| 19009 | /* confdefs.h. */ |
| 19010 | _ACEOF |
| 19011 | cat confdefs.h >>conftest.$ac_ext |
| 19012 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19013 | /* end confdefs.h. */ |
| 19014 | #include <stdlib.h> |
| 19015 | int |
| 19016 | main () |
| 19017 | { |
| 19018 | srand48(0);lrand48();drand48(); |
| 19019 | ; |
| 19020 | return 0; |
| 19021 | } |
| 19022 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19023 | rm -f conftest.$ac_objext |
| 19024 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 19031 | ac_status=$? |
| 19032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19033 | rm -f conftest.er1 |
| 19034 | cat conftest.err >&5 |
| 19035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19036 | (exit $ac_status); } && |
| 19037 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19038 | { (case "(($ac_try" in |
| 19039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19040 | *) ac_try_echo=$ac_try;; |
| 19041 | esac |
| 19042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19043 | (eval "$ac_try") 2>&5 |
| 19044 | ac_status=$? |
| 19045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19046 | (exit $ac_status); }; } && |
| 19047 | { ac_try='test -s conftest.$ac_objext' |
| 19048 | { (case "(($ac_try" in |
| 19049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19050 | *) ac_try_echo=$ac_try;; |
| 19051 | esac |
| 19052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19053 | (eval "$ac_try") 2>&5 |
| 19054 | ac_status=$? |
| 19055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19056 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19057 | ac_cv_func_rand48=yes |
| 19058 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19059 | echo "$as_me: failed program was:" >&5 |
| 19060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19061 | |
| 19062 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19063 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19064 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19066 | ac_ext=c |
| 19067 | ac_cpp='$CPP $CPPFLAGS' |
| 19068 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19069 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19070 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19071 | |
| 19072 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19073 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 19074 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19075 | |
| 19076 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 19077 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19078 | cat >>confdefs.h <<\_ACEOF |
| 19079 | #define HAVE_RAND48 1 |
| 19080 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19081 | |
| 19082 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 19083 | |
| 19084 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19085 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19086 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 19087 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 19088 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 19089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19090 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19091 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19092 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19093 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19094 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19095 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19096 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19097 | cat >conftest.$ac_ext <<_ACEOF |
| 19098 | /* confdefs.h. */ |
| 19099 | _ACEOF |
| 19100 | cat confdefs.h >>conftest.$ac_ext |
| 19101 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19102 | /* end confdefs.h. */ |
| 19103 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19104 | int |
| 19105 | main () |
| 19106 | { |
| 19107 | float f; isnan(f); |
| 19108 | ; |
| 19109 | return 0; |
| 19110 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19111 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19112 | rm -f conftest.$ac_objext |
| 19113 | if { (ac_try="$ac_compile" |
| 19114 | case "(($ac_try" in |
| 19115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19116 | *) ac_try_echo=$ac_try;; |
| 19117 | esac |
| 19118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19119 | (eval "$ac_compile") 2>conftest.er1 |
| 19120 | ac_status=$? |
| 19121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19122 | rm -f conftest.er1 |
| 19123 | cat conftest.err >&5 |
| 19124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19125 | (exit $ac_status); } && |
| 19126 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19127 | { (case "(($ac_try" in |
| 19128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19129 | *) ac_try_echo=$ac_try;; |
| 19130 | esac |
| 19131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19132 | (eval "$ac_try") 2>&5 |
| 19133 | ac_status=$? |
| 19134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19135 | (exit $ac_status); }; } && |
| 19136 | { ac_try='test -s conftest.$ac_objext' |
| 19137 | { (case "(($ac_try" in |
| 19138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19139 | *) ac_try_echo=$ac_try;; |
| 19140 | esac |
| 19141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19142 | (eval "$ac_try") 2>&5 |
| 19143 | ac_status=$? |
| 19144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19145 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19146 | ac_cv_func_isnan_in_math_h=yes |
| 19147 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19148 | echo "$as_me: failed program was:" >&5 |
| 19149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19150 | |
| 19151 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19152 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19153 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19155 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19156 | ac_cpp='$CPP $CPPFLAGS' |
| 19157 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19158 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19159 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19160 | |
| 19161 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19162 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 19163 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19164 | |
| 19165 | |
| 19166 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19167 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19168 | cat >>confdefs.h <<\_ACEOF |
| 19169 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 19170 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19171 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19172 | fi |
| 19173 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19174 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 19175 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 19176 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 19177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19178 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19179 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19180 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19181 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19182 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19183 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19184 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19185 | cat >conftest.$ac_ext <<_ACEOF |
| 19186 | /* confdefs.h. */ |
| 19187 | _ACEOF |
| 19188 | cat confdefs.h >>conftest.$ac_ext |
| 19189 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19190 | /* end confdefs.h. */ |
| 19191 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19192 | int |
| 19193 | main () |
| 19194 | { |
| 19195 | float f; isnan(f); |
| 19196 | ; |
| 19197 | return 0; |
| 19198 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19199 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19200 | rm -f conftest.$ac_objext |
| 19201 | if { (ac_try="$ac_compile" |
| 19202 | case "(($ac_try" in |
| 19203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19204 | *) ac_try_echo=$ac_try;; |
| 19205 | esac |
| 19206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19207 | (eval "$ac_compile") 2>conftest.er1 |
| 19208 | ac_status=$? |
| 19209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19210 | rm -f conftest.er1 |
| 19211 | cat conftest.err >&5 |
| 19212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19213 | (exit $ac_status); } && |
| 19214 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19215 | { (case "(($ac_try" in |
| 19216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19217 | *) ac_try_echo=$ac_try;; |
| 19218 | esac |
| 19219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19220 | (eval "$ac_try") 2>&5 |
| 19221 | ac_status=$? |
| 19222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19223 | (exit $ac_status); }; } && |
| 19224 | { ac_try='test -s conftest.$ac_objext' |
| 19225 | { (case "(($ac_try" in |
| 19226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19227 | *) ac_try_echo=$ac_try;; |
| 19228 | esac |
| 19229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19230 | (eval "$ac_try") 2>&5 |
| 19231 | ac_status=$? |
| 19232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19233 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19234 | ac_cv_func_isnan_in_cmath=yes |
| 19235 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19236 | echo "$as_me: failed program was:" >&5 |
| 19237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19238 | |
| 19239 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19240 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19241 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19243 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19244 | ac_cpp='$CPP $CPPFLAGS' |
| 19245 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19246 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19247 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19248 | |
| 19249 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19250 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 19251 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19252 | |
| 19253 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19254 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19255 | cat >>confdefs.h <<\_ACEOF |
| 19256 | #define HAVE_ISNAN_IN_CMATH 1 |
| 19257 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19258 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19259 | fi |
| 19260 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19261 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 19262 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 19263 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 19264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19265 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19266 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19267 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19268 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19269 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19270 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19271 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19272 | cat >conftest.$ac_ext <<_ACEOF |
| 19273 | /* confdefs.h. */ |
| 19274 | _ACEOF |
| 19275 | cat confdefs.h >>conftest.$ac_ext |
| 19276 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19277 | /* end confdefs.h. */ |
| 19278 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19279 | int |
| 19280 | main () |
| 19281 | { |
| 19282 | float f; std::isnan(f); |
| 19283 | ; |
| 19284 | return 0; |
| 19285 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19286 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19287 | rm -f conftest.$ac_objext |
| 19288 | if { (ac_try="$ac_compile" |
| 19289 | case "(($ac_try" in |
| 19290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19291 | *) ac_try_echo=$ac_try;; |
| 19292 | esac |
| 19293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19294 | (eval "$ac_compile") 2>conftest.er1 |
| 19295 | ac_status=$? |
| 19296 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19297 | rm -f conftest.er1 |
| 19298 | cat conftest.err >&5 |
| 19299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19300 | (exit $ac_status); } && |
| 19301 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19302 | { (case "(($ac_try" in |
| 19303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19304 | *) ac_try_echo=$ac_try;; |
| 19305 | esac |
| 19306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19307 | (eval "$ac_try") 2>&5 |
| 19308 | ac_status=$? |
| 19309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19310 | (exit $ac_status); }; } && |
| 19311 | { ac_try='test -s conftest.$ac_objext' |
| 19312 | { (case "(($ac_try" in |
| 19313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19314 | *) ac_try_echo=$ac_try;; |
| 19315 | esac |
| 19316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19317 | (eval "$ac_try") 2>&5 |
| 19318 | ac_status=$? |
| 19319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19320 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19321 | ac_cv_func_std_isnan_in_cmath=yes |
| 19322 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19323 | echo "$as_me: failed program was:" >&5 |
| 19324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19325 | |
| 19326 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19327 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19328 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19330 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19331 | ac_cpp='$CPP $CPPFLAGS' |
| 19332 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19333 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19334 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19335 | |
| 19336 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19337 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 19338 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19339 | |
| 19340 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19341 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19342 | cat >>confdefs.h <<\_ACEOF |
| 19343 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 19344 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19345 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19346 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19347 | |
| 19348 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19349 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 19350 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 19351 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 19352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19353 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19354 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19355 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19356 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19357 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19358 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19359 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19360 | cat >conftest.$ac_ext <<_ACEOF |
| 19361 | /* confdefs.h. */ |
| 19362 | _ACEOF |
| 19363 | cat confdefs.h >>conftest.$ac_ext |
| 19364 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19365 | /* end confdefs.h. */ |
| 19366 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19367 | int |
| 19368 | main () |
| 19369 | { |
| 19370 | float f; isinf(f); |
| 19371 | ; |
| 19372 | return 0; |
| 19373 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19374 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19375 | rm -f conftest.$ac_objext |
| 19376 | if { (ac_try="$ac_compile" |
| 19377 | case "(($ac_try" in |
| 19378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19379 | *) ac_try_echo=$ac_try;; |
| 19380 | esac |
| 19381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19382 | (eval "$ac_compile") 2>conftest.er1 |
| 19383 | ac_status=$? |
| 19384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19385 | rm -f conftest.er1 |
| 19386 | cat conftest.err >&5 |
| 19387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19388 | (exit $ac_status); } && |
| 19389 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19390 | { (case "(($ac_try" in |
| 19391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19392 | *) ac_try_echo=$ac_try;; |
| 19393 | esac |
| 19394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19395 | (eval "$ac_try") 2>&5 |
| 19396 | ac_status=$? |
| 19397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19398 | (exit $ac_status); }; } && |
| 19399 | { ac_try='test -s conftest.$ac_objext' |
| 19400 | { (case "(($ac_try" in |
| 19401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19402 | *) ac_try_echo=$ac_try;; |
| 19403 | esac |
| 19404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19405 | (eval "$ac_try") 2>&5 |
| 19406 | ac_status=$? |
| 19407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19408 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19409 | ac_cv_func_isinf_in_math_h=yes |
| 19410 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19411 | echo "$as_me: failed program was:" >&5 |
| 19412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19413 | |
| 19414 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19415 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19416 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19418 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19419 | ac_cpp='$CPP $CPPFLAGS' |
| 19420 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19421 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19422 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19423 | |
| 19424 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19425 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 19426 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19427 | |
| 19428 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19429 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19430 | cat >>confdefs.h <<\_ACEOF |
| 19431 | #define HAVE_ISINF_IN_MATH_H 1 |
| 19432 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19433 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19434 | fi |
| 19435 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19436 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 19437 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 19438 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 19439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19440 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19441 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19442 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19443 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19444 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19445 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19446 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19447 | cat >conftest.$ac_ext <<_ACEOF |
| 19448 | /* confdefs.h. */ |
| 19449 | _ACEOF |
| 19450 | cat confdefs.h >>conftest.$ac_ext |
| 19451 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19452 | /* end confdefs.h. */ |
| 19453 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19454 | int |
| 19455 | main () |
| 19456 | { |
| 19457 | float f; isinf(f); |
| 19458 | ; |
| 19459 | return 0; |
| 19460 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19461 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19462 | rm -f conftest.$ac_objext |
| 19463 | if { (ac_try="$ac_compile" |
| 19464 | case "(($ac_try" in |
| 19465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19466 | *) ac_try_echo=$ac_try;; |
| 19467 | esac |
| 19468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19469 | (eval "$ac_compile") 2>conftest.er1 |
| 19470 | ac_status=$? |
| 19471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19472 | rm -f conftest.er1 |
| 19473 | cat conftest.err >&5 |
| 19474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19475 | (exit $ac_status); } && |
| 19476 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19477 | { (case "(($ac_try" in |
| 19478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19479 | *) ac_try_echo=$ac_try;; |
| 19480 | esac |
| 19481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19482 | (eval "$ac_try") 2>&5 |
| 19483 | ac_status=$? |
| 19484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19485 | (exit $ac_status); }; } && |
| 19486 | { ac_try='test -s conftest.$ac_objext' |
| 19487 | { (case "(($ac_try" in |
| 19488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19489 | *) ac_try_echo=$ac_try;; |
| 19490 | esac |
| 19491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19492 | (eval "$ac_try") 2>&5 |
| 19493 | ac_status=$? |
| 19494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19495 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19496 | ac_cv_func_isinf_in_cmath=yes |
| 19497 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19498 | echo "$as_me: failed program was:" >&5 |
| 19499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19500 | |
| 19501 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19502 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19503 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19505 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19506 | ac_cpp='$CPP $CPPFLAGS' |
| 19507 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19508 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19509 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19510 | |
| 19511 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19512 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 19513 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19514 | |
| 19515 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19516 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19517 | cat >>confdefs.h <<\_ACEOF |
| 19518 | #define HAVE_ISINF_IN_CMATH 1 |
| 19519 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19520 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19521 | fi |
| 19522 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19523 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 19524 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 19525 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 19526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19527 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19528 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19529 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19530 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19531 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19532 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19533 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19534 | cat >conftest.$ac_ext <<_ACEOF |
| 19535 | /* confdefs.h. */ |
| 19536 | _ACEOF |
| 19537 | cat confdefs.h >>conftest.$ac_ext |
| 19538 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19539 | /* end confdefs.h. */ |
| 19540 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19541 | int |
| 19542 | main () |
| 19543 | { |
| 19544 | float f; std::isinf(f)} |
| 19545 | ; |
| 19546 | return 0; |
| 19547 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19548 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19549 | rm -f conftest.$ac_objext |
| 19550 | if { (ac_try="$ac_compile" |
| 19551 | case "(($ac_try" in |
| 19552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19553 | *) ac_try_echo=$ac_try;; |
| 19554 | esac |
| 19555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19556 | (eval "$ac_compile") 2>conftest.er1 |
| 19557 | ac_status=$? |
| 19558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19559 | rm -f conftest.er1 |
| 19560 | cat conftest.err >&5 |
| 19561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19562 | (exit $ac_status); } && |
| 19563 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19564 | { (case "(($ac_try" in |
| 19565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19566 | *) ac_try_echo=$ac_try;; |
| 19567 | esac |
| 19568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19569 | (eval "$ac_try") 2>&5 |
| 19570 | ac_status=$? |
| 19571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19572 | (exit $ac_status); }; } && |
| 19573 | { ac_try='test -s conftest.$ac_objext' |
| 19574 | { (case "(($ac_try" in |
| 19575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19576 | *) ac_try_echo=$ac_try;; |
| 19577 | esac |
| 19578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19579 | (eval "$ac_try") 2>&5 |
| 19580 | ac_status=$? |
| 19581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19582 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19583 | ac_cv_func_std_isinf_in_cmath=yes |
| 19584 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19585 | echo "$as_me: failed program was:" >&5 |
| 19586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19587 | |
| 19588 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19589 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19590 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19592 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19593 | ac_cpp='$CPP $CPPFLAGS' |
| 19594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19597 | |
| 19598 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19599 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 19600 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19601 | |
| 19602 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19603 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19604 | cat >>confdefs.h <<\_ACEOF |
| 19605 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 19606 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19607 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19608 | fi |
| 19609 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19610 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 19611 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 19612 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 19613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19614 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19615 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19616 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19617 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19618 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19619 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19620 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19621 | cat >conftest.$ac_ext <<_ACEOF |
| 19622 | /* confdefs.h. */ |
| 19623 | _ACEOF |
| 19624 | cat confdefs.h >>conftest.$ac_ext |
| 19625 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19626 | /* end confdefs.h. */ |
| 19627 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19628 | int |
| 19629 | main () |
| 19630 | { |
| 19631 | float f; finite(f); |
| 19632 | ; |
| 19633 | return 0; |
| 19634 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19635 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19636 | rm -f conftest.$ac_objext |
| 19637 | if { (ac_try="$ac_compile" |
| 19638 | case "(($ac_try" in |
| 19639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19640 | *) ac_try_echo=$ac_try;; |
| 19641 | esac |
| 19642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19643 | (eval "$ac_compile") 2>conftest.er1 |
| 19644 | ac_status=$? |
| 19645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19646 | rm -f conftest.er1 |
| 19647 | cat conftest.err >&5 |
| 19648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19649 | (exit $ac_status); } && |
| 19650 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19651 | { (case "(($ac_try" in |
| 19652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19653 | *) ac_try_echo=$ac_try;; |
| 19654 | esac |
| 19655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19656 | (eval "$ac_try") 2>&5 |
| 19657 | ac_status=$? |
| 19658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19659 | (exit $ac_status); }; } && |
| 19660 | { ac_try='test -s conftest.$ac_objext' |
| 19661 | { (case "(($ac_try" in |
| 19662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19663 | *) ac_try_echo=$ac_try;; |
| 19664 | esac |
| 19665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19666 | (eval "$ac_try") 2>&5 |
| 19667 | ac_status=$? |
| 19668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19669 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19670 | ac_cv_func_finite_in_ieeefp_h=yes |
| 19671 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19672 | echo "$as_me: failed program was:" >&5 |
| 19673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19674 | |
| 19675 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19676 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19677 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19679 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19680 | ac_cpp='$CPP $CPPFLAGS' |
| 19681 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19682 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19683 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19684 | |
| 19685 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19686 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 19687 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19688 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 19689 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19690 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19691 | cat >>confdefs.h <<\_ACEOF |
| 19692 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 19693 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19694 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19695 | fi |
| 19696 | |
| 19697 | |
| 19698 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19699 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19700 | |
| 19701 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19702 | for ac_header in stdlib.h unistd.h |
| 19703 | do |
| 19704 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19705 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19706 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19707 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19708 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19710 | fi |
| 19711 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19712 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19713 | echo "${ECHO_T}$ac_res" >&6; } |
| 19714 | else |
| 19715 | # Is the header compilable? |
| 19716 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19717 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 19718 | cat >conftest.$ac_ext <<_ACEOF |
| 19719 | /* confdefs.h. */ |
| 19720 | _ACEOF |
| 19721 | cat confdefs.h >>conftest.$ac_ext |
| 19722 | cat >>conftest.$ac_ext <<_ACEOF |
| 19723 | /* end confdefs.h. */ |
| 19724 | $ac_includes_default |
| 19725 | #include <$ac_header> |
| 19726 | _ACEOF |
| 19727 | rm -f conftest.$ac_objext |
| 19728 | if { (ac_try="$ac_compile" |
| 19729 | case "(($ac_try" in |
| 19730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19731 | *) ac_try_echo=$ac_try;; |
| 19732 | esac |
| 19733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19734 | (eval "$ac_compile") 2>conftest.er1 |
| 19735 | ac_status=$? |
| 19736 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19737 | rm -f conftest.er1 |
| 19738 | cat conftest.err >&5 |
| 19739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19740 | (exit $ac_status); } && |
| 19741 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19742 | { (case "(($ac_try" in |
| 19743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19744 | *) ac_try_echo=$ac_try;; |
| 19745 | esac |
| 19746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19747 | (eval "$ac_try") 2>&5 |
| 19748 | ac_status=$? |
| 19749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19750 | (exit $ac_status); }; } && |
| 19751 | { ac_try='test -s conftest.$ac_objext' |
| 19752 | { (case "(($ac_try" in |
| 19753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19754 | *) ac_try_echo=$ac_try;; |
| 19755 | esac |
| 19756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19757 | (eval "$ac_try") 2>&5 |
| 19758 | ac_status=$? |
| 19759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19760 | (exit $ac_status); }; }; then |
| 19761 | ac_header_compiler=yes |
| 19762 | else |
| 19763 | echo "$as_me: failed program was:" >&5 |
| 19764 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19765 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19766 | ac_header_compiler=no |
| 19767 | fi |
| 19768 | |
| 19769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19770 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19771 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 19772 | |
| 19773 | # Is the header present? |
| 19774 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19775 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 19776 | cat >conftest.$ac_ext <<_ACEOF |
| 19777 | /* confdefs.h. */ |
| 19778 | _ACEOF |
| 19779 | cat confdefs.h >>conftest.$ac_ext |
| 19780 | cat >>conftest.$ac_ext <<_ACEOF |
| 19781 | /* end confdefs.h. */ |
| 19782 | #include <$ac_header> |
| 19783 | _ACEOF |
| 19784 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 19785 | case "(($ac_try" in |
| 19786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19787 | *) ac_try_echo=$ac_try;; |
| 19788 | esac |
| 19789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19790 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 19791 | ac_status=$? |
| 19792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19793 | rm -f conftest.er1 |
| 19794 | cat conftest.err >&5 |
| 19795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19796 | (exit $ac_status); } >/dev/null; then |
| 19797 | if test -s conftest.err; then |
| 19798 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19799 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 19800 | else |
| 19801 | ac_cpp_err= |
| 19802 | fi |
| 19803 | else |
| 19804 | ac_cpp_err=yes |
| 19805 | fi |
| 19806 | if test -z "$ac_cpp_err"; then |
| 19807 | ac_header_preproc=yes |
| 19808 | else |
| 19809 | echo "$as_me: failed program was:" >&5 |
| 19810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19811 | |
| 19812 | ac_header_preproc=no |
| 19813 | fi |
| 19814 | |
| 19815 | rm -f conftest.err conftest.$ac_ext |
| 19816 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19817 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 19818 | |
| 19819 | # So? What about this header? |
| 19820 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 19821 | yes:no: ) |
| 19822 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19823 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19824 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 19825 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 19826 | ac_header_preproc=yes |
| 19827 | ;; |
| 19828 | no:yes:* ) |
| 19829 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19830 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19831 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19832 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19833 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 19834 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 19835 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 19836 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 19837 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 19838 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19839 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 19840 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 19841 | ( cat <<\_ASBOX |
| 19842 | ## ----------------------------------- ## |
| 19843 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 19844 | ## ----------------------------------- ## |
| 19845 | _ASBOX |
| 19846 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 19847 | ;; |
| 19848 | esac |
| 19849 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19850 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19851 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19853 | else |
| 19854 | eval "$as_ac_Header=\$ac_header_preproc" |
| 19855 | fi |
| 19856 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19857 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19858 | echo "${ECHO_T}$ac_res" >&6; } |
| 19859 | |
| 19860 | fi |
| 19861 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19862 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19863 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19864 | _ACEOF |
| 19865 | |
| 19866 | fi |
| 19867 | |
| 19868 | done |
| 19869 | |
| 19870 | |
| 19871 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19872 | do |
| 19873 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19874 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19875 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19876 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19878 | else |
| 19879 | cat >conftest.$ac_ext <<_ACEOF |
| 19880 | /* confdefs.h. */ |
| 19881 | _ACEOF |
| 19882 | cat confdefs.h >>conftest.$ac_ext |
| 19883 | cat >>conftest.$ac_ext <<_ACEOF |
| 19884 | /* end confdefs.h. */ |
| 19885 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19886 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19887 | #define $ac_func innocuous_$ac_func |
| 19888 | |
| 19889 | /* System header to define __stub macros and hopefully few prototypes, |
| 19890 | which can conflict with char $ac_func (); below. |
| 19891 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19892 | <limits.h> exists even on freestanding compilers. */ |
| 19893 | |
| 19894 | #ifdef __STDC__ |
| 19895 | # include <limits.h> |
| 19896 | #else |
| 19897 | # include <assert.h> |
| 19898 | #endif |
| 19899 | |
| 19900 | #undef $ac_func |
| 19901 | |
| 19902 | /* Override any GCC internal prototype to avoid an error. |
| 19903 | Use char because int might match the return type of a GCC |
| 19904 | builtin and then its argument prototype would still apply. */ |
| 19905 | #ifdef __cplusplus |
| 19906 | extern "C" |
| 19907 | #endif |
| 19908 | char $ac_func (); |
| 19909 | /* The GNU C library defines this for functions which it implements |
| 19910 | to always fail with ENOSYS. Some functions are actually named |
| 19911 | something starting with __ and the normal name is an alias. */ |
| 19912 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19913 | choke me |
| 19914 | #endif |
| 19915 | |
| 19916 | int |
| 19917 | main () |
| 19918 | { |
| 19919 | return $ac_func (); |
| 19920 | ; |
| 19921 | return 0; |
| 19922 | } |
| 19923 | _ACEOF |
| 19924 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19925 | if { (ac_try="$ac_link" |
| 19926 | case "(($ac_try" in |
| 19927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19928 | *) ac_try_echo=$ac_try;; |
| 19929 | esac |
| 19930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19931 | (eval "$ac_link") 2>conftest.er1 |
| 19932 | ac_status=$? |
| 19933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19934 | rm -f conftest.er1 |
| 19935 | cat conftest.err >&5 |
| 19936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19937 | (exit $ac_status); } && |
| 19938 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19939 | { (case "(($ac_try" in |
| 19940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19941 | *) ac_try_echo=$ac_try;; |
| 19942 | esac |
| 19943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19944 | (eval "$ac_try") 2>&5 |
| 19945 | ac_status=$? |
| 19946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19947 | (exit $ac_status); }; } && |
| 19948 | { ac_try='test -s conftest$ac_exeext' |
| 19949 | { (case "(($ac_try" in |
| 19950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19951 | *) ac_try_echo=$ac_try;; |
| 19952 | esac |
| 19953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19954 | (eval "$ac_try") 2>&5 |
| 19955 | ac_status=$? |
| 19956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19957 | (exit $ac_status); }; }; then |
| 19958 | eval "$as_ac_var=yes" |
| 19959 | else |
| 19960 | echo "$as_me: failed program was:" >&5 |
| 19961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19962 | |
| 19963 | eval "$as_ac_var=no" |
| 19964 | fi |
| 19965 | |
| 19966 | rm -f core conftest.err conftest.$ac_objext \ |
| 19967 | conftest$ac_exeext conftest.$ac_ext |
| 19968 | fi |
| 19969 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19970 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19971 | echo "${ECHO_T}$ac_res" >&6; } |
| 19972 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19973 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19974 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19975 | _ACEOF |
| 19976 | |
| 19977 | fi |
| 19978 | done |
| 19979 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19980 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 19981 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 19982 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 19983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19984 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19985 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19986 | ac_cv_func_mmap_fixed_mapped=no |
| 19987 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19988 | cat >conftest.$ac_ext <<_ACEOF |
| 19989 | /* confdefs.h. */ |
| 19990 | _ACEOF |
| 19991 | cat confdefs.h >>conftest.$ac_ext |
| 19992 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19993 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19994 | $ac_includes_default |
| 19995 | /* malloc might have been renamed as rpl_malloc. */ |
| 19996 | #undef malloc |
| 19997 | |
| 19998 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 19999 | Here is a matrix of mmap possibilities: |
| 20000 | mmap private not fixed |
| 20001 | mmap private fixed at somewhere currently unmapped |
| 20002 | mmap private fixed at somewhere already mapped |
| 20003 | mmap shared not fixed |
| 20004 | mmap shared fixed at somewhere currently unmapped |
| 20005 | mmap shared fixed at somewhere already mapped |
| 20006 | For private mappings, we should verify that changes cannot be read() |
| 20007 | back from the file, nor mmap's back from the file at a different |
| 20008 | address. (There have been systems where private was not correctly |
| 20009 | implemented like the infamous i386 svr4.0, and systems where the |
| 20010 | VM page cache was not coherent with the file system buffer cache |
| 20011 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 20012 | For shared mappings, we should conversely verify that changes get |
| 20013 | propagated back to all the places they're supposed to be. |
| 20014 | |
| 20015 | Grep wants private fixed already mapped. |
| 20016 | The main things grep needs to know about mmap are: |
| 20017 | * does it exist and is it safe to write into the mmap'd area |
| 20018 | * how to use it (BSD variants) */ |
| 20019 | |
| 20020 | #include <fcntl.h> |
| 20021 | #include <sys/mman.h> |
| 20022 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20023 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20024 | char *malloc (); |
| 20025 | #endif |
| 20026 | |
| 20027 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20028 | #if !HAVE_GETPAGESIZE |
| 20029 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 20030 | # if !HAVE_SYS_PARAM_H |
| 20031 | # define HAVE_SYS_PARAM_H 1 |
| 20032 | # endif |
| 20033 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20034 | # ifdef _SC_PAGESIZE |
| 20035 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 20036 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20037 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20038 | # include <sys/param.h> |
| 20039 | # ifdef EXEC_PAGESIZE |
| 20040 | # define getpagesize() EXEC_PAGESIZE |
| 20041 | # else /* no EXEC_PAGESIZE */ |
| 20042 | # ifdef NBPG |
| 20043 | # define getpagesize() NBPG * CLSIZE |
| 20044 | # ifndef CLSIZE |
| 20045 | # define CLSIZE 1 |
| 20046 | # endif /* no CLSIZE */ |
| 20047 | # else /* no NBPG */ |
| 20048 | # ifdef NBPC |
| 20049 | # define getpagesize() NBPC |
| 20050 | # else /* no NBPC */ |
| 20051 | # ifdef PAGESIZE |
| 20052 | # define getpagesize() PAGESIZE |
| 20053 | # endif /* PAGESIZE */ |
| 20054 | # endif /* no NBPC */ |
| 20055 | # endif /* no NBPG */ |
| 20056 | # endif /* no EXEC_PAGESIZE */ |
| 20057 | # else /* no HAVE_SYS_PARAM_H */ |
| 20058 | # define getpagesize() 8192 /* punt totally */ |
| 20059 | # endif /* no HAVE_SYS_PARAM_H */ |
| 20060 | # endif /* no _SC_PAGESIZE */ |
| 20061 | |
| 20062 | #endif /* no HAVE_GETPAGESIZE */ |
| 20063 | |
| 20064 | int |
| 20065 | main () |
| 20066 | { |
| 20067 | char *data, *data2, *data3; |
| 20068 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20069 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20070 | |
| 20071 | pagesize = getpagesize (); |
| 20072 | |
| 20073 | /* First, make a file with some known garbage in it. */ |
| 20074 | data = (char *) malloc (pagesize); |
| 20075 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20076 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20077 | for (i = 0; i < pagesize; ++i) |
| 20078 | *(data + i) = rand (); |
| 20079 | umask (0); |
| 20080 | fd = creat ("conftest.mmap", 0600); |
| 20081 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20082 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20083 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20084 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20085 | close (fd); |
| 20086 | |
| 20087 | /* Next, try to mmap the file at a fixed address which already has |
| 20088 | something else allocated at it. If we can, also make sure that |
| 20089 | we see the same garbage. */ |
| 20090 | fd = open ("conftest.mmap", O_RDWR); |
| 20091 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20092 | return 1; |
| 20093 | data2 = (char *) malloc (2 * pagesize); |
| 20094 | if (!data2) |
| 20095 | return 1; |
| 20096 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20097 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20098 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20099 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20100 | for (i = 0; i < pagesize; ++i) |
| 20101 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20102 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20103 | |
| 20104 | /* Finally, make sure that changes to the mapped area do not |
| 20105 | percolate back to the file as seen by read(). (This is a bug on |
| 20106 | some variants of i386 svr4.0.) */ |
| 20107 | for (i = 0; i < pagesize; ++i) |
| 20108 | *(data2 + i) = *(data2 + i) + 1; |
| 20109 | data3 = (char *) malloc (pagesize); |
| 20110 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20111 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20112 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20113 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20114 | for (i = 0; i < pagesize; ++i) |
| 20115 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20116 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20117 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20118 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20119 | } |
| 20120 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20121 | rm -f conftest$ac_exeext |
| 20122 | if { (ac_try="$ac_link" |
| 20123 | case "(($ac_try" in |
| 20124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20125 | *) ac_try_echo=$ac_try;; |
| 20126 | esac |
| 20127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20128 | (eval "$ac_link") 2>&5 |
| 20129 | ac_status=$? |
| 20130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20131 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20132 | { (case "(($ac_try" in |
| 20133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20134 | *) ac_try_echo=$ac_try;; |
| 20135 | esac |
| 20136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20137 | (eval "$ac_try") 2>&5 |
| 20138 | ac_status=$? |
| 20139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20140 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20141 | ac_cv_func_mmap_fixed_mapped=yes |
| 20142 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20143 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20144 | echo "$as_me: failed program was:" >&5 |
| 20145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20146 | |
| 20147 | ( exit $ac_status ) |
| 20148 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20149 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20150 | 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] | 20151 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20152 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20153 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20154 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20155 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 20156 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20157 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 20158 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20159 | cat >>confdefs.h <<\_ACEOF |
| 20160 | #define HAVE_MMAP 1 |
| 20161 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20162 | |
| 20163 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20164 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20165 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20166 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 20167 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 20168 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 20169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20170 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20171 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20172 | ac_cpp='$CPP $CPPFLAGS' |
| 20173 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20174 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20175 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20176 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20177 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20178 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20179 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20180 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20181 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20182 | /* confdefs.h. */ |
| 20183 | _ACEOF |
| 20184 | cat confdefs.h >>conftest.$ac_ext |
| 20185 | cat >>conftest.$ac_ext <<_ACEOF |
| 20186 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20187 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20188 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20189 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20190 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20191 | |
| 20192 | int |
| 20193 | main () |
| 20194 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20195 | |
| 20196 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20197 | fd = creat ("foo",0777); |
| 20198 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 20199 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20200 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20201 | ; |
| 20202 | return 0; |
| 20203 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20204 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20205 | rm -f conftest$ac_exeext |
| 20206 | if { (ac_try="$ac_link" |
| 20207 | case "(($ac_try" in |
| 20208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20209 | *) ac_try_echo=$ac_try;; |
| 20210 | esac |
| 20211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20212 | (eval "$ac_link") 2>&5 |
| 20213 | ac_status=$? |
| 20214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20215 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20216 | { (case "(($ac_try" in |
| 20217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20218 | *) ac_try_echo=$ac_try;; |
| 20219 | esac |
| 20220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20221 | (eval "$ac_try") 2>&5 |
| 20222 | ac_status=$? |
| 20223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20224 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20225 | ac_cv_func_mmap_file=yes |
| 20226 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20227 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20228 | echo "$as_me: failed program was:" >&5 |
| 20229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20230 | |
| 20231 | ( exit $ac_status ) |
| 20232 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20233 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20234 | 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] | 20235 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20236 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20237 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20238 | ac_ext=c |
| 20239 | ac_cpp='$CPP $CPPFLAGS' |
| 20240 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20241 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20242 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20243 | |
| 20244 | |
| 20245 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20246 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 20247 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20248 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20249 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20250 | cat >>confdefs.h <<\_ACEOF |
| 20251 | #define HAVE_MMAP_FILE |
| 20252 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20253 | |
| 20254 | MMAP_FILE=yes |
| 20255 | |
| 20256 | fi |
| 20257 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20258 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 20259 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 20260 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 20261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20262 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 20263 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20264 | ac_cv_need_dev_zero_for_mmap=yes |
| 20265 | else |
| 20266 | ac_cv_need_dev_zero_for_mmap=no |
| 20267 | fi |
| 20268 | |
| 20269 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20270 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 20271 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20272 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 20273 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20274 | cat >>confdefs.h <<\_ACEOF |
| 20275 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 20276 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20277 | |
| 20278 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20279 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20280 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 20281 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20282 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 20283 | 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] | 20284 | fi |
| 20285 | if test "$ac_cv_func_mmap_file" = "no" |
| 20286 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20287 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 20288 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20289 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 20290 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20291 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20292 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 20293 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20294 | ac_ext=cpp |
| 20295 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20296 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20297 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20298 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20299 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20300 | cat >conftest.$ac_ext <<_ACEOF |
| 20301 | /* confdefs.h. */ |
| 20302 | _ACEOF |
| 20303 | cat confdefs.h >>conftest.$ac_ext |
| 20304 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20305 | /* end confdefs.h. */ |
| 20306 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20307 | volatile unsigned long val = 1; |
| 20308 | __sync_synchronize(); |
| 20309 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 20310 | __sync_add_and_fetch(&val, 1); |
| 20311 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20312 | return 0; |
| 20313 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20314 | |
| 20315 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20316 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20317 | if { (ac_try="$ac_link" |
| 20318 | case "(($ac_try" in |
| 20319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20320 | *) ac_try_echo=$ac_try;; |
| 20321 | esac |
| 20322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20323 | (eval "$ac_link") 2>conftest.er1 |
| 20324 | ac_status=$? |
| 20325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20326 | rm -f conftest.er1 |
| 20327 | cat conftest.err >&5 |
| 20328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20329 | (exit $ac_status); } && |
| 20330 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20331 | { (case "(($ac_try" in |
| 20332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20333 | *) ac_try_echo=$ac_try;; |
| 20334 | esac |
| 20335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20336 | (eval "$ac_try") 2>&5 |
| 20337 | ac_status=$? |
| 20338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20339 | (exit $ac_status); }; } && |
| 20340 | { ac_try='test -s conftest$ac_exeext' |
| 20341 | { (case "(($ac_try" in |
| 20342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20343 | *) ac_try_echo=$ac_try;; |
| 20344 | esac |
| 20345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20346 | (eval "$ac_try") 2>&5 |
| 20347 | ac_status=$? |
| 20348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20349 | (exit $ac_status); }; }; then |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20350 | ac_ext=c |
| 20351 | ac_cpp='$CPP $CPPFLAGS' |
| 20352 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20353 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20354 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20355 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20356 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20357 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20358 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20359 | cat >>confdefs.h <<\_ACEOF |
| 20360 | #define LLVM_MULTITHREADED 1 |
| 20361 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20362 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20363 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20364 | echo "$as_me: failed program was:" >&5 |
| 20365 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20366 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20367 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20368 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20369 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20370 | cat >>confdefs.h <<\_ACEOF |
| 20371 | #define LLVM_MULTITHREADED 0 |
| 20372 | _ACEOF |
| 20373 | |
| 20374 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 20375 | 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] | 20376 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20377 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20378 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20379 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20380 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20381 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20382 | 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] | 20383 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 20384 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 20385 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 20386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20387 | else |
| 20388 | ac_ext=c |
| 20389 | ac_cpp='$CPP $CPPFLAGS' |
| 20390 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20391 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20392 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20393 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20394 | cat >conftest.$ac_ext <<_ACEOF |
| 20395 | /* confdefs.h. */ |
| 20396 | _ACEOF |
| 20397 | cat confdefs.h >>conftest.$ac_ext |
| 20398 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20399 | /* end confdefs.h. */ |
| 20400 | #ifndef __x86_64__ |
| 20401 | error: Not x86-64 even if uname says so! |
| 20402 | #endif |
| 20403 | |
| 20404 | int |
| 20405 | main () |
| 20406 | { |
| 20407 | |
| 20408 | ; |
| 20409 | return 0; |
| 20410 | } |
| 20411 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20412 | rm -f conftest.$ac_objext |
| 20413 | if { (ac_try="$ac_compile" |
| 20414 | case "(($ac_try" in |
| 20415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20416 | *) ac_try_echo=$ac_try;; |
| 20417 | esac |
| 20418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20419 | (eval "$ac_compile") 2>conftest.er1 |
| 20420 | ac_status=$? |
| 20421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20422 | rm -f conftest.er1 |
| 20423 | cat conftest.err >&5 |
| 20424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20425 | (exit $ac_status); } && |
| 20426 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20427 | { (case "(($ac_try" in |
| 20428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20429 | *) ac_try_echo=$ac_try;; |
| 20430 | esac |
| 20431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20432 | (eval "$ac_try") 2>&5 |
| 20433 | ac_status=$? |
| 20434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20435 | (exit $ac_status); }; } && |
| 20436 | { ac_try='test -s conftest.$ac_objext' |
| 20437 | { (case "(($ac_try" in |
| 20438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20439 | *) ac_try_echo=$ac_try;; |
| 20440 | esac |
| 20441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20442 | (eval "$ac_try") 2>&5 |
| 20443 | ac_status=$? |
| 20444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20445 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20446 | llvm_cv_linux_mixed=no |
| 20447 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20448 | echo "$as_me: failed program was:" >&5 |
| 20449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20450 | |
| 20451 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20452 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20453 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20455 | ac_ext=c |
| 20456 | ac_cpp='$CPP $CPPFLAGS' |
| 20457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20460 | |
| 20461 | |
| 20462 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20463 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 20464 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20465 | |
| 20466 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 20467 | llvm_cv_target_arch="x86" |
| 20468 | ARCH="x86" |
| 20469 | fi |
| 20470 | fi |
| 20471 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20472 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20473 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20474 | do |
| 20475 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20476 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20477 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20478 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20480 | else |
| 20481 | cat >conftest.$ac_ext <<_ACEOF |
| 20482 | /* confdefs.h. */ |
| 20483 | _ACEOF |
| 20484 | cat confdefs.h >>conftest.$ac_ext |
| 20485 | cat >>conftest.$ac_ext <<_ACEOF |
| 20486 | /* end confdefs.h. */ |
| 20487 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20488 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20489 | #define $ac_func innocuous_$ac_func |
| 20490 | |
| 20491 | /* System header to define __stub macros and hopefully few prototypes, |
| 20492 | which can conflict with char $ac_func (); below. |
| 20493 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20494 | <limits.h> exists even on freestanding compilers. */ |
| 20495 | |
| 20496 | #ifdef __STDC__ |
| 20497 | # include <limits.h> |
| 20498 | #else |
| 20499 | # include <assert.h> |
| 20500 | #endif |
| 20501 | |
| 20502 | #undef $ac_func |
| 20503 | |
| 20504 | /* Override any GCC internal prototype to avoid an error. |
| 20505 | Use char because int might match the return type of a GCC |
| 20506 | builtin and then its argument prototype would still apply. */ |
| 20507 | #ifdef __cplusplus |
| 20508 | extern "C" |
| 20509 | #endif |
| 20510 | char $ac_func (); |
| 20511 | /* The GNU C library defines this for functions which it implements |
| 20512 | to always fail with ENOSYS. Some functions are actually named |
| 20513 | something starting with __ and the normal name is an alias. */ |
| 20514 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20515 | choke me |
| 20516 | #endif |
| 20517 | |
| 20518 | int |
| 20519 | main () |
| 20520 | { |
| 20521 | return $ac_func (); |
| 20522 | ; |
| 20523 | return 0; |
| 20524 | } |
| 20525 | _ACEOF |
| 20526 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20527 | if { (ac_try="$ac_link" |
| 20528 | case "(($ac_try" in |
| 20529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20530 | *) ac_try_echo=$ac_try;; |
| 20531 | esac |
| 20532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20533 | (eval "$ac_link") 2>conftest.er1 |
| 20534 | ac_status=$? |
| 20535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20536 | rm -f conftest.er1 |
| 20537 | cat conftest.err >&5 |
| 20538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20539 | (exit $ac_status); } && |
| 20540 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20541 | { (case "(($ac_try" in |
| 20542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20543 | *) ac_try_echo=$ac_try;; |
| 20544 | esac |
| 20545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20546 | (eval "$ac_try") 2>&5 |
| 20547 | ac_status=$? |
| 20548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20549 | (exit $ac_status); }; } && |
| 20550 | { ac_try='test -s conftest$ac_exeext' |
| 20551 | { (case "(($ac_try" in |
| 20552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20553 | *) ac_try_echo=$ac_try;; |
| 20554 | esac |
| 20555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20556 | (eval "$ac_try") 2>&5 |
| 20557 | ac_status=$? |
| 20558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20559 | (exit $ac_status); }; }; then |
| 20560 | eval "$as_ac_var=yes" |
| 20561 | else |
| 20562 | echo "$as_me: failed program was:" >&5 |
| 20563 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20564 | |
| 20565 | eval "$as_ac_var=no" |
| 20566 | fi |
| 20567 | |
| 20568 | rm -f core conftest.err conftest.$ac_objext \ |
| 20569 | conftest$ac_exeext conftest.$ac_ext |
| 20570 | fi |
| 20571 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20572 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20573 | echo "${ECHO_T}$ac_res" >&6; } |
| 20574 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20575 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20576 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20577 | _ACEOF |
| 20578 | |
| 20579 | fi |
| 20580 | done |
| 20581 | |
| 20582 | |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 20583 | { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5 |
| 20584 | echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; } |
| 20585 | if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then |
| 20586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20587 | else |
| 20588 | llvm_cv_llvmgcc_dragonegg="no" |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 20589 | if test -n "$LLVMGCC" ; then |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 20590 | cp /dev/null conftest.c |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 20591 | $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1 |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 20592 | if test $? -eq 0 ; then |
| 20593 | llvm_cv_llvmgcc_dragonegg="yes" |
| 20594 | fi |
| 20595 | rm conftest.c |
| 20596 | fi |
| 20597 | fi |
| 20598 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5 |
| 20599 | echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; } |
| 20600 | |
| 20601 | if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then |
| 20602 | LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir" |
Duncan Sands | 1ac320e | 2010-11-25 17:57:43 +0000 | [diff] [blame] | 20603 | LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns" |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 20604 | else |
| 20605 | LLVMCC_EMITIR_FLAG="-emit-llvm" |
Duncan Sands | 1ac320e | 2010-11-25 17:57:43 +0000 | [diff] [blame] | 20606 | LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns" |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 20607 | fi |
| 20608 | |
| 20609 | |
| 20610 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20611 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 20612 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
| 20613 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 20614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20615 | else |
| 20616 | llvm_cv_llvmgcc_sanity="no" |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 20617 | if test -n "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20618 | cp /dev/null conftest.c |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 20619 | $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \ |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 20620 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20621 | if test $? -eq 0 ; then |
| 20622 | llvm_cv_llvmgcc_sanity="yes" |
| 20623 | fi |
| 20624 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 20625 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20626 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20627 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 20628 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20629 | |
| 20630 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20631 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 20632 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 20633 | llvmcc1path=`$LLVMGCC --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20634 | LLVMCC1=$llvmcc1path |
| 20635 | |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 20636 | llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20637 | LLVMCC1PLUS=$llvmcc1pluspath |
| 20638 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20639 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 20640 | LLVMGCCDIR=$llvmgccdir |
| 20641 | |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 20642 | 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] | 20643 | LLVMGCC_LANGS=$llvmgcclangs |
| 20644 | |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 20645 | LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg |
| 20646 | |
| 20647 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20648 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 20649 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 20650 | fi |
| 20651 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20652 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 20653 | |
| 20654 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 20655 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var |
| 20656 | |
| 20657 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20658 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20659 | # information into substitutions that will end up in Makefile.config.in |
| 20660 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 20661 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 20662 | prefix="/usr/local" |
| 20663 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20664 | eval LLVM_PREFIX="${prefix}"; |
| 20665 | eval LLVM_BINDIR="${prefix}/bin"; |
| 20666 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20667 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
Eric Christopher | ec27496 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 20668 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20669 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20670 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 20671 | eval LLVM_INFODIR="${prefix}/info"; |
| 20672 | eval LLVM_MANDIR="${prefix}/man"; |
| 20673 | LLVM_CONFIGTIME=`date` |
| 20674 | |
| 20675 | |
| 20676 | |
| 20677 | |
| 20678 | |
| 20679 | |
| 20680 | |
| 20681 | |
| 20682 | |
| 20683 | |
| 20684 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20685 | # Place the various directores into the config.h file as #defines so that we |
| 20686 | # can know about the installation paths within LLVM. |
| 20687 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20688 | cat >>confdefs.h <<_ACEOF |
| 20689 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 20690 | _ACEOF |
| 20691 | |
| 20692 | |
| 20693 | cat >>confdefs.h <<_ACEOF |
| 20694 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 20695 | _ACEOF |
| 20696 | |
| 20697 | |
| 20698 | cat >>confdefs.h <<_ACEOF |
| 20699 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 20700 | _ACEOF |
| 20701 | |
| 20702 | |
| 20703 | cat >>confdefs.h <<_ACEOF |
| 20704 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 20705 | _ACEOF |
| 20706 | |
| 20707 | |
| 20708 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 20709 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20710 | _ACEOF |
| 20711 | |
| 20712 | |
| 20713 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 20714 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20715 | _ACEOF |
| 20716 | |
| 20717 | |
| 20718 | cat >>confdefs.h <<_ACEOF |
| 20719 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 20720 | _ACEOF |
| 20721 | |
| 20722 | |
| 20723 | cat >>confdefs.h <<_ACEOF |
| 20724 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 20725 | _ACEOF |
| 20726 | |
| 20727 | |
| 20728 | cat >>confdefs.h <<_ACEOF |
| 20729 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 20730 | _ACEOF |
| 20731 | |
| 20732 | |
| 20733 | cat >>confdefs.h <<_ACEOF |
| 20734 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 20735 | _ACEOF |
| 20736 | |
| 20737 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 20738 | cat >>confdefs.h <<_ACEOF |
| 20739 | #define LLVM_HOSTTRIPLE "$host" |
| 20740 | _ACEOF |
| 20741 | |
| 20742 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 20743 | # Determine which bindings to build. |
| 20744 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 20745 | BINDINGS_TO_BUILD="" |
| 20746 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 20747 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 20748 | fi |
| 20749 | fi |
| 20750 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 20751 | |
| 20752 | |
| 20753 | # This isn't really configurey, but it avoids having to repeat the list in |
| 20754 | # other files. |
| 20755 | ALL_BINDINGS=ocaml |
| 20756 | |
| 20757 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20758 | # Do any work necessary to ensure that bindings have what they need. |
| 20759 | binding_prereqs_failed=0 |
| 20760 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 20761 | case "$a_binding" in |
| 20762 | ocaml) |
| 20763 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20764 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 20765 | 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] | 20766 | binding_prereqs_failed=1 |
| 20767 | fi |
| 20768 | if test "x$OCAMLDEP" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20769 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 20770 | 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] | 20771 | binding_prereqs_failed=1 |
| 20772 | fi |
| 20773 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20774 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 20775 | 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] | 20776 | fi |
| 20777 | if test "x$with_ocaml_libdir" != xauto ; then |
| 20778 | OCAML_LIBDIR=$with_ocaml_libdir |
| 20779 | |
| 20780 | else |
| 20781 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 20782 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 20783 | then |
| 20784 | # ocaml stdlib is beneath our prefix; use stdlib |
| 20785 | OCAML_LIBDIR=$ocaml_stdlib |
| 20786 | |
| 20787 | else |
| 20788 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 20789 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 20790 | |
| 20791 | fi |
| 20792 | fi |
| 20793 | ;; |
| 20794 | esac |
| 20795 | done |
| 20796 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20797 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 20798 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 20799 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20800 | fi |
| 20801 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20802 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 20803 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 20804 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 20805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20806 | else |
| 20807 | ac_ext=cpp |
| 20808 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20809 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20810 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20811 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20812 | |
| 20813 | oldcxxflags="$CXXFLAGS" |
| 20814 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20815 | cat >conftest.$ac_ext <<_ACEOF |
| 20816 | /* confdefs.h. */ |
| 20817 | _ACEOF |
| 20818 | cat confdefs.h >>conftest.$ac_ext |
| 20819 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20820 | /* end confdefs.h. */ |
| 20821 | |
| 20822 | int |
| 20823 | main () |
| 20824 | { |
| 20825 | |
| 20826 | ; |
| 20827 | return 0; |
| 20828 | } |
| 20829 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20830 | rm -f conftest.$ac_objext |
| 20831 | if { (ac_try="$ac_compile" |
| 20832 | case "(($ac_try" in |
| 20833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20834 | *) ac_try_echo=$ac_try;; |
| 20835 | esac |
| 20836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20837 | (eval "$ac_compile") 2>conftest.er1 |
| 20838 | ac_status=$? |
| 20839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20840 | rm -f conftest.er1 |
| 20841 | cat conftest.err >&5 |
| 20842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20843 | (exit $ac_status); } && |
| 20844 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20845 | { (case "(($ac_try" in |
| 20846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20847 | *) ac_try_echo=$ac_try;; |
| 20848 | esac |
| 20849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20850 | (eval "$ac_try") 2>&5 |
| 20851 | ac_status=$? |
| 20852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20853 | (exit $ac_status); }; } && |
| 20854 | { ac_try='test -s conftest.$ac_objext' |
| 20855 | { (case "(($ac_try" in |
| 20856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20857 | *) ac_try_echo=$ac_try;; |
| 20858 | esac |
| 20859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20860 | (eval "$ac_try") 2>&5 |
| 20861 | ac_status=$? |
| 20862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20863 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20864 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 20865 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20866 | echo "$as_me: failed program was:" >&5 |
| 20867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20868 | |
| 20869 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20870 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20871 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20873 | CXXFLAGS="$oldcxxflags" |
| 20874 | ac_ext=c |
| 20875 | ac_cpp='$CPP $CPPFLAGS' |
| 20876 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20877 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20878 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20879 | |
| 20880 | |
| 20881 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20882 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 20883 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20884 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 20885 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 20886 | |
| 20887 | else |
| 20888 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 20889 | |
| 20890 | fi |
| 20891 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20892 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 20893 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 20894 | RPATH="-Wl,-R" |
| 20895 | else |
| 20896 | RPATH="-Wl,-rpath" |
| 20897 | fi |
| 20898 | |
| 20899 | |
| 20900 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 20901 | RDYNAMIC="-Wl,-export-dynamic" |
| 20902 | else |
| 20903 | RDYNAMIC="" |
| 20904 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 20905 | |
| 20906 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20907 | |
Eric Christopher | a1cba68 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 20908 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20909 | |
Eric Christopher | 21d3eeb | 2010-08-08 09:20:39 +0000 | [diff] [blame] | 20910 | |
| 20911 | |
| 20912 | |
| 20913 | |
| 20914 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 20915 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 20916 | |
| 20917 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 20918 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 20919 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 20920 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 20921 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 20922 | |
Michael J. Spencer | 1f6efa3 | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 20923 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20924 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20925 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20926 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20927 | |
| 20928 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 20929 | ac_config_files="$ac_config_files llvm.spec" |
| 20930 | |
| 20931 | |
Mikhail Glushenkov | 4b643c0 | 2010-08-15 07:07:17 +0000 | [diff] [blame] | 20932 | ac_config_files="$ac_config_files tools/llvmc/src/Base.td" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 20933 | |
| 20934 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20935 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 20936 | |
| 20937 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20938 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 20939 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20940 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20941 | |
| 20942 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20943 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20944 | |
| 20945 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20946 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20947 | |
| 20948 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20949 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20950 | |
| 20951 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 20952 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 20953 | |
| 20954 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20955 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20956 | |
| 20957 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20958 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20959 | |
| 20960 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 20961 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 20962 | |
| 20963 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20964 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20965 | |
| 20966 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20967 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20968 | |
| 20969 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20970 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20971 | |
| 20972 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 20973 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 20974 | |
| 20975 | |
| 20976 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 20977 | |
| 20978 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20979 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20980 | cat >confcache <<\_ACEOF |
| 20981 | # This file is a shell script that caches the results of configure |
| 20982 | # tests run on this system so they can be shared between configure |
| 20983 | # scripts and configure runs, see configure's option --config-cache. |
| 20984 | # It is not useful on other systems. If it contains results you don't |
| 20985 | # want to keep, you may remove or edit it. |
| 20986 | # |
| 20987 | # config.status only pays attention to the cache file if you give it |
| 20988 | # the --recheck option to rerun configure. |
| 20989 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20990 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20991 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20992 | # following values. |
| 20993 | |
| 20994 | _ACEOF |
| 20995 | |
| 20996 | # The following way of writing the cache mishandles newlines in values, |
| 20997 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20998 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20999 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 21000 | # 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] | 21001 | ( |
| 21002 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 21003 | eval ac_val=\$$ac_var |
| 21004 | case $ac_val in #( |
| 21005 | *${as_nl}*) |
| 21006 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21007 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 21008 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21009 | esac |
| 21010 | case $ac_var in #( |
| 21011 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21012 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21013 | esac ;; |
| 21014 | esac |
| 21015 | done |
| 21016 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21017 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21018 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 21019 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21020 | # `set' does not quote correctly, so add quotes (double-quote |
| 21021 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21022 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21023 | "s/'/'\\\\''/g; |
| 21024 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21025 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21026 | *) |
| 21027 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21028 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21029 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21030 | esac | |
| 21031 | sort |
| 21032 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21033 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21034 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21035 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21036 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21037 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 21038 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21039 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 21040 | :end' >>confcache |
| 21041 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 21042 | if test -w "$cache_file"; then |
| 21043 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21044 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 21045 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21046 | cat confcache >$cache_file |
| 21047 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21048 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 21049 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21050 | fi |
| 21051 | fi |
| 21052 | rm -f confcache |
| 21053 | |
| 21054 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 21055 | # Let make expand exec_prefix. |
| 21056 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 21057 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21058 | DEFS=-DHAVE_CONFIG_H |
| 21059 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21060 | ac_libobjs= |
| 21061 | ac_ltlibobjs= |
| 21062 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 21063 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21064 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21065 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21066 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 21067 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21068 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 21069 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21070 | done |
| 21071 | LIBOBJS=$ac_libobjs |
| 21072 | |
| 21073 | LTLIBOBJS=$ac_ltlibobjs |
| 21074 | |
| 21075 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21076 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21077 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 21078 | Usually this means the macro was only invoked conditionally." >&5 |
| 21079 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 21080 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21081 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21082 | fi |
| 21083 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21084 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 21085 | Usually this means the macro was only invoked conditionally." >&5 |
| 21086 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 21087 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21088 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21089 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21090 | |
| 21091 | : ${CONFIG_STATUS=./config.status} |
| 21092 | ac_clean_files_save=$ac_clean_files |
| 21093 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21094 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 21095 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 21096 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21097 | #! $SHELL |
| 21098 | # Generated by $as_me. |
| 21099 | # Run this file to recreate the current configuration. |
| 21100 | # Compiler output produced by configure, useful for debugging |
| 21101 | # configure, is in config.log if it exists. |
| 21102 | |
| 21103 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21104 | ac_cs_recheck=false |
| 21105 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21106 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21107 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21108 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21109 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21110 | ## --------------------- ## |
| 21111 | ## M4sh Initialization. ## |
| 21112 | ## --------------------- ## |
| 21113 | |
| 21114 | # Be Bourne compatible |
| 21115 | 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] | 21116 | emulate sh |
| 21117 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21118 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21119 | # is contrary to our usage. Disable this feature. |
| 21120 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21121 | setopt NO_GLOB_SUBST |
| 21122 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21123 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21124 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21125 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 21126 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21127 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21128 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21129 | # PATH needs CR |
| 21130 | # Avoid depending upon Character Ranges. |
| 21131 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 21132 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 21133 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 21134 | as_cr_digits='0123456789' |
| 21135 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21136 | |
| 21137 | # The user is always right. |
| 21138 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21139 | echo "#! /bin/sh" >conf$$.sh |
| 21140 | echo "exit 0" >>conf$$.sh |
| 21141 | chmod +x conf$$.sh |
| 21142 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 21143 | PATH_SEPARATOR=';' |
| 21144 | else |
| 21145 | PATH_SEPARATOR=: |
| 21146 | fi |
| 21147 | rm -f conf$$.sh |
| 21148 | fi |
| 21149 | |
| 21150 | # Support unset when possible. |
| 21151 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 21152 | as_unset=unset |
| 21153 | else |
| 21154 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21155 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21156 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21157 | |
| 21158 | # IFS |
| 21159 | # We need space, tab and new line, in precisely that order. Quoting is |
| 21160 | # there to prevent editors from complaining about space-tab. |
| 21161 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 21162 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21163 | as_nl=' |
| 21164 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21165 | IFS=" "" $as_nl" |
| 21166 | |
| 21167 | # 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] | 21168 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21169 | *[\\/]* ) as_myself=$0 ;; |
| 21170 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21171 | for as_dir in $PATH |
| 21172 | do |
| 21173 | IFS=$as_save_IFS |
| 21174 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21175 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 21176 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21177 | IFS=$as_save_IFS |
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 | ;; |
| 21180 | esac |
| 21181 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 21182 | # in which case we are not to be found in the path. |
| 21183 | if test "x$as_myself" = x; then |
| 21184 | as_myself=$0 |
| 21185 | fi |
| 21186 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21187 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 21188 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21189 | fi |
| 21190 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21191 | # Work around bugs in pre-3.0 UWIN ksh. |
| 21192 | for as_var in ENV MAIL MAILPATH |
| 21193 | 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] | 21194 | done |
| 21195 | PS1='$ ' |
| 21196 | PS2='> ' |
| 21197 | PS4='+ ' |
| 21198 | |
| 21199 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21200 | for as_var in \ |
| 21201 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 21202 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 21203 | LC_TELEPHONE LC_TIME |
| 21204 | do |
| 21205 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 21206 | eval $as_var=C; export $as_var |
| 21207 | else |
| 21208 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21209 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21210 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21211 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21212 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21213 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21214 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 21215 | as_expr=expr |
| 21216 | else |
| 21217 | as_expr=false |
| 21218 | fi |
| 21219 | |
| 21220 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 21221 | as_basename=basename |
| 21222 | else |
| 21223 | as_basename=false |
| 21224 | fi |
| 21225 | |
| 21226 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21227 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21228 | as_me=`$as_basename -- "$0" || |
| 21229 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 21230 | X"$0" : 'X\(//\)$' \| \ |
| 21231 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21232 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21233 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 21234 | s//\1/ |
| 21235 | q |
| 21236 | } |
| 21237 | /^X\/\(\/\/\)$/{ |
| 21238 | s//\1/ |
| 21239 | q |
| 21240 | } |
| 21241 | /^X\/\(\/\).*/{ |
| 21242 | s//\1/ |
| 21243 | q |
| 21244 | } |
| 21245 | s/.*/./; q'` |
| 21246 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21247 | # CDPATH. |
| 21248 | $as_unset CDPATH |
| 21249 | |
| 21250 | |
| 21251 | |
| 21252 | as_lineno_1=$LINENO |
| 21253 | as_lineno_2=$LINENO |
| 21254 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 21255 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 21256 | |
| 21257 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 21258 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 21259 | # line-number line after each line using $LINENO; the second 'sed' |
| 21260 | # does the real work. The second script uses 'N' to pair each |
| 21261 | # line-number line with the line containing $LINENO, and appends |
| 21262 | # trailing '-' during substitution so that $LINENO is not a special |
| 21263 | # case at line end. |
| 21264 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 21265 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 21266 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 21267 | sed -n ' |
| 21268 | p |
| 21269 | /[$]LINENO/= |
| 21270 | ' <$as_myself | |
| 21271 | sed ' |
| 21272 | s/[$]LINENO.*/&-/ |
| 21273 | t lineno |
| 21274 | b |
| 21275 | :lineno |
| 21276 | N |
| 21277 | :loop |
| 21278 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 21279 | t loop |
| 21280 | s/-\n.*// |
| 21281 | ' >$as_me.lineno && |
| 21282 | chmod +x "$as_me.lineno" || |
| 21283 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 21284 | { (exit 1); exit 1; }; } |
| 21285 | |
| 21286 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 21287 | # (the dirname of $[0] is not the place where we might find the |
| 21288 | # original and so on. Autoconf is especially sensitive to this). |
| 21289 | . "./$as_me.lineno" |
| 21290 | # Exit status is that of the last command. |
| 21291 | exit |
| 21292 | } |
| 21293 | |
| 21294 | |
| 21295 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 21296 | as_dirname=dirname |
| 21297 | else |
| 21298 | as_dirname=false |
| 21299 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21300 | |
| 21301 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21302 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21303 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21304 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21305 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21306 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21307 | esac;; |
| 21308 | *) |
| 21309 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21310 | esac |
| 21311 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21312 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21313 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 21314 | as_expr=expr |
| 21315 | else |
| 21316 | as_expr=false |
| 21317 | fi |
| 21318 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21319 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21320 | if test -d conf$$.dir; then |
| 21321 | rm -f conf$$.dir/conf$$.file |
| 21322 | else |
| 21323 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21324 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21325 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21326 | echo >conf$$.file |
| 21327 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 21328 | as_ln_s='ln -s' |
| 21329 | # ... but there are two gotchas: |
| 21330 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 21331 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 21332 | # In both cases, we have to default to `cp -p'. |
| 21333 | 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] | 21334 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21335 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 21336 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21337 | else |
| 21338 | as_ln_s='cp -p' |
| 21339 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21340 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 21341 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21342 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21343 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21344 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21345 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21346 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21347 | as_mkdir_p=false |
| 21348 | fi |
| 21349 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21350 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 21351 | # systems may use methods other than mode bits to determine executability. |
| 21352 | cat >conf$$.file <<_ASEOF |
| 21353 | #! /bin/sh |
| 21354 | exit 0 |
| 21355 | _ASEOF |
| 21356 | chmod +x conf$$.file |
| 21357 | if test -x conf$$.file >/dev/null 2>&1; then |
| 21358 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21359 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21360 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21361 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21362 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21363 | |
| 21364 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21365 | 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] | 21366 | |
| 21367 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21368 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21369 | |
| 21370 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21371 | exec 6>&1 |
| 21372 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21373 | # 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] | 21374 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21375 | # values after options handling. |
| 21376 | ac_log=" |
Eric Christopher | b26697c | 2010-09-06 18:47:10 +0000 | [diff] [blame] | 21377 | This file was extended by llvm $as_me 2.9svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21378 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21379 | |
| 21380 | CONFIG_FILES = $CONFIG_FILES |
| 21381 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 21382 | CONFIG_LINKS = $CONFIG_LINKS |
| 21383 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 21384 | $ $0 $@ |
| 21385 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21386 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 21387 | " |
| 21388 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21389 | _ACEOF |
| 21390 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21391 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21392 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21393 | config_files="$ac_config_files" |
| 21394 | config_headers="$ac_config_headers" |
| 21395 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21396 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21397 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21398 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21399 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21400 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21401 | \`$as_me' instantiates files from templates according to the |
| 21402 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21403 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21404 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21405 | |
| 21406 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21407 | -V, --version print version number, then exit |
| 21408 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21409 | -d, --debug don't remove temporary files |
| 21410 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21411 | --file=FILE[:TEMPLATE] |
| 21412 | instantiate the configuration file FILE |
| 21413 | --header=FILE[:TEMPLATE] |
| 21414 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21415 | |
| 21416 | Configuration files: |
| 21417 | $config_files |
| 21418 | |
| 21419 | Configuration headers: |
| 21420 | $config_headers |
| 21421 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21422 | Configuration commands: |
| 21423 | $config_commands |
| 21424 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21425 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21426 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21427 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21428 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21429 | ac_cs_version="\\ |
Eric Christopher | b26697c | 2010-09-06 18:47:10 +0000 | [diff] [blame] | 21430 | llvm config.status 2.9svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21431 | configured by $0, generated by GNU Autoconf 2.60, |
| 21432 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21433 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21434 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21435 | This config.status script is free software; the Free Software Foundation |
| 21436 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21437 | |
| 21438 | ac_pwd='$ac_pwd' |
| 21439 | srcdir='$srcdir' |
| 21440 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21441 | _ACEOF |
| 21442 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21443 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21444 | # If no file are specified by the user, then we need to provide default |
| 21445 | # 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] | 21446 | ac_need_defaults=: |
| 21447 | while test $# != 0 |
| 21448 | do |
| 21449 | case $1 in |
| 21450 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21451 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 21452 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21453 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21454 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21455 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21456 | ac_option=$1 |
| 21457 | ac_optarg=$2 |
| 21458 | ac_shift=shift |
| 21459 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21460 | esac |
| 21461 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21462 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21463 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21464 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 21465 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21466 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21467 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21468 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21469 | debug=: ;; |
| 21470 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21471 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21472 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21473 | ac_need_defaults=false;; |
| 21474 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21475 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21476 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21477 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21478 | --he | --h) |
| 21479 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21480 | { echo "$as_me: error: ambiguous option: $1 |
| 21481 | Try \`$0 --help' for more information." >&2 |
| 21482 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21483 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21484 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21485 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 21486 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 21487 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21488 | |
| 21489 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21490 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 21491 | Try \`$0 --help' for more information." >&2 |
| 21492 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21493 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21494 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21495 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21496 | |
| 21497 | esac |
| 21498 | shift |
| 21499 | done |
| 21500 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21501 | ac_configure_extra_args= |
| 21502 | |
| 21503 | if $ac_cs_silent; then |
| 21504 | exec 6>/dev/null |
| 21505 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 21506 | fi |
| 21507 | |
| 21508 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21509 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21510 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21511 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 21512 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21513 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21514 | 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] | 21515 | fi |
| 21516 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21517 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21518 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21519 | exec 5>>config.log |
| 21520 | { |
| 21521 | echo |
| 21522 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21523 | ## Running $as_me. ## |
| 21524 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21525 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21526 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21527 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21528 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21529 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21530 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21531 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21532 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21533 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21534 | |
| 21535 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21536 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21537 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21538 | |
| 21539 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21540 | for ac_config_target in $ac_config_targets |
| 21541 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21542 | case $ac_config_target in |
| 21543 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
Eric Christopher | a1cba68 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 21544 | "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 21545 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 21546 | "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] | 21547 | "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] | 21548 | "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; |
Michael J. Spencer | 1f6efa3 | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 21549 | "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21550 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21551 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Mikhail Glushenkov | 4b643c0 | 2010-08-15 07:07:17 +0000 | [diff] [blame] | 21552 | "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21553 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 21554 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 21555 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 21556 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 21557 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 21558 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21559 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21560 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 21561 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21562 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21563 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 21564 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 21565 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21566 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 21567 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21568 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21569 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 21570 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21571 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21572 | esac |
| 21573 | done |
| 21574 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21575 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21576 | # If the user did not use the arguments to specify the items to instantiate, |
| 21577 | # then the envvar interface is used. Set only those that are not. |
| 21578 | # We use the long form for the default assignment because of an extremely |
| 21579 | # bizarre bug on SunOS 4.1.3. |
| 21580 | if $ac_need_defaults; then |
| 21581 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 21582 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21583 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21584 | fi |
| 21585 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21586 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21587 | # 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] | 21588 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21589 | # Hook for its removal unless debugging. |
| 21590 | # Note that there is a small window in which the directory will not be cleaned: |
| 21591 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21592 | $debug || |
| 21593 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21594 | tmp= |
| 21595 | trap 'exit_status=$? |
| 21596 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 21597 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21598 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21599 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21600 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21601 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21602 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21603 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21604 | test -n "$tmp" && test -d "$tmp" |
| 21605 | } || |
| 21606 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21607 | tmp=./conf$$-$RANDOM |
| 21608 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21609 | } || |
| 21610 | { |
| 21611 | echo "$me: cannot create a temporary directory in ." >&2 |
| 21612 | { (exit 1); exit 1; } |
| 21613 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21614 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21615 | # |
| 21616 | # Set up the sed scripts for CONFIG_FILES section. |
| 21617 | # |
| 21618 | |
| 21619 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21620 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21621 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21622 | |
| 21623 | _ACEOF |
| 21624 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21625 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21626 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21627 | ac_delim='%!_!# ' |
| 21628 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21629 | cat >conf$$subs.sed <<_ACEOF |
| 21630 | SHELL!$SHELL$ac_delim |
| 21631 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 21632 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 21633 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 21634 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 21635 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 21636 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 21637 | exec_prefix!$exec_prefix$ac_delim |
| 21638 | prefix!$prefix$ac_delim |
| 21639 | program_transform_name!$program_transform_name$ac_delim |
| 21640 | bindir!$bindir$ac_delim |
| 21641 | sbindir!$sbindir$ac_delim |
| 21642 | libexecdir!$libexecdir$ac_delim |
| 21643 | datarootdir!$datarootdir$ac_delim |
| 21644 | datadir!$datadir$ac_delim |
| 21645 | sysconfdir!$sysconfdir$ac_delim |
| 21646 | sharedstatedir!$sharedstatedir$ac_delim |
| 21647 | localstatedir!$localstatedir$ac_delim |
| 21648 | includedir!$includedir$ac_delim |
| 21649 | oldincludedir!$oldincludedir$ac_delim |
| 21650 | docdir!$docdir$ac_delim |
| 21651 | infodir!$infodir$ac_delim |
| 21652 | htmldir!$htmldir$ac_delim |
| 21653 | dvidir!$dvidir$ac_delim |
| 21654 | pdfdir!$pdfdir$ac_delim |
| 21655 | psdir!$psdir$ac_delim |
| 21656 | libdir!$libdir$ac_delim |
| 21657 | localedir!$localedir$ac_delim |
| 21658 | mandir!$mandir$ac_delim |
| 21659 | DEFS!$DEFS$ac_delim |
| 21660 | ECHO_C!$ECHO_C$ac_delim |
| 21661 | ECHO_N!$ECHO_N$ac_delim |
| 21662 | ECHO_T!$ECHO_T$ac_delim |
| 21663 | LIBS!$LIBS$ac_delim |
| 21664 | build_alias!$build_alias$ac_delim |
| 21665 | host_alias!$host_alias$ac_delim |
| 21666 | target_alias!$target_alias$ac_delim |
| 21667 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 21668 | subdirs!$subdirs$ac_delim |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 21669 | ENABLE_POLLY!$ENABLE_POLLY$ac_delim |
| 21670 | LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21671 | build!$build$ac_delim |
| 21672 | build_cpu!$build_cpu$ac_delim |
| 21673 | build_vendor!$build_vendor$ac_delim |
| 21674 | build_os!$build_os$ac_delim |
| 21675 | host!$host$ac_delim |
| 21676 | host_cpu!$host_cpu$ac_delim |
| 21677 | host_vendor!$host_vendor$ac_delim |
| 21678 | host_os!$host_os$ac_delim |
| 21679 | target!$target$ac_delim |
| 21680 | target_cpu!$target_cpu$ac_delim |
| 21681 | target_vendor!$target_vendor$ac_delim |
| 21682 | target_os!$target_os$ac_delim |
| 21683 | OS!$OS$ac_delim |
| 21684 | HOST_OS!$HOST_OS$ac_delim |
| 21685 | TARGET_OS!$TARGET_OS$ac_delim |
| 21686 | LINKALL!$LINKALL$ac_delim |
| 21687 | NOLINKALL!$NOLINKALL$ac_delim |
| 21688 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 21689 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 21690 | ARCH!$ARCH$ac_delim |
| 21691 | ENDIAN!$ENDIAN$ac_delim |
| 21692 | CC!$CC$ac_delim |
| 21693 | CFLAGS!$CFLAGS$ac_delim |
| 21694 | LDFLAGS!$LDFLAGS$ac_delim |
| 21695 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 21696 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 21697 | EXEEXT!$EXEEXT$ac_delim |
| 21698 | OBJEXT!$OBJEXT$ac_delim |
| 21699 | CPP!$CPP$ac_delim |
| 21700 | GREP!$GREP$ac_delim |
| 21701 | EGREP!$EGREP$ac_delim |
| 21702 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 21703 | BUILD_CC!$BUILD_CC$ac_delim |
| 21704 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 21705 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 21706 | CVSBUILD!$CVSBUILD$ac_delim |
| 21707 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 21708 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 21709 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 21710 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 21711 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 21712 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 21713 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 21714 | JIT!$JIT$ac_delim |
| 21715 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 21716 | ENABLE_DOCS!$ENABLE_DOCS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21717 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 21718 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
| 21719 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21720 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 21721 | ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21722 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 21723 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 21724 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
| 21725 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
| 21726 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21727 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21728 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21729 | 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] | 21730 | break |
| 21731 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21732 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21733 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21734 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21735 | else |
| 21736 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21737 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21738 | done |
| 21739 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21740 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21741 | if test -n "$ac_eof"; then |
| 21742 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21743 | ac_eof=`expr $ac_eof + 1` |
| 21744 | fi |
| 21745 | |
| 21746 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21747 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 21748 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21749 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21750 | sed ' |
| 21751 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21752 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21753 | :n |
| 21754 | t n |
| 21755 | s/'"$ac_delim"'$/,g/; t |
| 21756 | s/$/\\/; p |
| 21757 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21758 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21759 | rm -f conf$$subs.sed |
| 21760 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21761 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21762 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21763 | |
| 21764 | |
| 21765 | ac_delim='%!_!# ' |
| 21766 | for ac_last_try in false false false false false :; do |
| 21767 | cat >conf$$subs.sed <<_ACEOF |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 21768 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 21769 | CLANGPATH!$CLANGPATH$ac_delim |
| 21770 | CLANGXXPATH!$CLANGXXPATH$ac_delim |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 21771 | ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21772 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21773 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 21774 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21775 | CXX!$CXX$ac_delim |
| 21776 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 21777 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 21778 | NM!$NM$ac_delim |
| 21779 | ifGNUmake!$ifGNUmake$ac_delim |
| 21780 | LN_S!$LN_S$ac_delim |
| 21781 | CMP!$CMP$ac_delim |
| 21782 | CP!$CP$ac_delim |
| 21783 | DATE!$DATE$ac_delim |
| 21784 | FIND!$FIND$ac_delim |
| 21785 | MKDIR!$MKDIR$ac_delim |
| 21786 | MV!$MV$ac_delim |
| 21787 | RANLIB!$RANLIB$ac_delim |
| 21788 | AR!$AR$ac_delim |
| 21789 | RM!$RM$ac_delim |
| 21790 | SED!$SED$ac_delim |
| 21791 | TAR!$TAR$ac_delim |
| 21792 | BINPWD!$BINPWD$ac_delim |
| 21793 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 21794 | DOT!$DOT$ac_delim |
| 21795 | FDP!$FDP$ac_delim |
| 21796 | NEATO!$NEATO$ac_delim |
| 21797 | TWOPI!$TWOPI$ac_delim |
| 21798 | CIRCO!$CIRCO$ac_delim |
| 21799 | GV!$GV$ac_delim |
| 21800 | DOTTY!$DOTTY$ac_delim |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 21801 | XDOT_PY!$XDOT_PY$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21802 | PERL!$PERL$ac_delim |
| 21803 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 21804 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 21805 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 21806 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 21807 | BZIP2!$BZIP2$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21808 | CAT!$CAT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21809 | DOXYGEN!$DOXYGEN$ac_delim |
| 21810 | GROFF!$GROFF$ac_delim |
| 21811 | GZIP!$GZIP$ac_delim |
| 21812 | POD2HTML!$POD2HTML$ac_delim |
| 21813 | POD2MAN!$POD2MAN$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21814 | PDFROFF!$PDFROFF$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21815 | RUNTEST!$RUNTEST$ac_delim |
| 21816 | TCLSH!$TCLSH$ac_delim |
| 21817 | ZIP!$ZIP$ac_delim |
| 21818 | OCAMLC!$OCAMLC$ac_delim |
| 21819 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 21820 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 21821 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 21822 | GAS!$GAS$ac_delim |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 21823 | HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21824 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 21825 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 21826 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 21827 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 21828 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 21829 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 21830 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
| 21831 | LLVMGCC!$LLVMGCC$ac_delim |
| 21832 | LLVMGXX!$LLVMGXX$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21833 | LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21834 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 21835 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
| 21836 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 21837 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 21838 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 21839 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 21840 | MMAP_FILE!$MMAP_FILE$ac_delim |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 21841 | LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim |
Duncan Sands | 1ac320e | 2010-11-25 17:57:43 +0000 | [diff] [blame] | 21842 | LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21843 | LLVMCC1!$LLVMCC1$ac_delim |
| 21844 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 21845 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21846 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 21847 | LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21848 | SHLIBEXT!$SHLIBEXT$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21849 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21850 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 21851 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 21852 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 21853 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 21854 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 21855 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 21856 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 21857 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 21858 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 21859 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 21860 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 21861 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
| 21862 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 21863 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 21864 | RPATH!$RPATH$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21865 | _ACEOF |
| 21866 | |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 21867 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21868 | break |
| 21869 | elif $ac_last_try; then |
| 21870 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21871 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21872 | { (exit 1); exit 1; }; } |
| 21873 | else |
| 21874 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 21875 | fi |
| 21876 | done |
| 21877 | |
| 21878 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21879 | if test -n "$ac_eof"; then |
| 21880 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21881 | ac_eof=`expr $ac_eof + 1` |
| 21882 | fi |
| 21883 | |
| 21884 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21885 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 21886 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21887 | _ACEOF |
| 21888 | sed ' |
| 21889 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21890 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21891 | :n |
| 21892 | t n |
| 21893 | s/'"$ac_delim"'$/,g/; t |
| 21894 | s/$/\\/; p |
| 21895 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21896 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21897 | rm -f conf$$subs.sed |
| 21898 | cat >>$CONFIG_STATUS <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21899 | CEOF$ac_eof |
| 21900 | _ACEOF |
| 21901 | |
| 21902 | |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 21903 | ac_delim='%!_!# ' |
| 21904 | for ac_last_try in false false false false false :; do |
| 21905 | cat >conf$$subs.sed <<_ACEOF |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 21906 | RDYNAMIC!$RDYNAMIC$ac_delim |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 21907 | LIBOBJS!$LIBOBJS$ac_delim |
| 21908 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 21909 | _ACEOF |
| 21910 | |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 21911 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 21912 | break |
| 21913 | elif $ac_last_try; then |
| 21914 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21915 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21916 | { (exit 1); exit 1; }; } |
| 21917 | else |
| 21918 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 21919 | fi |
| 21920 | done |
| 21921 | |
| 21922 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21923 | if test -n "$ac_eof"; then |
| 21924 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21925 | ac_eof=`expr $ac_eof + 1` |
| 21926 | fi |
| 21927 | |
| 21928 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21929 | cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof |
| 21930 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 21931 | _ACEOF |
| 21932 | sed ' |
| 21933 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21934 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21935 | :n |
| 21936 | t n |
| 21937 | s/'"$ac_delim"'$/,g/; t |
| 21938 | s/$/\\/; p |
| 21939 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21940 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21941 | rm -f conf$$subs.sed |
| 21942 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21943 | :end |
| 21944 | s/|#_!!_#|//g |
| 21945 | CEOF$ac_eof |
| 21946 | _ACEOF |
| 21947 | |
| 21948 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21949 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 21950 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 21951 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 21952 | # (actually we leave an empty line to preserve line numbers). |
| 21953 | if test "x$srcdir" = x.; then |
| 21954 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 21955 | s/:*\$(srcdir):*/:/ |
| 21956 | s/:*\${srcdir}:*/:/ |
| 21957 | s/:*@srcdir@:*/:/ |
| 21958 | s/^\([^=]*=[ ]*\):*/\1/ |
| 21959 | s/:*$// |
| 21960 | s/^[^=]*=[ ]*$// |
| 21961 | }' |
| 21962 | fi |
| 21963 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21964 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21965 | fi # test -n "$CONFIG_FILES" |
| 21966 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21967 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21968 | 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] | 21969 | do |
| 21970 | case $ac_tag in |
| 21971 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 21972 | esac |
| 21973 | case $ac_mode$ac_tag in |
| 21974 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21975 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 21976 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 21977 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21978 | :[FH]-) ac_tag=-:-;; |
| 21979 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 21980 | esac |
| 21981 | ac_save_IFS=$IFS |
| 21982 | IFS=: |
| 21983 | set x $ac_tag |
| 21984 | IFS=$ac_save_IFS |
| 21985 | shift |
| 21986 | ac_file=$1 |
| 21987 | shift |
| 21988 | |
| 21989 | case $ac_mode in |
| 21990 | :L) ac_source=$1;; |
| 21991 | :[FH]) |
| 21992 | ac_file_inputs= |
| 21993 | for ac_f |
| 21994 | do |
| 21995 | case $ac_f in |
| 21996 | -) ac_f="$tmp/stdin";; |
| 21997 | *) # Look for the file first in the build tree, then in the source tree |
| 21998 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 21999 | # because $ac_f cannot contain `:'. |
| 22000 | test -f "$ac_f" || |
| 22001 | case $ac_f in |
| 22002 | [\\/$]*) false;; |
| 22003 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 22004 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22005 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 22006 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 22007 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22008 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22009 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22010 | done |
| 22011 | |
| 22012 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 22013 | # use $as_me), people would be surprised to read: |
| 22014 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22015 | configure_input="Generated from "`IFS=: |
| 22016 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22017 | if test x"$ac_file" != x-; then |
| 22018 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22019 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22020 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22021 | fi |
| 22022 | |
| 22023 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22024 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22025 | esac |
| 22026 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22027 | esac |
| 22028 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22029 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22030 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22031 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 22032 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22033 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22034 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22035 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22036 | s//\1/ |
| 22037 | q |
| 22038 | } |
| 22039 | /^X\(\/\/\)[^/].*/{ |
| 22040 | s//\1/ |
| 22041 | q |
| 22042 | } |
| 22043 | /^X\(\/\/\)$/{ |
| 22044 | s//\1/ |
| 22045 | q |
| 22046 | } |
| 22047 | /^X\(\/\).*/{ |
| 22048 | s//\1/ |
| 22049 | q |
| 22050 | } |
| 22051 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22052 | { as_dir="$ac_dir" |
| 22053 | case $as_dir in #( |
| 22054 | -*) as_dir=./$as_dir;; |
| 22055 | esac |
| 22056 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 22057 | as_dirs= |
| 22058 | while :; do |
| 22059 | case $as_dir in #( |
| 22060 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22061 | *) as_qdir=$as_dir;; |
| 22062 | esac |
| 22063 | as_dirs="'$as_qdir' $as_dirs" |
| 22064 | as_dir=`$as_dirname -- "$as_dir" || |
| 22065 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22066 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22067 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22068 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22069 | echo X"$as_dir" | |
| 22070 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22071 | s//\1/ |
| 22072 | q |
| 22073 | } |
| 22074 | /^X\(\/\/\)[^/].*/{ |
| 22075 | s//\1/ |
| 22076 | q |
| 22077 | } |
| 22078 | /^X\(\/\/\)$/{ |
| 22079 | s//\1/ |
| 22080 | q |
| 22081 | } |
| 22082 | /^X\(\/\).*/{ |
| 22083 | s//\1/ |
| 22084 | q |
| 22085 | } |
| 22086 | s/.*/./; q'` |
| 22087 | test -d "$as_dir" && break |
| 22088 | done |
| 22089 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22090 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22091 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 22092 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22093 | ac_builddir=. |
| 22094 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22095 | case "$ac_dir" in |
| 22096 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22097 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22098 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22099 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22100 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22101 | case $ac_top_builddir_sub in |
| 22102 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22103 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22104 | esac ;; |
| 22105 | esac |
| 22106 | ac_abs_top_builddir=$ac_pwd |
| 22107 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22108 | # for backward compatibility: |
| 22109 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22110 | |
| 22111 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22112 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22113 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22114 | ac_top_srcdir=$ac_top_builddir_sub |
| 22115 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22116 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22117 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22118 | ac_top_srcdir=$srcdir |
| 22119 | ac_abs_top_srcdir=$srcdir ;; |
| 22120 | *) # Relative name. |
| 22121 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22122 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22123 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22124 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22125 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22126 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22127 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22128 | case $ac_mode in |
| 22129 | :F) |
| 22130 | # |
| 22131 | # CONFIG_FILE |
| 22132 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22133 | |
| 22134 | case $INSTALL in |
| 22135 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22136 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22137 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22138 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22139 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22140 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22141 | # If the template does not know about datarootdir, expand it. |
| 22142 | # FIXME: This hack should be removed a few years after 2.60. |
| 22143 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22144 | |
| 22145 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22146 | p |
| 22147 | q |
| 22148 | } |
| 22149 | /@datadir@/p |
| 22150 | /@docdir@/p |
| 22151 | /@infodir@/p |
| 22152 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22153 | /@mandir@/p |
| 22154 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22155 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 22156 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22157 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 22158 | 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] | 22159 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22160 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22161 | ac_datarootdir_hack=' |
| 22162 | s&@datadir@&$datadir&g |
| 22163 | s&@docdir@&$docdir&g |
| 22164 | s&@infodir@&$infodir&g |
| 22165 | s&@localedir@&$localedir&g |
| 22166 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22167 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22168 | esac |
| 22169 | _ACEOF |
| 22170 | |
| 22171 | # Neutralize VPATH when `$srcdir' = `.'. |
| 22172 | # Shell code in configure.ac might set extrasub. |
| 22173 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22174 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22175 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22176 | $extrasub |
| 22177 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22178 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22179 | :t |
| 22180 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22181 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22182 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 22183 | s&@srcdir@&$ac_srcdir&;t t |
| 22184 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 22185 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 22186 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 22187 | s&@builddir@&$ac_builddir&;t t |
| 22188 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 22189 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 22190 | s&@INSTALL@&$ac_INSTALL&;t t |
| 22191 | $ac_datarootdir_hack |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22192 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22193 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22194 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 22195 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 22196 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22197 | { 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] | 22198 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22199 | 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] | 22200 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22201 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22202 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22203 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22204 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 22205 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 22206 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22207 | ;; |
| 22208 | :H) |
| 22209 | # |
| 22210 | # CONFIG_HEADER |
| 22211 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22212 | _ACEOF |
| 22213 | |
| 22214 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 22215 | # substitutes the proper values into config.h.in to produce config.h. |
| 22216 | rm -f conftest.defines conftest.tail |
| 22217 | # First, append a space to every undef/define line, to ease matching. |
| 22218 | echo 's/$/ /' >conftest.defines |
| 22219 | # Then, protect against being on the right side of a sed subst, or in |
| 22220 | # an unquoted here document, in config.status. If some macros were |
| 22221 | # called several times there might be several #defines for the same |
| 22222 | # symbol, which is useless. But do not sort them, since the last |
| 22223 | # AC_DEFINE must be honored. |
| 22224 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 22225 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 22226 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 22227 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 22228 | # just an empty string. |
| 22229 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 22230 | ac_dB='\\)[ (].*,\\1define\\2' |
| 22231 | ac_dC=' ' |
| 22232 | ac_dD=' ,' |
| 22233 | |
| 22234 | uniq confdefs.h | |
| 22235 | sed -n ' |
| 22236 | t rset |
| 22237 | :rset |
| 22238 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 22239 | t ok |
| 22240 | d |
| 22241 | :ok |
| 22242 | s/[\\&,]/\\&/g |
| 22243 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 22244 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 22245 | ' >>conftest.defines |
| 22246 | |
| 22247 | # Remove the space that was appended to ease matching. |
| 22248 | # Then replace #undef with comments. This is necessary, for |
| 22249 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 22250 | # on some systems where configure will not decide to define it. |
| 22251 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 22252 | echo 's/ $// |
| 22253 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 22254 | |
| 22255 | # Break up conftest.defines: |
| 22256 | ac_max_sed_lines=50 |
| 22257 | |
| 22258 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 22259 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 22260 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 22261 | # et cetera. |
| 22262 | ac_in='$ac_file_inputs' |
| 22263 | ac_out='"$tmp/out1"' |
| 22264 | ac_nxt='"$tmp/out2"' |
| 22265 | |
| 22266 | while : |
| 22267 | do |
| 22268 | # Write a here document: |
| 22269 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22270 | # First, check the format of the line: |
| 22271 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 22272 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 22273 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 22274 | b |
| 22275 | :def |
| 22276 | _ACEOF |
| 22277 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 22278 | echo 'CEOF |
| 22279 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 22280 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 22281 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 22282 | grep . conftest.tail >/dev/null || break |
| 22283 | rm -f conftest.defines |
| 22284 | mv conftest.tail conftest.defines |
| 22285 | done |
| 22286 | rm -f conftest.defines conftest.tail |
| 22287 | |
| 22288 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 22289 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22290 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22291 | echo "/* $configure_input */" >"$tmp/config.h" |
| 22292 | cat "$ac_result" >>"$tmp/config.h" |
| 22293 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 22294 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 22295 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22296 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22297 | rm -f $ac_file |
| 22298 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22299 | fi |
| 22300 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22301 | echo "/* $configure_input */" |
| 22302 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22303 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22304 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22305 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22306 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22307 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 22308 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22309 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22310 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22311 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22312 | |
| 22313 | case $ac_file$ac_mode in |
| 22314 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22315 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22316 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22317 | ${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] | 22318 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22319 | ${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] | 22320 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22321 | ${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] | 22322 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22323 | ${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] | 22324 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22325 | ${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] | 22326 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22327 | ${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] | 22328 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22329 | ${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] | 22330 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22331 | ${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] | 22332 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22333 | ${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] | 22334 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22335 | ${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] | 22336 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22337 | ${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] | 22338 | "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] | 22339 | ${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] | 22340 | |
| 22341 | esac |
| 22342 | done # for ac_tag |
| 22343 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22344 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22345 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22346 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22347 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22348 | ac_clean_files=$ac_clean_files_save |
| 22349 | |
| 22350 | |
| 22351 | # configure is writing to config.log, and then calls config.status. |
| 22352 | # config.status does its own redirection, appending to config.log. |
| 22353 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 22354 | # by configure, so config.status won't be able to write to it; its |
| 22355 | # output is simply discarded. So we exec the FD to /dev/null, |
| 22356 | # effectively closing config.log, so it can be properly (re)opened and |
| 22357 | # appended to by config.status. When coming back to configure, we |
| 22358 | # need to make the FD available again. |
| 22359 | if test "$no_create" != yes; then |
| 22360 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22361 | ac_config_status_args= |
| 22362 | test "$silent" = yes && |
| 22363 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22364 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22365 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22366 | exec 5>>config.log |
| 22367 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 22368 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22369 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22370 | fi |
| 22371 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22372 | # |
| 22373 | # CONFIG_SUBDIRS section. |
| 22374 | # |
| 22375 | if test "$no_recursion" != yes; then |
| 22376 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22377 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22378 | ac_sub_configure_args= |
| 22379 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22380 | eval "set x $ac_configure_args" |
| 22381 | shift |
| 22382 | for ac_arg |
| 22383 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22384 | if test -n "$ac_prev"; then |
| 22385 | ac_prev= |
| 22386 | continue |
| 22387 | fi |
| 22388 | case $ac_arg in |
| 22389 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 22390 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 22391 | ac_prev=cache_file ;; |
| 22392 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 22393 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 22394 | | --c=*) |
| 22395 | ;; |
| 22396 | --config-cache | -C) |
| 22397 | ;; |
| 22398 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 22399 | ac_prev=srcdir ;; |
| 22400 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 22401 | ;; |
| 22402 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 22403 | ac_prev=prefix ;; |
| 22404 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 22405 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22406 | *) |
| 22407 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22408 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22409 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22410 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22411 | esac |
| 22412 | done |
| 22413 | |
| 22414 | # Always prepend --prefix to ensure using the same prefix |
| 22415 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22416 | ac_arg="--prefix=$prefix" |
| 22417 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22418 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22419 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22420 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22421 | |
| 22422 | ac_popdir=`pwd` |
| 22423 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 22424 | |
| 22425 | # Do not complain, so a configure script can configure whichever |
| 22426 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22427 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22428 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22429 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22430 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 22431 | echo "$ac_msg" >&6 |
| 22432 | { as_dir="$ac_dir" |
| 22433 | case $as_dir in #( |
| 22434 | -*) as_dir=./$as_dir;; |
| 22435 | esac |
| 22436 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 22437 | as_dirs= |
| 22438 | while :; do |
| 22439 | case $as_dir in #( |
| 22440 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22441 | *) as_qdir=$as_dir;; |
| 22442 | esac |
| 22443 | as_dirs="'$as_qdir' $as_dirs" |
| 22444 | as_dir=`$as_dirname -- "$as_dir" || |
| 22445 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22446 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22447 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22448 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22449 | echo X"$as_dir" | |
| 22450 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22451 | s//\1/ |
| 22452 | q |
| 22453 | } |
| 22454 | /^X\(\/\/\)[^/].*/{ |
| 22455 | s//\1/ |
| 22456 | q |
| 22457 | } |
| 22458 | /^X\(\/\/\)$/{ |
| 22459 | s//\1/ |
| 22460 | q |
| 22461 | } |
| 22462 | /^X\(\/\).*/{ |
| 22463 | s//\1/ |
| 22464 | q |
| 22465 | } |
| 22466 | s/.*/./; q'` |
| 22467 | test -d "$as_dir" && break |
| 22468 | done |
| 22469 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22470 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22471 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 22472 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22473 | ac_builddir=. |
| 22474 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22475 | case "$ac_dir" in |
| 22476 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22477 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22478 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22479 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22480 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22481 | case $ac_top_builddir_sub in |
| 22482 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22483 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22484 | esac ;; |
| 22485 | esac |
| 22486 | ac_abs_top_builddir=$ac_pwd |
| 22487 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22488 | # for backward compatibility: |
| 22489 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22490 | |
| 22491 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22492 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22493 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22494 | ac_top_srcdir=$ac_top_builddir_sub |
| 22495 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22496 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22497 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22498 | ac_top_srcdir=$srcdir |
| 22499 | ac_abs_top_srcdir=$srcdir ;; |
| 22500 | *) # Relative name. |
| 22501 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22502 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22503 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22504 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22505 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22506 | |
| 22507 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22508 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22509 | |
| 22510 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22511 | if test -f "$ac_srcdir/configure.gnu"; then |
| 22512 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 22513 | elif test -f "$ac_srcdir/configure"; then |
| 22514 | ac_sub_configure=$ac_srcdir/configure |
| 22515 | elif test -f "$ac_srcdir/configure.in"; then |
| 22516 | # This should be Cygnus configure. |
| 22517 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22518 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22519 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 22520 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22521 | ac_sub_configure= |
| 22522 | fi |
| 22523 | |
| 22524 | # The recursion is here. |
| 22525 | if test -n "$ac_sub_configure"; then |
| 22526 | # Make the cache file name correct relative to the subdirectory. |
| 22527 | case $cache_file in |
| 22528 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22529 | *) # Relative name. |
| 22530 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22531 | esac |
| 22532 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22533 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 22534 | 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] | 22535 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22536 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 22537 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22538 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 22539 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 22540 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22541 | fi |
| 22542 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22543 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22544 | done |
| 22545 | fi |
| 22546 | |