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. |
Bill Wendling | ebc2fc1 | 2011-03-08 03:00:02 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 3.0svn. |
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 | # |
Benjamin Kramer | b73cd94 | 2011-06-12 15:26:54 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2011 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-' |
Bill Wendling | ebc2fc1 | 2011-03-08 03:00:02 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='3.0svn' |
| 565 | PACKAGE_STRING='llvm 3.0svn' |
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 |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 694 | ENABLE_PTHREADS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 695 | ENABLE_PIC |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 696 | ENABLE_SHARED |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 697 | ENABLE_EMBED_STDCXX |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 698 | ENABLE_TIMESTAMPS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 699 | TARGETS_TO_BUILD |
| 700 | LLVM_ENUM_TARGETS |
| 701 | LLVM_ENUM_ASM_PRINTERS |
| 702 | LLVM_ENUM_ASM_PARSERS |
| 703 | LLVM_ENUM_DISASSEMBLERS |
| 704 | ENABLE_CBE_PRINTF_A |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 705 | CLANGPATH |
| 706 | CLANGXXPATH |
| 707 | ENABLE_BUILT_CLANG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 708 | OPTIMIZE_OPTION |
| 709 | EXTRA_OPTIONS |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 710 | EXTRA_LD_OPTIONS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 711 | BINUTILS_INCDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 712 | CXX |
| 713 | CXXFLAGS |
| 714 | ac_ct_CXX |
| 715 | NM |
| 716 | ifGNUmake |
| 717 | LN_S |
| 718 | CMP |
| 719 | CP |
| 720 | DATE |
| 721 | FIND |
| 722 | MKDIR |
| 723 | MV |
| 724 | RANLIB |
| 725 | AR |
| 726 | RM |
| 727 | SED |
| 728 | TAR |
| 729 | BINPWD |
| 730 | GRAPHVIZ |
| 731 | DOT |
| 732 | FDP |
| 733 | NEATO |
| 734 | TWOPI |
| 735 | CIRCO |
| 736 | GV |
| 737 | DOTTY |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 738 | XDOT_PY |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 739 | PERL |
| 740 | HAVE_PERL |
| 741 | INSTALL_PROGRAM |
| 742 | INSTALL_SCRIPT |
| 743 | INSTALL_DATA |
| 744 | BZIP2 |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 745 | CAT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 746 | DOXYGEN |
| 747 | GROFF |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 748 | GZIPBIN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 749 | POD2HTML |
| 750 | POD2MAN |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 751 | PDFROFF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 752 | RUNTEST |
| 753 | TCLSH |
| 754 | ZIP |
| 755 | OCAMLC |
| 756 | OCAMLOPT |
| 757 | OCAMLDEP |
| 758 | OCAMLDOC |
| 759 | GAS |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 760 | HAVE_LINK_VERSION_SCRIPT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 761 | INSTALL_LTDL_TRUE |
| 762 | INSTALL_LTDL_FALSE |
| 763 | CONVENIENCE_LTDL_TRUE |
| 764 | CONVENIENCE_LTDL_FALSE |
| 765 | LIBADD_DL |
| 766 | LLVMGCCCOMMAND |
| 767 | LLVMGXXCOMMAND |
| 768 | LLVMGCC |
| 769 | LLVMGXX |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 770 | LLVMCC_OPTION |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 771 | NO_VARIADIC_MACROS |
| 772 | NO_MISSING_FIELD_INITIALIZERS |
| 773 | USE_UDIS86 |
| 774 | USE_OPROFILE |
| 775 | HAVE_PTHREAD |
| 776 | HUGE_VAL_SANITY |
| 777 | MMAP_FILE |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 778 | LLVMCC_EMITIR_FLAG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 779 | LLVMCC1 |
| 780 | LLVMCC1PLUS |
| 781 | LLVMGCCDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 782 | LLVMGCC_LANGS |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 783 | LLVMGCC_DRAGONEGG |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 784 | LLVMCC_DISABLEOPT_FLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 785 | SHLIBEXT |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 786 | SHLIBPATH_VAR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 787 | LLVM_PREFIX |
| 788 | LLVM_BINDIR |
| 789 | LLVM_LIBDIR |
| 790 | LLVM_DATADIR |
| 791 | LLVM_DOCSDIR |
| 792 | LLVM_ETCDIR |
| 793 | LLVM_INCLUDEDIR |
| 794 | LLVM_INFODIR |
| 795 | LLVM_MANDIR |
| 796 | LLVM_CONFIGTIME |
| 797 | BINDINGS_TO_BUILD |
| 798 | ALL_BINDINGS |
| 799 | OCAML_LIBDIR |
| 800 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 801 | RPATH |
| 802 | RDYNAMIC |
| 803 | LIBOBJS |
| 804 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 805 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 806 | ac_precious_vars='build_alias |
| 807 | host_alias |
| 808 | target_alias |
| 809 | CC |
| 810 | CFLAGS |
| 811 | LDFLAGS |
| 812 | CPPFLAGS |
| 813 | CPP |
| 814 | CXX |
| 815 | CXXFLAGS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 816 | CCC' |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 817 | ac_subdirs_all='projects/llvm-gcc |
| 818 | projects/test-suite |
| 819 | projects/llvm-test |
| 820 | projects/poolalloc |
| 821 | projects/llvm-poolalloc |
| 822 | projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 823 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 824 | projects/llvm-stacker |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 825 | projects/llvm-reopt |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 826 | projects/llvm-java |
| 827 | projects/llvm-tv |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 828 | projects/safecode |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 829 | projects/llvm-kernel |
| 830 | tools/polly' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 831 | |
| 832 | # Initialize some variables set by options. |
| 833 | ac_init_help= |
| 834 | ac_init_version=false |
| 835 | # The variables have the same names as the options, with |
| 836 | # dashes changed to underlines. |
| 837 | cache_file=/dev/null |
| 838 | exec_prefix=NONE |
| 839 | no_create= |
| 840 | no_recursion= |
| 841 | prefix=NONE |
| 842 | program_prefix=NONE |
| 843 | program_suffix=NONE |
| 844 | program_transform_name=s,x,x, |
| 845 | silent= |
| 846 | site= |
| 847 | srcdir= |
| 848 | verbose= |
| 849 | x_includes=NONE |
| 850 | x_libraries=NONE |
| 851 | |
| 852 | # Installation directory options. |
| 853 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 854 | # and all the variables that are supposed to be based on exec_prefix |
| 855 | # by default will actually change. |
| 856 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 857 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 858 | bindir='${exec_prefix}/bin' |
| 859 | sbindir='${exec_prefix}/sbin' |
| 860 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 861 | datarootdir='${prefix}/share' |
| 862 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 863 | sysconfdir='${prefix}/etc' |
| 864 | sharedstatedir='${prefix}/com' |
| 865 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 866 | includedir='${prefix}/include' |
| 867 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 868 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 869 | infodir='${datarootdir}/info' |
| 870 | htmldir='${docdir}' |
| 871 | dvidir='${docdir}' |
| 872 | pdfdir='${docdir}' |
| 873 | psdir='${docdir}' |
| 874 | libdir='${exec_prefix}/lib' |
| 875 | localedir='${datarootdir}/locale' |
| 876 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 877 | |
| 878 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 879 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 880 | for ac_option |
| 881 | do |
| 882 | # If the previous option needs an argument, assign it. |
| 883 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 884 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 885 | ac_prev= |
| 886 | continue |
| 887 | fi |
| 888 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 889 | case $ac_option in |
| 890 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 891 | *) ac_optarg=yes ;; |
| 892 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 893 | |
| 894 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 895 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 896 | case $ac_dashdash$ac_option in |
| 897 | --) |
| 898 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 899 | |
| 900 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 901 | ac_prev=bindir ;; |
| 902 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 903 | bindir=$ac_optarg ;; |
| 904 | |
| 905 | -build | --build | --buil | --bui | --bu) |
| 906 | ac_prev=build_alias ;; |
| 907 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 908 | build_alias=$ac_optarg ;; |
| 909 | |
| 910 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 911 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 912 | ac_prev=cache_file ;; |
| 913 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 914 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 915 | cache_file=$ac_optarg ;; |
| 916 | |
| 917 | --config-cache | -C) |
| 918 | cache_file=config.cache ;; |
| 919 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 920 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 921 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 922 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 923 | datadir=$ac_optarg ;; |
| 924 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 925 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 926 | | --dataroo | --dataro | --datar) |
| 927 | ac_prev=datarootdir ;; |
| 928 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 929 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 930 | datarootdir=$ac_optarg ;; |
| 931 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 932 | -disable-* | --disable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 933 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 934 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 935 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 936 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 937 | { (exit 1); exit 1; }; } |
| 938 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 939 | eval enable_$ac_feature=no ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 940 | |
| 941 | -docdir | --docdir | --docdi | --doc | --do) |
| 942 | ac_prev=docdir ;; |
| 943 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 944 | docdir=$ac_optarg ;; |
| 945 | |
| 946 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 947 | ac_prev=dvidir ;; |
| 948 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 949 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 950 | |
| 951 | -enable-* | --enable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 952 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 953 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 954 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 955 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 956 | { (exit 1); exit 1; }; } |
| 957 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 958 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 959 | |
| 960 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 961 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 962 | | --exec | --exe | --ex) |
| 963 | ac_prev=exec_prefix ;; |
| 964 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 965 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 966 | | --exec=* | --exe=* | --ex=*) |
| 967 | exec_prefix=$ac_optarg ;; |
| 968 | |
| 969 | -gas | --gas | --ga | --g) |
| 970 | # Obsolete; use --with-gas. |
| 971 | with_gas=yes ;; |
| 972 | |
| 973 | -help | --help | --hel | --he | -h) |
| 974 | ac_init_help=long ;; |
| 975 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 976 | ac_init_help=recursive ;; |
| 977 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 978 | ac_init_help=short ;; |
| 979 | |
| 980 | -host | --host | --hos | --ho) |
| 981 | ac_prev=host_alias ;; |
| 982 | -host=* | --host=* | --hos=* | --ho=*) |
| 983 | host_alias=$ac_optarg ;; |
| 984 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 985 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 986 | ac_prev=htmldir ;; |
| 987 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 988 | | --ht=*) |
| 989 | htmldir=$ac_optarg ;; |
| 990 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 991 | -includedir | --includedir | --includedi | --included | --include \ |
| 992 | | --includ | --inclu | --incl | --inc) |
| 993 | ac_prev=includedir ;; |
| 994 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 995 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 996 | includedir=$ac_optarg ;; |
| 997 | |
| 998 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 999 | ac_prev=infodir ;; |
| 1000 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1001 | infodir=$ac_optarg ;; |
| 1002 | |
| 1003 | -libdir | --libdir | --libdi | --libd) |
| 1004 | ac_prev=libdir ;; |
| 1005 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1006 | libdir=$ac_optarg ;; |
| 1007 | |
| 1008 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1009 | | --libexe | --libex | --libe) |
| 1010 | ac_prev=libexecdir ;; |
| 1011 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1012 | | --libexe=* | --libex=* | --libe=*) |
| 1013 | libexecdir=$ac_optarg ;; |
| 1014 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1015 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1016 | ac_prev=localedir ;; |
| 1017 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1018 | localedir=$ac_optarg ;; |
| 1019 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 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 | ac_prev=localstatedir ;; |
| 1023 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1024 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1025 | localstatedir=$ac_optarg ;; |
| 1026 | |
| 1027 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1028 | ac_prev=mandir ;; |
| 1029 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1030 | mandir=$ac_optarg ;; |
| 1031 | |
| 1032 | -nfp | --nfp | --nf) |
| 1033 | # Obsolete; use --without-fp. |
| 1034 | with_fp=no ;; |
| 1035 | |
| 1036 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1037 | | --no-cr | --no-c | -n) |
| 1038 | no_create=yes ;; |
| 1039 | |
| 1040 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1041 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1042 | no_recursion=yes ;; |
| 1043 | |
| 1044 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1045 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1046 | | --oldin | --oldi | --old | --ol | --o) |
| 1047 | ac_prev=oldincludedir ;; |
| 1048 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1049 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1050 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1051 | oldincludedir=$ac_optarg ;; |
| 1052 | |
| 1053 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1054 | ac_prev=prefix ;; |
| 1055 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1056 | prefix=$ac_optarg ;; |
| 1057 | |
| 1058 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1059 | | --program-pre | --program-pr | --program-p) |
| 1060 | ac_prev=program_prefix ;; |
| 1061 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1062 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1063 | program_prefix=$ac_optarg ;; |
| 1064 | |
| 1065 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1066 | | --program-suf | --program-su | --program-s) |
| 1067 | ac_prev=program_suffix ;; |
| 1068 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1069 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1070 | program_suffix=$ac_optarg ;; |
| 1071 | |
| 1072 | -program-transform-name | --program-transform-name \ |
| 1073 | | --program-transform-nam | --program-transform-na \ |
| 1074 | | --program-transform-n | --program-transform- \ |
| 1075 | | --program-transform | --program-transfor \ |
| 1076 | | --program-transfo | --program-transf \ |
| 1077 | | --program-trans | --program-tran \ |
| 1078 | | --progr-tra | --program-tr | --program-t) |
| 1079 | ac_prev=program_transform_name ;; |
| 1080 | -program-transform-name=* | --program-transform-name=* \ |
| 1081 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1082 | | --program-transform-n=* | --program-transform-=* \ |
| 1083 | | --program-transform=* | --program-transfor=* \ |
| 1084 | | --program-transfo=* | --program-transf=* \ |
| 1085 | | --program-trans=* | --program-tran=* \ |
| 1086 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1087 | program_transform_name=$ac_optarg ;; |
| 1088 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1089 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1090 | ac_prev=pdfdir ;; |
| 1091 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1092 | pdfdir=$ac_optarg ;; |
| 1093 | |
| 1094 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1095 | ac_prev=psdir ;; |
| 1096 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1097 | psdir=$ac_optarg ;; |
| 1098 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1099 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1100 | | -silent | --silent | --silen | --sile | --sil) |
| 1101 | silent=yes ;; |
| 1102 | |
| 1103 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1104 | ac_prev=sbindir ;; |
| 1105 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1106 | | --sbi=* | --sb=*) |
| 1107 | sbindir=$ac_optarg ;; |
| 1108 | |
| 1109 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1110 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1111 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1112 | | --sha | --sh) |
| 1113 | ac_prev=sharedstatedir ;; |
| 1114 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1115 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1116 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1117 | | --sha=* | --sh=*) |
| 1118 | sharedstatedir=$ac_optarg ;; |
| 1119 | |
| 1120 | -site | --site | --sit) |
| 1121 | ac_prev=site ;; |
| 1122 | -site=* | --site=* | --sit=*) |
| 1123 | site=$ac_optarg ;; |
| 1124 | |
| 1125 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1126 | ac_prev=srcdir ;; |
| 1127 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1128 | srcdir=$ac_optarg ;; |
| 1129 | |
| 1130 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1131 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1132 | ac_prev=sysconfdir ;; |
| 1133 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1134 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1135 | sysconfdir=$ac_optarg ;; |
| 1136 | |
| 1137 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1138 | ac_prev=target_alias ;; |
| 1139 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1140 | target_alias=$ac_optarg ;; |
| 1141 | |
| 1142 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1143 | verbose=yes ;; |
| 1144 | |
| 1145 | -version | --version | --versio | --versi | --vers | -V) |
| 1146 | ac_init_version=: ;; |
| 1147 | |
| 1148 | -with-* | --with-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1149 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1150 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1151 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1152 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1153 | { (exit 1); exit 1; }; } |
| 1154 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1155 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1156 | |
| 1157 | -without-* | --without-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1158 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1159 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1160 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1161 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1162 | { (exit 1); exit 1; }; } |
| 1163 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1164 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1165 | |
| 1166 | --x) |
| 1167 | # Obsolete; use --with-x. |
| 1168 | with_x=yes ;; |
| 1169 | |
| 1170 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1171 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1172 | ac_prev=x_includes ;; |
| 1173 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1174 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1175 | x_includes=$ac_optarg ;; |
| 1176 | |
| 1177 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1178 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1179 | ac_prev=x_libraries ;; |
| 1180 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1181 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1182 | x_libraries=$ac_optarg ;; |
| 1183 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1184 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1185 | Try \`$0 --help' for more information." >&2 |
| 1186 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1187 | ;; |
| 1188 | |
| 1189 | *=*) |
| 1190 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1191 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1192 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1193 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1194 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1195 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1196 | export $ac_envvar ;; |
| 1197 | |
| 1198 | *) |
| 1199 | # FIXME: should be removed in autoconf 3.0. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1200 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1201 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1202 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1203 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1204 | ;; |
| 1205 | |
| 1206 | esac |
| 1207 | done |
| 1208 | |
| 1209 | if test -n "$ac_prev"; then |
| 1210 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1211 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1212 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1213 | fi |
| 1214 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1215 | # Be sure to have absolute directory names. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1216 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1217 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1218 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1219 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1220 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1221 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1222 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1223 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1224 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1225 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1226 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1227 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1228 | done |
| 1229 | |
| 1230 | # There might be people who depend on the old broken behavior: `$host' |
| 1231 | # used to hold the argument of --host etc. |
| 1232 | # FIXME: To remove some day. |
| 1233 | build=$build_alias |
| 1234 | host=$host_alias |
| 1235 | target=$target_alias |
| 1236 | |
| 1237 | # FIXME: To remove some day. |
| 1238 | if test "x$host_alias" != x; then |
| 1239 | if test "x$build_alias" = x; then |
| 1240 | cross_compiling=maybe |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1241 | 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] | 1242 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1243 | elif test "x$build_alias" != "x$host_alias"; then |
| 1244 | cross_compiling=yes |
| 1245 | fi |
| 1246 | fi |
| 1247 | |
| 1248 | ac_tool_prefix= |
| 1249 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1250 | |
| 1251 | test "$silent" = yes && exec 6>/dev/null |
| 1252 | |
| 1253 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1254 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1255 | ac_ls_di=`ls -di .` && |
| 1256 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1257 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1258 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1259 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1260 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1261 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1262 | |
| 1263 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1264 | # Find the source files, if location was not specified. |
| 1265 | if test -z "$srcdir"; then |
| 1266 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1267 | # Try the directory containing this script, then the parent directory. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1268 | ac_confdir=`$as_dirname -- "$0" || |
| 1269 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1270 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1271 | X"$0" : 'X\(//\)$' \| \ |
| 1272 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1273 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1274 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1275 | s//\1/ |
| 1276 | q |
| 1277 | } |
| 1278 | /^X\(\/\/\)[^/].*/{ |
| 1279 | s//\1/ |
| 1280 | q |
| 1281 | } |
| 1282 | /^X\(\/\/\)$/{ |
| 1283 | s//\1/ |
| 1284 | q |
| 1285 | } |
| 1286 | /^X\(\/\).*/{ |
| 1287 | s//\1/ |
| 1288 | q |
| 1289 | } |
| 1290 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1291 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1292 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1293 | srcdir=.. |
| 1294 | fi |
| 1295 | else |
| 1296 | ac_srcdir_defaulted=no |
| 1297 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1298 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1299 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1300 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1301 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1302 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1303 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1304 | ac_abs_confdir=`( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1305 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1306 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1307 | pwd)` |
| 1308 | # When building in place, set srcdir=. |
| 1309 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1310 | srcdir=. |
| 1311 | fi |
| 1312 | # Remove unnecessary trailing slashes from srcdir. |
| 1313 | # Double slashes in file names in object file debugging info |
| 1314 | # mess up M-x gdb in Emacs. |
| 1315 | case $srcdir in |
| 1316 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1317 | esac |
| 1318 | for ac_var in $ac_precious_vars; do |
| 1319 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1320 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1321 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1322 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1323 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1324 | |
| 1325 | # |
| 1326 | # Report the --help message. |
| 1327 | # |
| 1328 | if test "$ac_init_help" = "long"; then |
| 1329 | # Omit some internal or obsolete options to make the list less imposing. |
| 1330 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1331 | cat <<_ACEOF |
Bill Wendling | ebc2fc1 | 2011-03-08 03:00:02 +0000 | [diff] [blame] | 1332 | \`configure' configures llvm 3.0svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1333 | |
| 1334 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1335 | |
| 1336 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1337 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1338 | |
| 1339 | Defaults for the options are specified in brackets. |
| 1340 | |
| 1341 | Configuration: |
| 1342 | -h, --help display this help and exit |
| 1343 | --help=short display options specific to this package |
| 1344 | --help=recursive display the short help of all the included packages |
| 1345 | -V, --version display version information and exit |
| 1346 | -q, --quiet, --silent do not print \`checking...' messages |
| 1347 | --cache-file=FILE cache test results in FILE [disabled] |
| 1348 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1349 | -n, --no-create do not create output files |
| 1350 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1351 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1352 | Installation directories: |
| 1353 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1354 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1355 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1356 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1357 | |
| 1358 | By default, \`make install' will install all the files in |
| 1359 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1360 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1361 | for instance \`--prefix=\$HOME'. |
| 1362 | |
| 1363 | For better control, use the options below. |
| 1364 | |
| 1365 | Fine tuning of the installation directories: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1366 | --bindir=DIR user executables [EPREFIX/bin] |
| 1367 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1368 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1369 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1370 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1371 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1372 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1373 | --includedir=DIR C header files [PREFIX/include] |
| 1374 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1375 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1376 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1377 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1378 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1379 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1380 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1381 | --htmldir=DIR html documentation [DOCDIR] |
| 1382 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1383 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1384 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1385 | _ACEOF |
| 1386 | |
| 1387 | cat <<\_ACEOF |
| 1388 | |
| 1389 | System types: |
| 1390 | --build=BUILD configure for building on BUILD [guessed] |
| 1391 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1392 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1393 | _ACEOF |
| 1394 | fi |
| 1395 | |
| 1396 | if test -n "$ac_init_help"; then |
| 1397 | case $ac_init_help in |
Bill Wendling | ebc2fc1 | 2011-03-08 03:00:02 +0000 | [diff] [blame] | 1398 | short | recursive ) echo "Configuration of llvm 3.0svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1399 | esac |
| 1400 | cat <<\_ACEOF |
| 1401 | |
| 1402 | Optional Features: |
| 1403 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1404 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 1405 | --enable-polly Use polly if available (default is YES) |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1406 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1407 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1408 | --enable-assertions Compile with assertion checks enabled (default is |
| 1409 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1410 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1411 | Compile with expensive debug checks enabled (default |
| 1412 | is NO) |
| 1413 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1414 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1415 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1416 | optimization is on and YES if it's off) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1417 | --enable-jit Enable Just In Time Compiling (default is YES) |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 1418 | --enable-docs Build documents (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1419 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1420 | --enable-threads Use threads if available (default is YES) |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 1421 | --enable-pthreads Use pthreads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1422 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1423 | is YES) |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 1424 | --enable-shared Build a shared library and link tools against it |
| 1425 | (default is NO) |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 1426 | --enable-embed-stdcxx Build a shared library with embedded libstdc++ for |
| 1427 | Win32 DLL (default is YES) |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 1428 | --enable-timestamps Enable embedding timestamp information in build |
| 1429 | (default is YES) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1430 | --enable-targets Build specific host targets: all or |
| 1431 | target1,target2,... Valid targets are: host, x86, |
| 1432 | x86_64, sparc, powerpc, alpha, arm, mips, spu, |
Eric Christopher | 14074e8 | 2010-10-12 02:42:05 +0000 | [diff] [blame] | 1433 | xcore, msp430, systemz, blackfin, ptx, cbe, and cpp |
| 1434 | (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1435 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1436 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1437 | --enable-bindings Build specific language bindings: |
| 1438 | all,auto,none,{binding-name} (default=auto) |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1439 | --enable-libffi Check for the presence of libffi (default is NO) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1440 | --enable-ltdl-install install libltdl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1441 | |
| 1442 | Optional Packages: |
| 1443 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1444 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1445 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1446 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1447 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1448 | searches PATH) |
| 1449 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1450 | searches PATH) |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 1451 | --with-clang Specify location of clang compiler (default is |
| 1452 | --with-built-clang) |
| 1453 | --with-built-clang Use the compiled Clang as the LLVM compiler |
| 1454 | (default=check) |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1455 | --with-optimize-option Select the compiler options to use for optimized |
| 1456 | builds |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1457 | --with-extra-options Specify additional options to compile LLVM with |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 1458 | --with-extra-ld-options Specify additional options to link LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1459 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1460 | is stdlib) |
Chandler Carruth | 6b24116 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 1461 | --with-clang-resource-dir |
| 1462 | Relative directory from the Clang binary for |
| 1463 | resource files |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1464 | --with-c-include-dirs Colon separated list of directories clang will |
| 1465 | search for headers |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 1466 | --with-cxx-include-root Directory with the libstdc++ headers. |
| 1467 | --with-cxx-include-arch Architecture of the libstdc++ headers. |
| 1468 | --with-cxx-include-32bit-dir |
| 1469 | 32 bit multilib dir. |
| 1470 | --with-cxx-include-64bit-dir |
| 1471 | 64 bit multilib directory. |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1472 | --with-binutils-include Specify path to binutils/include/ containing |
| 1473 | plugin-api.h file for gold plugin. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1474 | --with-tclinclude directory where tcl headers are |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 1475 | --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc, |
| 1476 | clang, or none; default=check) |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1477 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1478 | --with-oprofile=<prefix> |
| 1479 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1480 | |
| 1481 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1482 | CC C compiler command |
| 1483 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1484 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1485 | nonstandard directory <lib dir> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1486 | 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] | 1487 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1488 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1489 | CXX C++ compiler command |
| 1490 | CXXFLAGS C++ compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1491 | |
| 1492 | Use these variables to override the choices made by `configure' or to help |
| 1493 | it to find libraries and programs with nonstandard names/locations. |
| 1494 | |
| 1495 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1496 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1497 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1498 | fi |
| 1499 | |
| 1500 | if test "$ac_init_help" = "recursive"; then |
| 1501 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1502 | 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] | 1503 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1504 | ac_builddir=. |
| 1505 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1506 | case "$ac_dir" in |
| 1507 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1508 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1509 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1510 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1511 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1512 | case $ac_top_builddir_sub in |
| 1513 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1514 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1515 | esac ;; |
| 1516 | esac |
| 1517 | ac_abs_top_builddir=$ac_pwd |
| 1518 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1519 | # for backward compatibility: |
| 1520 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1521 | |
| 1522 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1523 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1524 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1525 | ac_top_srcdir=$ac_top_builddir_sub |
| 1526 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1527 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1528 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1529 | ac_top_srcdir=$srcdir |
| 1530 | ac_abs_top_srcdir=$srcdir ;; |
| 1531 | *) # Relative name. |
| 1532 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1533 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1534 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1535 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1536 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1537 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1538 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1539 | # Check for guested configure. |
| 1540 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1541 | echo && |
| 1542 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1543 | elif test -f "$ac_srcdir/configure"; then |
| 1544 | echo && |
| 1545 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1546 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1547 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1548 | fi || ac_status=$? |
| 1549 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1550 | done |
| 1551 | fi |
| 1552 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1553 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1554 | if $ac_init_version; then |
| 1555 | cat <<\_ACEOF |
Bill Wendling | ebc2fc1 | 2011-03-08 03:00:02 +0000 | [diff] [blame] | 1556 | llvm configure 3.0svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1557 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1558 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1559 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1560 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1561 | This configure script is free software; the Free Software Foundation |
| 1562 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1563 | |
Benjamin Kramer | b73cd94 | 2011-06-12 15:26:54 +0000 | [diff] [blame] | 1564 | Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1565 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1566 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1567 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1568 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1569 | This file contains any messages produced by compilers while |
| 1570 | running configure, to aid debugging if configure makes a mistake. |
| 1571 | |
Bill Wendling | ebc2fc1 | 2011-03-08 03:00:02 +0000 | [diff] [blame] | 1572 | It was created by llvm $as_me 3.0svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1573 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1574 | |
| 1575 | $ $0 $@ |
| 1576 | |
| 1577 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1578 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1579 | { |
| 1580 | cat <<_ASUNAME |
| 1581 | ## --------- ## |
| 1582 | ## Platform. ## |
| 1583 | ## --------- ## |
| 1584 | |
| 1585 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1586 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1587 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1588 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1589 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1590 | |
| 1591 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1592 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1593 | |
| 1594 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1595 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1596 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1597 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1598 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1599 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1600 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1601 | |
| 1602 | _ASUNAME |
| 1603 | |
| 1604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1605 | for as_dir in $PATH |
| 1606 | do |
| 1607 | IFS=$as_save_IFS |
| 1608 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1609 | echo "PATH: $as_dir" |
| 1610 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1611 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1612 | |
| 1613 | } >&5 |
| 1614 | |
| 1615 | cat >&5 <<_ACEOF |
| 1616 | |
| 1617 | |
| 1618 | ## ----------- ## |
| 1619 | ## Core tests. ## |
| 1620 | ## ----------- ## |
| 1621 | |
| 1622 | _ACEOF |
| 1623 | |
| 1624 | |
| 1625 | # Keep a trace of the command line. |
| 1626 | # 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] | 1627 | # 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] | 1628 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1629 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1630 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1631 | ac_configure_args0= |
| 1632 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1633 | ac_must_keep_next=false |
| 1634 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1635 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1636 | for ac_arg |
| 1637 | do |
| 1638 | case $ac_arg in |
| 1639 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1640 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1641 | | -silent | --silent | --silen | --sile | --sil) |
| 1642 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1643 | *\'*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1644 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1645 | esac |
| 1646 | case $ac_pass in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1647 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1648 | 2) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1649 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1650 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1651 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1652 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1653 | case $ac_arg in |
| 1654 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1655 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1656 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1657 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1658 | case "$ac_configure_args0 " in |
| 1659 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1660 | esac |
| 1661 | ;; |
| 1662 | -* ) ac_must_keep_next=true ;; |
| 1663 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1664 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1665 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1666 | ;; |
| 1667 | esac |
| 1668 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1669 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1670 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1671 | $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] | 1672 | |
| 1673 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1674 | # config.log. We remove comments because anyway the quotes in there |
| 1675 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1676 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1677 | # 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] | 1678 | trap 'exit_status=$? |
| 1679 | # Save into config.log some information that might help in debugging. |
| 1680 | { |
| 1681 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1682 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1683 | cat <<\_ASBOX |
| 1684 | ## ---------------- ## |
| 1685 | ## Cache variables. ## |
| 1686 | ## ---------------- ## |
| 1687 | _ASBOX |
| 1688 | echo |
| 1689 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1690 | ( |
| 1691 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1692 | eval ac_val=\$$ac_var |
| 1693 | case $ac_val in #( |
| 1694 | *${as_nl}*) |
| 1695 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1696 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1697 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1698 | esac |
| 1699 | case $ac_var in #( |
| 1700 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1701 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1702 | esac ;; |
| 1703 | esac |
| 1704 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1705 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1706 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1707 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1708 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1709 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1710 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1711 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1712 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1713 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1714 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1715 | esac | |
| 1716 | sort |
| 1717 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1718 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1719 | |
| 1720 | cat <<\_ASBOX |
| 1721 | ## ----------------- ## |
| 1722 | ## Output variables. ## |
| 1723 | ## ----------------- ## |
| 1724 | _ASBOX |
| 1725 | echo |
| 1726 | for ac_var in $ac_subst_vars |
| 1727 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1728 | eval ac_val=\$$ac_var |
| 1729 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1730 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1731 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1732 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1733 | done | sort |
| 1734 | echo |
| 1735 | |
| 1736 | if test -n "$ac_subst_files"; then |
| 1737 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1738 | ## ------------------- ## |
| 1739 | ## File substitutions. ## |
| 1740 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1741 | _ASBOX |
| 1742 | echo |
| 1743 | for ac_var in $ac_subst_files |
| 1744 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1745 | eval ac_val=\$$ac_var |
| 1746 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1747 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1748 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1749 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1750 | done | sort |
| 1751 | echo |
| 1752 | fi |
| 1753 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1754 | if test -s confdefs.h; then |
| 1755 | cat <<\_ASBOX |
| 1756 | ## ----------- ## |
| 1757 | ## confdefs.h. ## |
| 1758 | ## ----------- ## |
| 1759 | _ASBOX |
| 1760 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1761 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1762 | echo |
| 1763 | fi |
| 1764 | test "$ac_signal" != 0 && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1765 | echo "$as_me: caught signal $ac_signal" |
| 1766 | echo "$as_me: exit $exit_status" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1767 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1768 | rm -f core *.core core.conftest.* && |
| 1769 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1770 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1771 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1772 | for ac_signal in 1 2 13 15; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1773 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1774 | done |
| 1775 | ac_signal=0 |
| 1776 | |
| 1777 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1778 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1779 | |
| 1780 | # Predefined preprocessor variables. |
| 1781 | |
| 1782 | cat >>confdefs.h <<_ACEOF |
| 1783 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1784 | _ACEOF |
| 1785 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1786 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1787 | cat >>confdefs.h <<_ACEOF |
| 1788 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1789 | _ACEOF |
| 1790 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1791 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1792 | cat >>confdefs.h <<_ACEOF |
| 1793 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1794 | _ACEOF |
| 1795 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1796 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1797 | cat >>confdefs.h <<_ACEOF |
| 1798 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1799 | _ACEOF |
| 1800 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1801 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1802 | cat >>confdefs.h <<_ACEOF |
| 1803 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1804 | _ACEOF |
| 1805 | |
| 1806 | |
| 1807 | # 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] | 1808 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1809 | if test -n "$CONFIG_SITE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1810 | set x "$CONFIG_SITE" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1811 | elif test "x$prefix" != xNONE; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1812 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1813 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1814 | set x "$ac_default_prefix/share/config.site" \ |
| 1815 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1816 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1817 | shift |
| 1818 | for ac_site_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1819 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1820 | if test -r "$ac_site_file"; then |
| 1821 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1822 | echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1823 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1824 | . "$ac_site_file" |
| 1825 | fi |
| 1826 | done |
| 1827 | |
| 1828 | if test -r "$cache_file"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1829 | # Some versions of bash will fail to source /dev/null (special |
| 1830 | # files actually), so we avoid doing that. |
| 1831 | if test -f "$cache_file"; then |
| 1832 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1833 | echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1834 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1835 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1836 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1837 | esac |
| 1838 | fi |
| 1839 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1840 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1841 | echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1842 | >$cache_file |
| 1843 | fi |
| 1844 | |
| 1845 | # Check that the precious variables saved in the cache have kept the same |
| 1846 | # value. |
| 1847 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1848 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1849 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1850 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1851 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1852 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1853 | case $ac_old_set,$ac_new_set in |
| 1854 | set,) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1855 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1856 | 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] | 1857 | ac_cache_corrupted=: ;; |
| 1858 | ,set) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1859 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1860 | 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] | 1861 | ac_cache_corrupted=: ;; |
| 1862 | ,);; |
| 1863 | *) |
| 1864 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1865 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1866 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1867 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1868 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1869 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1870 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1871 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1872 | fi;; |
| 1873 | esac |
| 1874 | # Pass precious variables to config.status. |
| 1875 | if test "$ac_new_set" = set; then |
| 1876 | case $ac_new_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1877 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1878 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1879 | esac |
| 1880 | case " $ac_configure_args " in |
| 1881 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1882 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1883 | esac |
| 1884 | fi |
| 1885 | done |
| 1886 | if $ac_cache_corrupted; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1887 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1888 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1889 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1890 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1891 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1892 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1893 | |
| 1894 | |
| 1895 | |
| 1896 | |
| 1897 | |
| 1898 | |
| 1899 | |
| 1900 | |
| 1901 | |
| 1902 | |
| 1903 | |
| 1904 | |
| 1905 | |
| 1906 | |
| 1907 | |
| 1908 | |
| 1909 | |
| 1910 | |
| 1911 | |
| 1912 | |
| 1913 | |
| 1914 | |
| 1915 | |
| 1916 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1917 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1918 | ac_ext=c |
| 1919 | ac_cpp='$CPP $CPPFLAGS' |
| 1920 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1921 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1922 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1923 | |
| 1924 | |
| 1925 | |
Benjamin Kramer | b73cd94 | 2011-06-12 15:26:54 +0000 | [diff] [blame] | 1926 | LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1927 | |
| 1928 | |
| 1929 | |
| 1930 | |
| 1931 | |
| 1932 | |
| 1933 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1934 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1935 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1936 | if test -f "$ac_dir/install-sh"; then |
| 1937 | ac_aux_dir=$ac_dir |
| 1938 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1939 | break |
| 1940 | elif test -f "$ac_dir/install.sh"; then |
| 1941 | ac_aux_dir=$ac_dir |
| 1942 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1943 | break |
| 1944 | elif test -f "$ac_dir/shtool"; then |
| 1945 | ac_aux_dir=$ac_dir |
| 1946 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1947 | break |
| 1948 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1949 | done |
| 1950 | if test -z "$ac_aux_dir"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1951 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1952 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
| 1953 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1954 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1955 | |
| 1956 | # These three variables are undocumented and unsupported, |
| 1957 | # and are intended to be withdrawn in a future Autoconf release. |
| 1958 | # They can cause serious problems if a builder's source tree is in a directory |
| 1959 | # whose full name contains unusual characters. |
| 1960 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1961 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1962 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1963 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1964 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1965 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1966 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1967 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1968 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
| 1969 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1970 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1971 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1972 | fi |
| 1973 | |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 1974 | |
| 1975 | |
| 1976 | if test -d ${srcdir}/projects/llvm-gcc ; then |
| 1977 | subdirs="$subdirs projects/llvm-gcc" |
| 1978 | |
| 1979 | fi |
| 1980 | |
| 1981 | if test -d ${srcdir}/projects/test-suite ; then |
| 1982 | subdirs="$subdirs projects/test-suite" |
| 1983 | |
| 1984 | fi |
| 1985 | |
| 1986 | if test -d ${srcdir}/projects/llvm-test ; then |
| 1987 | subdirs="$subdirs projects/llvm-test" |
| 1988 | |
| 1989 | fi |
| 1990 | |
| 1991 | if test -d ${srcdir}/projects/poolalloc ; then |
| 1992 | subdirs="$subdirs projects/poolalloc" |
| 1993 | |
| 1994 | fi |
| 1995 | |
| 1996 | if test -d ${srcdir}/projects/llvm-poolalloc ; then |
| 1997 | subdirs="$subdirs projects/llvm-poolalloc" |
| 1998 | |
| 1999 | fi |
| 2000 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2001 | for i in `ls ${srcdir}/projects` |
| 2002 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2003 | if test -d ${srcdir}/projects/${i} ; then |
| 2004 | case ${i} in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2005 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2006 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2007 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2008 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2009 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2010 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2011 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2012 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2013 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2014 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2015 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2016 | ;; |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 2017 | safecode) subdirs="$subdirs projects/safecode" |
| 2018 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2019 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2020 | ;; |
John Criswell | 52c0286 | 2010-03-25 13:59:09 +0000 | [diff] [blame] | 2021 | llvm-gcc) ;; |
| 2022 | test-suite) ;; |
| 2023 | llvm-test) ;; |
| 2024 | poolalloc) ;; |
| 2025 | llvm-poolalloc) ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2026 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2027 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2028 | 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] | 2029 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2030 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2031 | fi |
| 2032 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2033 | |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 2034 | # Check whether --enable-polly was given. |
| 2035 | if test "${enable_polly+set}" = set; then |
| 2036 | enableval=$enable_polly; |
| 2037 | else |
| 2038 | enableval=default |
| 2039 | fi |
| 2040 | |
| 2041 | case "$enableval" in |
| 2042 | yes) ENABLE_POLLY=1 |
| 2043 | ;; |
| 2044 | no) ENABLE_POLLY=0 |
| 2045 | ;; |
| 2046 | default) ENABLE_POLLY=1 |
| 2047 | ;; |
| 2048 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 |
| 2049 | echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} |
| 2050 | { (exit 1); exit 1; }; } ;; |
| 2051 | esac |
| 2052 | |
| 2053 | |
| 2054 | if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then |
| 2055 | LLVM_HAS_POLLY=1 |
| 2056 | |
| 2057 | subdirs="$subdirs tools/polly" |
| 2058 | |
| 2059 | fi |
| 2060 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2061 | |
| 2062 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2063 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2064 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2065 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 2066 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2067 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2068 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2069 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 2070 | if test "${ac_cv_build+set}" = set; then |
| 2071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2072 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2073 | ac_build_alias=$build_alias |
| 2074 | test "x$ac_build_alias" = x && |
| 2075 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2076 | test "x$ac_build_alias" = x && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2077 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2078 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2079 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2080 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2081 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2082 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 2083 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2084 | |
| 2085 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2086 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2087 | echo "${ECHO_T}$ac_cv_build" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2088 | case $ac_cv_build in |
| 2089 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2090 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2091 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2092 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2093 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2094 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2095 | ac_save_IFS=$IFS; IFS='-' |
| 2096 | set x $ac_cv_build |
| 2097 | shift |
| 2098 | build_cpu=$1 |
| 2099 | build_vendor=$2 |
| 2100 | shift; shift |
| 2101 | # Remember, the first character of IFS is used to create $*, |
| 2102 | # except with old shells: |
| 2103 | build_os=$* |
| 2104 | IFS=$ac_save_IFS |
| 2105 | 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] | 2106 | |
| 2107 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2108 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2109 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 2110 | if test "${ac_cv_host+set}" = set; then |
| 2111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2112 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2113 | if test "x$host_alias" = x; then |
| 2114 | ac_cv_host=$ac_cv_build |
| 2115 | else |
| 2116 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2117 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2118 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 2119 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2120 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2121 | |
| 2122 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2123 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2124 | echo "${ECHO_T}$ac_cv_host" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2125 | case $ac_cv_host in |
| 2126 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2127 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2128 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2129 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2130 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2131 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2132 | ac_save_IFS=$IFS; IFS='-' |
| 2133 | set x $ac_cv_host |
| 2134 | shift |
| 2135 | host_cpu=$1 |
| 2136 | host_vendor=$2 |
| 2137 | shift; shift |
| 2138 | # Remember, the first character of IFS is used to create $*, |
| 2139 | # except with old shells: |
| 2140 | host_os=$* |
| 2141 | IFS=$ac_save_IFS |
| 2142 | 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] | 2143 | |
| 2144 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2145 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2146 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 2147 | if test "${ac_cv_target+set}" = set; then |
| 2148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2149 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2150 | if test "x$target_alias" = x; then |
| 2151 | ac_cv_target=$ac_cv_host |
| 2152 | else |
| 2153 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2154 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2155 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 2156 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2157 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2158 | |
| 2159 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2160 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2161 | echo "${ECHO_T}$ac_cv_target" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2162 | case $ac_cv_target in |
| 2163 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2164 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2165 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2166 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2167 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2168 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2169 | ac_save_IFS=$IFS; IFS='-' |
| 2170 | set x $ac_cv_target |
| 2171 | shift |
| 2172 | target_cpu=$1 |
| 2173 | target_vendor=$2 |
| 2174 | shift; shift |
| 2175 | # Remember, the first character of IFS is used to create $*, |
| 2176 | # except with old shells: |
| 2177 | target_os=$* |
| 2178 | IFS=$ac_save_IFS |
| 2179 | 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] | 2180 | |
| 2181 | |
| 2182 | # The aliases save the names the user supplied, while $host etc. |
| 2183 | # will get canonicalized. |
| 2184 | test -n "$target_alias" && |
| 2185 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2186 | NONENONEs,x,x, && |
| 2187 | program_prefix=${target_alias}- |
| 2188 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2189 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2190 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 2191 | if test "${llvm_cv_os_type+set}" = set; then |
| 2192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2193 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2194 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2195 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2196 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2197 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2198 | llvm_cv_os_type="AIX" |
| 2199 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2200 | *-*-irix*) |
| 2201 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2202 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2203 | llvm_cv_os_type="IRIX" |
| 2204 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2205 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2206 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2207 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2208 | llvm_cv_os_type="Cygwin" |
| 2209 | llvm_cv_platform_type="Unix" ;; |
| 2210 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2211 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2212 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2213 | llvm_cv_os_type="Darwin" |
| 2214 | llvm_cv_platform_type="Unix" ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 2215 | *-*-minix*) |
| 2216 | llvm_cv_link_all_option="-Wl,-all_load" |
| 2217 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 2218 | llvm_cv_os_type="Minix" |
| 2219 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2220 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2221 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2222 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2223 | llvm_cv_os_type="FreeBSD" |
| 2224 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2225 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2226 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2227 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2228 | llvm_cv_os_type="OpenBSD" |
| 2229 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2230 | *-*-netbsd*) |
| 2231 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2232 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2233 | llvm_cv_os_type="NetBSD" |
| 2234 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2235 | *-*-dragonfly*) |
| 2236 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2237 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2238 | llvm_cv_os_type="DragonFly" |
| 2239 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2240 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2241 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2242 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2243 | llvm_cv_os_type="HP-UX" |
| 2244 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2245 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2246 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2247 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2248 | llvm_cv_os_type="Interix" |
| 2249 | llvm_cv_platform_type="Unix" ;; |
| 2250 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2251 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2252 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2253 | llvm_cv_os_type="Linux" |
| 2254 | llvm_cv_platform_type="Unix" ;; |
| 2255 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2256 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2257 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2258 | llvm_cv_os_type="SunOS" |
| 2259 | llvm_cv_platform_type="Unix" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2260 | *-*-auroraux*) |
| 2261 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2262 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 2263 | llvm_cv_os_type="AuroraUX" |
| 2264 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2265 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2266 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2267 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2268 | llvm_cv_os_type="Win32" |
| 2269 | llvm_cv_platform_type="Win32" ;; |
| 2270 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2271 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2272 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2273 | llvm_cv_os_type="MingW" |
| 2274 | llvm_cv_platform_type="Win32" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2275 | *-*-haiku*) |
| 2276 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2277 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2278 | llvm_cv_os_type="Haiku" |
| 2279 | llvm_cv_platform_type="Unix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2280 | *-unknown-eabi*) |
| 2281 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2282 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2283 | llvm_cv_os_type="Freestanding" |
| 2284 | llvm_cv_platform_type="Unix" ;; |
| 2285 | *-unknown-elf*) |
| 2286 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2287 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2288 | llvm_cv_os_type="Freestanding" |
| 2289 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2290 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2291 | llvm_cv_link_all_option="" |
| 2292 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2293 | llvm_cv_os_type="Unknown" |
| 2294 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2295 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2296 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2297 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2298 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2299 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2300 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 2301 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 2302 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 2303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2304 | else |
| 2305 | case $target in |
| 2306 | *-*-aix*) |
| 2307 | llvm_cv_target_os_type="AIX" ;; |
| 2308 | *-*-irix*) |
| 2309 | llvm_cv_target_os_type="IRIX" ;; |
| 2310 | *-*-cygwin*) |
| 2311 | llvm_cv_target_os_type="Cygwin" ;; |
| 2312 | *-*-darwin*) |
| 2313 | llvm_cv_target_os_type="Darwin" ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 2314 | *-*-minix*) |
| 2315 | llvm_cv_target_os_type="Minix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2316 | *-*-freebsd*) |
| 2317 | llvm_cv_target_os_type="FreeBSD" ;; |
| 2318 | *-*-openbsd*) |
| 2319 | llvm_cv_target_os_type="OpenBSD" ;; |
| 2320 | *-*-netbsd*) |
| 2321 | llvm_cv_target_os_type="NetBSD" ;; |
| 2322 | *-*-dragonfly*) |
| 2323 | llvm_cv_target_os_type="DragonFly" ;; |
| 2324 | *-*-hpux*) |
| 2325 | llvm_cv_target_os_type="HP-UX" ;; |
| 2326 | *-*-interix*) |
| 2327 | llvm_cv_target_os_type="Interix" ;; |
| 2328 | *-*-linux*) |
| 2329 | llvm_cv_target_os_type="Linux" ;; |
| 2330 | *-*-solaris*) |
| 2331 | llvm_cv_target_os_type="SunOS" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2332 | *-*-auroraux*) |
| 2333 | llvm_cv_target_os_type="AuroraUX" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2334 | *-*-win32*) |
| 2335 | llvm_cv_target_os_type="Win32" ;; |
| 2336 | *-*-mingw*) |
| 2337 | llvm_cv_target_os_type="MingW" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2338 | *-*-haiku*) |
| 2339 | llvm_cv_target_os_type="Haiku" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2340 | *-unknown-eabi*) |
| 2341 | llvm_cv_target_os_type="Freestanding" ;; |
| 2342 | *) |
| 2343 | llvm_cv_target_os_type="Unknown" ;; |
| 2344 | esac |
| 2345 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2346 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 2347 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2348 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2349 | if test "$llvm_cv_os_type" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2350 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2351 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 2352 | { (exit 1); exit 1; }; } |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 2353 | fi |
| 2354 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2355 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2356 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2357 | HOST_OS=$llvm_cv_os_type |
| 2358 | |
| 2359 | TARGET_OS=$llvm_cv_target_os_type |
| 2360 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2361 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2362 | LINKALL=$llvm_cv_link_all_option |
| 2363 | |
| 2364 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2365 | |
| 2366 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2367 | case $llvm_cv_platform_type in |
| 2368 | Unix) |
| 2369 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2370 | cat >>confdefs.h <<\_ACEOF |
| 2371 | #define LLVM_ON_UNIX 1 |
| 2372 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2373 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2374 | LLVM_ON_UNIX=1 |
| 2375 | |
| 2376 | LLVM_ON_WIN32=0 |
| 2377 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2378 | ;; |
| 2379 | Win32) |
| 2380 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2381 | cat >>confdefs.h <<\_ACEOF |
| 2382 | #define LLVM_ON_WIN32 1 |
| 2383 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2384 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2385 | LLVM_ON_UNIX=0 |
| 2386 | |
| 2387 | LLVM_ON_WIN32=1 |
| 2388 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2389 | ;; |
| 2390 | esac |
| 2391 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2392 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2393 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 2394 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2396 | else |
| 2397 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2398 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2399 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2400 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2401 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2402 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2403 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2404 | mips-*) llvm_cv_target_arch="Mips" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2405 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2406 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2407 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 2408 | bfin-*) llvm_cv_target_arch="Blackfin" ;; |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 2409 | mblaze-*) llvm_cv_target_arch="MBlaze" ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 2410 | ptx-*) llvm_cv_target_arch="PTX" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2411 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2412 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2413 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2414 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2415 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2416 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2417 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2418 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2419 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2420 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2421 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 2422 | # Determine the LLVM native architecture for the target |
| 2423 | case "$llvm_cv_target_arch" in |
| 2424 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2425 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2426 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2427 | esac |
| 2428 | |
| 2429 | ARCH=$llvm_cv_target_arch |
| 2430 | |
| 2431 | |
| 2432 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2433 | ac_cpp='$CPP $CPPFLAGS' |
| 2434 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2435 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2436 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2437 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2438 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2439 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2440 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2442 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2444 | else |
| 2445 | if test -n "$CC"; then |
| 2446 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2447 | else |
| 2448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2449 | for as_dir in $PATH |
| 2450 | do |
| 2451 | IFS=$as_save_IFS |
| 2452 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2453 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2454 | 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] | 2455 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2456 | 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] | 2457 | break 2 |
| 2458 | fi |
| 2459 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2460 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2461 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2462 | |
| 2463 | fi |
| 2464 | fi |
| 2465 | CC=$ac_cv_prog_CC |
| 2466 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2467 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2468 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2469 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2470 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2471 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2472 | fi |
| 2473 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2474 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2475 | fi |
| 2476 | if test -z "$ac_cv_prog_CC"; then |
| 2477 | ac_ct_CC=$CC |
| 2478 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2479 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2480 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2481 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2482 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2484 | else |
| 2485 | if test -n "$ac_ct_CC"; then |
| 2486 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2487 | else |
| 2488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2489 | for as_dir in $PATH |
| 2490 | do |
| 2491 | IFS=$as_save_IFS |
| 2492 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2493 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2494 | 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] | 2495 | ac_cv_prog_ac_ct_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2496 | 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] | 2497 | break 2 |
| 2498 | fi |
| 2499 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2500 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2501 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2502 | |
| 2503 | fi |
| 2504 | fi |
| 2505 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2506 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2507 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2508 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2509 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2510 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2511 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2512 | fi |
| 2513 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2514 | if test "x$ac_ct_CC" = x; then |
| 2515 | CC="" |
| 2516 | else |
| 2517 | case $cross_compiling:$ac_tool_warned in |
| 2518 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2519 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2520 | whose name does not start with the host triplet. If you think this |
| 2521 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2522 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2523 | whose name does not start with the host triplet. If you think this |
| 2524 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2525 | ac_tool_warned=yes ;; |
| 2526 | esac |
| 2527 | CC=$ac_ct_CC |
| 2528 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2529 | else |
| 2530 | CC="$ac_cv_prog_CC" |
| 2531 | fi |
| 2532 | |
| 2533 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2534 | if test -n "$ac_tool_prefix"; then |
| 2535 | # 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] | 2536 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2537 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2538 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2539 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2541 | else |
| 2542 | if test -n "$CC"; then |
| 2543 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2544 | else |
| 2545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2546 | for as_dir in $PATH |
| 2547 | do |
| 2548 | IFS=$as_save_IFS |
| 2549 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2550 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2551 | 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] | 2552 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2553 | 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] | 2554 | break 2 |
| 2555 | fi |
| 2556 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2557 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2558 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2559 | |
| 2560 | fi |
| 2561 | fi |
| 2562 | CC=$ac_cv_prog_CC |
| 2563 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2564 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2565 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2566 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2567 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2568 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2569 | fi |
| 2570 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2571 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2572 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2573 | fi |
| 2574 | if test -z "$CC"; then |
| 2575 | # Extract the first word of "cc", so it can be a program name with args. |
| 2576 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2577 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2578 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2579 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2581 | else |
| 2582 | if test -n "$CC"; then |
| 2583 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2584 | else |
| 2585 | ac_prog_rejected=no |
| 2586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2587 | for as_dir in $PATH |
| 2588 | do |
| 2589 | IFS=$as_save_IFS |
| 2590 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2591 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2592 | 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] | 2593 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2594 | ac_prog_rejected=yes |
| 2595 | continue |
| 2596 | fi |
| 2597 | ac_cv_prog_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2598 | 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] | 2599 | break 2 |
| 2600 | fi |
| 2601 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2602 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2603 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2604 | |
| 2605 | if test $ac_prog_rejected = yes; then |
| 2606 | # We found a bogon in the path, so make sure we never use it. |
| 2607 | set dummy $ac_cv_prog_CC |
| 2608 | shift |
| 2609 | if test $# != 0; then |
| 2610 | # We chose a different compiler from the bogus one. |
| 2611 | # However, it has the same basename, so the bogon will be chosen |
| 2612 | # first if we set CC to just the basename; use the full file name. |
| 2613 | shift |
| 2614 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2615 | fi |
| 2616 | fi |
| 2617 | fi |
| 2618 | fi |
| 2619 | CC=$ac_cv_prog_CC |
| 2620 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2621 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2622 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2623 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2624 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2625 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2626 | fi |
| 2627 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2628 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2629 | fi |
| 2630 | if test -z "$CC"; then |
| 2631 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2632 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2633 | do |
| 2634 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2635 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2636 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2637 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2638 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2640 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2641 | if test -n "$CC"; then |
| 2642 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2643 | else |
| 2644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2645 | for as_dir in $PATH |
| 2646 | do |
| 2647 | IFS=$as_save_IFS |
| 2648 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2649 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2650 | 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] | 2651 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2652 | 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] | 2653 | break 2 |
| 2654 | fi |
| 2655 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2656 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2657 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2658 | |
| 2659 | fi |
| 2660 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2661 | CC=$ac_cv_prog_CC |
| 2662 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2663 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2664 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2665 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2666 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2667 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2668 | fi |
| 2669 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2670 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2671 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2672 | done |
| 2673 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2674 | if test -z "$CC"; then |
| 2675 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2676 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2677 | do |
| 2678 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2679 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2680 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2681 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2682 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2684 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2685 | if test -n "$ac_ct_CC"; then |
| 2686 | 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] | 2687 | else |
| 2688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2689 | for as_dir in $PATH |
| 2690 | do |
| 2691 | IFS=$as_save_IFS |
| 2692 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2693 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2694 | 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] | 2695 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2696 | 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] | 2697 | break 2 |
| 2698 | fi |
| 2699 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2700 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2701 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2702 | |
| 2703 | fi |
| 2704 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2705 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2706 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2707 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2708 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2709 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2710 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2711 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2712 | fi |
| 2713 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2714 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2715 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2716 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2717 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2718 | if test "x$ac_ct_CC" = x; then |
| 2719 | CC="" |
| 2720 | else |
| 2721 | case $cross_compiling:$ac_tool_warned in |
| 2722 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2723 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2724 | whose name does not start with the host triplet. If you think this |
| 2725 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2726 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2727 | whose name does not start with the host triplet. If you think this |
| 2728 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2729 | ac_tool_warned=yes ;; |
| 2730 | esac |
| 2731 | CC=$ac_ct_CC |
| 2732 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2733 | fi |
| 2734 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2735 | fi |
| 2736 | |
| 2737 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2738 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2739 | See \`config.log' for more details." >&5 |
| 2740 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2741 | See \`config.log' for more details." >&2;} |
| 2742 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2743 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2744 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2745 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2746 | ac_compiler=`set X $ac_compile; echo $2` |
| 2747 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2748 | case "(($ac_try" in |
| 2749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2750 | *) ac_try_echo=$ac_try;; |
| 2751 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2753 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2754 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2756 | (exit $ac_status); } |
| 2757 | { (ac_try="$ac_compiler -v >&5" |
| 2758 | case "(($ac_try" in |
| 2759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2760 | *) ac_try_echo=$ac_try;; |
| 2761 | esac |
| 2762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2763 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2764 | ac_status=$? |
| 2765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2766 | (exit $ac_status); } |
| 2767 | { (ac_try="$ac_compiler -V >&5" |
| 2768 | case "(($ac_try" in |
| 2769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2770 | *) ac_try_echo=$ac_try;; |
| 2771 | esac |
| 2772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2773 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2774 | ac_status=$? |
| 2775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2776 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2777 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2778 | cat >conftest.$ac_ext <<_ACEOF |
| 2779 | /* confdefs.h. */ |
| 2780 | _ACEOF |
| 2781 | cat confdefs.h >>conftest.$ac_ext |
| 2782 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2783 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2784 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2785 | int |
| 2786 | main () |
| 2787 | { |
| 2788 | |
| 2789 | ; |
| 2790 | return 0; |
| 2791 | } |
| 2792 | _ACEOF |
| 2793 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2794 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2795 | # Try to create an executable without -o first, disregard a.out. |
| 2796 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2797 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2798 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2799 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2800 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2801 | # |
| 2802 | # List of possible output files, starting from the most likely. |
| 2803 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2804 | # only as a last resort. b.out is created by i960 compilers. |
| 2805 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2806 | # |
| 2807 | # The IRIX 6 linker writes into existing files which may not be |
| 2808 | # executable, retaining their permissions. Remove them first so a |
| 2809 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2810 | ac_rmfiles= |
| 2811 | for ac_file in $ac_files |
| 2812 | do |
| 2813 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2814 | *.$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] | 2815 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2816 | esac |
| 2817 | done |
| 2818 | rm -f $ac_rmfiles |
| 2819 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2820 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2821 | case "(($ac_try" in |
| 2822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2823 | *) ac_try_echo=$ac_try;; |
| 2824 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2826 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2827 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2829 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2830 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2831 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2832 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2833 | # so that the user can short-circuit this test for compilers unknown to |
| 2834 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2835 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2836 | do |
| 2837 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2838 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2839 | *.$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] | 2840 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2841 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2842 | # We found the default executable, but exeext='' is most |
| 2843 | # certainly right. |
| 2844 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2845 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2846 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2847 | then :; else |
| 2848 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2849 | fi |
| 2850 | # We set ac_cv_exeext here because the later test for it is not |
| 2851 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2852 | # argument, so we may need to know it at that point already. |
| 2853 | # Even if this section looks crufty: it has the advantage of |
| 2854 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2855 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2856 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2857 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2858 | esac |
| 2859 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2860 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2861 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2862 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2863 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2865 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2866 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2867 | See \`config.log' for more details." >&5 |
| 2868 | echo "$as_me: error: C compiler cannot create executables |
| 2869 | See \`config.log' for more details." >&2;} |
| 2870 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2871 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2872 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2873 | ac_exeext=$ac_cv_exeext |
| 2874 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2875 | echo "${ECHO_T}$ac_file" >&6; } |
| 2876 | |
| 2877 | # Check that the compiler produces executables we can run. If not, either |
| 2878 | # the compiler is broken, or we cross compile. |
| 2879 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2880 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2881 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2882 | # If not cross compiling, check that we can run a simple program. |
| 2883 | if test "$cross_compiling" != yes; then |
| 2884 | if { ac_try='./$ac_file' |
| 2885 | { (case "(($ac_try" in |
| 2886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2887 | *) ac_try_echo=$ac_try;; |
| 2888 | esac |
| 2889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2890 | (eval "$ac_try") 2>&5 |
| 2891 | ac_status=$? |
| 2892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2893 | (exit $ac_status); }; }; then |
| 2894 | cross_compiling=no |
| 2895 | else |
| 2896 | if test "$cross_compiling" = maybe; then |
| 2897 | cross_compiling=yes |
| 2898 | else |
| 2899 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2900 | If you meant to cross compile, use \`--host'. |
| 2901 | See \`config.log' for more details." >&5 |
| 2902 | echo "$as_me: error: cannot run C compiled programs. |
| 2903 | If you meant to cross compile, use \`--host'. |
| 2904 | See \`config.log' for more details." >&2;} |
| 2905 | { (exit 1); exit 1; }; } |
| 2906 | fi |
| 2907 | fi |
| 2908 | fi |
| 2909 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2910 | echo "${ECHO_T}yes" >&6; } |
| 2911 | |
| 2912 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2913 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2914 | # Check that the compiler produces executables we can run. If not, either |
| 2915 | # the compiler is broken, or we cross compile. |
| 2916 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2917 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2918 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2919 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2920 | |
| 2921 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2922 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2923 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2924 | case "(($ac_try" in |
| 2925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2926 | *) ac_try_echo=$ac_try;; |
| 2927 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2929 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2930 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2932 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2933 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2934 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2935 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2936 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2937 | for ac_file in conftest.exe conftest conftest.*; do |
| 2938 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2939 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2940 | *.$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] | 2941 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2942 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2943 | * ) break;; |
| 2944 | esac |
| 2945 | done |
| 2946 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2947 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2948 | See \`config.log' for more details." >&5 |
| 2949 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2950 | See \`config.log' for more details." >&2;} |
| 2951 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2952 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2953 | |
| 2954 | rm -f conftest$ac_cv_exeext |
| 2955 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2956 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2957 | |
| 2958 | rm -f conftest.$ac_ext |
| 2959 | EXEEXT=$ac_cv_exeext |
| 2960 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2961 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2962 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2963 | if test "${ac_cv_objext+set}" = set; then |
| 2964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2965 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2966 | cat >conftest.$ac_ext <<_ACEOF |
| 2967 | /* confdefs.h. */ |
| 2968 | _ACEOF |
| 2969 | cat confdefs.h >>conftest.$ac_ext |
| 2970 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2971 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2972 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2973 | int |
| 2974 | main () |
| 2975 | { |
| 2976 | |
| 2977 | ; |
| 2978 | return 0; |
| 2979 | } |
| 2980 | _ACEOF |
| 2981 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2982 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2983 | case "(($ac_try" in |
| 2984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2985 | *) ac_try_echo=$ac_try;; |
| 2986 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2988 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2989 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2991 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2992 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2993 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2994 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2995 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2996 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2997 | break;; |
| 2998 | esac |
| 2999 | done |
| 3000 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3001 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3003 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3004 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 3005 | See \`config.log' for more details." >&5 |
| 3006 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 3007 | See \`config.log' for more details." >&2;} |
| 3008 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3009 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3010 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3011 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3012 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3013 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 3014 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3015 | OBJEXT=$ac_cv_objext |
| 3016 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3017 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3018 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 3019 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 3020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3021 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3022 | cat >conftest.$ac_ext <<_ACEOF |
| 3023 | /* confdefs.h. */ |
| 3024 | _ACEOF |
| 3025 | cat confdefs.h >>conftest.$ac_ext |
| 3026 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3027 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3028 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3029 | int |
| 3030 | main () |
| 3031 | { |
| 3032 | #ifndef __GNUC__ |
| 3033 | choke me |
| 3034 | #endif |
| 3035 | |
| 3036 | ; |
| 3037 | return 0; |
| 3038 | } |
| 3039 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3040 | rm -f conftest.$ac_objext |
| 3041 | if { (ac_try="$ac_compile" |
| 3042 | case "(($ac_try" in |
| 3043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3044 | *) ac_try_echo=$ac_try;; |
| 3045 | esac |
| 3046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3047 | (eval "$ac_compile") 2>conftest.er1 |
| 3048 | ac_status=$? |
| 3049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3050 | rm -f conftest.er1 |
| 3051 | cat conftest.err >&5 |
| 3052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3053 | (exit $ac_status); } && |
| 3054 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3055 | { (case "(($ac_try" in |
| 3056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3057 | *) ac_try_echo=$ac_try;; |
| 3058 | esac |
| 3059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3060 | (eval "$ac_try") 2>&5 |
| 3061 | ac_status=$? |
| 3062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3063 | (exit $ac_status); }; } && |
| 3064 | { ac_try='test -s conftest.$ac_objext' |
| 3065 | { (case "(($ac_try" in |
| 3066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3067 | *) ac_try_echo=$ac_try;; |
| 3068 | esac |
| 3069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3070 | (eval "$ac_try") 2>&5 |
| 3071 | ac_status=$? |
| 3072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3073 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3074 | ac_compiler_gnu=yes |
| 3075 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3076 | echo "$as_me: failed program was:" >&5 |
| 3077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3078 | |
| 3079 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3080 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3081 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3083 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3084 | |
| 3085 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3086 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3087 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3088 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3089 | ac_test_CFLAGS=${CFLAGS+set} |
| 3090 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3091 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3092 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 3093 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3095 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3096 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3097 | ac_c_werror_flag=yes |
| 3098 | ac_cv_prog_cc_g=no |
| 3099 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3100 | cat >conftest.$ac_ext <<_ACEOF |
| 3101 | /* confdefs.h. */ |
| 3102 | _ACEOF |
| 3103 | cat confdefs.h >>conftest.$ac_ext |
| 3104 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3105 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3106 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3107 | int |
| 3108 | main () |
| 3109 | { |
| 3110 | |
| 3111 | ; |
| 3112 | return 0; |
| 3113 | } |
| 3114 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3115 | rm -f conftest.$ac_objext |
| 3116 | if { (ac_try="$ac_compile" |
| 3117 | case "(($ac_try" in |
| 3118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3119 | *) ac_try_echo=$ac_try;; |
| 3120 | esac |
| 3121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3122 | (eval "$ac_compile") 2>conftest.er1 |
| 3123 | ac_status=$? |
| 3124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3125 | rm -f conftest.er1 |
| 3126 | cat conftest.err >&5 |
| 3127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3128 | (exit $ac_status); } && |
| 3129 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3130 | { (case "(($ac_try" in |
| 3131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3132 | *) ac_try_echo=$ac_try;; |
| 3133 | esac |
| 3134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3135 | (eval "$ac_try") 2>&5 |
| 3136 | ac_status=$? |
| 3137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3138 | (exit $ac_status); }; } && |
| 3139 | { ac_try='test -s conftest.$ac_objext' |
| 3140 | { (case "(($ac_try" in |
| 3141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3142 | *) ac_try_echo=$ac_try;; |
| 3143 | esac |
| 3144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3145 | (eval "$ac_try") 2>&5 |
| 3146 | ac_status=$? |
| 3147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3148 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3149 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3150 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3151 | echo "$as_me: failed program was:" >&5 |
| 3152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3153 | |
| 3154 | CFLAGS="" |
| 3155 | cat >conftest.$ac_ext <<_ACEOF |
| 3156 | /* confdefs.h. */ |
| 3157 | _ACEOF |
| 3158 | cat confdefs.h >>conftest.$ac_ext |
| 3159 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3160 | /* end confdefs.h. */ |
| 3161 | |
| 3162 | int |
| 3163 | main () |
| 3164 | { |
| 3165 | |
| 3166 | ; |
| 3167 | return 0; |
| 3168 | } |
| 3169 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3170 | rm -f conftest.$ac_objext |
| 3171 | if { (ac_try="$ac_compile" |
| 3172 | case "(($ac_try" in |
| 3173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3174 | *) ac_try_echo=$ac_try;; |
| 3175 | esac |
| 3176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3177 | (eval "$ac_compile") 2>conftest.er1 |
| 3178 | ac_status=$? |
| 3179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3180 | rm -f conftest.er1 |
| 3181 | cat conftest.err >&5 |
| 3182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3183 | (exit $ac_status); } && |
| 3184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3185 | { (case "(($ac_try" in |
| 3186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3187 | *) ac_try_echo=$ac_try;; |
| 3188 | esac |
| 3189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3190 | (eval "$ac_try") 2>&5 |
| 3191 | ac_status=$? |
| 3192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3193 | (exit $ac_status); }; } && |
| 3194 | { ac_try='test -s conftest.$ac_objext' |
| 3195 | { (case "(($ac_try" in |
| 3196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3197 | *) ac_try_echo=$ac_try;; |
| 3198 | esac |
| 3199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3200 | (eval "$ac_try") 2>&5 |
| 3201 | ac_status=$? |
| 3202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3203 | (exit $ac_status); }; }; then |
| 3204 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3205 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3206 | echo "$as_me: failed program was:" >&5 |
| 3207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3208 | |
| 3209 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3210 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3211 | cat >conftest.$ac_ext <<_ACEOF |
| 3212 | /* confdefs.h. */ |
| 3213 | _ACEOF |
| 3214 | cat confdefs.h >>conftest.$ac_ext |
| 3215 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3216 | /* end confdefs.h. */ |
| 3217 | |
| 3218 | int |
| 3219 | main () |
| 3220 | { |
| 3221 | |
| 3222 | ; |
| 3223 | return 0; |
| 3224 | } |
| 3225 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3226 | rm -f conftest.$ac_objext |
| 3227 | if { (ac_try="$ac_compile" |
| 3228 | case "(($ac_try" in |
| 3229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3230 | *) ac_try_echo=$ac_try;; |
| 3231 | esac |
| 3232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3233 | (eval "$ac_compile") 2>conftest.er1 |
| 3234 | ac_status=$? |
| 3235 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3236 | rm -f conftest.er1 |
| 3237 | cat conftest.err >&5 |
| 3238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3239 | (exit $ac_status); } && |
| 3240 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3241 | { (case "(($ac_try" in |
| 3242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3243 | *) ac_try_echo=$ac_try;; |
| 3244 | esac |
| 3245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3246 | (eval "$ac_try") 2>&5 |
| 3247 | ac_status=$? |
| 3248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3249 | (exit $ac_status); }; } && |
| 3250 | { ac_try='test -s conftest.$ac_objext' |
| 3251 | { (case "(($ac_try" in |
| 3252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3253 | *) ac_try_echo=$ac_try;; |
| 3254 | esac |
| 3255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3256 | (eval "$ac_try") 2>&5 |
| 3257 | ac_status=$? |
| 3258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3259 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3260 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3261 | else |
| 3262 | echo "$as_me: failed program was:" >&5 |
| 3263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3264 | |
| 3265 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3266 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3267 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3269 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3270 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3272 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3273 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3275 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3276 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3277 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3278 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3279 | if test "$ac_test_CFLAGS" = set; then |
| 3280 | CFLAGS=$ac_save_CFLAGS |
| 3281 | elif test $ac_cv_prog_cc_g = yes; then |
| 3282 | if test "$GCC" = yes; then |
| 3283 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3284 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3285 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3286 | fi |
| 3287 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3288 | if test "$GCC" = yes; then |
| 3289 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3290 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3291 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3292 | fi |
| 3293 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3294 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3295 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3296 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 3297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3298 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3299 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3300 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3301 | cat >conftest.$ac_ext <<_ACEOF |
| 3302 | /* confdefs.h. */ |
| 3303 | _ACEOF |
| 3304 | cat confdefs.h >>conftest.$ac_ext |
| 3305 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3306 | /* end confdefs.h. */ |
| 3307 | #include <stdarg.h> |
| 3308 | #include <stdio.h> |
| 3309 | #include <sys/types.h> |
| 3310 | #include <sys/stat.h> |
| 3311 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3312 | struct buf { int x; }; |
| 3313 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3314 | static char *e (p, i) |
| 3315 | char **p; |
| 3316 | int i; |
| 3317 | { |
| 3318 | return p[i]; |
| 3319 | } |
| 3320 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3321 | { |
| 3322 | char *s; |
| 3323 | va_list v; |
| 3324 | va_start (v,p); |
| 3325 | s = g (p, va_arg (v,int)); |
| 3326 | va_end (v); |
| 3327 | return s; |
| 3328 | } |
| 3329 | |
| 3330 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3331 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3332 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3333 | 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] | 3334 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3335 | 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] | 3336 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3337 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3338 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3339 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3340 | inside strings and character constants. */ |
| 3341 | #define FOO(x) 'x' |
| 3342 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3343 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3344 | int test (int i, double x); |
| 3345 | struct s1 {int (*f) (int a);}; |
| 3346 | struct s2 {int (*f) (double a);}; |
| 3347 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3348 | int argc; |
| 3349 | char **argv; |
| 3350 | int |
| 3351 | main () |
| 3352 | { |
| 3353 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3354 | ; |
| 3355 | return 0; |
| 3356 | } |
| 3357 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3358 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3359 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3360 | do |
| 3361 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3362 | rm -f conftest.$ac_objext |
| 3363 | if { (ac_try="$ac_compile" |
| 3364 | case "(($ac_try" in |
| 3365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3366 | *) ac_try_echo=$ac_try;; |
| 3367 | esac |
| 3368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3369 | (eval "$ac_compile") 2>conftest.er1 |
| 3370 | ac_status=$? |
| 3371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3372 | rm -f conftest.er1 |
| 3373 | cat conftest.err >&5 |
| 3374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3375 | (exit $ac_status); } && |
| 3376 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3377 | { (case "(($ac_try" in |
| 3378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3379 | *) ac_try_echo=$ac_try;; |
| 3380 | esac |
| 3381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3382 | (eval "$ac_try") 2>&5 |
| 3383 | ac_status=$? |
| 3384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3385 | (exit $ac_status); }; } && |
| 3386 | { ac_try='test -s conftest.$ac_objext' |
| 3387 | { (case "(($ac_try" in |
| 3388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3389 | *) ac_try_echo=$ac_try;; |
| 3390 | esac |
| 3391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3392 | (eval "$ac_try") 2>&5 |
| 3393 | ac_status=$? |
| 3394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3395 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3396 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3397 | else |
| 3398 | echo "$as_me: failed program was:" >&5 |
| 3399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3400 | |
| 3401 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3402 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3403 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3404 | rm -f core conftest.err conftest.$ac_objext |
| 3405 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3406 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3407 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3408 | CC=$ac_save_CC |
| 3409 | |
| 3410 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3411 | # AC_CACHE_VAL |
| 3412 | case "x$ac_cv_prog_cc_c89" in |
| 3413 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3414 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3415 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3416 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3417 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3418 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3419 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3420 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3421 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3422 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3423 | esac |
| 3424 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 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 |
| 3431 | |
| 3432 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3433 | ac_ext=c |
| 3434 | ac_cpp='$CPP $CPPFLAGS' |
| 3435 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3436 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3437 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3438 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3439 | 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] | 3440 | # On Suns, sometimes $CPP names a directory. |
| 3441 | if test -n "$CPP" && test -d "$CPP"; then |
| 3442 | CPP= |
| 3443 | fi |
| 3444 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3445 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3447 | else |
| 3448 | # Double quotes because CPP needs to be expanded |
| 3449 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3450 | do |
| 3451 | ac_preproc_ok=false |
| 3452 | for ac_c_preproc_warn_flag in '' yes |
| 3453 | do |
| 3454 | # Use a header file that comes with gcc, so configuring glibc |
| 3455 | # with a fresh cross-compiler works. |
| 3456 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3457 | # <limits.h> exists even on freestanding compilers. |
| 3458 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3459 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3460 | cat >conftest.$ac_ext <<_ACEOF |
| 3461 | /* confdefs.h. */ |
| 3462 | _ACEOF |
| 3463 | cat confdefs.h >>conftest.$ac_ext |
| 3464 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3465 | /* end confdefs.h. */ |
| 3466 | #ifdef __STDC__ |
| 3467 | # include <limits.h> |
| 3468 | #else |
| 3469 | # include <assert.h> |
| 3470 | #endif |
| 3471 | Syntax error |
| 3472 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3473 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3474 | case "(($ac_try" in |
| 3475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3476 | *) ac_try_echo=$ac_try;; |
| 3477 | esac |
| 3478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3479 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3480 | ac_status=$? |
| 3481 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3482 | rm -f conftest.er1 |
| 3483 | cat conftest.err >&5 |
| 3484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3485 | (exit $ac_status); } >/dev/null; then |
| 3486 | if test -s conftest.err; then |
| 3487 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3488 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3489 | else |
| 3490 | ac_cpp_err= |
| 3491 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3492 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3493 | ac_cpp_err=yes |
| 3494 | fi |
| 3495 | if test -z "$ac_cpp_err"; then |
| 3496 | : |
| 3497 | else |
| 3498 | echo "$as_me: failed program was:" >&5 |
| 3499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3500 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3501 | # Broken: fails on valid input. |
| 3502 | continue |
| 3503 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3504 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3505 | rm -f conftest.err conftest.$ac_ext |
| 3506 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3507 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3508 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3509 | cat >conftest.$ac_ext <<_ACEOF |
| 3510 | /* confdefs.h. */ |
| 3511 | _ACEOF |
| 3512 | cat confdefs.h >>conftest.$ac_ext |
| 3513 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3514 | /* end confdefs.h. */ |
| 3515 | #include <ac_nonexistent.h> |
| 3516 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3517 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3518 | case "(($ac_try" in |
| 3519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3520 | *) ac_try_echo=$ac_try;; |
| 3521 | esac |
| 3522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3523 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3524 | ac_status=$? |
| 3525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3526 | rm -f conftest.er1 |
| 3527 | cat conftest.err >&5 |
| 3528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3529 | (exit $ac_status); } >/dev/null; then |
| 3530 | if test -s conftest.err; then |
| 3531 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3532 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3533 | else |
| 3534 | ac_cpp_err= |
| 3535 | fi |
| 3536 | else |
| 3537 | ac_cpp_err=yes |
| 3538 | fi |
| 3539 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3540 | # Broken: success on invalid input. |
| 3541 | continue |
| 3542 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3543 | echo "$as_me: failed program was:" >&5 |
| 3544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3545 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3546 | # Passes both tests. |
| 3547 | ac_preproc_ok=: |
| 3548 | break |
| 3549 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3550 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3551 | rm -f conftest.err conftest.$ac_ext |
| 3552 | |
| 3553 | done |
| 3554 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3555 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3556 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3557 | break |
| 3558 | fi |
| 3559 | |
| 3560 | done |
| 3561 | ac_cv_prog_CPP=$CPP |
| 3562 | |
| 3563 | fi |
| 3564 | CPP=$ac_cv_prog_CPP |
| 3565 | else |
| 3566 | ac_cv_prog_CPP=$CPP |
| 3567 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3568 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3569 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3570 | ac_preproc_ok=false |
| 3571 | for ac_c_preproc_warn_flag in '' yes |
| 3572 | do |
| 3573 | # Use a header file that comes with gcc, so configuring glibc |
| 3574 | # with a fresh cross-compiler works. |
| 3575 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3576 | # <limits.h> exists even on freestanding compilers. |
| 3577 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3578 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3579 | cat >conftest.$ac_ext <<_ACEOF |
| 3580 | /* confdefs.h. */ |
| 3581 | _ACEOF |
| 3582 | cat confdefs.h >>conftest.$ac_ext |
| 3583 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3584 | /* end confdefs.h. */ |
| 3585 | #ifdef __STDC__ |
| 3586 | # include <limits.h> |
| 3587 | #else |
| 3588 | # include <assert.h> |
| 3589 | #endif |
| 3590 | Syntax error |
| 3591 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3592 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3593 | case "(($ac_try" in |
| 3594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3595 | *) ac_try_echo=$ac_try;; |
| 3596 | esac |
| 3597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3598 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3599 | ac_status=$? |
| 3600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3601 | rm -f conftest.er1 |
| 3602 | cat conftest.err >&5 |
| 3603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3604 | (exit $ac_status); } >/dev/null; then |
| 3605 | if test -s conftest.err; then |
| 3606 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3607 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3608 | else |
| 3609 | ac_cpp_err= |
| 3610 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3611 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3612 | ac_cpp_err=yes |
| 3613 | fi |
| 3614 | if test -z "$ac_cpp_err"; then |
| 3615 | : |
| 3616 | else |
| 3617 | echo "$as_me: failed program was:" >&5 |
| 3618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3619 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3620 | # Broken: fails on valid input. |
| 3621 | continue |
| 3622 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3623 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3624 | rm -f conftest.err conftest.$ac_ext |
| 3625 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3626 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3627 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3628 | cat >conftest.$ac_ext <<_ACEOF |
| 3629 | /* confdefs.h. */ |
| 3630 | _ACEOF |
| 3631 | cat confdefs.h >>conftest.$ac_ext |
| 3632 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3633 | /* end confdefs.h. */ |
| 3634 | #include <ac_nonexistent.h> |
| 3635 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3636 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3637 | case "(($ac_try" in |
| 3638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3639 | *) ac_try_echo=$ac_try;; |
| 3640 | esac |
| 3641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3642 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3643 | ac_status=$? |
| 3644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3645 | rm -f conftest.er1 |
| 3646 | cat conftest.err >&5 |
| 3647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3648 | (exit $ac_status); } >/dev/null; then |
| 3649 | if test -s conftest.err; then |
| 3650 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3651 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3652 | else |
| 3653 | ac_cpp_err= |
| 3654 | fi |
| 3655 | else |
| 3656 | ac_cpp_err=yes |
| 3657 | fi |
| 3658 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3659 | # Broken: success on invalid input. |
| 3660 | continue |
| 3661 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3662 | echo "$as_me: failed program was:" >&5 |
| 3663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3664 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3665 | # Passes both tests. |
| 3666 | ac_preproc_ok=: |
| 3667 | break |
| 3668 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3669 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3670 | rm -f conftest.err conftest.$ac_ext |
| 3671 | |
| 3672 | done |
| 3673 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3674 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3675 | if $ac_preproc_ok; then |
| 3676 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3677 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3678 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3679 | See \`config.log' for more details." >&5 |
| 3680 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3681 | See \`config.log' for more details." >&2;} |
| 3682 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3683 | fi |
| 3684 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3685 | ac_ext=c |
| 3686 | ac_cpp='$CPP $CPPFLAGS' |
| 3687 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3688 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3689 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3690 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3691 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3692 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3693 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3694 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3696 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3697 | # Extract the first word of "grep ggrep" to use in msg output |
| 3698 | if test -z "$GREP"; then |
| 3699 | set dummy grep ggrep; ac_prog_name=$2 |
| 3700 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3702 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3703 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3704 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3706 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3707 | do |
| 3708 | IFS=$as_save_IFS |
| 3709 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3710 | for ac_prog in grep ggrep; do |
| 3711 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3712 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3713 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3714 | # 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] | 3715 | # Check for GNU $ac_path_GREP |
| 3716 | case `"$ac_path_GREP" --version 2>&1` in |
| 3717 | *GNU*) |
| 3718 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3719 | *) |
| 3720 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3721 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3722 | while : |
| 3723 | do |
| 3724 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3725 | mv "conftest.tmp" "conftest.in" |
| 3726 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3727 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3728 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3729 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3730 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3731 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3732 | # Best one so far, save it but keep looking for a better one |
| 3733 | ac_cv_path_GREP="$ac_path_GREP" |
| 3734 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3735 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3736 | # 10*(2^10) chars as input seems more than enough |
| 3737 | test $ac_count -gt 10 && break |
| 3738 | done |
| 3739 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3740 | esac |
| 3741 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3742 | |
| 3743 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3744 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3745 | done |
| 3746 | |
| 3747 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3748 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3749 | |
| 3750 | |
| 3751 | fi |
| 3752 | |
| 3753 | GREP="$ac_cv_path_GREP" |
| 3754 | if test -z "$GREP"; then |
| 3755 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3756 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3757 | { (exit 1); exit 1; }; } |
| 3758 | fi |
| 3759 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3760 | else |
| 3761 | ac_cv_path_GREP=$GREP |
| 3762 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3763 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3764 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3765 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3766 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3767 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3768 | GREP="$ac_cv_path_GREP" |
| 3769 | |
| 3770 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3771 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3772 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3773 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3775 | else |
| 3776 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3777 | then ac_cv_path_EGREP="$GREP -E" |
| 3778 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3779 | # Extract the first word of "egrep" to use in msg output |
| 3780 | if test -z "$EGREP"; then |
| 3781 | set dummy egrep; ac_prog_name=$2 |
| 3782 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3784 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3785 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3786 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3788 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3789 | do |
| 3790 | IFS=$as_save_IFS |
| 3791 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3792 | for ac_prog in egrep; do |
| 3793 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3794 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3795 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3796 | # 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] | 3797 | # Check for GNU $ac_path_EGREP |
| 3798 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3799 | *GNU*) |
| 3800 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3801 | *) |
| 3802 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3803 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3804 | while : |
| 3805 | do |
| 3806 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3807 | mv "conftest.tmp" "conftest.in" |
| 3808 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3809 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3810 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3811 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3812 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3813 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3814 | # Best one so far, save it but keep looking for a better one |
| 3815 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3816 | ac_path_EGREP_max=$ac_count |
| 3817 | fi |
| 3818 | # 10*(2^10) chars as input seems more than enough |
| 3819 | test $ac_count -gt 10 && break |
| 3820 | done |
| 3821 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3822 | esac |
| 3823 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3824 | |
| 3825 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3826 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3827 | done |
| 3828 | |
| 3829 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3830 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3831 | |
| 3832 | |
| 3833 | fi |
| 3834 | |
| 3835 | EGREP="$ac_cv_path_EGREP" |
| 3836 | if test -z "$EGREP"; then |
| 3837 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3838 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3839 | { (exit 1); exit 1; }; } |
| 3840 | fi |
| 3841 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3842 | else |
| 3843 | ac_cv_path_EGREP=$EGREP |
| 3844 | fi |
| 3845 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3846 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3847 | fi |
| 3848 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3849 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3850 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3851 | EGREP="$ac_cv_path_EGREP" |
| 3852 | |
| 3853 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3854 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3855 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 3856 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3858 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3859 | cat >conftest.$ac_ext <<_ACEOF |
| 3860 | /* confdefs.h. */ |
| 3861 | _ACEOF |
| 3862 | cat confdefs.h >>conftest.$ac_ext |
| 3863 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3864 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3865 | #include <stdlib.h> |
| 3866 | #include <stdarg.h> |
| 3867 | #include <string.h> |
| 3868 | #include <float.h> |
| 3869 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3870 | int |
| 3871 | main () |
| 3872 | { |
| 3873 | |
| 3874 | ; |
| 3875 | return 0; |
| 3876 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3877 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3878 | rm -f conftest.$ac_objext |
| 3879 | if { (ac_try="$ac_compile" |
| 3880 | case "(($ac_try" in |
| 3881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3882 | *) ac_try_echo=$ac_try;; |
| 3883 | esac |
| 3884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3885 | (eval "$ac_compile") 2>conftest.er1 |
| 3886 | ac_status=$? |
| 3887 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3888 | rm -f conftest.er1 |
| 3889 | cat conftest.err >&5 |
| 3890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3891 | (exit $ac_status); } && |
| 3892 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3893 | { (case "(($ac_try" in |
| 3894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3895 | *) ac_try_echo=$ac_try;; |
| 3896 | esac |
| 3897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3898 | (eval "$ac_try") 2>&5 |
| 3899 | ac_status=$? |
| 3900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3901 | (exit $ac_status); }; } && |
| 3902 | { ac_try='test -s conftest.$ac_objext' |
| 3903 | { (case "(($ac_try" in |
| 3904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3905 | *) ac_try_echo=$ac_try;; |
| 3906 | esac |
| 3907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3908 | (eval "$ac_try") 2>&5 |
| 3909 | ac_status=$? |
| 3910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3911 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3912 | ac_cv_header_stdc=yes |
| 3913 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3914 | echo "$as_me: failed program was:" >&5 |
| 3915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3916 | |
| 3917 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3918 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3919 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3921 | |
| 3922 | if test $ac_cv_header_stdc = yes; then |
| 3923 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3924 | cat >conftest.$ac_ext <<_ACEOF |
| 3925 | /* confdefs.h. */ |
| 3926 | _ACEOF |
| 3927 | cat confdefs.h >>conftest.$ac_ext |
| 3928 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3929 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3930 | #include <string.h> |
| 3931 | |
| 3932 | _ACEOF |
| 3933 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3934 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3935 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3936 | else |
| 3937 | ac_cv_header_stdc=no |
| 3938 | fi |
| 3939 | rm -f conftest* |
| 3940 | |
| 3941 | fi |
| 3942 | |
| 3943 | if test $ac_cv_header_stdc = yes; then |
| 3944 | # 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] | 3945 | cat >conftest.$ac_ext <<_ACEOF |
| 3946 | /* confdefs.h. */ |
| 3947 | _ACEOF |
| 3948 | cat confdefs.h >>conftest.$ac_ext |
| 3949 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3950 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3951 | #include <stdlib.h> |
| 3952 | |
| 3953 | _ACEOF |
| 3954 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3955 | $EGREP "free" >/dev/null 2>&1; then |
| 3956 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3957 | else |
| 3958 | ac_cv_header_stdc=no |
| 3959 | fi |
| 3960 | rm -f conftest* |
| 3961 | |
| 3962 | fi |
| 3963 | |
| 3964 | if test $ac_cv_header_stdc = yes; then |
| 3965 | # /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] | 3966 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3967 | : |
| 3968 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3969 | cat >conftest.$ac_ext <<_ACEOF |
| 3970 | /* confdefs.h. */ |
| 3971 | _ACEOF |
| 3972 | cat confdefs.h >>conftest.$ac_ext |
| 3973 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3974 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3975 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3976 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3977 | #if ((' ' & 0x0FF) == 0x020) |
| 3978 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3979 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3980 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3981 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3982 | (('a' <= (c) && (c) <= 'i') \ |
| 3983 | || ('j' <= (c) && (c) <= 'r') \ |
| 3984 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3985 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3986 | #endif |
| 3987 | |
| 3988 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3989 | int |
| 3990 | main () |
| 3991 | { |
| 3992 | int i; |
| 3993 | for (i = 0; i < 256; i++) |
| 3994 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3995 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3996 | return 2; |
| 3997 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3998 | } |
| 3999 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4000 | rm -f conftest$ac_exeext |
| 4001 | if { (ac_try="$ac_link" |
| 4002 | case "(($ac_try" in |
| 4003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4004 | *) ac_try_echo=$ac_try;; |
| 4005 | esac |
| 4006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4007 | (eval "$ac_link") 2>&5 |
| 4008 | ac_status=$? |
| 4009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4010 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4011 | { (case "(($ac_try" in |
| 4012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4013 | *) ac_try_echo=$ac_try;; |
| 4014 | esac |
| 4015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4016 | (eval "$ac_try") 2>&5 |
| 4017 | ac_status=$? |
| 4018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4019 | (exit $ac_status); }; }; then |
| 4020 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4021 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4022 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4023 | echo "$as_me: failed program was:" >&5 |
| 4024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4025 | |
| 4026 | ( exit $ac_status ) |
| 4027 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4028 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4029 | 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] | 4030 | fi |
| 4031 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4032 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4033 | fi |
| 4034 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4035 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4036 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4037 | if test $ac_cv_header_stdc = yes; then |
| 4038 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4039 | cat >>confdefs.h <<\_ACEOF |
| 4040 | #define STDC_HEADERS 1 |
| 4041 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4042 | |
| 4043 | fi |
| 4044 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4045 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4046 | |
| 4047 | |
| 4048 | |
| 4049 | |
| 4050 | |
| 4051 | |
| 4052 | |
| 4053 | |
| 4054 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4055 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4056 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4057 | do |
| 4058 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4059 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4060 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4061 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4063 | else |
| 4064 | cat >conftest.$ac_ext <<_ACEOF |
| 4065 | /* confdefs.h. */ |
| 4066 | _ACEOF |
| 4067 | cat confdefs.h >>conftest.$ac_ext |
| 4068 | cat >>conftest.$ac_ext <<_ACEOF |
| 4069 | /* end confdefs.h. */ |
| 4070 | $ac_includes_default |
| 4071 | |
| 4072 | #include <$ac_header> |
| 4073 | _ACEOF |
| 4074 | rm -f conftest.$ac_objext |
| 4075 | if { (ac_try="$ac_compile" |
| 4076 | case "(($ac_try" in |
| 4077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4078 | *) ac_try_echo=$ac_try;; |
| 4079 | esac |
| 4080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4081 | (eval "$ac_compile") 2>conftest.er1 |
| 4082 | ac_status=$? |
| 4083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4084 | rm -f conftest.er1 |
| 4085 | cat conftest.err >&5 |
| 4086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4087 | (exit $ac_status); } && |
| 4088 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4089 | { (case "(($ac_try" in |
| 4090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4091 | *) ac_try_echo=$ac_try;; |
| 4092 | esac |
| 4093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4094 | (eval "$ac_try") 2>&5 |
| 4095 | ac_status=$? |
| 4096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4097 | (exit $ac_status); }; } && |
| 4098 | { ac_try='test -s conftest.$ac_objext' |
| 4099 | { (case "(($ac_try" in |
| 4100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4101 | *) ac_try_echo=$ac_try;; |
| 4102 | esac |
| 4103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4104 | (eval "$ac_try") 2>&5 |
| 4105 | ac_status=$? |
| 4106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4107 | (exit $ac_status); }; }; then |
| 4108 | eval "$as_ac_Header=yes" |
| 4109 | else |
| 4110 | echo "$as_me: failed program was:" >&5 |
| 4111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4112 | |
| 4113 | eval "$as_ac_Header=no" |
| 4114 | fi |
| 4115 | |
| 4116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4117 | fi |
| 4118 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4119 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4120 | echo "${ECHO_T}$ac_res" >&6; } |
| 4121 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4122 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4123 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4124 | _ACEOF |
| 4125 | |
| 4126 | fi |
| 4127 | |
| 4128 | done |
| 4129 | |
| 4130 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4131 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4132 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4133 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4135 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4136 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4137 | cat >conftest.$ac_ext <<_ACEOF |
| 4138 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4139 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4140 | cat confdefs.h >>conftest.$ac_ext |
| 4141 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4142 | /* end confdefs.h. */ |
| 4143 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4144 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4145 | |
| 4146 | int |
| 4147 | main () |
| 4148 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4149 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4150 | bogus endian macros |
| 4151 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4152 | |
| 4153 | ; |
| 4154 | return 0; |
| 4155 | } |
| 4156 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4157 | rm -f conftest.$ac_objext |
| 4158 | if { (ac_try="$ac_compile" |
| 4159 | case "(($ac_try" in |
| 4160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4161 | *) ac_try_echo=$ac_try;; |
| 4162 | esac |
| 4163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4164 | (eval "$ac_compile") 2>conftest.er1 |
| 4165 | ac_status=$? |
| 4166 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4167 | rm -f conftest.er1 |
| 4168 | cat conftest.err >&5 |
| 4169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4170 | (exit $ac_status); } && |
| 4171 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4172 | { (case "(($ac_try" in |
| 4173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4174 | *) ac_try_echo=$ac_try;; |
| 4175 | esac |
| 4176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4177 | (eval "$ac_try") 2>&5 |
| 4178 | ac_status=$? |
| 4179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4180 | (exit $ac_status); }; } && |
| 4181 | { ac_try='test -s conftest.$ac_objext' |
| 4182 | { (case "(($ac_try" in |
| 4183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4184 | *) ac_try_echo=$ac_try;; |
| 4185 | esac |
| 4186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4187 | (eval "$ac_try") 2>&5 |
| 4188 | ac_status=$? |
| 4189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4190 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4191 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4192 | cat >conftest.$ac_ext <<_ACEOF |
| 4193 | /* confdefs.h. */ |
| 4194 | _ACEOF |
| 4195 | cat confdefs.h >>conftest.$ac_ext |
| 4196 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4197 | /* end confdefs.h. */ |
| 4198 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4199 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4200 | |
| 4201 | int |
| 4202 | main () |
| 4203 | { |
| 4204 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4205 | not big endian |
| 4206 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4207 | |
| 4208 | ; |
| 4209 | return 0; |
| 4210 | } |
| 4211 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4212 | rm -f conftest.$ac_objext |
| 4213 | if { (ac_try="$ac_compile" |
| 4214 | case "(($ac_try" in |
| 4215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4216 | *) ac_try_echo=$ac_try;; |
| 4217 | esac |
| 4218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4219 | (eval "$ac_compile") 2>conftest.er1 |
| 4220 | ac_status=$? |
| 4221 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4222 | rm -f conftest.er1 |
| 4223 | cat conftest.err >&5 |
| 4224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4225 | (exit $ac_status); } && |
| 4226 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4227 | { (case "(($ac_try" in |
| 4228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4229 | *) ac_try_echo=$ac_try;; |
| 4230 | esac |
| 4231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4232 | (eval "$ac_try") 2>&5 |
| 4233 | ac_status=$? |
| 4234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4235 | (exit $ac_status); }; } && |
| 4236 | { ac_try='test -s conftest.$ac_objext' |
| 4237 | { (case "(($ac_try" in |
| 4238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4239 | *) ac_try_echo=$ac_try;; |
| 4240 | esac |
| 4241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4242 | (eval "$ac_try") 2>&5 |
| 4243 | ac_status=$? |
| 4244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4245 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4246 | ac_cv_c_bigendian=yes |
| 4247 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4248 | echo "$as_me: failed program was:" >&5 |
| 4249 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4250 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4251 | ac_cv_c_bigendian=no |
| 4252 | fi |
| 4253 | |
| 4254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4255 | else |
| 4256 | echo "$as_me: failed program was:" >&5 |
| 4257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4258 | |
| 4259 | # It does not; compile a test program. |
| 4260 | if test "$cross_compiling" = yes; then |
| 4261 | # try to guess the endianness by grepping values into an object file |
| 4262 | ac_cv_c_bigendian=unknown |
| 4263 | cat >conftest.$ac_ext <<_ACEOF |
| 4264 | /* confdefs.h. */ |
| 4265 | _ACEOF |
| 4266 | cat confdefs.h >>conftest.$ac_ext |
| 4267 | cat >>conftest.$ac_ext <<_ACEOF |
| 4268 | /* end confdefs.h. */ |
| 4269 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4270 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4271 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4272 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4273 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4274 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4275 | int |
| 4276 | main () |
| 4277 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4278 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4279 | ; |
| 4280 | return 0; |
| 4281 | } |
| 4282 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4283 | rm -f conftest.$ac_objext |
| 4284 | if { (ac_try="$ac_compile" |
| 4285 | case "(($ac_try" in |
| 4286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4287 | *) ac_try_echo=$ac_try;; |
| 4288 | esac |
| 4289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4290 | (eval "$ac_compile") 2>conftest.er1 |
| 4291 | ac_status=$? |
| 4292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4293 | rm -f conftest.er1 |
| 4294 | cat conftest.err >&5 |
| 4295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4296 | (exit $ac_status); } && |
| 4297 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4298 | { (case "(($ac_try" in |
| 4299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4300 | *) ac_try_echo=$ac_try;; |
| 4301 | esac |
| 4302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4303 | (eval "$ac_try") 2>&5 |
| 4304 | ac_status=$? |
| 4305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4306 | (exit $ac_status); }; } && |
| 4307 | { ac_try='test -s conftest.$ac_objext' |
| 4308 | { (case "(($ac_try" in |
| 4309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4310 | *) ac_try_echo=$ac_try;; |
| 4311 | esac |
| 4312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4313 | (eval "$ac_try") 2>&5 |
| 4314 | ac_status=$? |
| 4315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4316 | (exit $ac_status); }; }; then |
| 4317 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4318 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4319 | fi |
| 4320 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4321 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4322 | ac_cv_c_bigendian=no |
| 4323 | else |
| 4324 | # finding both strings is unlikely to happen, but who knows? |
| 4325 | ac_cv_c_bigendian=unknown |
| 4326 | fi |
| 4327 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4328 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4329 | echo "$as_me: failed program was:" >&5 |
| 4330 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4331 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4332 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4333 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4334 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4336 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4337 | cat >conftest.$ac_ext <<_ACEOF |
| 4338 | /* confdefs.h. */ |
| 4339 | _ACEOF |
| 4340 | cat confdefs.h >>conftest.$ac_ext |
| 4341 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4342 | /* end confdefs.h. */ |
| 4343 | $ac_includes_default |
| 4344 | int |
| 4345 | main () |
| 4346 | { |
| 4347 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4348 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4349 | union |
| 4350 | { |
| 4351 | long int l; |
| 4352 | char c[sizeof (long int)]; |
| 4353 | } u; |
| 4354 | u.l = 1; |
| 4355 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4356 | |
| 4357 | ; |
| 4358 | return 0; |
| 4359 | } |
| 4360 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4361 | rm -f conftest$ac_exeext |
| 4362 | if { (ac_try="$ac_link" |
| 4363 | case "(($ac_try" in |
| 4364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4365 | *) ac_try_echo=$ac_try;; |
| 4366 | esac |
| 4367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4368 | (eval "$ac_link") 2>&5 |
| 4369 | ac_status=$? |
| 4370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4371 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4372 | { (case "(($ac_try" in |
| 4373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4374 | *) ac_try_echo=$ac_try;; |
| 4375 | esac |
| 4376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4377 | (eval "$ac_try") 2>&5 |
| 4378 | ac_status=$? |
| 4379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4380 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4381 | ac_cv_c_bigendian=no |
| 4382 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4383 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4384 | echo "$as_me: failed program was:" >&5 |
| 4385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4386 | |
| 4387 | ( exit $ac_status ) |
| 4388 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4389 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4390 | 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] | 4391 | fi |
| 4392 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4393 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4394 | fi |
| 4395 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4397 | fi |
| 4398 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4399 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4400 | case $ac_cv_c_bigendian in |
| 4401 | yes) |
| 4402 | ENDIAN=big |
| 4403 | ;; |
| 4404 | no) |
| 4405 | ENDIAN=little |
| 4406 | ;; |
| 4407 | *) |
| 4408 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4409 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4410 | echo "$as_me: error: unknown endianness |
| 4411 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4412 | { (exit 1); exit 1; }; } ;; |
| 4413 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4414 | |
| 4415 | |
| 4416 | if test "$cross_compiling" = yes; then |
| 4417 | LLVM_CROSS_COMPILING=1 |
| 4418 | |
| 4419 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4420 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4421 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4422 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4424 | else |
| 4425 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4426 | ac_cv_build_exeext=.exe |
| 4427 | else |
| 4428 | ac_build_prefix=${build_alias}- |
| 4429 | |
| 4430 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4431 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4432 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4434 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4436 | else |
| 4437 | if test -n "$BUILD_CC"; then |
| 4438 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4439 | else |
| 4440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4441 | for as_dir in $PATH |
| 4442 | do |
| 4443 | IFS=$as_save_IFS |
| 4444 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4445 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4446 | 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] | 4447 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4449 | break 2 |
| 4450 | fi |
| 4451 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4452 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4453 | IFS=$as_save_IFS |
| 4454 | |
| 4455 | fi |
| 4456 | fi |
| 4457 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4458 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4459 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4460 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4461 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4462 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4463 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4464 | fi |
| 4465 | |
| 4466 | |
| 4467 | if test -z "$BUILD_CC"; then |
| 4468 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4469 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4470 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4472 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4474 | else |
| 4475 | if test -n "$BUILD_CC"; then |
| 4476 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4477 | else |
| 4478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4479 | for as_dir in $PATH |
| 4480 | do |
| 4481 | IFS=$as_save_IFS |
| 4482 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4483 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4484 | 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] | 4485 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4486 | 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] | 4487 | break 2 |
| 4488 | fi |
| 4489 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4490 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4491 | IFS=$as_save_IFS |
| 4492 | |
| 4493 | fi |
| 4494 | fi |
| 4495 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4496 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4497 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4498 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4499 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4500 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4501 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4502 | fi |
| 4503 | |
| 4504 | |
| 4505 | if test -z "$BUILD_CC"; then |
| 4506 | # Extract the first word of "cc", so it can be a program name with args. |
| 4507 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4508 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4509 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4510 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4512 | else |
| 4513 | if test -n "$BUILD_CC"; then |
| 4514 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4515 | else |
| 4516 | ac_prog_rejected=no |
| 4517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4518 | for as_dir in $PATH |
| 4519 | do |
| 4520 | IFS=$as_save_IFS |
| 4521 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4522 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4523 | 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] | 4524 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4525 | ac_prog_rejected=yes |
| 4526 | continue |
| 4527 | fi |
| 4528 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4529 | 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] | 4530 | break 2 |
| 4531 | fi |
| 4532 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4533 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4534 | IFS=$as_save_IFS |
| 4535 | |
| 4536 | if test $ac_prog_rejected = yes; then |
| 4537 | # We found a bogon in the path, so make sure we never use it. |
| 4538 | set dummy $ac_cv_prog_BUILD_CC |
| 4539 | shift |
| 4540 | if test $# != 0; then |
| 4541 | # We chose a different compiler from the bogus one. |
| 4542 | # However, it has the same basename, so the bogon will be chosen |
| 4543 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4544 | shift |
| 4545 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4546 | fi |
| 4547 | fi |
| 4548 | fi |
| 4549 | fi |
| 4550 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4551 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4552 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4553 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4554 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4555 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4556 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4557 | fi |
| 4558 | |
| 4559 | |
| 4560 | fi |
| 4561 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4562 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4563 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4564 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4565 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4566 | rm -f conftest* |
| 4567 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4568 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4569 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4570 | (eval $ac_build_link) 2>&5 |
| 4571 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4573 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4574 | for file in conftest.*; do |
| 4575 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4576 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4577 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4578 | esac |
| 4579 | done |
| 4580 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4581 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4582 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4583 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4584 | fi |
| 4585 | rm -f conftest* |
| 4586 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4587 | fi |
| 4588 | fi |
| 4589 | |
| 4590 | BUILD_EXEEXT="" |
| 4591 | 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] | 4592 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4593 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4594 | ac_build_exeext=$BUILD_EXEEXT |
| 4595 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4596 | ac_build_prefix=${build_alias}- |
| 4597 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4598 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4599 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4601 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4603 | else |
| 4604 | if test -n "$BUILD_CXX"; then |
| 4605 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4606 | else |
| 4607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4608 | for as_dir in $PATH |
| 4609 | do |
| 4610 | IFS=$as_save_IFS |
| 4611 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4612 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4613 | 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] | 4614 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4615 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4616 | break 2 |
| 4617 | fi |
| 4618 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4619 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4620 | IFS=$as_save_IFS |
| 4621 | |
| 4622 | fi |
| 4623 | fi |
| 4624 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4625 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4626 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4627 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4628 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4629 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4630 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4631 | fi |
| 4632 | |
| 4633 | |
| 4634 | if test -z "$BUILD_CXX"; then |
| 4635 | # Extract the first word of "g++", so it can be a program name with args. |
| 4636 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4637 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4639 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4641 | else |
| 4642 | if test -n "$BUILD_CXX"; then |
| 4643 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4644 | else |
| 4645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4646 | for as_dir in $PATH |
| 4647 | do |
| 4648 | IFS=$as_save_IFS |
| 4649 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4650 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4651 | 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] | 4652 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4653 | 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] | 4654 | break 2 |
| 4655 | fi |
| 4656 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4657 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4658 | IFS=$as_save_IFS |
| 4659 | |
| 4660 | fi |
| 4661 | fi |
| 4662 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4663 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4664 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4665 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4666 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4667 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4668 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4669 | fi |
| 4670 | |
| 4671 | |
| 4672 | if test -z "$BUILD_CXX"; then |
| 4673 | # Extract the first word of "c++", so it can be a program name with args. |
| 4674 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4675 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4677 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4679 | else |
| 4680 | if test -n "$BUILD_CXX"; then |
| 4681 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4682 | else |
| 4683 | ac_prog_rejected=no |
| 4684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4685 | for as_dir in $PATH |
| 4686 | do |
| 4687 | IFS=$as_save_IFS |
| 4688 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4689 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4690 | 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] | 4691 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4692 | ac_prog_rejected=yes |
| 4693 | continue |
| 4694 | fi |
| 4695 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4696 | 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] | 4697 | break 2 |
| 4698 | fi |
| 4699 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4700 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4701 | IFS=$as_save_IFS |
| 4702 | |
| 4703 | if test $ac_prog_rejected = yes; then |
| 4704 | # We found a bogon in the path, so make sure we never use it. |
| 4705 | set dummy $ac_cv_prog_BUILD_CXX |
| 4706 | shift |
| 4707 | if test $# != 0; then |
| 4708 | # We chose a different compiler from the bogus one. |
| 4709 | # However, it has the same basename, so the bogon will be chosen |
| 4710 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4711 | shift |
| 4712 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4713 | fi |
| 4714 | fi |
| 4715 | fi |
| 4716 | fi |
| 4717 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4718 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4719 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4720 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4721 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4722 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4723 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4724 | fi |
| 4725 | |
| 4726 | |
| 4727 | fi |
| 4728 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4729 | else |
| 4730 | LLVM_CROSS_COMPILING=0 |
| 4731 | |
| 4732 | fi |
| 4733 | |
Dan Gohman | 56fb5f9 | 2010-08-04 16:25:01 +0000 | [diff] [blame] | 4734 | 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] | 4735 | cvsbuild="yes" |
| 4736 | optimize="no" |
| 4737 | CVSBUILD=CVSBUILD=1 |
| 4738 | |
| 4739 | else |
| 4740 | cvsbuild="no" |
| 4741 | optimize="yes" |
| 4742 | fi |
| 4743 | |
| 4744 | |
| 4745 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4746 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4747 | enableval=$enable_optimized; |
| 4748 | else |
| 4749 | enableval=$optimize |
| 4750 | fi |
| 4751 | |
| 4752 | if test ${enableval} = "no" ; then |
| 4753 | ENABLE_OPTIMIZED= |
| 4754 | |
| 4755 | else |
| 4756 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4757 | |
| 4758 | fi |
| 4759 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4760 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4761 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4762 | enableval=$enable_profiling; |
| 4763 | else |
| 4764 | enableval="no" |
| 4765 | fi |
| 4766 | |
| 4767 | if test ${enableval} = "no" ; then |
| 4768 | ENABLE_PROFILING= |
| 4769 | |
| 4770 | else |
| 4771 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4772 | |
| 4773 | fi |
| 4774 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4775 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4776 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4777 | enableval=$enable_assertions; |
| 4778 | else |
| 4779 | enableval="yes" |
| 4780 | fi |
| 4781 | |
| 4782 | if test ${enableval} = "yes" ; then |
| 4783 | DISABLE_ASSERTIONS= |
| 4784 | |
| 4785 | else |
| 4786 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4787 | |
| 4788 | fi |
| 4789 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4790 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4791 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4792 | enableval=$enable_expensive_checks; |
| 4793 | else |
| 4794 | enableval="no" |
| 4795 | fi |
| 4796 | |
| 4797 | if test ${enableval} = "yes" ; then |
| 4798 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4799 | |
| 4800 | EXPENSIVE_CHECKS=yes |
| 4801 | |
| 4802 | else |
| 4803 | ENABLE_EXPENSIVE_CHECKS= |
| 4804 | |
| 4805 | EXPENSIVE_CHECKS=no |
| 4806 | |
| 4807 | fi |
| 4808 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4809 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4810 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4811 | enableval=$enable_debug_runtime; |
| 4812 | else |
| 4813 | enableval=no |
| 4814 | fi |
| 4815 | |
| 4816 | if test ${enableval} = "no" ; then |
| 4817 | DEBUG_RUNTIME= |
| 4818 | |
| 4819 | else |
| 4820 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4821 | |
| 4822 | fi |
| 4823 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4824 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4825 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4826 | enableval=$enable_debug_symbols; |
| 4827 | else |
| 4828 | enableval=no |
| 4829 | fi |
| 4830 | |
| 4831 | if test ${enableval} = "no" ; then |
| 4832 | DEBUG_SYMBOLS= |
| 4833 | |
| 4834 | else |
| 4835 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 4836 | |
| 4837 | fi |
| 4838 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4839 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4840 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4841 | enableval=$enable_jit; |
| 4842 | else |
| 4843 | enableval=default |
| 4844 | fi |
| 4845 | |
| 4846 | if test ${enableval} = "no" |
| 4847 | then |
| 4848 | JIT= |
| 4849 | |
| 4850 | else |
| 4851 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4852 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4853 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4854 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4855 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4856 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4857 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4858 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4859 | ;; |
Chris Lattner | c476ed9 | 2010-11-14 18:24:41 +0000 | [diff] [blame] | 4860 | Alpha) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4861 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 4862 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4863 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4864 | Mips) TARGET_HAS_JIT=0 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4865 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4866 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4867 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4868 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4869 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4870 | SystemZ) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4871 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4872 | Blackfin) TARGET_HAS_JIT=0 |
| 4873 | ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4874 | MBlaze) TARGET_HAS_JIT=0 |
| 4875 | ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 4876 | PTX) TARGET_HAS_JIT=0 |
| 4877 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4878 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4879 | ;; |
| 4880 | esac |
| 4881 | fi |
| 4882 | |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 4883 | # Check whether --enable-docs was given. |
| 4884 | if test "${enable_docs+set}" = set; then |
| 4885 | enableval=$enable_docs; |
| 4886 | else |
| 4887 | enableval=default |
| 4888 | fi |
| 4889 | |
| 4890 | case "$enableval" in |
| 4891 | yes) ENABLE_DOCS=1 |
| 4892 | ;; |
| 4893 | no) ENABLE_DOCS=0 |
| 4894 | ;; |
| 4895 | default) ENABLE_DOCS=1 |
| 4896 | ;; |
| 4897 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 |
| 4898 | echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} |
| 4899 | { (exit 1); exit 1; }; } ;; |
| 4900 | esac |
| 4901 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4902 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4903 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4904 | enableval=$enable_doxygen; |
| 4905 | else |
| 4906 | enableval=default |
| 4907 | fi |
| 4908 | |
| 4909 | case "$enableval" in |
| 4910 | yes) ENABLE_DOXYGEN=1 |
| 4911 | ;; |
| 4912 | no) ENABLE_DOXYGEN=0 |
| 4913 | ;; |
| 4914 | default) ENABLE_DOXYGEN=0 |
| 4915 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4916 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4917 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4918 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4919 | esac |
| 4920 | |
| 4921 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4922 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4923 | enableval=$enable_threads; |
| 4924 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4925 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4926 | fi |
| 4927 | |
| 4928 | case "$enableval" in |
| 4929 | yes) ENABLE_THREADS=1 |
| 4930 | ;; |
| 4931 | no) ENABLE_THREADS=0 |
| 4932 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4933 | default) ENABLE_THREADS=1 |
| 4934 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4935 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4936 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4937 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4938 | esac |
| 4939 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 4940 | cat >>confdefs.h <<_ACEOF |
| 4941 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4942 | _ACEOF |
| 4943 | |
| 4944 | |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 4945 | # Check whether --enable-pthreads was given. |
| 4946 | if test "${enable_pthreads+set}" = set; then |
| 4947 | enableval=$enable_pthreads; |
| 4948 | else |
| 4949 | enableval=default |
| 4950 | fi |
| 4951 | |
| 4952 | case "$enableval" in |
| 4953 | yes) ENABLE_PTHREADS=1 |
| 4954 | ;; |
| 4955 | no) ENABLE_PTHREADS=0 |
| 4956 | ;; |
| 4957 | default) ENABLE_PTHREADS=1 |
| 4958 | ;; |
| 4959 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 |
| 4960 | echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} |
| 4961 | { (exit 1); exit 1; }; } ;; |
| 4962 | esac |
| 4963 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4964 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4965 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4966 | enableval=$enable_pic; |
| 4967 | else |
| 4968 | enableval=default |
| 4969 | fi |
| 4970 | |
| 4971 | case "$enableval" in |
| 4972 | yes) ENABLE_PIC=1 |
| 4973 | ;; |
| 4974 | no) ENABLE_PIC=0 |
| 4975 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4976 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4977 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4978 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4979 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4980 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4981 | esac |
| 4982 | |
| 4983 | cat >>confdefs.h <<_ACEOF |
| 4984 | #define ENABLE_PIC $ENABLE_PIC |
| 4985 | _ACEOF |
| 4986 | |
| 4987 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 4988 | # Check whether --enable-shared was given. |
| 4989 | if test "${enable_shared+set}" = set; then |
| 4990 | enableval=$enable_shared; |
| 4991 | else |
| 4992 | enableval=default |
| 4993 | fi |
| 4994 | |
| 4995 | case "$enableval" in |
| 4996 | yes) ENABLE_SHARED=1 |
| 4997 | ;; |
| 4998 | no) ENABLE_SHARED=0 |
| 4999 | ;; |
| 5000 | default) ENABLE_SHARED=0 |
| 5001 | ;; |
| 5002 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 |
| 5003 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} |
| 5004 | { (exit 1); exit 1; }; } ;; |
| 5005 | esac |
| 5006 | |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5007 | # Check whether --enable-embed-stdcxx was given. |
| 5008 | if test "${enable_embed_stdcxx+set}" = set; then |
| 5009 | enableval=$enable_embed_stdcxx; |
| 5010 | else |
| 5011 | enableval=default |
| 5012 | fi |
| 5013 | |
| 5014 | case "$enableval" in |
| 5015 | yes) ENABLE_EMBED_STDCXX=1 |
| 5016 | ;; |
| 5017 | no) ENABLE_EMBED_STDCXX=0 |
| 5018 | ;; |
| 5019 | default) ENABLE_EMBED_STDCXX=1 |
| 5020 | ;; |
| 5021 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 |
| 5022 | echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} |
| 5023 | { (exit 1); exit 1; }; } ;; |
| 5024 | esac |
| 5025 | |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 5026 | # Check whether --enable-timestamps was given. |
| 5027 | if test "${enable_timestamps+set}" = set; then |
| 5028 | enableval=$enable_timestamps; |
| 5029 | else |
| 5030 | enableval=default |
| 5031 | fi |
| 5032 | |
| 5033 | case "$enableval" in |
| 5034 | yes) ENABLE_TIMESTAMPS=1 |
| 5035 | ;; |
| 5036 | no) ENABLE_TIMESTAMPS=0 |
| 5037 | ;; |
| 5038 | default) ENABLE_TIMESTAMPS=1 |
| 5039 | ;; |
| 5040 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 |
| 5041 | echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} |
| 5042 | { (exit 1); exit 1; }; } ;; |
| 5043 | esac |
| 5044 | |
| 5045 | cat >>confdefs.h <<_ACEOF |
| 5046 | #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS |
| 5047 | _ACEOF |
| 5048 | |
| 5049 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5050 | TARGETS_TO_BUILD="" |
| 5051 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5052 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5053 | enableval=$enable_targets; |
| 5054 | else |
| 5055 | enableval=all |
| 5056 | fi |
| 5057 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5058 | if test "$enableval" = host-only ; then |
| 5059 | enableval=host |
| 5060 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5061 | case "$enableval" in |
Chris Lattner | 60cb528 | 2010-10-11 05:44:40 +0000 | [diff] [blame] | 5062 | 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] | 5063 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5064 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5065 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5066 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5067 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5068 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 5069 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 5070 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5071 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 5072 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5073 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5074 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 5075 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 5076 | blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 5077 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5078 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5079 | mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5080 | ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5081 | host) case "$llvm_cv_target_arch" in |
| 5082 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5083 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5084 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5085 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 5086 | Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 5087 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5088 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5089 | MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5090 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5091 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5092 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 6ca835d | 2010-01-05 20:45:43 +0000 | [diff] [blame] | 5093 | s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5094 | Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5095 | PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5096 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 5097 | echo "$as_me: error: Can not set target to build" >&2;} |
| 5098 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5099 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5100 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 5101 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 5102 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5103 | esac |
| 5104 | done |
| 5105 | ;; |
| 5106 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5107 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 5108 | |
| 5109 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5110 | # Determine whether we are building LLVM support for the native architecture. |
| 5111 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 5112 | for a_target in $TARGETS_TO_BUILD; do |
| 5113 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
| 5114 | |
| 5115 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5116 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH |
| 5117 | _ACEOF |
| 5118 | |
| 5119 | LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" |
| 5120 | LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" |
| 5121 | LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5122 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then |
| 5123 | LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" |
| 5124 | fi |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5125 | |
| 5126 | cat >>confdefs.h <<_ACEOF |
| 5127 | #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET |
Daniel Dunbar | b1247c3 | 2010-08-03 14:26:17 +0000 | [diff] [blame] | 5128 | _ACEOF |
| 5129 | |
| 5130 | |
| 5131 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5132 | #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO |
| 5133 | _ACEOF |
| 5134 | |
| 5135 | |
| 5136 | cat >>confdefs.h <<_ACEOF |
| 5137 | #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5138 | _ACEOF |
| 5139 | |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5140 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then |
Jan Sjödin | dd54ffd | 2011-03-09 17:25:46 +0000 | [diff] [blame] | 5141 | |
| 5142 | cat >>confdefs.h <<_ACEOF |
| 5143 | #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER |
| 5144 | _ACEOF |
| 5145 | |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5146 | fi |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5147 | fi |
| 5148 | done |
| 5149 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5150 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual |
| 5151 | # target feature def files. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5152 | LLVM_ENUM_TARGETS="" |
| 5153 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5154 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5155 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5156 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5157 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
Chris Lattner | e15f2e1 | 2010-11-14 19:10:47 +0000 | [diff] [blame] | 5158 | if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then |
Jim Grosbach | 7ac1609 | 2010-10-01 22:39:28 +0000 | [diff] [blame] | 5159 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5160 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5161 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5162 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5163 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5164 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 5165 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 5166 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5167 | done |
| 5168 | |
| 5169 | |
| 5170 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5171 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5172 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5173 | # Check whether --enable-cbe-printf-a was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5174 | if test "${enable_cbe_printf_a+set}" = set; then |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5175 | enableval=$enable_cbe_printf_a; |
| 5176 | else |
| 5177 | enableval=default |
| 5178 | fi |
| 5179 | |
| 5180 | case "$enableval" in |
| 5181 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5182 | ;; |
| 5183 | no) ENABLE_CBE_PRINTF_A=0 |
| 5184 | ;; |
| 5185 | default) ENABLE_CBE_PRINTF_A=1 |
| 5186 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5187 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5188 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5189 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5190 | esac |
| 5191 | |
| 5192 | cat >>confdefs.h <<_ACEOF |
| 5193 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5194 | _ACEOF |
| 5195 | |
| 5196 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5197 | |
| 5198 | # Check whether --with-llvmgccdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5199 | if test "${with_llvmgccdir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5200 | withval=$with_llvmgccdir; |
| 5201 | else |
| 5202 | withval=default |
| 5203 | fi |
| 5204 | |
| 5205 | case "$withval" in |
| 5206 | default) WITH_LLVMGCCDIR=default ;; |
| 5207 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5208 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 5209 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 5210 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5211 | esac |
| 5212 | |
| 5213 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5214 | # Check whether --with-llvmgcc was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5215 | if test "${with_llvmgcc+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5216 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 5217 | WITH_LLVMGCCDIR="" |
| 5218 | fi |
| 5219 | |
| 5220 | |
| 5221 | |
| 5222 | # Check whether --with-llvmgxx was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5223 | if test "${with_llvmgxx+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5224 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5225 | WITH_LLVMGCCDIR="" |
| 5226 | fi |
| 5227 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5228 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5229 | if test -n "$LLVMGCC"; then |
| 5230 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5231 | fi |
| 5232 | |
| 5233 | if test -n "$LLVMGXX"; then |
| 5234 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5235 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5236 | |
| 5237 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5238 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5239 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5240 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5241 | fi |
| 5242 | |
| 5243 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5244 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5245 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5246 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5247 | fi |
| 5248 | |
| 5249 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 5250 | # Check whether --with-clang was given. |
| 5251 | if test "${with_clang+set}" = set; then |
| 5252 | withval=$with_clang; |
| 5253 | else |
| 5254 | with_clang=default |
| 5255 | fi |
| 5256 | |
| 5257 | |
| 5258 | |
| 5259 | # Check whether --with-built-clang was given. |
| 5260 | if test "${with_built_clang+set}" = set; then |
| 5261 | withval=$with_built_clang; |
| 5262 | else |
| 5263 | with_built_clang=check |
| 5264 | fi |
| 5265 | |
| 5266 | |
| 5267 | { echo "$as_me:$LINENO: checking clang compiler" >&5 |
| 5268 | echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; } |
| 5269 | WITH_CLANGPATH="" |
| 5270 | WITH_BUILT_CLANG=0 |
| 5271 | if test "$with_clang" != "default"; then |
| 5272 | WITH_CLANGPATH="$with_clang" |
| 5273 | if ! test -x "$WITH_CLANGPATH"; then |
| 5274 | { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5 |
| 5275 | echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;} |
| 5276 | { (exit 1); exit 1; }; } |
| 5277 | fi |
| 5278 | elif test "$with_built_clang" = "yes"; then |
| 5279 | WITH_BUILT_CLANG=1 |
| 5280 | elif test "$with_built_clang" = "no"; then |
| 5281 | WITH_BUILT_CLANG=0 |
| 5282 | else |
| 5283 | if test "$with_built_clang" != "check"; then |
| 5284 | { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5 |
| 5285 | echo "$as_me: error: invalid value for --with-built-clang." >&2;} |
| 5286 | { (exit 1); exit 1; }; } |
| 5287 | fi |
| 5288 | |
| 5289 | if test -f ${srcdir}/tools/clang/README.txt; then |
| 5290 | WITH_BUILT_CLANG=1 |
| 5291 | fi |
| 5292 | fi |
| 5293 | |
| 5294 | if ! test -z "$WITH_CLANGPATH"; then |
| 5295 | { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5 |
| 5296 | echo "${ECHO_T}$WITH_CLANGPATH" >&6; } |
| 5297 | WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++` |
| 5298 | elif test "$WITH_BUILT_CLANG" = "1"; then |
| 5299 | { echo "$as_me:$LINENO: result: built" >&5 |
| 5300 | echo "${ECHO_T}built" >&6; } |
| 5301 | else |
| 5302 | { echo "$as_me:$LINENO: result: none" >&5 |
| 5303 | echo "${ECHO_T}none" >&6; } |
| 5304 | fi |
| 5305 | CLANGPATH=$WITH_CLANGPATH |
| 5306 | |
| 5307 | CLANGXXPATH=$WITH_CLANGXXPATH |
| 5308 | |
| 5309 | ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG |
| 5310 | |
| 5311 | |
| 5312 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5313 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5314 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5315 | withval=$with_optimize_option; |
| 5316 | else |
| 5317 | withval=default |
| 5318 | fi |
| 5319 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5320 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5321 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5322 | case "$withval" in |
| 5323 | default) |
| 5324 | case "$llvm_cv_os_type" in |
Daniel Dunbar | f913878 | 2010-04-30 17:12:26 +0000 | [diff] [blame] | 5325 | FreeBSD) optimize_option=-O2 ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 5326 | MingW) optimize_option=-O2 ;; |
| 5327 | *) optimize_option=-O3 ;; |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5328 | esac ;; |
| 5329 | *) optimize_option="$withval" ;; |
| 5330 | esac |
| 5331 | OPTIMIZE_OPTION=$optimize_option |
| 5332 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5333 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5334 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5335 | |
| 5336 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5337 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5338 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5339 | withval=$with_extra_options; |
| 5340 | else |
| 5341 | withval=default |
| 5342 | fi |
| 5343 | |
| 5344 | case "$withval" in |
| 5345 | default) EXTRA_OPTIONS= ;; |
| 5346 | *) EXTRA_OPTIONS=$withval ;; |
| 5347 | esac |
| 5348 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5349 | |
| 5350 | |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 5351 | |
| 5352 | # Check whether --with-extra-ld-options was given. |
| 5353 | if test "${with_extra_ld_options+set}" = set; then |
| 5354 | withval=$with_extra_ld_options; |
| 5355 | else |
| 5356 | withval=default |
| 5357 | fi |
| 5358 | |
| 5359 | case "$withval" in |
| 5360 | default) EXTRA_LD_OPTIONS= ;; |
| 5361 | *) EXTRA_LD_OPTIONS=$withval ;; |
| 5362 | esac |
| 5363 | EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS |
| 5364 | |
| 5365 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5366 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5367 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5368 | enableval=$enable_bindings; |
| 5369 | else |
| 5370 | enableval=default |
| 5371 | fi |
| 5372 | |
| 5373 | BINDINGS_TO_BUILD="" |
| 5374 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5375 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5376 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5377 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5378 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5379 | case "$a_binding" in |
| 5380 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5381 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5382 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5383 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5384 | esac |
| 5385 | done |
| 5386 | ;; |
| 5387 | esac |
| 5388 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5389 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5390 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5391 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5392 | withval=$with_ocaml_libdir; |
| 5393 | else |
| 5394 | withval=auto |
| 5395 | fi |
| 5396 | |
| 5397 | case "$withval" in |
| 5398 | auto) with_ocaml_libdir="$withval" ;; |
| 5399 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5400 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5401 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5402 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5403 | esac |
| 5404 | |
| 5405 | |
Chandler Carruth | 6b24116 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 5406 | # Check whether --with-clang-resource-dir was given. |
| 5407 | if test "${with_clang_resource_dir+set}" = set; then |
| 5408 | withval=$with_clang_resource_dir; |
| 5409 | else |
| 5410 | withval="" |
| 5411 | fi |
| 5412 | |
| 5413 | |
| 5414 | cat >>confdefs.h <<_ACEOF |
| 5415 | #define CLANG_RESOURCE_DIR "$withval" |
| 5416 | _ACEOF |
| 5417 | |
| 5418 | |
| 5419 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5420 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5421 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5422 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5423 | else |
| 5424 | withval="" |
| 5425 | fi |
| 5426 | |
| 5427 | |
| 5428 | cat >>confdefs.h <<_ACEOF |
| 5429 | #define C_INCLUDE_DIRS "$withval" |
| 5430 | _ACEOF |
| 5431 | |
| 5432 | |
| 5433 | |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5434 | # Check whether --with-cxx-include-root was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5435 | if test "${with_cxx_include_root+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5436 | withval=$with_cxx_include_root; |
| 5437 | else |
| 5438 | withval="" |
| 5439 | fi |
| 5440 | |
| 5441 | |
| 5442 | cat >>confdefs.h <<_ACEOF |
| 5443 | #define CXX_INCLUDE_ROOT "$withval" |
| 5444 | _ACEOF |
| 5445 | |
| 5446 | |
| 5447 | |
| 5448 | # Check whether --with-cxx-include-arch was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5449 | if test "${with_cxx_include_arch+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5450 | withval=$with_cxx_include_arch; |
| 5451 | else |
| 5452 | withval="" |
| 5453 | fi |
| 5454 | |
| 5455 | |
| 5456 | cat >>confdefs.h <<_ACEOF |
| 5457 | #define CXX_INCLUDE_ARCH "$withval" |
| 5458 | _ACEOF |
| 5459 | |
| 5460 | |
| 5461 | |
| 5462 | # Check whether --with-cxx-include-32bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5463 | if test "${with_cxx_include_32bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5464 | withval=$with_cxx_include_32bit_dir; |
| 5465 | else |
| 5466 | withval="" |
| 5467 | fi |
| 5468 | |
| 5469 | |
| 5470 | cat >>confdefs.h <<_ACEOF |
| 5471 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5472 | _ACEOF |
| 5473 | |
| 5474 | |
| 5475 | |
| 5476 | # Check whether --with-cxx-include-64bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5477 | if test "${with_cxx_include_64bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5478 | withval=$with_cxx_include_64bit_dir; |
| 5479 | else |
| 5480 | withval="" |
| 5481 | fi |
| 5482 | |
| 5483 | |
| 5484 | cat >>confdefs.h <<_ACEOF |
| 5485 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5486 | _ACEOF |
| 5487 | |
| 5488 | |
| 5489 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5490 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5491 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5492 | withval=$with_binutils_include; |
| 5493 | else |
| 5494 | withval=default |
| 5495 | fi |
| 5496 | |
| 5497 | case "$withval" in |
| 5498 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5499 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5500 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5501 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5502 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5503 | esac |
| 5504 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5505 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5506 | |
| 5507 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5508 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5509 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5510 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5511 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5512 | fi |
| 5513 | fi |
| 5514 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5515 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5516 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5517 | enableval=$enable_libffi; case "$enableval" in |
| 5518 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5519 | no) llvm_cv_enable_libffi="no" ;; |
| 5520 | *) { { 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] | 5521 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5522 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5523 | esac |
| 5524 | else |
| 5525 | llvm_cv_enable_libffi=no |
| 5526 | fi |
| 5527 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5528 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5529 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5530 | ac_ext=c |
| 5531 | ac_cpp='$CPP $CPPFLAGS' |
| 5532 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5533 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5534 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5535 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5536 | 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] | 5537 | # On Suns, sometimes $CPP names a directory. |
| 5538 | if test -n "$CPP" && test -d "$CPP"; then |
| 5539 | CPP= |
| 5540 | fi |
| 5541 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5542 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5544 | else |
| 5545 | # Double quotes because CPP needs to be expanded |
| 5546 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5547 | do |
| 5548 | ac_preproc_ok=false |
| 5549 | for ac_c_preproc_warn_flag in '' yes |
| 5550 | do |
| 5551 | # Use a header file that comes with gcc, so configuring glibc |
| 5552 | # with a fresh cross-compiler works. |
| 5553 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5554 | # <limits.h> exists even on freestanding compilers. |
| 5555 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5556 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5557 | cat >conftest.$ac_ext <<_ACEOF |
| 5558 | /* confdefs.h. */ |
| 5559 | _ACEOF |
| 5560 | cat confdefs.h >>conftest.$ac_ext |
| 5561 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5562 | /* end confdefs.h. */ |
| 5563 | #ifdef __STDC__ |
| 5564 | # include <limits.h> |
| 5565 | #else |
| 5566 | # include <assert.h> |
| 5567 | #endif |
| 5568 | Syntax error |
| 5569 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5570 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5571 | case "(($ac_try" in |
| 5572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5573 | *) ac_try_echo=$ac_try;; |
| 5574 | esac |
| 5575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5576 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5577 | ac_status=$? |
| 5578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5579 | rm -f conftest.er1 |
| 5580 | cat conftest.err >&5 |
| 5581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5582 | (exit $ac_status); } >/dev/null; then |
| 5583 | if test -s conftest.err; then |
| 5584 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5585 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5586 | else |
| 5587 | ac_cpp_err= |
| 5588 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5589 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5590 | ac_cpp_err=yes |
| 5591 | fi |
| 5592 | if test -z "$ac_cpp_err"; then |
| 5593 | : |
| 5594 | else |
| 5595 | echo "$as_me: failed program was:" >&5 |
| 5596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5597 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5598 | # Broken: fails on valid input. |
| 5599 | continue |
| 5600 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5601 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5602 | rm -f conftest.err conftest.$ac_ext |
| 5603 | |
| 5604 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5605 | # can be detected and how. |
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 | #include <ac_nonexistent.h> |
| 5613 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5614 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5615 | case "(($ac_try" in |
| 5616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5617 | *) ac_try_echo=$ac_try;; |
| 5618 | esac |
| 5619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5620 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5621 | ac_status=$? |
| 5622 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5623 | rm -f conftest.er1 |
| 5624 | cat conftest.err >&5 |
| 5625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5626 | (exit $ac_status); } >/dev/null; then |
| 5627 | if test -s conftest.err; then |
| 5628 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5629 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5630 | else |
| 5631 | ac_cpp_err= |
| 5632 | fi |
| 5633 | else |
| 5634 | ac_cpp_err=yes |
| 5635 | fi |
| 5636 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5637 | # Broken: success on invalid input. |
| 5638 | continue |
| 5639 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5640 | echo "$as_me: failed program was:" >&5 |
| 5641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5642 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5643 | # Passes both tests. |
| 5644 | ac_preproc_ok=: |
| 5645 | break |
| 5646 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5647 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5648 | rm -f conftest.err conftest.$ac_ext |
| 5649 | |
| 5650 | done |
| 5651 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5652 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5653 | if $ac_preproc_ok; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5654 | break |
| 5655 | fi |
| 5656 | |
| 5657 | done |
| 5658 | ac_cv_prog_CPP=$CPP |
| 5659 | |
| 5660 | fi |
| 5661 | CPP=$ac_cv_prog_CPP |
| 5662 | else |
| 5663 | ac_cv_prog_CPP=$CPP |
| 5664 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5665 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5666 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5667 | ac_preproc_ok=false |
| 5668 | for ac_c_preproc_warn_flag in '' yes |
| 5669 | do |
| 5670 | # Use a header file that comes with gcc, so configuring glibc |
| 5671 | # with a fresh cross-compiler works. |
| 5672 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5673 | # <limits.h> exists even on freestanding compilers. |
| 5674 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5675 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5676 | cat >conftest.$ac_ext <<_ACEOF |
| 5677 | /* confdefs.h. */ |
| 5678 | _ACEOF |
| 5679 | cat confdefs.h >>conftest.$ac_ext |
| 5680 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5681 | /* end confdefs.h. */ |
| 5682 | #ifdef __STDC__ |
| 5683 | # include <limits.h> |
| 5684 | #else |
| 5685 | # include <assert.h> |
| 5686 | #endif |
| 5687 | Syntax error |
| 5688 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5689 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5690 | case "(($ac_try" in |
| 5691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5692 | *) ac_try_echo=$ac_try;; |
| 5693 | esac |
| 5694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5695 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5696 | ac_status=$? |
| 5697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5698 | rm -f conftest.er1 |
| 5699 | cat conftest.err >&5 |
| 5700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5701 | (exit $ac_status); } >/dev/null; then |
| 5702 | if test -s conftest.err; then |
| 5703 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5704 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5705 | else |
| 5706 | ac_cpp_err= |
| 5707 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5708 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5709 | ac_cpp_err=yes |
| 5710 | fi |
| 5711 | if test -z "$ac_cpp_err"; then |
| 5712 | : |
| 5713 | else |
| 5714 | echo "$as_me: failed program was:" >&5 |
| 5715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5716 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5717 | # Broken: fails on valid input. |
| 5718 | continue |
| 5719 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5720 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5721 | rm -f conftest.err conftest.$ac_ext |
| 5722 | |
| 5723 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5724 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5725 | cat >conftest.$ac_ext <<_ACEOF |
| 5726 | /* confdefs.h. */ |
| 5727 | _ACEOF |
| 5728 | cat confdefs.h >>conftest.$ac_ext |
| 5729 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5730 | /* end confdefs.h. */ |
| 5731 | #include <ac_nonexistent.h> |
| 5732 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5733 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5734 | case "(($ac_try" in |
| 5735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5736 | *) ac_try_echo=$ac_try;; |
| 5737 | esac |
| 5738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5739 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5740 | ac_status=$? |
| 5741 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5742 | rm -f conftest.er1 |
| 5743 | cat conftest.err >&5 |
| 5744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5745 | (exit $ac_status); } >/dev/null; then |
| 5746 | if test -s conftest.err; then |
| 5747 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5748 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5749 | else |
| 5750 | ac_cpp_err= |
| 5751 | fi |
| 5752 | else |
| 5753 | ac_cpp_err=yes |
| 5754 | fi |
| 5755 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5756 | # Broken: success on invalid input. |
| 5757 | continue |
| 5758 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5759 | echo "$as_me: failed program was:" >&5 |
| 5760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5761 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5762 | # Passes both tests. |
| 5763 | ac_preproc_ok=: |
| 5764 | break |
| 5765 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5766 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5767 | rm -f conftest.err conftest.$ac_ext |
| 5768 | |
| 5769 | done |
| 5770 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5771 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5772 | if $ac_preproc_ok; then |
| 5773 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5774 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5775 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5776 | See \`config.log' for more details." >&5 |
| 5777 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5778 | See \`config.log' for more details." >&2;} |
| 5779 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5780 | fi |
| 5781 | |
| 5782 | ac_ext=c |
| 5783 | ac_cpp='$CPP $CPPFLAGS' |
| 5784 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5785 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5786 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5787 | |
| 5788 | ac_ext=c |
| 5789 | ac_cpp='$CPP $CPPFLAGS' |
| 5790 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5791 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5792 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5793 | if test -n "$ac_tool_prefix"; then |
| 5794 | for ac_prog in gcc |
| 5795 | do |
| 5796 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5797 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5798 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5800 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5802 | else |
| 5803 | if test -n "$CC"; then |
| 5804 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5805 | else |
| 5806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5807 | for as_dir in $PATH |
| 5808 | do |
| 5809 | IFS=$as_save_IFS |
| 5810 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5811 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5812 | 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] | 5813 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5814 | 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] | 5815 | break 2 |
| 5816 | fi |
| 5817 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5818 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5819 | IFS=$as_save_IFS |
| 5820 | |
| 5821 | fi |
| 5822 | fi |
| 5823 | CC=$ac_cv_prog_CC |
| 5824 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5825 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5826 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5827 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5828 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5829 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5830 | fi |
| 5831 | |
| 5832 | |
| 5833 | test -n "$CC" && break |
| 5834 | done |
| 5835 | fi |
| 5836 | if test -z "$CC"; then |
| 5837 | ac_ct_CC=$CC |
| 5838 | for ac_prog in gcc |
| 5839 | do |
| 5840 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5841 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5842 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5843 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5844 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5846 | else |
| 5847 | if test -n "$ac_ct_CC"; then |
| 5848 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5849 | else |
| 5850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5851 | for as_dir in $PATH |
| 5852 | do |
| 5853 | IFS=$as_save_IFS |
| 5854 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5855 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5856 | 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] | 5857 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5858 | 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] | 5859 | break 2 |
| 5860 | fi |
| 5861 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5862 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5863 | IFS=$as_save_IFS |
| 5864 | |
| 5865 | fi |
| 5866 | fi |
| 5867 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5868 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5869 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5870 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5871 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5872 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5873 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5874 | fi |
| 5875 | |
| 5876 | |
| 5877 | test -n "$ac_ct_CC" && break |
| 5878 | done |
| 5879 | |
| 5880 | if test "x$ac_ct_CC" = x; then |
| 5881 | CC="" |
| 5882 | else |
| 5883 | case $cross_compiling:$ac_tool_warned in |
| 5884 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5885 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5886 | whose name does not start with the host triplet. If you think this |
| 5887 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5888 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5889 | whose name does not start with the host triplet. If you think this |
| 5890 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5891 | ac_tool_warned=yes ;; |
| 5892 | esac |
| 5893 | CC=$ac_ct_CC |
| 5894 | fi |
| 5895 | fi |
| 5896 | |
| 5897 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5898 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5899 | See \`config.log' for more details." >&5 |
| 5900 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5901 | See \`config.log' for more details." >&2;} |
| 5902 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5903 | |
| 5904 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5905 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5906 | ac_compiler=`set X $ac_compile; echo $2` |
| 5907 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5908 | case "(($ac_try" in |
| 5909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5910 | *) ac_try_echo=$ac_try;; |
| 5911 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5913 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5914 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5916 | (exit $ac_status); } |
| 5917 | { (ac_try="$ac_compiler -v >&5" |
| 5918 | case "(($ac_try" in |
| 5919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5920 | *) ac_try_echo=$ac_try;; |
| 5921 | esac |
| 5922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5923 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5924 | ac_status=$? |
| 5925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5926 | (exit $ac_status); } |
| 5927 | { (ac_try="$ac_compiler -V >&5" |
| 5928 | case "(($ac_try" in |
| 5929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5930 | *) ac_try_echo=$ac_try;; |
| 5931 | esac |
| 5932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5933 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5934 | ac_status=$? |
| 5935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5936 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5937 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5938 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5939 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5940 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5942 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5943 | cat >conftest.$ac_ext <<_ACEOF |
| 5944 | /* confdefs.h. */ |
| 5945 | _ACEOF |
| 5946 | cat confdefs.h >>conftest.$ac_ext |
| 5947 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5948 | /* end confdefs.h. */ |
| 5949 | |
| 5950 | int |
| 5951 | main () |
| 5952 | { |
| 5953 | #ifndef __GNUC__ |
| 5954 | choke me |
| 5955 | #endif |
| 5956 | |
| 5957 | ; |
| 5958 | return 0; |
| 5959 | } |
| 5960 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5961 | rm -f conftest.$ac_objext |
| 5962 | if { (ac_try="$ac_compile" |
| 5963 | case "(($ac_try" in |
| 5964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5965 | *) ac_try_echo=$ac_try;; |
| 5966 | esac |
| 5967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5968 | (eval "$ac_compile") 2>conftest.er1 |
| 5969 | ac_status=$? |
| 5970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5971 | rm -f conftest.er1 |
| 5972 | cat conftest.err >&5 |
| 5973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5974 | (exit $ac_status); } && |
| 5975 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5976 | { (case "(($ac_try" in |
| 5977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5978 | *) ac_try_echo=$ac_try;; |
| 5979 | esac |
| 5980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5981 | (eval "$ac_try") 2>&5 |
| 5982 | ac_status=$? |
| 5983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5984 | (exit $ac_status); }; } && |
| 5985 | { ac_try='test -s conftest.$ac_objext' |
| 5986 | { (case "(($ac_try" in |
| 5987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5988 | *) ac_try_echo=$ac_try;; |
| 5989 | esac |
| 5990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5991 | (eval "$ac_try") 2>&5 |
| 5992 | ac_status=$? |
| 5993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5994 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5995 | ac_compiler_gnu=yes |
| 5996 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5997 | echo "$as_me: failed program was:" >&5 |
| 5998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5999 | |
| 6000 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6001 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6002 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6004 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 6005 | |
| 6006 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6007 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 6008 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 6009 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6010 | ac_test_CFLAGS=${CFLAGS+set} |
| 6011 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6012 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 6013 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 6014 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 6015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6016 | else |
| 6017 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 6018 | ac_c_werror_flag=yes |
| 6019 | ac_cv_prog_cc_g=no |
| 6020 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6021 | cat >conftest.$ac_ext <<_ACEOF |
| 6022 | /* confdefs.h. */ |
| 6023 | _ACEOF |
| 6024 | cat confdefs.h >>conftest.$ac_ext |
| 6025 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6026 | /* end confdefs.h. */ |
| 6027 | |
| 6028 | int |
| 6029 | main () |
| 6030 | { |
| 6031 | |
| 6032 | ; |
| 6033 | return 0; |
| 6034 | } |
| 6035 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6036 | rm -f conftest.$ac_objext |
| 6037 | if { (ac_try="$ac_compile" |
| 6038 | case "(($ac_try" in |
| 6039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6040 | *) ac_try_echo=$ac_try;; |
| 6041 | esac |
| 6042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6043 | (eval "$ac_compile") 2>conftest.er1 |
| 6044 | ac_status=$? |
| 6045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6046 | rm -f conftest.er1 |
| 6047 | cat conftest.err >&5 |
| 6048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6049 | (exit $ac_status); } && |
| 6050 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6051 | { (case "(($ac_try" in |
| 6052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6053 | *) ac_try_echo=$ac_try;; |
| 6054 | esac |
| 6055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6056 | (eval "$ac_try") 2>&5 |
| 6057 | ac_status=$? |
| 6058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6059 | (exit $ac_status); }; } && |
| 6060 | { ac_try='test -s conftest.$ac_objext' |
| 6061 | { (case "(($ac_try" in |
| 6062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6063 | *) ac_try_echo=$ac_try;; |
| 6064 | esac |
| 6065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6066 | (eval "$ac_try") 2>&5 |
| 6067 | ac_status=$? |
| 6068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6069 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6070 | ac_cv_prog_cc_g=yes |
| 6071 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6072 | echo "$as_me: failed program was:" >&5 |
| 6073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6074 | |
| 6075 | CFLAGS="" |
| 6076 | cat >conftest.$ac_ext <<_ACEOF |
| 6077 | /* confdefs.h. */ |
| 6078 | _ACEOF |
| 6079 | cat confdefs.h >>conftest.$ac_ext |
| 6080 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6081 | /* end confdefs.h. */ |
| 6082 | |
| 6083 | int |
| 6084 | main () |
| 6085 | { |
| 6086 | |
| 6087 | ; |
| 6088 | return 0; |
| 6089 | } |
| 6090 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6091 | rm -f conftest.$ac_objext |
| 6092 | if { (ac_try="$ac_compile" |
| 6093 | case "(($ac_try" in |
| 6094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6095 | *) ac_try_echo=$ac_try;; |
| 6096 | esac |
| 6097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6098 | (eval "$ac_compile") 2>conftest.er1 |
| 6099 | ac_status=$? |
| 6100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6101 | rm -f conftest.er1 |
| 6102 | cat conftest.err >&5 |
| 6103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6104 | (exit $ac_status); } && |
| 6105 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6106 | { (case "(($ac_try" in |
| 6107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6108 | *) ac_try_echo=$ac_try;; |
| 6109 | esac |
| 6110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6111 | (eval "$ac_try") 2>&5 |
| 6112 | ac_status=$? |
| 6113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6114 | (exit $ac_status); }; } && |
| 6115 | { ac_try='test -s conftest.$ac_objext' |
| 6116 | { (case "(($ac_try" in |
| 6117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6118 | *) ac_try_echo=$ac_try;; |
| 6119 | esac |
| 6120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6121 | (eval "$ac_try") 2>&5 |
| 6122 | ac_status=$? |
| 6123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6124 | (exit $ac_status); }; }; then |
| 6125 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6126 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6127 | echo "$as_me: failed program was:" >&5 |
| 6128 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6129 | |
| 6130 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6131 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6132 | cat >conftest.$ac_ext <<_ACEOF |
| 6133 | /* confdefs.h. */ |
| 6134 | _ACEOF |
| 6135 | cat confdefs.h >>conftest.$ac_ext |
| 6136 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6137 | /* end confdefs.h. */ |
| 6138 | |
| 6139 | int |
| 6140 | main () |
| 6141 | { |
| 6142 | |
| 6143 | ; |
| 6144 | return 0; |
| 6145 | } |
| 6146 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6147 | rm -f conftest.$ac_objext |
| 6148 | if { (ac_try="$ac_compile" |
| 6149 | case "(($ac_try" in |
| 6150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6151 | *) ac_try_echo=$ac_try;; |
| 6152 | esac |
| 6153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6154 | (eval "$ac_compile") 2>conftest.er1 |
| 6155 | ac_status=$? |
| 6156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6157 | rm -f conftest.er1 |
| 6158 | cat conftest.err >&5 |
| 6159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6160 | (exit $ac_status); } && |
| 6161 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6162 | { (case "(($ac_try" in |
| 6163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6164 | *) ac_try_echo=$ac_try;; |
| 6165 | esac |
| 6166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6167 | (eval "$ac_try") 2>&5 |
| 6168 | ac_status=$? |
| 6169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6170 | (exit $ac_status); }; } && |
| 6171 | { ac_try='test -s conftest.$ac_objext' |
| 6172 | { (case "(($ac_try" in |
| 6173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6174 | *) ac_try_echo=$ac_try;; |
| 6175 | esac |
| 6176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6177 | (eval "$ac_try") 2>&5 |
| 6178 | ac_status=$? |
| 6179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6180 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6181 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6182 | else |
| 6183 | echo "$as_me: failed program was:" >&5 |
| 6184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6185 | |
| 6186 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6187 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6188 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6190 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6191 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6193 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6194 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6196 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6197 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6198 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 6199 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6200 | if test "$ac_test_CFLAGS" = set; then |
| 6201 | CFLAGS=$ac_save_CFLAGS |
| 6202 | elif test $ac_cv_prog_cc_g = yes; then |
| 6203 | if test "$GCC" = yes; then |
| 6204 | CFLAGS="-g -O2" |
| 6205 | else |
| 6206 | CFLAGS="-g" |
| 6207 | fi |
| 6208 | else |
| 6209 | if test "$GCC" = yes; then |
| 6210 | CFLAGS="-O2" |
| 6211 | else |
| 6212 | CFLAGS= |
| 6213 | fi |
| 6214 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6215 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 6216 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 6217 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 6218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6219 | else |
| 6220 | ac_cv_prog_cc_c89=no |
| 6221 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6222 | cat >conftest.$ac_ext <<_ACEOF |
| 6223 | /* confdefs.h. */ |
| 6224 | _ACEOF |
| 6225 | cat confdefs.h >>conftest.$ac_ext |
| 6226 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6227 | /* end confdefs.h. */ |
| 6228 | #include <stdarg.h> |
| 6229 | #include <stdio.h> |
| 6230 | #include <sys/types.h> |
| 6231 | #include <sys/stat.h> |
| 6232 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6233 | struct buf { int x; }; |
| 6234 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6235 | static char *e (p, i) |
| 6236 | char **p; |
| 6237 | int i; |
| 6238 | { |
| 6239 | return p[i]; |
| 6240 | } |
| 6241 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6242 | { |
| 6243 | char *s; |
| 6244 | va_list v; |
| 6245 | va_start (v,p); |
| 6246 | s = g (p, va_arg (v,int)); |
| 6247 | va_end (v); |
| 6248 | return s; |
| 6249 | } |
| 6250 | |
| 6251 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6252 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6253 | These don't provoke an error unfortunately, instead are silently treated |
| 6254 | as 'x'. The following induces an error, until -std is added to get |
| 6255 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6256 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6257 | that's true only with -std. */ |
| 6258 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6259 | |
| 6260 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6261 | inside strings and character constants. */ |
| 6262 | #define FOO(x) 'x' |
| 6263 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6264 | |
| 6265 | int test (int i, double x); |
| 6266 | struct s1 {int (*f) (int a);}; |
| 6267 | struct s2 {int (*f) (double a);}; |
| 6268 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6269 | int argc; |
| 6270 | char **argv; |
| 6271 | int |
| 6272 | main () |
| 6273 | { |
| 6274 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6275 | ; |
| 6276 | return 0; |
| 6277 | } |
| 6278 | _ACEOF |
| 6279 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6280 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6281 | do |
| 6282 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6283 | rm -f conftest.$ac_objext |
| 6284 | if { (ac_try="$ac_compile" |
| 6285 | case "(($ac_try" in |
| 6286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6287 | *) ac_try_echo=$ac_try;; |
| 6288 | esac |
| 6289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6290 | (eval "$ac_compile") 2>conftest.er1 |
| 6291 | ac_status=$? |
| 6292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6293 | rm -f conftest.er1 |
| 6294 | cat conftest.err >&5 |
| 6295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6296 | (exit $ac_status); } && |
| 6297 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6298 | { (case "(($ac_try" in |
| 6299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6300 | *) ac_try_echo=$ac_try;; |
| 6301 | esac |
| 6302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6303 | (eval "$ac_try") 2>&5 |
| 6304 | ac_status=$? |
| 6305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6306 | (exit $ac_status); }; } && |
| 6307 | { ac_try='test -s conftest.$ac_objext' |
| 6308 | { (case "(($ac_try" in |
| 6309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6310 | *) ac_try_echo=$ac_try;; |
| 6311 | esac |
| 6312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6313 | (eval "$ac_try") 2>&5 |
| 6314 | ac_status=$? |
| 6315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6316 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6317 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6318 | else |
| 6319 | echo "$as_me: failed program was:" >&5 |
| 6320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6321 | |
| 6322 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6323 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6324 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6325 | rm -f core conftest.err conftest.$ac_objext |
| 6326 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6327 | done |
| 6328 | rm -f conftest.$ac_ext |
| 6329 | CC=$ac_save_CC |
| 6330 | |
| 6331 | fi |
| 6332 | # AC_CACHE_VAL |
| 6333 | case "x$ac_cv_prog_cc_c89" in |
| 6334 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6335 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6336 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6337 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6338 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6339 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6340 | *) |
| 6341 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6342 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6343 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6344 | esac |
| 6345 | |
| 6346 | |
| 6347 | ac_ext=c |
| 6348 | ac_cpp='$CPP $CPPFLAGS' |
| 6349 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6350 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6351 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6352 | |
| 6353 | ac_ext=cpp |
| 6354 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6355 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6356 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6357 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6358 | if test -z "$CXX"; then |
| 6359 | if test -n "$CCC"; then |
| 6360 | CXX=$CCC |
| 6361 | else |
| 6362 | if test -n "$ac_tool_prefix"; then |
| 6363 | for ac_prog in g++ |
| 6364 | do |
| 6365 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6366 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6367 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6368 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6369 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 6370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6371 | else |
| 6372 | if test -n "$CXX"; then |
| 6373 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6374 | else |
| 6375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6376 | for as_dir in $PATH |
| 6377 | do |
| 6378 | IFS=$as_save_IFS |
| 6379 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6380 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6381 | 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] | 6382 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6383 | 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] | 6384 | break 2 |
| 6385 | fi |
| 6386 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6387 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6388 | IFS=$as_save_IFS |
| 6389 | |
| 6390 | fi |
| 6391 | fi |
| 6392 | CXX=$ac_cv_prog_CXX |
| 6393 | if test -n "$CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6394 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6395 | echo "${ECHO_T}$CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6396 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6397 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6398 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6399 | fi |
| 6400 | |
| 6401 | |
| 6402 | test -n "$CXX" && break |
| 6403 | done |
| 6404 | fi |
| 6405 | if test -z "$CXX"; then |
| 6406 | ac_ct_CXX=$CXX |
| 6407 | for ac_prog in g++ |
| 6408 | do |
| 6409 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6410 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6411 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6412 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6413 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6415 | else |
| 6416 | if test -n "$ac_ct_CXX"; then |
| 6417 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6418 | else |
| 6419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6420 | for as_dir in $PATH |
| 6421 | do |
| 6422 | IFS=$as_save_IFS |
| 6423 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6424 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6425 | 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] | 6426 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6427 | 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] | 6428 | break 2 |
| 6429 | fi |
| 6430 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6431 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6432 | IFS=$as_save_IFS |
| 6433 | |
| 6434 | fi |
| 6435 | fi |
| 6436 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6437 | if test -n "$ac_ct_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6438 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6439 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6440 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6441 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6442 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6443 | fi |
| 6444 | |
| 6445 | |
| 6446 | test -n "$ac_ct_CXX" && break |
| 6447 | done |
| 6448 | |
| 6449 | if test "x$ac_ct_CXX" = x; then |
| 6450 | CXX="g++" |
| 6451 | else |
| 6452 | case $cross_compiling:$ac_tool_warned in |
| 6453 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6454 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6455 | whose name does not start with the host triplet. If you think this |
| 6456 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6457 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6458 | whose name does not start with the host triplet. If you think this |
| 6459 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6460 | ac_tool_warned=yes ;; |
| 6461 | esac |
| 6462 | CXX=$ac_ct_CXX |
| 6463 | fi |
| 6464 | fi |
| 6465 | |
| 6466 | fi |
| 6467 | fi |
| 6468 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6469 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6470 | ac_compiler=`set X $ac_compile; echo $2` |
| 6471 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6472 | case "(($ac_try" in |
| 6473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6474 | *) ac_try_echo=$ac_try;; |
| 6475 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6477 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6478 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6480 | (exit $ac_status); } |
| 6481 | { (ac_try="$ac_compiler -v >&5" |
| 6482 | case "(($ac_try" in |
| 6483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6484 | *) ac_try_echo=$ac_try;; |
| 6485 | esac |
| 6486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6487 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6488 | ac_status=$? |
| 6489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6490 | (exit $ac_status); } |
| 6491 | { (ac_try="$ac_compiler -V >&5" |
| 6492 | case "(($ac_try" in |
| 6493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6494 | *) ac_try_echo=$ac_try;; |
| 6495 | esac |
| 6496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6497 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6498 | ac_status=$? |
| 6499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6500 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6501 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6502 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6503 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6504 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6506 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6507 | cat >conftest.$ac_ext <<_ACEOF |
| 6508 | /* confdefs.h. */ |
| 6509 | _ACEOF |
| 6510 | cat confdefs.h >>conftest.$ac_ext |
| 6511 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6512 | /* end confdefs.h. */ |
| 6513 | |
| 6514 | int |
| 6515 | main () |
| 6516 | { |
| 6517 | #ifndef __GNUC__ |
| 6518 | choke me |
| 6519 | #endif |
| 6520 | |
| 6521 | ; |
| 6522 | return 0; |
| 6523 | } |
| 6524 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6525 | rm -f conftest.$ac_objext |
| 6526 | if { (ac_try="$ac_compile" |
| 6527 | case "(($ac_try" in |
| 6528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6529 | *) ac_try_echo=$ac_try;; |
| 6530 | esac |
| 6531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6532 | (eval "$ac_compile") 2>conftest.er1 |
| 6533 | ac_status=$? |
| 6534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6535 | rm -f conftest.er1 |
| 6536 | cat conftest.err >&5 |
| 6537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6538 | (exit $ac_status); } && |
| 6539 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6540 | { (case "(($ac_try" in |
| 6541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6542 | *) ac_try_echo=$ac_try;; |
| 6543 | esac |
| 6544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6545 | (eval "$ac_try") 2>&5 |
| 6546 | ac_status=$? |
| 6547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6548 | (exit $ac_status); }; } && |
| 6549 | { ac_try='test -s conftest.$ac_objext' |
| 6550 | { (case "(($ac_try" in |
| 6551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6552 | *) ac_try_echo=$ac_try;; |
| 6553 | esac |
| 6554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6555 | (eval "$ac_try") 2>&5 |
| 6556 | ac_status=$? |
| 6557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6558 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6559 | ac_compiler_gnu=yes |
| 6560 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6561 | echo "$as_me: failed program was:" >&5 |
| 6562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6563 | |
| 6564 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6565 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6566 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6568 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6569 | |
| 6570 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6571 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6572 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6573 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6574 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6575 | ac_save_CXXFLAGS=$CXXFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6576 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6577 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6578 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6580 | else |
| 6581 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6582 | ac_cxx_werror_flag=yes |
| 6583 | ac_cv_prog_cxx_g=no |
| 6584 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6585 | cat >conftest.$ac_ext <<_ACEOF |
| 6586 | /* confdefs.h. */ |
| 6587 | _ACEOF |
| 6588 | cat confdefs.h >>conftest.$ac_ext |
| 6589 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6590 | /* end confdefs.h. */ |
| 6591 | |
| 6592 | int |
| 6593 | main () |
| 6594 | { |
| 6595 | |
| 6596 | ; |
| 6597 | return 0; |
| 6598 | } |
| 6599 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6600 | rm -f conftest.$ac_objext |
| 6601 | if { (ac_try="$ac_compile" |
| 6602 | case "(($ac_try" in |
| 6603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6604 | *) ac_try_echo=$ac_try;; |
| 6605 | esac |
| 6606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6607 | (eval "$ac_compile") 2>conftest.er1 |
| 6608 | ac_status=$? |
| 6609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6610 | rm -f conftest.er1 |
| 6611 | cat conftest.err >&5 |
| 6612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6613 | (exit $ac_status); } && |
| 6614 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6615 | { (case "(($ac_try" in |
| 6616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6617 | *) ac_try_echo=$ac_try;; |
| 6618 | esac |
| 6619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6620 | (eval "$ac_try") 2>&5 |
| 6621 | ac_status=$? |
| 6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6623 | (exit $ac_status); }; } && |
| 6624 | { ac_try='test -s conftest.$ac_objext' |
| 6625 | { (case "(($ac_try" in |
| 6626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6627 | *) ac_try_echo=$ac_try;; |
| 6628 | esac |
| 6629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6630 | (eval "$ac_try") 2>&5 |
| 6631 | ac_status=$? |
| 6632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6633 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6634 | ac_cv_prog_cxx_g=yes |
| 6635 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6636 | echo "$as_me: failed program was:" >&5 |
| 6637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6638 | |
| 6639 | CXXFLAGS="" |
| 6640 | cat >conftest.$ac_ext <<_ACEOF |
| 6641 | /* confdefs.h. */ |
| 6642 | _ACEOF |
| 6643 | cat confdefs.h >>conftest.$ac_ext |
| 6644 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6645 | /* end confdefs.h. */ |
| 6646 | |
| 6647 | int |
| 6648 | main () |
| 6649 | { |
| 6650 | |
| 6651 | ; |
| 6652 | return 0; |
| 6653 | } |
| 6654 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6655 | rm -f conftest.$ac_objext |
| 6656 | if { (ac_try="$ac_compile" |
| 6657 | case "(($ac_try" in |
| 6658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6659 | *) ac_try_echo=$ac_try;; |
| 6660 | esac |
| 6661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6662 | (eval "$ac_compile") 2>conftest.er1 |
| 6663 | ac_status=$? |
| 6664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6665 | rm -f conftest.er1 |
| 6666 | cat conftest.err >&5 |
| 6667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6668 | (exit $ac_status); } && |
| 6669 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6670 | { (case "(($ac_try" in |
| 6671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6672 | *) ac_try_echo=$ac_try;; |
| 6673 | esac |
| 6674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6675 | (eval "$ac_try") 2>&5 |
| 6676 | ac_status=$? |
| 6677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6678 | (exit $ac_status); }; } && |
| 6679 | { ac_try='test -s conftest.$ac_objext' |
| 6680 | { (case "(($ac_try" in |
| 6681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6682 | *) ac_try_echo=$ac_try;; |
| 6683 | esac |
| 6684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6685 | (eval "$ac_try") 2>&5 |
| 6686 | ac_status=$? |
| 6687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6688 | (exit $ac_status); }; }; then |
| 6689 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6690 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6691 | echo "$as_me: failed program was:" >&5 |
| 6692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6693 | |
| 6694 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6695 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6696 | cat >conftest.$ac_ext <<_ACEOF |
| 6697 | /* confdefs.h. */ |
| 6698 | _ACEOF |
| 6699 | cat confdefs.h >>conftest.$ac_ext |
| 6700 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6701 | /* end confdefs.h. */ |
| 6702 | |
| 6703 | int |
| 6704 | main () |
| 6705 | { |
| 6706 | |
| 6707 | ; |
| 6708 | return 0; |
| 6709 | } |
| 6710 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6711 | rm -f conftest.$ac_objext |
| 6712 | if { (ac_try="$ac_compile" |
| 6713 | case "(($ac_try" in |
| 6714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6715 | *) ac_try_echo=$ac_try;; |
| 6716 | esac |
| 6717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6718 | (eval "$ac_compile") 2>conftest.er1 |
| 6719 | ac_status=$? |
| 6720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6721 | rm -f conftest.er1 |
| 6722 | cat conftest.err >&5 |
| 6723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6724 | (exit $ac_status); } && |
| 6725 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6726 | { (case "(($ac_try" in |
| 6727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6728 | *) ac_try_echo=$ac_try;; |
| 6729 | esac |
| 6730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6731 | (eval "$ac_try") 2>&5 |
| 6732 | ac_status=$? |
| 6733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6734 | (exit $ac_status); }; } && |
| 6735 | { ac_try='test -s conftest.$ac_objext' |
| 6736 | { (case "(($ac_try" in |
| 6737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6738 | *) ac_try_echo=$ac_try;; |
| 6739 | esac |
| 6740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6741 | (eval "$ac_try") 2>&5 |
| 6742 | ac_status=$? |
| 6743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6744 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6745 | ac_cv_prog_cxx_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6746 | else |
| 6747 | echo "$as_me: failed program was:" >&5 |
| 6748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6749 | |
| 6750 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6751 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6752 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6754 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6755 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6757 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6760 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6761 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6762 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6763 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6764 | if test "$ac_test_CXXFLAGS" = set; then |
| 6765 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6766 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6767 | if test "$GXX" = yes; then |
| 6768 | CXXFLAGS="-g -O2" |
| 6769 | else |
| 6770 | CXXFLAGS="-g" |
| 6771 | fi |
| 6772 | else |
| 6773 | if test "$GXX" = yes; then |
| 6774 | CXXFLAGS="-O2" |
| 6775 | else |
| 6776 | CXXFLAGS= |
| 6777 | fi |
| 6778 | fi |
| 6779 | ac_ext=c |
| 6780 | ac_cpp='$CPP $CPPFLAGS' |
| 6781 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6782 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6783 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6784 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6785 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6786 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6787 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6788 | if test "${lt_cv_path_NM+set}" = set; then |
| 6789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6790 | else |
| 6791 | if test -n "$NM"; then |
| 6792 | # Let the user override the test. |
| 6793 | lt_cv_path_NM="$NM" |
| 6794 | else |
| 6795 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6796 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6797 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6798 | fi |
| 6799 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6800 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6801 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6802 | IFS="$lt_save_ifs" |
| 6803 | test -z "$ac_dir" && ac_dir=. |
| 6804 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6805 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6806 | # Check to see if the nm accepts a BSD-compat flag. |
| 6807 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6808 | # nm: unknown option "B" ignored |
| 6809 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6810 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6811 | */dev/null* | *'Invalid file or object type'*) |
| 6812 | lt_cv_path_NM="$tmp_nm -B" |
| 6813 | break |
| 6814 | ;; |
| 6815 | *) |
| 6816 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6817 | */dev/null*) |
| 6818 | lt_cv_path_NM="$tmp_nm -p" |
| 6819 | break |
| 6820 | ;; |
| 6821 | *) |
| 6822 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6823 | continue # so that we can try to find one that supports BSD flags |
| 6824 | ;; |
| 6825 | esac |
| 6826 | ;; |
| 6827 | esac |
| 6828 | fi |
| 6829 | done |
| 6830 | IFS="$lt_save_ifs" |
| 6831 | done |
| 6832 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6833 | fi |
| 6834 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6835 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6836 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6837 | NM="$lt_cv_path_NM" |
| 6838 | |
| 6839 | |
| 6840 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6841 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6842 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6843 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6845 | else |
| 6846 | llvm_cv_gnu_make_command='' |
| 6847 | for a in "$MAKE" make gmake gnumake ; do |
| 6848 | if test -z "$a" ; then continue ; fi ; |
| 6849 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6850 | then |
| 6851 | llvm_cv_gnu_make_command=$a ; |
| 6852 | break; |
| 6853 | fi |
| 6854 | done |
| 6855 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6856 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6857 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6858 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6859 | ifGNUmake='' ; |
| 6860 | else |
| 6861 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6862 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6863 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6864 | fi |
| 6865 | |
| 6866 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6867 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6868 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6869 | LN_S=$as_ln_s |
| 6870 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6871 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6872 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6873 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6874 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6875 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6876 | fi |
| 6877 | |
| 6878 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6879 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6880 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6881 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6882 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6884 | else |
| 6885 | case $CMP in |
| 6886 | [\\/]* | ?:[\\/]*) |
| 6887 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6888 | ;; |
| 6889 | *) |
| 6890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6891 | for as_dir in $PATH |
| 6892 | do |
| 6893 | IFS=$as_save_IFS |
| 6894 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6895 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6896 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6897 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6898 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6899 | break 2 |
| 6900 | fi |
| 6901 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6902 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6903 | IFS=$as_save_IFS |
| 6904 | |
| 6905 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6906 | ;; |
| 6907 | esac |
| 6908 | fi |
| 6909 | CMP=$ac_cv_path_CMP |
| 6910 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6911 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6912 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6913 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6914 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6915 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6916 | fi |
| 6917 | |
| 6918 | |
| 6919 | # Extract the first word of "cp", so it can be a program name with args. |
| 6920 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6921 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6922 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6923 | if test "${ac_cv_path_CP+set}" = set; then |
| 6924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6925 | else |
| 6926 | case $CP in |
| 6927 | [\\/]* | ?:[\\/]*) |
| 6928 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6929 | ;; |
| 6930 | *) |
| 6931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6932 | for as_dir in $PATH |
| 6933 | do |
| 6934 | IFS=$as_save_IFS |
| 6935 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6936 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6937 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6938 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6939 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6940 | break 2 |
| 6941 | fi |
| 6942 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6943 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6944 | IFS=$as_save_IFS |
| 6945 | |
| 6946 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6947 | ;; |
| 6948 | esac |
| 6949 | fi |
| 6950 | CP=$ac_cv_path_CP |
| 6951 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6952 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6953 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6954 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6955 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6956 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6957 | fi |
| 6958 | |
| 6959 | |
| 6960 | # Extract the first word of "date", so it can be a program name with args. |
| 6961 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6962 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6963 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6964 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6966 | else |
| 6967 | case $DATE in |
| 6968 | [\\/]* | ?:[\\/]*) |
| 6969 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6970 | ;; |
| 6971 | *) |
| 6972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6973 | for as_dir in $PATH |
| 6974 | do |
| 6975 | IFS=$as_save_IFS |
| 6976 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6977 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6978 | 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] | 6979 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6980 | 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] | 6981 | break 2 |
| 6982 | fi |
| 6983 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6984 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6985 | IFS=$as_save_IFS |
| 6986 | |
| 6987 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6988 | ;; |
| 6989 | esac |
| 6990 | fi |
| 6991 | DATE=$ac_cv_path_DATE |
| 6992 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6993 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6994 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6995 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6996 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6997 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6998 | fi |
| 6999 | |
| 7000 | |
| 7001 | # Extract the first word of "find", so it can be a program name with args. |
| 7002 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7003 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7005 | if test "${ac_cv_path_FIND+set}" = set; then |
| 7006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7007 | else |
| 7008 | case $FIND in |
| 7009 | [\\/]* | ?:[\\/]*) |
| 7010 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 7011 | ;; |
| 7012 | *) |
| 7013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7014 | for as_dir in $PATH |
| 7015 | do |
| 7016 | IFS=$as_save_IFS |
| 7017 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7018 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7019 | 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] | 7020 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7021 | 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] | 7022 | break 2 |
| 7023 | fi |
| 7024 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7025 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7026 | IFS=$as_save_IFS |
| 7027 | |
| 7028 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 7029 | ;; |
| 7030 | esac |
| 7031 | fi |
| 7032 | FIND=$ac_cv_path_FIND |
| 7033 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7034 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 7035 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7036 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7037 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7038 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7039 | fi |
| 7040 | |
| 7041 | |
| 7042 | # Extract the first word of "grep", so it can be a program name with args. |
| 7043 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7044 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7045 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7046 | if test "${ac_cv_path_GREP+set}" = set; then |
| 7047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7048 | else |
| 7049 | case $GREP in |
| 7050 | [\\/]* | ?:[\\/]*) |
| 7051 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 7052 | ;; |
| 7053 | *) |
| 7054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7055 | for as_dir in $PATH |
| 7056 | do |
| 7057 | IFS=$as_save_IFS |
| 7058 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7059 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7060 | 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] | 7061 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7062 | 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] | 7063 | break 2 |
| 7064 | fi |
| 7065 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7066 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7067 | IFS=$as_save_IFS |
| 7068 | |
| 7069 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 7070 | ;; |
| 7071 | esac |
| 7072 | fi |
| 7073 | GREP=$ac_cv_path_GREP |
| 7074 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7075 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 7076 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7077 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7078 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7079 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7080 | fi |
| 7081 | |
| 7082 | |
| 7083 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 7084 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7085 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7086 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7087 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 7088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7089 | else |
| 7090 | case $MKDIR in |
| 7091 | [\\/]* | ?:[\\/]*) |
| 7092 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 7093 | ;; |
| 7094 | *) |
| 7095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7096 | for as_dir in $PATH |
| 7097 | do |
| 7098 | IFS=$as_save_IFS |
| 7099 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7100 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7101 | 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] | 7102 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7103 | 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] | 7104 | break 2 |
| 7105 | fi |
| 7106 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7107 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7108 | IFS=$as_save_IFS |
| 7109 | |
| 7110 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 7111 | ;; |
| 7112 | esac |
| 7113 | fi |
| 7114 | MKDIR=$ac_cv_path_MKDIR |
| 7115 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7116 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 7117 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7118 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7119 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7120 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7121 | fi |
| 7122 | |
| 7123 | |
| 7124 | # Extract the first word of "mv", so it can be a program name with args. |
| 7125 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7126 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7128 | if test "${ac_cv_path_MV+set}" = set; then |
| 7129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7130 | else |
| 7131 | case $MV in |
| 7132 | [\\/]* | ?:[\\/]*) |
| 7133 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 7134 | ;; |
| 7135 | *) |
| 7136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7137 | for as_dir in $PATH |
| 7138 | do |
| 7139 | IFS=$as_save_IFS |
| 7140 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7141 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7142 | 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] | 7143 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7144 | 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] | 7145 | break 2 |
| 7146 | fi |
| 7147 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7148 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7149 | IFS=$as_save_IFS |
| 7150 | |
| 7151 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 7152 | ;; |
| 7153 | esac |
| 7154 | fi |
| 7155 | MV=$ac_cv_path_MV |
| 7156 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7157 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 7158 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7159 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7160 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7161 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7162 | fi |
| 7163 | |
| 7164 | |
| 7165 | if test -n "$ac_tool_prefix"; then |
| 7166 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7167 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7168 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7169 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7170 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 7171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7172 | else |
| 7173 | if test -n "$RANLIB"; then |
| 7174 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7175 | else |
| 7176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7177 | for as_dir in $PATH |
| 7178 | do |
| 7179 | IFS=$as_save_IFS |
| 7180 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7181 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7182 | 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] | 7183 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7184 | 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] | 7185 | break 2 |
| 7186 | fi |
| 7187 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7188 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7189 | IFS=$as_save_IFS |
| 7190 | |
| 7191 | fi |
| 7192 | fi |
| 7193 | RANLIB=$ac_cv_prog_RANLIB |
| 7194 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7195 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 7196 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7197 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7198 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7199 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7200 | fi |
| 7201 | |
| 7202 | |
| 7203 | fi |
| 7204 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7205 | ac_ct_RANLIB=$RANLIB |
| 7206 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7207 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7208 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7209 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7210 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 7211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7212 | else |
| 7213 | if test -n "$ac_ct_RANLIB"; then |
| 7214 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7215 | else |
| 7216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7217 | for as_dir in $PATH |
| 7218 | do |
| 7219 | IFS=$as_save_IFS |
| 7220 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7221 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7222 | 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] | 7223 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7224 | 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] | 7225 | break 2 |
| 7226 | fi |
| 7227 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7228 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7229 | IFS=$as_save_IFS |
| 7230 | |
| 7231 | fi |
| 7232 | fi |
| 7233 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7234 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7235 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7236 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7237 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7238 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7239 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7240 | fi |
| 7241 | |
| 7242 | if test "x$ac_ct_RANLIB" = x; then |
| 7243 | RANLIB=":" |
| 7244 | else |
| 7245 | case $cross_compiling:$ac_tool_warned in |
| 7246 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7247 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7248 | whose name does not start with the host triplet. If you think this |
| 7249 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7250 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7251 | whose name does not start with the host triplet. If you think this |
| 7252 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7253 | ac_tool_warned=yes ;; |
| 7254 | esac |
| 7255 | RANLIB=$ac_ct_RANLIB |
| 7256 | fi |
| 7257 | else |
| 7258 | RANLIB="$ac_cv_prog_RANLIB" |
| 7259 | fi |
| 7260 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7261 | if test -n "$ac_tool_prefix"; then |
| 7262 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 7263 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7264 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7265 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7266 | if test "${ac_cv_prog_AR+set}" = set; then |
| 7267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7268 | else |
| 7269 | if test -n "$AR"; then |
| 7270 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7271 | else |
| 7272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7273 | for as_dir in $PATH |
| 7274 | do |
| 7275 | IFS=$as_save_IFS |
| 7276 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7277 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7278 | 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] | 7279 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7280 | 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] | 7281 | break 2 |
| 7282 | fi |
| 7283 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7284 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7285 | IFS=$as_save_IFS |
| 7286 | |
| 7287 | fi |
| 7288 | fi |
| 7289 | AR=$ac_cv_prog_AR |
| 7290 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7291 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 7292 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7293 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7294 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7295 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7296 | fi |
| 7297 | |
| 7298 | |
| 7299 | fi |
| 7300 | if test -z "$ac_cv_prog_AR"; then |
| 7301 | ac_ct_AR=$AR |
| 7302 | # Extract the first word of "ar", so it can be a program name with args. |
| 7303 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7304 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7305 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7306 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 7307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7308 | else |
| 7309 | if test -n "$ac_ct_AR"; then |
| 7310 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7311 | else |
| 7312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7313 | for as_dir in $PATH |
| 7314 | do |
| 7315 | IFS=$as_save_IFS |
| 7316 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7317 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7318 | 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] | 7319 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7320 | 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] | 7321 | break 2 |
| 7322 | fi |
| 7323 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7324 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7325 | IFS=$as_save_IFS |
| 7326 | |
| 7327 | fi |
| 7328 | fi |
| 7329 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7330 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7331 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 7332 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7333 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7334 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7335 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7336 | fi |
| 7337 | |
| 7338 | if test "x$ac_ct_AR" = x; then |
| 7339 | AR="false" |
| 7340 | else |
| 7341 | case $cross_compiling:$ac_tool_warned in |
| 7342 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7343 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7344 | whose name does not start with the host triplet. If you think this |
| 7345 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7346 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7347 | whose name does not start with the host triplet. If you think this |
| 7348 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7349 | ac_tool_warned=yes ;; |
| 7350 | esac |
| 7351 | AR=$ac_ct_AR |
| 7352 | fi |
| 7353 | else |
| 7354 | AR="$ac_cv_prog_AR" |
| 7355 | fi |
| 7356 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7357 | # Extract the first word of "rm", so it can be a program name with args. |
| 7358 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7359 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7360 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7361 | if test "${ac_cv_path_RM+set}" = set; then |
| 7362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7363 | else |
| 7364 | case $RM in |
| 7365 | [\\/]* | ?:[\\/]*) |
| 7366 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7367 | ;; |
| 7368 | *) |
| 7369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7370 | for as_dir in $PATH |
| 7371 | do |
| 7372 | IFS=$as_save_IFS |
| 7373 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7374 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7375 | 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] | 7376 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7377 | 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] | 7378 | break 2 |
| 7379 | fi |
| 7380 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7381 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7382 | IFS=$as_save_IFS |
| 7383 | |
| 7384 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7385 | ;; |
| 7386 | esac |
| 7387 | fi |
| 7388 | RM=$ac_cv_path_RM |
| 7389 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7390 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7391 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7392 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7393 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7394 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7395 | fi |
| 7396 | |
| 7397 | |
| 7398 | # Extract the first word of "sed", so it can be a program name with args. |
| 7399 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7400 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7401 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7402 | if test "${ac_cv_path_SED+set}" = set; then |
| 7403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7404 | else |
| 7405 | case $SED in |
| 7406 | [\\/]* | ?:[\\/]*) |
| 7407 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7408 | ;; |
| 7409 | *) |
| 7410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7411 | for as_dir in $PATH |
| 7412 | do |
| 7413 | IFS=$as_save_IFS |
| 7414 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7415 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7416 | 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] | 7417 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7418 | 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] | 7419 | break 2 |
| 7420 | fi |
| 7421 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7422 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7423 | IFS=$as_save_IFS |
| 7424 | |
| 7425 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7426 | ;; |
| 7427 | esac |
| 7428 | fi |
| 7429 | SED=$ac_cv_path_SED |
| 7430 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7431 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7432 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7433 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7434 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7435 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7436 | fi |
| 7437 | |
| 7438 | |
| 7439 | # Extract the first word of "tar", so it can be a program name with args. |
| 7440 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7441 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7442 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7443 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7445 | else |
| 7446 | case $TAR in |
| 7447 | [\\/]* | ?:[\\/]*) |
| 7448 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7449 | ;; |
| 7450 | *) |
| 7451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7452 | for as_dir in $PATH |
| 7453 | do |
| 7454 | IFS=$as_save_IFS |
| 7455 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7456 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7457 | 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] | 7458 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7459 | 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] | 7460 | break 2 |
| 7461 | fi |
| 7462 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7463 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7464 | IFS=$as_save_IFS |
| 7465 | |
| 7466 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7467 | ;; |
| 7468 | esac |
| 7469 | fi |
| 7470 | TAR=$ac_cv_path_TAR |
| 7471 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7472 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7473 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7474 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7475 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7476 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7477 | fi |
| 7478 | |
| 7479 | |
| 7480 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7481 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7482 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7483 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7484 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7486 | else |
| 7487 | case $BINPWD in |
| 7488 | [\\/]* | ?:[\\/]*) |
| 7489 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7490 | ;; |
| 7491 | *) |
| 7492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7493 | for as_dir in $PATH |
| 7494 | do |
| 7495 | IFS=$as_save_IFS |
| 7496 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7497 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7498 | 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] | 7499 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7500 | 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] | 7501 | break 2 |
| 7502 | fi |
| 7503 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7504 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7505 | IFS=$as_save_IFS |
| 7506 | |
| 7507 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7508 | ;; |
| 7509 | esac |
| 7510 | fi |
| 7511 | BINPWD=$ac_cv_path_BINPWD |
| 7512 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7513 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7514 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7515 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7516 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7517 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7518 | fi |
| 7519 | |
| 7520 | |
| 7521 | |
| 7522 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7523 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7524 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7526 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7528 | else |
| 7529 | case $GRAPHVIZ in |
| 7530 | [\\/]* | ?:[\\/]*) |
| 7531 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7532 | ;; |
| 7533 | *) |
| 7534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7535 | for as_dir in $PATH |
| 7536 | do |
| 7537 | IFS=$as_save_IFS |
| 7538 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7539 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7540 | 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] | 7541 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7542 | 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] | 7543 | break 2 |
| 7544 | fi |
| 7545 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7546 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7547 | IFS=$as_save_IFS |
| 7548 | |
| 7549 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7550 | ;; |
| 7551 | esac |
| 7552 | fi |
| 7553 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7554 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7555 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7556 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7557 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7558 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7559 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7560 | fi |
| 7561 | |
| 7562 | |
| 7563 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7564 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7565 | cat >>confdefs.h <<\_ACEOF |
| 7566 | #define HAVE_GRAPHVIZ 1 |
| 7567 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7568 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7569 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7570 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7571 | fi |
| 7572 | |
| 7573 | cat >>confdefs.h <<_ACEOF |
| 7574 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7575 | _ACEOF |
| 7576 | |
| 7577 | fi |
| 7578 | # Extract the first word of "dot", so it can be a program name with args. |
| 7579 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7580 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7581 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7582 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7584 | else |
| 7585 | case $DOT in |
| 7586 | [\\/]* | ?:[\\/]*) |
| 7587 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7588 | ;; |
| 7589 | *) |
| 7590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7591 | for as_dir in $PATH |
| 7592 | do |
| 7593 | IFS=$as_save_IFS |
| 7594 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7595 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7596 | 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] | 7597 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7598 | 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] | 7599 | break 2 |
| 7600 | fi |
| 7601 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7602 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7603 | IFS=$as_save_IFS |
| 7604 | |
| 7605 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7606 | ;; |
| 7607 | esac |
| 7608 | fi |
| 7609 | DOT=$ac_cv_path_DOT |
| 7610 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7611 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7612 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7613 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7614 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7615 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7616 | fi |
| 7617 | |
| 7618 | |
| 7619 | if test "$DOT" != "echo dot" ; then |
| 7620 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7621 | cat >>confdefs.h <<\_ACEOF |
| 7622 | #define HAVE_DOT 1 |
| 7623 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7624 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7625 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7626 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7627 | fi |
| 7628 | |
| 7629 | cat >>confdefs.h <<_ACEOF |
| 7630 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7631 | _ACEOF |
| 7632 | |
| 7633 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7634 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7635 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7636 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7637 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7638 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7640 | else |
| 7641 | case $FDP in |
| 7642 | [\\/]* | ?:[\\/]*) |
| 7643 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7644 | ;; |
| 7645 | *) |
| 7646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7647 | for as_dir in $PATH |
| 7648 | do |
| 7649 | IFS=$as_save_IFS |
| 7650 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7651 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7652 | 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] | 7653 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7654 | 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] | 7655 | break 2 |
| 7656 | fi |
| 7657 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7658 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7659 | IFS=$as_save_IFS |
| 7660 | |
| 7661 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7662 | ;; |
| 7663 | esac |
| 7664 | fi |
| 7665 | FDP=$ac_cv_path_FDP |
| 7666 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7667 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7668 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7669 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7670 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7671 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7672 | fi |
| 7673 | |
| 7674 | |
| 7675 | if test "$FDP" != "echo fdp" ; then |
| 7676 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7677 | cat >>confdefs.h <<\_ACEOF |
| 7678 | #define HAVE_FDP 1 |
| 7679 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7680 | |
| 7681 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7682 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7683 | fi |
| 7684 | |
| 7685 | cat >>confdefs.h <<_ACEOF |
| 7686 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7687 | _ACEOF |
| 7688 | |
| 7689 | fi |
| 7690 | # Extract the first word of "neato", so it can be a program name with args. |
| 7691 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7692 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7694 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7696 | else |
| 7697 | case $NEATO in |
| 7698 | [\\/]* | ?:[\\/]*) |
| 7699 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7700 | ;; |
| 7701 | *) |
| 7702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7703 | for as_dir in $PATH |
| 7704 | do |
| 7705 | IFS=$as_save_IFS |
| 7706 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7707 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7708 | 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] | 7709 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7710 | 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] | 7711 | break 2 |
| 7712 | fi |
| 7713 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7714 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7715 | IFS=$as_save_IFS |
| 7716 | |
| 7717 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7718 | ;; |
| 7719 | esac |
| 7720 | fi |
| 7721 | NEATO=$ac_cv_path_NEATO |
| 7722 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7723 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7724 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7725 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7726 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7727 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7728 | fi |
| 7729 | |
| 7730 | |
| 7731 | if test "$NEATO" != "echo neato" ; then |
| 7732 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7733 | cat >>confdefs.h <<\_ACEOF |
| 7734 | #define HAVE_NEATO 1 |
| 7735 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7736 | |
| 7737 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7738 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7739 | fi |
| 7740 | |
| 7741 | cat >>confdefs.h <<_ACEOF |
| 7742 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7743 | _ACEOF |
| 7744 | |
| 7745 | fi |
| 7746 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7747 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7748 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7749 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7750 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7752 | else |
| 7753 | case $TWOPI in |
| 7754 | [\\/]* | ?:[\\/]*) |
| 7755 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7756 | ;; |
| 7757 | *) |
| 7758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7759 | for as_dir in $PATH |
| 7760 | do |
| 7761 | IFS=$as_save_IFS |
| 7762 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7763 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7764 | 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] | 7765 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7766 | 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] | 7767 | break 2 |
| 7768 | fi |
| 7769 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7770 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7771 | IFS=$as_save_IFS |
| 7772 | |
| 7773 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7774 | ;; |
| 7775 | esac |
| 7776 | fi |
| 7777 | TWOPI=$ac_cv_path_TWOPI |
| 7778 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7779 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7780 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7781 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7782 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7783 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7784 | fi |
| 7785 | |
| 7786 | |
| 7787 | if test "$TWOPI" != "echo twopi" ; then |
| 7788 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7789 | cat >>confdefs.h <<\_ACEOF |
| 7790 | #define HAVE_TWOPI 1 |
| 7791 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7792 | |
| 7793 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7794 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7795 | fi |
| 7796 | |
| 7797 | cat >>confdefs.h <<_ACEOF |
| 7798 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7799 | _ACEOF |
| 7800 | |
| 7801 | fi |
| 7802 | # Extract the first word of "circo", so it can be a program name with args. |
| 7803 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7804 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7805 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7806 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 7807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7808 | else |
| 7809 | case $CIRCO in |
| 7810 | [\\/]* | ?:[\\/]*) |
| 7811 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 7812 | ;; |
| 7813 | *) |
| 7814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7815 | for as_dir in $PATH |
| 7816 | do |
| 7817 | IFS=$as_save_IFS |
| 7818 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7819 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7820 | 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] | 7821 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7822 | 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] | 7823 | break 2 |
| 7824 | fi |
| 7825 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7826 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7827 | IFS=$as_save_IFS |
| 7828 | |
| 7829 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7830 | ;; |
| 7831 | esac |
| 7832 | fi |
| 7833 | CIRCO=$ac_cv_path_CIRCO |
| 7834 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7835 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7836 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7837 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7838 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7839 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7840 | fi |
| 7841 | |
| 7842 | |
| 7843 | if test "$CIRCO" != "echo circo" ; then |
| 7844 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7845 | cat >>confdefs.h <<\_ACEOF |
| 7846 | #define HAVE_CIRCO 1 |
| 7847 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7848 | |
| 7849 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7850 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7851 | fi |
| 7852 | |
| 7853 | cat >>confdefs.h <<_ACEOF |
| 7854 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7855 | _ACEOF |
| 7856 | |
| 7857 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7858 | for ac_prog in gv gsview32 |
| 7859 | do |
| 7860 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7861 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7862 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7864 | if test "${ac_cv_path_GV+set}" = set; then |
| 7865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7866 | else |
| 7867 | case $GV in |
| 7868 | [\\/]* | ?:[\\/]*) |
| 7869 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7870 | ;; |
| 7871 | *) |
| 7872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7873 | for as_dir in $PATH |
| 7874 | do |
| 7875 | IFS=$as_save_IFS |
| 7876 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7877 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7878 | 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] | 7879 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7880 | 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] | 7881 | break 2 |
| 7882 | fi |
| 7883 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7884 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7885 | IFS=$as_save_IFS |
| 7886 | |
| 7887 | ;; |
| 7888 | esac |
| 7889 | fi |
| 7890 | GV=$ac_cv_path_GV |
| 7891 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7892 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7893 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7894 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7895 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7896 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7897 | fi |
| 7898 | |
| 7899 | |
| 7900 | test -n "$GV" && break |
| 7901 | done |
| 7902 | test -n "$GV" || GV="echo gv" |
| 7903 | |
| 7904 | if test "$GV" != "echo gv" ; then |
| 7905 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7906 | cat >>confdefs.h <<\_ACEOF |
| 7907 | #define HAVE_GV 1 |
| 7908 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7909 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7910 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7911 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7912 | fi |
| 7913 | |
| 7914 | cat >>confdefs.h <<_ACEOF |
| 7915 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7916 | _ACEOF |
| 7917 | |
| 7918 | fi |
| 7919 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7920 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7921 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7922 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7923 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7925 | else |
| 7926 | case $DOTTY in |
| 7927 | [\\/]* | ?:[\\/]*) |
| 7928 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7929 | ;; |
| 7930 | *) |
| 7931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7932 | for as_dir in $PATH |
| 7933 | do |
| 7934 | IFS=$as_save_IFS |
| 7935 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7936 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7937 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7938 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7939 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7940 | break 2 |
| 7941 | fi |
| 7942 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7943 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7944 | IFS=$as_save_IFS |
| 7945 | |
| 7946 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7947 | ;; |
| 7948 | esac |
| 7949 | fi |
| 7950 | DOTTY=$ac_cv_path_DOTTY |
| 7951 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7952 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7953 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7954 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7955 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7956 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7957 | fi |
| 7958 | |
| 7959 | |
| 7960 | if test "$DOTTY" != "echo dotty" ; then |
| 7961 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7962 | cat >>confdefs.h <<\_ACEOF |
| 7963 | #define HAVE_DOTTY 1 |
| 7964 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7965 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7966 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7967 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7968 | fi |
| 7969 | |
| 7970 | cat >>confdefs.h <<_ACEOF |
| 7971 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7972 | _ACEOF |
| 7973 | |
| 7974 | fi |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 7975 | # Extract the first word of "xdot.py", so it can be a program name with args. |
| 7976 | set dummy xdot.py; ac_word=$2 |
| 7977 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7978 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7979 | if test "${ac_cv_path_XDOT_PY+set}" = set; then |
| 7980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7981 | else |
| 7982 | case $XDOT_PY in |
| 7983 | [\\/]* | ?:[\\/]*) |
| 7984 | ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. |
| 7985 | ;; |
| 7986 | *) |
| 7987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7988 | for as_dir in $PATH |
| 7989 | do |
| 7990 | IFS=$as_save_IFS |
| 7991 | test -z "$as_dir" && as_dir=. |
| 7992 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7993 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7994 | ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" |
| 7995 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7996 | break 2 |
| 7997 | fi |
| 7998 | done |
| 7999 | done |
| 8000 | IFS=$as_save_IFS |
| 8001 | |
| 8002 | test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" |
| 8003 | ;; |
| 8004 | esac |
| 8005 | fi |
| 8006 | XDOT_PY=$ac_cv_path_XDOT_PY |
| 8007 | if test -n "$XDOT_PY"; then |
| 8008 | { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 |
| 8009 | echo "${ECHO_T}$XDOT_PY" >&6; } |
| 8010 | else |
| 8011 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8012 | echo "${ECHO_T}no" >&6; } |
| 8013 | fi |
| 8014 | |
| 8015 | |
| 8016 | if test "$XDOT_PY" != "echo xdot.py" ; then |
| 8017 | |
| 8018 | cat >>confdefs.h <<\_ACEOF |
| 8019 | #define HAVE_XDOT_PY 1 |
| 8020 | _ACEOF |
| 8021 | |
| 8022 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 8023 | XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 8024 | fi |
| 8025 | |
| 8026 | cat >>confdefs.h <<_ACEOF |
| 8027 | #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" |
| 8028 | _ACEOF |
| 8029 | |
| 8030 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8031 | |
| 8032 | |
| 8033 | # Extract the first word of "perl", so it can be a program name with args. |
| 8034 | set dummy perl; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8035 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8036 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8037 | if test "${ac_cv_path_PERL+set}" = set; then |
| 8038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8039 | else |
| 8040 | case $PERL in |
| 8041 | [\\/]* | ?:[\\/]*) |
| 8042 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 8043 | ;; |
| 8044 | *) |
| 8045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8046 | for as_dir in $PATH |
| 8047 | do |
| 8048 | IFS=$as_save_IFS |
| 8049 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8050 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8051 | 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] | 8052 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8053 | 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] | 8054 | break 2 |
| 8055 | fi |
| 8056 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8057 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8058 | IFS=$as_save_IFS |
| 8059 | |
| 8060 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 8061 | ;; |
| 8062 | esac |
| 8063 | fi |
| 8064 | PERL=$ac_cv_path_PERL |
| 8065 | if test -n "$PERL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8066 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 8067 | echo "${ECHO_T}$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8068 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8069 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8070 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8071 | fi |
| 8072 | |
| 8073 | |
| 8074 | if test "$PERL" != "none"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8075 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 8076 | 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] | 8077 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8078 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 8079 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8080 | else |
| 8081 | PERL=none |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8082 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 8083 | echo "${ECHO_T}not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8084 | fi |
| 8085 | fi |
| 8086 | |
| 8087 | |
| 8088 | if test x"$PERL" = xnone; then |
| 8089 | HAVE_PERL=0 |
| 8090 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8091 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 8092 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 8093 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8094 | else |
| 8095 | HAVE_PERL=1 |
| 8096 | |
| 8097 | fi |
| 8098 | |
| 8099 | # Find a good install program. We prefer a C program (faster), |
| 8100 | # so one script is as good as another. But avoid the broken or |
| 8101 | # incompatible versions: |
| 8102 | # SysV /etc/install, /usr/sbin/install |
| 8103 | # SunOS /usr/etc/install |
| 8104 | # IRIX /sbin/install |
| 8105 | # AIX /bin/install |
| 8106 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 8107 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 8108 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 8109 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 8110 | # OS/2's system install, which has a completely different semantic |
| 8111 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8112 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 8113 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8114 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8115 | if test "${ac_cv_path_install+set}" = set; then |
| 8116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8117 | else |
| 8118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8119 | for as_dir in $PATH |
| 8120 | do |
| 8121 | IFS=$as_save_IFS |
| 8122 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8123 | # Account for people who put trailing slashes in PATH elements. |
| 8124 | case $as_dir/ in |
| 8125 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8126 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8127 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8128 | /usr/ucb/* ) ;; |
| 8129 | *) |
| 8130 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 8131 | # Don't use installbsd from OSF since it installs stuff as root |
| 8132 | # by default. |
| 8133 | for ac_prog in ginstall scoinst install; do |
| 8134 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8135 | 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] | 8136 | if test $ac_prog = install && |
| 8137 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 8138 | # AIX install. It has an incompatible calling convention. |
| 8139 | : |
| 8140 | elif test $ac_prog = install && |
| 8141 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 8142 | # program-specific install script used by HP pwplus--don't use. |
| 8143 | : |
| 8144 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8145 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 8146 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8147 | fi |
| 8148 | fi |
| 8149 | done |
| 8150 | done |
| 8151 | ;; |
| 8152 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8153 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8154 | IFS=$as_save_IFS |
| 8155 | |
| 8156 | |
| 8157 | fi |
| 8158 | if test "${ac_cv_path_install+set}" = set; then |
| 8159 | INSTALL=$ac_cv_path_install |
| 8160 | else |
| 8161 | # As a last resort, use the slow shell script. Don't cache a |
| 8162 | # value for INSTALL within a source directory, because that will |
| 8163 | # break other packages using the cache if that directory is |
| 8164 | # removed, or if the value is a relative name. |
| 8165 | INSTALL=$ac_install_sh |
| 8166 | fi |
| 8167 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8168 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 8169 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8170 | |
| 8171 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 8172 | # It thinks the first close brace ends the variable substitution. |
| 8173 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 8174 | |
| 8175 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 8176 | |
| 8177 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 8178 | |
Eric Christopher | 2a1a44f | 2010-07-22 21:13:48 +0000 | [diff] [blame] | 8179 | case "$INSTALL" in |
| 8180 | [\\/$]* | ?:[\\/]* ) ;; |
| 8181 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 8182 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8183 | |
| 8184 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 8185 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8186 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8187 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8188 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 8189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8190 | else |
| 8191 | case $BZIP2 in |
| 8192 | [\\/]* | ?:[\\/]*) |
| 8193 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 8194 | ;; |
| 8195 | *) |
| 8196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8197 | for as_dir in $PATH |
| 8198 | do |
| 8199 | IFS=$as_save_IFS |
| 8200 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8201 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8202 | 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] | 8203 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8204 | 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] | 8205 | break 2 |
| 8206 | fi |
| 8207 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8208 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8209 | IFS=$as_save_IFS |
| 8210 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8211 | ;; |
| 8212 | esac |
| 8213 | fi |
| 8214 | BZIP2=$ac_cv_path_BZIP2 |
| 8215 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8216 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 8217 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8218 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8219 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8220 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8221 | fi |
| 8222 | |
| 8223 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 8224 | # Extract the first word of "cat", so it can be a program name with args. |
| 8225 | set dummy cat; ac_word=$2 |
| 8226 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8227 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8228 | if test "${ac_cv_path_CAT+set}" = set; then |
| 8229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8230 | else |
| 8231 | case $CAT in |
| 8232 | [\\/]* | ?:[\\/]*) |
| 8233 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
| 8234 | ;; |
| 8235 | *) |
| 8236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8237 | for as_dir in $PATH |
| 8238 | do |
| 8239 | IFS=$as_save_IFS |
| 8240 | test -z "$as_dir" && as_dir=. |
| 8241 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8242 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8243 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
| 8244 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8245 | break 2 |
| 8246 | fi |
| 8247 | done |
| 8248 | done |
| 8249 | IFS=$as_save_IFS |
| 8250 | |
| 8251 | ;; |
| 8252 | esac |
| 8253 | fi |
| 8254 | CAT=$ac_cv_path_CAT |
| 8255 | if test -n "$CAT"; then |
| 8256 | { echo "$as_me:$LINENO: result: $CAT" >&5 |
| 8257 | echo "${ECHO_T}$CAT" >&6; } |
| 8258 | else |
| 8259 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8260 | echo "${ECHO_T}no" >&6; } |
| 8261 | fi |
| 8262 | |
| 8263 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8264 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 8265 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8266 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8267 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8268 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 8269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8270 | else |
| 8271 | case $DOXYGEN in |
| 8272 | [\\/]* | ?:[\\/]*) |
| 8273 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 8274 | ;; |
| 8275 | *) |
| 8276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8277 | for as_dir in $PATH |
| 8278 | do |
| 8279 | IFS=$as_save_IFS |
| 8280 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8281 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8282 | 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] | 8283 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8284 | 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] | 8285 | break 2 |
| 8286 | fi |
| 8287 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8288 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8289 | IFS=$as_save_IFS |
| 8290 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8291 | ;; |
| 8292 | esac |
| 8293 | fi |
| 8294 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 8295 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8296 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 8297 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8298 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8299 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8300 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8301 | fi |
| 8302 | |
| 8303 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8304 | # Extract the first word of "groff", so it can be a program name with args. |
| 8305 | set dummy groff; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8306 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8307 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8308 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 8309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8310 | else |
| 8311 | case $GROFF in |
| 8312 | [\\/]* | ?:[\\/]*) |
| 8313 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 8314 | ;; |
| 8315 | *) |
| 8316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8317 | for as_dir in $PATH |
| 8318 | do |
| 8319 | IFS=$as_save_IFS |
| 8320 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8321 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8322 | 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] | 8323 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8324 | 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] | 8325 | break 2 |
| 8326 | fi |
| 8327 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8328 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8329 | IFS=$as_save_IFS |
| 8330 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8331 | ;; |
| 8332 | esac |
| 8333 | fi |
| 8334 | GROFF=$ac_cv_path_GROFF |
| 8335 | if test -n "$GROFF"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8336 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 8337 | echo "${ECHO_T}$GROFF" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8338 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8339 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8340 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8341 | fi |
| 8342 | |
| 8343 | |
| 8344 | # Extract the first word of "gzip", so it can be a program name with args. |
| 8345 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8346 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 8348 | if test "${ac_cv_path_GZIPBIN+set}" = set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8350 | else |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 8351 | case $GZIPBIN in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8352 | [\\/]* | ?:[\\/]*) |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 8353 | ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8354 | ;; |
| 8355 | *) |
| 8356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8357 | for as_dir in $PATH |
| 8358 | do |
| 8359 | IFS=$as_save_IFS |
| 8360 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8361 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8362 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 8363 | ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8364 | 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] | 8365 | break 2 |
| 8366 | fi |
| 8367 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8368 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8369 | IFS=$as_save_IFS |
| 8370 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8371 | ;; |
| 8372 | esac |
| 8373 | fi |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 8374 | GZIPBIN=$ac_cv_path_GZIPBIN |
| 8375 | if test -n "$GZIPBIN"; then |
| 8376 | { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 |
| 8377 | echo "${ECHO_T}$GZIPBIN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8378 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8379 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8380 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8381 | fi |
| 8382 | |
| 8383 | |
| 8384 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 8385 | set dummy pod2html; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8386 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8387 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8388 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 8389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8390 | else |
| 8391 | case $POD2HTML in |
| 8392 | [\\/]* | ?:[\\/]*) |
| 8393 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 8394 | ;; |
| 8395 | *) |
| 8396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8397 | for as_dir in $PATH |
| 8398 | do |
| 8399 | IFS=$as_save_IFS |
| 8400 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8401 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8402 | 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] | 8403 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8404 | 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] | 8405 | break 2 |
| 8406 | fi |
| 8407 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8408 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8409 | IFS=$as_save_IFS |
| 8410 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8411 | ;; |
| 8412 | esac |
| 8413 | fi |
| 8414 | POD2HTML=$ac_cv_path_POD2HTML |
| 8415 | if test -n "$POD2HTML"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8416 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 8417 | echo "${ECHO_T}$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8418 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8419 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8420 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8421 | fi |
| 8422 | |
| 8423 | |
| 8424 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 8425 | set dummy pod2man; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8426 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8427 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8428 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 8429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8430 | else |
| 8431 | case $POD2MAN in |
| 8432 | [\\/]* | ?:[\\/]*) |
| 8433 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 8434 | ;; |
| 8435 | *) |
| 8436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8437 | for as_dir in $PATH |
| 8438 | do |
| 8439 | IFS=$as_save_IFS |
| 8440 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8441 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8442 | 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] | 8443 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8444 | 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] | 8445 | break 2 |
| 8446 | fi |
| 8447 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8448 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8449 | IFS=$as_save_IFS |
| 8450 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8451 | ;; |
| 8452 | esac |
| 8453 | fi |
| 8454 | POD2MAN=$ac_cv_path_POD2MAN |
| 8455 | if test -n "$POD2MAN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8456 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 8457 | echo "${ECHO_T}$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8458 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8459 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8460 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8461 | fi |
| 8462 | |
| 8463 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 8464 | # Extract the first word of "pdfroff", so it can be a program name with args. |
| 8465 | set dummy pdfroff; ac_word=$2 |
| 8466 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8468 | if test "${ac_cv_path_PDFROFF+set}" = set; then |
| 8469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8470 | else |
| 8471 | case $PDFROFF in |
| 8472 | [\\/]* | ?:[\\/]*) |
| 8473 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. |
| 8474 | ;; |
| 8475 | *) |
| 8476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8477 | for as_dir in $PATH |
| 8478 | do |
| 8479 | IFS=$as_save_IFS |
| 8480 | test -z "$as_dir" && as_dir=. |
| 8481 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8482 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8483 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" |
| 8484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8485 | break 2 |
| 8486 | fi |
| 8487 | done |
| 8488 | done |
| 8489 | IFS=$as_save_IFS |
| 8490 | |
| 8491 | ;; |
| 8492 | esac |
| 8493 | fi |
| 8494 | PDFROFF=$ac_cv_path_PDFROFF |
| 8495 | if test -n "$PDFROFF"; then |
| 8496 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 |
| 8497 | echo "${ECHO_T}$PDFROFF" >&6; } |
| 8498 | else |
| 8499 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8500 | echo "${ECHO_T}no" >&6; } |
| 8501 | fi |
| 8502 | |
| 8503 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8504 | # Extract the first word of "runtest", so it can be a program name with args. |
| 8505 | set dummy runtest; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8506 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8507 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8508 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 8509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8510 | else |
| 8511 | case $RUNTEST in |
| 8512 | [\\/]* | ?:[\\/]*) |
| 8513 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 8514 | ;; |
| 8515 | *) |
| 8516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8517 | for as_dir in $PATH |
| 8518 | do |
| 8519 | IFS=$as_save_IFS |
| 8520 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8521 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8522 | 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] | 8523 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8524 | 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] | 8525 | break 2 |
| 8526 | fi |
| 8527 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8528 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8529 | IFS=$as_save_IFS |
| 8530 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8531 | ;; |
| 8532 | esac |
| 8533 | fi |
| 8534 | RUNTEST=$ac_cv_path_RUNTEST |
| 8535 | if test -n "$RUNTEST"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8536 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8537 | echo "${ECHO_T}$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8538 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8539 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8540 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8541 | fi |
| 8542 | |
| 8543 | |
| 8544 | |
| 8545 | no_itcl=true |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8546 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8547 | 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] | 8548 | |
| 8549 | # Check whether --with-tclinclude was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8550 | if test "${with_tclinclude+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8551 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8552 | else |
| 8553 | with_tclinclude='' |
| 8554 | fi |
| 8555 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8556 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8558 | else |
| 8559 | |
| 8560 | if test x"${with_tclinclude}" != x ; then |
| 8561 | if test -f ${with_tclinclude}/tclsh ; then |
| 8562 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8563 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8564 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8565 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8566 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8567 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8568 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8569 | fi |
| 8570 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 8571 | fi |
| 8572 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8573 | |
| 8574 | if test x"${ac_cv_path_tclsh}" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8575 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8576 | echo "${ECHO_T}none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8577 | 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 |
| 8578 | do |
| 8579 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8580 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8581 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8582 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8583 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8585 | else |
| 8586 | case $TCLSH in |
| 8587 | [\\/]* | ?:[\\/]*) |
| 8588 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8589 | ;; |
| 8590 | *) |
| 8591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8592 | for as_dir in $PATH |
| 8593 | do |
| 8594 | IFS=$as_save_IFS |
| 8595 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8596 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8597 | 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] | 8598 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8599 | 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] | 8600 | break 2 |
| 8601 | fi |
| 8602 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8603 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8604 | IFS=$as_save_IFS |
| 8605 | |
| 8606 | ;; |
| 8607 | esac |
| 8608 | fi |
| 8609 | TCLSH=$ac_cv_path_TCLSH |
| 8610 | if test -n "$TCLSH"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8611 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8612 | echo "${ECHO_T}$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8613 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8614 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8615 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8616 | fi |
| 8617 | |
| 8618 | |
| 8619 | test -n "$TCLSH" && break |
| 8620 | done |
| 8621 | |
| 8622 | if test x"${TCLSH}" = x ; then |
| 8623 | ac_cv_path_tclsh=''; |
| 8624 | else |
| 8625 | ac_cv_path_tclsh="${TCLSH}"; |
| 8626 | fi |
| 8627 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8628 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8629 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8630 | TCLSH="${ac_cv_path_tclsh}" |
| 8631 | |
| 8632 | fi |
| 8633 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8634 | # Extract the first word of "zip", so it can be a program name with args. |
| 8635 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8636 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8637 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8638 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8640 | else |
| 8641 | case $ZIP in |
| 8642 | [\\/]* | ?:[\\/]*) |
| 8643 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8644 | ;; |
| 8645 | *) |
| 8646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8647 | for as_dir in $PATH |
| 8648 | do |
| 8649 | IFS=$as_save_IFS |
| 8650 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8651 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8652 | 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] | 8653 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8654 | 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] | 8655 | break 2 |
| 8656 | fi |
| 8657 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8658 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8659 | IFS=$as_save_IFS |
| 8660 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8661 | ;; |
| 8662 | esac |
| 8663 | fi |
| 8664 | ZIP=$ac_cv_path_ZIP |
| 8665 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8666 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8667 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8668 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8669 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8670 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8671 | fi |
| 8672 | |
| 8673 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8674 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8675 | do |
| 8676 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8677 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8678 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8680 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8682 | else |
| 8683 | case $OCAMLC in |
| 8684 | [\\/]* | ?:[\\/]*) |
| 8685 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8686 | ;; |
| 8687 | *) |
| 8688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8689 | for as_dir in $PATH |
| 8690 | do |
| 8691 | IFS=$as_save_IFS |
| 8692 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8693 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8694 | 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] | 8695 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8696 | 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] | 8697 | break 2 |
| 8698 | fi |
| 8699 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8700 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8701 | IFS=$as_save_IFS |
| 8702 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8703 | ;; |
| 8704 | esac |
| 8705 | fi |
| 8706 | OCAMLC=$ac_cv_path_OCAMLC |
| 8707 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8708 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8709 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8710 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8711 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8712 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8713 | fi |
| 8714 | |
| 8715 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8716 | test -n "$OCAMLC" && break |
| 8717 | done |
| 8718 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8719 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8720 | do |
| 8721 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8722 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8723 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8724 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8725 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8727 | else |
| 8728 | case $OCAMLOPT in |
| 8729 | [\\/]* | ?:[\\/]*) |
| 8730 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8731 | ;; |
| 8732 | *) |
| 8733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8734 | for as_dir in $PATH |
| 8735 | do |
| 8736 | IFS=$as_save_IFS |
| 8737 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8738 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8739 | 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] | 8740 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8741 | 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] | 8742 | break 2 |
| 8743 | fi |
| 8744 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8745 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8746 | IFS=$as_save_IFS |
| 8747 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8748 | ;; |
| 8749 | esac |
| 8750 | fi |
| 8751 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8752 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8753 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8754 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8755 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8756 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8757 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8758 | fi |
| 8759 | |
| 8760 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8761 | test -n "$OCAMLOPT" && break |
| 8762 | done |
| 8763 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8764 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8765 | do |
| 8766 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8767 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8768 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8769 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8770 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8772 | else |
| 8773 | case $OCAMLDEP in |
| 8774 | [\\/]* | ?:[\\/]*) |
| 8775 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8776 | ;; |
| 8777 | *) |
| 8778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8779 | for as_dir in $PATH |
| 8780 | do |
| 8781 | IFS=$as_save_IFS |
| 8782 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8783 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8784 | 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] | 8785 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8786 | 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] | 8787 | break 2 |
| 8788 | fi |
| 8789 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8790 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8791 | IFS=$as_save_IFS |
| 8792 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8793 | ;; |
| 8794 | esac |
| 8795 | fi |
| 8796 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8797 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8798 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8799 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8800 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8801 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8802 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8803 | fi |
| 8804 | |
| 8805 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8806 | test -n "$OCAMLDEP" && break |
| 8807 | done |
| 8808 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8809 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8810 | do |
| 8811 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8812 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8813 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8814 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8815 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8817 | else |
| 8818 | case $OCAMLDOC in |
| 8819 | [\\/]* | ?:[\\/]*) |
| 8820 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8821 | ;; |
| 8822 | *) |
| 8823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8824 | for as_dir in $PATH |
| 8825 | do |
| 8826 | IFS=$as_save_IFS |
| 8827 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8828 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8829 | 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] | 8830 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8831 | 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] | 8832 | break 2 |
| 8833 | fi |
| 8834 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8835 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8836 | IFS=$as_save_IFS |
| 8837 | |
| 8838 | ;; |
| 8839 | esac |
| 8840 | fi |
| 8841 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8842 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8843 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8844 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8845 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8846 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8847 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8848 | fi |
| 8849 | |
| 8850 | |
| 8851 | test -n "$OCAMLDOC" && break |
| 8852 | done |
| 8853 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8854 | for ac_prog in gas as |
| 8855 | do |
| 8856 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8857 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8858 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8860 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8862 | else |
| 8863 | case $GAS in |
| 8864 | [\\/]* | ?:[\\/]*) |
| 8865 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8866 | ;; |
| 8867 | *) |
| 8868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8869 | for as_dir in $PATH |
| 8870 | do |
| 8871 | IFS=$as_save_IFS |
| 8872 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8873 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8874 | 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] | 8875 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8876 | 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] | 8877 | break 2 |
| 8878 | fi |
| 8879 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8880 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8881 | IFS=$as_save_IFS |
| 8882 | |
| 8883 | ;; |
| 8884 | esac |
| 8885 | fi |
| 8886 | GAS=$ac_cv_path_GAS |
| 8887 | if test -n "$GAS"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8888 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8889 | echo "${ECHO_T}$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8890 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8891 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8892 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8893 | fi |
| 8894 | |
| 8895 | |
| 8896 | test -n "$GAS" && break |
| 8897 | done |
| 8898 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8899 | |
Daniel Dunbar | ee0f32d | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 8900 | { echo "$as_me:$LINENO: checking for linker version" >&5 |
| 8901 | echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } |
| 8902 | if test "${llvm_cv_link_version+set}" = set; then |
| 8903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8904 | else |
| 8905 | |
| 8906 | version_string="$(ld -v 2>&1 | head -1)" |
| 8907 | |
| 8908 | # Check for ld64. |
| 8909 | if (echo "$version_string" | grep -q "ld64"); then |
| 8910 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#") |
| 8911 | else |
| 8912 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") |
| 8913 | fi |
| 8914 | |
| 8915 | fi |
| 8916 | { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 |
| 8917 | echo "${ECHO_T}$llvm_cv_link_version" >&6; } |
| 8918 | |
| 8919 | cat >>confdefs.h <<_ACEOF |
| 8920 | #define HOST_LINK_VERSION "$llvm_cv_link_version" |
| 8921 | _ACEOF |
| 8922 | |
| 8923 | |
| 8924 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8925 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8926 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8927 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8929 | else |
| 8930 | ac_ext=c |
| 8931 | ac_cpp='$CPP $CPPFLAGS' |
| 8932 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8933 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8934 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8935 | |
| 8936 | oldcflags="$CFLAGS" |
| 8937 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8938 | cat >conftest.$ac_ext <<_ACEOF |
| 8939 | /* confdefs.h. */ |
| 8940 | _ACEOF |
| 8941 | cat confdefs.h >>conftest.$ac_ext |
| 8942 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8943 | /* end confdefs.h. */ |
| 8944 | |
| 8945 | int |
| 8946 | main () |
| 8947 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8948 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8949 | ; |
| 8950 | return 0; |
| 8951 | } |
| 8952 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8953 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8954 | if { (ac_try="$ac_link" |
| 8955 | case "(($ac_try" in |
| 8956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8957 | *) ac_try_echo=$ac_try;; |
| 8958 | esac |
| 8959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8960 | (eval "$ac_link") 2>conftest.er1 |
| 8961 | ac_status=$? |
| 8962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8963 | rm -f conftest.er1 |
| 8964 | cat conftest.err >&5 |
| 8965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8966 | (exit $ac_status); } && |
| 8967 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8968 | { (case "(($ac_try" in |
| 8969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8970 | *) ac_try_echo=$ac_try;; |
| 8971 | esac |
| 8972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8973 | (eval "$ac_try") 2>&5 |
| 8974 | ac_status=$? |
| 8975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8976 | (exit $ac_status); }; } && |
| 8977 | { ac_try='test -s conftest$ac_exeext' |
| 8978 | { (case "(($ac_try" in |
| 8979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8980 | *) ac_try_echo=$ac_try;; |
| 8981 | esac |
| 8982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8983 | (eval "$ac_try") 2>&5 |
| 8984 | ac_status=$? |
| 8985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8986 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8987 | llvm_cv_link_use_r=yes |
| 8988 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8989 | echo "$as_me: failed program was:" >&5 |
| 8990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8991 | |
| 8992 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8993 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8994 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8995 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8996 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8997 | CFLAGS="$oldcflags" |
| 8998 | ac_ext=c |
| 8999 | ac_cpp='$CPP $CPPFLAGS' |
| 9000 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9001 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9002 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9003 | |
| 9004 | |
| 9005 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9006 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 9007 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9008 | if test "$llvm_cv_link_use_r" = yes ; then |
| 9009 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9010 | cat >>confdefs.h <<\_ACEOF |
| 9011 | #define HAVE_LINK_R 1 |
| 9012 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9013 | |
| 9014 | fi |
| 9015 | |
| 9016 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9017 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 9018 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 9019 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 9020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9021 | else |
| 9022 | ac_ext=c |
| 9023 | ac_cpp='$CPP $CPPFLAGS' |
| 9024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9027 | |
| 9028 | oldcflags="$CFLAGS" |
| 9029 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9030 | cat >conftest.$ac_ext <<_ACEOF |
| 9031 | /* confdefs.h. */ |
| 9032 | _ACEOF |
| 9033 | cat confdefs.h >>conftest.$ac_ext |
| 9034 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9035 | /* end confdefs.h. */ |
| 9036 | |
| 9037 | int |
| 9038 | main () |
| 9039 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 9040 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9041 | ; |
| 9042 | return 0; |
| 9043 | } |
| 9044 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9045 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9046 | if { (ac_try="$ac_link" |
| 9047 | case "(($ac_try" in |
| 9048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9049 | *) ac_try_echo=$ac_try;; |
| 9050 | esac |
| 9051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9052 | (eval "$ac_link") 2>conftest.er1 |
| 9053 | ac_status=$? |
| 9054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9055 | rm -f conftest.er1 |
| 9056 | cat conftest.err >&5 |
| 9057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9058 | (exit $ac_status); } && |
| 9059 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9060 | { (case "(($ac_try" in |
| 9061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9062 | *) ac_try_echo=$ac_try;; |
| 9063 | esac |
| 9064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9065 | (eval "$ac_try") 2>&5 |
| 9066 | ac_status=$? |
| 9067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9068 | (exit $ac_status); }; } && |
| 9069 | { ac_try='test -s conftest$ac_exeext' |
| 9070 | { (case "(($ac_try" in |
| 9071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9072 | *) ac_try_echo=$ac_try;; |
| 9073 | esac |
| 9074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9075 | (eval "$ac_try") 2>&5 |
| 9076 | ac_status=$? |
| 9077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9078 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9079 | llvm_cv_link_use_export_dynamic=yes |
| 9080 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9081 | echo "$as_me: failed program was:" >&5 |
| 9082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9083 | |
| 9084 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9085 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9086 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9087 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9088 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9089 | CFLAGS="$oldcflags" |
| 9090 | ac_ext=c |
| 9091 | ac_cpp='$CPP $CPPFLAGS' |
| 9092 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9093 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9094 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9095 | |
| 9096 | |
| 9097 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9098 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 9099 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9100 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 9101 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9102 | cat >>confdefs.h <<\_ACEOF |
| 9103 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 9104 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9105 | |
| 9106 | fi |
| 9107 | |
| 9108 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9109 | { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 |
| 9110 | echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } |
| 9111 | if test "${llvm_cv_link_use_version_script+set}" = set; then |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9113 | else |
| 9114 | ac_ext=c |
| 9115 | ac_cpp='$CPP $CPPFLAGS' |
| 9116 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9117 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9118 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9119 | |
| 9120 | oldcflags="$CFLAGS" |
| 9121 | |
| 9122 | # The following code is from the autoconf manual, |
| 9123 | # "11.13: Limitations of Usual Tools". |
| 9124 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). |
| 9125 | # Use mktemp if possible; otherwise fall back on mkdir, |
| 9126 | # with $RANDOM to make collisions less likely. |
| 9127 | : ${TMPDIR=/tmp} |
| 9128 | { |
| 9129 | tmp=` |
| 9130 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null |
| 9131 | ` && |
| 9132 | test -n "$tmp" && test -d "$tmp" |
| 9133 | } || { |
| 9134 | tmp=$TMPDIR/foo$$-$RANDOM |
| 9135 | (umask 077 && mkdir "$tmp") |
| 9136 | } || exit $? |
| 9137 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9138 | echo "{" > "$tmp/export.map" |
| 9139 | echo " global: main;" >> "$tmp/export.map" |
| 9140 | echo " local: *;" >> "$tmp/export.map" |
| 9141 | echo "};" >> "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9142 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9143 | CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9144 | cat >conftest.$ac_ext <<_ACEOF |
| 9145 | /* confdefs.h. */ |
| 9146 | _ACEOF |
| 9147 | cat confdefs.h >>conftest.$ac_ext |
| 9148 | cat >>conftest.$ac_ext <<_ACEOF |
| 9149 | /* end confdefs.h. */ |
| 9150 | |
| 9151 | int |
| 9152 | main () |
| 9153 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 9154 | |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9155 | ; |
| 9156 | return 0; |
| 9157 | } |
| 9158 | _ACEOF |
| 9159 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9160 | if { (ac_try="$ac_link" |
| 9161 | case "(($ac_try" in |
| 9162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9163 | *) ac_try_echo=$ac_try;; |
| 9164 | esac |
| 9165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9166 | (eval "$ac_link") 2>conftest.er1 |
| 9167 | ac_status=$? |
| 9168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9169 | rm -f conftest.er1 |
| 9170 | cat conftest.err >&5 |
| 9171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9172 | (exit $ac_status); } && |
| 9173 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9174 | { (case "(($ac_try" in |
| 9175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9176 | *) ac_try_echo=$ac_try;; |
| 9177 | esac |
| 9178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9179 | (eval "$ac_try") 2>&5 |
| 9180 | ac_status=$? |
| 9181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9182 | (exit $ac_status); }; } && |
| 9183 | { ac_try='test -s conftest$ac_exeext' |
| 9184 | { (case "(($ac_try" in |
| 9185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9186 | *) ac_try_echo=$ac_try;; |
| 9187 | esac |
| 9188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9189 | (eval "$ac_try") 2>&5 |
| 9190 | ac_status=$? |
| 9191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9192 | (exit $ac_status); }; }; then |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9193 | llvm_cv_link_use_version_script=yes |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9194 | else |
| 9195 | echo "$as_me: failed program was:" >&5 |
| 9196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9197 | |
Dan Gohman | 943005e | 2010-06-01 16:22:27 +0000 | [diff] [blame] | 9198 | llvm_cv_link_use_version_script=no |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9199 | fi |
| 9200 | |
| 9201 | rm -f core conftest.err conftest.$ac_objext \ |
| 9202 | conftest$ac_exeext conftest.$ac_ext |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9203 | rm "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9204 | rmdir "$tmp" |
| 9205 | CFLAGS="$oldcflags" |
| 9206 | ac_ext=c |
| 9207 | ac_cpp='$CPP $CPPFLAGS' |
| 9208 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9209 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9210 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9211 | |
| 9212 | |
| 9213 | fi |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9214 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 |
| 9215 | echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } |
| 9216 | if test "$llvm_cv_link_use_version_script" = yes ; then |
| 9217 | HAVE_LINK_VERSION_SCRIPT=1 |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9218 | |
| 9219 | fi |
| 9220 | |
| 9221 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9222 | |
| 9223 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9224 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 9225 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 9226 | if test "${ac_cv_c_const+set}" = set; then |
| 9227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9228 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9229 | cat >conftest.$ac_ext <<_ACEOF |
| 9230 | /* confdefs.h. */ |
| 9231 | _ACEOF |
| 9232 | cat confdefs.h >>conftest.$ac_ext |
| 9233 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9234 | /* end confdefs.h. */ |
| 9235 | |
| 9236 | int |
| 9237 | main () |
| 9238 | { |
| 9239 | /* FIXME: Include the comments suggested by Paul. */ |
| 9240 | #ifndef __cplusplus |
| 9241 | /* Ultrix mips cc rejects this. */ |
| 9242 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9243 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9244 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9245 | char const *const *ccp; |
| 9246 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9247 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 9248 | struct point {int x, y;}; |
| 9249 | static struct point const zero = {0,0}; |
| 9250 | /* AIX XL C 1.02.0.0 rejects this. |
| 9251 | It does not let you subtract one const X* pointer from another in |
| 9252 | an arm of an if-expression whose if-part is not a constant |
| 9253 | expression */ |
| 9254 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9255 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9256 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9257 | ++ccp; |
| 9258 | p = (char**) ccp; |
| 9259 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9260 | { /* SCO 3.2v4 cc rejects this. */ |
| 9261 | char *t; |
| 9262 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 9263 | |
| 9264 | *t++ = 0; |
| 9265 | if (s) return 0; |
| 9266 | } |
| 9267 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 9268 | int x[] = {25, 17}; |
| 9269 | const int *foo = &x[0]; |
| 9270 | ++foo; |
| 9271 | } |
| 9272 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 9273 | typedef const int *iptr; |
| 9274 | iptr p = 0; |
| 9275 | ++p; |
| 9276 | } |
| 9277 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 9278 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 9279 | struct s { int j; const int *ap[3]; }; |
| 9280 | struct s *b; b->j = 5; |
| 9281 | } |
| 9282 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 9283 | const int foo = 10; |
| 9284 | if (!foo) return 0; |
| 9285 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9286 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9287 | #endif |
| 9288 | |
| 9289 | ; |
| 9290 | return 0; |
| 9291 | } |
| 9292 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9293 | rm -f conftest.$ac_objext |
| 9294 | if { (ac_try="$ac_compile" |
| 9295 | case "(($ac_try" in |
| 9296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9297 | *) ac_try_echo=$ac_try;; |
| 9298 | esac |
| 9299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9300 | (eval "$ac_compile") 2>conftest.er1 |
| 9301 | ac_status=$? |
| 9302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9303 | rm -f conftest.er1 |
| 9304 | cat conftest.err >&5 |
| 9305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9306 | (exit $ac_status); } && |
| 9307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9308 | { (case "(($ac_try" in |
| 9309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9310 | *) ac_try_echo=$ac_try;; |
| 9311 | esac |
| 9312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9313 | (eval "$ac_try") 2>&5 |
| 9314 | ac_status=$? |
| 9315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9316 | (exit $ac_status); }; } && |
| 9317 | { ac_try='test -s conftest.$ac_objext' |
| 9318 | { (case "(($ac_try" in |
| 9319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9320 | *) ac_try_echo=$ac_try;; |
| 9321 | esac |
| 9322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9323 | (eval "$ac_try") 2>&5 |
| 9324 | ac_status=$? |
| 9325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9326 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9327 | ac_cv_c_const=yes |
| 9328 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9329 | echo "$as_me: failed program was:" >&5 |
| 9330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9331 | |
| 9332 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9333 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9334 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9336 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9337 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 9338 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9339 | if test $ac_cv_c_const = no; then |
| 9340 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9341 | cat >>confdefs.h <<\_ACEOF |
| 9342 | #define const |
| 9343 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9344 | |
| 9345 | fi |
| 9346 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9347 | |
| 9348 | |
| 9349 | |
| 9350 | |
| 9351 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9352 | ac_header_dirent=no |
| 9353 | 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] | 9354 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 9355 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 9356 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 9357 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9359 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9360 | cat >conftest.$ac_ext <<_ACEOF |
| 9361 | /* confdefs.h. */ |
| 9362 | _ACEOF |
| 9363 | cat confdefs.h >>conftest.$ac_ext |
| 9364 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9365 | /* end confdefs.h. */ |
| 9366 | #include <sys/types.h> |
| 9367 | #include <$ac_hdr> |
| 9368 | |
| 9369 | int |
| 9370 | main () |
| 9371 | { |
| 9372 | if ((DIR *) 0) |
| 9373 | return 0; |
| 9374 | ; |
| 9375 | return 0; |
| 9376 | } |
| 9377 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9378 | rm -f conftest.$ac_objext |
| 9379 | if { (ac_try="$ac_compile" |
| 9380 | case "(($ac_try" in |
| 9381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9382 | *) ac_try_echo=$ac_try;; |
| 9383 | esac |
| 9384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9385 | (eval "$ac_compile") 2>conftest.er1 |
| 9386 | ac_status=$? |
| 9387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9388 | rm -f conftest.er1 |
| 9389 | cat conftest.err >&5 |
| 9390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9391 | (exit $ac_status); } && |
| 9392 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9393 | { (case "(($ac_try" in |
| 9394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9395 | *) ac_try_echo=$ac_try;; |
| 9396 | esac |
| 9397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9398 | (eval "$ac_try") 2>&5 |
| 9399 | ac_status=$? |
| 9400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9401 | (exit $ac_status); }; } && |
| 9402 | { ac_try='test -s conftest.$ac_objext' |
| 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_try") 2>&5 |
| 9409 | ac_status=$? |
| 9410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9411 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9412 | eval "$as_ac_Header=yes" |
| 9413 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9414 | echo "$as_me: failed program was:" >&5 |
| 9415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9416 | |
| 9417 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9418 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9419 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9421 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9422 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9423 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9424 | echo "${ECHO_T}$ac_res" >&6; } |
| 9425 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9426 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9427 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9428 | _ACEOF |
| 9429 | |
| 9430 | ac_header_dirent=$ac_hdr; break |
| 9431 | fi |
| 9432 | |
| 9433 | done |
| 9434 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 9435 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9436 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9437 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9438 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9440 | else |
| 9441 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9442 | cat >conftest.$ac_ext <<_ACEOF |
| 9443 | /* confdefs.h. */ |
| 9444 | _ACEOF |
| 9445 | cat confdefs.h >>conftest.$ac_ext |
| 9446 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9447 | /* end confdefs.h. */ |
| 9448 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9449 | /* Override any GCC internal prototype to avoid an error. |
| 9450 | Use char because int might match the return type of a GCC |
| 9451 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9452 | #ifdef __cplusplus |
| 9453 | extern "C" |
| 9454 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9455 | char opendir (); |
| 9456 | int |
| 9457 | main () |
| 9458 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9459 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9460 | ; |
| 9461 | return 0; |
| 9462 | } |
| 9463 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9464 | for ac_lib in '' dir; do |
| 9465 | if test -z "$ac_lib"; then |
| 9466 | ac_res="none required" |
| 9467 | else |
| 9468 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9469 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9470 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9471 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9472 | if { (ac_try="$ac_link" |
| 9473 | case "(($ac_try" in |
| 9474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9475 | *) ac_try_echo=$ac_try;; |
| 9476 | esac |
| 9477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9478 | (eval "$ac_link") 2>conftest.er1 |
| 9479 | ac_status=$? |
| 9480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9481 | rm -f conftest.er1 |
| 9482 | cat conftest.err >&5 |
| 9483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9484 | (exit $ac_status); } && |
| 9485 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9486 | { (case "(($ac_try" in |
| 9487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9488 | *) ac_try_echo=$ac_try;; |
| 9489 | esac |
| 9490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9491 | (eval "$ac_try") 2>&5 |
| 9492 | ac_status=$? |
| 9493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9494 | (exit $ac_status); }; } && |
| 9495 | { ac_try='test -s conftest$ac_exeext' |
| 9496 | { (case "(($ac_try" in |
| 9497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9498 | *) ac_try_echo=$ac_try;; |
| 9499 | esac |
| 9500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9501 | (eval "$ac_try") 2>&5 |
| 9502 | ac_status=$? |
| 9503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9504 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9505 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9506 | else |
| 9507 | echo "$as_me: failed program was:" >&5 |
| 9508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9509 | |
| 9510 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9511 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9512 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9513 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9514 | conftest$ac_exeext |
| 9515 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9516 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9517 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9518 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9519 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9520 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9521 | else |
| 9522 | ac_cv_search_opendir=no |
| 9523 | fi |
| 9524 | rm conftest.$ac_ext |
| 9525 | LIBS=$ac_func_search_save_LIBS |
| 9526 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9527 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9528 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9529 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9530 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9531 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9532 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9533 | fi |
| 9534 | |
| 9535 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9536 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9537 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9538 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9540 | else |
| 9541 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9542 | cat >conftest.$ac_ext <<_ACEOF |
| 9543 | /* confdefs.h. */ |
| 9544 | _ACEOF |
| 9545 | cat confdefs.h >>conftest.$ac_ext |
| 9546 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9547 | /* end confdefs.h. */ |
| 9548 | |
| 9549 | /* Override any GCC internal prototype to avoid an error. |
| 9550 | Use char because int might match the return type of a GCC |
| 9551 | builtin and then its argument prototype would still apply. */ |
| 9552 | #ifdef __cplusplus |
| 9553 | extern "C" |
| 9554 | #endif |
| 9555 | char opendir (); |
| 9556 | int |
| 9557 | main () |
| 9558 | { |
| 9559 | return opendir (); |
| 9560 | ; |
| 9561 | return 0; |
| 9562 | } |
| 9563 | _ACEOF |
| 9564 | for ac_lib in '' x; do |
| 9565 | if test -z "$ac_lib"; then |
| 9566 | ac_res="none required" |
| 9567 | else |
| 9568 | ac_res=-l$ac_lib |
| 9569 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9570 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9571 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9572 | if { (ac_try="$ac_link" |
| 9573 | case "(($ac_try" in |
| 9574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9575 | *) ac_try_echo=$ac_try;; |
| 9576 | esac |
| 9577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9578 | (eval "$ac_link") 2>conftest.er1 |
| 9579 | ac_status=$? |
| 9580 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9581 | rm -f conftest.er1 |
| 9582 | cat conftest.err >&5 |
| 9583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9584 | (exit $ac_status); } && |
| 9585 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9586 | { (case "(($ac_try" in |
| 9587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9588 | *) ac_try_echo=$ac_try;; |
| 9589 | esac |
| 9590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9591 | (eval "$ac_try") 2>&5 |
| 9592 | ac_status=$? |
| 9593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9594 | (exit $ac_status); }; } && |
| 9595 | { ac_try='test -s conftest$ac_exeext' |
| 9596 | { (case "(($ac_try" in |
| 9597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9598 | *) ac_try_echo=$ac_try;; |
| 9599 | esac |
| 9600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9601 | (eval "$ac_try") 2>&5 |
| 9602 | ac_status=$? |
| 9603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9604 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9605 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9606 | else |
| 9607 | echo "$as_me: failed program was:" >&5 |
| 9608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9609 | |
| 9610 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9611 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9612 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9613 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9614 | conftest$ac_exeext |
| 9615 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9616 | break |
| 9617 | fi |
| 9618 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9619 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9620 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9621 | else |
| 9622 | ac_cv_search_opendir=no |
| 9623 | fi |
| 9624 | rm conftest.$ac_ext |
| 9625 | LIBS=$ac_func_search_save_LIBS |
| 9626 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9627 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9628 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9629 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9630 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9631 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9632 | |
| 9633 | fi |
| 9634 | |
| 9635 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9636 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9637 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9638 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9639 | do |
| 9640 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9641 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9642 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9643 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9644 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9646 | fi |
| 9647 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9648 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9649 | echo "${ECHO_T}$ac_res" >&6; } |
| 9650 | else |
| 9651 | # Is the header compilable? |
| 9652 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9653 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 9654 | cat >conftest.$ac_ext <<_ACEOF |
| 9655 | /* confdefs.h. */ |
| 9656 | _ACEOF |
| 9657 | cat confdefs.h >>conftest.$ac_ext |
| 9658 | cat >>conftest.$ac_ext <<_ACEOF |
| 9659 | /* end confdefs.h. */ |
| 9660 | $ac_includes_default |
| 9661 | #include <$ac_header> |
| 9662 | _ACEOF |
| 9663 | rm -f conftest.$ac_objext |
| 9664 | if { (ac_try="$ac_compile" |
| 9665 | case "(($ac_try" in |
| 9666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9667 | *) ac_try_echo=$ac_try;; |
| 9668 | esac |
| 9669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9670 | (eval "$ac_compile") 2>conftest.er1 |
| 9671 | ac_status=$? |
| 9672 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9673 | rm -f conftest.er1 |
| 9674 | cat conftest.err >&5 |
| 9675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9676 | (exit $ac_status); } && |
| 9677 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9678 | { (case "(($ac_try" in |
| 9679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9680 | *) ac_try_echo=$ac_try;; |
| 9681 | esac |
| 9682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9683 | (eval "$ac_try") 2>&5 |
| 9684 | ac_status=$? |
| 9685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9686 | (exit $ac_status); }; } && |
| 9687 | { ac_try='test -s conftest.$ac_objext' |
| 9688 | { (case "(($ac_try" in |
| 9689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9690 | *) ac_try_echo=$ac_try;; |
| 9691 | esac |
| 9692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9693 | (eval "$ac_try") 2>&5 |
| 9694 | ac_status=$? |
| 9695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9696 | (exit $ac_status); }; }; then |
| 9697 | ac_header_compiler=yes |
| 9698 | else |
| 9699 | echo "$as_me: failed program was:" >&5 |
| 9700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9701 | |
| 9702 | ac_header_compiler=no |
| 9703 | fi |
| 9704 | |
| 9705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9706 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9707 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9708 | |
| 9709 | # Is the header present? |
| 9710 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9711 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 9712 | cat >conftest.$ac_ext <<_ACEOF |
| 9713 | /* confdefs.h. */ |
| 9714 | _ACEOF |
| 9715 | cat confdefs.h >>conftest.$ac_ext |
| 9716 | cat >>conftest.$ac_ext <<_ACEOF |
| 9717 | /* end confdefs.h. */ |
| 9718 | #include <$ac_header> |
| 9719 | _ACEOF |
| 9720 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9721 | case "(($ac_try" in |
| 9722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9723 | *) ac_try_echo=$ac_try;; |
| 9724 | esac |
| 9725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9726 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9727 | ac_status=$? |
| 9728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9729 | rm -f conftest.er1 |
| 9730 | cat conftest.err >&5 |
| 9731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9732 | (exit $ac_status); } >/dev/null; then |
| 9733 | if test -s conftest.err; then |
| 9734 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9735 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9736 | else |
| 9737 | ac_cpp_err= |
| 9738 | fi |
| 9739 | else |
| 9740 | ac_cpp_err=yes |
| 9741 | fi |
| 9742 | if test -z "$ac_cpp_err"; then |
| 9743 | ac_header_preproc=yes |
| 9744 | else |
| 9745 | echo "$as_me: failed program was:" >&5 |
| 9746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9747 | |
| 9748 | ac_header_preproc=no |
| 9749 | fi |
| 9750 | |
| 9751 | rm -f conftest.err conftest.$ac_ext |
| 9752 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9753 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9754 | |
| 9755 | # So? What about this header? |
| 9756 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9757 | yes:no: ) |
| 9758 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9759 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9760 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9761 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9762 | ac_header_preproc=yes |
| 9763 | ;; |
| 9764 | no:yes:* ) |
| 9765 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9766 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9767 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9768 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9769 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9770 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9771 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9772 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9773 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9774 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9775 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9776 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9777 | ( cat <<\_ASBOX |
| 9778 | ## ----------------------------------- ## |
| 9779 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9780 | ## ----------------------------------- ## |
| 9781 | _ASBOX |
| 9782 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 9783 | ;; |
| 9784 | esac |
| 9785 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9786 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9787 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9789 | else |
| 9790 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9791 | fi |
| 9792 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9793 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9794 | echo "${ECHO_T}$ac_res" >&6; } |
| 9795 | |
| 9796 | fi |
| 9797 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9798 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9799 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9800 | _ACEOF |
| 9801 | |
| 9802 | fi |
| 9803 | |
| 9804 | done |
| 9805 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9806 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9807 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9808 | enableval=$enable_ltdl_install; |
| 9809 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9810 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9811 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9812 | |
| 9813 | |
| 9814 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9815 | INSTALL_LTDL_TRUE= |
| 9816 | INSTALL_LTDL_FALSE='#' |
| 9817 | else |
| 9818 | INSTALL_LTDL_TRUE='#' |
| 9819 | INSTALL_LTDL_FALSE= |
| 9820 | fi |
| 9821 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9822 | |
| 9823 | |
| 9824 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9825 | CONVENIENCE_LTDL_TRUE= |
| 9826 | CONVENIENCE_LTDL_FALSE='#' |
| 9827 | else |
| 9828 | CONVENIENCE_LTDL_TRUE='#' |
| 9829 | CONVENIENCE_LTDL_FALSE= |
| 9830 | fi |
| 9831 | |
| 9832 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9833 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9834 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9835 | library_names_spec= |
| 9836 | libname_spec='lib$name' |
| 9837 | soname_spec= |
| 9838 | shrext_cmds=".so" |
| 9839 | postinstall_cmds= |
| 9840 | postuninstall_cmds= |
| 9841 | finish_cmds= |
| 9842 | finish_eval= |
| 9843 | shlibpath_var= |
| 9844 | shlibpath_overrides_runpath=unknown |
| 9845 | version_type=none |
| 9846 | dynamic_linker="$host_os ld.so" |
| 9847 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9848 | if test "$GCC" = yes; then |
| 9849 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9850 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9851 | # if the path contains ";" then we assume it to be the separator |
| 9852 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9853 | # assumed that no part of a normal pathname contains ";" but that should |
| 9854 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9855 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9856 | else |
| 9857 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9858 | fi |
| 9859 | else |
| 9860 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9861 | fi |
| 9862 | need_lib_prefix=unknown |
| 9863 | hardcode_into_libs=no |
| 9864 | |
| 9865 | # when you set need_version to no, make sure it does not cause -set_version |
| 9866 | # flags to be left without arguments |
| 9867 | need_version=unknown |
| 9868 | |
| 9869 | case $host_os in |
| 9870 | aix3*) |
| 9871 | version_type=linux |
| 9872 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9873 | shlibpath_var=LIBPATH |
| 9874 | |
| 9875 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9876 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9877 | ;; |
| 9878 | |
| 9879 | aix4* | aix5*) |
| 9880 | version_type=linux |
| 9881 | need_lib_prefix=no |
| 9882 | need_version=no |
| 9883 | hardcode_into_libs=yes |
| 9884 | if test "$host_cpu" = ia64; then |
| 9885 | # AIX 5 supports IA64 |
| 9886 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9887 | shlibpath_var=LD_LIBRARY_PATH |
| 9888 | else |
| 9889 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9890 | # for dependence libraries. The import file would start with |
| 9891 | # the line `#! .'. This would cause the generated library to |
| 9892 | # depend on `.', always an invalid library. This was fixed in |
| 9893 | # development snapshots of GCC prior to 3.0. |
| 9894 | case $host_os in |
| 9895 | aix4 | aix4.[01] | aix4.[01].*) |
| 9896 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9897 | echo ' yes ' |
| 9898 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9899 | : |
| 9900 | else |
| 9901 | can_build_shared=no |
| 9902 | fi |
| 9903 | ;; |
| 9904 | esac |
| 9905 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9906 | # soname into executable. Probably we can add versioning support to |
| 9907 | # collect2, so additional links can be useful in future. |
| 9908 | if test "$aix_use_runtimelinking" = yes; then |
| 9909 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9910 | # instead of lib<name>.a to let people know that these are not |
| 9911 | # typical AIX shared libraries. |
| 9912 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9913 | else |
| 9914 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9915 | # and later when we are not doing run time linking. |
| 9916 | library_names_spec='${libname}${release}.a $libname.a' |
| 9917 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9918 | fi |
| 9919 | shlibpath_var=LIBPATH |
| 9920 | fi |
| 9921 | ;; |
| 9922 | |
| 9923 | amigaos*) |
| 9924 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9925 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9926 | 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' |
| 9927 | ;; |
| 9928 | |
| 9929 | beos*) |
| 9930 | library_names_spec='${libname}${shared_ext}' |
| 9931 | dynamic_linker="$host_os ld.so" |
| 9932 | shlibpath_var=LIBRARY_PATH |
| 9933 | ;; |
| 9934 | |
| 9935 | bsdi[45]*) |
| 9936 | version_type=linux |
| 9937 | need_version=no |
| 9938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9939 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9940 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9941 | shlibpath_var=LD_LIBRARY_PATH |
| 9942 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9943 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9944 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9945 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9946 | # libtool to hard-code these into programs |
| 9947 | ;; |
| 9948 | |
| 9949 | cygwin* | mingw* | pw32*) |
| 9950 | version_type=windows |
| 9951 | shrext_cmds=".dll" |
| 9952 | need_version=no |
| 9953 | need_lib_prefix=no |
| 9954 | |
| 9955 | case $GCC,$host_os in |
| 9956 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9957 | library_names_spec='$libname.dll.a' |
| 9958 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9959 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9960 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9961 | dldir=$destdir/`dirname \$dlpath`~ |
| 9962 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9963 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9964 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9965 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9966 | dlpath=$dir/\$dldll~ |
| 9967 | $rm \$dlpath' |
| 9968 | shlibpath_overrides_runpath=yes |
| 9969 | |
| 9970 | case $host_os in |
| 9971 | cygwin*) |
| 9972 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9973 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9974 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9975 | ;; |
| 9976 | mingw*) |
| 9977 | # MinGW DLLs use traditional 'lib' prefix |
| 9978 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9979 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9980 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9981 | # It is most probably a Windows format PATH printed by |
| 9982 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9983 | # path with ; separators, and with drive letters. We can handle the |
| 9984 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9985 | # especially as we might pass files found there to a mingw objdump, |
| 9986 | # which wouldn't understand a cygwinified path. Ahh. |
| 9987 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9988 | else |
| 9989 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9990 | fi |
| 9991 | ;; |
| 9992 | pw32*) |
| 9993 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9994 | 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] | 9995 | ;; |
| 9996 | esac |
| 9997 | ;; |
| 9998 | |
| 9999 | *) |
| 10000 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 10001 | ;; |
| 10002 | esac |
| 10003 | dynamic_linker='Win32 ld.exe' |
| 10004 | # FIXME: first we should search . and the directory the executable is in |
| 10005 | shlibpath_var=PATH |
| 10006 | ;; |
| 10007 | |
| 10008 | darwin* | rhapsody*) |
| 10009 | dynamic_linker="$host_os dyld" |
| 10010 | version_type=darwin |
| 10011 | need_lib_prefix=no |
| 10012 | need_version=no |
| 10013 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 10014 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10015 | shlibpath_overrides_runpath=yes |
| 10016 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 10017 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10018 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 10019 | if test "$GCC" = yes; then |
| 10020 | 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"` |
| 10021 | else |
| 10022 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 10023 | fi |
| 10024 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10025 | ;; |
| 10026 | |
| 10027 | dgux*) |
| 10028 | version_type=linux |
| 10029 | need_lib_prefix=no |
| 10030 | need_version=no |
| 10031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10032 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10033 | shlibpath_var=LD_LIBRARY_PATH |
| 10034 | ;; |
| 10035 | |
| 10036 | freebsd1*) |
| 10037 | dynamic_linker=no |
| 10038 | ;; |
| 10039 | |
| 10040 | kfreebsd*-gnu) |
| 10041 | version_type=linux |
| 10042 | need_lib_prefix=no |
| 10043 | need_version=no |
| 10044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10045 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10046 | shlibpath_var=LD_LIBRARY_PATH |
| 10047 | shlibpath_overrides_runpath=no |
| 10048 | hardcode_into_libs=yes |
| 10049 | dynamic_linker='GNU ld.so' |
| 10050 | ;; |
| 10051 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10052 | freebsd* | dragonfly*) |
| 10053 | # DragonFly does not have aout. When/if they implement a new |
| 10054 | # versioning mechanism, adjust this. |
| 10055 | if test -x /usr/bin/objformat; then |
| 10056 | objformat=`/usr/bin/objformat` |
| 10057 | else |
| 10058 | case $host_os in |
| 10059 | freebsd[123]*) objformat=aout ;; |
| 10060 | *) objformat=elf ;; |
| 10061 | esac |
| 10062 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10063 | version_type=freebsd-$objformat |
| 10064 | case $version_type in |
| 10065 | freebsd-elf*) |
| 10066 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10067 | need_version=no |
| 10068 | need_lib_prefix=no |
| 10069 | ;; |
| 10070 | freebsd-*) |
| 10071 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10072 | need_version=yes |
| 10073 | ;; |
| 10074 | esac |
| 10075 | shlibpath_var=LD_LIBRARY_PATH |
| 10076 | case $host_os in |
| 10077 | freebsd2*) |
| 10078 | shlibpath_overrides_runpath=yes |
| 10079 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10080 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10081 | shlibpath_overrides_runpath=yes |
| 10082 | hardcode_into_libs=yes |
| 10083 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10084 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10085 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10086 | shlibpath_overrides_runpath=no |
| 10087 | hardcode_into_libs=yes |
| 10088 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10089 | freebsd*) # from 4.6 on |
| 10090 | shlibpath_overrides_runpath=yes |
| 10091 | hardcode_into_libs=yes |
| 10092 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10093 | esac |
| 10094 | ;; |
| 10095 | |
| 10096 | gnu*) |
| 10097 | version_type=linux |
| 10098 | need_lib_prefix=no |
| 10099 | need_version=no |
| 10100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10101 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10102 | shlibpath_var=LD_LIBRARY_PATH |
| 10103 | hardcode_into_libs=yes |
| 10104 | ;; |
| 10105 | |
| 10106 | hpux9* | hpux10* | hpux11*) |
| 10107 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10108 | # link against other versions. |
| 10109 | version_type=sunos |
| 10110 | need_lib_prefix=no |
| 10111 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10112 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10113 | ia64*) |
| 10114 | shrext_cmds='.so' |
| 10115 | hardcode_into_libs=yes |
| 10116 | dynamic_linker="$host_os dld.so" |
| 10117 | shlibpath_var=LD_LIBRARY_PATH |
| 10118 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10119 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10120 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10121 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10122 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10123 | else |
| 10124 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10125 | fi |
| 10126 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10127 | ;; |
| 10128 | hppa*64*) |
| 10129 | shrext_cmds='.sl' |
| 10130 | hardcode_into_libs=yes |
| 10131 | dynamic_linker="$host_os dld.sl" |
| 10132 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10133 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10134 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10135 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10136 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10137 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10138 | ;; |
| 10139 | *) |
| 10140 | shrext_cmds='.sl' |
| 10141 | dynamic_linker="$host_os dld.sl" |
| 10142 | shlibpath_var=SHLIB_PATH |
| 10143 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10144 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10145 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10146 | ;; |
| 10147 | esac |
| 10148 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 10149 | postinstall_cmds='chmod 555 $lib' |
| 10150 | ;; |
| 10151 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10152 | interix3*) |
| 10153 | version_type=linux |
| 10154 | need_lib_prefix=no |
| 10155 | need_version=no |
| 10156 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10157 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10158 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10159 | shlibpath_var=LD_LIBRARY_PATH |
| 10160 | shlibpath_overrides_runpath=no |
| 10161 | hardcode_into_libs=yes |
| 10162 | ;; |
| 10163 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10164 | irix5* | irix6* | nonstopux*) |
| 10165 | case $host_os in |
| 10166 | nonstopux*) version_type=nonstopux ;; |
| 10167 | *) |
| 10168 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10169 | version_type=linux |
| 10170 | else |
| 10171 | version_type=irix |
| 10172 | fi ;; |
| 10173 | esac |
| 10174 | need_lib_prefix=no |
| 10175 | need_version=no |
| 10176 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10178 | case $host_os in |
| 10179 | irix5* | nonstopux*) |
| 10180 | libsuff= shlibsuff= |
| 10181 | ;; |
| 10182 | *) |
| 10183 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10184 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10185 | libsuff= shlibsuff= libmagic=32-bit;; |
| 10186 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10187 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10188 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10189 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10190 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 10191 | esac |
| 10192 | ;; |
| 10193 | esac |
| 10194 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10195 | shlibpath_overrides_runpath=no |
| 10196 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10197 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10198 | hardcode_into_libs=yes |
| 10199 | ;; |
| 10200 | |
| 10201 | # No shared lib support for Linux oldld, aout, or coff. |
| 10202 | linux*oldld* | linux*aout* | linux*coff*) |
| 10203 | dynamic_linker=no |
| 10204 | ;; |
| 10205 | |
| 10206 | # This must be Linux ELF. |
| 10207 | linux*) |
| 10208 | version_type=linux |
| 10209 | need_lib_prefix=no |
| 10210 | need_version=no |
| 10211 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10212 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10213 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10214 | shlibpath_var=LD_LIBRARY_PATH |
| 10215 | shlibpath_overrides_runpath=no |
| 10216 | # This implies no fast_install, which is unacceptable. |
| 10217 | # Some rework will be needed to allow for fast_install |
| 10218 | # before this can be enabled. |
| 10219 | hardcode_into_libs=yes |
| 10220 | |
| 10221 | # Append ld.so.conf contents to the search path |
| 10222 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10223 | 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] | 10224 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10225 | fi |
| 10226 | |
| 10227 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10228 | # powerpc, because MkLinux only supported shared libraries with the |
| 10229 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10230 | # most powerpc-linux boxes support dynamic linking these days and |
| 10231 | # people can always --disable-shared, the test was removed, and we |
| 10232 | # assume the GNU/Linux dynamic linker is in use. |
| 10233 | dynamic_linker='GNU/Linux ld.so' |
| 10234 | ;; |
| 10235 | |
| 10236 | knetbsd*-gnu) |
| 10237 | version_type=linux |
| 10238 | need_lib_prefix=no |
| 10239 | need_version=no |
| 10240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10241 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10242 | shlibpath_var=LD_LIBRARY_PATH |
| 10243 | shlibpath_overrides_runpath=no |
| 10244 | hardcode_into_libs=yes |
| 10245 | dynamic_linker='GNU ld.so' |
| 10246 | ;; |
| 10247 | |
| 10248 | netbsd*) |
| 10249 | version_type=sunos |
| 10250 | need_lib_prefix=no |
| 10251 | need_version=no |
| 10252 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10253 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10254 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10255 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10256 | else |
| 10257 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10258 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10259 | dynamic_linker='NetBSD ld.elf_so' |
| 10260 | fi |
| 10261 | shlibpath_var=LD_LIBRARY_PATH |
| 10262 | shlibpath_overrides_runpath=yes |
| 10263 | hardcode_into_libs=yes |
| 10264 | ;; |
| 10265 | |
| 10266 | newsos6) |
| 10267 | version_type=linux |
| 10268 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10269 | shlibpath_var=LD_LIBRARY_PATH |
| 10270 | shlibpath_overrides_runpath=yes |
| 10271 | ;; |
| 10272 | |
| 10273 | nto-qnx*) |
| 10274 | version_type=linux |
| 10275 | need_lib_prefix=no |
| 10276 | need_version=no |
| 10277 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10278 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10279 | shlibpath_var=LD_LIBRARY_PATH |
| 10280 | shlibpath_overrides_runpath=yes |
| 10281 | ;; |
| 10282 | |
| 10283 | openbsd*) |
| 10284 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10285 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10286 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10287 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10288 | case $host_os in |
| 10289 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10290 | *) need_version=no ;; |
| 10291 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10292 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10293 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10294 | shlibpath_var=LD_LIBRARY_PATH |
| 10295 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10296 | case $host_os in |
| 10297 | openbsd2.[89] | openbsd2.[89].*) |
| 10298 | shlibpath_overrides_runpath=no |
| 10299 | ;; |
| 10300 | *) |
| 10301 | shlibpath_overrides_runpath=yes |
| 10302 | ;; |
| 10303 | esac |
| 10304 | else |
| 10305 | shlibpath_overrides_runpath=yes |
| 10306 | fi |
| 10307 | ;; |
| 10308 | |
| 10309 | os2*) |
| 10310 | libname_spec='$name' |
| 10311 | shrext_cmds=".dll" |
| 10312 | need_lib_prefix=no |
| 10313 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10314 | dynamic_linker='OS/2 ld.exe' |
| 10315 | shlibpath_var=LIBPATH |
| 10316 | ;; |
| 10317 | |
| 10318 | osf3* | osf4* | osf5*) |
| 10319 | version_type=osf |
| 10320 | need_lib_prefix=no |
| 10321 | need_version=no |
| 10322 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10323 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10324 | shlibpath_var=LD_LIBRARY_PATH |
| 10325 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10326 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10327 | ;; |
| 10328 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10329 | solaris*) |
| 10330 | version_type=linux |
| 10331 | need_lib_prefix=no |
| 10332 | need_version=no |
| 10333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10334 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10335 | shlibpath_var=LD_LIBRARY_PATH |
| 10336 | shlibpath_overrides_runpath=yes |
| 10337 | hardcode_into_libs=yes |
| 10338 | # ldd complains unless libraries are executable |
| 10339 | postinstall_cmds='chmod +x $lib' |
| 10340 | ;; |
| 10341 | |
| 10342 | sunos4*) |
| 10343 | version_type=sunos |
| 10344 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10345 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10346 | shlibpath_var=LD_LIBRARY_PATH |
| 10347 | shlibpath_overrides_runpath=yes |
| 10348 | if test "$with_gnu_ld" = yes; then |
| 10349 | need_lib_prefix=no |
| 10350 | fi |
| 10351 | need_version=yes |
| 10352 | ;; |
| 10353 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10354 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10355 | version_type=linux |
| 10356 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10357 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10358 | shlibpath_var=LD_LIBRARY_PATH |
| 10359 | case $host_vendor in |
| 10360 | sni) |
| 10361 | shlibpath_overrides_runpath=no |
| 10362 | need_lib_prefix=no |
| 10363 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10364 | runpath_var=LD_RUN_PATH |
| 10365 | ;; |
| 10366 | siemens) |
| 10367 | need_lib_prefix=no |
| 10368 | ;; |
| 10369 | motorola) |
| 10370 | need_lib_prefix=no |
| 10371 | need_version=no |
| 10372 | shlibpath_overrides_runpath=no |
| 10373 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10374 | ;; |
| 10375 | esac |
| 10376 | ;; |
| 10377 | |
| 10378 | sysv4*MP*) |
| 10379 | if test -d /usr/nec ;then |
| 10380 | version_type=linux |
| 10381 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10382 | soname_spec='$libname${shared_ext}.$major' |
| 10383 | shlibpath_var=LD_LIBRARY_PATH |
| 10384 | fi |
| 10385 | ;; |
| 10386 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10387 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10388 | version_type=freebsd-elf |
| 10389 | need_lib_prefix=no |
| 10390 | need_version=no |
| 10391 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10392 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10393 | shlibpath_var=LD_LIBRARY_PATH |
| 10394 | hardcode_into_libs=yes |
| 10395 | if test "$with_gnu_ld" = yes; then |
| 10396 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 10397 | shlibpath_overrides_runpath=no |
| 10398 | else |
| 10399 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 10400 | shlibpath_overrides_runpath=yes |
| 10401 | case $host_os in |
| 10402 | sco3.2v5*) |
| 10403 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10404 | ;; |
| 10405 | esac |
| 10406 | fi |
| 10407 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10408 | ;; |
| 10409 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10410 | uts4*) |
| 10411 | version_type=linux |
| 10412 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10413 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10414 | shlibpath_var=LD_LIBRARY_PATH |
| 10415 | ;; |
| 10416 | |
| 10417 | *) |
| 10418 | dynamic_linker=no |
| 10419 | ;; |
| 10420 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10421 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 10422 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10423 | test "$dynamic_linker" = no && can_build_shared=no |
| 10424 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10425 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10426 | if test "$GCC" = yes; then |
| 10427 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10428 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10429 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10430 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10431 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 10432 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 10433 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 10434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10435 | else |
| 10436 | |
| 10437 | module=yes |
| 10438 | eval libltdl_cv_shlibext=$shrext_cmds |
| 10439 | |
| 10440 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10441 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 10442 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10443 | if test -n "$libltdl_cv_shlibext"; then |
| 10444 | |
| 10445 | cat >>confdefs.h <<_ACEOF |
| 10446 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 10447 | _ACEOF |
| 10448 | |
| 10449 | fi |
| 10450 | |
| 10451 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10452 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 10453 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 10454 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 10455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10456 | else |
| 10457 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 10458 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10459 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 10460 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10461 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 10462 | |
| 10463 | cat >>confdefs.h <<_ACEOF |
| 10464 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 10465 | _ACEOF |
| 10466 | |
| 10467 | fi |
| 10468 | |
| 10469 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10470 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 10471 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 10472 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 10473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10474 | else |
| 10475 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 10476 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10477 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 10478 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10479 | if test -n "$libltdl_cv_sys_search_path"; then |
| 10480 | sys_search_path= |
| 10481 | for dir in $libltdl_cv_sys_search_path; do |
| 10482 | if test -z "$sys_search_path"; then |
| 10483 | sys_search_path="$dir" |
| 10484 | else |
| 10485 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 10486 | fi |
| 10487 | done |
| 10488 | |
| 10489 | cat >>confdefs.h <<_ACEOF |
| 10490 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 10491 | _ACEOF |
| 10492 | |
| 10493 | fi |
| 10494 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10495 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 10496 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 10497 | if test "${libltdl_cv_objdir+set}" = set; then |
| 10498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10499 | else |
| 10500 | libltdl_cv_objdir="$objdir" |
| 10501 | if test -n "$objdir"; then |
| 10502 | : |
| 10503 | else |
| 10504 | rm -f .libs 2>/dev/null |
| 10505 | mkdir .libs 2>/dev/null |
| 10506 | if test -d .libs; then |
| 10507 | libltdl_cv_objdir=.libs |
| 10508 | else |
| 10509 | # MS-DOS does not allow filenames that begin with a dot. |
| 10510 | libltdl_cv_objdir=_libs |
| 10511 | fi |
| 10512 | rmdir .libs 2>/dev/null |
| 10513 | fi |
| 10514 | |
| 10515 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10516 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 10517 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10518 | |
| 10519 | cat >>confdefs.h <<_ACEOF |
| 10520 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 10521 | _ACEOF |
| 10522 | |
| 10523 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10524 | |
| 10525 | |
| 10526 | |
| 10527 | |
| 10528 | # 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] | 10529 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 10530 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 10531 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 10532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10533 | else |
| 10534 | |
| 10535 | # These are sane defaults that work on at least a few old systems. |
| 10536 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 10537 | |
| 10538 | # Character class describing NM global symbol codes. |
| 10539 | symcode='[BCDEGRST]' |
| 10540 | |
| 10541 | # Regexp to match symbols that can be accessed directly from C. |
| 10542 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 10543 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10544 | # Transform an extracted symbol line into a proper C declaration |
| 10545 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 10546 | |
| 10547 | # Transform an extracted symbol line into symbol name and symbol address |
| 10548 | 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'" |
| 10549 | |
| 10550 | # Define system-specific variables. |
| 10551 | case $host_os in |
| 10552 | aix*) |
| 10553 | symcode='[BCDT]' |
| 10554 | ;; |
| 10555 | cygwin* | mingw* | pw32*) |
| 10556 | symcode='[ABCDGISTW]' |
| 10557 | ;; |
| 10558 | hpux*) # Its linker distinguishes data from code symbols |
| 10559 | if test "$host_cpu" = ia64; then |
| 10560 | symcode='[ABCDEGRST]' |
| 10561 | fi |
| 10562 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10563 | 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'" |
| 10564 | ;; |
| 10565 | linux*) |
| 10566 | if test "$host_cpu" = ia64; then |
| 10567 | symcode='[ABCDGIRSTW]' |
| 10568 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10569 | 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'" |
| 10570 | fi |
| 10571 | ;; |
| 10572 | irix* | nonstopux*) |
| 10573 | symcode='[BCDEGRST]' |
| 10574 | ;; |
| 10575 | osf*) |
| 10576 | symcode='[BCDEGQRST]' |
| 10577 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10578 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10579 | symcode='[BDRT]' |
| 10580 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10581 | sco3.2v5*) |
| 10582 | symcode='[DT]' |
| 10583 | ;; |
| 10584 | sysv4.2uw2*) |
| 10585 | symcode='[DT]' |
| 10586 | ;; |
| 10587 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 10588 | symcode='[ABDT]' |
| 10589 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10590 | sysv4) |
| 10591 | symcode='[DFNSTU]' |
| 10592 | ;; |
| 10593 | esac |
| 10594 | |
| 10595 | # Handle CRLF in mingw tool chain |
| 10596 | opt_cr= |
| 10597 | case $build_os in |
| 10598 | mingw*) |
| 10599 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 10600 | ;; |
| 10601 | esac |
| 10602 | |
| 10603 | # If we're using GNU nm, then use its standard symbol codes. |
| 10604 | case `$NM -V 2>&1` in |
| 10605 | *GNU* | *'with BFD'*) |
| 10606 | symcode='[ABCDGIRSTW]' ;; |
| 10607 | esac |
| 10608 | |
| 10609 | # Try without a prefix undercore, then with it. |
| 10610 | for ac_symprfx in "" "_"; do |
| 10611 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10612 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 10613 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 10614 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10615 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10616 | 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] | 10617 | |
| 10618 | # Check to see that the pipe works correctly. |
| 10619 | pipe_works=no |
| 10620 | |
| 10621 | rm -f conftest* |
| 10622 | cat > conftest.$ac_ext <<EOF |
| 10623 | #ifdef __cplusplus |
| 10624 | extern "C" { |
| 10625 | #endif |
| 10626 | char nm_test_var; |
| 10627 | void nm_test_func(){} |
| 10628 | #ifdef __cplusplus |
| 10629 | } |
| 10630 | #endif |
| 10631 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 10632 | EOF |
| 10633 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10635 | (eval $ac_compile) 2>&5 |
| 10636 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10638 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10639 | # Now try to grab the symbols. |
| 10640 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10641 | 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] | 10642 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 10643 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10645 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10646 | # Try sorting and uniquifying the output. |
| 10647 | if sort "$nlist" | uniq > "$nlist"T; then |
| 10648 | mv -f "$nlist"T "$nlist" |
| 10649 | else |
| 10650 | rm -f "$nlist"T |
| 10651 | fi |
| 10652 | |
| 10653 | # Make sure that we snagged all the symbols we need. |
| 10654 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 10655 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 10656 | cat <<EOF > conftest.$ac_ext |
| 10657 | #ifdef __cplusplus |
| 10658 | extern "C" { |
| 10659 | #endif |
| 10660 | |
| 10661 | EOF |
| 10662 | # Now generate the symbol file. |
| 10663 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 10664 | |
| 10665 | cat <<EOF >> conftest.$ac_ext |
| 10666 | #if defined (__STDC__) && __STDC__ |
| 10667 | # define lt_ptr_t void * |
| 10668 | #else |
| 10669 | # define lt_ptr_t char * |
| 10670 | # define const |
| 10671 | #endif |
| 10672 | |
| 10673 | /* The mapping between symbol names and symbols. */ |
| 10674 | const struct { |
| 10675 | const char *name; |
| 10676 | lt_ptr_t address; |
| 10677 | } |
| 10678 | lt_preloaded_symbols[] = |
| 10679 | { |
| 10680 | EOF |
| 10681 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10682 | cat <<\EOF >> conftest.$ac_ext |
| 10683 | {0, (lt_ptr_t) 0} |
| 10684 | }; |
| 10685 | |
| 10686 | #ifdef __cplusplus |
| 10687 | } |
| 10688 | #endif |
| 10689 | EOF |
| 10690 | # Now try linking the two files. |
| 10691 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10692 | lt_save_LIBS="$LIBS" |
| 10693 | lt_save_CFLAGS="$CFLAGS" |
| 10694 | LIBS="conftstm.$ac_objext" |
| 10695 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10697 | (eval $ac_link) 2>&5 |
| 10698 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10700 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10701 | pipe_works=yes |
| 10702 | fi |
| 10703 | LIBS="$lt_save_LIBS" |
| 10704 | CFLAGS="$lt_save_CFLAGS" |
| 10705 | else |
| 10706 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10707 | fi |
| 10708 | else |
| 10709 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10710 | fi |
| 10711 | else |
| 10712 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10713 | fi |
| 10714 | else |
| 10715 | echo "$progname: failed program was:" >&5 |
| 10716 | cat conftest.$ac_ext >&5 |
| 10717 | fi |
| 10718 | rm -f conftest* conftst* |
| 10719 | |
| 10720 | # Do not use the global_symbol_pipe unless it works. |
| 10721 | if test "$pipe_works" = yes; then |
| 10722 | break |
| 10723 | else |
| 10724 | lt_cv_sys_global_symbol_pipe= |
| 10725 | fi |
| 10726 | done |
| 10727 | |
| 10728 | fi |
| 10729 | |
| 10730 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10731 | lt_cv_sys_global_symbol_to_cdecl= |
| 10732 | fi |
| 10733 | 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] | 10734 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10735 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10736 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10737 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10738 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10739 | fi |
| 10740 | |
| 10741 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10742 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10743 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 10744 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10746 | else |
| 10747 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10748 | libltdl_cv_preloaded_symbols=yes |
| 10749 | else |
| 10750 | libltdl_cv_preloaded_symbols=no |
| 10751 | fi |
| 10752 | |
| 10753 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10754 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10755 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10756 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10757 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10758 | cat >>confdefs.h <<\_ACEOF |
| 10759 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10760 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10761 | |
| 10762 | fi |
| 10763 | |
| 10764 | LIBADD_DL= |
| 10765 | |
| 10766 | ac_ext=c |
| 10767 | ac_cpp='$CPP $CPPFLAGS' |
| 10768 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10769 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10770 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10771 | |
| 10772 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10773 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10774 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 10775 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10777 | else |
| 10778 | cat >conftest.$ac_ext <<_ACEOF |
| 10779 | /* confdefs.h. */ |
| 10780 | _ACEOF |
| 10781 | cat confdefs.h >>conftest.$ac_ext |
| 10782 | cat >>conftest.$ac_ext <<_ACEOF |
| 10783 | /* end confdefs.h. */ |
| 10784 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10785 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10786 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10787 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10788 | /* System header to define __stub macros and hopefully few prototypes, |
| 10789 | which can conflict with char shl_load (); below. |
| 10790 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10791 | <limits.h> exists even on freestanding compilers. */ |
| 10792 | |
| 10793 | #ifdef __STDC__ |
| 10794 | # include <limits.h> |
| 10795 | #else |
| 10796 | # include <assert.h> |
| 10797 | #endif |
| 10798 | |
| 10799 | #undef shl_load |
| 10800 | |
| 10801 | /* Override any GCC internal prototype to avoid an error. |
| 10802 | Use char because int might match the return type of a GCC |
| 10803 | builtin and then its argument prototype would still apply. */ |
| 10804 | #ifdef __cplusplus |
| 10805 | extern "C" |
| 10806 | #endif |
| 10807 | char shl_load (); |
| 10808 | /* The GNU C library defines this for functions which it implements |
| 10809 | to always fail with ENOSYS. Some functions are actually named |
| 10810 | something starting with __ and the normal name is an alias. */ |
| 10811 | #if defined __stub_shl_load || defined __stub___shl_load |
| 10812 | choke me |
| 10813 | #endif |
| 10814 | |
| 10815 | int |
| 10816 | main () |
| 10817 | { |
| 10818 | return shl_load (); |
| 10819 | ; |
| 10820 | return 0; |
| 10821 | } |
| 10822 | _ACEOF |
| 10823 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10824 | if { (ac_try="$ac_link" |
| 10825 | case "(($ac_try" in |
| 10826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10827 | *) ac_try_echo=$ac_try;; |
| 10828 | esac |
| 10829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10830 | (eval "$ac_link") 2>conftest.er1 |
| 10831 | ac_status=$? |
| 10832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10833 | rm -f conftest.er1 |
| 10834 | cat conftest.err >&5 |
| 10835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10836 | (exit $ac_status); } && |
| 10837 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 10844 | ac_status=$? |
| 10845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10846 | (exit $ac_status); }; } && |
| 10847 | { ac_try='test -s conftest$ac_exeext' |
| 10848 | { (case "(($ac_try" in |
| 10849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10850 | *) ac_try_echo=$ac_try;; |
| 10851 | esac |
| 10852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10853 | (eval "$ac_try") 2>&5 |
| 10854 | ac_status=$? |
| 10855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10856 | (exit $ac_status); }; }; then |
| 10857 | ac_cv_func_shl_load=yes |
| 10858 | else |
| 10859 | echo "$as_me: failed program was:" >&5 |
| 10860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10861 | |
| 10862 | ac_cv_func_shl_load=no |
| 10863 | fi |
| 10864 | |
| 10865 | rm -f core conftest.err conftest.$ac_objext \ |
| 10866 | conftest$ac_exeext conftest.$ac_ext |
| 10867 | fi |
| 10868 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10869 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 10870 | if test $ac_cv_func_shl_load = yes; then |
| 10871 | |
| 10872 | cat >>confdefs.h <<\_ACEOF |
| 10873 | #define HAVE_SHL_LOAD 1 |
| 10874 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10875 | |
| 10876 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10877 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10878 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 10879 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10881 | else |
| 10882 | ac_check_lib_save_LIBS=$LIBS |
| 10883 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10884 | cat >conftest.$ac_ext <<_ACEOF |
| 10885 | /* confdefs.h. */ |
| 10886 | _ACEOF |
| 10887 | cat confdefs.h >>conftest.$ac_ext |
| 10888 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10889 | /* end confdefs.h. */ |
| 10890 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10891 | /* Override any GCC internal prototype to avoid an error. |
| 10892 | Use char because int might match the return type of a GCC |
| 10893 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10894 | #ifdef __cplusplus |
| 10895 | extern "C" |
| 10896 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10897 | char shl_load (); |
| 10898 | int |
| 10899 | main () |
| 10900 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10901 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10902 | ; |
| 10903 | return 0; |
| 10904 | } |
| 10905 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10906 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10907 | if { (ac_try="$ac_link" |
| 10908 | case "(($ac_try" in |
| 10909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10910 | *) ac_try_echo=$ac_try;; |
| 10911 | esac |
| 10912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10913 | (eval "$ac_link") 2>conftest.er1 |
| 10914 | ac_status=$? |
| 10915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10916 | rm -f conftest.er1 |
| 10917 | cat conftest.err >&5 |
| 10918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10919 | (exit $ac_status); } && |
| 10920 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10921 | { (case "(($ac_try" in |
| 10922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10923 | *) ac_try_echo=$ac_try;; |
| 10924 | esac |
| 10925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10926 | (eval "$ac_try") 2>&5 |
| 10927 | ac_status=$? |
| 10928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10929 | (exit $ac_status); }; } && |
| 10930 | { ac_try='test -s conftest$ac_exeext' |
| 10931 | { (case "(($ac_try" in |
| 10932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10933 | *) ac_try_echo=$ac_try;; |
| 10934 | esac |
| 10935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10936 | (eval "$ac_try") 2>&5 |
| 10937 | ac_status=$? |
| 10938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10939 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10940 | ac_cv_lib_dld_shl_load=yes |
| 10941 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10942 | echo "$as_me: failed program was:" >&5 |
| 10943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10944 | |
| 10945 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10946 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10947 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10948 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10949 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10950 | LIBS=$ac_check_lib_save_LIBS |
| 10951 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10952 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10953 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 10954 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10955 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10956 | cat >>confdefs.h <<\_ACEOF |
| 10957 | #define HAVE_SHL_LOAD 1 |
| 10958 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10959 | |
| 10960 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10961 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10962 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10963 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 10964 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10966 | else |
| 10967 | ac_check_lib_save_LIBS=$LIBS |
| 10968 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10969 | cat >conftest.$ac_ext <<_ACEOF |
| 10970 | /* confdefs.h. */ |
| 10971 | _ACEOF |
| 10972 | cat confdefs.h >>conftest.$ac_ext |
| 10973 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10974 | /* end confdefs.h. */ |
| 10975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10976 | /* Override any GCC internal prototype to avoid an error. |
| 10977 | Use char because int might match the return type of a GCC |
| 10978 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10979 | #ifdef __cplusplus |
| 10980 | extern "C" |
| 10981 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10982 | char dlopen (); |
| 10983 | int |
| 10984 | main () |
| 10985 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10986 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10987 | ; |
| 10988 | return 0; |
| 10989 | } |
| 10990 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10991 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10992 | if { (ac_try="$ac_link" |
| 10993 | case "(($ac_try" in |
| 10994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10995 | *) ac_try_echo=$ac_try;; |
| 10996 | esac |
| 10997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10998 | (eval "$ac_link") 2>conftest.er1 |
| 10999 | ac_status=$? |
| 11000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11001 | rm -f conftest.er1 |
| 11002 | cat conftest.err >&5 |
| 11003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11004 | (exit $ac_status); } && |
| 11005 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11006 | { (case "(($ac_try" in |
| 11007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11008 | *) ac_try_echo=$ac_try;; |
| 11009 | esac |
| 11010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11011 | (eval "$ac_try") 2>&5 |
| 11012 | ac_status=$? |
| 11013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11014 | (exit $ac_status); }; } && |
| 11015 | { ac_try='test -s conftest$ac_exeext' |
| 11016 | { (case "(($ac_try" in |
| 11017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11018 | *) ac_try_echo=$ac_try;; |
| 11019 | esac |
| 11020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11021 | (eval "$ac_try") 2>&5 |
| 11022 | ac_status=$? |
| 11023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11024 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11025 | ac_cv_lib_dl_dlopen=yes |
| 11026 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11027 | echo "$as_me: failed program was:" >&5 |
| 11028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11029 | |
| 11030 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11031 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11032 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11033 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11034 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11035 | LIBS=$ac_check_lib_save_LIBS |
| 11036 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11037 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11038 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 11039 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11040 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11041 | cat >>confdefs.h <<\_ACEOF |
| 11042 | #define HAVE_LIBDL 1 |
| 11043 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11044 | |
| 11045 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 11046 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11047 | cat >conftest.$ac_ext <<_ACEOF |
| 11048 | /* confdefs.h. */ |
| 11049 | _ACEOF |
| 11050 | cat confdefs.h >>conftest.$ac_ext |
| 11051 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11052 | /* end confdefs.h. */ |
| 11053 | #if HAVE_DLFCN_H |
| 11054 | # include <dlfcn.h> |
| 11055 | #endif |
| 11056 | |
| 11057 | int |
| 11058 | main () |
| 11059 | { |
| 11060 | dlopen(0, 0); |
| 11061 | ; |
| 11062 | return 0; |
| 11063 | } |
| 11064 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11065 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11066 | if { (ac_try="$ac_link" |
| 11067 | case "(($ac_try" in |
| 11068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11069 | *) ac_try_echo=$ac_try;; |
| 11070 | esac |
| 11071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11072 | (eval "$ac_link") 2>conftest.er1 |
| 11073 | ac_status=$? |
| 11074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11075 | rm -f conftest.er1 |
| 11076 | cat conftest.err >&5 |
| 11077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11078 | (exit $ac_status); } && |
| 11079 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11080 | { (case "(($ac_try" in |
| 11081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11082 | *) ac_try_echo=$ac_try;; |
| 11083 | esac |
| 11084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11085 | (eval "$ac_try") 2>&5 |
| 11086 | ac_status=$? |
| 11087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11088 | (exit $ac_status); }; } && |
| 11089 | { ac_try='test -s conftest$ac_exeext' |
| 11090 | { (case "(($ac_try" in |
| 11091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11092 | *) ac_try_echo=$ac_try;; |
| 11093 | esac |
| 11094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11095 | (eval "$ac_try") 2>&5 |
| 11096 | ac_status=$? |
| 11097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11098 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11099 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11100 | cat >>confdefs.h <<\_ACEOF |
| 11101 | #define HAVE_LIBDL 1 |
| 11102 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11103 | libltdl_cv_func_dlopen="yes" |
| 11104 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11105 | echo "$as_me: failed program was:" >&5 |
| 11106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11107 | |
| 11108 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 11109 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 11110 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 11111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11112 | else |
| 11113 | ac_check_lib_save_LIBS=$LIBS |
| 11114 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11115 | cat >conftest.$ac_ext <<_ACEOF |
| 11116 | /* confdefs.h. */ |
| 11117 | _ACEOF |
| 11118 | cat confdefs.h >>conftest.$ac_ext |
| 11119 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11120 | /* end confdefs.h. */ |
| 11121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11122 | /* Override any GCC internal prototype to avoid an error. |
| 11123 | Use char because int might match the return type of a GCC |
| 11124 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11125 | #ifdef __cplusplus |
| 11126 | extern "C" |
| 11127 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11128 | char dlopen (); |
| 11129 | int |
| 11130 | main () |
| 11131 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11132 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11133 | ; |
| 11134 | return 0; |
| 11135 | } |
| 11136 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11137 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11138 | if { (ac_try="$ac_link" |
| 11139 | case "(($ac_try" in |
| 11140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11141 | *) ac_try_echo=$ac_try;; |
| 11142 | esac |
| 11143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11144 | (eval "$ac_link") 2>conftest.er1 |
| 11145 | ac_status=$? |
| 11146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11147 | rm -f conftest.er1 |
| 11148 | cat conftest.err >&5 |
| 11149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11150 | (exit $ac_status); } && |
| 11151 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11152 | { (case "(($ac_try" in |
| 11153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11154 | *) ac_try_echo=$ac_try;; |
| 11155 | esac |
| 11156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11157 | (eval "$ac_try") 2>&5 |
| 11158 | ac_status=$? |
| 11159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11160 | (exit $ac_status); }; } && |
| 11161 | { ac_try='test -s conftest$ac_exeext' |
| 11162 | { (case "(($ac_try" in |
| 11163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11164 | *) ac_try_echo=$ac_try;; |
| 11165 | esac |
| 11166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11167 | (eval "$ac_try") 2>&5 |
| 11168 | ac_status=$? |
| 11169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11170 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11171 | ac_cv_lib_svld_dlopen=yes |
| 11172 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11173 | echo "$as_me: failed program was:" >&5 |
| 11174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11175 | |
| 11176 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11177 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11178 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11179 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11180 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11181 | LIBS=$ac_check_lib_save_LIBS |
| 11182 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11183 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11184 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 11185 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11186 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11187 | cat >>confdefs.h <<\_ACEOF |
| 11188 | #define HAVE_LIBDL 1 |
| 11189 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11190 | |
| 11191 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 11192 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11193 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 11194 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 11195 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 11196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11197 | else |
| 11198 | ac_check_lib_save_LIBS=$LIBS |
| 11199 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11200 | cat >conftest.$ac_ext <<_ACEOF |
| 11201 | /* confdefs.h. */ |
| 11202 | _ACEOF |
| 11203 | cat confdefs.h >>conftest.$ac_ext |
| 11204 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11205 | /* end confdefs.h. */ |
| 11206 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11207 | /* Override any GCC internal prototype to avoid an error. |
| 11208 | Use char because int might match the return type of a GCC |
| 11209 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11210 | #ifdef __cplusplus |
| 11211 | extern "C" |
| 11212 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11213 | char dld_link (); |
| 11214 | int |
| 11215 | main () |
| 11216 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11217 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11218 | ; |
| 11219 | return 0; |
| 11220 | } |
| 11221 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11222 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11223 | if { (ac_try="$ac_link" |
| 11224 | case "(($ac_try" in |
| 11225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11226 | *) ac_try_echo=$ac_try;; |
| 11227 | esac |
| 11228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11229 | (eval "$ac_link") 2>conftest.er1 |
| 11230 | ac_status=$? |
| 11231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11232 | rm -f conftest.er1 |
| 11233 | cat conftest.err >&5 |
| 11234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11235 | (exit $ac_status); } && |
| 11236 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11237 | { (case "(($ac_try" in |
| 11238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11239 | *) ac_try_echo=$ac_try;; |
| 11240 | esac |
| 11241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11242 | (eval "$ac_try") 2>&5 |
| 11243 | ac_status=$? |
| 11244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11245 | (exit $ac_status); }; } && |
| 11246 | { ac_try='test -s conftest$ac_exeext' |
| 11247 | { (case "(($ac_try" in |
| 11248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11249 | *) ac_try_echo=$ac_try;; |
| 11250 | esac |
| 11251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11252 | (eval "$ac_try") 2>&5 |
| 11253 | ac_status=$? |
| 11254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11255 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11256 | ac_cv_lib_dld_dld_link=yes |
| 11257 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11258 | echo "$as_me: failed program was:" >&5 |
| 11259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11260 | |
| 11261 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11262 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11263 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11264 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11265 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11266 | LIBS=$ac_check_lib_save_LIBS |
| 11267 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11268 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11269 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 11270 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11271 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11272 | cat >>confdefs.h <<\_ACEOF |
| 11273 | #define HAVE_DLD 1 |
| 11274 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11275 | |
| 11276 | LIBADD_DL="$LIBADD_DL -ldld" |
| 11277 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11278 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 11279 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 11280 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 11281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11282 | else |
| 11283 | cat >conftest.$ac_ext <<_ACEOF |
| 11284 | /* confdefs.h. */ |
| 11285 | _ACEOF |
| 11286 | cat confdefs.h >>conftest.$ac_ext |
| 11287 | cat >>conftest.$ac_ext <<_ACEOF |
| 11288 | /* end confdefs.h. */ |
| 11289 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 11290 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11291 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11292 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11293 | /* System header to define __stub macros and hopefully few prototypes, |
| 11294 | which can conflict with char _dyld_func_lookup (); below. |
| 11295 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11296 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11297 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11298 | #ifdef __STDC__ |
| 11299 | # include <limits.h> |
| 11300 | #else |
| 11301 | # include <assert.h> |
| 11302 | #endif |
| 11303 | |
| 11304 | #undef _dyld_func_lookup |
| 11305 | |
| 11306 | /* Override any GCC internal prototype to avoid an error. |
| 11307 | Use char because int might match the return type of a GCC |
| 11308 | builtin and then its argument prototype would still apply. */ |
| 11309 | #ifdef __cplusplus |
| 11310 | extern "C" |
| 11311 | #endif |
| 11312 | char _dyld_func_lookup (); |
| 11313 | /* The GNU C library defines this for functions which it implements |
| 11314 | to always fail with ENOSYS. Some functions are actually named |
| 11315 | something starting with __ and the normal name is an alias. */ |
| 11316 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 11317 | choke me |
| 11318 | #endif |
| 11319 | |
| 11320 | int |
| 11321 | main () |
| 11322 | { |
| 11323 | return _dyld_func_lookup (); |
| 11324 | ; |
| 11325 | return 0; |
| 11326 | } |
| 11327 | _ACEOF |
| 11328 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11329 | if { (ac_try="$ac_link" |
| 11330 | case "(($ac_try" in |
| 11331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11332 | *) ac_try_echo=$ac_try;; |
| 11333 | esac |
| 11334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11335 | (eval "$ac_link") 2>conftest.er1 |
| 11336 | ac_status=$? |
| 11337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11338 | rm -f conftest.er1 |
| 11339 | cat conftest.err >&5 |
| 11340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11341 | (exit $ac_status); } && |
| 11342 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11343 | { (case "(($ac_try" in |
| 11344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11345 | *) ac_try_echo=$ac_try;; |
| 11346 | esac |
| 11347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11348 | (eval "$ac_try") 2>&5 |
| 11349 | ac_status=$? |
| 11350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11351 | (exit $ac_status); }; } && |
| 11352 | { ac_try='test -s conftest$ac_exeext' |
| 11353 | { (case "(($ac_try" in |
| 11354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11355 | *) ac_try_echo=$ac_try;; |
| 11356 | esac |
| 11357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11358 | (eval "$ac_try") 2>&5 |
| 11359 | ac_status=$? |
| 11360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11361 | (exit $ac_status); }; }; then |
| 11362 | ac_cv_func__dyld_func_lookup=yes |
| 11363 | else |
| 11364 | echo "$as_me: failed program was:" >&5 |
| 11365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11366 | |
| 11367 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11368 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11369 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11370 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11371 | conftest$ac_exeext conftest.$ac_ext |
| 11372 | fi |
| 11373 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 11374 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 11375 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 11376 | |
| 11377 | cat >>confdefs.h <<\_ACEOF |
| 11378 | #define HAVE_DYLD 1 |
| 11379 | _ACEOF |
| 11380 | |
| 11381 | fi |
| 11382 | |
| 11383 | |
| 11384 | fi |
| 11385 | |
| 11386 | |
| 11387 | fi |
| 11388 | |
| 11389 | |
| 11390 | fi |
| 11391 | |
| 11392 | rm -f core conftest.err conftest.$ac_objext \ |
| 11393 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11394 | |
| 11395 | fi |
| 11396 | |
| 11397 | |
| 11398 | fi |
| 11399 | |
| 11400 | |
| 11401 | fi |
| 11402 | |
| 11403 | |
| 11404 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 11405 | then |
| 11406 | lt_save_LIBS="$LIBS" |
| 11407 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11408 | |
| 11409 | for ac_func in dlerror |
| 11410 | do |
| 11411 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11412 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11413 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11414 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11416 | else |
| 11417 | cat >conftest.$ac_ext <<_ACEOF |
| 11418 | /* confdefs.h. */ |
| 11419 | _ACEOF |
| 11420 | cat confdefs.h >>conftest.$ac_ext |
| 11421 | cat >>conftest.$ac_ext <<_ACEOF |
| 11422 | /* end confdefs.h. */ |
| 11423 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11424 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11425 | #define $ac_func innocuous_$ac_func |
| 11426 | |
| 11427 | /* System header to define __stub macros and hopefully few prototypes, |
| 11428 | which can conflict with char $ac_func (); below. |
| 11429 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11430 | <limits.h> exists even on freestanding compilers. */ |
| 11431 | |
| 11432 | #ifdef __STDC__ |
| 11433 | # include <limits.h> |
| 11434 | #else |
| 11435 | # include <assert.h> |
| 11436 | #endif |
| 11437 | |
| 11438 | #undef $ac_func |
| 11439 | |
| 11440 | /* Override any GCC internal prototype to avoid an error. |
| 11441 | Use char because int might match the return type of a GCC |
| 11442 | builtin and then its argument prototype would still apply. */ |
| 11443 | #ifdef __cplusplus |
| 11444 | extern "C" |
| 11445 | #endif |
| 11446 | char $ac_func (); |
| 11447 | /* The GNU C library defines this for functions which it implements |
| 11448 | to always fail with ENOSYS. Some functions are actually named |
| 11449 | something starting with __ and the normal name is an alias. */ |
| 11450 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11451 | choke me |
| 11452 | #endif |
| 11453 | |
| 11454 | int |
| 11455 | main () |
| 11456 | { |
| 11457 | return $ac_func (); |
| 11458 | ; |
| 11459 | return 0; |
| 11460 | } |
| 11461 | _ACEOF |
| 11462 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11463 | if { (ac_try="$ac_link" |
| 11464 | case "(($ac_try" in |
| 11465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11466 | *) ac_try_echo=$ac_try;; |
| 11467 | esac |
| 11468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11469 | (eval "$ac_link") 2>conftest.er1 |
| 11470 | ac_status=$? |
| 11471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11472 | rm -f conftest.er1 |
| 11473 | cat conftest.err >&5 |
| 11474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11475 | (exit $ac_status); } && |
| 11476 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11477 | { (case "(($ac_try" in |
| 11478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11479 | *) ac_try_echo=$ac_try;; |
| 11480 | esac |
| 11481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11482 | (eval "$ac_try") 2>&5 |
| 11483 | ac_status=$? |
| 11484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11485 | (exit $ac_status); }; } && |
| 11486 | { ac_try='test -s conftest$ac_exeext' |
| 11487 | { (case "(($ac_try" in |
| 11488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11489 | *) ac_try_echo=$ac_try;; |
| 11490 | esac |
| 11491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11492 | (eval "$ac_try") 2>&5 |
| 11493 | ac_status=$? |
| 11494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11495 | (exit $ac_status); }; }; then |
| 11496 | eval "$as_ac_var=yes" |
| 11497 | else |
| 11498 | echo "$as_me: failed program was:" >&5 |
| 11499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11500 | |
| 11501 | eval "$as_ac_var=no" |
| 11502 | fi |
| 11503 | |
| 11504 | rm -f core conftest.err conftest.$ac_objext \ |
| 11505 | conftest$ac_exeext conftest.$ac_ext |
| 11506 | fi |
| 11507 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11508 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11509 | echo "${ECHO_T}$ac_res" >&6; } |
| 11510 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11511 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11512 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11513 | _ACEOF |
| 11514 | |
| 11515 | fi |
| 11516 | done |
| 11517 | |
| 11518 | LIBS="$lt_save_LIBS" |
| 11519 | fi |
| 11520 | ac_ext=c |
| 11521 | ac_cpp='$CPP $CPPFLAGS' |
| 11522 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11523 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11524 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11525 | |
| 11526 | |
| 11527 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11528 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 11529 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 11530 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 11531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11532 | else |
| 11533 | ac_cv_sys_symbol_underscore=no |
| 11534 | cat > conftest.$ac_ext <<EOF |
| 11535 | void nm_test_func(){} |
| 11536 | int main(){nm_test_func;return 0;} |
| 11537 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11539 | (eval $ac_compile) 2>&5 |
| 11540 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11542 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11543 | # Now try to grab the symbols. |
| 11544 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11545 | 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] | 11546 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 11547 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11549 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11550 | # See whether the symbols have a leading underscore. |
| 11551 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 11552 | ac_cv_sys_symbol_underscore=yes |
| 11553 | else |
| 11554 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 11555 | : |
| 11556 | else |
| 11557 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 11558 | fi |
| 11559 | fi |
| 11560 | else |
| 11561 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11562 | fi |
| 11563 | else |
| 11564 | echo "configure: failed program was:" >&5 |
| 11565 | cat conftest.c >&5 |
| 11566 | fi |
| 11567 | rm -rf conftest* |
| 11568 | |
| 11569 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11570 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 11571 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11572 | |
| 11573 | |
| 11574 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 11575 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 11576 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11577 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 11578 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 11579 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 11580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11581 | else |
| 11582 | libltdl_cv_need_uscore=unknown |
| 11583 | save_LIBS="$LIBS" |
| 11584 | LIBS="$LIBS $LIBADD_DL" |
| 11585 | if test "$cross_compiling" = yes; then : |
| 11586 | libltdl_cv_need_uscore=cross |
| 11587 | else |
| 11588 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11589 | lt_status=$lt_dlunknown |
| 11590 | cat > conftest.$ac_ext <<EOF |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 11591 | #line 11591 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11592 | #include "confdefs.h" |
| 11593 | |
| 11594 | #if HAVE_DLFCN_H |
| 11595 | #include <dlfcn.h> |
| 11596 | #endif |
| 11597 | |
| 11598 | #include <stdio.h> |
| 11599 | |
| 11600 | #ifdef RTLD_GLOBAL |
| 11601 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11602 | #else |
| 11603 | # ifdef DL_GLOBAL |
| 11604 | # define LT_DLGLOBAL DL_GLOBAL |
| 11605 | # else |
| 11606 | # define LT_DLGLOBAL 0 |
| 11607 | # endif |
| 11608 | #endif |
| 11609 | |
| 11610 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11611 | find out it does not work in some platform. */ |
| 11612 | #ifndef LT_DLLAZY_OR_NOW |
| 11613 | # ifdef RTLD_LAZY |
| 11614 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11615 | # else |
| 11616 | # ifdef DL_LAZY |
| 11617 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11618 | # else |
| 11619 | # ifdef RTLD_NOW |
| 11620 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11621 | # else |
| 11622 | # ifdef DL_NOW |
| 11623 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11624 | # else |
| 11625 | # define LT_DLLAZY_OR_NOW 0 |
| 11626 | # endif |
| 11627 | # endif |
| 11628 | # endif |
| 11629 | # endif |
| 11630 | #endif |
| 11631 | |
| 11632 | #ifdef __cplusplus |
| 11633 | extern "C" void exit (int); |
| 11634 | #endif |
| 11635 | |
| 11636 | void fnord() { int i=42;} |
| 11637 | int main () |
| 11638 | { |
| 11639 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11640 | int status = $lt_dlunknown; |
| 11641 | |
| 11642 | if (self) |
| 11643 | { |
| 11644 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11645 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11646 | /* dlclose (self); */ |
| 11647 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11648 | else |
| 11649 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11650 | |
| 11651 | exit (status); |
| 11652 | } |
| 11653 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11654 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11655 | (eval $ac_link) 2>&5 |
| 11656 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11658 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11659 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11660 | lt_status=$? |
| 11661 | case x$lt_status in |
| 11662 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 11663 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11664 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11665 | esac |
| 11666 | else : |
| 11667 | # compilation failed |
| 11668 | |
| 11669 | fi |
| 11670 | fi |
| 11671 | rm -fr conftest* |
| 11672 | |
| 11673 | LIBS="$save_LIBS" |
| 11674 | |
| 11675 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11676 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 11677 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11678 | fi |
| 11679 | fi |
| 11680 | |
| 11681 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11682 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11683 | cat >>confdefs.h <<\_ACEOF |
| 11684 | #define NEED_USCORE 1 |
| 11685 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11686 | |
| 11687 | fi |
| 11688 | |
| 11689 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11690 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11691 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 11692 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11694 | else |
| 11695 | # PORTME does your system automatically load deplibs for dlopen? |
| 11696 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11697 | # For now, we just catch OSes we know something about -- in the |
| 11698 | # future, we'll try test this programmatically. |
| 11699 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11700 | case "$host_os" in |
| 11701 | aix3*|aix4.1.*|aix4.2.*) |
| 11702 | # Unknown whether this is true for these versions of AIX, but |
| 11703 | # we want this `case' here to explicitly catch those versions. |
| 11704 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11705 | ;; |
| 11706 | aix[45]*) |
| 11707 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11708 | ;; |
| 11709 | darwin*) |
| 11710 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11711 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11712 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11713 | ;; |
| 11714 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11715 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11716 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11717 | ;; |
| 11718 | hpux10*|hpux11*) |
| 11719 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11720 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11721 | interix*) |
| 11722 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11723 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11724 | irix[12345]*|irix6.[01]*) |
| 11725 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11726 | # know how it worked for any of those versions. |
| 11727 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11728 | ;; |
| 11729 | irix*) |
| 11730 | # The case above catches anything before 6.2, and it's known that |
| 11731 | # at 6.2 and later dlopen does load deplibs. |
| 11732 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11733 | ;; |
| 11734 | netbsd*) |
| 11735 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11736 | ;; |
| 11737 | openbsd*) |
| 11738 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11739 | ;; |
| 11740 | osf[1234]*) |
| 11741 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11742 | # it did *not* use an RPATH in a shared library to find objects the |
Chris Lattner | 7a2bdde | 2011-04-15 05:18:47 +0000 | [diff] [blame] | 11743 | # library depends on, so we explicitly say `no'. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11744 | libltdl_cv_sys_dlopen_deplibs=no |
| 11745 | ;; |
| 11746 | osf5.0|osf5.0a|osf5.1) |
| 11747 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11748 | # it even uses RPATH in a shared library to search for shared objects |
| 11749 | # that the library depends on, but there's no easy way to know if that |
| 11750 | # patch is installed. Since this is the case, all we can really |
| 11751 | # say is unknown -- it depends on the patch being installed. If |
| 11752 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11753 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11754 | ;; |
| 11755 | osf*) |
| 11756 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11757 | # the comments above for what we know about them. |
| 11758 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11759 | # is used to find them so we can finally say `yes'. |
| 11760 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11761 | ;; |
| 11762 | solaris*) |
| 11763 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11764 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11765 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11766 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11767 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11768 | esac |
| 11769 | |
| 11770 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11771 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11772 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11773 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11774 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11775 | cat >>confdefs.h <<\_ACEOF |
| 11776 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11777 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11778 | |
| 11779 | fi |
| 11780 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11781 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11782 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11783 | do |
| 11784 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11785 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11786 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11787 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11788 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11790 | fi |
| 11791 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11792 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11793 | echo "${ECHO_T}$ac_res" >&6; } |
| 11794 | else |
| 11795 | # Is the header compilable? |
| 11796 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11797 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11798 | cat >conftest.$ac_ext <<_ACEOF |
| 11799 | /* confdefs.h. */ |
| 11800 | _ACEOF |
| 11801 | cat confdefs.h >>conftest.$ac_ext |
| 11802 | cat >>conftest.$ac_ext <<_ACEOF |
| 11803 | /* end confdefs.h. */ |
| 11804 | $ac_includes_default |
| 11805 | #include <$ac_header> |
| 11806 | _ACEOF |
| 11807 | rm -f conftest.$ac_objext |
| 11808 | if { (ac_try="$ac_compile" |
| 11809 | case "(($ac_try" in |
| 11810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11811 | *) ac_try_echo=$ac_try;; |
| 11812 | esac |
| 11813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11814 | (eval "$ac_compile") 2>conftest.er1 |
| 11815 | ac_status=$? |
| 11816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11817 | rm -f conftest.er1 |
| 11818 | cat conftest.err >&5 |
| 11819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11820 | (exit $ac_status); } && |
| 11821 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11822 | { (case "(($ac_try" in |
| 11823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11824 | *) ac_try_echo=$ac_try;; |
| 11825 | esac |
| 11826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11827 | (eval "$ac_try") 2>&5 |
| 11828 | ac_status=$? |
| 11829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11830 | (exit $ac_status); }; } && |
| 11831 | { ac_try='test -s conftest.$ac_objext' |
| 11832 | { (case "(($ac_try" in |
| 11833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11834 | *) ac_try_echo=$ac_try;; |
| 11835 | esac |
| 11836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11837 | (eval "$ac_try") 2>&5 |
| 11838 | ac_status=$? |
| 11839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11840 | (exit $ac_status); }; }; then |
| 11841 | ac_header_compiler=yes |
| 11842 | else |
| 11843 | echo "$as_me: failed program was:" >&5 |
| 11844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11845 | |
| 11846 | ac_header_compiler=no |
| 11847 | fi |
| 11848 | |
| 11849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11850 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11851 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11852 | |
| 11853 | # Is the header present? |
| 11854 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11855 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11856 | cat >conftest.$ac_ext <<_ACEOF |
| 11857 | /* confdefs.h. */ |
| 11858 | _ACEOF |
| 11859 | cat confdefs.h >>conftest.$ac_ext |
| 11860 | cat >>conftest.$ac_ext <<_ACEOF |
| 11861 | /* end confdefs.h. */ |
| 11862 | #include <$ac_header> |
| 11863 | _ACEOF |
| 11864 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11865 | case "(($ac_try" in |
| 11866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11867 | *) ac_try_echo=$ac_try;; |
| 11868 | esac |
| 11869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11870 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11871 | ac_status=$? |
| 11872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11873 | rm -f conftest.er1 |
| 11874 | cat conftest.err >&5 |
| 11875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11876 | (exit $ac_status); } >/dev/null; then |
| 11877 | if test -s conftest.err; then |
| 11878 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11879 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11880 | else |
| 11881 | ac_cpp_err= |
| 11882 | fi |
| 11883 | else |
| 11884 | ac_cpp_err=yes |
| 11885 | fi |
| 11886 | if test -z "$ac_cpp_err"; then |
| 11887 | ac_header_preproc=yes |
| 11888 | else |
| 11889 | echo "$as_me: failed program was:" >&5 |
| 11890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11891 | |
| 11892 | ac_header_preproc=no |
| 11893 | fi |
| 11894 | |
| 11895 | rm -f conftest.err conftest.$ac_ext |
| 11896 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11897 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11898 | |
| 11899 | # So? What about this header? |
| 11900 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11901 | yes:no: ) |
| 11902 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11903 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11904 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11905 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11906 | ac_header_preproc=yes |
| 11907 | ;; |
| 11908 | no:yes:* ) |
| 11909 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11910 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11911 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11912 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11913 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11914 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11915 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11916 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11917 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11918 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11919 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11920 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11921 | ( cat <<\_ASBOX |
| 11922 | ## ----------------------------------- ## |
| 11923 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11924 | ## ----------------------------------- ## |
| 11925 | _ASBOX |
| 11926 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11927 | ;; |
| 11928 | esac |
| 11929 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11930 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11931 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11933 | else |
| 11934 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11935 | fi |
| 11936 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11937 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11938 | echo "${ECHO_T}$ac_res" >&6; } |
| 11939 | |
| 11940 | fi |
| 11941 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11942 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11943 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11944 | _ACEOF |
| 11945 | |
| 11946 | fi |
| 11947 | |
| 11948 | done |
| 11949 | |
| 11950 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11951 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11952 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 11953 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11955 | else |
| 11956 | cat >conftest.$ac_ext <<_ACEOF |
| 11957 | /* confdefs.h. */ |
| 11958 | _ACEOF |
| 11959 | cat confdefs.h >>conftest.$ac_ext |
| 11960 | cat >>conftest.$ac_ext <<_ACEOF |
| 11961 | /* end confdefs.h. */ |
| 11962 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11963 | # include <argz.h> |
| 11964 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11965 | |
| 11966 | typedef error_t ac__type_new_; |
| 11967 | int |
| 11968 | main () |
| 11969 | { |
| 11970 | if ((ac__type_new_ *) 0) |
| 11971 | return 0; |
| 11972 | if (sizeof (ac__type_new_)) |
| 11973 | return 0; |
| 11974 | ; |
| 11975 | return 0; |
| 11976 | } |
| 11977 | _ACEOF |
| 11978 | rm -f conftest.$ac_objext |
| 11979 | if { (ac_try="$ac_compile" |
| 11980 | case "(($ac_try" in |
| 11981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11982 | *) ac_try_echo=$ac_try;; |
| 11983 | esac |
| 11984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11985 | (eval "$ac_compile") 2>conftest.er1 |
| 11986 | ac_status=$? |
| 11987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11988 | rm -f conftest.er1 |
| 11989 | cat conftest.err >&5 |
| 11990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11991 | (exit $ac_status); } && |
| 11992 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11993 | { (case "(($ac_try" in |
| 11994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11995 | *) ac_try_echo=$ac_try;; |
| 11996 | esac |
| 11997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11998 | (eval "$ac_try") 2>&5 |
| 11999 | ac_status=$? |
| 12000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12001 | (exit $ac_status); }; } && |
| 12002 | { ac_try='test -s conftest.$ac_objext' |
| 12003 | { (case "(($ac_try" in |
| 12004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12005 | *) ac_try_echo=$ac_try;; |
| 12006 | esac |
| 12007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12008 | (eval "$ac_try") 2>&5 |
| 12009 | ac_status=$? |
| 12010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12011 | (exit $ac_status); }; }; then |
| 12012 | ac_cv_type_error_t=yes |
| 12013 | else |
| 12014 | echo "$as_me: failed program was:" >&5 |
| 12015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12016 | |
| 12017 | ac_cv_type_error_t=no |
| 12018 | fi |
| 12019 | |
| 12020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12021 | fi |
| 12022 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 12023 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 12024 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12025 | |
| 12026 | cat >>confdefs.h <<_ACEOF |
| 12027 | #define HAVE_ERROR_T 1 |
| 12028 | _ACEOF |
| 12029 | |
| 12030 | |
| 12031 | else |
| 12032 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12033 | cat >>confdefs.h <<\_ACEOF |
| 12034 | #define error_t int |
| 12035 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12036 | |
| 12037 | fi |
| 12038 | |
| 12039 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12040 | |
| 12041 | |
| 12042 | |
| 12043 | |
| 12044 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12045 | 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] | 12046 | do |
| 12047 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12048 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12049 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12050 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12052 | else |
| 12053 | cat >conftest.$ac_ext <<_ACEOF |
| 12054 | /* confdefs.h. */ |
| 12055 | _ACEOF |
| 12056 | cat confdefs.h >>conftest.$ac_ext |
| 12057 | cat >>conftest.$ac_ext <<_ACEOF |
| 12058 | /* end confdefs.h. */ |
| 12059 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12060 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12061 | #define $ac_func innocuous_$ac_func |
| 12062 | |
| 12063 | /* System header to define __stub macros and hopefully few prototypes, |
| 12064 | which can conflict with char $ac_func (); below. |
| 12065 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12066 | <limits.h> exists even on freestanding compilers. */ |
| 12067 | |
| 12068 | #ifdef __STDC__ |
| 12069 | # include <limits.h> |
| 12070 | #else |
| 12071 | # include <assert.h> |
| 12072 | #endif |
| 12073 | |
| 12074 | #undef $ac_func |
| 12075 | |
| 12076 | /* Override any GCC internal prototype to avoid an error. |
| 12077 | Use char because int might match the return type of a GCC |
| 12078 | builtin and then its argument prototype would still apply. */ |
| 12079 | #ifdef __cplusplus |
| 12080 | extern "C" |
| 12081 | #endif |
| 12082 | char $ac_func (); |
| 12083 | /* The GNU C library defines this for functions which it implements |
| 12084 | to always fail with ENOSYS. Some functions are actually named |
| 12085 | something starting with __ and the normal name is an alias. */ |
| 12086 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12087 | choke me |
| 12088 | #endif |
| 12089 | |
| 12090 | int |
| 12091 | main () |
| 12092 | { |
| 12093 | return $ac_func (); |
| 12094 | ; |
| 12095 | return 0; |
| 12096 | } |
| 12097 | _ACEOF |
| 12098 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12099 | if { (ac_try="$ac_link" |
| 12100 | case "(($ac_try" in |
| 12101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12102 | *) ac_try_echo=$ac_try;; |
| 12103 | esac |
| 12104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12105 | (eval "$ac_link") 2>conftest.er1 |
| 12106 | ac_status=$? |
| 12107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12108 | rm -f conftest.er1 |
| 12109 | cat conftest.err >&5 |
| 12110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12111 | (exit $ac_status); } && |
| 12112 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12113 | { (case "(($ac_try" in |
| 12114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12115 | *) ac_try_echo=$ac_try;; |
| 12116 | esac |
| 12117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12118 | (eval "$ac_try") 2>&5 |
| 12119 | ac_status=$? |
| 12120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12121 | (exit $ac_status); }; } && |
| 12122 | { ac_try='test -s conftest$ac_exeext' |
| 12123 | { (case "(($ac_try" in |
| 12124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12125 | *) ac_try_echo=$ac_try;; |
| 12126 | esac |
| 12127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12128 | (eval "$ac_try") 2>&5 |
| 12129 | ac_status=$? |
| 12130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12131 | (exit $ac_status); }; }; then |
| 12132 | eval "$as_ac_var=yes" |
| 12133 | else |
| 12134 | echo "$as_me: failed program was:" >&5 |
| 12135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12136 | |
| 12137 | eval "$as_ac_var=no" |
| 12138 | fi |
| 12139 | |
| 12140 | rm -f core conftest.err conftest.$ac_objext \ |
| 12141 | conftest$ac_exeext conftest.$ac_ext |
| 12142 | fi |
| 12143 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12144 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12145 | echo "${ECHO_T}$ac_res" >&6; } |
| 12146 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12147 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12148 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12149 | _ACEOF |
| 12150 | |
| 12151 | fi |
| 12152 | done |
| 12153 | |
| 12154 | |
| 12155 | |
| 12156 | |
| 12157 | |
| 12158 | |
| 12159 | |
| 12160 | |
| 12161 | |
| 12162 | |
| 12163 | |
| 12164 | |
| 12165 | |
| 12166 | |
| 12167 | |
| 12168 | |
| 12169 | |
| 12170 | |
| 12171 | |
| 12172 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12173 | |
| 12174 | |
| 12175 | |
| 12176 | |
| 12177 | |
| 12178 | |
| 12179 | |
| 12180 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12181 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 12182 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12183 | do |
| 12184 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12185 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12186 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12187 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12188 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12190 | fi |
| 12191 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12192 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12193 | echo "${ECHO_T}$ac_res" >&6; } |
| 12194 | else |
| 12195 | # Is the header compilable? |
| 12196 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12197 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12198 | cat >conftest.$ac_ext <<_ACEOF |
| 12199 | /* confdefs.h. */ |
| 12200 | _ACEOF |
| 12201 | cat confdefs.h >>conftest.$ac_ext |
| 12202 | cat >>conftest.$ac_ext <<_ACEOF |
| 12203 | /* end confdefs.h. */ |
| 12204 | $ac_includes_default |
| 12205 | #include <$ac_header> |
| 12206 | _ACEOF |
| 12207 | rm -f conftest.$ac_objext |
| 12208 | if { (ac_try="$ac_compile" |
| 12209 | case "(($ac_try" in |
| 12210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12211 | *) ac_try_echo=$ac_try;; |
| 12212 | esac |
| 12213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12214 | (eval "$ac_compile") 2>conftest.er1 |
| 12215 | ac_status=$? |
| 12216 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12217 | rm -f conftest.er1 |
| 12218 | cat conftest.err >&5 |
| 12219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12220 | (exit $ac_status); } && |
| 12221 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12222 | { (case "(($ac_try" in |
| 12223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12224 | *) ac_try_echo=$ac_try;; |
| 12225 | esac |
| 12226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12227 | (eval "$ac_try") 2>&5 |
| 12228 | ac_status=$? |
| 12229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12230 | (exit $ac_status); }; } && |
| 12231 | { ac_try='test -s conftest.$ac_objext' |
| 12232 | { (case "(($ac_try" in |
| 12233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12234 | *) ac_try_echo=$ac_try;; |
| 12235 | esac |
| 12236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12237 | (eval "$ac_try") 2>&5 |
| 12238 | ac_status=$? |
| 12239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12240 | (exit $ac_status); }; }; then |
| 12241 | ac_header_compiler=yes |
| 12242 | else |
| 12243 | echo "$as_me: failed program was:" >&5 |
| 12244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12245 | |
| 12246 | ac_header_compiler=no |
| 12247 | fi |
| 12248 | |
| 12249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12250 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12251 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12252 | |
| 12253 | # Is the header present? |
| 12254 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12255 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12256 | cat >conftest.$ac_ext <<_ACEOF |
| 12257 | /* confdefs.h. */ |
| 12258 | _ACEOF |
| 12259 | cat confdefs.h >>conftest.$ac_ext |
| 12260 | cat >>conftest.$ac_ext <<_ACEOF |
| 12261 | /* end confdefs.h. */ |
| 12262 | #include <$ac_header> |
| 12263 | _ACEOF |
| 12264 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12265 | case "(($ac_try" in |
| 12266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12267 | *) ac_try_echo=$ac_try;; |
| 12268 | esac |
| 12269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12270 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12271 | ac_status=$? |
| 12272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12273 | rm -f conftest.er1 |
| 12274 | cat conftest.err >&5 |
| 12275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12276 | (exit $ac_status); } >/dev/null; then |
| 12277 | if test -s conftest.err; then |
| 12278 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12279 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12280 | else |
| 12281 | ac_cpp_err= |
| 12282 | fi |
| 12283 | else |
| 12284 | ac_cpp_err=yes |
| 12285 | fi |
| 12286 | if test -z "$ac_cpp_err"; then |
| 12287 | ac_header_preproc=yes |
| 12288 | else |
| 12289 | echo "$as_me: failed program was:" >&5 |
| 12290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12291 | |
| 12292 | ac_header_preproc=no |
| 12293 | fi |
| 12294 | |
| 12295 | rm -f conftest.err conftest.$ac_ext |
| 12296 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12297 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12298 | |
| 12299 | # So? What about this header? |
| 12300 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12301 | yes:no: ) |
| 12302 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12303 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12304 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12305 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12306 | ac_header_preproc=yes |
| 12307 | ;; |
| 12308 | no:yes:* ) |
| 12309 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12310 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12311 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12312 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12313 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12314 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12315 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12316 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12317 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12318 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12319 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12320 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12321 | ( cat <<\_ASBOX |
| 12322 | ## ----------------------------------- ## |
| 12323 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12324 | ## ----------------------------------- ## |
| 12325 | _ASBOX |
| 12326 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12327 | ;; |
| 12328 | esac |
| 12329 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12330 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12331 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12333 | else |
| 12334 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12335 | fi |
| 12336 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12337 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12338 | echo "${ECHO_T}$ac_res" >&6; } |
| 12339 | |
| 12340 | fi |
| 12341 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12342 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12343 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12344 | _ACEOF |
| 12345 | |
| 12346 | fi |
| 12347 | |
| 12348 | done |
| 12349 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12350 | |
| 12351 | |
| 12352 | |
| 12353 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12354 | 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] | 12355 | do |
| 12356 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12357 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12358 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12359 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12360 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12362 | fi |
| 12363 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12364 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12365 | echo "${ECHO_T}$ac_res" >&6; } |
| 12366 | else |
| 12367 | # Is the header compilable? |
| 12368 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12369 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12370 | cat >conftest.$ac_ext <<_ACEOF |
| 12371 | /* confdefs.h. */ |
| 12372 | _ACEOF |
| 12373 | cat confdefs.h >>conftest.$ac_ext |
| 12374 | cat >>conftest.$ac_ext <<_ACEOF |
| 12375 | /* end confdefs.h. */ |
| 12376 | $ac_includes_default |
| 12377 | #include <$ac_header> |
| 12378 | _ACEOF |
| 12379 | rm -f conftest.$ac_objext |
| 12380 | if { (ac_try="$ac_compile" |
| 12381 | case "(($ac_try" in |
| 12382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12383 | *) ac_try_echo=$ac_try;; |
| 12384 | esac |
| 12385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12386 | (eval "$ac_compile") 2>conftest.er1 |
| 12387 | ac_status=$? |
| 12388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12389 | rm -f conftest.er1 |
| 12390 | cat conftest.err >&5 |
| 12391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12392 | (exit $ac_status); } && |
| 12393 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12394 | { (case "(($ac_try" in |
| 12395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12396 | *) ac_try_echo=$ac_try;; |
| 12397 | esac |
| 12398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12399 | (eval "$ac_try") 2>&5 |
| 12400 | ac_status=$? |
| 12401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12402 | (exit $ac_status); }; } && |
| 12403 | { ac_try='test -s conftest.$ac_objext' |
| 12404 | { (case "(($ac_try" in |
| 12405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12406 | *) ac_try_echo=$ac_try;; |
| 12407 | esac |
| 12408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12409 | (eval "$ac_try") 2>&5 |
| 12410 | ac_status=$? |
| 12411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12412 | (exit $ac_status); }; }; then |
| 12413 | ac_header_compiler=yes |
| 12414 | else |
| 12415 | echo "$as_me: failed program was:" >&5 |
| 12416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12417 | |
| 12418 | ac_header_compiler=no |
| 12419 | fi |
| 12420 | |
| 12421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12422 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12423 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12424 | |
| 12425 | # Is the header present? |
| 12426 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12427 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12428 | cat >conftest.$ac_ext <<_ACEOF |
| 12429 | /* confdefs.h. */ |
| 12430 | _ACEOF |
| 12431 | cat confdefs.h >>conftest.$ac_ext |
| 12432 | cat >>conftest.$ac_ext <<_ACEOF |
| 12433 | /* end confdefs.h. */ |
| 12434 | #include <$ac_header> |
| 12435 | _ACEOF |
| 12436 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12437 | case "(($ac_try" in |
| 12438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12439 | *) ac_try_echo=$ac_try;; |
| 12440 | esac |
| 12441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12442 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12443 | ac_status=$? |
| 12444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12445 | rm -f conftest.er1 |
| 12446 | cat conftest.err >&5 |
| 12447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12448 | (exit $ac_status); } >/dev/null; then |
| 12449 | if test -s conftest.err; then |
| 12450 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12451 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12452 | else |
| 12453 | ac_cpp_err= |
| 12454 | fi |
| 12455 | else |
| 12456 | ac_cpp_err=yes |
| 12457 | fi |
| 12458 | if test -z "$ac_cpp_err"; then |
| 12459 | ac_header_preproc=yes |
| 12460 | else |
| 12461 | echo "$as_me: failed program was:" >&5 |
| 12462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12463 | |
| 12464 | ac_header_preproc=no |
| 12465 | fi |
| 12466 | |
| 12467 | rm -f conftest.err conftest.$ac_ext |
| 12468 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12469 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12470 | |
| 12471 | # So? What about this header? |
| 12472 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12473 | yes:no: ) |
| 12474 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12475 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12476 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12477 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12478 | ac_header_preproc=yes |
| 12479 | ;; |
| 12480 | no:yes:* ) |
| 12481 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12482 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12483 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12484 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12485 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12486 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12487 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12488 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12489 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12490 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12491 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12492 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12493 | ( cat <<\_ASBOX |
| 12494 | ## ----------------------------------- ## |
| 12495 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12496 | ## ----------------------------------- ## |
| 12497 | _ASBOX |
| 12498 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12499 | ;; |
| 12500 | esac |
| 12501 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12502 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12503 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12505 | else |
| 12506 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12507 | fi |
| 12508 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12509 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12510 | echo "${ECHO_T}$ac_res" >&6; } |
| 12511 | |
| 12512 | fi |
| 12513 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12514 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12515 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12516 | _ACEOF |
| 12517 | |
| 12518 | fi |
| 12519 | |
| 12520 | done |
| 12521 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12522 | |
| 12523 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12524 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12525 | do |
| 12526 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12527 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12528 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12529 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12530 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12532 | fi |
| 12533 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12534 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12535 | echo "${ECHO_T}$ac_res" >&6; } |
| 12536 | else |
| 12537 | # Is the header compilable? |
| 12538 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12539 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12540 | cat >conftest.$ac_ext <<_ACEOF |
| 12541 | /* confdefs.h. */ |
| 12542 | _ACEOF |
| 12543 | cat confdefs.h >>conftest.$ac_ext |
| 12544 | cat >>conftest.$ac_ext <<_ACEOF |
| 12545 | /* end confdefs.h. */ |
| 12546 | $ac_includes_default |
| 12547 | #include <$ac_header> |
| 12548 | _ACEOF |
| 12549 | rm -f conftest.$ac_objext |
| 12550 | if { (ac_try="$ac_compile" |
| 12551 | case "(($ac_try" in |
| 12552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12553 | *) ac_try_echo=$ac_try;; |
| 12554 | esac |
| 12555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12556 | (eval "$ac_compile") 2>conftest.er1 |
| 12557 | ac_status=$? |
| 12558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12559 | rm -f conftest.er1 |
| 12560 | cat conftest.err >&5 |
| 12561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12562 | (exit $ac_status); } && |
| 12563 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12564 | { (case "(($ac_try" in |
| 12565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12566 | *) ac_try_echo=$ac_try;; |
| 12567 | esac |
| 12568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12569 | (eval "$ac_try") 2>&5 |
| 12570 | ac_status=$? |
| 12571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12572 | (exit $ac_status); }; } && |
| 12573 | { ac_try='test -s conftest.$ac_objext' |
| 12574 | { (case "(($ac_try" in |
| 12575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12576 | *) ac_try_echo=$ac_try;; |
| 12577 | esac |
| 12578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12579 | (eval "$ac_try") 2>&5 |
| 12580 | ac_status=$? |
| 12581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12582 | (exit $ac_status); }; }; then |
| 12583 | ac_header_compiler=yes |
| 12584 | else |
| 12585 | echo "$as_me: failed program was:" >&5 |
| 12586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12587 | |
| 12588 | ac_header_compiler=no |
| 12589 | fi |
| 12590 | |
| 12591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12592 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12593 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12594 | |
| 12595 | # Is the header present? |
| 12596 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12597 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12598 | cat >conftest.$ac_ext <<_ACEOF |
| 12599 | /* confdefs.h. */ |
| 12600 | _ACEOF |
| 12601 | cat confdefs.h >>conftest.$ac_ext |
| 12602 | cat >>conftest.$ac_ext <<_ACEOF |
| 12603 | /* end confdefs.h. */ |
| 12604 | #include <$ac_header> |
| 12605 | _ACEOF |
| 12606 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12607 | case "(($ac_try" in |
| 12608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12609 | *) ac_try_echo=$ac_try;; |
| 12610 | esac |
| 12611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12612 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12613 | ac_status=$? |
| 12614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12615 | rm -f conftest.er1 |
| 12616 | cat conftest.err >&5 |
| 12617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12618 | (exit $ac_status); } >/dev/null; then |
| 12619 | if test -s conftest.err; then |
| 12620 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12621 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12622 | else |
| 12623 | ac_cpp_err= |
| 12624 | fi |
| 12625 | else |
| 12626 | ac_cpp_err=yes |
| 12627 | fi |
| 12628 | if test -z "$ac_cpp_err"; then |
| 12629 | ac_header_preproc=yes |
| 12630 | else |
| 12631 | echo "$as_me: failed program was:" >&5 |
| 12632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12633 | |
| 12634 | ac_header_preproc=no |
| 12635 | fi |
| 12636 | |
| 12637 | rm -f conftest.err conftest.$ac_ext |
| 12638 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12639 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12640 | |
| 12641 | # So? What about this header? |
| 12642 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12643 | yes:no: ) |
| 12644 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12645 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12646 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12647 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12648 | ac_header_preproc=yes |
| 12649 | ;; |
| 12650 | no:yes:* ) |
| 12651 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12652 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12653 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12654 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12655 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12656 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12657 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12658 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12659 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12660 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12661 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12662 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12663 | ( cat <<\_ASBOX |
| 12664 | ## ----------------------------------- ## |
| 12665 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12666 | ## ----------------------------------- ## |
| 12667 | _ASBOX |
| 12668 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12669 | ;; |
| 12670 | esac |
| 12671 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12672 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12673 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12675 | else |
| 12676 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12677 | fi |
| 12678 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12679 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12680 | echo "${ECHO_T}$ac_res" >&6; } |
| 12681 | |
| 12682 | fi |
| 12683 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12684 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12685 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12686 | _ACEOF |
| 12687 | break |
| 12688 | fi |
| 12689 | |
| 12690 | done |
| 12691 | |
| 12692 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12693 | |
| 12694 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12695 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12696 | do |
| 12697 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12698 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12699 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12700 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12702 | else |
| 12703 | cat >conftest.$ac_ext <<_ACEOF |
| 12704 | /* confdefs.h. */ |
| 12705 | _ACEOF |
| 12706 | cat confdefs.h >>conftest.$ac_ext |
| 12707 | cat >>conftest.$ac_ext <<_ACEOF |
| 12708 | /* end confdefs.h. */ |
| 12709 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12710 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12711 | #define $ac_func innocuous_$ac_func |
| 12712 | |
| 12713 | /* System header to define __stub macros and hopefully few prototypes, |
| 12714 | which can conflict with char $ac_func (); below. |
| 12715 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12716 | <limits.h> exists even on freestanding compilers. */ |
| 12717 | |
| 12718 | #ifdef __STDC__ |
| 12719 | # include <limits.h> |
| 12720 | #else |
| 12721 | # include <assert.h> |
| 12722 | #endif |
| 12723 | |
| 12724 | #undef $ac_func |
| 12725 | |
| 12726 | /* Override any GCC internal prototype to avoid an error. |
| 12727 | Use char because int might match the return type of a GCC |
| 12728 | builtin and then its argument prototype would still apply. */ |
| 12729 | #ifdef __cplusplus |
| 12730 | extern "C" |
| 12731 | #endif |
| 12732 | char $ac_func (); |
| 12733 | /* The GNU C library defines this for functions which it implements |
| 12734 | to always fail with ENOSYS. Some functions are actually named |
| 12735 | something starting with __ and the normal name is an alias. */ |
| 12736 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12737 | choke me |
| 12738 | #endif |
| 12739 | |
| 12740 | int |
| 12741 | main () |
| 12742 | { |
| 12743 | return $ac_func (); |
| 12744 | ; |
| 12745 | return 0; |
| 12746 | } |
| 12747 | _ACEOF |
| 12748 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12749 | if { (ac_try="$ac_link" |
| 12750 | case "(($ac_try" in |
| 12751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12752 | *) ac_try_echo=$ac_try;; |
| 12753 | esac |
| 12754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12755 | (eval "$ac_link") 2>conftest.er1 |
| 12756 | ac_status=$? |
| 12757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12758 | rm -f conftest.er1 |
| 12759 | cat conftest.err >&5 |
| 12760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12761 | (exit $ac_status); } && |
| 12762 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12763 | { (case "(($ac_try" in |
| 12764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12765 | *) ac_try_echo=$ac_try;; |
| 12766 | esac |
| 12767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12768 | (eval "$ac_try") 2>&5 |
| 12769 | ac_status=$? |
| 12770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12771 | (exit $ac_status); }; } && |
| 12772 | { ac_try='test -s conftest$ac_exeext' |
| 12773 | { (case "(($ac_try" in |
| 12774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12775 | *) ac_try_echo=$ac_try;; |
| 12776 | esac |
| 12777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12778 | (eval "$ac_try") 2>&5 |
| 12779 | ac_status=$? |
| 12780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12781 | (exit $ac_status); }; }; then |
| 12782 | eval "$as_ac_var=yes" |
| 12783 | else |
| 12784 | echo "$as_me: failed program was:" >&5 |
| 12785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12786 | |
| 12787 | eval "$as_ac_var=no" |
| 12788 | fi |
| 12789 | |
| 12790 | rm -f core conftest.err conftest.$ac_objext \ |
| 12791 | conftest$ac_exeext conftest.$ac_ext |
| 12792 | fi |
| 12793 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12794 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12795 | echo "${ECHO_T}$ac_res" >&6; } |
| 12796 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12797 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12798 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12799 | _ACEOF |
| 12800 | break |
| 12801 | fi |
| 12802 | done |
| 12803 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12804 | |
| 12805 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12806 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12807 | do |
| 12808 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12809 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12810 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12811 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12813 | else |
| 12814 | cat >conftest.$ac_ext <<_ACEOF |
| 12815 | /* confdefs.h. */ |
| 12816 | _ACEOF |
| 12817 | cat confdefs.h >>conftest.$ac_ext |
| 12818 | cat >>conftest.$ac_ext <<_ACEOF |
| 12819 | /* end confdefs.h. */ |
| 12820 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12821 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12822 | #define $ac_func innocuous_$ac_func |
| 12823 | |
| 12824 | /* System header to define __stub macros and hopefully few prototypes, |
| 12825 | which can conflict with char $ac_func (); below. |
| 12826 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12827 | <limits.h> exists even on freestanding compilers. */ |
| 12828 | |
| 12829 | #ifdef __STDC__ |
| 12830 | # include <limits.h> |
| 12831 | #else |
| 12832 | # include <assert.h> |
| 12833 | #endif |
| 12834 | |
| 12835 | #undef $ac_func |
| 12836 | |
| 12837 | /* Override any GCC internal prototype to avoid an error. |
| 12838 | Use char because int might match the return type of a GCC |
| 12839 | builtin and then its argument prototype would still apply. */ |
| 12840 | #ifdef __cplusplus |
| 12841 | extern "C" |
| 12842 | #endif |
| 12843 | char $ac_func (); |
| 12844 | /* The GNU C library defines this for functions which it implements |
| 12845 | to always fail with ENOSYS. Some functions are actually named |
| 12846 | something starting with __ and the normal name is an alias. */ |
| 12847 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12848 | choke me |
| 12849 | #endif |
| 12850 | |
| 12851 | int |
| 12852 | main () |
| 12853 | { |
| 12854 | return $ac_func (); |
| 12855 | ; |
| 12856 | return 0; |
| 12857 | } |
| 12858 | _ACEOF |
| 12859 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12860 | if { (ac_try="$ac_link" |
| 12861 | case "(($ac_try" in |
| 12862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12863 | *) ac_try_echo=$ac_try;; |
| 12864 | esac |
| 12865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12866 | (eval "$ac_link") 2>conftest.er1 |
| 12867 | ac_status=$? |
| 12868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12869 | rm -f conftest.er1 |
| 12870 | cat conftest.err >&5 |
| 12871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12872 | (exit $ac_status); } && |
| 12873 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12874 | { (case "(($ac_try" in |
| 12875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12876 | *) ac_try_echo=$ac_try;; |
| 12877 | esac |
| 12878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12879 | (eval "$ac_try") 2>&5 |
| 12880 | ac_status=$? |
| 12881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12882 | (exit $ac_status); }; } && |
| 12883 | { ac_try='test -s conftest$ac_exeext' |
| 12884 | { (case "(($ac_try" in |
| 12885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12886 | *) ac_try_echo=$ac_try;; |
| 12887 | esac |
| 12888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12889 | (eval "$ac_try") 2>&5 |
| 12890 | ac_status=$? |
| 12891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12892 | (exit $ac_status); }; }; then |
| 12893 | eval "$as_ac_var=yes" |
| 12894 | else |
| 12895 | echo "$as_me: failed program was:" >&5 |
| 12896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12897 | |
| 12898 | eval "$as_ac_var=no" |
| 12899 | fi |
| 12900 | |
| 12901 | rm -f core conftest.err conftest.$ac_objext \ |
| 12902 | conftest$ac_exeext conftest.$ac_ext |
| 12903 | fi |
| 12904 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12905 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12906 | echo "${ECHO_T}$ac_res" >&6; } |
| 12907 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12908 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12909 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12910 | _ACEOF |
| 12911 | break |
| 12912 | fi |
| 12913 | done |
| 12914 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12915 | |
| 12916 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12917 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12918 | do |
| 12919 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12920 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12921 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12922 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12924 | else |
| 12925 | cat >conftest.$ac_ext <<_ACEOF |
| 12926 | /* confdefs.h. */ |
| 12927 | _ACEOF |
| 12928 | cat confdefs.h >>conftest.$ac_ext |
| 12929 | cat >>conftest.$ac_ext <<_ACEOF |
| 12930 | /* end confdefs.h. */ |
| 12931 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12932 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12933 | #define $ac_func innocuous_$ac_func |
| 12934 | |
| 12935 | /* System header to define __stub macros and hopefully few prototypes, |
| 12936 | which can conflict with char $ac_func (); below. |
| 12937 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12938 | <limits.h> exists even on freestanding compilers. */ |
| 12939 | |
| 12940 | #ifdef __STDC__ |
| 12941 | # include <limits.h> |
| 12942 | #else |
| 12943 | # include <assert.h> |
| 12944 | #endif |
| 12945 | |
| 12946 | #undef $ac_func |
| 12947 | |
| 12948 | /* Override any GCC internal prototype to avoid an error. |
| 12949 | Use char because int might match the return type of a GCC |
| 12950 | builtin and then its argument prototype would still apply. */ |
| 12951 | #ifdef __cplusplus |
| 12952 | extern "C" |
| 12953 | #endif |
| 12954 | char $ac_func (); |
| 12955 | /* The GNU C library defines this for functions which it implements |
| 12956 | to always fail with ENOSYS. Some functions are actually named |
| 12957 | something starting with __ and the normal name is an alias. */ |
| 12958 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12959 | choke me |
| 12960 | #endif |
| 12961 | |
| 12962 | int |
| 12963 | main () |
| 12964 | { |
| 12965 | return $ac_func (); |
| 12966 | ; |
| 12967 | return 0; |
| 12968 | } |
| 12969 | _ACEOF |
| 12970 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12971 | if { (ac_try="$ac_link" |
| 12972 | case "(($ac_try" in |
| 12973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12974 | *) ac_try_echo=$ac_try;; |
| 12975 | esac |
| 12976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12977 | (eval "$ac_link") 2>conftest.er1 |
| 12978 | ac_status=$? |
| 12979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12980 | rm -f conftest.er1 |
| 12981 | cat conftest.err >&5 |
| 12982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12983 | (exit $ac_status); } && |
| 12984 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12985 | { (case "(($ac_try" in |
| 12986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12987 | *) ac_try_echo=$ac_try;; |
| 12988 | esac |
| 12989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12990 | (eval "$ac_try") 2>&5 |
| 12991 | ac_status=$? |
| 12992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12993 | (exit $ac_status); }; } && |
| 12994 | { ac_try='test -s conftest$ac_exeext' |
| 12995 | { (case "(($ac_try" in |
| 12996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12997 | *) ac_try_echo=$ac_try;; |
| 12998 | esac |
| 12999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13000 | (eval "$ac_try") 2>&5 |
| 13001 | ac_status=$? |
| 13002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13003 | (exit $ac_status); }; }; then |
| 13004 | eval "$as_ac_var=yes" |
| 13005 | else |
| 13006 | echo "$as_me: failed program was:" >&5 |
| 13007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13008 | |
| 13009 | eval "$as_ac_var=no" |
| 13010 | fi |
| 13011 | |
| 13012 | rm -f core conftest.err conftest.$ac_objext \ |
| 13013 | conftest$ac_exeext conftest.$ac_ext |
| 13014 | fi |
| 13015 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13016 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13017 | echo "${ECHO_T}$ac_res" >&6; } |
| 13018 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13019 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13020 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13021 | _ACEOF |
| 13022 | break |
| 13023 | fi |
| 13024 | done |
| 13025 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13026 | |
| 13027 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13028 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13029 | do |
| 13030 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13031 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13032 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 13033 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 13034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13035 | else |
| 13036 | cat >conftest.$ac_ext <<_ACEOF |
| 13037 | /* confdefs.h. */ |
| 13038 | _ACEOF |
| 13039 | cat confdefs.h >>conftest.$ac_ext |
| 13040 | cat >>conftest.$ac_ext <<_ACEOF |
| 13041 | /* end confdefs.h. */ |
| 13042 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13043 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13044 | #define $ac_func innocuous_$ac_func |
| 13045 | |
| 13046 | /* System header to define __stub macros and hopefully few prototypes, |
| 13047 | which can conflict with char $ac_func (); below. |
| 13048 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13049 | <limits.h> exists even on freestanding compilers. */ |
| 13050 | |
| 13051 | #ifdef __STDC__ |
| 13052 | # include <limits.h> |
| 13053 | #else |
| 13054 | # include <assert.h> |
| 13055 | #endif |
| 13056 | |
| 13057 | #undef $ac_func |
| 13058 | |
| 13059 | /* Override any GCC internal prototype to avoid an error. |
| 13060 | Use char because int might match the return type of a GCC |
| 13061 | builtin and then its argument prototype would still apply. */ |
| 13062 | #ifdef __cplusplus |
| 13063 | extern "C" |
| 13064 | #endif |
| 13065 | char $ac_func (); |
| 13066 | /* The GNU C library defines this for functions which it implements |
| 13067 | to always fail with ENOSYS. Some functions are actually named |
| 13068 | something starting with __ and the normal name is an alias. */ |
| 13069 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 13070 | choke me |
| 13071 | #endif |
| 13072 | |
| 13073 | int |
| 13074 | main () |
| 13075 | { |
| 13076 | return $ac_func (); |
| 13077 | ; |
| 13078 | return 0; |
| 13079 | } |
| 13080 | _ACEOF |
| 13081 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13082 | if { (ac_try="$ac_link" |
| 13083 | case "(($ac_try" in |
| 13084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13085 | *) ac_try_echo=$ac_try;; |
| 13086 | esac |
| 13087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13088 | (eval "$ac_link") 2>conftest.er1 |
| 13089 | ac_status=$? |
| 13090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13091 | rm -f conftest.er1 |
| 13092 | cat conftest.err >&5 |
| 13093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13094 | (exit $ac_status); } && |
| 13095 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13096 | { (case "(($ac_try" in |
| 13097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13098 | *) ac_try_echo=$ac_try;; |
| 13099 | esac |
| 13100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13101 | (eval "$ac_try") 2>&5 |
| 13102 | ac_status=$? |
| 13103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13104 | (exit $ac_status); }; } && |
| 13105 | { ac_try='test -s conftest$ac_exeext' |
| 13106 | { (case "(($ac_try" in |
| 13107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13108 | *) ac_try_echo=$ac_try;; |
| 13109 | esac |
| 13110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13111 | (eval "$ac_try") 2>&5 |
| 13112 | ac_status=$? |
| 13113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13114 | (exit $ac_status); }; }; then |
| 13115 | eval "$as_ac_var=yes" |
| 13116 | else |
| 13117 | echo "$as_me: failed program was:" >&5 |
| 13118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13119 | |
| 13120 | eval "$as_ac_var=no" |
| 13121 | fi |
| 13122 | |
| 13123 | rm -f core conftest.err conftest.$ac_objext \ |
| 13124 | conftest$ac_exeext conftest.$ac_ext |
| 13125 | fi |
| 13126 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13127 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13128 | echo "${ECHO_T}$ac_res" >&6; } |
| 13129 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13130 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13131 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13132 | _ACEOF |
| 13133 | |
| 13134 | fi |
| 13135 | done |
| 13136 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13137 | |
| 13138 | |
| 13139 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13140 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13141 | do |
| 13142 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13143 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13144 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 13145 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 13146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13147 | else |
| 13148 | cat >conftest.$ac_ext <<_ACEOF |
| 13149 | /* confdefs.h. */ |
| 13150 | _ACEOF |
| 13151 | cat confdefs.h >>conftest.$ac_ext |
| 13152 | cat >>conftest.$ac_ext <<_ACEOF |
| 13153 | /* end confdefs.h. */ |
| 13154 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13155 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13156 | #define $ac_func innocuous_$ac_func |
| 13157 | |
| 13158 | /* System header to define __stub macros and hopefully few prototypes, |
| 13159 | which can conflict with char $ac_func (); below. |
| 13160 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13161 | <limits.h> exists even on freestanding compilers. */ |
| 13162 | |
| 13163 | #ifdef __STDC__ |
| 13164 | # include <limits.h> |
| 13165 | #else |
| 13166 | # include <assert.h> |
| 13167 | #endif |
| 13168 | |
| 13169 | #undef $ac_func |
| 13170 | |
| 13171 | /* Override any GCC internal prototype to avoid an error. |
| 13172 | Use char because int might match the return type of a GCC |
| 13173 | builtin and then its argument prototype would still apply. */ |
| 13174 | #ifdef __cplusplus |
| 13175 | extern "C" |
| 13176 | #endif |
| 13177 | char $ac_func (); |
| 13178 | /* The GNU C library defines this for functions which it implements |
| 13179 | to always fail with ENOSYS. Some functions are actually named |
| 13180 | something starting with __ and the normal name is an alias. */ |
| 13181 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 13182 | choke me |
| 13183 | #endif |
| 13184 | |
| 13185 | int |
| 13186 | main () |
| 13187 | { |
| 13188 | return $ac_func (); |
| 13189 | ; |
| 13190 | return 0; |
| 13191 | } |
| 13192 | _ACEOF |
| 13193 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13194 | if { (ac_try="$ac_link" |
| 13195 | case "(($ac_try" in |
| 13196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13197 | *) ac_try_echo=$ac_try;; |
| 13198 | esac |
| 13199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13200 | (eval "$ac_link") 2>conftest.er1 |
| 13201 | ac_status=$? |
| 13202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13203 | rm -f conftest.er1 |
| 13204 | cat conftest.err >&5 |
| 13205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13206 | (exit $ac_status); } && |
| 13207 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13208 | { (case "(($ac_try" in |
| 13209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13210 | *) ac_try_echo=$ac_try;; |
| 13211 | esac |
| 13212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13213 | (eval "$ac_try") 2>&5 |
| 13214 | ac_status=$? |
| 13215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13216 | (exit $ac_status); }; } && |
| 13217 | { ac_try='test -s conftest$ac_exeext' |
| 13218 | { (case "(($ac_try" in |
| 13219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13220 | *) ac_try_echo=$ac_try;; |
| 13221 | esac |
| 13222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13223 | (eval "$ac_try") 2>&5 |
| 13224 | ac_status=$? |
| 13225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13226 | (exit $ac_status); }; }; then |
| 13227 | eval "$as_ac_var=yes" |
| 13228 | else |
| 13229 | echo "$as_me: failed program was:" >&5 |
| 13230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13231 | |
| 13232 | eval "$as_ac_var=no" |
| 13233 | fi |
| 13234 | |
| 13235 | rm -f core conftest.err conftest.$ac_objext \ |
| 13236 | conftest$ac_exeext conftest.$ac_ext |
| 13237 | fi |
| 13238 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13239 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13240 | echo "${ECHO_T}$ac_res" >&6; } |
| 13241 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13242 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13243 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13244 | _ACEOF |
| 13245 | |
| 13246 | fi |
| 13247 | done |
| 13248 | |
| 13249 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 13250 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 13251 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13252 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 13253 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13254 | LLVMGCCCOMMAND="$LLVMGCC" |
| 13255 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13256 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 13257 | |
| 13258 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 13259 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13260 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 13261 | set dummy $LLVMGCC; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13262 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13264 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 13265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13266 | else |
| 13267 | case $LLVMGCC in |
| 13268 | [\\/]* | ?:[\\/]*) |
| 13269 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 13270 | ;; |
| 13271 | *) |
| 13272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13273 | for as_dir in $PATH |
| 13274 | do |
| 13275 | IFS=$as_save_IFS |
| 13276 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13277 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13278 | 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] | 13279 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13280 | 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] | 13281 | break 2 |
| 13282 | fi |
| 13283 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13284 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13285 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13286 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13287 | ;; |
| 13288 | esac |
| 13289 | fi |
| 13290 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13291 | if test -n "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13292 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 13293 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13294 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13295 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13296 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13297 | fi |
| 13298 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13299 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13300 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 13301 | set dummy $LLVMGXX; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13302 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13303 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13304 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 13305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13306 | else |
| 13307 | case $LLVMGXX in |
| 13308 | [\\/]* | ?:[\\/]*) |
| 13309 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 13310 | ;; |
| 13311 | *) |
| 13312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13313 | for as_dir in $PATH |
| 13314 | do |
| 13315 | IFS=$as_save_IFS |
| 13316 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13317 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13318 | 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] | 13319 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13320 | 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] | 13321 | break 2 |
| 13322 | fi |
| 13323 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13324 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13325 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13326 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13327 | ;; |
| 13328 | esac |
| 13329 | fi |
| 13330 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13331 | if test -n "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13332 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 13333 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13334 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13335 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13336 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13337 | fi |
| 13338 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13339 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13340 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13341 | if test -z "$LLVMGCC"; then |
| 13342 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13343 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13344 | fi |
| 13345 | if test -z "$LLVMGXX"; then |
| 13346 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13347 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13348 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13349 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13350 | LLVMGCC=$LLVMGCC |
| 13351 | |
| 13352 | LLVMGXX=$LLVMGXX |
| 13353 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13354 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 13355 | |
| 13356 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 13357 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13358 | fi |
| 13359 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13360 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 13361 | # Check whether --with-llvmcc was given. |
| 13362 | if test "${with_llvmcc+set}" = set; then |
| 13363 | withval=$with_llvmcc; |
| 13364 | else |
| 13365 | with_llvmcc=check |
| 13366 | fi |
| 13367 | |
| 13368 | { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5 |
| 13369 | echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; } |
| 13370 | if test "$with_llvmcc" != "check"; then |
| 13371 | if (test "$with_llvmcc" != "llvm-gcc" && |
| 13372 | test "$with_llvmcc" != "clang" && |
| 13373 | test "$with_llvmcc" != "none"); then |
| 13374 | { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5 |
| 13375 | echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;} |
| 13376 | { (exit 1); exit 1; }; } |
| 13377 | fi |
| 13378 | WITH_LLVMCC="$with_llvmcc" |
| 13379 | elif test -n "$LLVMGCC"; then |
| 13380 | WITH_LLVMCC=llvm-gcc |
| 13381 | elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then |
| 13382 | WITH_LLVMCC=clang |
| 13383 | else |
| 13384 | WITH_LLVMCC=none |
| 13385 | fi |
| 13386 | { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5 |
| 13387 | echo "${ECHO_T}$WITH_LLVMCC" >&6; } |
| 13388 | LLVMCC_OPTION=$WITH_LLVMCC |
| 13389 | |
| 13390 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13391 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 13392 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13393 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 13394 | ICC=no |
| 13395 | IXX=no |
| 13396 | case $CC in |
| 13397 | icc*|icpc*) |
| 13398 | ICC=yes |
| 13399 | IXX=yes |
| 13400 | ;; |
| 13401 | *) |
| 13402 | ;; |
| 13403 | esac |
| 13404 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13405 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 13406 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13407 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 13408 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 13409 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13410 | fi |
| 13411 | |
| 13412 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 13413 | then |
Eric Christopher | 73e36da | 2010-12-08 02:02:14 +0000 | [diff] [blame] | 13414 | { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 |
| 13415 | echo "$as_me: error: g++|clang++|icc required but not found" >&2;} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13416 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13417 | fi |
| 13418 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 13419 | if test "$GCC" = "yes" |
| 13420 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13421 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13422 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 13423 | #error Unsupported GCC version |
| 13424 | #endif |
| 13425 | |
| 13426 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13427 | rm -f conftest.$ac_objext |
| 13428 | if { (ac_try="$ac_compile" |
| 13429 | case "(($ac_try" in |
| 13430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13431 | *) ac_try_echo=$ac_try;; |
| 13432 | esac |
| 13433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13434 | (eval "$ac_compile") 2>conftest.er1 |
| 13435 | ac_status=$? |
| 13436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13437 | rm -f conftest.er1 |
| 13438 | cat conftest.err >&5 |
| 13439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13440 | (exit $ac_status); } && |
| 13441 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13442 | { (case "(($ac_try" in |
| 13443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13444 | *) ac_try_echo=$ac_try;; |
| 13445 | esac |
| 13446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13447 | (eval "$ac_try") 2>&5 |
| 13448 | ac_status=$? |
| 13449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13450 | (exit $ac_status); }; } && |
| 13451 | { ac_try='test -s conftest.$ac_objext' |
| 13452 | { (case "(($ac_try" in |
| 13453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13454 | *) ac_try_echo=$ac_try;; |
| 13455 | esac |
| 13456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13457 | (eval "$ac_try") 2>&5 |
| 13458 | ac_status=$? |
| 13459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13460 | (exit $ac_status); }; }; then |
| 13461 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13462 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13463 | echo "$as_me: failed program was:" >&5 |
| 13464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13465 | |
| 13466 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 13467 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 13468 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13469 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13470 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13472 | fi |
| 13473 | |
| 13474 | if test -z "$llvm_cv_gnu_make_command" |
| 13475 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13476 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 13477 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 13478 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13479 | fi |
| 13480 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13481 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13482 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13483 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13484 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 13485 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13486 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 13487 | |
| 13488 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 13489 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13490 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 13491 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13492 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 13493 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13494 | |
| 13495 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 13496 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 13497 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 13498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13499 | else |
| 13500 | ac_check_lib_save_LIBS=$LIBS |
| 13501 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13502 | cat >conftest.$ac_ext <<_ACEOF |
| 13503 | /* confdefs.h. */ |
| 13504 | _ACEOF |
| 13505 | cat confdefs.h >>conftest.$ac_ext |
| 13506 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13507 | /* end confdefs.h. */ |
| 13508 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13509 | /* Override any GCC internal prototype to avoid an error. |
| 13510 | Use char because int might match the return type of a GCC |
| 13511 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13512 | #ifdef __cplusplus |
| 13513 | extern "C" |
| 13514 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13515 | char sin (); |
| 13516 | int |
| 13517 | main () |
| 13518 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13519 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13520 | ; |
| 13521 | return 0; |
| 13522 | } |
| 13523 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13524 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13525 | if { (ac_try="$ac_link" |
| 13526 | case "(($ac_try" in |
| 13527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13528 | *) ac_try_echo=$ac_try;; |
| 13529 | esac |
| 13530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13531 | (eval "$ac_link") 2>conftest.er1 |
| 13532 | ac_status=$? |
| 13533 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13534 | rm -f conftest.er1 |
| 13535 | cat conftest.err >&5 |
| 13536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13537 | (exit $ac_status); } && |
| 13538 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13539 | { (case "(($ac_try" in |
| 13540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13541 | *) ac_try_echo=$ac_try;; |
| 13542 | esac |
| 13543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13544 | (eval "$ac_try") 2>&5 |
| 13545 | ac_status=$? |
| 13546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13547 | (exit $ac_status); }; } && |
| 13548 | { ac_try='test -s conftest$ac_exeext' |
| 13549 | { (case "(($ac_try" in |
| 13550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13551 | *) ac_try_echo=$ac_try;; |
| 13552 | esac |
| 13553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13554 | (eval "$ac_try") 2>&5 |
| 13555 | ac_status=$? |
| 13556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13557 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13558 | ac_cv_lib_m_sin=yes |
| 13559 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13560 | echo "$as_me: failed program was:" >&5 |
| 13561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13562 | |
| 13563 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13564 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13565 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13566 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13567 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13568 | LIBS=$ac_check_lib_save_LIBS |
| 13569 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13570 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 13571 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 13572 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13573 | cat >>confdefs.h <<_ACEOF |
| 13574 | #define HAVE_LIBM 1 |
| 13575 | _ACEOF |
| 13576 | |
| 13577 | LIBS="-lm $LIBS" |
| 13578 | |
| 13579 | fi |
| 13580 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 13581 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13582 | |
| 13583 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 13584 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 13585 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 13586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13587 | else |
| 13588 | ac_check_lib_save_LIBS=$LIBS |
| 13589 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13590 | cat >conftest.$ac_ext <<_ACEOF |
| 13591 | /* confdefs.h. */ |
| 13592 | _ACEOF |
| 13593 | cat confdefs.h >>conftest.$ac_ext |
| 13594 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13595 | /* end confdefs.h. */ |
| 13596 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13597 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13598 | int |
| 13599 | main () |
| 13600 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13601 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13602 | ; |
| 13603 | return 0; |
| 13604 | } |
| 13605 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13606 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13607 | if { (ac_try="$ac_link" |
| 13608 | case "(($ac_try" in |
| 13609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13610 | *) ac_try_echo=$ac_try;; |
| 13611 | esac |
| 13612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13613 | (eval "$ac_link") 2>conftest.er1 |
| 13614 | ac_status=$? |
| 13615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13616 | rm -f conftest.er1 |
| 13617 | cat conftest.err >&5 |
| 13618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13619 | (exit $ac_status); } && |
| 13620 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13621 | { (case "(($ac_try" in |
| 13622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13623 | *) ac_try_echo=$ac_try;; |
| 13624 | esac |
| 13625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13626 | (eval "$ac_try") 2>&5 |
| 13627 | ac_status=$? |
| 13628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13629 | (exit $ac_status); }; } && |
| 13630 | { ac_try='test -s conftest$ac_exeext' |
| 13631 | { (case "(($ac_try" in |
| 13632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13633 | *) ac_try_echo=$ac_try;; |
| 13634 | esac |
| 13635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13636 | (eval "$ac_try") 2>&5 |
| 13637 | ac_status=$? |
| 13638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13639 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13640 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13641 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13642 | echo "$as_me: failed program was:" >&5 |
| 13643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13644 | |
| 13645 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13646 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13647 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13648 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13649 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13650 | LIBS=$ac_check_lib_save_LIBS |
| 13651 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13652 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 13653 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 13654 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13655 | cat >>confdefs.h <<_ACEOF |
| 13656 | #define HAVE_LIBIMAGEHLP 1 |
| 13657 | _ACEOF |
| 13658 | |
| 13659 | LIBS="-limagehlp $LIBS" |
| 13660 | |
| 13661 | fi |
| 13662 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13663 | |
| 13664 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 13665 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 13666 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 13667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13668 | else |
| 13669 | ac_check_lib_save_LIBS=$LIBS |
| 13670 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13671 | cat >conftest.$ac_ext <<_ACEOF |
| 13672 | /* confdefs.h. */ |
| 13673 | _ACEOF |
| 13674 | cat confdefs.h >>conftest.$ac_ext |
| 13675 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13676 | /* end confdefs.h. */ |
| 13677 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13678 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13679 | int |
| 13680 | main () |
| 13681 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13682 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13683 | ; |
| 13684 | return 0; |
| 13685 | } |
| 13686 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13687 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13688 | if { (ac_try="$ac_link" |
| 13689 | case "(($ac_try" in |
| 13690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13691 | *) ac_try_echo=$ac_try;; |
| 13692 | esac |
| 13693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13694 | (eval "$ac_link") 2>conftest.er1 |
| 13695 | ac_status=$? |
| 13696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13697 | rm -f conftest.er1 |
| 13698 | cat conftest.err >&5 |
| 13699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13700 | (exit $ac_status); } && |
| 13701 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13702 | { (case "(($ac_try" in |
| 13703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13704 | *) ac_try_echo=$ac_try;; |
| 13705 | esac |
| 13706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13707 | (eval "$ac_try") 2>&5 |
| 13708 | ac_status=$? |
| 13709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13710 | (exit $ac_status); }; } && |
| 13711 | { ac_try='test -s conftest$ac_exeext' |
| 13712 | { (case "(($ac_try" in |
| 13713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13714 | *) ac_try_echo=$ac_try;; |
| 13715 | esac |
| 13716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13717 | (eval "$ac_try") 2>&5 |
| 13718 | ac_status=$? |
| 13719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13720 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13721 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13722 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13723 | echo "$as_me: failed program was:" >&5 |
| 13724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13725 | |
| 13726 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13727 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13728 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13729 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13730 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13731 | LIBS=$ac_check_lib_save_LIBS |
| 13732 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13733 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 13734 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 13735 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13736 | cat >>confdefs.h <<_ACEOF |
| 13737 | #define HAVE_LIBPSAPI 1 |
| 13738 | _ACEOF |
| 13739 | |
| 13740 | LIBS="-lpsapi $LIBS" |
| 13741 | |
| 13742 | fi |
| 13743 | |
| 13744 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13745 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13746 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 13747 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 13748 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13750 | else |
| 13751 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13752 | cat >conftest.$ac_ext <<_ACEOF |
| 13753 | /* confdefs.h. */ |
| 13754 | _ACEOF |
| 13755 | cat confdefs.h >>conftest.$ac_ext |
| 13756 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13757 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13759 | /* Override any GCC internal prototype to avoid an error. |
| 13760 | Use char because int might match the return type of a GCC |
| 13761 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13762 | #ifdef __cplusplus |
| 13763 | extern "C" |
| 13764 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13765 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13766 | int |
| 13767 | main () |
| 13768 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13769 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13770 | ; |
| 13771 | return 0; |
| 13772 | } |
| 13773 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13774 | for ac_lib in '' dl; do |
| 13775 | if test -z "$ac_lib"; then |
| 13776 | ac_res="none required" |
| 13777 | else |
| 13778 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13779 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13780 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13781 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13782 | if { (ac_try="$ac_link" |
| 13783 | case "(($ac_try" in |
| 13784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13785 | *) ac_try_echo=$ac_try;; |
| 13786 | esac |
| 13787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13788 | (eval "$ac_link") 2>conftest.er1 |
| 13789 | ac_status=$? |
| 13790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13791 | rm -f conftest.er1 |
| 13792 | cat conftest.err >&5 |
| 13793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13794 | (exit $ac_status); } && |
| 13795 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13796 | { (case "(($ac_try" in |
| 13797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13798 | *) ac_try_echo=$ac_try;; |
| 13799 | esac |
| 13800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13801 | (eval "$ac_try") 2>&5 |
| 13802 | ac_status=$? |
| 13803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13804 | (exit $ac_status); }; } && |
| 13805 | { ac_try='test -s conftest$ac_exeext' |
| 13806 | { (case "(($ac_try" in |
| 13807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13808 | *) ac_try_echo=$ac_try;; |
| 13809 | esac |
| 13810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13811 | (eval "$ac_try") 2>&5 |
| 13812 | ac_status=$? |
| 13813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13814 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13815 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13816 | else |
| 13817 | echo "$as_me: failed program was:" >&5 |
| 13818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13819 | |
| 13820 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13821 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13822 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13823 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13824 | conftest$ac_exeext |
| 13825 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13826 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13827 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13828 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13829 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13830 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13831 | else |
| 13832 | ac_cv_search_dlopen=no |
| 13833 | fi |
| 13834 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13835 | LIBS=$ac_func_search_save_LIBS |
| 13836 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13837 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 13838 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13839 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13840 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13841 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13842 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13843 | cat >>confdefs.h <<\_ACEOF |
| 13844 | #define HAVE_DLOPEN 1 |
| 13845 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13846 | |
| 13847 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13848 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 13849 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13850 | fi |
| 13851 | |
| 13852 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13853 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13854 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 13855 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 13856 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13858 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13859 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13860 | cat >conftest.$ac_ext <<_ACEOF |
| 13861 | /* confdefs.h. */ |
| 13862 | _ACEOF |
| 13863 | cat confdefs.h >>conftest.$ac_ext |
| 13864 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13865 | /* end confdefs.h. */ |
| 13866 | |
| 13867 | /* Override any GCC internal prototype to avoid an error. |
| 13868 | Use char because int might match the return type of a GCC |
| 13869 | builtin and then its argument prototype would still apply. */ |
| 13870 | #ifdef __cplusplus |
| 13871 | extern "C" |
| 13872 | #endif |
| 13873 | char ffi_call (); |
| 13874 | int |
| 13875 | main () |
| 13876 | { |
| 13877 | return ffi_call (); |
| 13878 | ; |
| 13879 | return 0; |
| 13880 | } |
| 13881 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13882 | for ac_lib in '' ffi; do |
| 13883 | if test -z "$ac_lib"; then |
| 13884 | ac_res="none required" |
| 13885 | else |
| 13886 | ac_res=-l$ac_lib |
| 13887 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13888 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13889 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13890 | if { (ac_try="$ac_link" |
| 13891 | case "(($ac_try" in |
| 13892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13893 | *) ac_try_echo=$ac_try;; |
| 13894 | esac |
| 13895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13896 | (eval "$ac_link") 2>conftest.er1 |
| 13897 | ac_status=$? |
| 13898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13899 | rm -f conftest.er1 |
| 13900 | cat conftest.err >&5 |
| 13901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13902 | (exit $ac_status); } && |
| 13903 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13904 | { (case "(($ac_try" in |
| 13905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13906 | *) ac_try_echo=$ac_try;; |
| 13907 | esac |
| 13908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13909 | (eval "$ac_try") 2>&5 |
| 13910 | ac_status=$? |
| 13911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13912 | (exit $ac_status); }; } && |
| 13913 | { ac_try='test -s conftest$ac_exeext' |
| 13914 | { (case "(($ac_try" in |
| 13915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13916 | *) ac_try_echo=$ac_try;; |
| 13917 | esac |
| 13918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13919 | (eval "$ac_try") 2>&5 |
| 13920 | ac_status=$? |
| 13921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13922 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13923 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13924 | else |
| 13925 | echo "$as_me: failed program was:" >&5 |
| 13926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13927 | |
| 13928 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13929 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13930 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13931 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13932 | conftest$ac_exeext |
| 13933 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13934 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13935 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13936 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13937 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13938 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13939 | else |
| 13940 | ac_cv_search_ffi_call=no |
| 13941 | fi |
| 13942 | rm conftest.$ac_ext |
| 13943 | LIBS=$ac_func_search_save_LIBS |
| 13944 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13945 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 13946 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13947 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13948 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13949 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13950 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13951 | cat >>confdefs.h <<\_ACEOF |
| 13952 | #define HAVE_FFI_CALL 1 |
| 13953 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13954 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13955 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 13956 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 13957 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 13958 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13959 | fi |
| 13960 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13961 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13962 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13963 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 13964 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 13965 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13967 | else |
| 13968 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13969 | cat >conftest.$ac_ext <<_ACEOF |
| 13970 | /* confdefs.h. */ |
| 13971 | _ACEOF |
| 13972 | cat confdefs.h >>conftest.$ac_ext |
| 13973 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13974 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13976 | /* Override any GCC internal prototype to avoid an error. |
| 13977 | Use char because int might match the return type of a GCC |
| 13978 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13979 | #ifdef __cplusplus |
| 13980 | extern "C" |
| 13981 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13982 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13983 | int |
| 13984 | main () |
| 13985 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13986 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13987 | ; |
| 13988 | return 0; |
| 13989 | } |
| 13990 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13991 | for ac_lib in '' malloc; do |
| 13992 | if test -z "$ac_lib"; then |
| 13993 | ac_res="none required" |
| 13994 | else |
| 13995 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13996 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13997 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13998 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13999 | if { (ac_try="$ac_link" |
| 14000 | case "(($ac_try" in |
| 14001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14002 | *) ac_try_echo=$ac_try;; |
| 14003 | esac |
| 14004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14005 | (eval "$ac_link") 2>conftest.er1 |
| 14006 | ac_status=$? |
| 14007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14008 | rm -f conftest.er1 |
| 14009 | cat conftest.err >&5 |
| 14010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14011 | (exit $ac_status); } && |
| 14012 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14013 | { (case "(($ac_try" in |
| 14014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14015 | *) ac_try_echo=$ac_try;; |
| 14016 | esac |
| 14017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14018 | (eval "$ac_try") 2>&5 |
| 14019 | ac_status=$? |
| 14020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14021 | (exit $ac_status); }; } && |
| 14022 | { ac_try='test -s conftest$ac_exeext' |
| 14023 | { (case "(($ac_try" in |
| 14024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14025 | *) ac_try_echo=$ac_try;; |
| 14026 | esac |
| 14027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14028 | (eval "$ac_try") 2>&5 |
| 14029 | ac_status=$? |
| 14030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14031 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14032 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14033 | else |
| 14034 | echo "$as_me: failed program was:" >&5 |
| 14035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14036 | |
| 14037 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14038 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14039 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14040 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14041 | conftest$ac_exeext |
| 14042 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14043 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14044 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14045 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14046 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 14047 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14048 | else |
| 14049 | ac_cv_search_mallinfo=no |
| 14050 | fi |
| 14051 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14052 | LIBS=$ac_func_search_save_LIBS |
| 14053 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14054 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 14055 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14056 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14057 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14058 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 14059 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14060 | cat >>confdefs.h <<\_ACEOF |
| 14061 | #define HAVE_MALLINFO 1 |
| 14062 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14063 | |
| 14064 | fi |
| 14065 | |
| 14066 | |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 14067 | if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14068 | |
| 14069 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 14070 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 14071 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 14072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14073 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 14074 | ac_check_lib_save_LIBS=$LIBS |
| 14075 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14076 | cat >conftest.$ac_ext <<_ACEOF |
| 14077 | /* confdefs.h. */ |
| 14078 | _ACEOF |
| 14079 | cat confdefs.h >>conftest.$ac_ext |
| 14080 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14081 | /* end confdefs.h. */ |
| 14082 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14083 | /* Override any GCC internal prototype to avoid an error. |
| 14084 | Use char because int might match the return type of a GCC |
| 14085 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14086 | #ifdef __cplusplus |
| 14087 | extern "C" |
| 14088 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14089 | char pthread_mutex_init (); |
| 14090 | int |
| 14091 | main () |
| 14092 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14093 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14094 | ; |
| 14095 | return 0; |
| 14096 | } |
| 14097 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14098 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14099 | if { (ac_try="$ac_link" |
| 14100 | case "(($ac_try" in |
| 14101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14102 | *) ac_try_echo=$ac_try;; |
| 14103 | esac |
| 14104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14105 | (eval "$ac_link") 2>conftest.er1 |
| 14106 | ac_status=$? |
| 14107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14108 | rm -f conftest.er1 |
| 14109 | cat conftest.err >&5 |
| 14110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14111 | (exit $ac_status); } && |
| 14112 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14113 | { (case "(($ac_try" in |
| 14114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14115 | *) ac_try_echo=$ac_try;; |
| 14116 | esac |
| 14117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14118 | (eval "$ac_try") 2>&5 |
| 14119 | ac_status=$? |
| 14120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14121 | (exit $ac_status); }; } && |
| 14122 | { ac_try='test -s conftest$ac_exeext' |
| 14123 | { (case "(($ac_try" in |
| 14124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14125 | *) ac_try_echo=$ac_try;; |
| 14126 | esac |
| 14127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14128 | (eval "$ac_try") 2>&5 |
| 14129 | ac_status=$? |
| 14130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14131 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 14132 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14133 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14134 | echo "$as_me: failed program was:" >&5 |
| 14135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14136 | |
| 14137 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14138 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14139 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14140 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14141 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 14142 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14143 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14144 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 14145 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 14146 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 14147 | cat >>confdefs.h <<_ACEOF |
| 14148 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 14149 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14150 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 14151 | LIBS="-lpthread $LIBS" |
| 14152 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14153 | fi |
| 14154 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14155 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 14156 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 14157 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 14158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14159 | else |
| 14160 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14161 | cat >conftest.$ac_ext <<_ACEOF |
| 14162 | /* confdefs.h. */ |
| 14163 | _ACEOF |
| 14164 | cat confdefs.h >>conftest.$ac_ext |
| 14165 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14166 | /* end confdefs.h. */ |
| 14167 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14168 | /* Override any GCC internal prototype to avoid an error. |
| 14169 | Use char because int might match the return type of a GCC |
| 14170 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14171 | #ifdef __cplusplus |
| 14172 | extern "C" |
| 14173 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14174 | char pthread_mutex_lock (); |
| 14175 | int |
| 14176 | main () |
| 14177 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14178 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14179 | ; |
| 14180 | return 0; |
| 14181 | } |
| 14182 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14183 | for ac_lib in '' pthread; do |
| 14184 | if test -z "$ac_lib"; then |
| 14185 | ac_res="none required" |
| 14186 | else |
| 14187 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14188 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14189 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14190 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14191 | if { (ac_try="$ac_link" |
| 14192 | case "(($ac_try" in |
| 14193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14194 | *) ac_try_echo=$ac_try;; |
| 14195 | esac |
| 14196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14197 | (eval "$ac_link") 2>conftest.er1 |
| 14198 | ac_status=$? |
| 14199 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14200 | rm -f conftest.er1 |
| 14201 | cat conftest.err >&5 |
| 14202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14203 | (exit $ac_status); } && |
| 14204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14205 | { (case "(($ac_try" in |
| 14206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14207 | *) ac_try_echo=$ac_try;; |
| 14208 | esac |
| 14209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14210 | (eval "$ac_try") 2>&5 |
| 14211 | ac_status=$? |
| 14212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14213 | (exit $ac_status); }; } && |
| 14214 | { ac_try='test -s conftest$ac_exeext' |
| 14215 | { (case "(($ac_try" in |
| 14216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14217 | *) ac_try_echo=$ac_try;; |
| 14218 | esac |
| 14219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14220 | (eval "$ac_try") 2>&5 |
| 14221 | ac_status=$? |
| 14222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14223 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14224 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14225 | else |
| 14226 | echo "$as_me: failed program was:" >&5 |
| 14227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14228 | |
| 14229 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14230 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14231 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14232 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14233 | conftest$ac_exeext |
| 14234 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14235 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14236 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14237 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14238 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 14239 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14240 | else |
| 14241 | ac_cv_search_pthread_mutex_lock=no |
| 14242 | fi |
| 14243 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14244 | LIBS=$ac_func_search_save_LIBS |
| 14245 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14246 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 14247 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14248 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14249 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14250 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14251 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14252 | cat >>confdefs.h <<\_ACEOF |
| 14253 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 14254 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 14255 | |
| 14256 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14257 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14258 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 14259 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 14260 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 14261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14262 | else |
| 14263 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14264 | cat >conftest.$ac_ext <<_ACEOF |
| 14265 | /* confdefs.h. */ |
| 14266 | _ACEOF |
| 14267 | cat confdefs.h >>conftest.$ac_ext |
| 14268 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14269 | /* end confdefs.h. */ |
| 14270 | |
| 14271 | /* Override any GCC internal prototype to avoid an error. |
| 14272 | Use char because int might match the return type of a GCC |
| 14273 | builtin and then its argument prototype would still apply. */ |
| 14274 | #ifdef __cplusplus |
| 14275 | extern "C" |
| 14276 | #endif |
| 14277 | char pthread_rwlock_init (); |
| 14278 | int |
| 14279 | main () |
| 14280 | { |
| 14281 | return pthread_rwlock_init (); |
| 14282 | ; |
| 14283 | return 0; |
| 14284 | } |
| 14285 | _ACEOF |
| 14286 | for ac_lib in '' pthread; do |
| 14287 | if test -z "$ac_lib"; then |
| 14288 | ac_res="none required" |
| 14289 | else |
| 14290 | ac_res=-l$ac_lib |
| 14291 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14292 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14293 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14294 | if { (ac_try="$ac_link" |
| 14295 | case "(($ac_try" in |
| 14296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14297 | *) ac_try_echo=$ac_try;; |
| 14298 | esac |
| 14299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14300 | (eval "$ac_link") 2>conftest.er1 |
| 14301 | ac_status=$? |
| 14302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14303 | rm -f conftest.er1 |
| 14304 | cat conftest.err >&5 |
| 14305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14306 | (exit $ac_status); } && |
| 14307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14308 | { (case "(($ac_try" in |
| 14309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14310 | *) ac_try_echo=$ac_try;; |
| 14311 | esac |
| 14312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14313 | (eval "$ac_try") 2>&5 |
| 14314 | ac_status=$? |
| 14315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14316 | (exit $ac_status); }; } && |
| 14317 | { ac_try='test -s conftest$ac_exeext' |
| 14318 | { (case "(($ac_try" in |
| 14319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14320 | *) ac_try_echo=$ac_try;; |
| 14321 | esac |
| 14322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14323 | (eval "$ac_try") 2>&5 |
| 14324 | ac_status=$? |
| 14325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14326 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14327 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14328 | else |
| 14329 | echo "$as_me: failed program was:" >&5 |
| 14330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14331 | |
| 14332 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14333 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14334 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14335 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14336 | conftest$ac_exeext |
| 14337 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14338 | break |
| 14339 | fi |
| 14340 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14341 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 14342 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14343 | else |
| 14344 | ac_cv_search_pthread_rwlock_init=no |
| 14345 | fi |
| 14346 | rm conftest.$ac_ext |
| 14347 | LIBS=$ac_func_search_save_LIBS |
| 14348 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14349 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 14350 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14351 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14352 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14353 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14354 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14355 | cat >>confdefs.h <<\_ACEOF |
| 14356 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 14357 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14358 | |
| 14359 | fi |
| 14360 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14361 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 14362 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 14363 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 14364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14365 | else |
| 14366 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14367 | cat >conftest.$ac_ext <<_ACEOF |
| 14368 | /* confdefs.h. */ |
| 14369 | _ACEOF |
| 14370 | cat confdefs.h >>conftest.$ac_ext |
| 14371 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14372 | /* end confdefs.h. */ |
| 14373 | |
| 14374 | /* Override any GCC internal prototype to avoid an error. |
| 14375 | Use char because int might match the return type of a GCC |
| 14376 | builtin and then its argument prototype would still apply. */ |
| 14377 | #ifdef __cplusplus |
| 14378 | extern "C" |
| 14379 | #endif |
| 14380 | char pthread_getspecific (); |
| 14381 | int |
| 14382 | main () |
| 14383 | { |
| 14384 | return pthread_getspecific (); |
| 14385 | ; |
| 14386 | return 0; |
| 14387 | } |
| 14388 | _ACEOF |
| 14389 | for ac_lib in '' pthread; do |
| 14390 | if test -z "$ac_lib"; then |
| 14391 | ac_res="none required" |
| 14392 | else |
| 14393 | ac_res=-l$ac_lib |
| 14394 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14395 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14396 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14397 | if { (ac_try="$ac_link" |
| 14398 | case "(($ac_try" in |
| 14399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14400 | *) ac_try_echo=$ac_try;; |
| 14401 | esac |
| 14402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14403 | (eval "$ac_link") 2>conftest.er1 |
| 14404 | ac_status=$? |
| 14405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14406 | rm -f conftest.er1 |
| 14407 | cat conftest.err >&5 |
| 14408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14409 | (exit $ac_status); } && |
| 14410 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14411 | { (case "(($ac_try" in |
| 14412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14413 | *) ac_try_echo=$ac_try;; |
| 14414 | esac |
| 14415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14416 | (eval "$ac_try") 2>&5 |
| 14417 | ac_status=$? |
| 14418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14419 | (exit $ac_status); }; } && |
| 14420 | { ac_try='test -s conftest$ac_exeext' |
| 14421 | { (case "(($ac_try" in |
| 14422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14423 | *) ac_try_echo=$ac_try;; |
| 14424 | esac |
| 14425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14426 | (eval "$ac_try") 2>&5 |
| 14427 | ac_status=$? |
| 14428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14429 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14430 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14431 | else |
| 14432 | echo "$as_me: failed program was:" >&5 |
| 14433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14434 | |
| 14435 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14436 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14437 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14438 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14439 | conftest$ac_exeext |
| 14440 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14441 | break |
| 14442 | fi |
| 14443 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14444 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 14445 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14446 | else |
| 14447 | ac_cv_search_pthread_getspecific=no |
| 14448 | fi |
| 14449 | rm conftest.$ac_ext |
| 14450 | LIBS=$ac_func_search_save_LIBS |
| 14451 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14452 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 14453 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14454 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14455 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14456 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14457 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14458 | cat >>confdefs.h <<\_ACEOF |
| 14459 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 14460 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14461 | |
| 14462 | fi |
| 14463 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 14464 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 14465 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14466 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14467 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14468 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14469 | withval=$with_udis86; |
| 14470 | USE_UDIS86=1 |
| 14471 | |
| 14472 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 14473 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14474 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 14475 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14476 | |
| 14477 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 14478 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 14479 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 14480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14481 | else |
| 14482 | ac_check_lib_save_LIBS=$LIBS |
| 14483 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14484 | cat >conftest.$ac_ext <<_ACEOF |
| 14485 | /* confdefs.h. */ |
| 14486 | _ACEOF |
| 14487 | cat confdefs.h >>conftest.$ac_ext |
| 14488 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14489 | /* end confdefs.h. */ |
| 14490 | |
| 14491 | /* Override any GCC internal prototype to avoid an error. |
| 14492 | Use char because int might match the return type of a GCC |
| 14493 | builtin and then its argument prototype would still apply. */ |
| 14494 | #ifdef __cplusplus |
| 14495 | extern "C" |
| 14496 | #endif |
| 14497 | char ud_init (); |
| 14498 | int |
| 14499 | main () |
| 14500 | { |
| 14501 | return ud_init (); |
| 14502 | ; |
| 14503 | return 0; |
| 14504 | } |
| 14505 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14506 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14507 | if { (ac_try="$ac_link" |
| 14508 | case "(($ac_try" in |
| 14509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14510 | *) ac_try_echo=$ac_try;; |
| 14511 | esac |
| 14512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14513 | (eval "$ac_link") 2>conftest.er1 |
| 14514 | ac_status=$? |
| 14515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14516 | rm -f conftest.er1 |
| 14517 | cat conftest.err >&5 |
| 14518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14519 | (exit $ac_status); } && |
| 14520 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14521 | { (case "(($ac_try" in |
| 14522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14523 | *) ac_try_echo=$ac_try;; |
| 14524 | esac |
| 14525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14526 | (eval "$ac_try") 2>&5 |
| 14527 | ac_status=$? |
| 14528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14529 | (exit $ac_status); }; } && |
| 14530 | { ac_try='test -s conftest$ac_exeext' |
| 14531 | { (case "(($ac_try" in |
| 14532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14533 | *) ac_try_echo=$ac_try;; |
| 14534 | esac |
| 14535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14536 | (eval "$ac_try") 2>&5 |
| 14537 | ac_status=$? |
| 14538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14539 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14540 | ac_cv_lib_udis86_ud_init=yes |
| 14541 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14542 | echo "$as_me: failed program was:" >&5 |
| 14543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14544 | |
| 14545 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14546 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14547 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14548 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14549 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14550 | LIBS=$ac_check_lib_save_LIBS |
| 14551 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14552 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 14553 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 14554 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14555 | cat >>confdefs.h <<_ACEOF |
| 14556 | #define HAVE_LIBUDIS86 1 |
| 14557 | _ACEOF |
| 14558 | |
| 14559 | LIBS="-ludis86 $LIBS" |
| 14560 | |
| 14561 | else |
| 14562 | |
| 14563 | echo "Error! You need to have libudis86 around." |
| 14564 | exit -1 |
| 14565 | |
| 14566 | fi |
| 14567 | |
| 14568 | |
| 14569 | else |
| 14570 | USE_UDIS86=0 |
| 14571 | |
| 14572 | fi |
| 14573 | |
| 14574 | |
| 14575 | cat >>confdefs.h <<_ACEOF |
| 14576 | #define USE_UDIS86 $USE_UDIS86 |
| 14577 | _ACEOF |
| 14578 | |
| 14579 | |
| 14580 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14581 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14582 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14583 | withval=$with_oprofile; |
| 14584 | USE_OPROFILE=1 |
| 14585 | |
| 14586 | case "$withval" in |
| 14587 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14588 | no) llvm_cv_oppath= |
| 14589 | USE_OPROFILE=0 |
| 14590 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14591 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 14592 | CPPFLAGS="-I${withval}/include";; |
| 14593 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14594 | if test -n "$llvm_cv_oppath" ; then |
| 14595 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14596 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 14597 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 14598 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14600 | else |
| 14601 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14602 | cat >conftest.$ac_ext <<_ACEOF |
| 14603 | /* confdefs.h. */ |
| 14604 | _ACEOF |
| 14605 | cat confdefs.h >>conftest.$ac_ext |
| 14606 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14607 | /* end confdefs.h. */ |
| 14608 | |
| 14609 | /* Override any GCC internal prototype to avoid an error. |
| 14610 | Use char because int might match the return type of a GCC |
| 14611 | builtin and then its argument prototype would still apply. */ |
| 14612 | #ifdef __cplusplus |
| 14613 | extern "C" |
| 14614 | #endif |
| 14615 | char bfd_init (); |
| 14616 | int |
| 14617 | main () |
| 14618 | { |
| 14619 | return bfd_init (); |
| 14620 | ; |
| 14621 | return 0; |
| 14622 | } |
| 14623 | _ACEOF |
| 14624 | for ac_lib in '' bfd; do |
| 14625 | if test -z "$ac_lib"; then |
| 14626 | ac_res="none required" |
| 14627 | else |
| 14628 | ac_res=-l$ac_lib |
| 14629 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14630 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14631 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14632 | if { (ac_try="$ac_link" |
| 14633 | case "(($ac_try" in |
| 14634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14635 | *) ac_try_echo=$ac_try;; |
| 14636 | esac |
| 14637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14638 | (eval "$ac_link") 2>conftest.er1 |
| 14639 | ac_status=$? |
| 14640 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14641 | rm -f conftest.er1 |
| 14642 | cat conftest.err >&5 |
| 14643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14644 | (exit $ac_status); } && |
| 14645 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14646 | { (case "(($ac_try" in |
| 14647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14648 | *) ac_try_echo=$ac_try;; |
| 14649 | esac |
| 14650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14651 | (eval "$ac_try") 2>&5 |
| 14652 | ac_status=$? |
| 14653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14654 | (exit $ac_status); }; } && |
| 14655 | { ac_try='test -s conftest$ac_exeext' |
| 14656 | { (case "(($ac_try" in |
| 14657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14658 | *) ac_try_echo=$ac_try;; |
| 14659 | esac |
| 14660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14661 | (eval "$ac_try") 2>&5 |
| 14662 | ac_status=$? |
| 14663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14664 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14665 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14666 | else |
| 14667 | echo "$as_me: failed program was:" >&5 |
| 14668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14669 | |
| 14670 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14671 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14672 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14673 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14674 | conftest$ac_exeext |
| 14675 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14676 | break |
| 14677 | fi |
| 14678 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14679 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14680 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14681 | else |
| 14682 | ac_cv_search_bfd_init=no |
| 14683 | fi |
| 14684 | rm conftest.$ac_ext |
| 14685 | LIBS=$ac_func_search_save_LIBS |
| 14686 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14687 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 14688 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14689 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14690 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14691 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14692 | |
| 14693 | fi |
| 14694 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14695 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 14696 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 14697 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14699 | else |
| 14700 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14701 | cat >conftest.$ac_ext <<_ACEOF |
| 14702 | /* confdefs.h. */ |
| 14703 | _ACEOF |
| 14704 | cat confdefs.h >>conftest.$ac_ext |
| 14705 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14706 | /* end confdefs.h. */ |
| 14707 | |
| 14708 | /* Override any GCC internal prototype to avoid an error. |
| 14709 | Use char because int might match the return type of a GCC |
| 14710 | builtin and then its argument prototype would still apply. */ |
| 14711 | #ifdef __cplusplus |
| 14712 | extern "C" |
| 14713 | #endif |
| 14714 | char op_open_agent (); |
| 14715 | int |
| 14716 | main () |
| 14717 | { |
| 14718 | return op_open_agent (); |
| 14719 | ; |
| 14720 | return 0; |
| 14721 | } |
| 14722 | _ACEOF |
| 14723 | for ac_lib in '' opagent; do |
| 14724 | if test -z "$ac_lib"; then |
| 14725 | ac_res="none required" |
| 14726 | else |
| 14727 | ac_res=-l$ac_lib |
| 14728 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14729 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14730 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14731 | if { (ac_try="$ac_link" |
| 14732 | case "(($ac_try" in |
| 14733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14734 | *) ac_try_echo=$ac_try;; |
| 14735 | esac |
| 14736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14737 | (eval "$ac_link") 2>conftest.er1 |
| 14738 | ac_status=$? |
| 14739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14740 | rm -f conftest.er1 |
| 14741 | cat conftest.err >&5 |
| 14742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14743 | (exit $ac_status); } && |
| 14744 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14745 | { (case "(($ac_try" in |
| 14746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14747 | *) ac_try_echo=$ac_try;; |
| 14748 | esac |
| 14749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14750 | (eval "$ac_try") 2>&5 |
| 14751 | ac_status=$? |
| 14752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14753 | (exit $ac_status); }; } && |
| 14754 | { ac_try='test -s conftest$ac_exeext' |
| 14755 | { (case "(($ac_try" in |
| 14756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14757 | *) ac_try_echo=$ac_try;; |
| 14758 | esac |
| 14759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14760 | (eval "$ac_try") 2>&5 |
| 14761 | ac_status=$? |
| 14762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14763 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14764 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14765 | else |
| 14766 | echo "$as_me: failed program was:" >&5 |
| 14767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14768 | |
| 14769 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14770 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14771 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14772 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14773 | conftest$ac_exeext |
| 14774 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14775 | break |
| 14776 | fi |
| 14777 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14778 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14779 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14780 | else |
| 14781 | ac_cv_search_op_open_agent=no |
| 14782 | fi |
| 14783 | rm conftest.$ac_ext |
| 14784 | LIBS=$ac_func_search_save_LIBS |
| 14785 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14786 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 14787 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14788 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14789 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14790 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14791 | |
| 14792 | else |
| 14793 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14794 | echo "Error! You need to have libopagent around." |
| 14795 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14796 | |
| 14797 | fi |
| 14798 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14799 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14800 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14801 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14802 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14804 | fi |
| 14805 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14806 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14807 | else |
| 14808 | # Is the header compilable? |
| 14809 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 14810 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 14811 | cat >conftest.$ac_ext <<_ACEOF |
| 14812 | /* confdefs.h. */ |
| 14813 | _ACEOF |
| 14814 | cat confdefs.h >>conftest.$ac_ext |
| 14815 | cat >>conftest.$ac_ext <<_ACEOF |
| 14816 | /* end confdefs.h. */ |
| 14817 | $ac_includes_default |
| 14818 | #include <opagent.h> |
| 14819 | _ACEOF |
| 14820 | rm -f conftest.$ac_objext |
| 14821 | if { (ac_try="$ac_compile" |
| 14822 | case "(($ac_try" in |
| 14823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14824 | *) ac_try_echo=$ac_try;; |
| 14825 | esac |
| 14826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14827 | (eval "$ac_compile") 2>conftest.er1 |
| 14828 | ac_status=$? |
| 14829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14830 | rm -f conftest.er1 |
| 14831 | cat conftest.err >&5 |
| 14832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14833 | (exit $ac_status); } && |
| 14834 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14835 | { (case "(($ac_try" in |
| 14836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14837 | *) ac_try_echo=$ac_try;; |
| 14838 | esac |
| 14839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14840 | (eval "$ac_try") 2>&5 |
| 14841 | ac_status=$? |
| 14842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14843 | (exit $ac_status); }; } && |
| 14844 | { ac_try='test -s conftest.$ac_objext' |
| 14845 | { (case "(($ac_try" in |
| 14846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14847 | *) ac_try_echo=$ac_try;; |
| 14848 | esac |
| 14849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14850 | (eval "$ac_try") 2>&5 |
| 14851 | ac_status=$? |
| 14852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14853 | (exit $ac_status); }; }; then |
| 14854 | ac_header_compiler=yes |
| 14855 | else |
| 14856 | echo "$as_me: failed program was:" >&5 |
| 14857 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14858 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14859 | ac_header_compiler=no |
| 14860 | fi |
| 14861 | |
| 14862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14863 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14864 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14865 | |
| 14866 | # Is the header present? |
| 14867 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 14868 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 14869 | cat >conftest.$ac_ext <<_ACEOF |
| 14870 | /* confdefs.h. */ |
| 14871 | _ACEOF |
| 14872 | cat confdefs.h >>conftest.$ac_ext |
| 14873 | cat >>conftest.$ac_ext <<_ACEOF |
| 14874 | /* end confdefs.h. */ |
| 14875 | #include <opagent.h> |
| 14876 | _ACEOF |
| 14877 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14878 | case "(($ac_try" in |
| 14879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14880 | *) ac_try_echo=$ac_try;; |
| 14881 | esac |
| 14882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14883 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14884 | ac_status=$? |
| 14885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14886 | rm -f conftest.er1 |
| 14887 | cat conftest.err >&5 |
| 14888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14889 | (exit $ac_status); } >/dev/null; then |
| 14890 | if test -s conftest.err; then |
| 14891 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14892 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14893 | else |
| 14894 | ac_cpp_err= |
| 14895 | fi |
| 14896 | else |
| 14897 | ac_cpp_err=yes |
| 14898 | fi |
| 14899 | if test -z "$ac_cpp_err"; then |
| 14900 | ac_header_preproc=yes |
| 14901 | else |
| 14902 | echo "$as_me: failed program was:" >&5 |
| 14903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14904 | |
| 14905 | ac_header_preproc=no |
| 14906 | fi |
| 14907 | |
| 14908 | rm -f conftest.err conftest.$ac_ext |
| 14909 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14910 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14911 | |
| 14912 | # So? What about this header? |
| 14913 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14914 | yes:no: ) |
| 14915 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14916 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14917 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 14918 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 14919 | ac_header_preproc=yes |
| 14920 | ;; |
| 14921 | no:yes:* ) |
| 14922 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 14923 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 14924 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 14925 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 14926 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 14927 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 14928 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14929 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14930 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 14931 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 14932 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 14933 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 14934 | ( cat <<\_ASBOX |
| 14935 | ## ----------------------------------- ## |
| 14936 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 14937 | ## ----------------------------------- ## |
| 14938 | _ASBOX |
| 14939 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14940 | ;; |
| 14941 | esac |
| 14942 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14943 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14944 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14946 | else |
| 14947 | ac_cv_header_opagent_h=$ac_header_preproc |
| 14948 | fi |
| 14949 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14950 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14951 | |
| 14952 | fi |
| 14953 | if test $ac_cv_header_opagent_h = yes; then |
| 14954 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14955 | else |
| 14956 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14957 | echo "Error! You need to have opagent.h around." |
| 14958 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14959 | |
| 14960 | fi |
| 14961 | |
| 14962 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14963 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14964 | |
| 14965 | else |
| 14966 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14967 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14968 | |
| 14969 | |
| 14970 | fi |
| 14971 | |
| 14972 | |
| 14973 | cat >>confdefs.h <<_ACEOF |
| 14974 | #define USE_OPROFILE $USE_OPROFILE |
| 14975 | _ACEOF |
| 14976 | |
| 14977 | |
| 14978 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14979 | |
| 14980 | |
| 14981 | |
| 14982 | |
| 14983 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14984 | ac_header_dirent=no |
| 14985 | 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] | 14986 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 14987 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 14988 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 14989 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14991 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14992 | cat >conftest.$ac_ext <<_ACEOF |
| 14993 | /* confdefs.h. */ |
| 14994 | _ACEOF |
| 14995 | cat confdefs.h >>conftest.$ac_ext |
| 14996 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14997 | /* end confdefs.h. */ |
| 14998 | #include <sys/types.h> |
| 14999 | #include <$ac_hdr> |
| 15000 | |
| 15001 | int |
| 15002 | main () |
| 15003 | { |
| 15004 | if ((DIR *) 0) |
| 15005 | return 0; |
| 15006 | ; |
| 15007 | return 0; |
| 15008 | } |
| 15009 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15010 | rm -f conftest.$ac_objext |
| 15011 | if { (ac_try="$ac_compile" |
| 15012 | case "(($ac_try" in |
| 15013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15014 | *) ac_try_echo=$ac_try;; |
| 15015 | esac |
| 15016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15017 | (eval "$ac_compile") 2>conftest.er1 |
| 15018 | ac_status=$? |
| 15019 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15020 | rm -f conftest.er1 |
| 15021 | cat conftest.err >&5 |
| 15022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15023 | (exit $ac_status); } && |
| 15024 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15025 | { (case "(($ac_try" in |
| 15026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15027 | *) ac_try_echo=$ac_try;; |
| 15028 | esac |
| 15029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15030 | (eval "$ac_try") 2>&5 |
| 15031 | ac_status=$? |
| 15032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15033 | (exit $ac_status); }; } && |
| 15034 | { ac_try='test -s conftest.$ac_objext' |
| 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_try") 2>&5 |
| 15041 | ac_status=$? |
| 15042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15043 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15044 | eval "$as_ac_Header=yes" |
| 15045 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15046 | echo "$as_me: failed program was:" >&5 |
| 15047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15048 | |
| 15049 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15050 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15051 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15053 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15054 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15055 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15056 | echo "${ECHO_T}$ac_res" >&6; } |
| 15057 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15058 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15059 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15060 | _ACEOF |
| 15061 | |
| 15062 | ac_header_dirent=$ac_hdr; break |
| 15063 | fi |
| 15064 | |
| 15065 | done |
| 15066 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 15067 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15068 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 15069 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 15070 | if test "${ac_cv_search_opendir+set}" = set; then |
| 15071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15072 | else |
| 15073 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15074 | cat >conftest.$ac_ext <<_ACEOF |
| 15075 | /* confdefs.h. */ |
| 15076 | _ACEOF |
| 15077 | cat confdefs.h >>conftest.$ac_ext |
| 15078 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15079 | /* end confdefs.h. */ |
| 15080 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15081 | /* Override any GCC internal prototype to avoid an error. |
| 15082 | Use char because int might match the return type of a GCC |
| 15083 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15084 | #ifdef __cplusplus |
| 15085 | extern "C" |
| 15086 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15087 | char opendir (); |
| 15088 | int |
| 15089 | main () |
| 15090 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15091 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15092 | ; |
| 15093 | return 0; |
| 15094 | } |
| 15095 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15096 | for ac_lib in '' dir; do |
| 15097 | if test -z "$ac_lib"; then |
| 15098 | ac_res="none required" |
| 15099 | else |
| 15100 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15101 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15102 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15103 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15104 | if { (ac_try="$ac_link" |
| 15105 | case "(($ac_try" in |
| 15106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15107 | *) ac_try_echo=$ac_try;; |
| 15108 | esac |
| 15109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15110 | (eval "$ac_link") 2>conftest.er1 |
| 15111 | ac_status=$? |
| 15112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15113 | rm -f conftest.er1 |
| 15114 | cat conftest.err >&5 |
| 15115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15116 | (exit $ac_status); } && |
| 15117 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15118 | { (case "(($ac_try" in |
| 15119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15120 | *) ac_try_echo=$ac_try;; |
| 15121 | esac |
| 15122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15123 | (eval "$ac_try") 2>&5 |
| 15124 | ac_status=$? |
| 15125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15126 | (exit $ac_status); }; } && |
| 15127 | { ac_try='test -s conftest$ac_exeext' |
| 15128 | { (case "(($ac_try" in |
| 15129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15130 | *) ac_try_echo=$ac_try;; |
| 15131 | esac |
| 15132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15133 | (eval "$ac_try") 2>&5 |
| 15134 | ac_status=$? |
| 15135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15136 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15137 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15138 | else |
| 15139 | echo "$as_me: failed program was:" >&5 |
| 15140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15141 | |
| 15142 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15143 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15144 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15145 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15146 | conftest$ac_exeext |
| 15147 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15148 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15149 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15150 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15151 | if test "${ac_cv_search_opendir+set}" = set; then |
| 15152 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15153 | else |
| 15154 | ac_cv_search_opendir=no |
| 15155 | fi |
| 15156 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15157 | LIBS=$ac_func_search_save_LIBS |
| 15158 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15159 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 15160 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15161 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15162 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15163 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15164 | |
| 15165 | fi |
| 15166 | |
| 15167 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15168 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 15169 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 15170 | if test "${ac_cv_search_opendir+set}" = set; then |
| 15171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15172 | else |
| 15173 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15174 | cat >conftest.$ac_ext <<_ACEOF |
| 15175 | /* confdefs.h. */ |
| 15176 | _ACEOF |
| 15177 | cat confdefs.h >>conftest.$ac_ext |
| 15178 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15179 | /* end confdefs.h. */ |
| 15180 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15181 | /* Override any GCC internal prototype to avoid an error. |
| 15182 | Use char because int might match the return type of a GCC |
| 15183 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15184 | #ifdef __cplusplus |
| 15185 | extern "C" |
| 15186 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15187 | char opendir (); |
| 15188 | int |
| 15189 | main () |
| 15190 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15191 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15192 | ; |
| 15193 | return 0; |
| 15194 | } |
| 15195 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15196 | for ac_lib in '' x; do |
| 15197 | if test -z "$ac_lib"; then |
| 15198 | ac_res="none required" |
| 15199 | else |
| 15200 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15201 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15202 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15203 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15204 | if { (ac_try="$ac_link" |
| 15205 | case "(($ac_try" in |
| 15206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15207 | *) ac_try_echo=$ac_try;; |
| 15208 | esac |
| 15209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15210 | (eval "$ac_link") 2>conftest.er1 |
| 15211 | ac_status=$? |
| 15212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15213 | rm -f conftest.er1 |
| 15214 | cat conftest.err >&5 |
| 15215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15216 | (exit $ac_status); } && |
| 15217 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15218 | { (case "(($ac_try" in |
| 15219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15220 | *) ac_try_echo=$ac_try;; |
| 15221 | esac |
| 15222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15223 | (eval "$ac_try") 2>&5 |
| 15224 | ac_status=$? |
| 15225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15226 | (exit $ac_status); }; } && |
| 15227 | { ac_try='test -s conftest$ac_exeext' |
| 15228 | { (case "(($ac_try" in |
| 15229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15230 | *) ac_try_echo=$ac_try;; |
| 15231 | esac |
| 15232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15233 | (eval "$ac_try") 2>&5 |
| 15234 | ac_status=$? |
| 15235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15236 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15237 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15238 | else |
| 15239 | echo "$as_me: failed program was:" >&5 |
| 15240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15241 | |
| 15242 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15243 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15244 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15245 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15246 | conftest$ac_exeext |
| 15247 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15248 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15249 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15250 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15251 | if test "${ac_cv_search_opendir+set}" = set; then |
| 15252 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15253 | else |
| 15254 | ac_cv_search_opendir=no |
| 15255 | fi |
| 15256 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15257 | LIBS=$ac_func_search_save_LIBS |
| 15258 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15259 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 15260 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15261 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15262 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15263 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15264 | |
| 15265 | fi |
| 15266 | |
| 15267 | fi |
| 15268 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15269 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 15270 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 15271 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 15272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15273 | else |
| 15274 | ac_ext=c |
| 15275 | ac_cpp='$CPP $CPPFLAGS' |
| 15276 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15277 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15278 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15279 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15280 | cat >conftest.$ac_ext <<_ACEOF |
| 15281 | /* confdefs.h. */ |
| 15282 | _ACEOF |
| 15283 | cat confdefs.h >>conftest.$ac_ext |
| 15284 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15285 | /* end confdefs.h. */ |
| 15286 | #include <sys/mman.h> |
| 15287 | #include <unistd.h> |
| 15288 | #include <fcntl.h> |
| 15289 | int |
| 15290 | main () |
| 15291 | { |
| 15292 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 15293 | ; |
| 15294 | return 0; |
| 15295 | } |
| 15296 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15297 | rm -f conftest.$ac_objext |
| 15298 | if { (ac_try="$ac_compile" |
| 15299 | case "(($ac_try" in |
| 15300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15301 | *) ac_try_echo=$ac_try;; |
| 15302 | esac |
| 15303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15304 | (eval "$ac_compile") 2>conftest.er1 |
| 15305 | ac_status=$? |
| 15306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15307 | rm -f conftest.er1 |
| 15308 | cat conftest.err >&5 |
| 15309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15310 | (exit $ac_status); } && |
| 15311 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15312 | { (case "(($ac_try" in |
| 15313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15314 | *) ac_try_echo=$ac_try;; |
| 15315 | esac |
| 15316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15317 | (eval "$ac_try") 2>&5 |
| 15318 | ac_status=$? |
| 15319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15320 | (exit $ac_status); }; } && |
| 15321 | { ac_try='test -s conftest.$ac_objext' |
| 15322 | { (case "(($ac_try" in |
| 15323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15324 | *) ac_try_echo=$ac_try;; |
| 15325 | esac |
| 15326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15327 | (eval "$ac_try") 2>&5 |
| 15328 | ac_status=$? |
| 15329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15330 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15331 | ac_cv_header_mmap_anon=yes |
| 15332 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15333 | echo "$as_me: failed program was:" >&5 |
| 15334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15335 | |
| 15336 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15337 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15338 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15340 | ac_ext=c |
| 15341 | ac_cpp='$CPP $CPPFLAGS' |
| 15342 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15343 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15344 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15345 | |
| 15346 | |
| 15347 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15348 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 15349 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15350 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 15351 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15352 | cat >>confdefs.h <<\_ACEOF |
| 15353 | #define HAVE_MMAP_ANONYMOUS 1 |
| 15354 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15355 | |
| 15356 | fi |
| 15357 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15358 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 15359 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 15360 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 15361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15362 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15363 | cat >conftest.$ac_ext <<_ACEOF |
| 15364 | /* confdefs.h. */ |
| 15365 | _ACEOF |
| 15366 | cat confdefs.h >>conftest.$ac_ext |
| 15367 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15368 | /* end confdefs.h. */ |
| 15369 | #include <sys/types.h> |
| 15370 | #include <sys/stat.h> |
| 15371 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15372 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15373 | # if S_ISBLK (S_IFDIR) |
| 15374 | You lose. |
| 15375 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15376 | #endif |
| 15377 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15378 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15379 | # if S_ISBLK (S_IFCHR) |
| 15380 | You lose. |
| 15381 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15382 | #endif |
| 15383 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15384 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15385 | # if S_ISLNK (S_IFREG) |
| 15386 | You lose. |
| 15387 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15388 | #endif |
| 15389 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15390 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15391 | # if S_ISSOCK (S_IFREG) |
| 15392 | You lose. |
| 15393 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15394 | #endif |
| 15395 | |
| 15396 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15397 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15398 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 15399 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15400 | else |
| 15401 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 15402 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15403 | rm -f conftest* |
| 15404 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15405 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15406 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 15407 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15408 | if test $ac_cv_header_stat_broken = yes; then |
| 15409 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15410 | cat >>confdefs.h <<\_ACEOF |
| 15411 | #define STAT_MACROS_BROKEN 1 |
| 15412 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15413 | |
| 15414 | fi |
| 15415 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15416 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 15417 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 15418 | if test "${ac_cv_header_stdc+set}" = set; then |
| 15419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15420 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15421 | cat >conftest.$ac_ext <<_ACEOF |
| 15422 | /* confdefs.h. */ |
| 15423 | _ACEOF |
| 15424 | cat confdefs.h >>conftest.$ac_ext |
| 15425 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15426 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15427 | #include <stdlib.h> |
| 15428 | #include <stdarg.h> |
| 15429 | #include <string.h> |
| 15430 | #include <float.h> |
| 15431 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15432 | int |
| 15433 | main () |
| 15434 | { |
| 15435 | |
| 15436 | ; |
| 15437 | return 0; |
| 15438 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15439 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15440 | rm -f conftest.$ac_objext |
| 15441 | if { (ac_try="$ac_compile" |
| 15442 | case "(($ac_try" in |
| 15443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15444 | *) ac_try_echo=$ac_try;; |
| 15445 | esac |
| 15446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15447 | (eval "$ac_compile") 2>conftest.er1 |
| 15448 | ac_status=$? |
| 15449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15450 | rm -f conftest.er1 |
| 15451 | cat conftest.err >&5 |
| 15452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15453 | (exit $ac_status); } && |
| 15454 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15455 | { (case "(($ac_try" in |
| 15456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15457 | *) ac_try_echo=$ac_try;; |
| 15458 | esac |
| 15459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15460 | (eval "$ac_try") 2>&5 |
| 15461 | ac_status=$? |
| 15462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15463 | (exit $ac_status); }; } && |
| 15464 | { ac_try='test -s conftest.$ac_objext' |
| 15465 | { (case "(($ac_try" in |
| 15466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15467 | *) ac_try_echo=$ac_try;; |
| 15468 | esac |
| 15469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15470 | (eval "$ac_try") 2>&5 |
| 15471 | ac_status=$? |
| 15472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15473 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15474 | ac_cv_header_stdc=yes |
| 15475 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15476 | echo "$as_me: failed program was:" >&5 |
| 15477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15478 | |
| 15479 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15480 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15481 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15483 | |
| 15484 | if test $ac_cv_header_stdc = yes; then |
| 15485 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15486 | cat >conftest.$ac_ext <<_ACEOF |
| 15487 | /* confdefs.h. */ |
| 15488 | _ACEOF |
| 15489 | cat confdefs.h >>conftest.$ac_ext |
| 15490 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15491 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15492 | #include <string.h> |
| 15493 | |
| 15494 | _ACEOF |
| 15495 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15496 | $EGREP "memchr" >/dev/null 2>&1; then |
| 15497 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15498 | else |
| 15499 | ac_cv_header_stdc=no |
| 15500 | fi |
| 15501 | rm -f conftest* |
| 15502 | |
| 15503 | fi |
| 15504 | |
| 15505 | if test $ac_cv_header_stdc = yes; then |
| 15506 | # 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] | 15507 | cat >conftest.$ac_ext <<_ACEOF |
| 15508 | /* confdefs.h. */ |
| 15509 | _ACEOF |
| 15510 | cat confdefs.h >>conftest.$ac_ext |
| 15511 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15512 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15513 | #include <stdlib.h> |
| 15514 | |
| 15515 | _ACEOF |
| 15516 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15517 | $EGREP "free" >/dev/null 2>&1; then |
| 15518 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15519 | else |
| 15520 | ac_cv_header_stdc=no |
| 15521 | fi |
| 15522 | rm -f conftest* |
| 15523 | |
| 15524 | fi |
| 15525 | |
| 15526 | if test $ac_cv_header_stdc = yes; then |
| 15527 | # /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] | 15528 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15529 | : |
| 15530 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15531 | cat >conftest.$ac_ext <<_ACEOF |
| 15532 | /* confdefs.h. */ |
| 15533 | _ACEOF |
| 15534 | cat confdefs.h >>conftest.$ac_ext |
| 15535 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15536 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15537 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15538 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15539 | #if ((' ' & 0x0FF) == 0x020) |
| 15540 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 15541 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 15542 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15543 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15544 | (('a' <= (c) && (c) <= 'i') \ |
| 15545 | || ('j' <= (c) && (c) <= 'r') \ |
| 15546 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15547 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 15548 | #endif |
| 15549 | |
| 15550 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 15551 | int |
| 15552 | main () |
| 15553 | { |
| 15554 | int i; |
| 15555 | for (i = 0; i < 256; i++) |
| 15556 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15557 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15558 | return 2; |
| 15559 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15560 | } |
| 15561 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15562 | rm -f conftest$ac_exeext |
| 15563 | if { (ac_try="$ac_link" |
| 15564 | case "(($ac_try" in |
| 15565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15566 | *) ac_try_echo=$ac_try;; |
| 15567 | esac |
| 15568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15569 | (eval "$ac_link") 2>&5 |
| 15570 | ac_status=$? |
| 15571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15572 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15573 | { (case "(($ac_try" in |
| 15574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15575 | *) ac_try_echo=$ac_try;; |
| 15576 | esac |
| 15577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15578 | (eval "$ac_try") 2>&5 |
| 15579 | ac_status=$? |
| 15580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15581 | (exit $ac_status); }; }; then |
| 15582 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15583 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15584 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15585 | echo "$as_me: failed program was:" >&5 |
| 15586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15587 | |
| 15588 | ( exit $ac_status ) |
| 15589 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15590 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15591 | 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] | 15592 | fi |
| 15593 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15594 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15595 | fi |
| 15596 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15597 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 15598 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15599 | if test $ac_cv_header_stdc = yes; then |
| 15600 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15601 | cat >>confdefs.h <<\_ACEOF |
| 15602 | #define STDC_HEADERS 1 |
| 15603 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15604 | |
| 15605 | fi |
| 15606 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15607 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 15608 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 15609 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 15610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15611 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15612 | cat >conftest.$ac_ext <<_ACEOF |
| 15613 | /* confdefs.h. */ |
| 15614 | _ACEOF |
| 15615 | cat confdefs.h >>conftest.$ac_ext |
| 15616 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15617 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15618 | #include <sys/types.h> |
| 15619 | #include <sys/wait.h> |
| 15620 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15621 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15622 | #endif |
| 15623 | #ifndef WIFEXITED |
| 15624 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 15625 | #endif |
| 15626 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15627 | int |
| 15628 | main () |
| 15629 | { |
| 15630 | int s; |
| 15631 | wait (&s); |
| 15632 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 15633 | ; |
| 15634 | return 0; |
| 15635 | } |
| 15636 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15637 | rm -f conftest.$ac_objext |
| 15638 | if { (ac_try="$ac_compile" |
| 15639 | case "(($ac_try" in |
| 15640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15641 | *) ac_try_echo=$ac_try;; |
| 15642 | esac |
| 15643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15644 | (eval "$ac_compile") 2>conftest.er1 |
| 15645 | ac_status=$? |
| 15646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15647 | rm -f conftest.er1 |
| 15648 | cat conftest.err >&5 |
| 15649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15650 | (exit $ac_status); } && |
| 15651 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15652 | { (case "(($ac_try" in |
| 15653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15654 | *) ac_try_echo=$ac_try;; |
| 15655 | esac |
| 15656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15657 | (eval "$ac_try") 2>&5 |
| 15658 | ac_status=$? |
| 15659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15660 | (exit $ac_status); }; } && |
| 15661 | { ac_try='test -s conftest.$ac_objext' |
| 15662 | { (case "(($ac_try" in |
| 15663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15664 | *) ac_try_echo=$ac_try;; |
| 15665 | esac |
| 15666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15667 | (eval "$ac_try") 2>&5 |
| 15668 | ac_status=$? |
| 15669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15670 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15671 | ac_cv_header_sys_wait_h=yes |
| 15672 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15673 | echo "$as_me: failed program was:" >&5 |
| 15674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15675 | |
| 15676 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15677 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15678 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15680 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15681 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 15682 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15683 | if test $ac_cv_header_sys_wait_h = yes; then |
| 15684 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15685 | cat >>confdefs.h <<\_ACEOF |
| 15686 | #define HAVE_SYS_WAIT_H 1 |
| 15687 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15688 | |
| 15689 | fi |
| 15690 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15691 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15692 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 15693 | if test "${ac_cv_header_time+set}" = set; then |
| 15694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15695 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15696 | cat >conftest.$ac_ext <<_ACEOF |
| 15697 | /* confdefs.h. */ |
| 15698 | _ACEOF |
| 15699 | cat confdefs.h >>conftest.$ac_ext |
| 15700 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15701 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15702 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15703 | #include <sys/time.h> |
| 15704 | #include <time.h> |
| 15705 | |
| 15706 | int |
| 15707 | main () |
| 15708 | { |
| 15709 | if ((struct tm *) 0) |
| 15710 | return 0; |
| 15711 | ; |
| 15712 | return 0; |
| 15713 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15714 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15715 | rm -f conftest.$ac_objext |
| 15716 | if { (ac_try="$ac_compile" |
| 15717 | case "(($ac_try" in |
| 15718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15719 | *) ac_try_echo=$ac_try;; |
| 15720 | esac |
| 15721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15722 | (eval "$ac_compile") 2>conftest.er1 |
| 15723 | ac_status=$? |
| 15724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15725 | rm -f conftest.er1 |
| 15726 | cat conftest.err >&5 |
| 15727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15728 | (exit $ac_status); } && |
| 15729 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15730 | { (case "(($ac_try" in |
| 15731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15732 | *) ac_try_echo=$ac_try;; |
| 15733 | esac |
| 15734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15735 | (eval "$ac_try") 2>&5 |
| 15736 | ac_status=$? |
| 15737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15738 | (exit $ac_status); }; } && |
| 15739 | { ac_try='test -s conftest.$ac_objext' |
| 15740 | { (case "(($ac_try" in |
| 15741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15742 | *) ac_try_echo=$ac_try;; |
| 15743 | esac |
| 15744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15745 | (eval "$ac_try") 2>&5 |
| 15746 | ac_status=$? |
| 15747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15748 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15749 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15750 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15751 | echo "$as_me: failed program was:" >&5 |
| 15752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15753 | |
| 15754 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15755 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15756 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15758 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15759 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15760 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15761 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15762 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15763 | cat >>confdefs.h <<\_ACEOF |
| 15764 | #define TIME_WITH_SYS_TIME 1 |
| 15765 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15766 | |
| 15767 | fi |
| 15768 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15769 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15770 | |
| 15771 | |
| 15772 | |
| 15773 | |
| 15774 | |
| 15775 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15776 | 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] | 15777 | do |
| 15778 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15779 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15780 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15781 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15782 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15784 | fi |
| 15785 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15786 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15787 | echo "${ECHO_T}$ac_res" >&6; } |
| 15788 | else |
| 15789 | # Is the header compilable? |
| 15790 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15791 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15792 | cat >conftest.$ac_ext <<_ACEOF |
| 15793 | /* confdefs.h. */ |
| 15794 | _ACEOF |
| 15795 | cat confdefs.h >>conftest.$ac_ext |
| 15796 | cat >>conftest.$ac_ext <<_ACEOF |
| 15797 | /* end confdefs.h. */ |
| 15798 | $ac_includes_default |
| 15799 | #include <$ac_header> |
| 15800 | _ACEOF |
| 15801 | rm -f conftest.$ac_objext |
| 15802 | if { (ac_try="$ac_compile" |
| 15803 | case "(($ac_try" in |
| 15804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15805 | *) ac_try_echo=$ac_try;; |
| 15806 | esac |
| 15807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15808 | (eval "$ac_compile") 2>conftest.er1 |
| 15809 | ac_status=$? |
| 15810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15811 | rm -f conftest.er1 |
| 15812 | cat conftest.err >&5 |
| 15813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15814 | (exit $ac_status); } && |
| 15815 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15816 | { (case "(($ac_try" in |
| 15817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15818 | *) ac_try_echo=$ac_try;; |
| 15819 | esac |
| 15820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15821 | (eval "$ac_try") 2>&5 |
| 15822 | ac_status=$? |
| 15823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15824 | (exit $ac_status); }; } && |
| 15825 | { ac_try='test -s conftest.$ac_objext' |
| 15826 | { (case "(($ac_try" in |
| 15827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15828 | *) ac_try_echo=$ac_try;; |
| 15829 | esac |
| 15830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15831 | (eval "$ac_try") 2>&5 |
| 15832 | ac_status=$? |
| 15833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15834 | (exit $ac_status); }; }; then |
| 15835 | ac_header_compiler=yes |
| 15836 | else |
| 15837 | echo "$as_me: failed program was:" >&5 |
| 15838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15839 | |
| 15840 | ac_header_compiler=no |
| 15841 | fi |
| 15842 | |
| 15843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15844 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15845 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15846 | |
| 15847 | # Is the header present? |
| 15848 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15849 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15850 | cat >conftest.$ac_ext <<_ACEOF |
| 15851 | /* confdefs.h. */ |
| 15852 | _ACEOF |
| 15853 | cat confdefs.h >>conftest.$ac_ext |
| 15854 | cat >>conftest.$ac_ext <<_ACEOF |
| 15855 | /* end confdefs.h. */ |
| 15856 | #include <$ac_header> |
| 15857 | _ACEOF |
| 15858 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15859 | case "(($ac_try" in |
| 15860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15861 | *) ac_try_echo=$ac_try;; |
| 15862 | esac |
| 15863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15864 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15865 | ac_status=$? |
| 15866 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15867 | rm -f conftest.er1 |
| 15868 | cat conftest.err >&5 |
| 15869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15870 | (exit $ac_status); } >/dev/null; then |
| 15871 | if test -s conftest.err; then |
| 15872 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15873 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15874 | else |
| 15875 | ac_cpp_err= |
| 15876 | fi |
| 15877 | else |
| 15878 | ac_cpp_err=yes |
| 15879 | fi |
| 15880 | if test -z "$ac_cpp_err"; then |
| 15881 | ac_header_preproc=yes |
| 15882 | else |
| 15883 | echo "$as_me: failed program was:" >&5 |
| 15884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15885 | |
| 15886 | ac_header_preproc=no |
| 15887 | fi |
| 15888 | |
| 15889 | rm -f conftest.err conftest.$ac_ext |
| 15890 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15891 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15892 | |
| 15893 | # So? What about this header? |
| 15894 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15895 | yes:no: ) |
| 15896 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15897 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15898 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15899 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15900 | ac_header_preproc=yes |
| 15901 | ;; |
| 15902 | no:yes:* ) |
| 15903 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15904 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15905 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15906 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15907 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15908 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15909 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15910 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15911 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15912 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15913 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15914 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15915 | ( cat <<\_ASBOX |
| 15916 | ## ----------------------------------- ## |
| 15917 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15918 | ## ----------------------------------- ## |
| 15919 | _ASBOX |
| 15920 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15921 | ;; |
| 15922 | esac |
| 15923 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15924 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15925 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15927 | else |
| 15928 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15929 | fi |
| 15930 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15931 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15932 | echo "${ECHO_T}$ac_res" >&6; } |
| 15933 | |
| 15934 | fi |
| 15935 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15936 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15937 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15938 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15939 | |
| 15940 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15941 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15942 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15943 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15944 | |
| 15945 | |
| 15946 | |
| 15947 | |
| 15948 | |
| 15949 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15950 | 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] | 15951 | do |
| 15952 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15953 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15954 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15955 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15956 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15958 | fi |
| 15959 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15960 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15961 | echo "${ECHO_T}$ac_res" >&6; } |
| 15962 | else |
| 15963 | # Is the header compilable? |
| 15964 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15965 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15966 | cat >conftest.$ac_ext <<_ACEOF |
| 15967 | /* confdefs.h. */ |
| 15968 | _ACEOF |
| 15969 | cat confdefs.h >>conftest.$ac_ext |
| 15970 | cat >>conftest.$ac_ext <<_ACEOF |
| 15971 | /* end confdefs.h. */ |
| 15972 | $ac_includes_default |
| 15973 | #include <$ac_header> |
| 15974 | _ACEOF |
| 15975 | rm -f conftest.$ac_objext |
| 15976 | if { (ac_try="$ac_compile" |
| 15977 | case "(($ac_try" in |
| 15978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15979 | *) ac_try_echo=$ac_try;; |
| 15980 | esac |
| 15981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15982 | (eval "$ac_compile") 2>conftest.er1 |
| 15983 | ac_status=$? |
| 15984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15985 | rm -f conftest.er1 |
| 15986 | cat conftest.err >&5 |
| 15987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15988 | (exit $ac_status); } && |
| 15989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15990 | { (case "(($ac_try" in |
| 15991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15992 | *) ac_try_echo=$ac_try;; |
| 15993 | esac |
| 15994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15995 | (eval "$ac_try") 2>&5 |
| 15996 | ac_status=$? |
| 15997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15998 | (exit $ac_status); }; } && |
| 15999 | { ac_try='test -s conftest.$ac_objext' |
| 16000 | { (case "(($ac_try" in |
| 16001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16002 | *) ac_try_echo=$ac_try;; |
| 16003 | esac |
| 16004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16005 | (eval "$ac_try") 2>&5 |
| 16006 | ac_status=$? |
| 16007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16008 | (exit $ac_status); }; }; then |
| 16009 | ac_header_compiler=yes |
| 16010 | else |
| 16011 | echo "$as_me: failed program was:" >&5 |
| 16012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16013 | |
| 16014 | ac_header_compiler=no |
| 16015 | fi |
| 16016 | |
| 16017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16018 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16019 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16020 | |
| 16021 | # Is the header present? |
| 16022 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16023 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16024 | cat >conftest.$ac_ext <<_ACEOF |
| 16025 | /* confdefs.h. */ |
| 16026 | _ACEOF |
| 16027 | cat confdefs.h >>conftest.$ac_ext |
| 16028 | cat >>conftest.$ac_ext <<_ACEOF |
| 16029 | /* end confdefs.h. */ |
| 16030 | #include <$ac_header> |
| 16031 | _ACEOF |
| 16032 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16033 | case "(($ac_try" in |
| 16034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16035 | *) ac_try_echo=$ac_try;; |
| 16036 | esac |
| 16037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16038 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16039 | ac_status=$? |
| 16040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16041 | rm -f conftest.er1 |
| 16042 | cat conftest.err >&5 |
| 16043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16044 | (exit $ac_status); } >/dev/null; then |
| 16045 | if test -s conftest.err; then |
| 16046 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16047 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16048 | else |
| 16049 | ac_cpp_err= |
| 16050 | fi |
| 16051 | else |
| 16052 | ac_cpp_err=yes |
| 16053 | fi |
| 16054 | if test -z "$ac_cpp_err"; then |
| 16055 | ac_header_preproc=yes |
| 16056 | else |
| 16057 | echo "$as_me: failed program was:" >&5 |
| 16058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16059 | |
| 16060 | ac_header_preproc=no |
| 16061 | fi |
| 16062 | |
| 16063 | rm -f conftest.err conftest.$ac_ext |
| 16064 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16065 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16066 | |
| 16067 | # So? What about this header? |
| 16068 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16069 | yes:no: ) |
| 16070 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16071 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16072 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16073 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16074 | ac_header_preproc=yes |
| 16075 | ;; |
| 16076 | no:yes:* ) |
| 16077 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16078 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16079 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16080 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16081 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16082 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16083 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16084 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16085 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16086 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16087 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16088 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16089 | ( cat <<\_ASBOX |
| 16090 | ## ----------------------------------- ## |
| 16091 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16092 | ## ----------------------------------- ## |
| 16093 | _ASBOX |
| 16094 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16095 | ;; |
| 16096 | esac |
| 16097 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16098 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16099 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16101 | else |
| 16102 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16103 | fi |
| 16104 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16105 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16106 | echo "${ECHO_T}$ac_res" >&6; } |
| 16107 | |
| 16108 | fi |
| 16109 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 16110 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16111 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 16112 | _ACEOF |
| 16113 | |
| 16114 | fi |
| 16115 | |
| 16116 | done |
| 16117 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16118 | |
| 16119 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 16120 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16121 | do |
| 16122 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16123 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16124 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16125 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16126 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16128 | fi |
| 16129 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16130 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16131 | echo "${ECHO_T}$ac_res" >&6; } |
| 16132 | else |
| 16133 | # Is the header compilable? |
| 16134 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16135 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16136 | cat >conftest.$ac_ext <<_ACEOF |
| 16137 | /* confdefs.h. */ |
| 16138 | _ACEOF |
| 16139 | cat confdefs.h >>conftest.$ac_ext |
| 16140 | cat >>conftest.$ac_ext <<_ACEOF |
| 16141 | /* end confdefs.h. */ |
| 16142 | $ac_includes_default |
| 16143 | #include <$ac_header> |
| 16144 | _ACEOF |
| 16145 | rm -f conftest.$ac_objext |
| 16146 | if { (ac_try="$ac_compile" |
| 16147 | case "(($ac_try" in |
| 16148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16149 | *) ac_try_echo=$ac_try;; |
| 16150 | esac |
| 16151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16152 | (eval "$ac_compile") 2>conftest.er1 |
| 16153 | ac_status=$? |
| 16154 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16155 | rm -f conftest.er1 |
| 16156 | cat conftest.err >&5 |
| 16157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16158 | (exit $ac_status); } && |
| 16159 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16160 | { (case "(($ac_try" in |
| 16161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16162 | *) ac_try_echo=$ac_try;; |
| 16163 | esac |
| 16164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16165 | (eval "$ac_try") 2>&5 |
| 16166 | ac_status=$? |
| 16167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16168 | (exit $ac_status); }; } && |
| 16169 | { ac_try='test -s conftest.$ac_objext' |
| 16170 | { (case "(($ac_try" in |
| 16171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16172 | *) ac_try_echo=$ac_try;; |
| 16173 | esac |
| 16174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16175 | (eval "$ac_try") 2>&5 |
| 16176 | ac_status=$? |
| 16177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16178 | (exit $ac_status); }; }; then |
| 16179 | ac_header_compiler=yes |
| 16180 | else |
| 16181 | echo "$as_me: failed program was:" >&5 |
| 16182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16183 | |
| 16184 | ac_header_compiler=no |
| 16185 | fi |
| 16186 | |
| 16187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16188 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16189 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16190 | |
| 16191 | # Is the header present? |
| 16192 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16193 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16194 | cat >conftest.$ac_ext <<_ACEOF |
| 16195 | /* confdefs.h. */ |
| 16196 | _ACEOF |
| 16197 | cat confdefs.h >>conftest.$ac_ext |
| 16198 | cat >>conftest.$ac_ext <<_ACEOF |
| 16199 | /* end confdefs.h. */ |
| 16200 | #include <$ac_header> |
| 16201 | _ACEOF |
| 16202 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16203 | case "(($ac_try" in |
| 16204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16205 | *) ac_try_echo=$ac_try;; |
| 16206 | esac |
| 16207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16208 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16209 | ac_status=$? |
| 16210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16211 | rm -f conftest.er1 |
| 16212 | cat conftest.err >&5 |
| 16213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16214 | (exit $ac_status); } >/dev/null; then |
| 16215 | if test -s conftest.err; then |
| 16216 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16217 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16218 | else |
| 16219 | ac_cpp_err= |
| 16220 | fi |
| 16221 | else |
| 16222 | ac_cpp_err=yes |
| 16223 | fi |
| 16224 | if test -z "$ac_cpp_err"; then |
| 16225 | ac_header_preproc=yes |
| 16226 | else |
| 16227 | echo "$as_me: failed program was:" >&5 |
| 16228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16229 | |
| 16230 | ac_header_preproc=no |
| 16231 | fi |
| 16232 | |
| 16233 | rm -f conftest.err conftest.$ac_ext |
| 16234 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16235 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16236 | |
| 16237 | # So? What about this header? |
| 16238 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16239 | yes:no: ) |
| 16240 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16241 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16242 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16243 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16244 | ac_header_preproc=yes |
| 16245 | ;; |
| 16246 | no:yes:* ) |
| 16247 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16248 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16249 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16250 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16251 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16252 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16253 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16254 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16255 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16256 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16257 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16258 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16259 | ( cat <<\_ASBOX |
| 16260 | ## ----------------------------------- ## |
| 16261 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16262 | ## ----------------------------------- ## |
| 16263 | _ASBOX |
| 16264 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16265 | ;; |
| 16266 | esac |
| 16267 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16268 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16269 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16271 | else |
| 16272 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16273 | fi |
| 16274 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16275 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16276 | echo "${ECHO_T}$ac_res" >&6; } |
| 16277 | |
| 16278 | fi |
| 16279 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16280 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16281 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16282 | _ACEOF |
| 16283 | |
| 16284 | fi |
| 16285 | |
| 16286 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 16287 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16288 | |
| 16289 | |
| 16290 | |
| 16291 | |
Daniel Dunbar | 3e46293 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 16292 | |
| 16293 | for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16294 | do |
| 16295 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16296 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16297 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16298 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16299 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16301 | fi |
| 16302 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16303 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16304 | echo "${ECHO_T}$ac_res" >&6; } |
| 16305 | else |
| 16306 | # Is the header compilable? |
| 16307 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16308 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16309 | cat >conftest.$ac_ext <<_ACEOF |
| 16310 | /* confdefs.h. */ |
| 16311 | _ACEOF |
| 16312 | cat confdefs.h >>conftest.$ac_ext |
| 16313 | cat >>conftest.$ac_ext <<_ACEOF |
| 16314 | /* end confdefs.h. */ |
| 16315 | $ac_includes_default |
| 16316 | #include <$ac_header> |
| 16317 | _ACEOF |
| 16318 | rm -f conftest.$ac_objext |
| 16319 | if { (ac_try="$ac_compile" |
| 16320 | case "(($ac_try" in |
| 16321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16322 | *) ac_try_echo=$ac_try;; |
| 16323 | esac |
| 16324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16325 | (eval "$ac_compile") 2>conftest.er1 |
| 16326 | ac_status=$? |
| 16327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16328 | rm -f conftest.er1 |
| 16329 | cat conftest.err >&5 |
| 16330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16331 | (exit $ac_status); } && |
| 16332 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16333 | { (case "(($ac_try" in |
| 16334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16335 | *) ac_try_echo=$ac_try;; |
| 16336 | esac |
| 16337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16338 | (eval "$ac_try") 2>&5 |
| 16339 | ac_status=$? |
| 16340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16341 | (exit $ac_status); }; } && |
| 16342 | { ac_try='test -s conftest.$ac_objext' |
| 16343 | { (case "(($ac_try" in |
| 16344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16345 | *) ac_try_echo=$ac_try;; |
| 16346 | esac |
| 16347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16348 | (eval "$ac_try") 2>&5 |
| 16349 | ac_status=$? |
| 16350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16351 | (exit $ac_status); }; }; then |
| 16352 | ac_header_compiler=yes |
| 16353 | else |
| 16354 | echo "$as_me: failed program was:" >&5 |
| 16355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16356 | |
| 16357 | ac_header_compiler=no |
| 16358 | fi |
| 16359 | |
| 16360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16361 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16362 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16363 | |
| 16364 | # Is the header present? |
| 16365 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16366 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16367 | cat >conftest.$ac_ext <<_ACEOF |
| 16368 | /* confdefs.h. */ |
| 16369 | _ACEOF |
| 16370 | cat confdefs.h >>conftest.$ac_ext |
| 16371 | cat >>conftest.$ac_ext <<_ACEOF |
| 16372 | /* end confdefs.h. */ |
| 16373 | #include <$ac_header> |
| 16374 | _ACEOF |
| 16375 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16376 | case "(($ac_try" in |
| 16377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16378 | *) ac_try_echo=$ac_try;; |
| 16379 | esac |
| 16380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16381 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16382 | ac_status=$? |
| 16383 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16384 | rm -f conftest.er1 |
| 16385 | cat conftest.err >&5 |
| 16386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16387 | (exit $ac_status); } >/dev/null; then |
| 16388 | if test -s conftest.err; then |
| 16389 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16390 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16391 | else |
| 16392 | ac_cpp_err= |
| 16393 | fi |
| 16394 | else |
| 16395 | ac_cpp_err=yes |
| 16396 | fi |
| 16397 | if test -z "$ac_cpp_err"; then |
| 16398 | ac_header_preproc=yes |
| 16399 | else |
| 16400 | echo "$as_me: failed program was:" >&5 |
| 16401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16402 | |
| 16403 | ac_header_preproc=no |
| 16404 | fi |
| 16405 | |
| 16406 | rm -f conftest.err conftest.$ac_ext |
| 16407 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16408 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16409 | |
| 16410 | # So? What about this header? |
| 16411 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16412 | yes:no: ) |
| 16413 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16414 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16415 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16416 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16417 | ac_header_preproc=yes |
| 16418 | ;; |
| 16419 | no:yes:* ) |
| 16420 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16421 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16422 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16423 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16424 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16425 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16426 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16427 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16428 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16429 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16430 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16431 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16432 | ( cat <<\_ASBOX |
| 16433 | ## ----------------------------------- ## |
| 16434 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16435 | ## ----------------------------------- ## |
| 16436 | _ASBOX |
| 16437 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16438 | ;; |
| 16439 | esac |
| 16440 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16441 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16442 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16444 | else |
| 16445 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16446 | fi |
| 16447 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16448 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16449 | echo "${ECHO_T}$ac_res" >&6; } |
| 16450 | |
| 16451 | fi |
| 16452 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16453 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16454 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16455 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16456 | |
| 16457 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16458 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16459 | done |
| 16460 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16461 | |
| 16462 | |
| 16463 | |
| 16464 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 16465 | 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] | 16466 | do |
| 16467 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16468 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16469 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16470 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16471 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16473 | fi |
| 16474 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16475 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16476 | echo "${ECHO_T}$ac_res" >&6; } |
| 16477 | else |
| 16478 | # Is the header compilable? |
| 16479 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16480 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16481 | cat >conftest.$ac_ext <<_ACEOF |
| 16482 | /* confdefs.h. */ |
| 16483 | _ACEOF |
| 16484 | cat confdefs.h >>conftest.$ac_ext |
| 16485 | cat >>conftest.$ac_ext <<_ACEOF |
| 16486 | /* end confdefs.h. */ |
| 16487 | $ac_includes_default |
| 16488 | #include <$ac_header> |
| 16489 | _ACEOF |
| 16490 | rm -f conftest.$ac_objext |
| 16491 | if { (ac_try="$ac_compile" |
| 16492 | case "(($ac_try" in |
| 16493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16494 | *) ac_try_echo=$ac_try;; |
| 16495 | esac |
| 16496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16497 | (eval "$ac_compile") 2>conftest.er1 |
| 16498 | ac_status=$? |
| 16499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16500 | rm -f conftest.er1 |
| 16501 | cat conftest.err >&5 |
| 16502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16503 | (exit $ac_status); } && |
| 16504 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16505 | { (case "(($ac_try" in |
| 16506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16507 | *) ac_try_echo=$ac_try;; |
| 16508 | esac |
| 16509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16510 | (eval "$ac_try") 2>&5 |
| 16511 | ac_status=$? |
| 16512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16513 | (exit $ac_status); }; } && |
| 16514 | { ac_try='test -s conftest.$ac_objext' |
| 16515 | { (case "(($ac_try" in |
| 16516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16517 | *) ac_try_echo=$ac_try;; |
| 16518 | esac |
| 16519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16520 | (eval "$ac_try") 2>&5 |
| 16521 | ac_status=$? |
| 16522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16523 | (exit $ac_status); }; }; then |
| 16524 | ac_header_compiler=yes |
| 16525 | else |
| 16526 | echo "$as_me: failed program was:" >&5 |
| 16527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16528 | |
| 16529 | ac_header_compiler=no |
| 16530 | fi |
| 16531 | |
| 16532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16533 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16534 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16535 | |
| 16536 | # Is the header present? |
| 16537 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16538 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16539 | cat >conftest.$ac_ext <<_ACEOF |
| 16540 | /* confdefs.h. */ |
| 16541 | _ACEOF |
| 16542 | cat confdefs.h >>conftest.$ac_ext |
| 16543 | cat >>conftest.$ac_ext <<_ACEOF |
| 16544 | /* end confdefs.h. */ |
| 16545 | #include <$ac_header> |
| 16546 | _ACEOF |
| 16547 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16548 | case "(($ac_try" in |
| 16549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16550 | *) ac_try_echo=$ac_try;; |
| 16551 | esac |
| 16552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16553 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16554 | ac_status=$? |
| 16555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16556 | rm -f conftest.er1 |
| 16557 | cat conftest.err >&5 |
| 16558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16559 | (exit $ac_status); } >/dev/null; then |
| 16560 | if test -s conftest.err; then |
| 16561 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16562 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16563 | else |
| 16564 | ac_cpp_err= |
| 16565 | fi |
| 16566 | else |
| 16567 | ac_cpp_err=yes |
| 16568 | fi |
| 16569 | if test -z "$ac_cpp_err"; then |
| 16570 | ac_header_preproc=yes |
| 16571 | else |
| 16572 | echo "$as_me: failed program was:" >&5 |
| 16573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16574 | |
| 16575 | ac_header_preproc=no |
| 16576 | fi |
| 16577 | |
| 16578 | rm -f conftest.err conftest.$ac_ext |
| 16579 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16580 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16581 | |
| 16582 | # So? What about this header? |
| 16583 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16584 | yes:no: ) |
| 16585 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16586 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16587 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16588 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16589 | ac_header_preproc=yes |
| 16590 | ;; |
| 16591 | no:yes:* ) |
| 16592 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16593 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16594 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16595 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16596 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16597 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16598 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16599 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16600 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16601 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16602 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16603 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16604 | ( cat <<\_ASBOX |
| 16605 | ## ----------------------------------- ## |
| 16606 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16607 | ## ----------------------------------- ## |
| 16608 | _ASBOX |
| 16609 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16610 | ;; |
| 16611 | esac |
| 16612 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16613 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16614 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16616 | else |
| 16617 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16618 | fi |
| 16619 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16620 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16621 | echo "${ECHO_T}$ac_res" >&6; } |
| 16622 | |
| 16623 | fi |
| 16624 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16625 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16626 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16627 | _ACEOF |
| 16628 | |
| 16629 | fi |
| 16630 | |
| 16631 | done |
| 16632 | |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 16633 | |
| 16634 | for ac_header in valgrind/valgrind.h |
| 16635 | do |
| 16636 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16637 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16638 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16639 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16640 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16642 | fi |
| 16643 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16644 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16645 | echo "${ECHO_T}$ac_res" >&6; } |
| 16646 | else |
| 16647 | # Is the header compilable? |
| 16648 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16649 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16650 | cat >conftest.$ac_ext <<_ACEOF |
| 16651 | /* confdefs.h. */ |
| 16652 | _ACEOF |
| 16653 | cat confdefs.h >>conftest.$ac_ext |
| 16654 | cat >>conftest.$ac_ext <<_ACEOF |
| 16655 | /* end confdefs.h. */ |
| 16656 | $ac_includes_default |
| 16657 | #include <$ac_header> |
| 16658 | _ACEOF |
| 16659 | rm -f conftest.$ac_objext |
| 16660 | if { (ac_try="$ac_compile" |
| 16661 | case "(($ac_try" in |
| 16662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16663 | *) ac_try_echo=$ac_try;; |
| 16664 | esac |
| 16665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16666 | (eval "$ac_compile") 2>conftest.er1 |
| 16667 | ac_status=$? |
| 16668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16669 | rm -f conftest.er1 |
| 16670 | cat conftest.err >&5 |
| 16671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16672 | (exit $ac_status); } && |
| 16673 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16674 | { (case "(($ac_try" in |
| 16675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16676 | *) ac_try_echo=$ac_try;; |
| 16677 | esac |
| 16678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16679 | (eval "$ac_try") 2>&5 |
| 16680 | ac_status=$? |
| 16681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16682 | (exit $ac_status); }; } && |
| 16683 | { ac_try='test -s conftest.$ac_objext' |
| 16684 | { (case "(($ac_try" in |
| 16685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16686 | *) ac_try_echo=$ac_try;; |
| 16687 | esac |
| 16688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16689 | (eval "$ac_try") 2>&5 |
| 16690 | ac_status=$? |
| 16691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16692 | (exit $ac_status); }; }; then |
| 16693 | ac_header_compiler=yes |
| 16694 | else |
| 16695 | echo "$as_me: failed program was:" >&5 |
| 16696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16697 | |
| 16698 | ac_header_compiler=no |
| 16699 | fi |
| 16700 | |
| 16701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16702 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16703 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16704 | |
| 16705 | # Is the header present? |
| 16706 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16707 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16708 | cat >conftest.$ac_ext <<_ACEOF |
| 16709 | /* confdefs.h. */ |
| 16710 | _ACEOF |
| 16711 | cat confdefs.h >>conftest.$ac_ext |
| 16712 | cat >>conftest.$ac_ext <<_ACEOF |
| 16713 | /* end confdefs.h. */ |
| 16714 | #include <$ac_header> |
| 16715 | _ACEOF |
| 16716 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16717 | case "(($ac_try" in |
| 16718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16719 | *) ac_try_echo=$ac_try;; |
| 16720 | esac |
| 16721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16722 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16723 | ac_status=$? |
| 16724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16725 | rm -f conftest.er1 |
| 16726 | cat conftest.err >&5 |
| 16727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16728 | (exit $ac_status); } >/dev/null; then |
| 16729 | if test -s conftest.err; then |
| 16730 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16731 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16732 | else |
| 16733 | ac_cpp_err= |
| 16734 | fi |
| 16735 | else |
| 16736 | ac_cpp_err=yes |
| 16737 | fi |
| 16738 | if test -z "$ac_cpp_err"; then |
| 16739 | ac_header_preproc=yes |
| 16740 | else |
| 16741 | echo "$as_me: failed program was:" >&5 |
| 16742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16743 | |
| 16744 | ac_header_preproc=no |
| 16745 | fi |
| 16746 | |
| 16747 | rm -f conftest.err conftest.$ac_ext |
| 16748 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16749 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16750 | |
| 16751 | # So? What about this header? |
| 16752 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16753 | yes:no: ) |
| 16754 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16755 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16756 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16757 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16758 | ac_header_preproc=yes |
| 16759 | ;; |
| 16760 | no:yes:* ) |
| 16761 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16762 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16763 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16764 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16765 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16766 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16767 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16768 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16769 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16770 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16771 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16772 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16773 | ( cat <<\_ASBOX |
| 16774 | ## ----------------------------------- ## |
| 16775 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16776 | ## ----------------------------------- ## |
| 16777 | _ASBOX |
| 16778 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16779 | ;; |
| 16780 | esac |
| 16781 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16782 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16783 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16785 | else |
| 16786 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16787 | fi |
| 16788 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16789 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16790 | echo "${ECHO_T}$ac_res" >&6; } |
| 16791 | |
| 16792 | fi |
| 16793 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16794 | cat >>confdefs.h <<_ACEOF |
| 16795 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16796 | _ACEOF |
| 16797 | |
| 16798 | fi |
| 16799 | |
| 16800 | done |
| 16801 | |
Dan Gohman | c6ce9d6 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 16802 | |
| 16803 | for ac_header in fenv.h |
| 16804 | do |
| 16805 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16806 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16807 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16808 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16809 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16811 | fi |
| 16812 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16813 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16814 | echo "${ECHO_T}$ac_res" >&6; } |
| 16815 | else |
| 16816 | # Is the header compilable? |
| 16817 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16818 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16819 | cat >conftest.$ac_ext <<_ACEOF |
| 16820 | /* confdefs.h. */ |
| 16821 | _ACEOF |
| 16822 | cat confdefs.h >>conftest.$ac_ext |
| 16823 | cat >>conftest.$ac_ext <<_ACEOF |
| 16824 | /* end confdefs.h. */ |
| 16825 | $ac_includes_default |
| 16826 | #include <$ac_header> |
| 16827 | _ACEOF |
| 16828 | rm -f conftest.$ac_objext |
| 16829 | if { (ac_try="$ac_compile" |
| 16830 | case "(($ac_try" in |
| 16831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16832 | *) ac_try_echo=$ac_try;; |
| 16833 | esac |
| 16834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16835 | (eval "$ac_compile") 2>conftest.er1 |
| 16836 | ac_status=$? |
| 16837 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16838 | rm -f conftest.er1 |
| 16839 | cat conftest.err >&5 |
| 16840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16841 | (exit $ac_status); } && |
| 16842 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16843 | { (case "(($ac_try" in |
| 16844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16845 | *) ac_try_echo=$ac_try;; |
| 16846 | esac |
| 16847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16848 | (eval "$ac_try") 2>&5 |
| 16849 | ac_status=$? |
| 16850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16851 | (exit $ac_status); }; } && |
| 16852 | { ac_try='test -s conftest.$ac_objext' |
| 16853 | { (case "(($ac_try" in |
| 16854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16855 | *) ac_try_echo=$ac_try;; |
| 16856 | esac |
| 16857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16858 | (eval "$ac_try") 2>&5 |
| 16859 | ac_status=$? |
| 16860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16861 | (exit $ac_status); }; }; then |
| 16862 | ac_header_compiler=yes |
| 16863 | else |
| 16864 | echo "$as_me: failed program was:" >&5 |
| 16865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16866 | |
| 16867 | ac_header_compiler=no |
| 16868 | fi |
| 16869 | |
| 16870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16871 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16872 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16873 | |
| 16874 | # Is the header present? |
| 16875 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16876 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16877 | cat >conftest.$ac_ext <<_ACEOF |
| 16878 | /* confdefs.h. */ |
| 16879 | _ACEOF |
| 16880 | cat confdefs.h >>conftest.$ac_ext |
| 16881 | cat >>conftest.$ac_ext <<_ACEOF |
| 16882 | /* end confdefs.h. */ |
| 16883 | #include <$ac_header> |
| 16884 | _ACEOF |
| 16885 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16886 | case "(($ac_try" in |
| 16887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16888 | *) ac_try_echo=$ac_try;; |
| 16889 | esac |
| 16890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16891 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16892 | ac_status=$? |
| 16893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16894 | rm -f conftest.er1 |
| 16895 | cat conftest.err >&5 |
| 16896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16897 | (exit $ac_status); } >/dev/null; then |
| 16898 | if test -s conftest.err; then |
| 16899 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16900 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16901 | else |
| 16902 | ac_cpp_err= |
| 16903 | fi |
| 16904 | else |
| 16905 | ac_cpp_err=yes |
| 16906 | fi |
| 16907 | if test -z "$ac_cpp_err"; then |
| 16908 | ac_header_preproc=yes |
| 16909 | else |
| 16910 | echo "$as_me: failed program was:" >&5 |
| 16911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16912 | |
| 16913 | ac_header_preproc=no |
| 16914 | fi |
| 16915 | |
| 16916 | rm -f conftest.err conftest.$ac_ext |
| 16917 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16918 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16919 | |
| 16920 | # So? What about this header? |
| 16921 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16922 | yes:no: ) |
| 16923 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16924 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16925 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16926 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16927 | ac_header_preproc=yes |
| 16928 | ;; |
| 16929 | no:yes:* ) |
| 16930 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16931 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16932 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16933 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16934 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16935 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16936 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16937 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16938 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16939 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16940 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16941 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16942 | ( cat <<\_ASBOX |
| 16943 | ## ----------------------------------- ## |
| 16944 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16945 | ## ----------------------------------- ## |
| 16946 | _ASBOX |
| 16947 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16948 | ;; |
| 16949 | esac |
| 16950 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16951 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16952 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16954 | else |
| 16955 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16956 | fi |
| 16957 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16958 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16959 | echo "${ECHO_T}$ac_res" >&6; } |
| 16960 | |
| 16961 | fi |
| 16962 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16963 | cat >>confdefs.h <<_ACEOF |
| 16964 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16965 | _ACEOF |
| 16966 | |
| 16967 | fi |
| 16968 | |
| 16969 | done |
| 16970 | |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 16971 | if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16972 | |
| 16973 | for ac_header in pthread.h |
| 16974 | do |
| 16975 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16976 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16977 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16978 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16979 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16981 | fi |
| 16982 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16983 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16984 | echo "${ECHO_T}$ac_res" >&6; } |
| 16985 | else |
| 16986 | # Is the header compilable? |
| 16987 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16988 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16989 | cat >conftest.$ac_ext <<_ACEOF |
| 16990 | /* confdefs.h. */ |
| 16991 | _ACEOF |
| 16992 | cat confdefs.h >>conftest.$ac_ext |
| 16993 | cat >>conftest.$ac_ext <<_ACEOF |
| 16994 | /* end confdefs.h. */ |
| 16995 | $ac_includes_default |
| 16996 | #include <$ac_header> |
| 16997 | _ACEOF |
| 16998 | rm -f conftest.$ac_objext |
| 16999 | if { (ac_try="$ac_compile" |
| 17000 | case "(($ac_try" in |
| 17001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17002 | *) ac_try_echo=$ac_try;; |
| 17003 | esac |
| 17004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17005 | (eval "$ac_compile") 2>conftest.er1 |
| 17006 | ac_status=$? |
| 17007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17008 | rm -f conftest.er1 |
| 17009 | cat conftest.err >&5 |
| 17010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17011 | (exit $ac_status); } && |
| 17012 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17013 | { (case "(($ac_try" in |
| 17014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17015 | *) ac_try_echo=$ac_try;; |
| 17016 | esac |
| 17017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17018 | (eval "$ac_try") 2>&5 |
| 17019 | ac_status=$? |
| 17020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17021 | (exit $ac_status); }; } && |
| 17022 | { ac_try='test -s conftest.$ac_objext' |
| 17023 | { (case "(($ac_try" in |
| 17024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17025 | *) ac_try_echo=$ac_try;; |
| 17026 | esac |
| 17027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17028 | (eval "$ac_try") 2>&5 |
| 17029 | ac_status=$? |
| 17030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17031 | (exit $ac_status); }; }; then |
| 17032 | ac_header_compiler=yes |
| 17033 | else |
| 17034 | echo "$as_me: failed program was:" >&5 |
| 17035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17036 | |
| 17037 | ac_header_compiler=no |
| 17038 | fi |
| 17039 | |
| 17040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17041 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17042 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17043 | |
| 17044 | # Is the header present? |
| 17045 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 17046 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 17047 | cat >conftest.$ac_ext <<_ACEOF |
| 17048 | /* confdefs.h. */ |
| 17049 | _ACEOF |
| 17050 | cat confdefs.h >>conftest.$ac_ext |
| 17051 | cat >>conftest.$ac_ext <<_ACEOF |
| 17052 | /* end confdefs.h. */ |
| 17053 | #include <$ac_header> |
| 17054 | _ACEOF |
| 17055 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17056 | case "(($ac_try" in |
| 17057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17058 | *) ac_try_echo=$ac_try;; |
| 17059 | esac |
| 17060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17061 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17062 | ac_status=$? |
| 17063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17064 | rm -f conftest.er1 |
| 17065 | cat conftest.err >&5 |
| 17066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17067 | (exit $ac_status); } >/dev/null; then |
| 17068 | if test -s conftest.err; then |
| 17069 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17070 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 17071 | else |
| 17072 | ac_cpp_err= |
| 17073 | fi |
| 17074 | else |
| 17075 | ac_cpp_err=yes |
| 17076 | fi |
| 17077 | if test -z "$ac_cpp_err"; then |
| 17078 | ac_header_preproc=yes |
| 17079 | else |
| 17080 | echo "$as_me: failed program was:" >&5 |
| 17081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17082 | |
| 17083 | ac_header_preproc=no |
| 17084 | fi |
| 17085 | |
| 17086 | rm -f conftest.err conftest.$ac_ext |
| 17087 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17088 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17089 | |
| 17090 | # So? What about this header? |
| 17091 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17092 | yes:no: ) |
| 17093 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17094 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17095 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17096 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 17097 | ac_header_preproc=yes |
| 17098 | ;; |
| 17099 | no:yes:* ) |
| 17100 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17101 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17102 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17103 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17104 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17105 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17106 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17107 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17108 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17109 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17110 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17111 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17112 | ( cat <<\_ASBOX |
| 17113 | ## ----------------------------------- ## |
| 17114 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 17115 | ## ----------------------------------- ## |
| 17116 | _ASBOX |
| 17117 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17118 | ;; |
| 17119 | esac |
| 17120 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17121 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17122 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17124 | else |
| 17125 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17126 | fi |
| 17127 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17128 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17129 | echo "${ECHO_T}$ac_res" >&6; } |
| 17130 | |
| 17131 | fi |
| 17132 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 17133 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17134 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 17135 | _ACEOF |
| 17136 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 17137 | |
| 17138 | else |
| 17139 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 17140 | |
| 17141 | fi |
| 17142 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 17143 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 17144 | |
| 17145 | else |
| 17146 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 17147 | |
| 17148 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 17149 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 17150 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17151 | |
| 17152 | |
| 17153 | for ac_header in ffi.h ffi/ffi.h |
| 17154 | do |
| 17155 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17156 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17157 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17158 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17159 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17161 | fi |
| 17162 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17163 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17164 | echo "${ECHO_T}$ac_res" >&6; } |
| 17165 | else |
| 17166 | # Is the header compilable? |
| 17167 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 17168 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 17169 | cat >conftest.$ac_ext <<_ACEOF |
| 17170 | /* confdefs.h. */ |
| 17171 | _ACEOF |
| 17172 | cat confdefs.h >>conftest.$ac_ext |
| 17173 | cat >>conftest.$ac_ext <<_ACEOF |
| 17174 | /* end confdefs.h. */ |
| 17175 | $ac_includes_default |
| 17176 | #include <$ac_header> |
| 17177 | _ACEOF |
| 17178 | rm -f conftest.$ac_objext |
| 17179 | if { (ac_try="$ac_compile" |
| 17180 | case "(($ac_try" in |
| 17181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17182 | *) ac_try_echo=$ac_try;; |
| 17183 | esac |
| 17184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17185 | (eval "$ac_compile") 2>conftest.er1 |
| 17186 | ac_status=$? |
| 17187 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17188 | rm -f conftest.er1 |
| 17189 | cat conftest.err >&5 |
| 17190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17191 | (exit $ac_status); } && |
| 17192 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17193 | { (case "(($ac_try" in |
| 17194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17195 | *) ac_try_echo=$ac_try;; |
| 17196 | esac |
| 17197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17198 | (eval "$ac_try") 2>&5 |
| 17199 | ac_status=$? |
| 17200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17201 | (exit $ac_status); }; } && |
| 17202 | { ac_try='test -s conftest.$ac_objext' |
| 17203 | { (case "(($ac_try" in |
| 17204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17205 | *) ac_try_echo=$ac_try;; |
| 17206 | esac |
| 17207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17208 | (eval "$ac_try") 2>&5 |
| 17209 | ac_status=$? |
| 17210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17211 | (exit $ac_status); }; }; then |
| 17212 | ac_header_compiler=yes |
| 17213 | else |
| 17214 | echo "$as_me: failed program was:" >&5 |
| 17215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17216 | |
| 17217 | ac_header_compiler=no |
| 17218 | fi |
| 17219 | |
| 17220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17221 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17222 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17223 | |
| 17224 | # Is the header present? |
| 17225 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 17226 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 17227 | cat >conftest.$ac_ext <<_ACEOF |
| 17228 | /* confdefs.h. */ |
| 17229 | _ACEOF |
| 17230 | cat confdefs.h >>conftest.$ac_ext |
| 17231 | cat >>conftest.$ac_ext <<_ACEOF |
| 17232 | /* end confdefs.h. */ |
| 17233 | #include <$ac_header> |
| 17234 | _ACEOF |
| 17235 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17236 | case "(($ac_try" in |
| 17237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17238 | *) ac_try_echo=$ac_try;; |
| 17239 | esac |
| 17240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17241 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17242 | ac_status=$? |
| 17243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17244 | rm -f conftest.er1 |
| 17245 | cat conftest.err >&5 |
| 17246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17247 | (exit $ac_status); } >/dev/null; then |
| 17248 | if test -s conftest.err; then |
| 17249 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17250 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 17251 | else |
| 17252 | ac_cpp_err= |
| 17253 | fi |
| 17254 | else |
| 17255 | ac_cpp_err=yes |
| 17256 | fi |
| 17257 | if test -z "$ac_cpp_err"; then |
| 17258 | ac_header_preproc=yes |
| 17259 | else |
| 17260 | echo "$as_me: failed program was:" >&5 |
| 17261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17262 | |
| 17263 | ac_header_preproc=no |
| 17264 | fi |
| 17265 | |
| 17266 | rm -f conftest.err conftest.$ac_ext |
| 17267 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17268 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17269 | |
| 17270 | # So? What about this header? |
| 17271 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17272 | yes:no: ) |
| 17273 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17274 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17275 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17276 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 17277 | ac_header_preproc=yes |
| 17278 | ;; |
| 17279 | no:yes:* ) |
| 17280 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17281 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17282 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17283 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17284 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17285 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17286 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17287 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17288 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17289 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17290 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17291 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17292 | ( cat <<\_ASBOX |
| 17293 | ## ----------------------------------- ## |
| 17294 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 17295 | ## ----------------------------------- ## |
| 17296 | _ASBOX |
| 17297 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17298 | ;; |
| 17299 | esac |
| 17300 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17301 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17302 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17304 | else |
| 17305 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17306 | fi |
| 17307 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17308 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17309 | echo "${ECHO_T}$ac_res" >&6; } |
| 17310 | |
| 17311 | fi |
| 17312 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 17313 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17314 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 17315 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 17316 | |
| 17317 | fi |
| 17318 | |
| 17319 | done |
| 17320 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 17321 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 17322 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 17323 | |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 17324 | for ac_header in CrashReporterClient.h |
| 17325 | do |
| 17326 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17327 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17328 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17329 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17330 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17332 | fi |
| 17333 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17334 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17335 | echo "${ECHO_T}$ac_res" >&6; } |
| 17336 | else |
| 17337 | # Is the header compilable? |
| 17338 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 17339 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 17340 | cat >conftest.$ac_ext <<_ACEOF |
| 17341 | /* confdefs.h. */ |
| 17342 | _ACEOF |
| 17343 | cat confdefs.h >>conftest.$ac_ext |
| 17344 | cat >>conftest.$ac_ext <<_ACEOF |
| 17345 | /* end confdefs.h. */ |
| 17346 | $ac_includes_default |
| 17347 | #include <$ac_header> |
| 17348 | _ACEOF |
| 17349 | rm -f conftest.$ac_objext |
| 17350 | if { (ac_try="$ac_compile" |
| 17351 | case "(($ac_try" in |
| 17352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17353 | *) ac_try_echo=$ac_try;; |
| 17354 | esac |
| 17355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17356 | (eval "$ac_compile") 2>conftest.er1 |
| 17357 | ac_status=$? |
| 17358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17359 | rm -f conftest.er1 |
| 17360 | cat conftest.err >&5 |
| 17361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17362 | (exit $ac_status); } && |
| 17363 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17364 | { (case "(($ac_try" in |
| 17365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17366 | *) ac_try_echo=$ac_try;; |
| 17367 | esac |
| 17368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17369 | (eval "$ac_try") 2>&5 |
| 17370 | ac_status=$? |
| 17371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17372 | (exit $ac_status); }; } && |
| 17373 | { ac_try='test -s conftest.$ac_objext' |
| 17374 | { (case "(($ac_try" in |
| 17375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17376 | *) ac_try_echo=$ac_try;; |
| 17377 | esac |
| 17378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17379 | (eval "$ac_try") 2>&5 |
| 17380 | ac_status=$? |
| 17381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17382 | (exit $ac_status); }; }; then |
| 17383 | ac_header_compiler=yes |
| 17384 | else |
| 17385 | echo "$as_me: failed program was:" >&5 |
| 17386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17387 | |
| 17388 | ac_header_compiler=no |
| 17389 | fi |
| 17390 | |
| 17391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17392 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17393 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17394 | |
| 17395 | # Is the header present? |
| 17396 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 17397 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 17398 | cat >conftest.$ac_ext <<_ACEOF |
| 17399 | /* confdefs.h. */ |
| 17400 | _ACEOF |
| 17401 | cat confdefs.h >>conftest.$ac_ext |
| 17402 | cat >>conftest.$ac_ext <<_ACEOF |
| 17403 | /* end confdefs.h. */ |
| 17404 | #include <$ac_header> |
| 17405 | _ACEOF |
| 17406 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17407 | case "(($ac_try" in |
| 17408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17409 | *) ac_try_echo=$ac_try;; |
| 17410 | esac |
| 17411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17412 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17413 | ac_status=$? |
| 17414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17415 | rm -f conftest.er1 |
| 17416 | cat conftest.err >&5 |
| 17417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17418 | (exit $ac_status); } >/dev/null; then |
| 17419 | if test -s conftest.err; then |
| 17420 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17421 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 17422 | else |
| 17423 | ac_cpp_err= |
| 17424 | fi |
| 17425 | else |
| 17426 | ac_cpp_err=yes |
| 17427 | fi |
| 17428 | if test -z "$ac_cpp_err"; then |
| 17429 | ac_header_preproc=yes |
| 17430 | else |
| 17431 | echo "$as_me: failed program was:" >&5 |
| 17432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17433 | |
| 17434 | ac_header_preproc=no |
| 17435 | fi |
| 17436 | |
| 17437 | rm -f conftest.err conftest.$ac_ext |
| 17438 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17439 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17440 | |
| 17441 | # So? What about this header? |
| 17442 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17443 | yes:no: ) |
| 17444 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17445 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17446 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17447 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 17448 | ac_header_preproc=yes |
| 17449 | ;; |
| 17450 | no:yes:* ) |
| 17451 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17452 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17453 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17454 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17455 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17456 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17457 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17458 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17459 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17460 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17461 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17462 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17463 | ( cat <<\_ASBOX |
| 17464 | ## ----------------------------------- ## |
| 17465 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 17466 | ## ----------------------------------- ## |
| 17467 | _ASBOX |
| 17468 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17469 | ;; |
| 17470 | esac |
| 17471 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17472 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17473 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17475 | else |
| 17476 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17477 | fi |
| 17478 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17479 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17480 | echo "${ECHO_T}$ac_res" >&6; } |
| 17481 | |
| 17482 | fi |
| 17483 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 17484 | cat >>confdefs.h <<_ACEOF |
| 17485 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17486 | _ACEOF |
| 17487 | |
| 17488 | fi |
| 17489 | |
| 17490 | done |
| 17491 | |
| 17492 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 17493 | { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 |
| 17494 | echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 17495 | cat >conftest.$ac_ext <<_ACEOF |
| 17496 | /* confdefs.h. */ |
| 17497 | _ACEOF |
| 17498 | cat confdefs.h >>conftest.$ac_ext |
| 17499 | cat >>conftest.$ac_ext <<_ACEOF |
| 17500 | /* end confdefs.h. */ |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 17501 | extern const char *__crashreporter_info__; |
| 17502 | int main() { |
| 17503 | __crashreporter_info__ = "test"; |
| 17504 | return 0; |
| 17505 | } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 17506 | |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 17507 | _ACEOF |
| 17508 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17509 | if { (ac_try="$ac_link" |
| 17510 | case "(($ac_try" in |
| 17511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17512 | *) ac_try_echo=$ac_try;; |
| 17513 | esac |
| 17514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17515 | (eval "$ac_link") 2>conftest.er1 |
| 17516 | ac_status=$? |
| 17517 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17518 | rm -f conftest.er1 |
| 17519 | cat conftest.err >&5 |
| 17520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17521 | (exit $ac_status); } && |
| 17522 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17523 | { (case "(($ac_try" in |
| 17524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17525 | *) ac_try_echo=$ac_try;; |
| 17526 | esac |
| 17527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17528 | (eval "$ac_try") 2>&5 |
| 17529 | ac_status=$? |
| 17530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17531 | (exit $ac_status); }; } && |
| 17532 | { ac_try='test -s conftest$ac_exeext' |
| 17533 | { (case "(($ac_try" in |
| 17534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17535 | *) ac_try_echo=$ac_try;; |
| 17536 | esac |
| 17537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17538 | (eval "$ac_try") 2>&5 |
| 17539 | ac_status=$? |
| 17540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17541 | (exit $ac_status); }; }; then |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 17542 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17543 | echo "${ECHO_T}yes" >&6; } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 17544 | |
| 17545 | cat >>confdefs.h <<\_ACEOF |
| 17546 | #define HAVE_CRASHREPORTER_INFO 1 |
| 17547 | _ACEOF |
| 17548 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 17549 | else |
| 17550 | echo "$as_me: failed program was:" >&5 |
| 17551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17552 | |
| 17553 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17554 | echo "${ECHO_T}no" >&6; } |
| 17555 | |
| 17556 | cat >>confdefs.h <<\_ACEOF |
| 17557 | #define HAVE_CRASHREPORTER_INFO 0 |
| 17558 | _ACEOF |
| 17559 | |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 17560 | fi |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 17561 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 17562 | rm -f core conftest.err conftest.$ac_objext \ |
| 17563 | conftest$ac_exeext conftest.$ac_ext |
| 17564 | |
| 17565 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 17566 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17567 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17568 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 17569 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 17570 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 17571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17572 | else |
| 17573 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 17574 | ac_ext=cpp |
| 17575 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17576 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17577 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17578 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17579 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 17580 | ac_save_CXXFLAGS=$CXXFLAGS |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 17581 | CXXFLAGS=-pedantic |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17582 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17583 | ac_cv_huge_val_sanity=yes |
| 17584 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17585 | cat >conftest.$ac_ext <<_ACEOF |
| 17586 | /* confdefs.h. */ |
| 17587 | _ACEOF |
| 17588 | cat confdefs.h >>conftest.$ac_ext |
| 17589 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17590 | /* end confdefs.h. */ |
| 17591 | #include <math.h> |
| 17592 | int |
| 17593 | main () |
| 17594 | { |
| 17595 | double x = HUGE_VAL; return x != x; |
| 17596 | ; |
| 17597 | return 0; |
| 17598 | } |
| 17599 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17600 | rm -f conftest$ac_exeext |
| 17601 | if { (ac_try="$ac_link" |
| 17602 | case "(($ac_try" in |
| 17603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17604 | *) ac_try_echo=$ac_try;; |
| 17605 | esac |
| 17606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17607 | (eval "$ac_link") 2>&5 |
| 17608 | ac_status=$? |
| 17609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17610 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17611 | { (case "(($ac_try" in |
| 17612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17613 | *) ac_try_echo=$ac_try;; |
| 17614 | esac |
| 17615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17616 | (eval "$ac_try") 2>&5 |
| 17617 | ac_status=$? |
| 17618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17619 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17620 | ac_cv_huge_val_sanity=yes |
| 17621 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17622 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17623 | echo "$as_me: failed program was:" >&5 |
| 17624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17625 | |
| 17626 | ( exit $ac_status ) |
| 17627 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17628 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17629 | 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] | 17630 | fi |
| 17631 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17632 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 17633 | CXXFLAGS=$ac_save_CXXFLAGS |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17634 | ac_ext=c |
| 17635 | ac_cpp='$CPP $CPPFLAGS' |
| 17636 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17637 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17638 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17639 | |
| 17640 | |
| 17641 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17642 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 17643 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17644 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 17645 | |
| 17646 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17647 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 17648 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 17649 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 17650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17651 | else |
| 17652 | cat >conftest.$ac_ext <<_ACEOF |
| 17653 | /* confdefs.h. */ |
| 17654 | _ACEOF |
| 17655 | cat confdefs.h >>conftest.$ac_ext |
| 17656 | cat >>conftest.$ac_ext <<_ACEOF |
| 17657 | /* end confdefs.h. */ |
| 17658 | $ac_includes_default |
| 17659 | typedef pid_t ac__type_new_; |
| 17660 | int |
| 17661 | main () |
| 17662 | { |
| 17663 | if ((ac__type_new_ *) 0) |
| 17664 | return 0; |
| 17665 | if (sizeof (ac__type_new_)) |
| 17666 | return 0; |
| 17667 | ; |
| 17668 | return 0; |
| 17669 | } |
| 17670 | _ACEOF |
| 17671 | rm -f conftest.$ac_objext |
| 17672 | if { (ac_try="$ac_compile" |
| 17673 | case "(($ac_try" in |
| 17674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17675 | *) ac_try_echo=$ac_try;; |
| 17676 | esac |
| 17677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17678 | (eval "$ac_compile") 2>conftest.er1 |
| 17679 | ac_status=$? |
| 17680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17681 | rm -f conftest.er1 |
| 17682 | cat conftest.err >&5 |
| 17683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17684 | (exit $ac_status); } && |
| 17685 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17686 | { (case "(($ac_try" in |
| 17687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17688 | *) ac_try_echo=$ac_try;; |
| 17689 | esac |
| 17690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17691 | (eval "$ac_try") 2>&5 |
| 17692 | ac_status=$? |
| 17693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17694 | (exit $ac_status); }; } && |
| 17695 | { ac_try='test -s conftest.$ac_objext' |
| 17696 | { (case "(($ac_try" in |
| 17697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17698 | *) ac_try_echo=$ac_try;; |
| 17699 | esac |
| 17700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17701 | (eval "$ac_try") 2>&5 |
| 17702 | ac_status=$? |
| 17703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17704 | (exit $ac_status); }; }; then |
| 17705 | ac_cv_type_pid_t=yes |
| 17706 | else |
| 17707 | echo "$as_me: failed program was:" >&5 |
| 17708 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17709 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17710 | ac_cv_type_pid_t=no |
| 17711 | fi |
| 17712 | |
| 17713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17714 | fi |
| 17715 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 17716 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 17717 | if test $ac_cv_type_pid_t = yes; then |
| 17718 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17719 | else |
| 17720 | |
| 17721 | cat >>confdefs.h <<_ACEOF |
| 17722 | #define pid_t int |
| 17723 | _ACEOF |
| 17724 | |
| 17725 | fi |
| 17726 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17727 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 17728 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 17729 | if test "${ac_cv_type_size_t+set}" = set; then |
| 17730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17731 | else |
| 17732 | cat >conftest.$ac_ext <<_ACEOF |
| 17733 | /* confdefs.h. */ |
| 17734 | _ACEOF |
| 17735 | cat confdefs.h >>conftest.$ac_ext |
| 17736 | cat >>conftest.$ac_ext <<_ACEOF |
| 17737 | /* end confdefs.h. */ |
| 17738 | $ac_includes_default |
| 17739 | typedef size_t ac__type_new_; |
| 17740 | int |
| 17741 | main () |
| 17742 | { |
| 17743 | if ((ac__type_new_ *) 0) |
| 17744 | return 0; |
| 17745 | if (sizeof (ac__type_new_)) |
| 17746 | return 0; |
| 17747 | ; |
| 17748 | return 0; |
| 17749 | } |
| 17750 | _ACEOF |
| 17751 | rm -f conftest.$ac_objext |
| 17752 | if { (ac_try="$ac_compile" |
| 17753 | case "(($ac_try" in |
| 17754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17755 | *) ac_try_echo=$ac_try;; |
| 17756 | esac |
| 17757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17758 | (eval "$ac_compile") 2>conftest.er1 |
| 17759 | ac_status=$? |
| 17760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17761 | rm -f conftest.er1 |
| 17762 | cat conftest.err >&5 |
| 17763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17764 | (exit $ac_status); } && |
| 17765 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17766 | { (case "(($ac_try" in |
| 17767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17768 | *) ac_try_echo=$ac_try;; |
| 17769 | esac |
| 17770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17771 | (eval "$ac_try") 2>&5 |
| 17772 | ac_status=$? |
| 17773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17774 | (exit $ac_status); }; } && |
| 17775 | { ac_try='test -s conftest.$ac_objext' |
| 17776 | { (case "(($ac_try" in |
| 17777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17778 | *) ac_try_echo=$ac_try;; |
| 17779 | esac |
| 17780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17781 | (eval "$ac_try") 2>&5 |
| 17782 | ac_status=$? |
| 17783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17784 | (exit $ac_status); }; }; then |
| 17785 | ac_cv_type_size_t=yes |
| 17786 | else |
| 17787 | echo "$as_me: failed program was:" >&5 |
| 17788 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17789 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17790 | ac_cv_type_size_t=no |
| 17791 | fi |
| 17792 | |
| 17793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17794 | fi |
| 17795 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 17796 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 17797 | if test $ac_cv_type_size_t = yes; then |
| 17798 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17799 | else |
| 17800 | |
| 17801 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17802 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17803 | _ACEOF |
| 17804 | |
| 17805 | fi |
| 17806 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17807 | |
| 17808 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17809 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17810 | _ACEOF |
| 17811 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17812 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 17813 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 17814 | if test "${ac_cv_struct_tm+set}" = set; then |
| 17815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17816 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17817 | cat >conftest.$ac_ext <<_ACEOF |
| 17818 | /* confdefs.h. */ |
| 17819 | _ACEOF |
| 17820 | cat confdefs.h >>conftest.$ac_ext |
| 17821 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17822 | /* end confdefs.h. */ |
| 17823 | #include <sys/types.h> |
| 17824 | #include <time.h> |
| 17825 | |
| 17826 | int |
| 17827 | main () |
| 17828 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17829 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17830 | ; |
| 17831 | return 0; |
| 17832 | } |
| 17833 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17834 | rm -f conftest.$ac_objext |
| 17835 | if { (ac_try="$ac_compile" |
| 17836 | case "(($ac_try" in |
| 17837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17838 | *) ac_try_echo=$ac_try;; |
| 17839 | esac |
| 17840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17841 | (eval "$ac_compile") 2>conftest.er1 |
| 17842 | ac_status=$? |
| 17843 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17844 | rm -f conftest.er1 |
| 17845 | cat conftest.err >&5 |
| 17846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17847 | (exit $ac_status); } && |
| 17848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17849 | { (case "(($ac_try" in |
| 17850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17851 | *) ac_try_echo=$ac_try;; |
| 17852 | esac |
| 17853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17854 | (eval "$ac_try") 2>&5 |
| 17855 | ac_status=$? |
| 17856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17857 | (exit $ac_status); }; } && |
| 17858 | { ac_try='test -s conftest.$ac_objext' |
| 17859 | { (case "(($ac_try" in |
| 17860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17861 | *) ac_try_echo=$ac_try;; |
| 17862 | esac |
| 17863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17864 | (eval "$ac_try") 2>&5 |
| 17865 | ac_status=$? |
| 17866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17867 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17868 | ac_cv_struct_tm=time.h |
| 17869 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17870 | echo "$as_me: failed program was:" >&5 |
| 17871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17872 | |
| 17873 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17874 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17875 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17877 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17878 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 17879 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17880 | if test $ac_cv_struct_tm = sys/time.h; then |
| 17881 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17882 | cat >>confdefs.h <<\_ACEOF |
| 17883 | #define TM_IN_SYS_TIME 1 |
| 17884 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17885 | |
| 17886 | fi |
| 17887 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17888 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 17889 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 17890 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 17891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17892 | else |
| 17893 | cat >conftest.$ac_ext <<_ACEOF |
| 17894 | /* confdefs.h. */ |
| 17895 | _ACEOF |
| 17896 | cat confdefs.h >>conftest.$ac_ext |
| 17897 | cat >>conftest.$ac_ext <<_ACEOF |
| 17898 | /* end confdefs.h. */ |
| 17899 | $ac_includes_default |
| 17900 | typedef int64_t ac__type_new_; |
| 17901 | int |
| 17902 | main () |
| 17903 | { |
| 17904 | if ((ac__type_new_ *) 0) |
| 17905 | return 0; |
| 17906 | if (sizeof (ac__type_new_)) |
| 17907 | return 0; |
| 17908 | ; |
| 17909 | return 0; |
| 17910 | } |
| 17911 | _ACEOF |
| 17912 | rm -f conftest.$ac_objext |
| 17913 | if { (ac_try="$ac_compile" |
| 17914 | case "(($ac_try" in |
| 17915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17916 | *) ac_try_echo=$ac_try;; |
| 17917 | esac |
| 17918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17919 | (eval "$ac_compile") 2>conftest.er1 |
| 17920 | ac_status=$? |
| 17921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17922 | rm -f conftest.er1 |
| 17923 | cat conftest.err >&5 |
| 17924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17925 | (exit $ac_status); } && |
| 17926 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17927 | { (case "(($ac_try" in |
| 17928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17929 | *) ac_try_echo=$ac_try;; |
| 17930 | esac |
| 17931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17932 | (eval "$ac_try") 2>&5 |
| 17933 | ac_status=$? |
| 17934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17935 | (exit $ac_status); }; } && |
| 17936 | { ac_try='test -s conftest.$ac_objext' |
| 17937 | { (case "(($ac_try" in |
| 17938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17939 | *) ac_try_echo=$ac_try;; |
| 17940 | esac |
| 17941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17942 | (eval "$ac_try") 2>&5 |
| 17943 | ac_status=$? |
| 17944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17945 | (exit $ac_status); }; }; then |
| 17946 | ac_cv_type_int64_t=yes |
| 17947 | else |
| 17948 | echo "$as_me: failed program was:" >&5 |
| 17949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17950 | |
| 17951 | ac_cv_type_int64_t=no |
| 17952 | fi |
| 17953 | |
| 17954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17955 | fi |
| 17956 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 17957 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 17958 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17959 | |
| 17960 | cat >>confdefs.h <<_ACEOF |
| 17961 | #define HAVE_INT64_T 1 |
| 17962 | _ACEOF |
| 17963 | |
| 17964 | |
| 17965 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17966 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 17967 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 17968 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17969 | fi |
| 17970 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17971 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 17972 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 17973 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 17974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17975 | else |
| 17976 | cat >conftest.$ac_ext <<_ACEOF |
| 17977 | /* confdefs.h. */ |
| 17978 | _ACEOF |
| 17979 | cat confdefs.h >>conftest.$ac_ext |
| 17980 | cat >>conftest.$ac_ext <<_ACEOF |
| 17981 | /* end confdefs.h. */ |
| 17982 | $ac_includes_default |
| 17983 | typedef uint64_t ac__type_new_; |
| 17984 | int |
| 17985 | main () |
| 17986 | { |
| 17987 | if ((ac__type_new_ *) 0) |
| 17988 | return 0; |
| 17989 | if (sizeof (ac__type_new_)) |
| 17990 | return 0; |
| 17991 | ; |
| 17992 | return 0; |
| 17993 | } |
| 17994 | _ACEOF |
| 17995 | rm -f conftest.$ac_objext |
| 17996 | if { (ac_try="$ac_compile" |
| 17997 | case "(($ac_try" in |
| 17998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17999 | *) ac_try_echo=$ac_try;; |
| 18000 | esac |
| 18001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18002 | (eval "$ac_compile") 2>conftest.er1 |
| 18003 | ac_status=$? |
| 18004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18005 | rm -f conftest.er1 |
| 18006 | cat conftest.err >&5 |
| 18007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18008 | (exit $ac_status); } && |
| 18009 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18010 | { (case "(($ac_try" in |
| 18011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18012 | *) ac_try_echo=$ac_try;; |
| 18013 | esac |
| 18014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18015 | (eval "$ac_try") 2>&5 |
| 18016 | ac_status=$? |
| 18017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18018 | (exit $ac_status); }; } && |
| 18019 | { ac_try='test -s conftest.$ac_objext' |
| 18020 | { (case "(($ac_try" in |
| 18021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18022 | *) ac_try_echo=$ac_try;; |
| 18023 | esac |
| 18024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18025 | (eval "$ac_try") 2>&5 |
| 18026 | ac_status=$? |
| 18027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18028 | (exit $ac_status); }; }; then |
| 18029 | ac_cv_type_uint64_t=yes |
| 18030 | else |
| 18031 | echo "$as_me: failed program was:" >&5 |
| 18032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18033 | |
| 18034 | ac_cv_type_uint64_t=no |
| 18035 | fi |
| 18036 | |
| 18037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18038 | fi |
| 18039 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 18040 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 18041 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18042 | |
| 18043 | cat >>confdefs.h <<_ACEOF |
| 18044 | #define HAVE_UINT64_T 1 |
| 18045 | _ACEOF |
| 18046 | |
| 18047 | |
| 18048 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18049 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 18050 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 18051 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 18052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18053 | else |
| 18054 | cat >conftest.$ac_ext <<_ACEOF |
| 18055 | /* confdefs.h. */ |
| 18056 | _ACEOF |
| 18057 | cat confdefs.h >>conftest.$ac_ext |
| 18058 | cat >>conftest.$ac_ext <<_ACEOF |
| 18059 | /* end confdefs.h. */ |
| 18060 | $ac_includes_default |
| 18061 | typedef u_int64_t ac__type_new_; |
| 18062 | int |
| 18063 | main () |
| 18064 | { |
| 18065 | if ((ac__type_new_ *) 0) |
| 18066 | return 0; |
| 18067 | if (sizeof (ac__type_new_)) |
| 18068 | return 0; |
| 18069 | ; |
| 18070 | return 0; |
| 18071 | } |
| 18072 | _ACEOF |
| 18073 | rm -f conftest.$ac_objext |
| 18074 | if { (ac_try="$ac_compile" |
| 18075 | case "(($ac_try" in |
| 18076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18077 | *) ac_try_echo=$ac_try;; |
| 18078 | esac |
| 18079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18080 | (eval "$ac_compile") 2>conftest.er1 |
| 18081 | ac_status=$? |
| 18082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18083 | rm -f conftest.er1 |
| 18084 | cat conftest.err >&5 |
| 18085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18086 | (exit $ac_status); } && |
| 18087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18088 | { (case "(($ac_try" in |
| 18089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18090 | *) ac_try_echo=$ac_try;; |
| 18091 | esac |
| 18092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18093 | (eval "$ac_try") 2>&5 |
| 18094 | ac_status=$? |
| 18095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18096 | (exit $ac_status); }; } && |
| 18097 | { ac_try='test -s conftest.$ac_objext' |
| 18098 | { (case "(($ac_try" in |
| 18099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18100 | *) ac_try_echo=$ac_try;; |
| 18101 | esac |
| 18102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18103 | (eval "$ac_try") 2>&5 |
| 18104 | ac_status=$? |
| 18105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18106 | (exit $ac_status); }; }; then |
| 18107 | ac_cv_type_u_int64_t=yes |
| 18108 | else |
| 18109 | echo "$as_me: failed program was:" >&5 |
| 18110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18111 | |
| 18112 | ac_cv_type_u_int64_t=no |
| 18113 | fi |
| 18114 | |
| 18115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18116 | fi |
| 18117 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 18118 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 18119 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 18120 | |
| 18121 | cat >>confdefs.h <<_ACEOF |
| 18122 | #define HAVE_U_INT64_T 1 |
| 18123 | _ACEOF |
| 18124 | |
| 18125 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 18126 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18127 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 18128 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 18129 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 18130 | fi |
| 18131 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 18132 | fi |
| 18133 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18134 | |
| 18135 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18136 | |
| 18137 | |
| 18138 | |
| 18139 | |
| 18140 | |
| 18141 | |
| 18142 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18143 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18144 | do |
| 18145 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18146 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18147 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18148 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18150 | else |
| 18151 | cat >conftest.$ac_ext <<_ACEOF |
| 18152 | /* confdefs.h. */ |
| 18153 | _ACEOF |
| 18154 | cat confdefs.h >>conftest.$ac_ext |
| 18155 | cat >>conftest.$ac_ext <<_ACEOF |
| 18156 | /* end confdefs.h. */ |
| 18157 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18158 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18159 | #define $ac_func innocuous_$ac_func |
| 18160 | |
| 18161 | /* System header to define __stub macros and hopefully few prototypes, |
| 18162 | which can conflict with char $ac_func (); below. |
| 18163 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18164 | <limits.h> exists even on freestanding compilers. */ |
| 18165 | |
| 18166 | #ifdef __STDC__ |
| 18167 | # include <limits.h> |
| 18168 | #else |
| 18169 | # include <assert.h> |
| 18170 | #endif |
| 18171 | |
| 18172 | #undef $ac_func |
| 18173 | |
| 18174 | /* Override any GCC internal prototype to avoid an error. |
| 18175 | Use char because int might match the return type of a GCC |
| 18176 | builtin and then its argument prototype would still apply. */ |
| 18177 | #ifdef __cplusplus |
| 18178 | extern "C" |
| 18179 | #endif |
| 18180 | char $ac_func (); |
| 18181 | /* The GNU C library defines this for functions which it implements |
| 18182 | to always fail with ENOSYS. Some functions are actually named |
| 18183 | something starting with __ and the normal name is an alias. */ |
| 18184 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18185 | choke me |
| 18186 | #endif |
| 18187 | |
| 18188 | int |
| 18189 | main () |
| 18190 | { |
| 18191 | return $ac_func (); |
| 18192 | ; |
| 18193 | return 0; |
| 18194 | } |
| 18195 | _ACEOF |
| 18196 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18197 | if { (ac_try="$ac_link" |
| 18198 | case "(($ac_try" in |
| 18199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18200 | *) ac_try_echo=$ac_try;; |
| 18201 | esac |
| 18202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18203 | (eval "$ac_link") 2>conftest.er1 |
| 18204 | ac_status=$? |
| 18205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18206 | rm -f conftest.er1 |
| 18207 | cat conftest.err >&5 |
| 18208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18209 | (exit $ac_status); } && |
| 18210 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18211 | { (case "(($ac_try" in |
| 18212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18213 | *) ac_try_echo=$ac_try;; |
| 18214 | esac |
| 18215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18216 | (eval "$ac_try") 2>&5 |
| 18217 | ac_status=$? |
| 18218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18219 | (exit $ac_status); }; } && |
| 18220 | { ac_try='test -s conftest$ac_exeext' |
| 18221 | { (case "(($ac_try" in |
| 18222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18223 | *) ac_try_echo=$ac_try;; |
| 18224 | esac |
| 18225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18226 | (eval "$ac_try") 2>&5 |
| 18227 | ac_status=$? |
| 18228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18229 | (exit $ac_status); }; }; then |
| 18230 | eval "$as_ac_var=yes" |
| 18231 | else |
| 18232 | echo "$as_me: failed program was:" >&5 |
| 18233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18234 | |
| 18235 | eval "$as_ac_var=no" |
| 18236 | fi |
| 18237 | |
| 18238 | rm -f core conftest.err conftest.$ac_objext \ |
| 18239 | conftest$ac_exeext conftest.$ac_ext |
| 18240 | fi |
| 18241 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18242 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18243 | echo "${ECHO_T}$ac_res" >&6; } |
| 18244 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18245 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18246 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18247 | _ACEOF |
| 18248 | |
| 18249 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18250 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18251 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18252 | |
| 18253 | |
| 18254 | |
| 18255 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 18256 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18257 | do |
| 18258 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18259 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18260 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18261 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18263 | else |
| 18264 | cat >conftest.$ac_ext <<_ACEOF |
| 18265 | /* confdefs.h. */ |
| 18266 | _ACEOF |
| 18267 | cat confdefs.h >>conftest.$ac_ext |
| 18268 | cat >>conftest.$ac_ext <<_ACEOF |
| 18269 | /* end confdefs.h. */ |
| 18270 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18271 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18272 | #define $ac_func innocuous_$ac_func |
| 18273 | |
| 18274 | /* System header to define __stub macros and hopefully few prototypes, |
| 18275 | which can conflict with char $ac_func (); below. |
| 18276 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18277 | <limits.h> exists even on freestanding compilers. */ |
| 18278 | |
| 18279 | #ifdef __STDC__ |
| 18280 | # include <limits.h> |
| 18281 | #else |
| 18282 | # include <assert.h> |
| 18283 | #endif |
| 18284 | |
| 18285 | #undef $ac_func |
| 18286 | |
| 18287 | /* Override any GCC internal prototype to avoid an error. |
| 18288 | Use char because int might match the return type of a GCC |
| 18289 | builtin and then its argument prototype would still apply. */ |
| 18290 | #ifdef __cplusplus |
| 18291 | extern "C" |
| 18292 | #endif |
| 18293 | char $ac_func (); |
| 18294 | /* The GNU C library defines this for functions which it implements |
| 18295 | to always fail with ENOSYS. Some functions are actually named |
| 18296 | something starting with __ and the normal name is an alias. */ |
| 18297 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18298 | choke me |
| 18299 | #endif |
| 18300 | |
| 18301 | int |
| 18302 | main () |
| 18303 | { |
| 18304 | return $ac_func (); |
| 18305 | ; |
| 18306 | return 0; |
| 18307 | } |
| 18308 | _ACEOF |
| 18309 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18310 | if { (ac_try="$ac_link" |
| 18311 | case "(($ac_try" in |
| 18312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18313 | *) ac_try_echo=$ac_try;; |
| 18314 | esac |
| 18315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18316 | (eval "$ac_link") 2>conftest.er1 |
| 18317 | ac_status=$? |
| 18318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18319 | rm -f conftest.er1 |
| 18320 | cat conftest.err >&5 |
| 18321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18322 | (exit $ac_status); } && |
| 18323 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18324 | { (case "(($ac_try" in |
| 18325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18326 | *) ac_try_echo=$ac_try;; |
| 18327 | esac |
| 18328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18329 | (eval "$ac_try") 2>&5 |
| 18330 | ac_status=$? |
| 18331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18332 | (exit $ac_status); }; } && |
| 18333 | { ac_try='test -s conftest$ac_exeext' |
| 18334 | { (case "(($ac_try" in |
| 18335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18336 | *) ac_try_echo=$ac_try;; |
| 18337 | esac |
| 18338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18339 | (eval "$ac_try") 2>&5 |
| 18340 | ac_status=$? |
| 18341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18342 | (exit $ac_status); }; }; then |
| 18343 | eval "$as_ac_var=yes" |
| 18344 | else |
| 18345 | echo "$as_me: failed program was:" >&5 |
| 18346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18347 | |
| 18348 | eval "$as_ac_var=no" |
| 18349 | fi |
| 18350 | |
| 18351 | rm -f core conftest.err conftest.$ac_objext \ |
| 18352 | conftest$ac_exeext conftest.$ac_ext |
| 18353 | fi |
| 18354 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18355 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18356 | echo "${ECHO_T}$ac_res" >&6; } |
| 18357 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 18358 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18359 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 18360 | _ACEOF |
| 18361 | |
| 18362 | fi |
| 18363 | done |
| 18364 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18365 | |
| 18366 | |
| 18367 | |
| 18368 | |
| 18369 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18370 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18371 | do |
| 18372 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18373 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18374 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18375 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18377 | else |
| 18378 | cat >conftest.$ac_ext <<_ACEOF |
| 18379 | /* confdefs.h. */ |
| 18380 | _ACEOF |
| 18381 | cat confdefs.h >>conftest.$ac_ext |
| 18382 | cat >>conftest.$ac_ext <<_ACEOF |
| 18383 | /* end confdefs.h. */ |
| 18384 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18385 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18386 | #define $ac_func innocuous_$ac_func |
| 18387 | |
| 18388 | /* System header to define __stub macros and hopefully few prototypes, |
| 18389 | which can conflict with char $ac_func (); below. |
| 18390 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18391 | <limits.h> exists even on freestanding compilers. */ |
| 18392 | |
| 18393 | #ifdef __STDC__ |
| 18394 | # include <limits.h> |
| 18395 | #else |
| 18396 | # include <assert.h> |
| 18397 | #endif |
| 18398 | |
| 18399 | #undef $ac_func |
| 18400 | |
| 18401 | /* Override any GCC internal prototype to avoid an error. |
| 18402 | Use char because int might match the return type of a GCC |
| 18403 | builtin and then its argument prototype would still apply. */ |
| 18404 | #ifdef __cplusplus |
| 18405 | extern "C" |
| 18406 | #endif |
| 18407 | char $ac_func (); |
| 18408 | /* The GNU C library defines this for functions which it implements |
| 18409 | to always fail with ENOSYS. Some functions are actually named |
| 18410 | something starting with __ and the normal name is an alias. */ |
| 18411 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18412 | choke me |
| 18413 | #endif |
| 18414 | |
| 18415 | int |
| 18416 | main () |
| 18417 | { |
| 18418 | return $ac_func (); |
| 18419 | ; |
| 18420 | return 0; |
| 18421 | } |
| 18422 | _ACEOF |
| 18423 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18424 | if { (ac_try="$ac_link" |
| 18425 | case "(($ac_try" in |
| 18426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18427 | *) ac_try_echo=$ac_try;; |
| 18428 | esac |
| 18429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18430 | (eval "$ac_link") 2>conftest.er1 |
| 18431 | ac_status=$? |
| 18432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18433 | rm -f conftest.er1 |
| 18434 | cat conftest.err >&5 |
| 18435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18436 | (exit $ac_status); } && |
| 18437 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18438 | { (case "(($ac_try" in |
| 18439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18440 | *) ac_try_echo=$ac_try;; |
| 18441 | esac |
| 18442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18443 | (eval "$ac_try") 2>&5 |
| 18444 | ac_status=$? |
| 18445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18446 | (exit $ac_status); }; } && |
| 18447 | { ac_try='test -s conftest$ac_exeext' |
| 18448 | { (case "(($ac_try" in |
| 18449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18450 | *) ac_try_echo=$ac_try;; |
| 18451 | esac |
| 18452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18453 | (eval "$ac_try") 2>&5 |
| 18454 | ac_status=$? |
| 18455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18456 | (exit $ac_status); }; }; then |
| 18457 | eval "$as_ac_var=yes" |
| 18458 | else |
| 18459 | echo "$as_me: failed program was:" >&5 |
| 18460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18461 | |
| 18462 | eval "$as_ac_var=no" |
| 18463 | fi |
| 18464 | |
| 18465 | rm -f core conftest.err conftest.$ac_objext \ |
| 18466 | conftest$ac_exeext conftest.$ac_ext |
| 18467 | fi |
| 18468 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18469 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18470 | echo "${ECHO_T}$ac_res" >&6; } |
| 18471 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18472 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18473 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18474 | _ACEOF |
| 18475 | |
| 18476 | fi |
| 18477 | done |
| 18478 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18479 | |
| 18480 | |
| 18481 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18482 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18483 | do |
| 18484 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18485 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18486 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18487 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18489 | else |
| 18490 | cat >conftest.$ac_ext <<_ACEOF |
| 18491 | /* confdefs.h. */ |
| 18492 | _ACEOF |
| 18493 | cat confdefs.h >>conftest.$ac_ext |
| 18494 | cat >>conftest.$ac_ext <<_ACEOF |
| 18495 | /* end confdefs.h. */ |
| 18496 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18497 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18498 | #define $ac_func innocuous_$ac_func |
| 18499 | |
| 18500 | /* System header to define __stub macros and hopefully few prototypes, |
| 18501 | which can conflict with char $ac_func (); below. |
| 18502 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18503 | <limits.h> exists even on freestanding compilers. */ |
| 18504 | |
| 18505 | #ifdef __STDC__ |
| 18506 | # include <limits.h> |
| 18507 | #else |
| 18508 | # include <assert.h> |
| 18509 | #endif |
| 18510 | |
| 18511 | #undef $ac_func |
| 18512 | |
| 18513 | /* Override any GCC internal prototype to avoid an error. |
| 18514 | Use char because int might match the return type of a GCC |
| 18515 | builtin and then its argument prototype would still apply. */ |
| 18516 | #ifdef __cplusplus |
| 18517 | extern "C" |
| 18518 | #endif |
| 18519 | char $ac_func (); |
| 18520 | /* The GNU C library defines this for functions which it implements |
| 18521 | to always fail with ENOSYS. Some functions are actually named |
| 18522 | something starting with __ and the normal name is an alias. */ |
| 18523 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18524 | choke me |
| 18525 | #endif |
| 18526 | |
| 18527 | int |
| 18528 | main () |
| 18529 | { |
| 18530 | return $ac_func (); |
| 18531 | ; |
| 18532 | return 0; |
| 18533 | } |
| 18534 | _ACEOF |
| 18535 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18536 | if { (ac_try="$ac_link" |
| 18537 | case "(($ac_try" in |
| 18538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18539 | *) ac_try_echo=$ac_try;; |
| 18540 | esac |
| 18541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18542 | (eval "$ac_link") 2>conftest.er1 |
| 18543 | ac_status=$? |
| 18544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18545 | rm -f conftest.er1 |
| 18546 | cat conftest.err >&5 |
| 18547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18548 | (exit $ac_status); } && |
| 18549 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18550 | { (case "(($ac_try" in |
| 18551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18552 | *) ac_try_echo=$ac_try;; |
| 18553 | esac |
| 18554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18555 | (eval "$ac_try") 2>&5 |
| 18556 | ac_status=$? |
| 18557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18558 | (exit $ac_status); }; } && |
| 18559 | { ac_try='test -s conftest$ac_exeext' |
| 18560 | { (case "(($ac_try" in |
| 18561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18562 | *) ac_try_echo=$ac_try;; |
| 18563 | esac |
| 18564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18565 | (eval "$ac_try") 2>&5 |
| 18566 | ac_status=$? |
| 18567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18568 | (exit $ac_status); }; }; then |
| 18569 | eval "$as_ac_var=yes" |
| 18570 | else |
| 18571 | echo "$as_me: failed program was:" >&5 |
| 18572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18573 | |
| 18574 | eval "$as_ac_var=no" |
| 18575 | fi |
| 18576 | |
| 18577 | rm -f core conftest.err conftest.$ac_objext \ |
| 18578 | conftest$ac_exeext conftest.$ac_ext |
| 18579 | fi |
| 18580 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18581 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18582 | echo "${ECHO_T}$ac_res" >&6; } |
| 18583 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18584 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18585 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18586 | _ACEOF |
| 18587 | |
| 18588 | fi |
| 18589 | done |
| 18590 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18591 | |
| 18592 | |
| 18593 | |
| 18594 | |
| 18595 | |
Eric Christopher | e429182 | 2010-04-16 05:14:21 +0000 | [diff] [blame] | 18596 | |
| 18597 | for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18598 | do |
| 18599 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18600 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18601 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18602 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18604 | else |
| 18605 | cat >conftest.$ac_ext <<_ACEOF |
| 18606 | /* confdefs.h. */ |
| 18607 | _ACEOF |
| 18608 | cat confdefs.h >>conftest.$ac_ext |
| 18609 | cat >>conftest.$ac_ext <<_ACEOF |
| 18610 | /* end confdefs.h. */ |
| 18611 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18612 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18613 | #define $ac_func innocuous_$ac_func |
| 18614 | |
| 18615 | /* System header to define __stub macros and hopefully few prototypes, |
| 18616 | which can conflict with char $ac_func (); below. |
| 18617 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18618 | <limits.h> exists even on freestanding compilers. */ |
| 18619 | |
| 18620 | #ifdef __STDC__ |
| 18621 | # include <limits.h> |
| 18622 | #else |
| 18623 | # include <assert.h> |
| 18624 | #endif |
| 18625 | |
| 18626 | #undef $ac_func |
| 18627 | |
| 18628 | /* Override any GCC internal prototype to avoid an error. |
| 18629 | Use char because int might match the return type of a GCC |
| 18630 | builtin and then its argument prototype would still apply. */ |
| 18631 | #ifdef __cplusplus |
| 18632 | extern "C" |
| 18633 | #endif |
| 18634 | char $ac_func (); |
| 18635 | /* The GNU C library defines this for functions which it implements |
| 18636 | to always fail with ENOSYS. Some functions are actually named |
| 18637 | something starting with __ and the normal name is an alias. */ |
| 18638 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18639 | choke me |
| 18640 | #endif |
| 18641 | |
| 18642 | int |
| 18643 | main () |
| 18644 | { |
| 18645 | return $ac_func (); |
| 18646 | ; |
| 18647 | return 0; |
| 18648 | } |
| 18649 | _ACEOF |
| 18650 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18651 | if { (ac_try="$ac_link" |
| 18652 | case "(($ac_try" in |
| 18653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18654 | *) ac_try_echo=$ac_try;; |
| 18655 | esac |
| 18656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18657 | (eval "$ac_link") 2>conftest.er1 |
| 18658 | ac_status=$? |
| 18659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18660 | rm -f conftest.er1 |
| 18661 | cat conftest.err >&5 |
| 18662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18663 | (exit $ac_status); } && |
| 18664 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18665 | { (case "(($ac_try" in |
| 18666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18667 | *) ac_try_echo=$ac_try;; |
| 18668 | esac |
| 18669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18670 | (eval "$ac_try") 2>&5 |
| 18671 | ac_status=$? |
| 18672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18673 | (exit $ac_status); }; } && |
| 18674 | { ac_try='test -s conftest$ac_exeext' |
| 18675 | { (case "(($ac_try" in |
| 18676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18677 | *) ac_try_echo=$ac_try;; |
| 18678 | esac |
| 18679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18680 | (eval "$ac_try") 2>&5 |
| 18681 | ac_status=$? |
| 18682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18683 | (exit $ac_status); }; }; then |
| 18684 | eval "$as_ac_var=yes" |
| 18685 | else |
| 18686 | echo "$as_me: failed program was:" >&5 |
| 18687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18688 | |
| 18689 | eval "$as_ac_var=no" |
| 18690 | fi |
| 18691 | |
| 18692 | rm -f core conftest.err conftest.$ac_objext \ |
| 18693 | conftest$ac_exeext conftest.$ac_ext |
| 18694 | fi |
| 18695 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18696 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18697 | echo "${ECHO_T}$ac_res" >&6; } |
| 18698 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 18699 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18700 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 18701 | _ACEOF |
| 18702 | |
| 18703 | fi |
| 18704 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18705 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18706 | |
| 18707 | |
| 18708 | |
NAKAMURA Takumi | e29b0ac | 2011-02-09 04:18:48 +0000 | [diff] [blame] | 18709 | for ac_func in strerror strerror_r setenv |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18710 | do |
| 18711 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18712 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18713 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18714 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18716 | else |
| 18717 | cat >conftest.$ac_ext <<_ACEOF |
| 18718 | /* confdefs.h. */ |
| 18719 | _ACEOF |
| 18720 | cat confdefs.h >>conftest.$ac_ext |
| 18721 | cat >>conftest.$ac_ext <<_ACEOF |
| 18722 | /* end confdefs.h. */ |
| 18723 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18724 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18725 | #define $ac_func innocuous_$ac_func |
| 18726 | |
| 18727 | /* System header to define __stub macros and hopefully few prototypes, |
| 18728 | which can conflict with char $ac_func (); below. |
| 18729 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18730 | <limits.h> exists even on freestanding compilers. */ |
| 18731 | |
| 18732 | #ifdef __STDC__ |
| 18733 | # include <limits.h> |
| 18734 | #else |
| 18735 | # include <assert.h> |
| 18736 | #endif |
| 18737 | |
| 18738 | #undef $ac_func |
| 18739 | |
| 18740 | /* Override any GCC internal prototype to avoid an error. |
| 18741 | Use char because int might match the return type of a GCC |
| 18742 | builtin and then its argument prototype would still apply. */ |
| 18743 | #ifdef __cplusplus |
| 18744 | extern "C" |
| 18745 | #endif |
| 18746 | char $ac_func (); |
| 18747 | /* The GNU C library defines this for functions which it implements |
| 18748 | to always fail with ENOSYS. Some functions are actually named |
| 18749 | something starting with __ and the normal name is an alias. */ |
| 18750 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18751 | choke me |
| 18752 | #endif |
| 18753 | |
| 18754 | int |
| 18755 | main () |
| 18756 | { |
| 18757 | return $ac_func (); |
| 18758 | ; |
| 18759 | return 0; |
| 18760 | } |
| 18761 | _ACEOF |
| 18762 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18763 | if { (ac_try="$ac_link" |
| 18764 | case "(($ac_try" in |
| 18765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18766 | *) ac_try_echo=$ac_try;; |
| 18767 | esac |
| 18768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18769 | (eval "$ac_link") 2>conftest.er1 |
| 18770 | ac_status=$? |
| 18771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18772 | rm -f conftest.er1 |
| 18773 | cat conftest.err >&5 |
| 18774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18775 | (exit $ac_status); } && |
| 18776 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18777 | { (case "(($ac_try" in |
| 18778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18779 | *) ac_try_echo=$ac_try;; |
| 18780 | esac |
| 18781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18782 | (eval "$ac_try") 2>&5 |
| 18783 | ac_status=$? |
| 18784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18785 | (exit $ac_status); }; } && |
| 18786 | { ac_try='test -s conftest$ac_exeext' |
| 18787 | { (case "(($ac_try" in |
| 18788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18789 | *) ac_try_echo=$ac_try;; |
| 18790 | esac |
| 18791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18792 | (eval "$ac_try") 2>&5 |
| 18793 | ac_status=$? |
| 18794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18795 | (exit $ac_status); }; }; then |
| 18796 | eval "$as_ac_var=yes" |
| 18797 | else |
| 18798 | echo "$as_me: failed program was:" >&5 |
| 18799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18800 | |
| 18801 | eval "$as_ac_var=no" |
| 18802 | fi |
| 18803 | |
| 18804 | rm -f core conftest.err conftest.$ac_objext \ |
| 18805 | conftest$ac_exeext conftest.$ac_ext |
| 18806 | fi |
| 18807 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18808 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18809 | echo "${ECHO_T}$ac_res" >&6; } |
| 18810 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 18811 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18812 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 18813 | _ACEOF |
| 18814 | |
| 18815 | fi |
| 18816 | done |
| 18817 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18818 | |
| 18819 | |
| 18820 | |
| 18821 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 18822 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18823 | do |
| 18824 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18825 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18826 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18827 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18829 | else |
| 18830 | cat >conftest.$ac_ext <<_ACEOF |
| 18831 | /* confdefs.h. */ |
| 18832 | _ACEOF |
| 18833 | cat confdefs.h >>conftest.$ac_ext |
| 18834 | cat >>conftest.$ac_ext <<_ACEOF |
| 18835 | /* end confdefs.h. */ |
| 18836 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18837 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18838 | #define $ac_func innocuous_$ac_func |
| 18839 | |
| 18840 | /* System header to define __stub macros and hopefully few prototypes, |
| 18841 | which can conflict with char $ac_func (); below. |
| 18842 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18843 | <limits.h> exists even on freestanding compilers. */ |
| 18844 | |
| 18845 | #ifdef __STDC__ |
| 18846 | # include <limits.h> |
| 18847 | #else |
| 18848 | # include <assert.h> |
| 18849 | #endif |
| 18850 | |
| 18851 | #undef $ac_func |
| 18852 | |
| 18853 | /* Override any GCC internal prototype to avoid an error. |
| 18854 | Use char because int might match the return type of a GCC |
| 18855 | builtin and then its argument prototype would still apply. */ |
| 18856 | #ifdef __cplusplus |
| 18857 | extern "C" |
| 18858 | #endif |
| 18859 | char $ac_func (); |
| 18860 | /* The GNU C library defines this for functions which it implements |
| 18861 | to always fail with ENOSYS. Some functions are actually named |
| 18862 | something starting with __ and the normal name is an alias. */ |
| 18863 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18864 | choke me |
| 18865 | #endif |
| 18866 | |
| 18867 | int |
| 18868 | main () |
| 18869 | { |
| 18870 | return $ac_func (); |
| 18871 | ; |
| 18872 | return 0; |
| 18873 | } |
| 18874 | _ACEOF |
| 18875 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18876 | if { (ac_try="$ac_link" |
| 18877 | case "(($ac_try" in |
| 18878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18879 | *) ac_try_echo=$ac_try;; |
| 18880 | esac |
| 18881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18882 | (eval "$ac_link") 2>conftest.er1 |
| 18883 | ac_status=$? |
| 18884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18885 | rm -f conftest.er1 |
| 18886 | cat conftest.err >&5 |
| 18887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18888 | (exit $ac_status); } && |
| 18889 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18890 | { (case "(($ac_try" in |
| 18891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18892 | *) ac_try_echo=$ac_try;; |
| 18893 | esac |
| 18894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18895 | (eval "$ac_try") 2>&5 |
| 18896 | ac_status=$? |
| 18897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18898 | (exit $ac_status); }; } && |
| 18899 | { ac_try='test -s conftest$ac_exeext' |
| 18900 | { (case "(($ac_try" in |
| 18901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18902 | *) ac_try_echo=$ac_try;; |
| 18903 | esac |
| 18904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18905 | (eval "$ac_try") 2>&5 |
| 18906 | ac_status=$? |
| 18907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18908 | (exit $ac_status); }; }; then |
| 18909 | eval "$as_ac_var=yes" |
| 18910 | else |
| 18911 | echo "$as_me: failed program was:" >&5 |
| 18912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18913 | |
| 18914 | eval "$as_ac_var=no" |
| 18915 | fi |
| 18916 | |
| 18917 | rm -f core conftest.err conftest.$ac_objext \ |
| 18918 | conftest$ac_exeext conftest.$ac_ext |
| 18919 | fi |
| 18920 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18921 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18922 | echo "${ECHO_T}$ac_res" >&6; } |
| 18923 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18924 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18925 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18926 | _ACEOF |
| 18927 | |
| 18928 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18929 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18930 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18931 | |
| 18932 | |
| 18933 | |
| 18934 | |
Daniel Dunbar | 3e46293 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 18935 | |
| 18936 | for ac_func in setjmp longjmp sigsetjmp siglongjmp writev |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18937 | do |
| 18938 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18939 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18940 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18941 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18943 | else |
| 18944 | cat >conftest.$ac_ext <<_ACEOF |
| 18945 | /* confdefs.h. */ |
| 18946 | _ACEOF |
| 18947 | cat confdefs.h >>conftest.$ac_ext |
| 18948 | cat >>conftest.$ac_ext <<_ACEOF |
| 18949 | /* end confdefs.h. */ |
| 18950 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18951 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18952 | #define $ac_func innocuous_$ac_func |
| 18953 | |
| 18954 | /* System header to define __stub macros and hopefully few prototypes, |
| 18955 | which can conflict with char $ac_func (); below. |
| 18956 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18957 | <limits.h> exists even on freestanding compilers. */ |
| 18958 | |
| 18959 | #ifdef __STDC__ |
| 18960 | # include <limits.h> |
| 18961 | #else |
| 18962 | # include <assert.h> |
| 18963 | #endif |
| 18964 | |
| 18965 | #undef $ac_func |
| 18966 | |
| 18967 | /* Override any GCC internal prototype to avoid an error. |
| 18968 | Use char because int might match the return type of a GCC |
| 18969 | builtin and then its argument prototype would still apply. */ |
| 18970 | #ifdef __cplusplus |
| 18971 | extern "C" |
| 18972 | #endif |
| 18973 | char $ac_func (); |
| 18974 | /* The GNU C library defines this for functions which it implements |
| 18975 | to always fail with ENOSYS. Some functions are actually named |
| 18976 | something starting with __ and the normal name is an alias. */ |
| 18977 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18978 | choke me |
| 18979 | #endif |
| 18980 | |
| 18981 | int |
| 18982 | main () |
| 18983 | { |
| 18984 | return $ac_func (); |
| 18985 | ; |
| 18986 | return 0; |
| 18987 | } |
| 18988 | _ACEOF |
| 18989 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18990 | if { (ac_try="$ac_link" |
| 18991 | case "(($ac_try" in |
| 18992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18993 | *) ac_try_echo=$ac_try;; |
| 18994 | esac |
| 18995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18996 | (eval "$ac_link") 2>conftest.er1 |
| 18997 | ac_status=$? |
| 18998 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18999 | rm -f conftest.er1 |
| 19000 | cat conftest.err >&5 |
| 19001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19002 | (exit $ac_status); } && |
| 19003 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19004 | { (case "(($ac_try" in |
| 19005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19006 | *) ac_try_echo=$ac_try;; |
| 19007 | esac |
| 19008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19009 | (eval "$ac_try") 2>&5 |
| 19010 | ac_status=$? |
| 19011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19012 | (exit $ac_status); }; } && |
| 19013 | { ac_try='test -s conftest$ac_exeext' |
| 19014 | { (case "(($ac_try" in |
| 19015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19016 | *) ac_try_echo=$ac_try;; |
| 19017 | esac |
| 19018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19019 | (eval "$ac_try") 2>&5 |
| 19020 | ac_status=$? |
| 19021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19022 | (exit $ac_status); }; }; then |
| 19023 | eval "$as_ac_var=yes" |
| 19024 | else |
| 19025 | echo "$as_me: failed program was:" >&5 |
| 19026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19027 | |
| 19028 | eval "$as_ac_var=no" |
| 19029 | fi |
| 19030 | |
| 19031 | rm -f core conftest.err conftest.$ac_objext \ |
| 19032 | conftest$ac_exeext conftest.$ac_ext |
| 19033 | fi |
| 19034 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19035 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19036 | echo "${ECHO_T}$ac_res" >&6; } |
| 19037 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 19038 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19039 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 19040 | _ACEOF |
| 19041 | |
| 19042 | fi |
| 19043 | done |
| 19044 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19045 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 19046 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 19047 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 19048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19049 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19050 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19051 | ac_cpp='$CPP $CPPFLAGS' |
| 19052 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19053 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19054 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19055 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19056 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 19057 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19058 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19059 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19060 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19061 | /* confdefs.h. */ |
| 19062 | _ACEOF |
| 19063 | cat confdefs.h >>conftest.$ac_ext |
| 19064 | cat >>conftest.$ac_ext <<_ACEOF |
| 19065 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19066 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19067 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19068 | #include <stdlib.h> |
| 19069 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19070 | int |
| 19071 | main () |
| 19072 | { |
| 19073 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19074 | volatile double A, B; |
| 19075 | char Buffer[100]; |
| 19076 | A = 1; |
| 19077 | A /= 10.0; |
| 19078 | sprintf(Buffer, "%a", A); |
| 19079 | B = atof(Buffer); |
| 19080 | if (A != B) |
| 19081 | return (1); |
| 19082 | if (A != 0x1.999999999999ap-4) |
| 19083 | return (1); |
| 19084 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19085 | ; |
| 19086 | return 0; |
| 19087 | } |
| 19088 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19089 | rm -f conftest$ac_exeext |
| 19090 | if { (ac_try="$ac_link" |
| 19091 | case "(($ac_try" in |
| 19092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19093 | *) ac_try_echo=$ac_try;; |
| 19094 | esac |
| 19095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19096 | (eval "$ac_link") 2>&5 |
| 19097 | ac_status=$? |
| 19098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19099 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19100 | { (case "(($ac_try" in |
| 19101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19102 | *) ac_try_echo=$ac_try;; |
| 19103 | esac |
| 19104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19105 | (eval "$ac_try") 2>&5 |
| 19106 | ac_status=$? |
| 19107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19108 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 19109 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19110 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19111 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19112 | echo "$as_me: failed program was:" >&5 |
| 19113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19114 | |
| 19115 | ( exit $ac_status ) |
| 19116 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19117 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19118 | 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] | 19119 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19120 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19121 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19122 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19123 | ac_cpp='$CPP $CPPFLAGS' |
| 19124 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19125 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19126 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19127 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19128 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19129 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 19130 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 19131 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19132 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19133 | cat >>confdefs.h <<\_ACEOF |
| 19134 | #define HAVE_PRINTF_A 1 |
| 19135 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19136 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19137 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19138 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19139 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19140 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 19141 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 19142 | if test "${ac_cv_func_rand48+set}" = set; then |
| 19143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19144 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19145 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19146 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19147 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19148 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19149 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19150 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19151 | cat >conftest.$ac_ext <<_ACEOF |
| 19152 | /* confdefs.h. */ |
| 19153 | _ACEOF |
| 19154 | cat confdefs.h >>conftest.$ac_ext |
| 19155 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19156 | /* end confdefs.h. */ |
| 19157 | #include <stdlib.h> |
| 19158 | int |
| 19159 | main () |
| 19160 | { |
| 19161 | srand48(0);lrand48();drand48(); |
| 19162 | ; |
| 19163 | return 0; |
| 19164 | } |
| 19165 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19166 | rm -f conftest.$ac_objext |
| 19167 | if { (ac_try="$ac_compile" |
| 19168 | case "(($ac_try" in |
| 19169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19170 | *) ac_try_echo=$ac_try;; |
| 19171 | esac |
| 19172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19173 | (eval "$ac_compile") 2>conftest.er1 |
| 19174 | ac_status=$? |
| 19175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19176 | rm -f conftest.er1 |
| 19177 | cat conftest.err >&5 |
| 19178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19179 | (exit $ac_status); } && |
| 19180 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19181 | { (case "(($ac_try" in |
| 19182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19183 | *) ac_try_echo=$ac_try;; |
| 19184 | esac |
| 19185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19186 | (eval "$ac_try") 2>&5 |
| 19187 | ac_status=$? |
| 19188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19189 | (exit $ac_status); }; } && |
| 19190 | { ac_try='test -s conftest.$ac_objext' |
| 19191 | { (case "(($ac_try" in |
| 19192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19193 | *) ac_try_echo=$ac_try;; |
| 19194 | esac |
| 19195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19196 | (eval "$ac_try") 2>&5 |
| 19197 | ac_status=$? |
| 19198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19199 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19200 | ac_cv_func_rand48=yes |
| 19201 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19202 | echo "$as_me: failed program was:" >&5 |
| 19203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19204 | |
| 19205 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19206 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19207 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19209 | ac_ext=c |
| 19210 | ac_cpp='$CPP $CPPFLAGS' |
| 19211 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19212 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19214 | |
| 19215 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19216 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 19217 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19218 | |
| 19219 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 19220 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19221 | cat >>confdefs.h <<\_ACEOF |
| 19222 | #define HAVE_RAND48 1 |
| 19223 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19224 | |
| 19225 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 19226 | |
| 19227 | |
NAKAMURA Takumi | e29b0ac | 2011-02-09 04:18:48 +0000 | [diff] [blame] | 19228 | { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 |
| 19229 | echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } |
| 19230 | if test "${ac_cv_have_decl_strerror_s+set}" = set; then |
| 19231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19232 | else |
| 19233 | cat >conftest.$ac_ext <<_ACEOF |
| 19234 | /* confdefs.h. */ |
| 19235 | _ACEOF |
| 19236 | cat confdefs.h >>conftest.$ac_ext |
| 19237 | cat >>conftest.$ac_ext <<_ACEOF |
| 19238 | /* end confdefs.h. */ |
| 19239 | $ac_includes_default |
| 19240 | int |
| 19241 | main () |
| 19242 | { |
| 19243 | #ifndef strerror_s |
| 19244 | char *p = (char *) strerror_s; |
| 19245 | return !p; |
| 19246 | #endif |
| 19247 | |
| 19248 | ; |
| 19249 | return 0; |
| 19250 | } |
| 19251 | _ACEOF |
| 19252 | rm -f conftest.$ac_objext |
| 19253 | if { (ac_try="$ac_compile" |
| 19254 | case "(($ac_try" in |
| 19255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19256 | *) ac_try_echo=$ac_try;; |
| 19257 | esac |
| 19258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19259 | (eval "$ac_compile") 2>conftest.er1 |
| 19260 | ac_status=$? |
| 19261 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19262 | rm -f conftest.er1 |
| 19263 | cat conftest.err >&5 |
| 19264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19265 | (exit $ac_status); } && |
| 19266 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19267 | { (case "(($ac_try" in |
| 19268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19269 | *) ac_try_echo=$ac_try;; |
| 19270 | esac |
| 19271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19272 | (eval "$ac_try") 2>&5 |
| 19273 | ac_status=$? |
| 19274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19275 | (exit $ac_status); }; } && |
| 19276 | { ac_try='test -s conftest.$ac_objext' |
| 19277 | { (case "(($ac_try" in |
| 19278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19279 | *) ac_try_echo=$ac_try;; |
| 19280 | esac |
| 19281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19282 | (eval "$ac_try") 2>&5 |
| 19283 | ac_status=$? |
| 19284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19285 | (exit $ac_status); }; }; then |
| 19286 | ac_cv_have_decl_strerror_s=yes |
| 19287 | else |
| 19288 | echo "$as_me: failed program was:" >&5 |
| 19289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19290 | |
| 19291 | ac_cv_have_decl_strerror_s=no |
| 19292 | fi |
| 19293 | |
| 19294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19295 | fi |
| 19296 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 |
| 19297 | echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } |
| 19298 | if test $ac_cv_have_decl_strerror_s = yes; then |
| 19299 | |
| 19300 | cat >>confdefs.h <<_ACEOF |
| 19301 | #define HAVE_DECL_STRERROR_S 1 |
| 19302 | _ACEOF |
| 19303 | |
| 19304 | |
| 19305 | else |
| 19306 | cat >>confdefs.h <<_ACEOF |
| 19307 | #define HAVE_DECL_STRERROR_S 0 |
| 19308 | _ACEOF |
| 19309 | |
| 19310 | |
| 19311 | fi |
| 19312 | |
| 19313 | |
| 19314 | |
NAKAMURA Takumi | 1f6832a | 2011-02-05 15:11:53 +0000 | [diff] [blame] | 19315 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 19316 | { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 |
| 19317 | echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } |
| 19318 | if test "${ac_cv_lib_gcc__alloca+set}" = set; then |
| 19319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19320 | else |
| 19321 | ac_check_lib_save_LIBS=$LIBS |
| 19322 | LIBS="-lgcc $LIBS" |
| 19323 | cat >conftest.$ac_ext <<_ACEOF |
| 19324 | /* confdefs.h. */ |
| 19325 | _ACEOF |
| 19326 | cat confdefs.h >>conftest.$ac_ext |
| 19327 | cat >>conftest.$ac_ext <<_ACEOF |
| 19328 | /* end confdefs.h. */ |
| 19329 | |
| 19330 | /* Override any GCC internal prototype to avoid an error. |
| 19331 | Use char because int might match the return type of a GCC |
| 19332 | builtin and then its argument prototype would still apply. */ |
| 19333 | #ifdef __cplusplus |
| 19334 | extern "C" |
| 19335 | #endif |
| 19336 | char _alloca (); |
| 19337 | int |
| 19338 | main () |
| 19339 | { |
| 19340 | return _alloca (); |
| 19341 | ; |
| 19342 | return 0; |
| 19343 | } |
| 19344 | _ACEOF |
| 19345 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19346 | if { (ac_try="$ac_link" |
| 19347 | case "(($ac_try" in |
| 19348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19349 | *) ac_try_echo=$ac_try;; |
| 19350 | esac |
| 19351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19352 | (eval "$ac_link") 2>conftest.er1 |
| 19353 | ac_status=$? |
| 19354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19355 | rm -f conftest.er1 |
| 19356 | cat conftest.err >&5 |
| 19357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19358 | (exit $ac_status); } && |
| 19359 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19360 | { (case "(($ac_try" in |
| 19361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19362 | *) ac_try_echo=$ac_try;; |
| 19363 | esac |
| 19364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19365 | (eval "$ac_try") 2>&5 |
| 19366 | ac_status=$? |
| 19367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19368 | (exit $ac_status); }; } && |
| 19369 | { ac_try='test -s conftest$ac_exeext' |
| 19370 | { (case "(($ac_try" in |
| 19371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19372 | *) ac_try_echo=$ac_try;; |
| 19373 | esac |
| 19374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19375 | (eval "$ac_try") 2>&5 |
| 19376 | ac_status=$? |
| 19377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19378 | (exit $ac_status); }; }; then |
| 19379 | ac_cv_lib_gcc__alloca=yes |
| 19380 | else |
| 19381 | echo "$as_me: failed program was:" >&5 |
| 19382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19383 | |
| 19384 | ac_cv_lib_gcc__alloca=no |
| 19385 | fi |
| 19386 | |
| 19387 | rm -f core conftest.err conftest.$ac_objext \ |
| 19388 | conftest$ac_exeext conftest.$ac_ext |
| 19389 | LIBS=$ac_check_lib_save_LIBS |
| 19390 | fi |
| 19391 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 |
| 19392 | echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } |
| 19393 | if test $ac_cv_lib_gcc__alloca = yes; then |
| 19394 | |
| 19395 | cat >>confdefs.h <<\_ACEOF |
| 19396 | #define HAVE__ALLOCA 1 |
| 19397 | _ACEOF |
| 19398 | |
| 19399 | fi |
| 19400 | |
| 19401 | { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 |
| 19402 | echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } |
| 19403 | if test "${ac_cv_lib_gcc___alloca+set}" = set; then |
| 19404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19405 | else |
| 19406 | ac_check_lib_save_LIBS=$LIBS |
| 19407 | LIBS="-lgcc $LIBS" |
| 19408 | cat >conftest.$ac_ext <<_ACEOF |
| 19409 | /* confdefs.h. */ |
| 19410 | _ACEOF |
| 19411 | cat confdefs.h >>conftest.$ac_ext |
| 19412 | cat >>conftest.$ac_ext <<_ACEOF |
| 19413 | /* end confdefs.h. */ |
| 19414 | |
| 19415 | /* Override any GCC internal prototype to avoid an error. |
| 19416 | Use char because int might match the return type of a GCC |
| 19417 | builtin and then its argument prototype would still apply. */ |
| 19418 | #ifdef __cplusplus |
| 19419 | extern "C" |
| 19420 | #endif |
| 19421 | char __alloca (); |
| 19422 | int |
| 19423 | main () |
| 19424 | { |
| 19425 | return __alloca (); |
| 19426 | ; |
| 19427 | return 0; |
| 19428 | } |
| 19429 | _ACEOF |
| 19430 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19431 | if { (ac_try="$ac_link" |
| 19432 | case "(($ac_try" in |
| 19433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19434 | *) ac_try_echo=$ac_try;; |
| 19435 | esac |
| 19436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19437 | (eval "$ac_link") 2>conftest.er1 |
| 19438 | ac_status=$? |
| 19439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19440 | rm -f conftest.er1 |
| 19441 | cat conftest.err >&5 |
| 19442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19443 | (exit $ac_status); } && |
| 19444 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19445 | { (case "(($ac_try" in |
| 19446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19447 | *) ac_try_echo=$ac_try;; |
| 19448 | esac |
| 19449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19450 | (eval "$ac_try") 2>&5 |
| 19451 | ac_status=$? |
| 19452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19453 | (exit $ac_status); }; } && |
| 19454 | { ac_try='test -s conftest$ac_exeext' |
| 19455 | { (case "(($ac_try" in |
| 19456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19457 | *) ac_try_echo=$ac_try;; |
| 19458 | esac |
| 19459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19460 | (eval "$ac_try") 2>&5 |
| 19461 | ac_status=$? |
| 19462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19463 | (exit $ac_status); }; }; then |
| 19464 | ac_cv_lib_gcc___alloca=yes |
| 19465 | else |
| 19466 | echo "$as_me: failed program was:" >&5 |
| 19467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19468 | |
| 19469 | ac_cv_lib_gcc___alloca=no |
| 19470 | fi |
| 19471 | |
| 19472 | rm -f core conftest.err conftest.$ac_objext \ |
| 19473 | conftest$ac_exeext conftest.$ac_ext |
| 19474 | LIBS=$ac_check_lib_save_LIBS |
| 19475 | fi |
| 19476 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 |
| 19477 | echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } |
| 19478 | if test $ac_cv_lib_gcc___alloca = yes; then |
| 19479 | |
| 19480 | cat >>confdefs.h <<\_ACEOF |
| 19481 | #define HAVE___ALLOCA 1 |
| 19482 | _ACEOF |
| 19483 | |
| 19484 | fi |
| 19485 | |
| 19486 | { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 |
| 19487 | echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } |
| 19488 | if test "${ac_cv_lib_gcc___chkstk+set}" = set; then |
| 19489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19490 | else |
| 19491 | ac_check_lib_save_LIBS=$LIBS |
| 19492 | LIBS="-lgcc $LIBS" |
| 19493 | cat >conftest.$ac_ext <<_ACEOF |
| 19494 | /* confdefs.h. */ |
| 19495 | _ACEOF |
| 19496 | cat confdefs.h >>conftest.$ac_ext |
| 19497 | cat >>conftest.$ac_ext <<_ACEOF |
| 19498 | /* end confdefs.h. */ |
| 19499 | |
| 19500 | /* Override any GCC internal prototype to avoid an error. |
| 19501 | Use char because int might match the return type of a GCC |
| 19502 | builtin and then its argument prototype would still apply. */ |
| 19503 | #ifdef __cplusplus |
| 19504 | extern "C" |
| 19505 | #endif |
| 19506 | char __chkstk (); |
| 19507 | int |
| 19508 | main () |
| 19509 | { |
| 19510 | return __chkstk (); |
| 19511 | ; |
| 19512 | return 0; |
| 19513 | } |
| 19514 | _ACEOF |
| 19515 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19516 | if { (ac_try="$ac_link" |
| 19517 | case "(($ac_try" in |
| 19518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19519 | *) ac_try_echo=$ac_try;; |
| 19520 | esac |
| 19521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19522 | (eval "$ac_link") 2>conftest.er1 |
| 19523 | ac_status=$? |
| 19524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19525 | rm -f conftest.er1 |
| 19526 | cat conftest.err >&5 |
| 19527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19528 | (exit $ac_status); } && |
| 19529 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19530 | { (case "(($ac_try" in |
| 19531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19532 | *) ac_try_echo=$ac_try;; |
| 19533 | esac |
| 19534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19535 | (eval "$ac_try") 2>&5 |
| 19536 | ac_status=$? |
| 19537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19538 | (exit $ac_status); }; } && |
| 19539 | { ac_try='test -s conftest$ac_exeext' |
| 19540 | { (case "(($ac_try" in |
| 19541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19542 | *) ac_try_echo=$ac_try;; |
| 19543 | esac |
| 19544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19545 | (eval "$ac_try") 2>&5 |
| 19546 | ac_status=$? |
| 19547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19548 | (exit $ac_status); }; }; then |
| 19549 | ac_cv_lib_gcc___chkstk=yes |
| 19550 | else |
| 19551 | echo "$as_me: failed program was:" >&5 |
| 19552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19553 | |
| 19554 | ac_cv_lib_gcc___chkstk=no |
| 19555 | fi |
| 19556 | |
| 19557 | rm -f core conftest.err conftest.$ac_objext \ |
| 19558 | conftest$ac_exeext conftest.$ac_ext |
| 19559 | LIBS=$ac_check_lib_save_LIBS |
| 19560 | fi |
| 19561 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 |
| 19562 | echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } |
| 19563 | if test $ac_cv_lib_gcc___chkstk = yes; then |
| 19564 | |
| 19565 | cat >>confdefs.h <<\_ACEOF |
| 19566 | #define HAVE___CHKSTK 1 |
| 19567 | _ACEOF |
| 19568 | |
| 19569 | fi |
| 19570 | |
| 19571 | { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 |
| 19572 | echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } |
| 19573 | if test "${ac_cv_lib_gcc____chkstk+set}" = set; then |
| 19574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19575 | else |
| 19576 | ac_check_lib_save_LIBS=$LIBS |
| 19577 | LIBS="-lgcc $LIBS" |
| 19578 | cat >conftest.$ac_ext <<_ACEOF |
| 19579 | /* confdefs.h. */ |
| 19580 | _ACEOF |
| 19581 | cat confdefs.h >>conftest.$ac_ext |
| 19582 | cat >>conftest.$ac_ext <<_ACEOF |
| 19583 | /* end confdefs.h. */ |
| 19584 | |
| 19585 | /* Override any GCC internal prototype to avoid an error. |
| 19586 | Use char because int might match the return type of a GCC |
| 19587 | builtin and then its argument prototype would still apply. */ |
| 19588 | #ifdef __cplusplus |
| 19589 | extern "C" |
| 19590 | #endif |
| 19591 | char ___chkstk (); |
| 19592 | int |
| 19593 | main () |
| 19594 | { |
| 19595 | return ___chkstk (); |
| 19596 | ; |
| 19597 | return 0; |
| 19598 | } |
| 19599 | _ACEOF |
| 19600 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19601 | if { (ac_try="$ac_link" |
| 19602 | case "(($ac_try" in |
| 19603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19604 | *) ac_try_echo=$ac_try;; |
| 19605 | esac |
| 19606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19607 | (eval "$ac_link") 2>conftest.er1 |
| 19608 | ac_status=$? |
| 19609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19610 | rm -f conftest.er1 |
| 19611 | cat conftest.err >&5 |
| 19612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19613 | (exit $ac_status); } && |
| 19614 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19615 | { (case "(($ac_try" in |
| 19616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19617 | *) ac_try_echo=$ac_try;; |
| 19618 | esac |
| 19619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19620 | (eval "$ac_try") 2>&5 |
| 19621 | ac_status=$? |
| 19622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19623 | (exit $ac_status); }; } && |
| 19624 | { ac_try='test -s conftest$ac_exeext' |
| 19625 | { (case "(($ac_try" in |
| 19626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19627 | *) ac_try_echo=$ac_try;; |
| 19628 | esac |
| 19629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19630 | (eval "$ac_try") 2>&5 |
| 19631 | ac_status=$? |
| 19632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19633 | (exit $ac_status); }; }; then |
| 19634 | ac_cv_lib_gcc____chkstk=yes |
| 19635 | else |
| 19636 | echo "$as_me: failed program was:" >&5 |
| 19637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19638 | |
| 19639 | ac_cv_lib_gcc____chkstk=no |
| 19640 | fi |
| 19641 | |
| 19642 | rm -f core conftest.err conftest.$ac_objext \ |
| 19643 | conftest$ac_exeext conftest.$ac_ext |
| 19644 | LIBS=$ac_check_lib_save_LIBS |
| 19645 | fi |
| 19646 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 |
| 19647 | echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } |
| 19648 | if test $ac_cv_lib_gcc____chkstk = yes; then |
| 19649 | |
| 19650 | cat >>confdefs.h <<\_ACEOF |
| 19651 | #define HAVE____CHKSTK 1 |
| 19652 | _ACEOF |
| 19653 | |
| 19654 | fi |
| 19655 | |
| 19656 | |
| 19657 | { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 |
| 19658 | echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } |
| 19659 | if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then |
| 19660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19661 | else |
| 19662 | ac_check_lib_save_LIBS=$LIBS |
| 19663 | LIBS="-lgcc $LIBS" |
| 19664 | cat >conftest.$ac_ext <<_ACEOF |
| 19665 | /* confdefs.h. */ |
| 19666 | _ACEOF |
| 19667 | cat confdefs.h >>conftest.$ac_ext |
| 19668 | cat >>conftest.$ac_ext <<_ACEOF |
| 19669 | /* end confdefs.h. */ |
| 19670 | |
| 19671 | /* Override any GCC internal prototype to avoid an error. |
| 19672 | Use char because int might match the return type of a GCC |
| 19673 | builtin and then its argument prototype would still apply. */ |
| 19674 | #ifdef __cplusplus |
| 19675 | extern "C" |
| 19676 | #endif |
| 19677 | char __ashldi3 (); |
| 19678 | int |
| 19679 | main () |
| 19680 | { |
| 19681 | return __ashldi3 (); |
| 19682 | ; |
| 19683 | return 0; |
| 19684 | } |
| 19685 | _ACEOF |
| 19686 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19687 | if { (ac_try="$ac_link" |
| 19688 | case "(($ac_try" in |
| 19689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19690 | *) ac_try_echo=$ac_try;; |
| 19691 | esac |
| 19692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19693 | (eval "$ac_link") 2>conftest.er1 |
| 19694 | ac_status=$? |
| 19695 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19696 | rm -f conftest.er1 |
| 19697 | cat conftest.err >&5 |
| 19698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19699 | (exit $ac_status); } && |
| 19700 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19701 | { (case "(($ac_try" in |
| 19702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19703 | *) ac_try_echo=$ac_try;; |
| 19704 | esac |
| 19705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19706 | (eval "$ac_try") 2>&5 |
| 19707 | ac_status=$? |
| 19708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19709 | (exit $ac_status); }; } && |
| 19710 | { ac_try='test -s conftest$ac_exeext' |
| 19711 | { (case "(($ac_try" in |
| 19712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19713 | *) ac_try_echo=$ac_try;; |
| 19714 | esac |
| 19715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19716 | (eval "$ac_try") 2>&5 |
| 19717 | ac_status=$? |
| 19718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19719 | (exit $ac_status); }; }; then |
| 19720 | ac_cv_lib_gcc___ashldi3=yes |
| 19721 | else |
| 19722 | echo "$as_me: failed program was:" >&5 |
| 19723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19724 | |
| 19725 | ac_cv_lib_gcc___ashldi3=no |
| 19726 | fi |
| 19727 | |
| 19728 | rm -f core conftest.err conftest.$ac_objext \ |
| 19729 | conftest$ac_exeext conftest.$ac_ext |
| 19730 | LIBS=$ac_check_lib_save_LIBS |
| 19731 | fi |
| 19732 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 |
| 19733 | echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } |
| 19734 | if test $ac_cv_lib_gcc___ashldi3 = yes; then |
| 19735 | |
| 19736 | cat >>confdefs.h <<\_ACEOF |
| 19737 | #define HAVE___ASHLDI3 1 |
| 19738 | _ACEOF |
| 19739 | |
| 19740 | fi |
| 19741 | |
| 19742 | { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 |
| 19743 | echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } |
| 19744 | if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then |
| 19745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19746 | else |
| 19747 | ac_check_lib_save_LIBS=$LIBS |
| 19748 | LIBS="-lgcc $LIBS" |
| 19749 | cat >conftest.$ac_ext <<_ACEOF |
| 19750 | /* confdefs.h. */ |
| 19751 | _ACEOF |
| 19752 | cat confdefs.h >>conftest.$ac_ext |
| 19753 | cat >>conftest.$ac_ext <<_ACEOF |
| 19754 | /* end confdefs.h. */ |
| 19755 | |
| 19756 | /* Override any GCC internal prototype to avoid an error. |
| 19757 | Use char because int might match the return type of a GCC |
| 19758 | builtin and then its argument prototype would still apply. */ |
| 19759 | #ifdef __cplusplus |
| 19760 | extern "C" |
| 19761 | #endif |
| 19762 | char __ashrdi3 (); |
| 19763 | int |
| 19764 | main () |
| 19765 | { |
| 19766 | return __ashrdi3 (); |
| 19767 | ; |
| 19768 | return 0; |
| 19769 | } |
| 19770 | _ACEOF |
| 19771 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19772 | if { (ac_try="$ac_link" |
| 19773 | case "(($ac_try" in |
| 19774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19775 | *) ac_try_echo=$ac_try;; |
| 19776 | esac |
| 19777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19778 | (eval "$ac_link") 2>conftest.er1 |
| 19779 | ac_status=$? |
| 19780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19781 | rm -f conftest.er1 |
| 19782 | cat conftest.err >&5 |
| 19783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19784 | (exit $ac_status); } && |
| 19785 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19786 | { (case "(($ac_try" in |
| 19787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19788 | *) ac_try_echo=$ac_try;; |
| 19789 | esac |
| 19790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19791 | (eval "$ac_try") 2>&5 |
| 19792 | ac_status=$? |
| 19793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19794 | (exit $ac_status); }; } && |
| 19795 | { ac_try='test -s conftest$ac_exeext' |
| 19796 | { (case "(($ac_try" in |
| 19797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19798 | *) ac_try_echo=$ac_try;; |
| 19799 | esac |
| 19800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19801 | (eval "$ac_try") 2>&5 |
| 19802 | ac_status=$? |
| 19803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19804 | (exit $ac_status); }; }; then |
| 19805 | ac_cv_lib_gcc___ashrdi3=yes |
| 19806 | else |
| 19807 | echo "$as_me: failed program was:" >&5 |
| 19808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19809 | |
| 19810 | ac_cv_lib_gcc___ashrdi3=no |
| 19811 | fi |
| 19812 | |
| 19813 | rm -f core conftest.err conftest.$ac_objext \ |
| 19814 | conftest$ac_exeext conftest.$ac_ext |
| 19815 | LIBS=$ac_check_lib_save_LIBS |
| 19816 | fi |
| 19817 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 |
| 19818 | echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } |
| 19819 | if test $ac_cv_lib_gcc___ashrdi3 = yes; then |
| 19820 | |
| 19821 | cat >>confdefs.h <<\_ACEOF |
| 19822 | #define HAVE___ASHRDI3 1 |
| 19823 | _ACEOF |
| 19824 | |
| 19825 | fi |
| 19826 | |
| 19827 | { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 |
| 19828 | echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } |
| 19829 | if test "${ac_cv_lib_gcc___divdi3+set}" = set; then |
| 19830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19831 | else |
| 19832 | ac_check_lib_save_LIBS=$LIBS |
| 19833 | LIBS="-lgcc $LIBS" |
| 19834 | cat >conftest.$ac_ext <<_ACEOF |
| 19835 | /* confdefs.h. */ |
| 19836 | _ACEOF |
| 19837 | cat confdefs.h >>conftest.$ac_ext |
| 19838 | cat >>conftest.$ac_ext <<_ACEOF |
| 19839 | /* end confdefs.h. */ |
| 19840 | |
| 19841 | /* Override any GCC internal prototype to avoid an error. |
| 19842 | Use char because int might match the return type of a GCC |
| 19843 | builtin and then its argument prototype would still apply. */ |
| 19844 | #ifdef __cplusplus |
| 19845 | extern "C" |
| 19846 | #endif |
| 19847 | char __divdi3 (); |
| 19848 | int |
| 19849 | main () |
| 19850 | { |
| 19851 | return __divdi3 (); |
| 19852 | ; |
| 19853 | return 0; |
| 19854 | } |
| 19855 | _ACEOF |
| 19856 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19857 | if { (ac_try="$ac_link" |
| 19858 | case "(($ac_try" in |
| 19859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19860 | *) ac_try_echo=$ac_try;; |
| 19861 | esac |
| 19862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19863 | (eval "$ac_link") 2>conftest.er1 |
| 19864 | ac_status=$? |
| 19865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19866 | rm -f conftest.er1 |
| 19867 | cat conftest.err >&5 |
| 19868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19869 | (exit $ac_status); } && |
| 19870 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19871 | { (case "(($ac_try" in |
| 19872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19873 | *) ac_try_echo=$ac_try;; |
| 19874 | esac |
| 19875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19876 | (eval "$ac_try") 2>&5 |
| 19877 | ac_status=$? |
| 19878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19879 | (exit $ac_status); }; } && |
| 19880 | { ac_try='test -s conftest$ac_exeext' |
| 19881 | { (case "(($ac_try" in |
| 19882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19883 | *) ac_try_echo=$ac_try;; |
| 19884 | esac |
| 19885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19886 | (eval "$ac_try") 2>&5 |
| 19887 | ac_status=$? |
| 19888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19889 | (exit $ac_status); }; }; then |
| 19890 | ac_cv_lib_gcc___divdi3=yes |
| 19891 | else |
| 19892 | echo "$as_me: failed program was:" >&5 |
| 19893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19894 | |
| 19895 | ac_cv_lib_gcc___divdi3=no |
| 19896 | fi |
| 19897 | |
| 19898 | rm -f core conftest.err conftest.$ac_objext \ |
| 19899 | conftest$ac_exeext conftest.$ac_ext |
| 19900 | LIBS=$ac_check_lib_save_LIBS |
| 19901 | fi |
| 19902 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 |
| 19903 | echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } |
| 19904 | if test $ac_cv_lib_gcc___divdi3 = yes; then |
| 19905 | |
| 19906 | cat >>confdefs.h <<\_ACEOF |
| 19907 | #define HAVE___DIVDI3 1 |
| 19908 | _ACEOF |
| 19909 | |
| 19910 | fi |
| 19911 | |
| 19912 | { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 |
| 19913 | echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } |
| 19914 | if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then |
| 19915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19916 | else |
| 19917 | ac_check_lib_save_LIBS=$LIBS |
| 19918 | LIBS="-lgcc $LIBS" |
| 19919 | cat >conftest.$ac_ext <<_ACEOF |
| 19920 | /* confdefs.h. */ |
| 19921 | _ACEOF |
| 19922 | cat confdefs.h >>conftest.$ac_ext |
| 19923 | cat >>conftest.$ac_ext <<_ACEOF |
| 19924 | /* end confdefs.h. */ |
| 19925 | |
| 19926 | /* Override any GCC internal prototype to avoid an error. |
| 19927 | Use char because int might match the return type of a GCC |
| 19928 | builtin and then its argument prototype would still apply. */ |
| 19929 | #ifdef __cplusplus |
| 19930 | extern "C" |
| 19931 | #endif |
| 19932 | char __fixdfdi (); |
| 19933 | int |
| 19934 | main () |
| 19935 | { |
| 19936 | return __fixdfdi (); |
| 19937 | ; |
| 19938 | return 0; |
| 19939 | } |
| 19940 | _ACEOF |
| 19941 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19942 | if { (ac_try="$ac_link" |
| 19943 | case "(($ac_try" in |
| 19944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19945 | *) ac_try_echo=$ac_try;; |
| 19946 | esac |
| 19947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19948 | (eval "$ac_link") 2>conftest.er1 |
| 19949 | ac_status=$? |
| 19950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19951 | rm -f conftest.er1 |
| 19952 | cat conftest.err >&5 |
| 19953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19954 | (exit $ac_status); } && |
| 19955 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19956 | { (case "(($ac_try" in |
| 19957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19958 | *) ac_try_echo=$ac_try;; |
| 19959 | esac |
| 19960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19961 | (eval "$ac_try") 2>&5 |
| 19962 | ac_status=$? |
| 19963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19964 | (exit $ac_status); }; } && |
| 19965 | { ac_try='test -s conftest$ac_exeext' |
| 19966 | { (case "(($ac_try" in |
| 19967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19968 | *) ac_try_echo=$ac_try;; |
| 19969 | esac |
| 19970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19971 | (eval "$ac_try") 2>&5 |
| 19972 | ac_status=$? |
| 19973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19974 | (exit $ac_status); }; }; then |
| 19975 | ac_cv_lib_gcc___fixdfdi=yes |
| 19976 | else |
| 19977 | echo "$as_me: failed program was:" >&5 |
| 19978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19979 | |
| 19980 | ac_cv_lib_gcc___fixdfdi=no |
| 19981 | fi |
| 19982 | |
| 19983 | rm -f core conftest.err conftest.$ac_objext \ |
| 19984 | conftest$ac_exeext conftest.$ac_ext |
| 19985 | LIBS=$ac_check_lib_save_LIBS |
| 19986 | fi |
| 19987 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 |
| 19988 | echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } |
| 19989 | if test $ac_cv_lib_gcc___fixdfdi = yes; then |
| 19990 | |
| 19991 | cat >>confdefs.h <<\_ACEOF |
| 19992 | #define HAVE___FIXDFDI 1 |
| 19993 | _ACEOF |
| 19994 | |
| 19995 | fi |
| 19996 | |
| 19997 | { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 |
| 19998 | echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } |
| 19999 | if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then |
| 20000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20001 | else |
| 20002 | ac_check_lib_save_LIBS=$LIBS |
| 20003 | LIBS="-lgcc $LIBS" |
| 20004 | cat >conftest.$ac_ext <<_ACEOF |
| 20005 | /* confdefs.h. */ |
| 20006 | _ACEOF |
| 20007 | cat confdefs.h >>conftest.$ac_ext |
| 20008 | cat >>conftest.$ac_ext <<_ACEOF |
| 20009 | /* end confdefs.h. */ |
| 20010 | |
| 20011 | /* Override any GCC internal prototype to avoid an error. |
| 20012 | Use char because int might match the return type of a GCC |
| 20013 | builtin and then its argument prototype would still apply. */ |
| 20014 | #ifdef __cplusplus |
| 20015 | extern "C" |
| 20016 | #endif |
| 20017 | char __fixsfdi (); |
| 20018 | int |
| 20019 | main () |
| 20020 | { |
| 20021 | return __fixsfdi (); |
| 20022 | ; |
| 20023 | return 0; |
| 20024 | } |
| 20025 | _ACEOF |
| 20026 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20027 | if { (ac_try="$ac_link" |
| 20028 | case "(($ac_try" in |
| 20029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20030 | *) ac_try_echo=$ac_try;; |
| 20031 | esac |
| 20032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20033 | (eval "$ac_link") 2>conftest.er1 |
| 20034 | ac_status=$? |
| 20035 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20036 | rm -f conftest.er1 |
| 20037 | cat conftest.err >&5 |
| 20038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20039 | (exit $ac_status); } && |
| 20040 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20041 | { (case "(($ac_try" in |
| 20042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20043 | *) ac_try_echo=$ac_try;; |
| 20044 | esac |
| 20045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20046 | (eval "$ac_try") 2>&5 |
| 20047 | ac_status=$? |
| 20048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20049 | (exit $ac_status); }; } && |
| 20050 | { ac_try='test -s conftest$ac_exeext' |
| 20051 | { (case "(($ac_try" in |
| 20052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20053 | *) ac_try_echo=$ac_try;; |
| 20054 | esac |
| 20055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20056 | (eval "$ac_try") 2>&5 |
| 20057 | ac_status=$? |
| 20058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20059 | (exit $ac_status); }; }; then |
| 20060 | ac_cv_lib_gcc___fixsfdi=yes |
| 20061 | else |
| 20062 | echo "$as_me: failed program was:" >&5 |
| 20063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20064 | |
| 20065 | ac_cv_lib_gcc___fixsfdi=no |
| 20066 | fi |
| 20067 | |
| 20068 | rm -f core conftest.err conftest.$ac_objext \ |
| 20069 | conftest$ac_exeext conftest.$ac_ext |
| 20070 | LIBS=$ac_check_lib_save_LIBS |
| 20071 | fi |
| 20072 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 |
| 20073 | echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } |
| 20074 | if test $ac_cv_lib_gcc___fixsfdi = yes; then |
| 20075 | |
| 20076 | cat >>confdefs.h <<\_ACEOF |
| 20077 | #define HAVE___FIXSFDI 1 |
| 20078 | _ACEOF |
| 20079 | |
| 20080 | fi |
| 20081 | |
| 20082 | { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 |
| 20083 | echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } |
| 20084 | if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then |
| 20085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20086 | else |
| 20087 | ac_check_lib_save_LIBS=$LIBS |
| 20088 | LIBS="-lgcc $LIBS" |
| 20089 | cat >conftest.$ac_ext <<_ACEOF |
| 20090 | /* confdefs.h. */ |
| 20091 | _ACEOF |
| 20092 | cat confdefs.h >>conftest.$ac_ext |
| 20093 | cat >>conftest.$ac_ext <<_ACEOF |
| 20094 | /* end confdefs.h. */ |
| 20095 | |
| 20096 | /* Override any GCC internal prototype to avoid an error. |
| 20097 | Use char because int might match the return type of a GCC |
| 20098 | builtin and then its argument prototype would still apply. */ |
| 20099 | #ifdef __cplusplus |
| 20100 | extern "C" |
| 20101 | #endif |
| 20102 | char __floatdidf (); |
| 20103 | int |
| 20104 | main () |
| 20105 | { |
| 20106 | return __floatdidf (); |
| 20107 | ; |
| 20108 | return 0; |
| 20109 | } |
| 20110 | _ACEOF |
| 20111 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20112 | if { (ac_try="$ac_link" |
| 20113 | case "(($ac_try" in |
| 20114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20115 | *) ac_try_echo=$ac_try;; |
| 20116 | esac |
| 20117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20118 | (eval "$ac_link") 2>conftest.er1 |
| 20119 | ac_status=$? |
| 20120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20121 | rm -f conftest.er1 |
| 20122 | cat conftest.err >&5 |
| 20123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20124 | (exit $ac_status); } && |
| 20125 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20126 | { (case "(($ac_try" in |
| 20127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20128 | *) ac_try_echo=$ac_try;; |
| 20129 | esac |
| 20130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20131 | (eval "$ac_try") 2>&5 |
| 20132 | ac_status=$? |
| 20133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20134 | (exit $ac_status); }; } && |
| 20135 | { ac_try='test -s conftest$ac_exeext' |
| 20136 | { (case "(($ac_try" in |
| 20137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20138 | *) ac_try_echo=$ac_try;; |
| 20139 | esac |
| 20140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20141 | (eval "$ac_try") 2>&5 |
| 20142 | ac_status=$? |
| 20143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20144 | (exit $ac_status); }; }; then |
| 20145 | ac_cv_lib_gcc___floatdidf=yes |
| 20146 | else |
| 20147 | echo "$as_me: failed program was:" >&5 |
| 20148 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20149 | |
| 20150 | ac_cv_lib_gcc___floatdidf=no |
| 20151 | fi |
| 20152 | |
| 20153 | rm -f core conftest.err conftest.$ac_objext \ |
| 20154 | conftest$ac_exeext conftest.$ac_ext |
| 20155 | LIBS=$ac_check_lib_save_LIBS |
| 20156 | fi |
| 20157 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 |
| 20158 | echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } |
| 20159 | if test $ac_cv_lib_gcc___floatdidf = yes; then |
| 20160 | |
| 20161 | cat >>confdefs.h <<\_ACEOF |
| 20162 | #define HAVE___FLOATDIDF 1 |
| 20163 | _ACEOF |
| 20164 | |
| 20165 | fi |
| 20166 | |
| 20167 | { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 |
| 20168 | echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } |
| 20169 | if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then |
| 20170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20171 | else |
| 20172 | ac_check_lib_save_LIBS=$LIBS |
| 20173 | LIBS="-lgcc $LIBS" |
| 20174 | cat >conftest.$ac_ext <<_ACEOF |
| 20175 | /* confdefs.h. */ |
| 20176 | _ACEOF |
| 20177 | cat confdefs.h >>conftest.$ac_ext |
| 20178 | cat >>conftest.$ac_ext <<_ACEOF |
| 20179 | /* end confdefs.h. */ |
| 20180 | |
| 20181 | /* Override any GCC internal prototype to avoid an error. |
| 20182 | Use char because int might match the return type of a GCC |
| 20183 | builtin and then its argument prototype would still apply. */ |
| 20184 | #ifdef __cplusplus |
| 20185 | extern "C" |
| 20186 | #endif |
| 20187 | char __lshrdi3 (); |
| 20188 | int |
| 20189 | main () |
| 20190 | { |
| 20191 | return __lshrdi3 (); |
| 20192 | ; |
| 20193 | return 0; |
| 20194 | } |
| 20195 | _ACEOF |
| 20196 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20197 | if { (ac_try="$ac_link" |
| 20198 | case "(($ac_try" in |
| 20199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20200 | *) ac_try_echo=$ac_try;; |
| 20201 | esac |
| 20202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20203 | (eval "$ac_link") 2>conftest.er1 |
| 20204 | ac_status=$? |
| 20205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20206 | rm -f conftest.er1 |
| 20207 | cat conftest.err >&5 |
| 20208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20209 | (exit $ac_status); } && |
| 20210 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20211 | { (case "(($ac_try" in |
| 20212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20213 | *) ac_try_echo=$ac_try;; |
| 20214 | esac |
| 20215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20216 | (eval "$ac_try") 2>&5 |
| 20217 | ac_status=$? |
| 20218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20219 | (exit $ac_status); }; } && |
| 20220 | { ac_try='test -s conftest$ac_exeext' |
| 20221 | { (case "(($ac_try" in |
| 20222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20223 | *) ac_try_echo=$ac_try;; |
| 20224 | esac |
| 20225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20226 | (eval "$ac_try") 2>&5 |
| 20227 | ac_status=$? |
| 20228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20229 | (exit $ac_status); }; }; then |
| 20230 | ac_cv_lib_gcc___lshrdi3=yes |
| 20231 | else |
| 20232 | echo "$as_me: failed program was:" >&5 |
| 20233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20234 | |
| 20235 | ac_cv_lib_gcc___lshrdi3=no |
| 20236 | fi |
| 20237 | |
| 20238 | rm -f core conftest.err conftest.$ac_objext \ |
| 20239 | conftest$ac_exeext conftest.$ac_ext |
| 20240 | LIBS=$ac_check_lib_save_LIBS |
| 20241 | fi |
| 20242 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 |
| 20243 | echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } |
| 20244 | if test $ac_cv_lib_gcc___lshrdi3 = yes; then |
| 20245 | |
| 20246 | cat >>confdefs.h <<\_ACEOF |
| 20247 | #define HAVE___LSHRDI3 1 |
| 20248 | _ACEOF |
| 20249 | |
| 20250 | fi |
| 20251 | |
| 20252 | { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 |
| 20253 | echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } |
| 20254 | if test "${ac_cv_lib_gcc___moddi3+set}" = set; then |
| 20255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20256 | else |
| 20257 | ac_check_lib_save_LIBS=$LIBS |
| 20258 | LIBS="-lgcc $LIBS" |
| 20259 | cat >conftest.$ac_ext <<_ACEOF |
| 20260 | /* confdefs.h. */ |
| 20261 | _ACEOF |
| 20262 | cat confdefs.h >>conftest.$ac_ext |
| 20263 | cat >>conftest.$ac_ext <<_ACEOF |
| 20264 | /* end confdefs.h. */ |
| 20265 | |
| 20266 | /* Override any GCC internal prototype to avoid an error. |
| 20267 | Use char because int might match the return type of a GCC |
| 20268 | builtin and then its argument prototype would still apply. */ |
| 20269 | #ifdef __cplusplus |
| 20270 | extern "C" |
| 20271 | #endif |
| 20272 | char __moddi3 (); |
| 20273 | int |
| 20274 | main () |
| 20275 | { |
| 20276 | return __moddi3 (); |
| 20277 | ; |
| 20278 | return 0; |
| 20279 | } |
| 20280 | _ACEOF |
| 20281 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20282 | if { (ac_try="$ac_link" |
| 20283 | case "(($ac_try" in |
| 20284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20285 | *) ac_try_echo=$ac_try;; |
| 20286 | esac |
| 20287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20288 | (eval "$ac_link") 2>conftest.er1 |
| 20289 | ac_status=$? |
| 20290 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20291 | rm -f conftest.er1 |
| 20292 | cat conftest.err >&5 |
| 20293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20294 | (exit $ac_status); } && |
| 20295 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20296 | { (case "(($ac_try" in |
| 20297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20298 | *) ac_try_echo=$ac_try;; |
| 20299 | esac |
| 20300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20301 | (eval "$ac_try") 2>&5 |
| 20302 | ac_status=$? |
| 20303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20304 | (exit $ac_status); }; } && |
| 20305 | { ac_try='test -s conftest$ac_exeext' |
| 20306 | { (case "(($ac_try" in |
| 20307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20308 | *) ac_try_echo=$ac_try;; |
| 20309 | esac |
| 20310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20311 | (eval "$ac_try") 2>&5 |
| 20312 | ac_status=$? |
| 20313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20314 | (exit $ac_status); }; }; then |
| 20315 | ac_cv_lib_gcc___moddi3=yes |
| 20316 | else |
| 20317 | echo "$as_me: failed program was:" >&5 |
| 20318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20319 | |
| 20320 | ac_cv_lib_gcc___moddi3=no |
| 20321 | fi |
| 20322 | |
| 20323 | rm -f core conftest.err conftest.$ac_objext \ |
| 20324 | conftest$ac_exeext conftest.$ac_ext |
| 20325 | LIBS=$ac_check_lib_save_LIBS |
| 20326 | fi |
| 20327 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 |
| 20328 | echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } |
| 20329 | if test $ac_cv_lib_gcc___moddi3 = yes; then |
| 20330 | |
| 20331 | cat >>confdefs.h <<\_ACEOF |
| 20332 | #define HAVE___MODDI3 1 |
| 20333 | _ACEOF |
| 20334 | |
| 20335 | fi |
| 20336 | |
| 20337 | { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 |
| 20338 | echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } |
| 20339 | if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then |
| 20340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20341 | else |
| 20342 | ac_check_lib_save_LIBS=$LIBS |
| 20343 | LIBS="-lgcc $LIBS" |
| 20344 | cat >conftest.$ac_ext <<_ACEOF |
| 20345 | /* confdefs.h. */ |
| 20346 | _ACEOF |
| 20347 | cat confdefs.h >>conftest.$ac_ext |
| 20348 | cat >>conftest.$ac_ext <<_ACEOF |
| 20349 | /* end confdefs.h. */ |
| 20350 | |
| 20351 | /* Override any GCC internal prototype to avoid an error. |
| 20352 | Use char because int might match the return type of a GCC |
| 20353 | builtin and then its argument prototype would still apply. */ |
| 20354 | #ifdef __cplusplus |
| 20355 | extern "C" |
| 20356 | #endif |
| 20357 | char __udivdi3 (); |
| 20358 | int |
| 20359 | main () |
| 20360 | { |
| 20361 | return __udivdi3 (); |
| 20362 | ; |
| 20363 | return 0; |
| 20364 | } |
| 20365 | _ACEOF |
| 20366 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20367 | if { (ac_try="$ac_link" |
| 20368 | case "(($ac_try" in |
| 20369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20370 | *) ac_try_echo=$ac_try;; |
| 20371 | esac |
| 20372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20373 | (eval "$ac_link") 2>conftest.er1 |
| 20374 | ac_status=$? |
| 20375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20376 | rm -f conftest.er1 |
| 20377 | cat conftest.err >&5 |
| 20378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20379 | (exit $ac_status); } && |
| 20380 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20381 | { (case "(($ac_try" in |
| 20382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20383 | *) ac_try_echo=$ac_try;; |
| 20384 | esac |
| 20385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20386 | (eval "$ac_try") 2>&5 |
| 20387 | ac_status=$? |
| 20388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20389 | (exit $ac_status); }; } && |
| 20390 | { ac_try='test -s conftest$ac_exeext' |
| 20391 | { (case "(($ac_try" in |
| 20392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20393 | *) ac_try_echo=$ac_try;; |
| 20394 | esac |
| 20395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20396 | (eval "$ac_try") 2>&5 |
| 20397 | ac_status=$? |
| 20398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20399 | (exit $ac_status); }; }; then |
| 20400 | ac_cv_lib_gcc___udivdi3=yes |
| 20401 | else |
| 20402 | echo "$as_me: failed program was:" >&5 |
| 20403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20404 | |
| 20405 | ac_cv_lib_gcc___udivdi3=no |
| 20406 | fi |
| 20407 | |
| 20408 | rm -f core conftest.err conftest.$ac_objext \ |
| 20409 | conftest$ac_exeext conftest.$ac_ext |
| 20410 | LIBS=$ac_check_lib_save_LIBS |
| 20411 | fi |
| 20412 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 |
| 20413 | echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } |
| 20414 | if test $ac_cv_lib_gcc___udivdi3 = yes; then |
| 20415 | |
| 20416 | cat >>confdefs.h <<\_ACEOF |
| 20417 | #define HAVE___UDIVDI3 1 |
| 20418 | _ACEOF |
| 20419 | |
| 20420 | fi |
| 20421 | |
| 20422 | { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 |
| 20423 | echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } |
| 20424 | if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then |
| 20425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20426 | else |
| 20427 | ac_check_lib_save_LIBS=$LIBS |
| 20428 | LIBS="-lgcc $LIBS" |
| 20429 | cat >conftest.$ac_ext <<_ACEOF |
| 20430 | /* confdefs.h. */ |
| 20431 | _ACEOF |
| 20432 | cat confdefs.h >>conftest.$ac_ext |
| 20433 | cat >>conftest.$ac_ext <<_ACEOF |
| 20434 | /* end confdefs.h. */ |
| 20435 | |
| 20436 | /* Override any GCC internal prototype to avoid an error. |
| 20437 | Use char because int might match the return type of a GCC |
| 20438 | builtin and then its argument prototype would still apply. */ |
| 20439 | #ifdef __cplusplus |
| 20440 | extern "C" |
| 20441 | #endif |
| 20442 | char __umoddi3 (); |
| 20443 | int |
| 20444 | main () |
| 20445 | { |
| 20446 | return __umoddi3 (); |
| 20447 | ; |
| 20448 | return 0; |
| 20449 | } |
| 20450 | _ACEOF |
| 20451 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20452 | if { (ac_try="$ac_link" |
| 20453 | case "(($ac_try" in |
| 20454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20455 | *) ac_try_echo=$ac_try;; |
| 20456 | esac |
| 20457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20458 | (eval "$ac_link") 2>conftest.er1 |
| 20459 | ac_status=$? |
| 20460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20461 | rm -f conftest.er1 |
| 20462 | cat conftest.err >&5 |
| 20463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20464 | (exit $ac_status); } && |
| 20465 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20466 | { (case "(($ac_try" in |
| 20467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20468 | *) ac_try_echo=$ac_try;; |
| 20469 | esac |
| 20470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20471 | (eval "$ac_try") 2>&5 |
| 20472 | ac_status=$? |
| 20473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20474 | (exit $ac_status); }; } && |
| 20475 | { ac_try='test -s conftest$ac_exeext' |
| 20476 | { (case "(($ac_try" in |
| 20477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20478 | *) ac_try_echo=$ac_try;; |
| 20479 | esac |
| 20480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20481 | (eval "$ac_try") 2>&5 |
| 20482 | ac_status=$? |
| 20483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20484 | (exit $ac_status); }; }; then |
| 20485 | ac_cv_lib_gcc___umoddi3=yes |
| 20486 | else |
| 20487 | echo "$as_me: failed program was:" >&5 |
| 20488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20489 | |
| 20490 | ac_cv_lib_gcc___umoddi3=no |
| 20491 | fi |
| 20492 | |
| 20493 | rm -f core conftest.err conftest.$ac_objext \ |
| 20494 | conftest$ac_exeext conftest.$ac_ext |
| 20495 | LIBS=$ac_check_lib_save_LIBS |
| 20496 | fi |
| 20497 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 |
| 20498 | echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } |
| 20499 | if test $ac_cv_lib_gcc___umoddi3 = yes; then |
| 20500 | |
| 20501 | cat >>confdefs.h <<\_ACEOF |
| 20502 | #define HAVE___UMODDI3 1 |
| 20503 | _ACEOF |
| 20504 | |
| 20505 | fi |
| 20506 | |
| 20507 | |
| 20508 | { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 |
| 20509 | echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } |
| 20510 | if test "${ac_cv_lib_gcc___main+set}" = set; then |
| 20511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20512 | else |
| 20513 | ac_check_lib_save_LIBS=$LIBS |
| 20514 | LIBS="-lgcc $LIBS" |
| 20515 | cat >conftest.$ac_ext <<_ACEOF |
| 20516 | /* confdefs.h. */ |
| 20517 | _ACEOF |
| 20518 | cat confdefs.h >>conftest.$ac_ext |
| 20519 | cat >>conftest.$ac_ext <<_ACEOF |
| 20520 | /* end confdefs.h. */ |
| 20521 | |
| 20522 | /* Override any GCC internal prototype to avoid an error. |
| 20523 | Use char because int might match the return type of a GCC |
| 20524 | builtin and then its argument prototype would still apply. */ |
| 20525 | #ifdef __cplusplus |
| 20526 | extern "C" |
| 20527 | #endif |
| 20528 | char __main (); |
| 20529 | int |
| 20530 | main () |
| 20531 | { |
| 20532 | return __main (); |
| 20533 | ; |
| 20534 | return 0; |
| 20535 | } |
| 20536 | _ACEOF |
| 20537 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20538 | if { (ac_try="$ac_link" |
| 20539 | case "(($ac_try" in |
| 20540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20541 | *) ac_try_echo=$ac_try;; |
| 20542 | esac |
| 20543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20544 | (eval "$ac_link") 2>conftest.er1 |
| 20545 | ac_status=$? |
| 20546 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20547 | rm -f conftest.er1 |
| 20548 | cat conftest.err >&5 |
| 20549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20550 | (exit $ac_status); } && |
| 20551 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20552 | { (case "(($ac_try" in |
| 20553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20554 | *) ac_try_echo=$ac_try;; |
| 20555 | esac |
| 20556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20557 | (eval "$ac_try") 2>&5 |
| 20558 | ac_status=$? |
| 20559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20560 | (exit $ac_status); }; } && |
| 20561 | { ac_try='test -s conftest$ac_exeext' |
| 20562 | { (case "(($ac_try" in |
| 20563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20564 | *) ac_try_echo=$ac_try;; |
| 20565 | esac |
| 20566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20567 | (eval "$ac_try") 2>&5 |
| 20568 | ac_status=$? |
| 20569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20570 | (exit $ac_status); }; }; then |
| 20571 | ac_cv_lib_gcc___main=yes |
| 20572 | else |
| 20573 | echo "$as_me: failed program was:" >&5 |
| 20574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20575 | |
| 20576 | ac_cv_lib_gcc___main=no |
| 20577 | fi |
| 20578 | |
| 20579 | rm -f core conftest.err conftest.$ac_objext \ |
| 20580 | conftest$ac_exeext conftest.$ac_ext |
| 20581 | LIBS=$ac_check_lib_save_LIBS |
| 20582 | fi |
| 20583 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 |
| 20584 | echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } |
| 20585 | if test $ac_cv_lib_gcc___main = yes; then |
| 20586 | |
| 20587 | cat >>confdefs.h <<\_ACEOF |
| 20588 | #define HAVE___MAIN 1 |
| 20589 | _ACEOF |
| 20590 | |
| 20591 | fi |
| 20592 | |
| 20593 | { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 |
| 20594 | echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } |
| 20595 | if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then |
| 20596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20597 | else |
| 20598 | ac_check_lib_save_LIBS=$LIBS |
| 20599 | LIBS="-lgcc $LIBS" |
| 20600 | cat >conftest.$ac_ext <<_ACEOF |
| 20601 | /* confdefs.h. */ |
| 20602 | _ACEOF |
| 20603 | cat confdefs.h >>conftest.$ac_ext |
| 20604 | cat >>conftest.$ac_ext <<_ACEOF |
| 20605 | /* end confdefs.h. */ |
| 20606 | |
| 20607 | /* Override any GCC internal prototype to avoid an error. |
| 20608 | Use char because int might match the return type of a GCC |
| 20609 | builtin and then its argument prototype would still apply. */ |
| 20610 | #ifdef __cplusplus |
| 20611 | extern "C" |
| 20612 | #endif |
| 20613 | char __cmpdi2 (); |
| 20614 | int |
| 20615 | main () |
| 20616 | { |
| 20617 | return __cmpdi2 (); |
| 20618 | ; |
| 20619 | return 0; |
| 20620 | } |
| 20621 | _ACEOF |
| 20622 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20623 | if { (ac_try="$ac_link" |
| 20624 | case "(($ac_try" in |
| 20625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20626 | *) ac_try_echo=$ac_try;; |
| 20627 | esac |
| 20628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20629 | (eval "$ac_link") 2>conftest.er1 |
| 20630 | ac_status=$? |
| 20631 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20632 | rm -f conftest.er1 |
| 20633 | cat conftest.err >&5 |
| 20634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20635 | (exit $ac_status); } && |
| 20636 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20637 | { (case "(($ac_try" in |
| 20638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20639 | *) ac_try_echo=$ac_try;; |
| 20640 | esac |
| 20641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20642 | (eval "$ac_try") 2>&5 |
| 20643 | ac_status=$? |
| 20644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20645 | (exit $ac_status); }; } && |
| 20646 | { ac_try='test -s conftest$ac_exeext' |
| 20647 | { (case "(($ac_try" in |
| 20648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20649 | *) ac_try_echo=$ac_try;; |
| 20650 | esac |
| 20651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20652 | (eval "$ac_try") 2>&5 |
| 20653 | ac_status=$? |
| 20654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20655 | (exit $ac_status); }; }; then |
| 20656 | ac_cv_lib_gcc___cmpdi2=yes |
| 20657 | else |
| 20658 | echo "$as_me: failed program was:" >&5 |
| 20659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20660 | |
| 20661 | ac_cv_lib_gcc___cmpdi2=no |
| 20662 | fi |
| 20663 | |
| 20664 | rm -f core conftest.err conftest.$ac_objext \ |
| 20665 | conftest$ac_exeext conftest.$ac_ext |
| 20666 | LIBS=$ac_check_lib_save_LIBS |
| 20667 | fi |
| 20668 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 |
| 20669 | echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } |
| 20670 | if test $ac_cv_lib_gcc___cmpdi2 = yes; then |
| 20671 | |
| 20672 | cat >>confdefs.h <<\_ACEOF |
| 20673 | #define HAVE___CMPDI2 1 |
| 20674 | _ACEOF |
| 20675 | |
| 20676 | fi |
| 20677 | |
| 20678 | fi |
| 20679 | |
NAKAMURA Takumi | 6073a05 | 2011-05-01 13:29:49 +0000 | [diff] [blame] | 20680 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 20681 | { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 |
| 20682 | echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } |
| 20683 | cat >conftest.$ac_ext <<_ACEOF |
| 20684 | #include <windows.h> |
| 20685 | #include <imagehlp.h> |
| 20686 | extern void foo(PENUMLOADED_MODULES_CALLBACK); |
| 20687 | extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); |
| 20688 | _ACEOF |
| 20689 | rm -f conftest.$ac_objext |
| 20690 | if { (ac_try="$ac_compile" |
| 20691 | case "(($ac_try" in |
| 20692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20693 | *) ac_try_echo=$ac_try;; |
| 20694 | esac |
| 20695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20696 | (eval "$ac_compile") 2>conftest.er1 |
| 20697 | ac_status=$? |
| 20698 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20699 | rm -f conftest.er1 |
| 20700 | cat conftest.err >&5 |
| 20701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20702 | (exit $ac_status); } && |
| 20703 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20704 | { (case "(($ac_try" in |
| 20705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20706 | *) ac_try_echo=$ac_try;; |
| 20707 | esac |
| 20708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20709 | (eval "$ac_try") 2>&5 |
| 20710 | ac_status=$? |
| 20711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20712 | (exit $ac_status); }; } && |
| 20713 | { ac_try='test -s conftest.$ac_objext' |
| 20714 | { (case "(($ac_try" in |
| 20715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20716 | *) ac_try_echo=$ac_try;; |
| 20717 | esac |
| 20718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20719 | (eval "$ac_try") 2>&5 |
| 20720 | ac_status=$? |
| 20721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20722 | (exit $ac_status); }; }; then |
| 20723 | |
| 20724 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20725 | echo "${ECHO_T}yes" >&6; } |
| 20726 | llvm_cv_win32_elmcb_pcstr="PCSTR" |
| 20727 | |
| 20728 | else |
| 20729 | echo "$as_me: failed program was:" >&5 |
| 20730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20731 | |
| 20732 | |
| 20733 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20734 | echo "${ECHO_T}no" >&6; } |
| 20735 | llvm_cv_win32_elmcb_pcstr="PSTR" |
| 20736 | |
| 20737 | fi |
| 20738 | |
| 20739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20740 | |
| 20741 | cat >>confdefs.h <<_ACEOF |
| 20742 | #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr |
| 20743 | _ACEOF |
| 20744 | |
| 20745 | fi |
| 20746 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20747 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20748 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 20749 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 20750 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 20751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20752 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20753 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20754 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20755 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20756 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20757 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20758 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20759 | cat >conftest.$ac_ext <<_ACEOF |
| 20760 | /* confdefs.h. */ |
| 20761 | _ACEOF |
| 20762 | cat confdefs.h >>conftest.$ac_ext |
| 20763 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20764 | /* end confdefs.h. */ |
| 20765 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20766 | int |
| 20767 | main () |
| 20768 | { |
| 20769 | float f; isnan(f); |
| 20770 | ; |
| 20771 | return 0; |
| 20772 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20773 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20774 | rm -f conftest.$ac_objext |
| 20775 | if { (ac_try="$ac_compile" |
| 20776 | case "(($ac_try" in |
| 20777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20778 | *) ac_try_echo=$ac_try;; |
| 20779 | esac |
| 20780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20781 | (eval "$ac_compile") 2>conftest.er1 |
| 20782 | ac_status=$? |
| 20783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20784 | rm -f conftest.er1 |
| 20785 | cat conftest.err >&5 |
| 20786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20787 | (exit $ac_status); } && |
| 20788 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20789 | { (case "(($ac_try" in |
| 20790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20791 | *) ac_try_echo=$ac_try;; |
| 20792 | esac |
| 20793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20794 | (eval "$ac_try") 2>&5 |
| 20795 | ac_status=$? |
| 20796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20797 | (exit $ac_status); }; } && |
| 20798 | { ac_try='test -s conftest.$ac_objext' |
| 20799 | { (case "(($ac_try" in |
| 20800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20801 | *) ac_try_echo=$ac_try;; |
| 20802 | esac |
| 20803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20804 | (eval "$ac_try") 2>&5 |
| 20805 | ac_status=$? |
| 20806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20807 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20808 | ac_cv_func_isnan_in_math_h=yes |
| 20809 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20810 | echo "$as_me: failed program was:" >&5 |
| 20811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20812 | |
| 20813 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20814 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20815 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20817 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20818 | ac_cpp='$CPP $CPPFLAGS' |
| 20819 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20820 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20821 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20822 | |
| 20823 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20824 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 20825 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20826 | |
| 20827 | |
| 20828 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20829 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20830 | cat >>confdefs.h <<\_ACEOF |
| 20831 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 20832 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20833 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20834 | fi |
| 20835 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20836 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 20837 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 20838 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 20839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20840 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20841 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20842 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20843 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20844 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20845 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20846 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20847 | cat >conftest.$ac_ext <<_ACEOF |
| 20848 | /* confdefs.h. */ |
| 20849 | _ACEOF |
| 20850 | cat confdefs.h >>conftest.$ac_ext |
| 20851 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20852 | /* end confdefs.h. */ |
| 20853 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20854 | int |
| 20855 | main () |
| 20856 | { |
| 20857 | float f; isnan(f); |
| 20858 | ; |
| 20859 | return 0; |
| 20860 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20861 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20862 | rm -f conftest.$ac_objext |
| 20863 | if { (ac_try="$ac_compile" |
| 20864 | case "(($ac_try" in |
| 20865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20866 | *) ac_try_echo=$ac_try;; |
| 20867 | esac |
| 20868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20869 | (eval "$ac_compile") 2>conftest.er1 |
| 20870 | ac_status=$? |
| 20871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20872 | rm -f conftest.er1 |
| 20873 | cat conftest.err >&5 |
| 20874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20875 | (exit $ac_status); } && |
| 20876 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20877 | { (case "(($ac_try" in |
| 20878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20879 | *) ac_try_echo=$ac_try;; |
| 20880 | esac |
| 20881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20882 | (eval "$ac_try") 2>&5 |
| 20883 | ac_status=$? |
| 20884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20885 | (exit $ac_status); }; } && |
| 20886 | { ac_try='test -s conftest.$ac_objext' |
| 20887 | { (case "(($ac_try" in |
| 20888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20889 | *) ac_try_echo=$ac_try;; |
| 20890 | esac |
| 20891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20892 | (eval "$ac_try") 2>&5 |
| 20893 | ac_status=$? |
| 20894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20895 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20896 | ac_cv_func_isnan_in_cmath=yes |
| 20897 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20898 | echo "$as_me: failed program was:" >&5 |
| 20899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20900 | |
| 20901 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20902 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20903 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20905 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20906 | ac_cpp='$CPP $CPPFLAGS' |
| 20907 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20908 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20909 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20910 | |
| 20911 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20912 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 20913 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20914 | |
| 20915 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20916 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20917 | cat >>confdefs.h <<\_ACEOF |
| 20918 | #define HAVE_ISNAN_IN_CMATH 1 |
| 20919 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20920 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20921 | fi |
| 20922 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20923 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 20924 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 20925 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 20926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20927 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20928 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20929 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20930 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20931 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20932 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20933 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20934 | cat >conftest.$ac_ext <<_ACEOF |
| 20935 | /* confdefs.h. */ |
| 20936 | _ACEOF |
| 20937 | cat confdefs.h >>conftest.$ac_ext |
| 20938 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20939 | /* end confdefs.h. */ |
| 20940 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20941 | int |
| 20942 | main () |
| 20943 | { |
| 20944 | float f; std::isnan(f); |
| 20945 | ; |
| 20946 | return 0; |
| 20947 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20948 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20949 | rm -f conftest.$ac_objext |
| 20950 | if { (ac_try="$ac_compile" |
| 20951 | case "(($ac_try" in |
| 20952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20953 | *) ac_try_echo=$ac_try;; |
| 20954 | esac |
| 20955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20956 | (eval "$ac_compile") 2>conftest.er1 |
| 20957 | ac_status=$? |
| 20958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20959 | rm -f conftest.er1 |
| 20960 | cat conftest.err >&5 |
| 20961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20962 | (exit $ac_status); } && |
| 20963 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20964 | { (case "(($ac_try" in |
| 20965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20966 | *) ac_try_echo=$ac_try;; |
| 20967 | esac |
| 20968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20969 | (eval "$ac_try") 2>&5 |
| 20970 | ac_status=$? |
| 20971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20972 | (exit $ac_status); }; } && |
| 20973 | { ac_try='test -s conftest.$ac_objext' |
| 20974 | { (case "(($ac_try" in |
| 20975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20976 | *) ac_try_echo=$ac_try;; |
| 20977 | esac |
| 20978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20979 | (eval "$ac_try") 2>&5 |
| 20980 | ac_status=$? |
| 20981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20982 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20983 | ac_cv_func_std_isnan_in_cmath=yes |
| 20984 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20985 | echo "$as_me: failed program was:" >&5 |
| 20986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20987 | |
| 20988 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20989 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20990 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20992 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20993 | ac_cpp='$CPP $CPPFLAGS' |
| 20994 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20995 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20996 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20997 | |
| 20998 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20999 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 21000 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21001 | |
| 21002 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 21003 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21004 | cat >>confdefs.h <<\_ACEOF |
| 21005 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 21006 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 21007 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21008 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 21009 | |
| 21010 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21011 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 21012 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 21013 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 21014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21015 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21016 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21017 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21018 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21019 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21020 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21021 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21022 | cat >conftest.$ac_ext <<_ACEOF |
| 21023 | /* confdefs.h. */ |
| 21024 | _ACEOF |
| 21025 | cat confdefs.h >>conftest.$ac_ext |
| 21026 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21027 | /* end confdefs.h. */ |
| 21028 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21029 | int |
| 21030 | main () |
| 21031 | { |
| 21032 | float f; isinf(f); |
| 21033 | ; |
| 21034 | return 0; |
| 21035 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21036 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21037 | rm -f conftest.$ac_objext |
| 21038 | if { (ac_try="$ac_compile" |
| 21039 | case "(($ac_try" in |
| 21040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21041 | *) ac_try_echo=$ac_try;; |
| 21042 | esac |
| 21043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21044 | (eval "$ac_compile") 2>conftest.er1 |
| 21045 | ac_status=$? |
| 21046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21047 | rm -f conftest.er1 |
| 21048 | cat conftest.err >&5 |
| 21049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21050 | (exit $ac_status); } && |
| 21051 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 21052 | { (case "(($ac_try" in |
| 21053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21054 | *) ac_try_echo=$ac_try;; |
| 21055 | esac |
| 21056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21057 | (eval "$ac_try") 2>&5 |
| 21058 | ac_status=$? |
| 21059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21060 | (exit $ac_status); }; } && |
| 21061 | { ac_try='test -s conftest.$ac_objext' |
| 21062 | { (case "(($ac_try" in |
| 21063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21064 | *) ac_try_echo=$ac_try;; |
| 21065 | esac |
| 21066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21067 | (eval "$ac_try") 2>&5 |
| 21068 | ac_status=$? |
| 21069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21070 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21071 | ac_cv_func_isinf_in_math_h=yes |
| 21072 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21073 | echo "$as_me: failed program was:" >&5 |
| 21074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21075 | |
| 21076 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21077 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21078 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21080 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21081 | ac_cpp='$CPP $CPPFLAGS' |
| 21082 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21083 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21084 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21085 | |
| 21086 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21087 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 21088 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21089 | |
| 21090 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21091 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21092 | cat >>confdefs.h <<\_ACEOF |
| 21093 | #define HAVE_ISINF_IN_MATH_H 1 |
| 21094 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21095 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21096 | fi |
| 21097 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21098 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 21099 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 21100 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 21101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21102 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21103 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21104 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21105 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21106 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21107 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21108 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21109 | cat >conftest.$ac_ext <<_ACEOF |
| 21110 | /* confdefs.h. */ |
| 21111 | _ACEOF |
| 21112 | cat confdefs.h >>conftest.$ac_ext |
| 21113 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21114 | /* end confdefs.h. */ |
| 21115 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21116 | int |
| 21117 | main () |
| 21118 | { |
| 21119 | float f; isinf(f); |
| 21120 | ; |
| 21121 | return 0; |
| 21122 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21123 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21124 | rm -f conftest.$ac_objext |
| 21125 | if { (ac_try="$ac_compile" |
| 21126 | case "(($ac_try" in |
| 21127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21128 | *) ac_try_echo=$ac_try;; |
| 21129 | esac |
| 21130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21131 | (eval "$ac_compile") 2>conftest.er1 |
| 21132 | ac_status=$? |
| 21133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21134 | rm -f conftest.er1 |
| 21135 | cat conftest.err >&5 |
| 21136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21137 | (exit $ac_status); } && |
| 21138 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 21139 | { (case "(($ac_try" in |
| 21140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21141 | *) ac_try_echo=$ac_try;; |
| 21142 | esac |
| 21143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21144 | (eval "$ac_try") 2>&5 |
| 21145 | ac_status=$? |
| 21146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21147 | (exit $ac_status); }; } && |
| 21148 | { ac_try='test -s conftest.$ac_objext' |
| 21149 | { (case "(($ac_try" in |
| 21150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21151 | *) ac_try_echo=$ac_try;; |
| 21152 | esac |
| 21153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21154 | (eval "$ac_try") 2>&5 |
| 21155 | ac_status=$? |
| 21156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21157 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21158 | ac_cv_func_isinf_in_cmath=yes |
| 21159 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21160 | echo "$as_me: failed program was:" >&5 |
| 21161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21162 | |
| 21163 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21164 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21165 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21167 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21168 | ac_cpp='$CPP $CPPFLAGS' |
| 21169 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21170 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21171 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21172 | |
| 21173 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21174 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 21175 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21176 | |
| 21177 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21178 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21179 | cat >>confdefs.h <<\_ACEOF |
| 21180 | #define HAVE_ISINF_IN_CMATH 1 |
| 21181 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21182 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21183 | fi |
| 21184 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21185 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 21186 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 21187 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 21188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21189 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21190 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21191 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21192 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21193 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21194 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21195 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21196 | cat >conftest.$ac_ext <<_ACEOF |
| 21197 | /* confdefs.h. */ |
| 21198 | _ACEOF |
| 21199 | cat confdefs.h >>conftest.$ac_ext |
| 21200 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21201 | /* end confdefs.h. */ |
| 21202 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21203 | int |
| 21204 | main () |
| 21205 | { |
| 21206 | float f; std::isinf(f)} |
| 21207 | ; |
| 21208 | return 0; |
| 21209 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21210 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21211 | rm -f conftest.$ac_objext |
| 21212 | if { (ac_try="$ac_compile" |
| 21213 | case "(($ac_try" in |
| 21214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21215 | *) ac_try_echo=$ac_try;; |
| 21216 | esac |
| 21217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21218 | (eval "$ac_compile") 2>conftest.er1 |
| 21219 | ac_status=$? |
| 21220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21221 | rm -f conftest.er1 |
| 21222 | cat conftest.err >&5 |
| 21223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21224 | (exit $ac_status); } && |
| 21225 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 21226 | { (case "(($ac_try" in |
| 21227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21228 | *) ac_try_echo=$ac_try;; |
| 21229 | esac |
| 21230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21231 | (eval "$ac_try") 2>&5 |
| 21232 | ac_status=$? |
| 21233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21234 | (exit $ac_status); }; } && |
| 21235 | { ac_try='test -s conftest.$ac_objext' |
| 21236 | { (case "(($ac_try" in |
| 21237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21238 | *) ac_try_echo=$ac_try;; |
| 21239 | esac |
| 21240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21241 | (eval "$ac_try") 2>&5 |
| 21242 | ac_status=$? |
| 21243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21244 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21245 | ac_cv_func_std_isinf_in_cmath=yes |
| 21246 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21247 | echo "$as_me: failed program was:" >&5 |
| 21248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21249 | |
| 21250 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21251 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21252 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21254 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21255 | ac_cpp='$CPP $CPPFLAGS' |
| 21256 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21257 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21258 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21259 | |
| 21260 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21261 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 21262 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21263 | |
| 21264 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21265 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21266 | cat >>confdefs.h <<\_ACEOF |
| 21267 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 21268 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21269 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21270 | fi |
| 21271 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21272 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 21273 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 21274 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 21275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 21276 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21277 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 21278 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21279 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21280 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21281 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21282 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21283 | cat >conftest.$ac_ext <<_ACEOF |
| 21284 | /* confdefs.h. */ |
| 21285 | _ACEOF |
| 21286 | cat confdefs.h >>conftest.$ac_ext |
| 21287 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 21288 | /* end confdefs.h. */ |
| 21289 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21290 | int |
| 21291 | main () |
| 21292 | { |
| 21293 | float f; finite(f); |
| 21294 | ; |
| 21295 | return 0; |
| 21296 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 21297 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21298 | rm -f conftest.$ac_objext |
| 21299 | if { (ac_try="$ac_compile" |
| 21300 | case "(($ac_try" in |
| 21301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21302 | *) ac_try_echo=$ac_try;; |
| 21303 | esac |
| 21304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21305 | (eval "$ac_compile") 2>conftest.er1 |
| 21306 | ac_status=$? |
| 21307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21308 | rm -f conftest.er1 |
| 21309 | cat conftest.err >&5 |
| 21310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21311 | (exit $ac_status); } && |
| 21312 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 21313 | { (case "(($ac_try" in |
| 21314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21315 | *) ac_try_echo=$ac_try;; |
| 21316 | esac |
| 21317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21318 | (eval "$ac_try") 2>&5 |
| 21319 | ac_status=$? |
| 21320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21321 | (exit $ac_status); }; } && |
| 21322 | { ac_try='test -s conftest.$ac_objext' |
| 21323 | { (case "(($ac_try" in |
| 21324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21325 | *) ac_try_echo=$ac_try;; |
| 21326 | esac |
| 21327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21328 | (eval "$ac_try") 2>&5 |
| 21329 | ac_status=$? |
| 21330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21331 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 21332 | ac_cv_func_finite_in_ieeefp_h=yes |
| 21333 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21334 | echo "$as_me: failed program was:" >&5 |
| 21335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21336 | |
| 21337 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 21338 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21339 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21341 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 21342 | ac_cpp='$CPP $CPPFLAGS' |
| 21343 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21344 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21345 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21346 | |
| 21347 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21348 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 21349 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21350 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 21351 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 21352 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21353 | cat >>confdefs.h <<\_ACEOF |
| 21354 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 21355 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 21356 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21357 | fi |
| 21358 | |
| 21359 | |
| 21360 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 21361 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21362 | |
| 21363 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21364 | for ac_header in stdlib.h unistd.h |
| 21365 | do |
| 21366 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21367 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21368 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21369 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 21370 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21372 | fi |
| 21373 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 21374 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21375 | echo "${ECHO_T}$ac_res" >&6; } |
| 21376 | else |
| 21377 | # Is the header compilable? |
| 21378 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 21379 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 21380 | cat >conftest.$ac_ext <<_ACEOF |
| 21381 | /* confdefs.h. */ |
| 21382 | _ACEOF |
| 21383 | cat confdefs.h >>conftest.$ac_ext |
| 21384 | cat >>conftest.$ac_ext <<_ACEOF |
| 21385 | /* end confdefs.h. */ |
| 21386 | $ac_includes_default |
| 21387 | #include <$ac_header> |
| 21388 | _ACEOF |
| 21389 | rm -f conftest.$ac_objext |
| 21390 | if { (ac_try="$ac_compile" |
| 21391 | case "(($ac_try" in |
| 21392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21393 | *) ac_try_echo=$ac_try;; |
| 21394 | esac |
| 21395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21396 | (eval "$ac_compile") 2>conftest.er1 |
| 21397 | ac_status=$? |
| 21398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21399 | rm -f conftest.er1 |
| 21400 | cat conftest.err >&5 |
| 21401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21402 | (exit $ac_status); } && |
| 21403 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21404 | { (case "(($ac_try" in |
| 21405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21406 | *) ac_try_echo=$ac_try;; |
| 21407 | esac |
| 21408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21409 | (eval "$ac_try") 2>&5 |
| 21410 | ac_status=$? |
| 21411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21412 | (exit $ac_status); }; } && |
| 21413 | { ac_try='test -s conftest.$ac_objext' |
| 21414 | { (case "(($ac_try" in |
| 21415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21416 | *) ac_try_echo=$ac_try;; |
| 21417 | esac |
| 21418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21419 | (eval "$ac_try") 2>&5 |
| 21420 | ac_status=$? |
| 21421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21422 | (exit $ac_status); }; }; then |
| 21423 | ac_header_compiler=yes |
| 21424 | else |
| 21425 | echo "$as_me: failed program was:" >&5 |
| 21426 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21427 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21428 | ac_header_compiler=no |
| 21429 | fi |
| 21430 | |
| 21431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21432 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21433 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 21434 | |
| 21435 | # Is the header present? |
| 21436 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 21437 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 21438 | cat >conftest.$ac_ext <<_ACEOF |
| 21439 | /* confdefs.h. */ |
| 21440 | _ACEOF |
| 21441 | cat confdefs.h >>conftest.$ac_ext |
| 21442 | cat >>conftest.$ac_ext <<_ACEOF |
| 21443 | /* end confdefs.h. */ |
| 21444 | #include <$ac_header> |
| 21445 | _ACEOF |
| 21446 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 21447 | case "(($ac_try" in |
| 21448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21449 | *) ac_try_echo=$ac_try;; |
| 21450 | esac |
| 21451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21452 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 21453 | ac_status=$? |
| 21454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21455 | rm -f conftest.er1 |
| 21456 | cat conftest.err >&5 |
| 21457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21458 | (exit $ac_status); } >/dev/null; then |
| 21459 | if test -s conftest.err; then |
| 21460 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 21461 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 21462 | else |
| 21463 | ac_cpp_err= |
| 21464 | fi |
| 21465 | else |
| 21466 | ac_cpp_err=yes |
| 21467 | fi |
| 21468 | if test -z "$ac_cpp_err"; then |
| 21469 | ac_header_preproc=yes |
| 21470 | else |
| 21471 | echo "$as_me: failed program was:" >&5 |
| 21472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21473 | |
| 21474 | ac_header_preproc=no |
| 21475 | fi |
| 21476 | |
| 21477 | rm -f conftest.err conftest.$ac_ext |
| 21478 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 21479 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 21480 | |
| 21481 | # So? What about this header? |
| 21482 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 21483 | yes:no: ) |
| 21484 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 21485 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 21486 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 21487 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 21488 | ac_header_preproc=yes |
| 21489 | ;; |
| 21490 | no:yes:* ) |
| 21491 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 21492 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 21493 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 21494 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 21495 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 21496 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 21497 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 21498 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 21499 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 21500 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 21501 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 21502 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 21503 | ( cat <<\_ASBOX |
| 21504 | ## ----------------------------------- ## |
| 21505 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 21506 | ## ----------------------------------- ## |
| 21507 | _ASBOX |
| 21508 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 21509 | ;; |
| 21510 | esac |
| 21511 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21512 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 21513 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21515 | else |
| 21516 | eval "$as_ac_Header=\$ac_header_preproc" |
| 21517 | fi |
| 21518 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 21519 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21520 | echo "${ECHO_T}$ac_res" >&6; } |
| 21521 | |
| 21522 | fi |
| 21523 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21524 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21525 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21526 | _ACEOF |
| 21527 | |
| 21528 | fi |
| 21529 | |
| 21530 | done |
| 21531 | |
| 21532 | |
| 21533 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21534 | do |
| 21535 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21536 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21537 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 21538 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21540 | else |
| 21541 | cat >conftest.$ac_ext <<_ACEOF |
| 21542 | /* confdefs.h. */ |
| 21543 | _ACEOF |
| 21544 | cat confdefs.h >>conftest.$ac_ext |
| 21545 | cat >>conftest.$ac_ext <<_ACEOF |
| 21546 | /* end confdefs.h. */ |
| 21547 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21548 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21549 | #define $ac_func innocuous_$ac_func |
| 21550 | |
| 21551 | /* System header to define __stub macros and hopefully few prototypes, |
| 21552 | which can conflict with char $ac_func (); below. |
| 21553 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21554 | <limits.h> exists even on freestanding compilers. */ |
| 21555 | |
| 21556 | #ifdef __STDC__ |
| 21557 | # include <limits.h> |
| 21558 | #else |
| 21559 | # include <assert.h> |
| 21560 | #endif |
| 21561 | |
| 21562 | #undef $ac_func |
| 21563 | |
| 21564 | /* Override any GCC internal prototype to avoid an error. |
| 21565 | Use char because int might match the return type of a GCC |
| 21566 | builtin and then its argument prototype would still apply. */ |
| 21567 | #ifdef __cplusplus |
| 21568 | extern "C" |
| 21569 | #endif |
| 21570 | char $ac_func (); |
| 21571 | /* The GNU C library defines this for functions which it implements |
| 21572 | to always fail with ENOSYS. Some functions are actually named |
| 21573 | something starting with __ and the normal name is an alias. */ |
| 21574 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 21575 | choke me |
| 21576 | #endif |
| 21577 | |
| 21578 | int |
| 21579 | main () |
| 21580 | { |
| 21581 | return $ac_func (); |
| 21582 | ; |
| 21583 | return 0; |
| 21584 | } |
| 21585 | _ACEOF |
| 21586 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21587 | if { (ac_try="$ac_link" |
| 21588 | case "(($ac_try" in |
| 21589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21590 | *) ac_try_echo=$ac_try;; |
| 21591 | esac |
| 21592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21593 | (eval "$ac_link") 2>conftest.er1 |
| 21594 | ac_status=$? |
| 21595 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21596 | rm -f conftest.er1 |
| 21597 | cat conftest.err >&5 |
| 21598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21599 | (exit $ac_status); } && |
| 21600 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21601 | { (case "(($ac_try" in |
| 21602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21603 | *) ac_try_echo=$ac_try;; |
| 21604 | esac |
| 21605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21606 | (eval "$ac_try") 2>&5 |
| 21607 | ac_status=$? |
| 21608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21609 | (exit $ac_status); }; } && |
| 21610 | { ac_try='test -s conftest$ac_exeext' |
| 21611 | { (case "(($ac_try" in |
| 21612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21613 | *) ac_try_echo=$ac_try;; |
| 21614 | esac |
| 21615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21616 | (eval "$ac_try") 2>&5 |
| 21617 | ac_status=$? |
| 21618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21619 | (exit $ac_status); }; }; then |
| 21620 | eval "$as_ac_var=yes" |
| 21621 | else |
| 21622 | echo "$as_me: failed program was:" >&5 |
| 21623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21624 | |
| 21625 | eval "$as_ac_var=no" |
| 21626 | fi |
| 21627 | |
| 21628 | rm -f core conftest.err conftest.$ac_objext \ |
| 21629 | conftest$ac_exeext conftest.$ac_ext |
| 21630 | fi |
| 21631 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21632 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21633 | echo "${ECHO_T}$ac_res" >&6; } |
| 21634 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21635 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21636 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21637 | _ACEOF |
| 21638 | |
| 21639 | fi |
| 21640 | done |
| 21641 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21642 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 21643 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 21644 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 21645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21646 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21647 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21648 | ac_cv_func_mmap_fixed_mapped=no |
| 21649 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21650 | cat >conftest.$ac_ext <<_ACEOF |
| 21651 | /* confdefs.h. */ |
| 21652 | _ACEOF |
| 21653 | cat confdefs.h >>conftest.$ac_ext |
| 21654 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21655 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21656 | $ac_includes_default |
| 21657 | /* malloc might have been renamed as rpl_malloc. */ |
| 21658 | #undef malloc |
| 21659 | |
| 21660 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 21661 | Here is a matrix of mmap possibilities: |
| 21662 | mmap private not fixed |
| 21663 | mmap private fixed at somewhere currently unmapped |
| 21664 | mmap private fixed at somewhere already mapped |
| 21665 | mmap shared not fixed |
| 21666 | mmap shared fixed at somewhere currently unmapped |
| 21667 | mmap shared fixed at somewhere already mapped |
| 21668 | For private mappings, we should verify that changes cannot be read() |
| 21669 | back from the file, nor mmap's back from the file at a different |
| 21670 | address. (There have been systems where private was not correctly |
| 21671 | implemented like the infamous i386 svr4.0, and systems where the |
| 21672 | VM page cache was not coherent with the file system buffer cache |
| 21673 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 21674 | For shared mappings, we should conversely verify that changes get |
| 21675 | propagated back to all the places they're supposed to be. |
| 21676 | |
| 21677 | Grep wants private fixed already mapped. |
| 21678 | The main things grep needs to know about mmap are: |
| 21679 | * does it exist and is it safe to write into the mmap'd area |
| 21680 | * how to use it (BSD variants) */ |
| 21681 | |
| 21682 | #include <fcntl.h> |
| 21683 | #include <sys/mman.h> |
| 21684 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21685 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21686 | char *malloc (); |
| 21687 | #endif |
| 21688 | |
| 21689 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21690 | #if !HAVE_GETPAGESIZE |
| 21691 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 21692 | # if !HAVE_SYS_PARAM_H |
| 21693 | # define HAVE_SYS_PARAM_H 1 |
| 21694 | # endif |
| 21695 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21696 | # ifdef _SC_PAGESIZE |
| 21697 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 21698 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21699 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21700 | # include <sys/param.h> |
| 21701 | # ifdef EXEC_PAGESIZE |
| 21702 | # define getpagesize() EXEC_PAGESIZE |
| 21703 | # else /* no EXEC_PAGESIZE */ |
| 21704 | # ifdef NBPG |
| 21705 | # define getpagesize() NBPG * CLSIZE |
| 21706 | # ifndef CLSIZE |
| 21707 | # define CLSIZE 1 |
| 21708 | # endif /* no CLSIZE */ |
| 21709 | # else /* no NBPG */ |
| 21710 | # ifdef NBPC |
| 21711 | # define getpagesize() NBPC |
| 21712 | # else /* no NBPC */ |
| 21713 | # ifdef PAGESIZE |
| 21714 | # define getpagesize() PAGESIZE |
| 21715 | # endif /* PAGESIZE */ |
| 21716 | # endif /* no NBPC */ |
| 21717 | # endif /* no NBPG */ |
| 21718 | # endif /* no EXEC_PAGESIZE */ |
| 21719 | # else /* no HAVE_SYS_PARAM_H */ |
| 21720 | # define getpagesize() 8192 /* punt totally */ |
| 21721 | # endif /* no HAVE_SYS_PARAM_H */ |
| 21722 | # endif /* no _SC_PAGESIZE */ |
| 21723 | |
| 21724 | #endif /* no HAVE_GETPAGESIZE */ |
| 21725 | |
| 21726 | int |
| 21727 | main () |
| 21728 | { |
| 21729 | char *data, *data2, *data3; |
| 21730 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21731 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21732 | |
| 21733 | pagesize = getpagesize (); |
| 21734 | |
| 21735 | /* First, make a file with some known garbage in it. */ |
| 21736 | data = (char *) malloc (pagesize); |
| 21737 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21738 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21739 | for (i = 0; i < pagesize; ++i) |
| 21740 | *(data + i) = rand (); |
| 21741 | umask (0); |
| 21742 | fd = creat ("conftest.mmap", 0600); |
| 21743 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21744 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21745 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21746 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21747 | close (fd); |
| 21748 | |
| 21749 | /* Next, try to mmap the file at a fixed address which already has |
| 21750 | something else allocated at it. If we can, also make sure that |
| 21751 | we see the same garbage. */ |
| 21752 | fd = open ("conftest.mmap", O_RDWR); |
| 21753 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21754 | return 1; |
| 21755 | data2 = (char *) malloc (2 * pagesize); |
| 21756 | if (!data2) |
| 21757 | return 1; |
| 21758 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21759 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21760 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21761 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21762 | for (i = 0; i < pagesize; ++i) |
| 21763 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21764 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21765 | |
| 21766 | /* Finally, make sure that changes to the mapped area do not |
| 21767 | percolate back to the file as seen by read(). (This is a bug on |
| 21768 | some variants of i386 svr4.0.) */ |
| 21769 | for (i = 0; i < pagesize; ++i) |
| 21770 | *(data2 + i) = *(data2 + i) + 1; |
| 21771 | data3 = (char *) malloc (pagesize); |
| 21772 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21773 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21774 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21775 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21776 | for (i = 0; i < pagesize; ++i) |
| 21777 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21778 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21779 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21780 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21781 | } |
| 21782 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21783 | rm -f conftest$ac_exeext |
| 21784 | if { (ac_try="$ac_link" |
| 21785 | case "(($ac_try" in |
| 21786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21787 | *) ac_try_echo=$ac_try;; |
| 21788 | esac |
| 21789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21790 | (eval "$ac_link") 2>&5 |
| 21791 | ac_status=$? |
| 21792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21793 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21794 | { (case "(($ac_try" in |
| 21795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21796 | *) ac_try_echo=$ac_try;; |
| 21797 | esac |
| 21798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21799 | (eval "$ac_try") 2>&5 |
| 21800 | ac_status=$? |
| 21801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21802 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21803 | ac_cv_func_mmap_fixed_mapped=yes |
| 21804 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21805 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21806 | echo "$as_me: failed program was:" >&5 |
| 21807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21808 | |
| 21809 | ( exit $ac_status ) |
| 21810 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21811 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21812 | 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] | 21813 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21814 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21815 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21816 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21817 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 21818 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21819 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 21820 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21821 | cat >>confdefs.h <<\_ACEOF |
| 21822 | #define HAVE_MMAP 1 |
| 21823 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21824 | |
| 21825 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21826 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21827 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21828 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 21829 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 21830 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 21831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21832 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21833 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21834 | ac_cpp='$CPP $CPPFLAGS' |
| 21835 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21836 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21837 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21838 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21839 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 21840 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21841 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21842 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 21843 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21844 | /* confdefs.h. */ |
| 21845 | _ACEOF |
| 21846 | cat confdefs.h >>conftest.$ac_ext |
| 21847 | cat >>conftest.$ac_ext <<_ACEOF |
| 21848 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21849 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21850 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 21851 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21852 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 21853 | |
| 21854 | int |
| 21855 | main () |
| 21856 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21857 | |
| 21858 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 21859 | fd = creat ("foo",0777); |
| 21860 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 21861 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 21862 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 21863 | ; |
| 21864 | return 0; |
| 21865 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21866 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21867 | rm -f conftest$ac_exeext |
| 21868 | if { (ac_try="$ac_link" |
| 21869 | case "(($ac_try" in |
| 21870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21871 | *) ac_try_echo=$ac_try;; |
| 21872 | esac |
| 21873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21874 | (eval "$ac_link") 2>&5 |
| 21875 | ac_status=$? |
| 21876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21877 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21878 | { (case "(($ac_try" in |
| 21879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21880 | *) ac_try_echo=$ac_try;; |
| 21881 | esac |
| 21882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21883 | (eval "$ac_try") 2>&5 |
| 21884 | ac_status=$? |
| 21885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21886 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21887 | ac_cv_func_mmap_file=yes |
| 21888 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21889 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21890 | echo "$as_me: failed program was:" >&5 |
| 21891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21892 | |
| 21893 | ( exit $ac_status ) |
| 21894 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21895 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21896 | 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] | 21897 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21898 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21899 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21900 | ac_ext=c |
| 21901 | ac_cpp='$CPP $CPPFLAGS' |
| 21902 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21903 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21904 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21905 | |
| 21906 | |
| 21907 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21908 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 21909 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21910 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 21911 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21912 | cat >>confdefs.h <<\_ACEOF |
| 21913 | #define HAVE_MMAP_FILE |
| 21914 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21915 | |
| 21916 | MMAP_FILE=yes |
| 21917 | |
| 21918 | fi |
| 21919 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21920 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 21921 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 21922 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 21923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 21924 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 21925 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 21926 | ac_cv_need_dev_zero_for_mmap=yes |
| 21927 | else |
| 21928 | ac_cv_need_dev_zero_for_mmap=no |
| 21929 | fi |
| 21930 | |
| 21931 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21932 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 21933 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 21934 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 21935 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21936 | cat >>confdefs.h <<\_ACEOF |
| 21937 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 21938 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 21939 | |
| 21940 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21941 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 21942 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 21943 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21944 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 21945 | 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] | 21946 | fi |
| 21947 | if test "$ac_cv_func_mmap_file" = "no" |
| 21948 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21949 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 21950 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 21951 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21952 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21953 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21954 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 21955 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 21956 | ac_ext=cpp |
| 21957 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21958 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21959 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21960 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21961 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21962 | cat >conftest.$ac_ext <<_ACEOF |
| 21963 | /* confdefs.h. */ |
| 21964 | _ACEOF |
| 21965 | cat confdefs.h >>conftest.$ac_ext |
| 21966 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 21967 | /* end confdefs.h. */ |
| 21968 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 21969 | volatile unsigned long val = 1; |
| 21970 | __sync_synchronize(); |
| 21971 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 21972 | __sync_add_and_fetch(&val, 1); |
| 21973 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 21974 | return 0; |
| 21975 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 21976 | |
| 21977 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21978 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21979 | if { (ac_try="$ac_link" |
| 21980 | case "(($ac_try" in |
| 21981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21982 | *) ac_try_echo=$ac_try;; |
| 21983 | esac |
| 21984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21985 | (eval "$ac_link") 2>conftest.er1 |
| 21986 | ac_status=$? |
| 21987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21988 | rm -f conftest.er1 |
| 21989 | cat conftest.err >&5 |
| 21990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21991 | (exit $ac_status); } && |
| 21992 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21993 | { (case "(($ac_try" in |
| 21994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21995 | *) ac_try_echo=$ac_try;; |
| 21996 | esac |
| 21997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21998 | (eval "$ac_try") 2>&5 |
| 21999 | ac_status=$? |
| 22000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22001 | (exit $ac_status); }; } && |
| 22002 | { ac_try='test -s conftest$ac_exeext' |
| 22003 | { (case "(($ac_try" in |
| 22004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22005 | *) ac_try_echo=$ac_try;; |
| 22006 | esac |
| 22007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22008 | (eval "$ac_try") 2>&5 |
| 22009 | ac_status=$? |
| 22010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22011 | (exit $ac_status); }; }; then |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 22012 | ac_ext=c |
| 22013 | ac_cpp='$CPP $CPPFLAGS' |
| 22014 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22015 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22016 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22017 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22018 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22019 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 22020 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22021 | cat >>confdefs.h <<\_ACEOF |
| 22022 | #define LLVM_MULTITHREADED 1 |
| 22023 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 22024 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 22025 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22026 | echo "$as_me: failed program was:" >&5 |
| 22027 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 22028 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22029 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22030 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 22031 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22032 | cat >>confdefs.h <<\_ACEOF |
| 22033 | #define LLVM_MULTITHREADED 0 |
| 22034 | _ACEOF |
| 22035 | |
| 22036 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 22037 | 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] | 22038 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22039 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 22040 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22041 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 22042 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22043 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 22044 | 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] | 22045 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 22046 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 22047 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 22048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 22049 | else |
| 22050 | ac_ext=c |
| 22051 | ac_cpp='$CPP $CPPFLAGS' |
| 22052 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22053 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22054 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22055 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22056 | cat >conftest.$ac_ext <<_ACEOF |
| 22057 | /* confdefs.h. */ |
| 22058 | _ACEOF |
| 22059 | cat confdefs.h >>conftest.$ac_ext |
| 22060 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 22061 | /* end confdefs.h. */ |
| 22062 | #ifndef __x86_64__ |
| 22063 | error: Not x86-64 even if uname says so! |
| 22064 | #endif |
| 22065 | |
| 22066 | int |
| 22067 | main () |
| 22068 | { |
| 22069 | |
| 22070 | ; |
| 22071 | return 0; |
| 22072 | } |
| 22073 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22074 | rm -f conftest.$ac_objext |
| 22075 | if { (ac_try="$ac_compile" |
| 22076 | case "(($ac_try" in |
| 22077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22078 | *) ac_try_echo=$ac_try;; |
| 22079 | esac |
| 22080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22081 | (eval "$ac_compile") 2>conftest.er1 |
| 22082 | ac_status=$? |
| 22083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22084 | rm -f conftest.er1 |
| 22085 | cat conftest.err >&5 |
| 22086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22087 | (exit $ac_status); } && |
| 22088 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22089 | { (case "(($ac_try" in |
| 22090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22091 | *) ac_try_echo=$ac_try;; |
| 22092 | esac |
| 22093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22094 | (eval "$ac_try") 2>&5 |
| 22095 | ac_status=$? |
| 22096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22097 | (exit $ac_status); }; } && |
| 22098 | { ac_try='test -s conftest.$ac_objext' |
| 22099 | { (case "(($ac_try" in |
| 22100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22101 | *) ac_try_echo=$ac_try;; |
| 22102 | esac |
| 22103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22104 | (eval "$ac_try") 2>&5 |
| 22105 | ac_status=$? |
| 22106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22107 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 22108 | llvm_cv_linux_mixed=no |
| 22109 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22110 | echo "$as_me: failed program was:" >&5 |
| 22111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22112 | |
| 22113 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 22114 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22115 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 22116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22117 | ac_ext=c |
| 22118 | ac_cpp='$CPP $CPPFLAGS' |
| 22119 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22120 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22121 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22122 | |
| 22123 | |
| 22124 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22125 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 22126 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 22127 | |
| 22128 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 22129 | llvm_cv_target_arch="x86" |
| 22130 | ARCH="x86" |
| 22131 | fi |
| 22132 | fi |
| 22133 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22134 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 22135 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22136 | do |
| 22137 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22138 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22139 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 22140 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 22141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22142 | else |
| 22143 | cat >conftest.$ac_ext <<_ACEOF |
| 22144 | /* confdefs.h. */ |
| 22145 | _ACEOF |
| 22146 | cat confdefs.h >>conftest.$ac_ext |
| 22147 | cat >>conftest.$ac_ext <<_ACEOF |
| 22148 | /* end confdefs.h. */ |
| 22149 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22150 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22151 | #define $ac_func innocuous_$ac_func |
| 22152 | |
| 22153 | /* System header to define __stub macros and hopefully few prototypes, |
| 22154 | which can conflict with char $ac_func (); below. |
| 22155 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22156 | <limits.h> exists even on freestanding compilers. */ |
| 22157 | |
| 22158 | #ifdef __STDC__ |
| 22159 | # include <limits.h> |
| 22160 | #else |
| 22161 | # include <assert.h> |
| 22162 | #endif |
| 22163 | |
| 22164 | #undef $ac_func |
| 22165 | |
| 22166 | /* Override any GCC internal prototype to avoid an error. |
| 22167 | Use char because int might match the return type of a GCC |
| 22168 | builtin and then its argument prototype would still apply. */ |
| 22169 | #ifdef __cplusplus |
| 22170 | extern "C" |
| 22171 | #endif |
| 22172 | char $ac_func (); |
| 22173 | /* The GNU C library defines this for functions which it implements |
| 22174 | to always fail with ENOSYS. Some functions are actually named |
| 22175 | something starting with __ and the normal name is an alias. */ |
| 22176 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 22177 | choke me |
| 22178 | #endif |
| 22179 | |
| 22180 | int |
| 22181 | main () |
| 22182 | { |
| 22183 | return $ac_func (); |
| 22184 | ; |
| 22185 | return 0; |
| 22186 | } |
| 22187 | _ACEOF |
| 22188 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22189 | if { (ac_try="$ac_link" |
| 22190 | case "(($ac_try" in |
| 22191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22192 | *) ac_try_echo=$ac_try;; |
| 22193 | esac |
| 22194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22195 | (eval "$ac_link") 2>conftest.er1 |
| 22196 | ac_status=$? |
| 22197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22198 | rm -f conftest.er1 |
| 22199 | cat conftest.err >&5 |
| 22200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22201 | (exit $ac_status); } && |
| 22202 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22203 | { (case "(($ac_try" in |
| 22204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22205 | *) ac_try_echo=$ac_try;; |
| 22206 | esac |
| 22207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22208 | (eval "$ac_try") 2>&5 |
| 22209 | ac_status=$? |
| 22210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22211 | (exit $ac_status); }; } && |
| 22212 | { ac_try='test -s conftest$ac_exeext' |
| 22213 | { (case "(($ac_try" in |
| 22214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22215 | *) ac_try_echo=$ac_try;; |
| 22216 | esac |
| 22217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22218 | (eval "$ac_try") 2>&5 |
| 22219 | ac_status=$? |
| 22220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22221 | (exit $ac_status); }; }; then |
| 22222 | eval "$as_ac_var=yes" |
| 22223 | else |
| 22224 | echo "$as_me: failed program was:" >&5 |
| 22225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22226 | |
| 22227 | eval "$as_ac_var=no" |
| 22228 | fi |
| 22229 | |
| 22230 | rm -f core conftest.err conftest.$ac_objext \ |
| 22231 | conftest$ac_exeext conftest.$ac_ext |
| 22232 | fi |
| 22233 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 22234 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22235 | echo "${ECHO_T}$ac_res" >&6; } |
| 22236 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 22237 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22238 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 22239 | _ACEOF |
| 22240 | |
| 22241 | fi |
| 22242 | done |
| 22243 | |
| 22244 | |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22245 | { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5 |
| 22246 | echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; } |
| 22247 | if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then |
| 22248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22249 | else |
| 22250 | llvm_cv_llvmgcc_dragonegg="no" |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 22251 | if test -n "$LLVMGCC" ; then |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22252 | cp /dev/null conftest.c |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 22253 | $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] | 22254 | if test $? -eq 0 ; then |
| 22255 | llvm_cv_llvmgcc_dragonegg="yes" |
| 22256 | fi |
| 22257 | rm conftest.c |
| 22258 | fi |
| 22259 | fi |
| 22260 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5 |
| 22261 | echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; } |
| 22262 | |
| 22263 | if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then |
| 22264 | LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir" |
Duncan Sands | fcc482e | 2011-05-23 16:50:29 +0000 | [diff] [blame] | 22265 | LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0" |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22266 | else |
| 22267 | LLVMCC_EMITIR_FLAG="-emit-llvm" |
Duncan Sands | 1ac320e | 2010-11-25 17:57:43 +0000 | [diff] [blame] | 22268 | LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns" |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22269 | fi |
| 22270 | |
| 22271 | |
| 22272 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22273 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 22274 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
| 22275 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 22276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22277 | else |
| 22278 | llvm_cv_llvmgcc_sanity="no" |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 22279 | if test -n "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22280 | cp /dev/null conftest.c |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 22281 | $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \ |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 22282 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22283 | if test $? -eq 0 ; then |
| 22284 | llvm_cv_llvmgcc_sanity="yes" |
| 22285 | fi |
| 22286 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 22287 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22288 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22289 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 22290 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22291 | |
| 22292 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22293 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 22294 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 22295 | llvmcc1path=`$LLVMGCC --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22296 | LLVMCC1=$llvmcc1path |
| 22297 | |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 22298 | llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22299 | LLVMCC1PLUS=$llvmcc1pluspath |
| 22300 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 22301 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 22302 | LLVMGCCDIR=$llvmgccdir |
| 22303 | |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 22304 | 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] | 22305 | LLVMGCC_LANGS=$llvmgcclangs |
| 22306 | |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22307 | LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg |
| 22308 | |
| 22309 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22310 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 22311 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 22312 | fi |
| 22313 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 22314 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 22315 | |
| 22316 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 22317 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var |
| 22318 | |
| 22319 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 22320 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22321 | # information into substitutions that will end up in Makefile.config.in |
| 22322 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 22323 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 22324 | prefix="/usr/local" |
| 22325 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 22326 | eval LLVM_PREFIX="${prefix}"; |
| 22327 | eval LLVM_BINDIR="${prefix}/bin"; |
| 22328 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 22329 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
Eric Christopher | ec27496 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 22330 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 22331 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 22332 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 22333 | eval LLVM_INFODIR="${prefix}/info"; |
| 22334 | eval LLVM_MANDIR="${prefix}/man"; |
| 22335 | LLVM_CONFIGTIME=`date` |
| 22336 | |
| 22337 | |
| 22338 | |
| 22339 | |
| 22340 | |
| 22341 | |
| 22342 | |
| 22343 | |
| 22344 | |
| 22345 | |
| 22346 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22347 | # Place the various directores into the config.h file as #defines so that we |
| 22348 | # can know about the installation paths within LLVM. |
| 22349 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 22350 | cat >>confdefs.h <<_ACEOF |
| 22351 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 22352 | _ACEOF |
| 22353 | |
| 22354 | |
| 22355 | cat >>confdefs.h <<_ACEOF |
| 22356 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 22357 | _ACEOF |
| 22358 | |
| 22359 | |
| 22360 | cat >>confdefs.h <<_ACEOF |
| 22361 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 22362 | _ACEOF |
| 22363 | |
| 22364 | |
| 22365 | cat >>confdefs.h <<_ACEOF |
| 22366 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 22367 | _ACEOF |
| 22368 | |
| 22369 | |
| 22370 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 22371 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 22372 | _ACEOF |
| 22373 | |
| 22374 | |
| 22375 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 22376 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 22377 | _ACEOF |
| 22378 | |
| 22379 | |
| 22380 | cat >>confdefs.h <<_ACEOF |
| 22381 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 22382 | _ACEOF |
| 22383 | |
| 22384 | |
| 22385 | cat >>confdefs.h <<_ACEOF |
| 22386 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 22387 | _ACEOF |
| 22388 | |
| 22389 | |
| 22390 | cat >>confdefs.h <<_ACEOF |
| 22391 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 22392 | _ACEOF |
| 22393 | |
| 22394 | |
| 22395 | cat >>confdefs.h <<_ACEOF |
| 22396 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 22397 | _ACEOF |
| 22398 | |
| 22399 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 22400 | cat >>confdefs.h <<_ACEOF |
| 22401 | #define LLVM_HOSTTRIPLE "$host" |
| 22402 | _ACEOF |
| 22403 | |
| 22404 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 22405 | # Determine which bindings to build. |
| 22406 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 22407 | BINDINGS_TO_BUILD="" |
| 22408 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 22409 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 22410 | fi |
| 22411 | fi |
| 22412 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 22413 | |
| 22414 | |
| 22415 | # This isn't really configurey, but it avoids having to repeat the list in |
| 22416 | # other files. |
| 22417 | ALL_BINDINGS=ocaml |
| 22418 | |
| 22419 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 22420 | # Do any work necessary to ensure that bindings have what they need. |
| 22421 | binding_prereqs_failed=0 |
| 22422 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 22423 | case "$a_binding" in |
| 22424 | ocaml) |
| 22425 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22426 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 22427 | 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] | 22428 | binding_prereqs_failed=1 |
| 22429 | fi |
| 22430 | if test "x$OCAMLDEP" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22431 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 22432 | 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] | 22433 | binding_prereqs_failed=1 |
| 22434 | fi |
| 22435 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22436 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 22437 | 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] | 22438 | fi |
| 22439 | if test "x$with_ocaml_libdir" != xauto ; then |
| 22440 | OCAML_LIBDIR=$with_ocaml_libdir |
| 22441 | |
| 22442 | else |
| 22443 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 22444 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 22445 | then |
| 22446 | # ocaml stdlib is beneath our prefix; use stdlib |
| 22447 | OCAML_LIBDIR=$ocaml_stdlib |
| 22448 | |
| 22449 | else |
| 22450 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 22451 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 22452 | |
| 22453 | fi |
| 22454 | fi |
| 22455 | ;; |
| 22456 | esac |
| 22457 | done |
| 22458 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22459 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 22460 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 22461 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 22462 | fi |
| 22463 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22464 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 22465 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 22466 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 22467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 22468 | else |
| 22469 | ac_ext=cpp |
| 22470 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22471 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22472 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22473 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22474 | |
| 22475 | oldcxxflags="$CXXFLAGS" |
| 22476 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22477 | cat >conftest.$ac_ext <<_ACEOF |
| 22478 | /* confdefs.h. */ |
| 22479 | _ACEOF |
| 22480 | cat confdefs.h >>conftest.$ac_ext |
| 22481 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 22482 | /* end confdefs.h. */ |
| 22483 | |
| 22484 | int |
| 22485 | main () |
| 22486 | { |
| 22487 | |
| 22488 | ; |
| 22489 | return 0; |
| 22490 | } |
| 22491 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22492 | rm -f conftest.$ac_objext |
| 22493 | if { (ac_try="$ac_compile" |
| 22494 | case "(($ac_try" in |
| 22495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22496 | *) ac_try_echo=$ac_try;; |
| 22497 | esac |
| 22498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22499 | (eval "$ac_compile") 2>conftest.er1 |
| 22500 | ac_status=$? |
| 22501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22502 | rm -f conftest.er1 |
| 22503 | cat conftest.err >&5 |
| 22504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22505 | (exit $ac_status); } && |
| 22506 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 22507 | { (case "(($ac_try" in |
| 22508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22509 | *) ac_try_echo=$ac_try;; |
| 22510 | esac |
| 22511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22512 | (eval "$ac_try") 2>&5 |
| 22513 | ac_status=$? |
| 22514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22515 | (exit $ac_status); }; } && |
| 22516 | { ac_try='test -s conftest.$ac_objext' |
| 22517 | { (case "(($ac_try" in |
| 22518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22519 | *) ac_try_echo=$ac_try;; |
| 22520 | esac |
| 22521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22522 | (eval "$ac_try") 2>&5 |
| 22523 | ac_status=$? |
| 22524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22525 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 22526 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 22527 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22528 | echo "$as_me: failed program was:" >&5 |
| 22529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22530 | |
| 22531 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 22532 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22533 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 22534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22535 | CXXFLAGS="$oldcxxflags" |
| 22536 | ac_ext=c |
| 22537 | ac_cpp='$CPP $CPPFLAGS' |
| 22538 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22539 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22540 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22541 | |
| 22542 | |
| 22543 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22544 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 22545 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 22546 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 22547 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 22548 | |
| 22549 | else |
| 22550 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 22551 | |
| 22552 | fi |
| 22553 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 22554 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 22555 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 22556 | RPATH="-Wl,-R" |
| 22557 | else |
| 22558 | RPATH="-Wl,-rpath" |
| 22559 | fi |
| 22560 | |
| 22561 | |
| 22562 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 22563 | RDYNAMIC="-Wl,-export-dynamic" |
| 22564 | else |
| 22565 | RDYNAMIC="" |
| 22566 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 22567 | |
| 22568 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22569 | |
Eric Christopher | a1cba68 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 22570 | 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] | 22571 | |
Eric Christopher | 21d3eeb | 2010-08-08 09:20:39 +0000 | [diff] [blame] | 22572 | |
| 22573 | |
| 22574 | |
| 22575 | |
| 22576 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 22577 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 22578 | |
| 22579 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 22580 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 22581 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 22582 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 22583 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 22584 | |
Michael J. Spencer | 1f6efa3 | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 22585 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22586 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22587 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22588 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22589 | |
| 22590 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 22591 | ac_config_files="$ac_config_files llvm.spec" |
| 22592 | |
| 22593 | |
Peter Collingbourne | 7be3a60 | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 22594 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
| 22595 | |
| 22596 | if test -f ${srcdir}/tools/clang/README.txt; then |
| 22597 | ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg" |
| 22598 | |
| 22599 | fi |
| 22600 | |
Mikhail Glushenkov | 4b643c0 | 2010-08-15 07:07:17 +0000 | [diff] [blame] | 22601 | ac_config_files="$ac_config_files tools/llvmc/src/Base.td" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 22602 | |
| 22603 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22604 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 22605 | |
| 22606 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22607 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 22608 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22609 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22610 | |
| 22611 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22612 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22613 | |
| 22614 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22615 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22616 | |
| 22617 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22618 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22619 | |
| 22620 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 22621 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 22622 | |
| 22623 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22624 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22625 | |
| 22626 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22627 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22628 | |
| 22629 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 22630 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 22631 | |
| 22632 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22633 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22634 | |
| 22635 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22636 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22637 | |
| 22638 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22639 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22640 | |
| 22641 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 22642 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 22643 | |
| 22644 | |
| 22645 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 22646 | |
| 22647 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22648 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22649 | cat >confcache <<\_ACEOF |
| 22650 | # This file is a shell script that caches the results of configure |
| 22651 | # tests run on this system so they can be shared between configure |
| 22652 | # scripts and configure runs, see configure's option --config-cache. |
| 22653 | # It is not useful on other systems. If it contains results you don't |
| 22654 | # want to keep, you may remove or edit it. |
| 22655 | # |
| 22656 | # config.status only pays attention to the cache file if you give it |
| 22657 | # the --recheck option to rerun configure. |
| 22658 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22659 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22660 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 22661 | # following values. |
| 22662 | |
| 22663 | _ACEOF |
| 22664 | |
| 22665 | # The following way of writing the cache mishandles newlines in values, |
| 22666 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22667 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22668 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 22669 | # 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] | 22670 | ( |
| 22671 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 22672 | eval ac_val=\$$ac_var |
| 22673 | case $ac_val in #( |
| 22674 | *${as_nl}*) |
| 22675 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22676 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 22677 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22678 | esac |
| 22679 | case $ac_var in #( |
| 22680 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22681 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22682 | esac ;; |
| 22683 | esac |
| 22684 | done |
| 22685 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22686 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22687 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 22688 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22689 | # `set' does not quote correctly, so add quotes (double-quote |
| 22690 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22691 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22692 | "s/'/'\\\\''/g; |
| 22693 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22694 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22695 | *) |
| 22696 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22697 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22698 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22699 | esac | |
| 22700 | sort |
| 22701 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22702 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22703 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22704 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22705 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22706 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 22707 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22708 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 22709 | :end' >>confcache |
| 22710 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 22711 | if test -w "$cache_file"; then |
| 22712 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22713 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 22714 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22715 | cat confcache >$cache_file |
| 22716 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22717 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 22718 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22719 | fi |
| 22720 | fi |
| 22721 | rm -f confcache |
| 22722 | |
| 22723 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 22724 | # Let make expand exec_prefix. |
| 22725 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 22726 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22727 | DEFS=-DHAVE_CONFIG_H |
| 22728 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22729 | ac_libobjs= |
| 22730 | ac_ltlibobjs= |
| 22731 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 22732 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22733 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22734 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22735 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 22736 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22737 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 22738 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22739 | done |
| 22740 | LIBOBJS=$ac_libobjs |
| 22741 | |
| 22742 | LTLIBOBJS=$ac_ltlibobjs |
| 22743 | |
| 22744 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 22745 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22746 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 22747 | Usually this means the macro was only invoked conditionally." >&5 |
| 22748 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 22749 | Usually this means the macro was only invoked conditionally." >&2;} |
| 22750 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 22751 | fi |
| 22752 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22753 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 22754 | Usually this means the macro was only invoked conditionally." >&5 |
| 22755 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 22756 | Usually this means the macro was only invoked conditionally." >&2;} |
| 22757 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 22758 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22759 | |
| 22760 | : ${CONFIG_STATUS=./config.status} |
| 22761 | ac_clean_files_save=$ac_clean_files |
| 22762 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22763 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 22764 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 22765 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22766 | #! $SHELL |
| 22767 | # Generated by $as_me. |
| 22768 | # Run this file to recreate the current configuration. |
| 22769 | # Compiler output produced by configure, useful for debugging |
| 22770 | # configure, is in config.log if it exists. |
| 22771 | |
| 22772 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22773 | ac_cs_recheck=false |
| 22774 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22775 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22776 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22777 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22778 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22779 | ## --------------------- ## |
| 22780 | ## M4sh Initialization. ## |
| 22781 | ## --------------------- ## |
| 22782 | |
| 22783 | # Be Bourne compatible |
| 22784 | 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] | 22785 | emulate sh |
| 22786 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22787 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22788 | # is contrary to our usage. Disable this feature. |
| 22789 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22790 | setopt NO_GLOB_SUBST |
| 22791 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22792 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22793 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22794 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 22795 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22796 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22797 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22798 | # PATH needs CR |
| 22799 | # Avoid depending upon Character Ranges. |
| 22800 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 22801 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 22802 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 22803 | as_cr_digits='0123456789' |
| 22804 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22805 | |
| 22806 | # The user is always right. |
| 22807 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22808 | echo "#! /bin/sh" >conf$$.sh |
| 22809 | echo "exit 0" >>conf$$.sh |
| 22810 | chmod +x conf$$.sh |
| 22811 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 22812 | PATH_SEPARATOR=';' |
| 22813 | else |
| 22814 | PATH_SEPARATOR=: |
| 22815 | fi |
| 22816 | rm -f conf$$.sh |
| 22817 | fi |
| 22818 | |
| 22819 | # Support unset when possible. |
| 22820 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 22821 | as_unset=unset |
| 22822 | else |
| 22823 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22824 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22825 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22826 | |
| 22827 | # IFS |
| 22828 | # We need space, tab and new line, in precisely that order. Quoting is |
| 22829 | # there to prevent editors from complaining about space-tab. |
| 22830 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 22831 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22832 | as_nl=' |
| 22833 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22834 | IFS=" "" $as_nl" |
| 22835 | |
| 22836 | # 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] | 22837 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22838 | *[\\/]* ) as_myself=$0 ;; |
| 22839 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22840 | for as_dir in $PATH |
| 22841 | do |
| 22842 | IFS=$as_save_IFS |
| 22843 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22844 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 22845 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22846 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22847 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22848 | ;; |
| 22849 | esac |
| 22850 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 22851 | # in which case we are not to be found in the path. |
| 22852 | if test "x$as_myself" = x; then |
| 22853 | as_myself=$0 |
| 22854 | fi |
| 22855 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22856 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 22857 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22858 | fi |
| 22859 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22860 | # Work around bugs in pre-3.0 UWIN ksh. |
| 22861 | for as_var in ENV MAIL MAILPATH |
| 22862 | 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] | 22863 | done |
| 22864 | PS1='$ ' |
| 22865 | PS2='> ' |
| 22866 | PS4='+ ' |
| 22867 | |
| 22868 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22869 | for as_var in \ |
| 22870 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 22871 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 22872 | LC_TELEPHONE LC_TIME |
| 22873 | do |
| 22874 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 22875 | eval $as_var=C; export $as_var |
| 22876 | else |
| 22877 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 22878 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22879 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 22880 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22881 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22882 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 22883 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 22884 | as_expr=expr |
| 22885 | else |
| 22886 | as_expr=false |
| 22887 | fi |
| 22888 | |
| 22889 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 22890 | as_basename=basename |
| 22891 | else |
| 22892 | as_basename=false |
| 22893 | fi |
| 22894 | |
| 22895 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22896 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22897 | as_me=`$as_basename -- "$0" || |
| 22898 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 22899 | X"$0" : 'X\(//\)$' \| \ |
| 22900 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22901 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22902 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 22903 | s//\1/ |
| 22904 | q |
| 22905 | } |
| 22906 | /^X\/\(\/\/\)$/{ |
| 22907 | s//\1/ |
| 22908 | q |
| 22909 | } |
| 22910 | /^X\/\(\/\).*/{ |
| 22911 | s//\1/ |
| 22912 | q |
| 22913 | } |
| 22914 | s/.*/./; q'` |
| 22915 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22916 | # CDPATH. |
| 22917 | $as_unset CDPATH |
| 22918 | |
| 22919 | |
| 22920 | |
| 22921 | as_lineno_1=$LINENO |
| 22922 | as_lineno_2=$LINENO |
| 22923 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 22924 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 22925 | |
| 22926 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 22927 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 22928 | # line-number line after each line using $LINENO; the second 'sed' |
| 22929 | # does the real work. The second script uses 'N' to pair each |
| 22930 | # line-number line with the line containing $LINENO, and appends |
| 22931 | # trailing '-' during substitution so that $LINENO is not a special |
| 22932 | # case at line end. |
| 22933 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 22934 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 22935 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 22936 | sed -n ' |
| 22937 | p |
| 22938 | /[$]LINENO/= |
| 22939 | ' <$as_myself | |
| 22940 | sed ' |
| 22941 | s/[$]LINENO.*/&-/ |
| 22942 | t lineno |
| 22943 | b |
| 22944 | :lineno |
| 22945 | N |
| 22946 | :loop |
| 22947 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 22948 | t loop |
| 22949 | s/-\n.*// |
| 22950 | ' >$as_me.lineno && |
| 22951 | chmod +x "$as_me.lineno" || |
| 22952 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 22953 | { (exit 1); exit 1; }; } |
| 22954 | |
| 22955 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 22956 | # (the dirname of $[0] is not the place where we might find the |
| 22957 | # original and so on. Autoconf is especially sensitive to this). |
| 22958 | . "./$as_me.lineno" |
| 22959 | # Exit status is that of the last command. |
| 22960 | exit |
| 22961 | } |
| 22962 | |
| 22963 | |
| 22964 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 22965 | as_dirname=dirname |
| 22966 | else |
| 22967 | as_dirname=false |
| 22968 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22969 | |
| 22970 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22971 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22972 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22973 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22974 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22975 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22976 | esac;; |
| 22977 | *) |
| 22978 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22979 | esac |
| 22980 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22981 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 22982 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 22983 | as_expr=expr |
| 22984 | else |
| 22985 | as_expr=false |
| 22986 | fi |
| 22987 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22988 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22989 | if test -d conf$$.dir; then |
| 22990 | rm -f conf$$.dir/conf$$.file |
| 22991 | else |
| 22992 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22993 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22994 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22995 | echo >conf$$.file |
| 22996 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 22997 | as_ln_s='ln -s' |
| 22998 | # ... but there are two gotchas: |
| 22999 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 23000 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 23001 | # In both cases, we have to default to `cp -p'. |
| 23002 | 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] | 23003 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23004 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 23005 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23006 | else |
| 23007 | as_ln_s='cp -p' |
| 23008 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23009 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 23010 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23011 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23012 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23013 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23014 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23015 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23016 | as_mkdir_p=false |
| 23017 | fi |
| 23018 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23019 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 23020 | # systems may use methods other than mode bits to determine executability. |
| 23021 | cat >conf$$.file <<_ASEOF |
| 23022 | #! /bin/sh |
| 23023 | exit 0 |
| 23024 | _ASEOF |
| 23025 | chmod +x conf$$.file |
| 23026 | if test -x conf$$.file >/dev/null 2>&1; then |
| 23027 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23028 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23029 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23030 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23031 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23032 | |
| 23033 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23034 | 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] | 23035 | |
| 23036 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23037 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23038 | |
| 23039 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23040 | exec 6>&1 |
| 23041 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23042 | # 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] | 23043 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23044 | # values after options handling. |
| 23045 | ac_log=" |
Bill Wendling | ebc2fc1 | 2011-03-08 03:00:02 +0000 | [diff] [blame] | 23046 | This file was extended by llvm $as_me 3.0svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23047 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23048 | |
| 23049 | CONFIG_FILES = $CONFIG_FILES |
| 23050 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 23051 | CONFIG_LINKS = $CONFIG_LINKS |
| 23052 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 23053 | $ $0 $@ |
| 23054 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23055 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 23056 | " |
| 23057 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23058 | _ACEOF |
| 23059 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23060 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23061 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23062 | config_files="$ac_config_files" |
| 23063 | config_headers="$ac_config_headers" |
| 23064 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23065 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23066 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23067 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23068 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23069 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23070 | \`$as_me' instantiates files from templates according to the |
| 23071 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23072 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23073 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23074 | |
| 23075 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23076 | -V, --version print version number, then exit |
| 23077 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23078 | -d, --debug don't remove temporary files |
| 23079 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23080 | --file=FILE[:TEMPLATE] |
| 23081 | instantiate the configuration file FILE |
| 23082 | --header=FILE[:TEMPLATE] |
| 23083 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23084 | |
| 23085 | Configuration files: |
| 23086 | $config_files |
| 23087 | |
| 23088 | Configuration headers: |
| 23089 | $config_headers |
| 23090 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23091 | Configuration commands: |
| 23092 | $config_commands |
| 23093 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23094 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23095 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23096 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23097 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23098 | ac_cs_version="\\ |
Bill Wendling | ebc2fc1 | 2011-03-08 03:00:02 +0000 | [diff] [blame] | 23099 | llvm config.status 3.0svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23100 | configured by $0, generated by GNU Autoconf 2.60, |
| 23101 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23102 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23103 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23104 | This config.status script is free software; the Free Software Foundation |
| 23105 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23106 | |
| 23107 | ac_pwd='$ac_pwd' |
| 23108 | srcdir='$srcdir' |
| 23109 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23110 | _ACEOF |
| 23111 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23112 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23113 | # If no file are specified by the user, then we need to provide default |
| 23114 | # 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] | 23115 | ac_need_defaults=: |
| 23116 | while test $# != 0 |
| 23117 | do |
| 23118 | case $1 in |
| 23119 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23120 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 23121 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23122 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23123 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23124 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23125 | ac_option=$1 |
| 23126 | ac_optarg=$2 |
| 23127 | ac_shift=shift |
| 23128 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23129 | esac |
| 23130 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23131 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23132 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23133 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 23134 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23135 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23136 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23137 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23138 | debug=: ;; |
| 23139 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23140 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23141 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23142 | ac_need_defaults=false;; |
| 23143 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23144 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23145 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23146 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23147 | --he | --h) |
| 23148 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23149 | { echo "$as_me: error: ambiguous option: $1 |
| 23150 | Try \`$0 --help' for more information." >&2 |
| 23151 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23152 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23153 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23154 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 23155 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 23156 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23157 | |
| 23158 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23159 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 23160 | Try \`$0 --help' for more information." >&2 |
| 23161 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23162 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23163 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23164 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23165 | |
| 23166 | esac |
| 23167 | shift |
| 23168 | done |
| 23169 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23170 | ac_configure_extra_args= |
| 23171 | |
| 23172 | if $ac_cs_silent; then |
| 23173 | exec 6>/dev/null |
| 23174 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 23175 | fi |
| 23176 | |
| 23177 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23178 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23179 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23180 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 23181 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23182 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23183 | 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] | 23184 | fi |
| 23185 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23186 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23187 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23188 | exec 5>>config.log |
| 23189 | { |
| 23190 | echo |
| 23191 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 23192 | ## Running $as_me. ## |
| 23193 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23194 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23195 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23196 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23197 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23198 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23199 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23200 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23201 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 23202 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23203 | |
| 23204 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23205 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23206 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23207 | |
| 23208 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23209 | for ac_config_target in $ac_config_targets |
| 23210 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23211 | case $ac_config_target in |
| 23212 | "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] | 23213 | "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] | 23214 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 23215 | "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] | 23216 | "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] | 23217 | "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] | 23218 | "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] | 23219 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 23220 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Peter Collingbourne | 7be3a60 | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 23221 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
| 23222 | "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;; |
Mikhail Glushenkov | 4b643c0 | 2010-08-15 07:07:17 +0000 | [diff] [blame] | 23223 | "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] | 23224 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 23225 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 23226 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 23227 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 23228 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 23229 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 23230 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23231 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 23232 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 23233 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23234 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 23235 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 23236 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 23237 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 23238 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23239 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23240 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 23241 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 23242 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23243 | esac |
| 23244 | done |
| 23245 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23246 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23247 | # If the user did not use the arguments to specify the items to instantiate, |
| 23248 | # then the envvar interface is used. Set only those that are not. |
| 23249 | # We use the long form for the default assignment because of an extremely |
| 23250 | # bizarre bug on SunOS 4.1.3. |
| 23251 | if $ac_need_defaults; then |
| 23252 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 23253 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23254 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23255 | fi |
| 23256 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23257 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23258 | # 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] | 23259 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23260 | # Hook for its removal unless debugging. |
| 23261 | # Note that there is a small window in which the directory will not be cleaned: |
| 23262 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23263 | $debug || |
| 23264 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23265 | tmp= |
| 23266 | trap 'exit_status=$? |
| 23267 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 23268 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23269 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23270 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23271 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23272 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23273 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23274 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23275 | test -n "$tmp" && test -d "$tmp" |
| 23276 | } || |
| 23277 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23278 | tmp=./conf$$-$RANDOM |
| 23279 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23280 | } || |
| 23281 | { |
| 23282 | echo "$me: cannot create a temporary directory in ." >&2 |
| 23283 | { (exit 1); exit 1; } |
| 23284 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23285 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23286 | # |
| 23287 | # Set up the sed scripts for CONFIG_FILES section. |
| 23288 | # |
| 23289 | |
| 23290 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 23291 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23292 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23293 | |
| 23294 | _ACEOF |
| 23295 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23296 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23297 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23298 | ac_delim='%!_!# ' |
| 23299 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23300 | cat >conf$$subs.sed <<_ACEOF |
| 23301 | SHELL!$SHELL$ac_delim |
| 23302 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 23303 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 23304 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 23305 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 23306 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 23307 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 23308 | exec_prefix!$exec_prefix$ac_delim |
| 23309 | prefix!$prefix$ac_delim |
| 23310 | program_transform_name!$program_transform_name$ac_delim |
| 23311 | bindir!$bindir$ac_delim |
| 23312 | sbindir!$sbindir$ac_delim |
| 23313 | libexecdir!$libexecdir$ac_delim |
| 23314 | datarootdir!$datarootdir$ac_delim |
| 23315 | datadir!$datadir$ac_delim |
| 23316 | sysconfdir!$sysconfdir$ac_delim |
| 23317 | sharedstatedir!$sharedstatedir$ac_delim |
| 23318 | localstatedir!$localstatedir$ac_delim |
| 23319 | includedir!$includedir$ac_delim |
| 23320 | oldincludedir!$oldincludedir$ac_delim |
| 23321 | docdir!$docdir$ac_delim |
| 23322 | infodir!$infodir$ac_delim |
| 23323 | htmldir!$htmldir$ac_delim |
| 23324 | dvidir!$dvidir$ac_delim |
| 23325 | pdfdir!$pdfdir$ac_delim |
| 23326 | psdir!$psdir$ac_delim |
| 23327 | libdir!$libdir$ac_delim |
| 23328 | localedir!$localedir$ac_delim |
| 23329 | mandir!$mandir$ac_delim |
| 23330 | DEFS!$DEFS$ac_delim |
| 23331 | ECHO_C!$ECHO_C$ac_delim |
| 23332 | ECHO_N!$ECHO_N$ac_delim |
| 23333 | ECHO_T!$ECHO_T$ac_delim |
| 23334 | LIBS!$LIBS$ac_delim |
| 23335 | build_alias!$build_alias$ac_delim |
| 23336 | host_alias!$host_alias$ac_delim |
| 23337 | target_alias!$target_alias$ac_delim |
| 23338 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 23339 | subdirs!$subdirs$ac_delim |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 23340 | ENABLE_POLLY!$ENABLE_POLLY$ac_delim |
| 23341 | LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23342 | build!$build$ac_delim |
| 23343 | build_cpu!$build_cpu$ac_delim |
| 23344 | build_vendor!$build_vendor$ac_delim |
| 23345 | build_os!$build_os$ac_delim |
| 23346 | host!$host$ac_delim |
| 23347 | host_cpu!$host_cpu$ac_delim |
| 23348 | host_vendor!$host_vendor$ac_delim |
| 23349 | host_os!$host_os$ac_delim |
| 23350 | target!$target$ac_delim |
| 23351 | target_cpu!$target_cpu$ac_delim |
| 23352 | target_vendor!$target_vendor$ac_delim |
| 23353 | target_os!$target_os$ac_delim |
| 23354 | OS!$OS$ac_delim |
| 23355 | HOST_OS!$HOST_OS$ac_delim |
| 23356 | TARGET_OS!$TARGET_OS$ac_delim |
| 23357 | LINKALL!$LINKALL$ac_delim |
| 23358 | NOLINKALL!$NOLINKALL$ac_delim |
| 23359 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 23360 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 23361 | ARCH!$ARCH$ac_delim |
| 23362 | ENDIAN!$ENDIAN$ac_delim |
| 23363 | CC!$CC$ac_delim |
| 23364 | CFLAGS!$CFLAGS$ac_delim |
| 23365 | LDFLAGS!$LDFLAGS$ac_delim |
| 23366 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 23367 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 23368 | EXEEXT!$EXEEXT$ac_delim |
| 23369 | OBJEXT!$OBJEXT$ac_delim |
| 23370 | CPP!$CPP$ac_delim |
| 23371 | GREP!$GREP$ac_delim |
| 23372 | EGREP!$EGREP$ac_delim |
| 23373 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 23374 | BUILD_CC!$BUILD_CC$ac_delim |
| 23375 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 23376 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 23377 | CVSBUILD!$CVSBUILD$ac_delim |
| 23378 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 23379 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 23380 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 23381 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 23382 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 23383 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 23384 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 23385 | JIT!$JIT$ac_delim |
| 23386 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 23387 | ENABLE_DOCS!$ENABLE_DOCS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23388 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 23389 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 23390 | ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23391 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 23392 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 23393 | ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 23394 | ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23395 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 23396 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 23397 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23398 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23399 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23400 | 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] | 23401 | break |
| 23402 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23403 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 23404 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 23405 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23406 | else |
| 23407 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23408 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23409 | done |
| 23410 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23411 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 23412 | if test -n "$ac_eof"; then |
| 23413 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 23414 | ac_eof=`expr $ac_eof + 1` |
| 23415 | fi |
| 23416 | |
| 23417 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23418 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 23419 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23420 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23421 | sed ' |
| 23422 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 23423 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 23424 | :n |
| 23425 | t n |
| 23426 | s/'"$ac_delim"'$/,g/; t |
| 23427 | s/$/\\/; p |
| 23428 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 23429 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 23430 | rm -f conf$$subs.sed |
| 23431 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23432 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23433 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23434 | |
| 23435 | |
| 23436 | ac_delim='%!_!# ' |
| 23437 | for ac_last_try in false false false false false :; do |
| 23438 | cat >conf$$subs.sed <<_ACEOF |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 23439 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 23440 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 23441 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 23442 | CLANGPATH!$CLANGPATH$ac_delim |
| 23443 | CLANGXXPATH!$CLANGXXPATH$ac_delim |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 23444 | ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 23445 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 23446 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 23447 | EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 23448 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23449 | CXX!$CXX$ac_delim |
| 23450 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 23451 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 23452 | NM!$NM$ac_delim |
| 23453 | ifGNUmake!$ifGNUmake$ac_delim |
| 23454 | LN_S!$LN_S$ac_delim |
| 23455 | CMP!$CMP$ac_delim |
| 23456 | CP!$CP$ac_delim |
| 23457 | DATE!$DATE$ac_delim |
| 23458 | FIND!$FIND$ac_delim |
| 23459 | MKDIR!$MKDIR$ac_delim |
| 23460 | MV!$MV$ac_delim |
| 23461 | RANLIB!$RANLIB$ac_delim |
| 23462 | AR!$AR$ac_delim |
| 23463 | RM!$RM$ac_delim |
| 23464 | SED!$SED$ac_delim |
| 23465 | TAR!$TAR$ac_delim |
| 23466 | BINPWD!$BINPWD$ac_delim |
| 23467 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 23468 | DOT!$DOT$ac_delim |
| 23469 | FDP!$FDP$ac_delim |
| 23470 | NEATO!$NEATO$ac_delim |
| 23471 | TWOPI!$TWOPI$ac_delim |
| 23472 | CIRCO!$CIRCO$ac_delim |
| 23473 | GV!$GV$ac_delim |
| 23474 | DOTTY!$DOTTY$ac_delim |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 23475 | XDOT_PY!$XDOT_PY$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23476 | PERL!$PERL$ac_delim |
| 23477 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 23478 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 23479 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 23480 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 23481 | BZIP2!$BZIP2$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 23482 | CAT!$CAT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23483 | DOXYGEN!$DOXYGEN$ac_delim |
| 23484 | GROFF!$GROFF$ac_delim |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 23485 | GZIPBIN!$GZIPBIN$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23486 | POD2HTML!$POD2HTML$ac_delim |
| 23487 | POD2MAN!$POD2MAN$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 23488 | PDFROFF!$PDFROFF$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23489 | RUNTEST!$RUNTEST$ac_delim |
| 23490 | TCLSH!$TCLSH$ac_delim |
| 23491 | ZIP!$ZIP$ac_delim |
| 23492 | OCAMLC!$OCAMLC$ac_delim |
| 23493 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 23494 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 23495 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 23496 | GAS!$GAS$ac_delim |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 23497 | HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23498 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 23499 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 23500 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 23501 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 23502 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 23503 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 23504 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
| 23505 | LLVMGCC!$LLVMGCC$ac_delim |
| 23506 | LLVMGXX!$LLVMGXX$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 23507 | LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23508 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 23509 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
| 23510 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 23511 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 23512 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 23513 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 23514 | MMAP_FILE!$MMAP_FILE$ac_delim |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 23515 | LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23516 | LLVMCC1!$LLVMCC1$ac_delim |
| 23517 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 23518 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23519 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 23520 | LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 23521 | LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23522 | SHLIBEXT!$SHLIBEXT$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 23523 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23524 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 23525 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 23526 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 23527 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 23528 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 23529 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 23530 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 23531 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 23532 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 23533 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 23534 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 23535 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23536 | _ACEOF |
| 23537 | |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 23538 | 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] | 23539 | break |
| 23540 | elif $ac_last_try; then |
| 23541 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 23542 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 23543 | { (exit 1); exit 1; }; } |
| 23544 | else |
| 23545 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 23546 | fi |
| 23547 | done |
| 23548 | |
| 23549 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 23550 | if test -n "$ac_eof"; then |
| 23551 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 23552 | ac_eof=`expr $ac_eof + 1` |
| 23553 | fi |
| 23554 | |
| 23555 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23556 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 23557 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23558 | _ACEOF |
| 23559 | sed ' |
| 23560 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 23561 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 23562 | :n |
| 23563 | t n |
| 23564 | s/'"$ac_delim"'$/,g/; t |
| 23565 | s/$/\\/; p |
| 23566 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 23567 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 23568 | rm -f conf$$subs.sed |
| 23569 | cat >>$CONFIG_STATUS <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23570 | CEOF$ac_eof |
| 23571 | _ACEOF |
| 23572 | |
| 23573 | |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 23574 | ac_delim='%!_!# ' |
| 23575 | for ac_last_try in false false false false false :; do |
| 23576 | cat >conf$$subs.sed <<_ACEOF |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 23577 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 23578 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 23579 | RPATH!$RPATH$ac_delim |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 23580 | RDYNAMIC!$RDYNAMIC$ac_delim |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 23581 | LIBOBJS!$LIBOBJS$ac_delim |
| 23582 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 23583 | _ACEOF |
| 23584 | |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 23585 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 23586 | break |
| 23587 | elif $ac_last_try; then |
| 23588 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 23589 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 23590 | { (exit 1); exit 1; }; } |
| 23591 | else |
| 23592 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 23593 | fi |
| 23594 | done |
| 23595 | |
| 23596 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 23597 | if test -n "$ac_eof"; then |
| 23598 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 23599 | ac_eof=`expr $ac_eof + 1` |
| 23600 | fi |
| 23601 | |
| 23602 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23603 | cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof |
| 23604 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 23605 | _ACEOF |
| 23606 | sed ' |
| 23607 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 23608 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 23609 | :n |
| 23610 | t n |
| 23611 | s/'"$ac_delim"'$/,g/; t |
| 23612 | s/$/\\/; p |
| 23613 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 23614 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 23615 | rm -f conf$$subs.sed |
| 23616 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23617 | :end |
| 23618 | s/|#_!!_#|//g |
| 23619 | CEOF$ac_eof |
| 23620 | _ACEOF |
| 23621 | |
| 23622 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23623 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 23624 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 23625 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 23626 | # (actually we leave an empty line to preserve line numbers). |
| 23627 | if test "x$srcdir" = x.; then |
| 23628 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 23629 | s/:*\$(srcdir):*/:/ |
| 23630 | s/:*\${srcdir}:*/:/ |
| 23631 | s/:*@srcdir@:*/:/ |
| 23632 | s/^\([^=]*=[ ]*\):*/\1/ |
| 23633 | s/:*$// |
| 23634 | s/^[^=]*=[ ]*$// |
| 23635 | }' |
| 23636 | fi |
| 23637 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23638 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23639 | fi # test -n "$CONFIG_FILES" |
| 23640 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23641 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23642 | 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] | 23643 | do |
| 23644 | case $ac_tag in |
| 23645 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 23646 | esac |
| 23647 | case $ac_mode$ac_tag in |
| 23648 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23649 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 23650 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 23651 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23652 | :[FH]-) ac_tag=-:-;; |
| 23653 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 23654 | esac |
| 23655 | ac_save_IFS=$IFS |
| 23656 | IFS=: |
| 23657 | set x $ac_tag |
| 23658 | IFS=$ac_save_IFS |
| 23659 | shift |
| 23660 | ac_file=$1 |
| 23661 | shift |
| 23662 | |
| 23663 | case $ac_mode in |
| 23664 | :L) ac_source=$1;; |
| 23665 | :[FH]) |
| 23666 | ac_file_inputs= |
| 23667 | for ac_f |
| 23668 | do |
| 23669 | case $ac_f in |
| 23670 | -) ac_f="$tmp/stdin";; |
| 23671 | *) # Look for the file first in the build tree, then in the source tree |
| 23672 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 23673 | # because $ac_f cannot contain `:'. |
| 23674 | test -f "$ac_f" || |
| 23675 | case $ac_f in |
| 23676 | [\\/$]*) false;; |
| 23677 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 23678 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23679 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 23680 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 23681 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23682 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23683 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23684 | done |
| 23685 | |
| 23686 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 23687 | # use $as_me), people would be surprised to read: |
| 23688 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23689 | configure_input="Generated from "`IFS=: |
| 23690 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23691 | if test x"$ac_file" != x-; then |
| 23692 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23693 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 23694 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23695 | fi |
| 23696 | |
| 23697 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23698 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23699 | esac |
| 23700 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23701 | esac |
| 23702 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23703 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23704 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23705 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 23706 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23707 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23708 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23709 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 23710 | s//\1/ |
| 23711 | q |
| 23712 | } |
| 23713 | /^X\(\/\/\)[^/].*/{ |
| 23714 | s//\1/ |
| 23715 | q |
| 23716 | } |
| 23717 | /^X\(\/\/\)$/{ |
| 23718 | s//\1/ |
| 23719 | q |
| 23720 | } |
| 23721 | /^X\(\/\).*/{ |
| 23722 | s//\1/ |
| 23723 | q |
| 23724 | } |
| 23725 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23726 | { as_dir="$ac_dir" |
| 23727 | case $as_dir in #( |
| 23728 | -*) as_dir=./$as_dir;; |
| 23729 | esac |
| 23730 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 23731 | as_dirs= |
| 23732 | while :; do |
| 23733 | case $as_dir in #( |
| 23734 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 23735 | *) as_qdir=$as_dir;; |
| 23736 | esac |
| 23737 | as_dirs="'$as_qdir' $as_dirs" |
| 23738 | as_dir=`$as_dirname -- "$as_dir" || |
| 23739 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23740 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23741 | X"$as_dir" : 'X\(//\)$' \| \ |
| 23742 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 23743 | echo X"$as_dir" | |
| 23744 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 23745 | s//\1/ |
| 23746 | q |
| 23747 | } |
| 23748 | /^X\(\/\/\)[^/].*/{ |
| 23749 | s//\1/ |
| 23750 | q |
| 23751 | } |
| 23752 | /^X\(\/\/\)$/{ |
| 23753 | s//\1/ |
| 23754 | q |
| 23755 | } |
| 23756 | /^X\(\/\).*/{ |
| 23757 | s//\1/ |
| 23758 | q |
| 23759 | } |
| 23760 | s/.*/./; q'` |
| 23761 | test -d "$as_dir" && break |
| 23762 | done |
| 23763 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 23764 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 23765 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 23766 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23767 | ac_builddir=. |
| 23768 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23769 | case "$ac_dir" in |
| 23770 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 23771 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23772 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23773 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23774 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23775 | case $ac_top_builddir_sub in |
| 23776 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 23777 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 23778 | esac ;; |
| 23779 | esac |
| 23780 | ac_abs_top_builddir=$ac_pwd |
| 23781 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 23782 | # for backward compatibility: |
| 23783 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23784 | |
| 23785 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23786 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23787 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23788 | ac_top_srcdir=$ac_top_builddir_sub |
| 23789 | ac_abs_top_srcdir=$ac_pwd ;; |
| 23790 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23791 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23792 | ac_top_srcdir=$srcdir |
| 23793 | ac_abs_top_srcdir=$srcdir ;; |
| 23794 | *) # Relative name. |
| 23795 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 23796 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 23797 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23798 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23799 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23800 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23801 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23802 | case $ac_mode in |
| 23803 | :F) |
| 23804 | # |
| 23805 | # CONFIG_FILE |
| 23806 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23807 | |
| 23808 | case $INSTALL in |
| 23809 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23810 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23811 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23812 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23813 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23814 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23815 | # If the template does not know about datarootdir, expand it. |
| 23816 | # FIXME: This hack should be removed a few years after 2.60. |
| 23817 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23818 | |
| 23819 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23820 | p |
| 23821 | q |
| 23822 | } |
| 23823 | /@datadir@/p |
| 23824 | /@docdir@/p |
| 23825 | /@infodir@/p |
| 23826 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23827 | /@mandir@/p |
| 23828 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23829 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 23830 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23831 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 23832 | 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] | 23833 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23834 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23835 | ac_datarootdir_hack=' |
| 23836 | s&@datadir@&$datadir&g |
| 23837 | s&@docdir@&$docdir&g |
| 23838 | s&@infodir@&$infodir&g |
| 23839 | s&@localedir@&$localedir&g |
| 23840 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23841 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23842 | esac |
| 23843 | _ACEOF |
| 23844 | |
| 23845 | # Neutralize VPATH when `$srcdir' = `.'. |
| 23846 | # Shell code in configure.ac might set extrasub. |
| 23847 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23848 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23849 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23850 | $extrasub |
| 23851 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23852 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23853 | :t |
| 23854 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23855 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23856 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 23857 | s&@srcdir@&$ac_srcdir&;t t |
| 23858 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 23859 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 23860 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 23861 | s&@builddir@&$ac_builddir&;t t |
| 23862 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 23863 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 23864 | s&@INSTALL@&$ac_INSTALL&;t t |
| 23865 | $ac_datarootdir_hack |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 23866 | " $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] | 23867 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23868 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 23869 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 23870 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23871 | { 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] | 23872 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23873 | 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] | 23874 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23875 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23876 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23877 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23878 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 23879 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 23880 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23881 | ;; |
| 23882 | :H) |
| 23883 | # |
| 23884 | # CONFIG_HEADER |
| 23885 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23886 | _ACEOF |
| 23887 | |
| 23888 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 23889 | # substitutes the proper values into config.h.in to produce config.h. |
| 23890 | rm -f conftest.defines conftest.tail |
| 23891 | # First, append a space to every undef/define line, to ease matching. |
| 23892 | echo 's/$/ /' >conftest.defines |
| 23893 | # Then, protect against being on the right side of a sed subst, or in |
| 23894 | # an unquoted here document, in config.status. If some macros were |
| 23895 | # called several times there might be several #defines for the same |
| 23896 | # symbol, which is useless. But do not sort them, since the last |
| 23897 | # AC_DEFINE must be honored. |
| 23898 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 23899 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 23900 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 23901 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 23902 | # just an empty string. |
| 23903 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 23904 | ac_dB='\\)[ (].*,\\1define\\2' |
| 23905 | ac_dC=' ' |
| 23906 | ac_dD=' ,' |
| 23907 | |
| 23908 | uniq confdefs.h | |
| 23909 | sed -n ' |
| 23910 | t rset |
| 23911 | :rset |
| 23912 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 23913 | t ok |
| 23914 | d |
| 23915 | :ok |
| 23916 | s/[\\&,]/\\&/g |
| 23917 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 23918 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 23919 | ' >>conftest.defines |
| 23920 | |
| 23921 | # Remove the space that was appended to ease matching. |
| 23922 | # Then replace #undef with comments. This is necessary, for |
| 23923 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 23924 | # on some systems where configure will not decide to define it. |
| 23925 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 23926 | echo 's/ $// |
| 23927 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 23928 | |
| 23929 | # Break up conftest.defines: |
| 23930 | ac_max_sed_lines=50 |
| 23931 | |
| 23932 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 23933 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 23934 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 23935 | # et cetera. |
| 23936 | ac_in='$ac_file_inputs' |
| 23937 | ac_out='"$tmp/out1"' |
| 23938 | ac_nxt='"$tmp/out2"' |
| 23939 | |
| 23940 | while : |
| 23941 | do |
| 23942 | # Write a here document: |
| 23943 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23944 | # First, check the format of the line: |
| 23945 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 23946 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 23947 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 23948 | b |
| 23949 | :def |
| 23950 | _ACEOF |
| 23951 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 23952 | echo 'CEOF |
| 23953 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 23954 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 23955 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 23956 | grep . conftest.tail >/dev/null || break |
| 23957 | rm -f conftest.defines |
| 23958 | mv conftest.tail conftest.defines |
| 23959 | done |
| 23960 | rm -f conftest.defines conftest.tail |
| 23961 | |
| 23962 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 23963 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23964 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23965 | echo "/* $configure_input */" >"$tmp/config.h" |
| 23966 | cat "$ac_result" >>"$tmp/config.h" |
| 23967 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 23968 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 23969 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23970 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23971 | rm -f $ac_file |
| 23972 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23973 | fi |
| 23974 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23975 | echo "/* $configure_input */" |
| 23976 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23977 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23978 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23979 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23980 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23981 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 23982 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23983 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23984 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23985 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23986 | |
| 23987 | case $ac_file$ac_mode in |
| 23988 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 23989 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23990 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 23991 | ${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] | 23992 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 23993 | ${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] | 23994 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 23995 | ${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] | 23996 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 23997 | ${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] | 23998 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 23999 | ${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] | 24000 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 24001 | ${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] | 24002 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 24003 | ${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] | 24004 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 24005 | ${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] | 24006 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 24007 | ${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] | 24008 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 24009 | ${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] | 24010 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 24011 | ${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] | 24012 | "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] | 24013 | ${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] | 24014 | |
| 24015 | esac |
| 24016 | done # for ac_tag |
| 24017 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24018 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24019 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24020 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24021 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24022 | ac_clean_files=$ac_clean_files_save |
| 24023 | |
| 24024 | |
| 24025 | # configure is writing to config.log, and then calls config.status. |
| 24026 | # config.status does its own redirection, appending to config.log. |
| 24027 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 24028 | # by configure, so config.status won't be able to write to it; its |
| 24029 | # output is simply discarded. So we exec the FD to /dev/null, |
| 24030 | # effectively closing config.log, so it can be properly (re)opened and |
| 24031 | # appended to by config.status. When coming back to configure, we |
| 24032 | # need to make the FD available again. |
| 24033 | if test "$no_create" != yes; then |
| 24034 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24035 | ac_config_status_args= |
| 24036 | test "$silent" = yes && |
| 24037 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24038 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24039 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24040 | exec 5>>config.log |
| 24041 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 24042 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24043 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24044 | fi |
| 24045 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24046 | # |
| 24047 | # CONFIG_SUBDIRS section. |
| 24048 | # |
| 24049 | if test "$no_recursion" != yes; then |
| 24050 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24051 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24052 | ac_sub_configure_args= |
| 24053 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24054 | eval "set x $ac_configure_args" |
| 24055 | shift |
| 24056 | for ac_arg |
| 24057 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24058 | if test -n "$ac_prev"; then |
| 24059 | ac_prev= |
| 24060 | continue |
| 24061 | fi |
| 24062 | case $ac_arg in |
| 24063 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 24064 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 24065 | ac_prev=cache_file ;; |
| 24066 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 24067 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 24068 | | --c=*) |
| 24069 | ;; |
| 24070 | --config-cache | -C) |
| 24071 | ;; |
| 24072 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 24073 | ac_prev=srcdir ;; |
| 24074 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 24075 | ;; |
| 24076 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 24077 | ac_prev=prefix ;; |
| 24078 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 24079 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24080 | *) |
| 24081 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24082 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24083 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24084 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24085 | esac |
| 24086 | done |
| 24087 | |
| 24088 | # Always prepend --prefix to ensure using the same prefix |
| 24089 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24090 | ac_arg="--prefix=$prefix" |
| 24091 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24092 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24093 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24094 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24095 | |
| 24096 | ac_popdir=`pwd` |
| 24097 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 24098 | |
| 24099 | # Do not complain, so a configure script can configure whichever |
| 24100 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24101 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24102 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24103 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24104 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 24105 | echo "$ac_msg" >&6 |
| 24106 | { as_dir="$ac_dir" |
| 24107 | case $as_dir in #( |
| 24108 | -*) as_dir=./$as_dir;; |
| 24109 | esac |
| 24110 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 24111 | as_dirs= |
| 24112 | while :; do |
| 24113 | case $as_dir in #( |
| 24114 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 24115 | *) as_qdir=$as_dir;; |
| 24116 | esac |
| 24117 | as_dirs="'$as_qdir' $as_dirs" |
| 24118 | as_dir=`$as_dirname -- "$as_dir" || |
| 24119 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24120 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 24121 | X"$as_dir" : 'X\(//\)$' \| \ |
| 24122 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 24123 | echo X"$as_dir" | |
| 24124 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24125 | s//\1/ |
| 24126 | q |
| 24127 | } |
| 24128 | /^X\(\/\/\)[^/].*/{ |
| 24129 | s//\1/ |
| 24130 | q |
| 24131 | } |
| 24132 | /^X\(\/\/\)$/{ |
| 24133 | s//\1/ |
| 24134 | q |
| 24135 | } |
| 24136 | /^X\(\/\).*/{ |
| 24137 | s//\1/ |
| 24138 | q |
| 24139 | } |
| 24140 | s/.*/./; q'` |
| 24141 | test -d "$as_dir" && break |
| 24142 | done |
| 24143 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 24144 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 24145 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 24146 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24147 | ac_builddir=. |
| 24148 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24149 | case "$ac_dir" in |
| 24150 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 24151 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24152 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24153 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24154 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24155 | case $ac_top_builddir_sub in |
| 24156 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 24157 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 24158 | esac ;; |
| 24159 | esac |
| 24160 | ac_abs_top_builddir=$ac_pwd |
| 24161 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 24162 | # for backward compatibility: |
| 24163 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24164 | |
| 24165 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24166 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24167 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24168 | ac_top_srcdir=$ac_top_builddir_sub |
| 24169 | ac_abs_top_srcdir=$ac_pwd ;; |
| 24170 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24171 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24172 | ac_top_srcdir=$srcdir |
| 24173 | ac_abs_top_srcdir=$srcdir ;; |
| 24174 | *) # Relative name. |
| 24175 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 24176 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 24177 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24178 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24179 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24180 | |
| 24181 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24182 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24183 | |
| 24184 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24185 | if test -f "$ac_srcdir/configure.gnu"; then |
| 24186 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 24187 | elif test -f "$ac_srcdir/configure"; then |
| 24188 | ac_sub_configure=$ac_srcdir/configure |
| 24189 | elif test -f "$ac_srcdir/configure.in"; then |
| 24190 | # This should be Cygnus configure. |
| 24191 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24192 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24193 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 24194 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24195 | ac_sub_configure= |
| 24196 | fi |
| 24197 | |
| 24198 | # The recursion is here. |
| 24199 | if test -n "$ac_sub_configure"; then |
| 24200 | # Make the cache file name correct relative to the subdirectory. |
| 24201 | case $cache_file in |
| 24202 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24203 | *) # Relative name. |
| 24204 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24205 | esac |
| 24206 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24207 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 24208 | 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] | 24209 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24210 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 24211 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24212 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 24213 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 24214 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24215 | fi |
| 24216 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24217 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24218 | done |
| 24219 | fi |
| 24220 | |