John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Eric Christopher | b26697c | 2010-09-06 18:47:10 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 2.9svn. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 6 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11 | # |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13 | ## --------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## --------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16 | |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 17 | # Be Bourne compatible |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19 | emulate sh |
| 20 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
| 25 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 28 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 29 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 32 | # PATH needs CR |
| 33 | # Avoid depending upon Character Ranges. |
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 37 | as_cr_digits='0123456789' |
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 39 | |
| 40 | # The user is always right. |
| 41 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 42 | echo "#! /bin/sh" >conf$$.sh |
| 43 | echo "exit 0" >>conf$$.sh |
| 44 | chmod +x conf$$.sh |
| 45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 46 | PATH_SEPARATOR=';' |
| 47 | else |
| 48 | PATH_SEPARATOR=: |
| 49 | fi |
| 50 | rm -f conf$$.sh |
| 51 | fi |
| 52 | |
| 53 | # Support unset when possible. |
| 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 55 | as_unset=unset |
| 56 | else |
| 57 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 58 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 59 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 60 | |
| 61 | # IFS |
| 62 | # We need space, tab and new line, in precisely that order. Quoting is |
| 63 | # there to prevent editors from complaining about space-tab. |
| 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 65 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 66 | as_nl=' |
| 67 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 68 | IFS=" "" $as_nl" |
| 69 | |
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 71 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 72 | *[\\/]* ) as_myself=$0 ;; |
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 74 | for as_dir in $PATH |
| 75 | do |
| 76 | IFS=$as_save_IFS |
| 77 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 79 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 80 | IFS=$as_save_IFS |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 81 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 82 | ;; |
| 83 | esac |
| 84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 85 | # in which case we are not to be found in the path. |
| 86 | if test "x$as_myself" = x; then |
| 87 | as_myself=$0 |
| 88 | fi |
| 89 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 91 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 92 | fi |
| 93 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 94 | # Work around bugs in pre-3.0 UWIN ksh. |
| 95 | for as_var in ENV MAIL MAILPATH |
| 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 103 | for as_var in \ |
| 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 106 | LC_TELEPHONE LC_TIME |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 107 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | eval $as_var=C; export $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 110 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 112 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 113 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 114 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 115 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 118 | as_expr=expr |
| 119 | else |
| 120 | as_expr=false |
| 121 | fi |
| 122 | |
| 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 124 | as_basename=basename |
| 125 | else |
| 126 | as_basename=false |
| 127 | fi |
| 128 | |
| 129 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 130 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 131 | as_me=`$as_basename -- "$0" || |
| 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
| 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 135 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\/\)$/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | /^X\/\(\/\).*/{ |
| 145 | s//\1/ |
| 146 | q |
| 147 | } |
| 148 | s/.*/./; q'` |
| 149 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 150 | # CDPATH. |
| 151 | $as_unset CDPATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 152 | |
| 153 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 154 | if test "x$CONFIG_SHELL" = x; then |
| 155 | if (eval ":") 2>/dev/null; then |
| 156 | as_have_required=yes |
| 157 | else |
| 158 | as_have_required=no |
| 159 | fi |
| 160 | |
| 161 | if test $as_have_required = yes && (eval ": |
| 162 | (as_func_return () { |
| 163 | (exit \$1) |
| 164 | } |
| 165 | as_func_success () { |
| 166 | as_func_return 0 |
| 167 | } |
| 168 | as_func_failure () { |
| 169 | as_func_return 1 |
| 170 | } |
| 171 | as_func_ret_success () { |
| 172 | return 0 |
| 173 | } |
| 174 | as_func_ret_failure () { |
| 175 | return 1 |
| 176 | } |
| 177 | |
| 178 | exitcode=0 |
| 179 | if as_func_success; then |
| 180 | : |
| 181 | else |
| 182 | exitcode=1 |
| 183 | echo as_func_success failed. |
| 184 | fi |
| 185 | |
| 186 | if as_func_failure; then |
| 187 | exitcode=1 |
| 188 | echo as_func_failure succeeded. |
| 189 | fi |
| 190 | |
| 191 | if as_func_ret_success; then |
| 192 | : |
| 193 | else |
| 194 | exitcode=1 |
| 195 | echo as_func_ret_success failed. |
| 196 | fi |
| 197 | |
| 198 | if as_func_ret_failure; then |
| 199 | exitcode=1 |
| 200 | echo as_func_ret_failure succeeded. |
| 201 | fi |
| 202 | |
| 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 204 | : |
| 205 | else |
| 206 | exitcode=1 |
| 207 | echo positional parameters were not saved. |
| 208 | fi |
| 209 | |
| 210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 211 | |
| 212 | ( |
| 213 | as_lineno_1=\$LINENO |
| 214 | as_lineno_2=\$LINENO |
| 215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 217 | ") 2> /dev/null; then |
| 218 | : |
| 219 | else |
| 220 | as_candidate_shells= |
| 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 222 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 223 | do |
| 224 | IFS=$as_save_IFS |
| 225 | test -z "$as_dir" && as_dir=. |
| 226 | case $as_dir in |
| 227 | /*) |
| 228 | for as_base in sh bash ksh sh5; do |
| 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 230 | done;; |
| 231 | esac |
| 232 | done |
| 233 | IFS=$as_save_IFS |
| 234 | |
| 235 | |
| 236 | for as_shell in $as_candidate_shells $SHELL; do |
| 237 | # Try only shells that exist, to save several forks. |
| 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 240 | # Be Bourne compatible |
| 241 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 242 | emulate sh |
| 243 | NULLCMD=: |
| 244 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 245 | # is contrary to our usage. Disable this feature. |
| 246 | alias -g '${1+"$@"}'='"$@"' |
| 247 | setopt NO_GLOB_SUBST |
| 248 | else |
| 249 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 250 | fi |
| 251 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 252 | DUALCASE=1; export DUALCASE # for MKS sh |
| 253 | |
| 254 | : |
| 255 | _ASEOF |
| 256 | }; then |
| 257 | CONFIG_SHELL=$as_shell |
| 258 | as_have_required=yes |
| 259 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 260 | # Be Bourne compatible |
| 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 262 | emulate sh |
| 263 | NULLCMD=: |
| 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 265 | # is contrary to our usage. Disable this feature. |
| 266 | alias -g '${1+"$@"}'='"$@"' |
| 267 | setopt NO_GLOB_SUBST |
| 268 | else |
| 269 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 270 | fi |
| 271 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 272 | DUALCASE=1; export DUALCASE # for MKS sh |
| 273 | |
| 274 | : |
| 275 | (as_func_return () { |
| 276 | (exit $1) |
| 277 | } |
| 278 | as_func_success () { |
| 279 | as_func_return 0 |
| 280 | } |
| 281 | as_func_failure () { |
| 282 | as_func_return 1 |
| 283 | } |
| 284 | as_func_ret_success () { |
| 285 | return 0 |
| 286 | } |
| 287 | as_func_ret_failure () { |
| 288 | return 1 |
| 289 | } |
| 290 | |
| 291 | exitcode=0 |
| 292 | if as_func_success; then |
| 293 | : |
| 294 | else |
| 295 | exitcode=1 |
| 296 | echo as_func_success failed. |
| 297 | fi |
| 298 | |
| 299 | if as_func_failure; then |
| 300 | exitcode=1 |
| 301 | echo as_func_failure succeeded. |
| 302 | fi |
| 303 | |
| 304 | if as_func_ret_success; then |
| 305 | : |
| 306 | else |
| 307 | exitcode=1 |
| 308 | echo as_func_ret_success failed. |
| 309 | fi |
| 310 | |
| 311 | if as_func_ret_failure; then |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_failure succeeded. |
| 314 | fi |
| 315 | |
| 316 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 317 | : |
| 318 | else |
| 319 | exitcode=1 |
| 320 | echo positional parameters were not saved. |
| 321 | fi |
| 322 | |
| 323 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 324 | |
| 325 | ( |
| 326 | as_lineno_1=$LINENO |
| 327 | as_lineno_2=$LINENO |
| 328 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 329 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 330 | |
| 331 | _ASEOF |
| 332 | }; then |
| 333 | break |
| 334 | fi |
| 335 | |
| 336 | fi |
| 337 | |
| 338 | done |
| 339 | |
| 340 | if test "x$CONFIG_SHELL" != x; then |
| 341 | for as_var in BASH_ENV ENV |
| 342 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 343 | done |
| 344 | export CONFIG_SHELL |
| 345 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 346 | fi |
| 347 | |
| 348 | |
| 349 | if test $as_have_required = no; then |
| 350 | echo This script requires a shell more modern than all the |
| 351 | echo shells that I found on your system. Please install a |
| 352 | echo modern shell, or manually run the script under such a |
| 353 | echo shell if you do have one. |
| 354 | { (exit 1); exit 1; } |
| 355 | fi |
| 356 | |
| 357 | |
| 358 | fi |
| 359 | |
| 360 | fi |
| 361 | |
| 362 | |
| 363 | |
| 364 | (eval "as_func_return () { |
| 365 | (exit \$1) |
| 366 | } |
| 367 | as_func_success () { |
| 368 | as_func_return 0 |
| 369 | } |
| 370 | as_func_failure () { |
| 371 | as_func_return 1 |
| 372 | } |
| 373 | as_func_ret_success () { |
| 374 | return 0 |
| 375 | } |
| 376 | as_func_ret_failure () { |
| 377 | return 1 |
| 378 | } |
| 379 | |
| 380 | exitcode=0 |
| 381 | if as_func_success; then |
| 382 | : |
| 383 | else |
| 384 | exitcode=1 |
| 385 | echo as_func_success failed. |
| 386 | fi |
| 387 | |
| 388 | if as_func_failure; then |
| 389 | exitcode=1 |
| 390 | echo as_func_failure succeeded. |
| 391 | fi |
| 392 | |
| 393 | if as_func_ret_success; then |
| 394 | : |
| 395 | else |
| 396 | exitcode=1 |
| 397 | echo as_func_ret_success failed. |
| 398 | fi |
| 399 | |
| 400 | if as_func_ret_failure; then |
| 401 | exitcode=1 |
| 402 | echo as_func_ret_failure succeeded. |
| 403 | fi |
| 404 | |
| 405 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 406 | : |
| 407 | else |
| 408 | exitcode=1 |
| 409 | echo positional parameters were not saved. |
| 410 | fi |
| 411 | |
| 412 | test \$exitcode = 0") || { |
| 413 | echo No shell found that supports shell functions. |
| 414 | echo Please tell autoconf@gnu.org about your system, |
| 415 | echo including any error possibly output before this |
| 416 | echo message |
| 417 | } |
| 418 | |
| 419 | |
| 420 | |
| 421 | as_lineno_1=$LINENO |
| 422 | as_lineno_2=$LINENO |
| 423 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 424 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 425 | |
| 426 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 427 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 428 | # line-number line after each line using $LINENO; the second 'sed' |
| 429 | # does the real work. The second script uses 'N' to pair each |
| 430 | # line-number line with the line containing $LINENO, and appends |
| 431 | # trailing '-' during substitution so that $LINENO is not a special |
| 432 | # case at line end. |
| 433 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 434 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 435 | # E. McMahon (1931-1989) for sed's syntax. :-) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 436 | sed -n ' |
| 437 | p |
| 438 | /[$]LINENO/= |
| 439 | ' <$as_myself | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 440 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 441 | s/[$]LINENO.*/&-/ |
| 442 | t lineno |
| 443 | b |
| 444 | :lineno |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 445 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 446 | :loop |
| 447 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 448 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 449 | s/-\n.*// |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 450 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 451 | chmod +x "$as_me.lineno" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 452 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 453 | { (exit 1); exit 1; }; } |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 454 | |
| 455 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 456 | # (the dirname of $[0] is not the place where we might find the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 457 | # original and so on. Autoconf is especially sensitive to this). |
| 458 | . "./$as_me.lineno" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 459 | # Exit status is that of the last command. |
| 460 | exit |
| 461 | } |
| 462 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 463 | |
| 464 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 465 | as_dirname=dirname |
| 466 | else |
| 467 | as_dirname=false |
| 468 | fi |
| 469 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 470 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 471 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 472 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 473 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 474 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 475 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 476 | esac;; |
| 477 | *) |
| 478 | ECHO_N='-n';; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 479 | esac |
| 480 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 481 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 482 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 483 | as_expr=expr |
| 484 | else |
| 485 | as_expr=false |
| 486 | fi |
| 487 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 488 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 489 | if test -d conf$$.dir; then |
| 490 | rm -f conf$$.dir/conf$$.file |
| 491 | else |
| 492 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 493 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 494 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 495 | echo >conf$$.file |
| 496 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 497 | as_ln_s='ln -s' |
| 498 | # ... but there are two gotchas: |
| 499 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 500 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 501 | # In both cases, we have to default to `cp -p'. |
| 502 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 503 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 504 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 505 | as_ln_s=ln |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 506 | else |
| 507 | as_ln_s='cp -p' |
| 508 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 509 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 510 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 511 | |
| 512 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 513 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 514 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 515 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 516 | as_mkdir_p=false |
| 517 | fi |
| 518 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 519 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 520 | # systems may use methods other than mode bits to determine executability. |
| 521 | cat >conf$$.file <<_ASEOF |
| 522 | #! /bin/sh |
| 523 | exit 0 |
| 524 | _ASEOF |
| 525 | chmod +x conf$$.file |
| 526 | if test -x conf$$.file >/dev/null 2>&1; then |
| 527 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 528 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 529 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 530 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 531 | rm -f conf$$.file |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 532 | |
| 533 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 535 | |
| 536 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 538 | |
| 539 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 540 | |
| 541 | exec 7<&0 </dev/null 6>&1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 542 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 543 | # Name of the host. |
| 544 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 545 | # so uname gets run too. |
| 546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 547 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 548 | # |
| 549 | # Initializations. |
| 550 | # |
| 551 | ac_default_prefix=/usr/local |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 552 | ac_clean_files= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 553 | ac_config_libobj_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 554 | LIBOBJS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 555 | cross_compiling=no |
| 556 | subdirs= |
| 557 | MFLAGS= |
| 558 | MAKEFLAGS= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 559 | SHELL=${CONFIG_SHELL-/bin/sh} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 560 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 561 | # Identity of this package. |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 562 | PACKAGE_NAME='llvm' |
Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 563 | PACKAGE_TARNAME='-llvm-' |
Eric Christopher | b26697c | 2010-09-06 18:47:10 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='2.9svn' |
| 565 | PACKAGE_STRING='llvm 2.9svn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 566 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
| 567 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 568 | ac_unique_file="lib/VMCore/Module.cpp" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 569 | # Factoring default headers for most tests. |
| 570 | ac_includes_default="\ |
| 571 | #include <stdio.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 572 | #if HAVE_SYS_TYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 573 | # include <sys/types.h> |
| 574 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 575 | #if HAVE_SYS_STAT_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 576 | # include <sys/stat.h> |
| 577 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 578 | #if STDC_HEADERS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 579 | # include <stdlib.h> |
| 580 | # include <stddef.h> |
| 581 | #else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 582 | # if HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 583 | # include <stdlib.h> |
| 584 | # endif |
| 585 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 586 | #if HAVE_STRING_H |
| 587 | # if !STDC_HEADERS && HAVE_MEMORY_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 588 | # include <memory.h> |
| 589 | # endif |
| 590 | # include <string.h> |
| 591 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 592 | #if HAVE_STRINGS_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 593 | # include <strings.h> |
| 594 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 595 | #if HAVE_INTTYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 596 | # include <inttypes.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 597 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 598 | #if HAVE_STDINT_H |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 599 | # include <stdint.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 600 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 601 | #if HAVE_UNISTD_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 602 | # include <unistd.h> |
| 603 | #endif" |
| 604 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 605 | ac_subst_vars='SHELL |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 606 | PATH_SEPARATOR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 607 | PACKAGE_NAME |
| 608 | PACKAGE_TARNAME |
| 609 | PACKAGE_VERSION |
| 610 | PACKAGE_STRING |
| 611 | PACKAGE_BUGREPORT |
| 612 | exec_prefix |
| 613 | prefix |
| 614 | program_transform_name |
| 615 | bindir |
| 616 | sbindir |
| 617 | libexecdir |
| 618 | datarootdir |
| 619 | datadir |
| 620 | sysconfdir |
| 621 | sharedstatedir |
| 622 | localstatedir |
| 623 | includedir |
| 624 | oldincludedir |
| 625 | docdir |
| 626 | infodir |
| 627 | htmldir |
| 628 | dvidir |
| 629 | pdfdir |
| 630 | psdir |
| 631 | libdir |
| 632 | localedir |
| 633 | mandir |
| 634 | DEFS |
| 635 | ECHO_C |
| 636 | ECHO_N |
| 637 | ECHO_T |
| 638 | LIBS |
| 639 | build_alias |
| 640 | host_alias |
| 641 | target_alias |
| 642 | LLVM_COPYRIGHT |
| 643 | subdirs |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 644 | ENABLE_POLLY |
| 645 | LLVM_HAS_POLLY |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 646 | build |
| 647 | build_cpu |
| 648 | build_vendor |
| 649 | build_os |
| 650 | host |
| 651 | host_cpu |
| 652 | host_vendor |
| 653 | host_os |
| 654 | target |
| 655 | target_cpu |
| 656 | target_vendor |
| 657 | target_os |
| 658 | OS |
| 659 | HOST_OS |
| 660 | TARGET_OS |
| 661 | LINKALL |
| 662 | NOLINKALL |
| 663 | LLVM_ON_UNIX |
| 664 | LLVM_ON_WIN32 |
| 665 | ARCH |
| 666 | ENDIAN |
| 667 | CC |
| 668 | CFLAGS |
| 669 | LDFLAGS |
| 670 | CPPFLAGS |
| 671 | ac_ct_CC |
| 672 | EXEEXT |
| 673 | OBJEXT |
| 674 | CPP |
| 675 | GREP |
| 676 | EGREP |
| 677 | LLVM_CROSS_COMPILING |
| 678 | BUILD_CC |
| 679 | BUILD_EXEEXT |
| 680 | BUILD_CXX |
| 681 | CVSBUILD |
| 682 | ENABLE_OPTIMIZED |
| 683 | ENABLE_PROFILING |
| 684 | DISABLE_ASSERTIONS |
| 685 | ENABLE_EXPENSIVE_CHECKS |
| 686 | EXPENSIVE_CHECKS |
| 687 | DEBUG_RUNTIME |
| 688 | DEBUG_SYMBOLS |
| 689 | JIT |
| 690 | TARGET_HAS_JIT |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 691 | ENABLE_DOCS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 692 | ENABLE_DOXYGEN |
| 693 | ENABLE_THREADS |
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 |
| 710 | BINUTILS_INCDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 711 | CXX |
| 712 | CXXFLAGS |
| 713 | ac_ct_CXX |
| 714 | NM |
| 715 | ifGNUmake |
| 716 | LN_S |
| 717 | CMP |
| 718 | CP |
| 719 | DATE |
| 720 | FIND |
| 721 | MKDIR |
| 722 | MV |
| 723 | RANLIB |
| 724 | AR |
| 725 | RM |
| 726 | SED |
| 727 | TAR |
| 728 | BINPWD |
| 729 | GRAPHVIZ |
| 730 | DOT |
| 731 | FDP |
| 732 | NEATO |
| 733 | TWOPI |
| 734 | CIRCO |
| 735 | GV |
| 736 | DOTTY |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 737 | XDOT_PY |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 738 | PERL |
| 739 | HAVE_PERL |
| 740 | INSTALL_PROGRAM |
| 741 | INSTALL_SCRIPT |
| 742 | INSTALL_DATA |
| 743 | BZIP2 |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 744 | CAT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 745 | DOXYGEN |
| 746 | GROFF |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 747 | GZIPBIN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 748 | POD2HTML |
| 749 | POD2MAN |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 750 | PDFROFF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 751 | RUNTEST |
| 752 | TCLSH |
| 753 | ZIP |
| 754 | OCAMLC |
| 755 | OCAMLOPT |
| 756 | OCAMLDEP |
| 757 | OCAMLDOC |
| 758 | GAS |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 759 | HAVE_LINK_VERSION_SCRIPT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 760 | INSTALL_LTDL_TRUE |
| 761 | INSTALL_LTDL_FALSE |
| 762 | CONVENIENCE_LTDL_TRUE |
| 763 | CONVENIENCE_LTDL_FALSE |
| 764 | LIBADD_DL |
| 765 | LLVMGCCCOMMAND |
| 766 | LLVMGXXCOMMAND |
| 767 | LLVMGCC |
| 768 | LLVMGXX |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 769 | LLVMCC_OPTION |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 770 | NO_VARIADIC_MACROS |
| 771 | NO_MISSING_FIELD_INITIALIZERS |
| 772 | USE_UDIS86 |
| 773 | USE_OPROFILE |
| 774 | HAVE_PTHREAD |
| 775 | HUGE_VAL_SANITY |
| 776 | MMAP_FILE |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 777 | LLVMCC_EMITIR_FLAG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 778 | LLVMCC1 |
| 779 | LLVMCC1PLUS |
| 780 | LLVMGCCDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 781 | LLVMGCC_LANGS |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 782 | LLVMGCC_DRAGONEGG |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 783 | LLVMCC_DISABLEOPT_FLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 784 | SHLIBEXT |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 785 | SHLIBPATH_VAR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 786 | LLVM_PREFIX |
| 787 | LLVM_BINDIR |
| 788 | LLVM_LIBDIR |
| 789 | LLVM_DATADIR |
| 790 | LLVM_DOCSDIR |
| 791 | LLVM_ETCDIR |
| 792 | LLVM_INCLUDEDIR |
| 793 | LLVM_INFODIR |
| 794 | LLVM_MANDIR |
| 795 | LLVM_CONFIGTIME |
| 796 | BINDINGS_TO_BUILD |
| 797 | ALL_BINDINGS |
| 798 | OCAML_LIBDIR |
| 799 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 800 | RPATH |
| 801 | RDYNAMIC |
| 802 | LIBOBJS |
| 803 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 804 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 805 | ac_precious_vars='build_alias |
| 806 | host_alias |
| 807 | target_alias |
| 808 | CC |
| 809 | CFLAGS |
| 810 | LDFLAGS |
| 811 | CPPFLAGS |
| 812 | CPP |
| 813 | CXX |
| 814 | CXXFLAGS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 815 | CCC' |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 816 | ac_subdirs_all='projects/llvm-gcc |
| 817 | projects/test-suite |
| 818 | projects/llvm-test |
| 819 | projects/poolalloc |
| 820 | projects/llvm-poolalloc |
| 821 | projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 822 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 823 | projects/llvm-stacker |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 824 | projects/llvm-reopt |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 825 | projects/llvm-java |
| 826 | projects/llvm-tv |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 827 | projects/safecode |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 828 | projects/llvm-kernel |
| 829 | tools/polly' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 830 | |
| 831 | # Initialize some variables set by options. |
| 832 | ac_init_help= |
| 833 | ac_init_version=false |
| 834 | # The variables have the same names as the options, with |
| 835 | # dashes changed to underlines. |
| 836 | cache_file=/dev/null |
| 837 | exec_prefix=NONE |
| 838 | no_create= |
| 839 | no_recursion= |
| 840 | prefix=NONE |
| 841 | program_prefix=NONE |
| 842 | program_suffix=NONE |
| 843 | program_transform_name=s,x,x, |
| 844 | silent= |
| 845 | site= |
| 846 | srcdir= |
| 847 | verbose= |
| 848 | x_includes=NONE |
| 849 | x_libraries=NONE |
| 850 | |
| 851 | # Installation directory options. |
| 852 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 853 | # and all the variables that are supposed to be based on exec_prefix |
| 854 | # by default will actually change. |
| 855 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 856 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 857 | bindir='${exec_prefix}/bin' |
| 858 | sbindir='${exec_prefix}/sbin' |
| 859 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 860 | datarootdir='${prefix}/share' |
| 861 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 862 | sysconfdir='${prefix}/etc' |
| 863 | sharedstatedir='${prefix}/com' |
| 864 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 865 | includedir='${prefix}/include' |
| 866 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 867 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 868 | infodir='${datarootdir}/info' |
| 869 | htmldir='${docdir}' |
| 870 | dvidir='${docdir}' |
| 871 | pdfdir='${docdir}' |
| 872 | psdir='${docdir}' |
| 873 | libdir='${exec_prefix}/lib' |
| 874 | localedir='${datarootdir}/locale' |
| 875 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 876 | |
| 877 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 878 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 879 | for ac_option |
| 880 | do |
| 881 | # If the previous option needs an argument, assign it. |
| 882 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 883 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 884 | ac_prev= |
| 885 | continue |
| 886 | fi |
| 887 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 888 | case $ac_option in |
| 889 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 890 | *) ac_optarg=yes ;; |
| 891 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 892 | |
| 893 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 894 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 895 | case $ac_dashdash$ac_option in |
| 896 | --) |
| 897 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 898 | |
| 899 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 900 | ac_prev=bindir ;; |
| 901 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 902 | bindir=$ac_optarg ;; |
| 903 | |
| 904 | -build | --build | --buil | --bui | --bu) |
| 905 | ac_prev=build_alias ;; |
| 906 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 907 | build_alias=$ac_optarg ;; |
| 908 | |
| 909 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 910 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 911 | ac_prev=cache_file ;; |
| 912 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 913 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 914 | cache_file=$ac_optarg ;; |
| 915 | |
| 916 | --config-cache | -C) |
| 917 | cache_file=config.cache ;; |
| 918 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 919 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 920 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 921 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 922 | datadir=$ac_optarg ;; |
| 923 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 924 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 925 | | --dataroo | --dataro | --datar) |
| 926 | ac_prev=datarootdir ;; |
| 927 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 928 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 929 | datarootdir=$ac_optarg ;; |
| 930 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 931 | -disable-* | --disable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 932 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 933 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 934 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 935 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 936 | { (exit 1); exit 1; }; } |
| 937 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 938 | eval enable_$ac_feature=no ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 939 | |
| 940 | -docdir | --docdir | --docdi | --doc | --do) |
| 941 | ac_prev=docdir ;; |
| 942 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 943 | docdir=$ac_optarg ;; |
| 944 | |
| 945 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 946 | ac_prev=dvidir ;; |
| 947 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 948 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 949 | |
| 950 | -enable-* | --enable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 951 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 952 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 953 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 954 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 955 | { (exit 1); exit 1; }; } |
| 956 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 957 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 958 | |
| 959 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 960 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 961 | | --exec | --exe | --ex) |
| 962 | ac_prev=exec_prefix ;; |
| 963 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 964 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 965 | | --exec=* | --exe=* | --ex=*) |
| 966 | exec_prefix=$ac_optarg ;; |
| 967 | |
| 968 | -gas | --gas | --ga | --g) |
| 969 | # Obsolete; use --with-gas. |
| 970 | with_gas=yes ;; |
| 971 | |
| 972 | -help | --help | --hel | --he | -h) |
| 973 | ac_init_help=long ;; |
| 974 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 975 | ac_init_help=recursive ;; |
| 976 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 977 | ac_init_help=short ;; |
| 978 | |
| 979 | -host | --host | --hos | --ho) |
| 980 | ac_prev=host_alias ;; |
| 981 | -host=* | --host=* | --hos=* | --ho=*) |
| 982 | host_alias=$ac_optarg ;; |
| 983 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 984 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 985 | ac_prev=htmldir ;; |
| 986 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 987 | | --ht=*) |
| 988 | htmldir=$ac_optarg ;; |
| 989 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 990 | -includedir | --includedir | --includedi | --included | --include \ |
| 991 | | --includ | --inclu | --incl | --inc) |
| 992 | ac_prev=includedir ;; |
| 993 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 994 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 995 | includedir=$ac_optarg ;; |
| 996 | |
| 997 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 998 | ac_prev=infodir ;; |
| 999 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1000 | infodir=$ac_optarg ;; |
| 1001 | |
| 1002 | -libdir | --libdir | --libdi | --libd) |
| 1003 | ac_prev=libdir ;; |
| 1004 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1005 | libdir=$ac_optarg ;; |
| 1006 | |
| 1007 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1008 | | --libexe | --libex | --libe) |
| 1009 | ac_prev=libexecdir ;; |
| 1010 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1011 | | --libexe=* | --libex=* | --libe=*) |
| 1012 | libexecdir=$ac_optarg ;; |
| 1013 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1014 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1015 | ac_prev=localedir ;; |
| 1016 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1017 | localedir=$ac_optarg ;; |
| 1018 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1019 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1020 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1021 | ac_prev=localstatedir ;; |
| 1022 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1023 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1024 | localstatedir=$ac_optarg ;; |
| 1025 | |
| 1026 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1027 | ac_prev=mandir ;; |
| 1028 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1029 | mandir=$ac_optarg ;; |
| 1030 | |
| 1031 | -nfp | --nfp | --nf) |
| 1032 | # Obsolete; use --without-fp. |
| 1033 | with_fp=no ;; |
| 1034 | |
| 1035 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1036 | | --no-cr | --no-c | -n) |
| 1037 | no_create=yes ;; |
| 1038 | |
| 1039 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1040 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1041 | no_recursion=yes ;; |
| 1042 | |
| 1043 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1044 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1045 | | --oldin | --oldi | --old | --ol | --o) |
| 1046 | ac_prev=oldincludedir ;; |
| 1047 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1048 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1049 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1050 | oldincludedir=$ac_optarg ;; |
| 1051 | |
| 1052 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1053 | ac_prev=prefix ;; |
| 1054 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1055 | prefix=$ac_optarg ;; |
| 1056 | |
| 1057 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1058 | | --program-pre | --program-pr | --program-p) |
| 1059 | ac_prev=program_prefix ;; |
| 1060 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1061 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1062 | program_prefix=$ac_optarg ;; |
| 1063 | |
| 1064 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1065 | | --program-suf | --program-su | --program-s) |
| 1066 | ac_prev=program_suffix ;; |
| 1067 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1068 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1069 | program_suffix=$ac_optarg ;; |
| 1070 | |
| 1071 | -program-transform-name | --program-transform-name \ |
| 1072 | | --program-transform-nam | --program-transform-na \ |
| 1073 | | --program-transform-n | --program-transform- \ |
| 1074 | | --program-transform | --program-transfor \ |
| 1075 | | --program-transfo | --program-transf \ |
| 1076 | | --program-trans | --program-tran \ |
| 1077 | | --progr-tra | --program-tr | --program-t) |
| 1078 | ac_prev=program_transform_name ;; |
| 1079 | -program-transform-name=* | --program-transform-name=* \ |
| 1080 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1081 | | --program-transform-n=* | --program-transform-=* \ |
| 1082 | | --program-transform=* | --program-transfor=* \ |
| 1083 | | --program-transfo=* | --program-transf=* \ |
| 1084 | | --program-trans=* | --program-tran=* \ |
| 1085 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1086 | program_transform_name=$ac_optarg ;; |
| 1087 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1088 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1089 | ac_prev=pdfdir ;; |
| 1090 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1091 | pdfdir=$ac_optarg ;; |
| 1092 | |
| 1093 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1094 | ac_prev=psdir ;; |
| 1095 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1096 | psdir=$ac_optarg ;; |
| 1097 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1098 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1099 | | -silent | --silent | --silen | --sile | --sil) |
| 1100 | silent=yes ;; |
| 1101 | |
| 1102 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1103 | ac_prev=sbindir ;; |
| 1104 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1105 | | --sbi=* | --sb=*) |
| 1106 | sbindir=$ac_optarg ;; |
| 1107 | |
| 1108 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1109 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1110 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1111 | | --sha | --sh) |
| 1112 | ac_prev=sharedstatedir ;; |
| 1113 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1114 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1115 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1116 | | --sha=* | --sh=*) |
| 1117 | sharedstatedir=$ac_optarg ;; |
| 1118 | |
| 1119 | -site | --site | --sit) |
| 1120 | ac_prev=site ;; |
| 1121 | -site=* | --site=* | --sit=*) |
| 1122 | site=$ac_optarg ;; |
| 1123 | |
| 1124 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1125 | ac_prev=srcdir ;; |
| 1126 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1127 | srcdir=$ac_optarg ;; |
| 1128 | |
| 1129 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1130 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1131 | ac_prev=sysconfdir ;; |
| 1132 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1133 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1134 | sysconfdir=$ac_optarg ;; |
| 1135 | |
| 1136 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1137 | ac_prev=target_alias ;; |
| 1138 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1139 | target_alias=$ac_optarg ;; |
| 1140 | |
| 1141 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1142 | verbose=yes ;; |
| 1143 | |
| 1144 | -version | --version | --versio | --versi | --vers | -V) |
| 1145 | ac_init_version=: ;; |
| 1146 | |
| 1147 | -with-* | --with-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1148 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1149 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1150 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1151 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1152 | { (exit 1); exit 1; }; } |
| 1153 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1154 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1155 | |
| 1156 | -without-* | --without-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1157 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1158 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1159 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1160 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1161 | { (exit 1); exit 1; }; } |
| 1162 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1163 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1164 | |
| 1165 | --x) |
| 1166 | # Obsolete; use --with-x. |
| 1167 | with_x=yes ;; |
| 1168 | |
| 1169 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1170 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1171 | ac_prev=x_includes ;; |
| 1172 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1173 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1174 | x_includes=$ac_optarg ;; |
| 1175 | |
| 1176 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1177 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1178 | ac_prev=x_libraries ;; |
| 1179 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1180 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1181 | x_libraries=$ac_optarg ;; |
| 1182 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1183 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1184 | Try \`$0 --help' for more information." >&2 |
| 1185 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1186 | ;; |
| 1187 | |
| 1188 | *=*) |
| 1189 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1190 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1191 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1192 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1193 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1194 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1195 | export $ac_envvar ;; |
| 1196 | |
| 1197 | *) |
| 1198 | # FIXME: should be removed in autoconf 3.0. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1199 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1200 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1201 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1202 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1203 | ;; |
| 1204 | |
| 1205 | esac |
| 1206 | done |
| 1207 | |
| 1208 | if test -n "$ac_prev"; then |
| 1209 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1210 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1211 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1212 | fi |
| 1213 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1214 | # Be sure to have absolute directory names. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1215 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1216 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1217 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1218 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1219 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1220 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1221 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1222 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1223 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1224 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1225 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1226 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1227 | done |
| 1228 | |
| 1229 | # There might be people who depend on the old broken behavior: `$host' |
| 1230 | # used to hold the argument of --host etc. |
| 1231 | # FIXME: To remove some day. |
| 1232 | build=$build_alias |
| 1233 | host=$host_alias |
| 1234 | target=$target_alias |
| 1235 | |
| 1236 | # FIXME: To remove some day. |
| 1237 | if test "x$host_alias" != x; then |
| 1238 | if test "x$build_alias" = x; then |
| 1239 | cross_compiling=maybe |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1240 | 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] | 1241 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1242 | elif test "x$build_alias" != "x$host_alias"; then |
| 1243 | cross_compiling=yes |
| 1244 | fi |
| 1245 | fi |
| 1246 | |
| 1247 | ac_tool_prefix= |
| 1248 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1249 | |
| 1250 | test "$silent" = yes && exec 6>/dev/null |
| 1251 | |
| 1252 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1253 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1254 | ac_ls_di=`ls -di .` && |
| 1255 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1256 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1257 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1258 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1259 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1260 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1261 | |
| 1262 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1263 | # Find the source files, if location was not specified. |
| 1264 | if test -z "$srcdir"; then |
| 1265 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1266 | # Try the directory containing this script, then the parent directory. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1267 | ac_confdir=`$as_dirname -- "$0" || |
| 1268 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1269 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1270 | X"$0" : 'X\(//\)$' \| \ |
| 1271 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1272 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1273 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1274 | s//\1/ |
| 1275 | q |
| 1276 | } |
| 1277 | /^X\(\/\/\)[^/].*/{ |
| 1278 | s//\1/ |
| 1279 | q |
| 1280 | } |
| 1281 | /^X\(\/\/\)$/{ |
| 1282 | s//\1/ |
| 1283 | q |
| 1284 | } |
| 1285 | /^X\(\/\).*/{ |
| 1286 | s//\1/ |
| 1287 | q |
| 1288 | } |
| 1289 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1290 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1291 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1292 | srcdir=.. |
| 1293 | fi |
| 1294 | else |
| 1295 | ac_srcdir_defaulted=no |
| 1296 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1297 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1298 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1299 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1300 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1301 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1302 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1303 | ac_abs_confdir=`( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1304 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1305 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1306 | pwd)` |
| 1307 | # When building in place, set srcdir=. |
| 1308 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1309 | srcdir=. |
| 1310 | fi |
| 1311 | # Remove unnecessary trailing slashes from srcdir. |
| 1312 | # Double slashes in file names in object file debugging info |
| 1313 | # mess up M-x gdb in Emacs. |
| 1314 | case $srcdir in |
| 1315 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1316 | esac |
| 1317 | for ac_var in $ac_precious_vars; do |
| 1318 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1319 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1320 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1321 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1322 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1323 | |
| 1324 | # |
| 1325 | # Report the --help message. |
| 1326 | # |
| 1327 | if test "$ac_init_help" = "long"; then |
| 1328 | # Omit some internal or obsolete options to make the list less imposing. |
| 1329 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1330 | cat <<_ACEOF |
Eric Christopher | b26697c | 2010-09-06 18:47:10 +0000 | [diff] [blame] | 1331 | \`configure' configures llvm 2.9svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1332 | |
| 1333 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1334 | |
| 1335 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1336 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1337 | |
| 1338 | Defaults for the options are specified in brackets. |
| 1339 | |
| 1340 | Configuration: |
| 1341 | -h, --help display this help and exit |
| 1342 | --help=short display options specific to this package |
| 1343 | --help=recursive display the short help of all the included packages |
| 1344 | -V, --version display version information and exit |
| 1345 | -q, --quiet, --silent do not print \`checking...' messages |
| 1346 | --cache-file=FILE cache test results in FILE [disabled] |
| 1347 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1348 | -n, --no-create do not create output files |
| 1349 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1350 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1351 | Installation directories: |
| 1352 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1353 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1354 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1355 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1356 | |
| 1357 | By default, \`make install' will install all the files in |
| 1358 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1359 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1360 | for instance \`--prefix=\$HOME'. |
| 1361 | |
| 1362 | For better control, use the options below. |
| 1363 | |
| 1364 | Fine tuning of the installation directories: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1365 | --bindir=DIR user executables [EPREFIX/bin] |
| 1366 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1367 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1368 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1369 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1370 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1371 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1372 | --includedir=DIR C header files [PREFIX/include] |
| 1373 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1374 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1375 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1376 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1377 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1378 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1379 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1380 | --htmldir=DIR html documentation [DOCDIR] |
| 1381 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1382 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1383 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1384 | _ACEOF |
| 1385 | |
| 1386 | cat <<\_ACEOF |
| 1387 | |
| 1388 | System types: |
| 1389 | --build=BUILD configure for building on BUILD [guessed] |
| 1390 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1391 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1392 | _ACEOF |
| 1393 | fi |
| 1394 | |
| 1395 | if test -n "$ac_init_help"; then |
| 1396 | case $ac_init_help in |
Eric Christopher | b26697c | 2010-09-06 18:47:10 +0000 | [diff] [blame] | 1397 | short | recursive ) echo "Configuration of llvm 2.9svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1398 | esac |
| 1399 | cat <<\_ACEOF |
| 1400 | |
| 1401 | Optional Features: |
| 1402 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1403 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 1404 | --enable-polly Use polly if available (default is YES) |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1405 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1406 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1407 | --enable-assertions Compile with assertion checks enabled (default is |
| 1408 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1409 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1410 | Compile with expensive debug checks enabled (default |
| 1411 | is NO) |
| 1412 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1413 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1414 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1415 | optimization is on and YES if it's off) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1416 | --enable-jit Enable Just In Time Compiling (default is YES) |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 1417 | --enable-docs Build documents (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1418 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1419 | --enable-threads Use threads if available (default is YES) |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 1420 | --enable-pthreads Use pthreads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1421 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1422 | is YES) |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 1423 | --enable-shared Build a shared library and link tools against it |
| 1424 | (default is NO) |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 1425 | --enable-embed-stdcxx Build a shared library with embedded libstdc++ for |
| 1426 | Win32 DLL (default is YES) |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 1427 | --enable-timestamps Enable embedding timestamp information in build |
| 1428 | (default is YES) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1429 | --enable-targets Build specific host targets: all or |
| 1430 | target1,target2,... Valid targets are: host, x86, |
| 1431 | x86_64, sparc, powerpc, alpha, arm, mips, spu, |
Eric Christopher | 14074e8 | 2010-10-12 02:42:05 +0000 | [diff] [blame] | 1432 | xcore, msp430, systemz, blackfin, ptx, cbe, and cpp |
| 1433 | (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1434 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1435 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1436 | --enable-bindings Build specific language bindings: |
| 1437 | all,auto,none,{binding-name} (default=auto) |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1438 | --enable-libffi Check for the presence of libffi (default is NO) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1439 | --enable-ltdl-install install libltdl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1440 | |
| 1441 | Optional Packages: |
| 1442 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1443 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1444 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1445 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1446 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1447 | searches PATH) |
| 1448 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1449 | searches PATH) |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 1450 | --with-clang Specify location of clang compiler (default is |
| 1451 | --with-built-clang) |
| 1452 | --with-built-clang Use the compiled Clang as the LLVM compiler |
| 1453 | (default=check) |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1454 | --with-optimize-option Select the compiler options to use for optimized |
| 1455 | builds |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1456 | --with-extra-options Specify additional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1457 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1458 | is stdlib) |
Chandler Carruth | 6b24116 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 1459 | --with-clang-resource-dir |
| 1460 | Relative directory from the Clang binary for |
| 1461 | resource files |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1462 | --with-c-include-dirs Colon separated list of directories clang will |
| 1463 | search for headers |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 1464 | --with-cxx-include-root Directory with the libstdc++ headers. |
| 1465 | --with-cxx-include-arch Architecture of the libstdc++ headers. |
| 1466 | --with-cxx-include-32bit-dir |
| 1467 | 32 bit multilib dir. |
| 1468 | --with-cxx-include-64bit-dir |
| 1469 | 64 bit multilib directory. |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1470 | --with-binutils-include Specify path to binutils/include/ containing |
| 1471 | plugin-api.h file for gold plugin. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1472 | --with-tclinclude directory where tcl headers are |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 1473 | --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc, |
| 1474 | clang, or none; default=check) |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1475 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1476 | --with-oprofile=<prefix> |
| 1477 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1478 | |
| 1479 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1480 | CC C compiler command |
| 1481 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1482 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1483 | nonstandard directory <lib dir> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1484 | 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] | 1485 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1486 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1487 | CXX C++ compiler command |
| 1488 | CXXFLAGS C++ compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1489 | |
| 1490 | Use these variables to override the choices made by `configure' or to help |
| 1491 | it to find libraries and programs with nonstandard names/locations. |
| 1492 | |
| 1493 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1494 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1495 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1496 | fi |
| 1497 | |
| 1498 | if test "$ac_init_help" = "recursive"; then |
| 1499 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1500 | 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] | 1501 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1502 | ac_builddir=. |
| 1503 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1504 | case "$ac_dir" in |
| 1505 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1506 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1507 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1508 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1509 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1510 | case $ac_top_builddir_sub in |
| 1511 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1512 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1513 | esac ;; |
| 1514 | esac |
| 1515 | ac_abs_top_builddir=$ac_pwd |
| 1516 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1517 | # for backward compatibility: |
| 1518 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1519 | |
| 1520 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1521 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1522 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1523 | ac_top_srcdir=$ac_top_builddir_sub |
| 1524 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1525 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1526 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1527 | ac_top_srcdir=$srcdir |
| 1528 | ac_abs_top_srcdir=$srcdir ;; |
| 1529 | *) # Relative name. |
| 1530 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1531 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1532 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1533 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1534 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1535 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1536 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1537 | # Check for guested configure. |
| 1538 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1539 | echo && |
| 1540 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1541 | elif test -f "$ac_srcdir/configure"; then |
| 1542 | echo && |
| 1543 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1544 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1545 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1546 | fi || ac_status=$? |
| 1547 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1548 | done |
| 1549 | fi |
| 1550 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1551 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1552 | if $ac_init_version; then |
| 1553 | cat <<\_ACEOF |
Eric Christopher | b26697c | 2010-09-06 18:47:10 +0000 | [diff] [blame] | 1554 | llvm configure 2.9svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1555 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1556 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1557 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1558 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1559 | This configure script is free software; the Free Software Foundation |
| 1560 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1561 | |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 1562 | Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1563 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1564 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1565 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1566 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1567 | This file contains any messages produced by compilers while |
| 1568 | running configure, to aid debugging if configure makes a mistake. |
| 1569 | |
Eric Christopher | b26697c | 2010-09-06 18:47:10 +0000 | [diff] [blame] | 1570 | It was created by llvm $as_me 2.9svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1571 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1572 | |
| 1573 | $ $0 $@ |
| 1574 | |
| 1575 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1576 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1577 | { |
| 1578 | cat <<_ASUNAME |
| 1579 | ## --------- ## |
| 1580 | ## Platform. ## |
| 1581 | ## --------- ## |
| 1582 | |
| 1583 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1584 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1585 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1586 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1587 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1588 | |
| 1589 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1590 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1591 | |
| 1592 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1593 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1594 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1595 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1596 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1597 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1598 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1599 | |
| 1600 | _ASUNAME |
| 1601 | |
| 1602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1603 | for as_dir in $PATH |
| 1604 | do |
| 1605 | IFS=$as_save_IFS |
| 1606 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1607 | echo "PATH: $as_dir" |
| 1608 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1609 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1610 | |
| 1611 | } >&5 |
| 1612 | |
| 1613 | cat >&5 <<_ACEOF |
| 1614 | |
| 1615 | |
| 1616 | ## ----------- ## |
| 1617 | ## Core tests. ## |
| 1618 | ## ----------- ## |
| 1619 | |
| 1620 | _ACEOF |
| 1621 | |
| 1622 | |
| 1623 | # Keep a trace of the command line. |
| 1624 | # 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] | 1625 | # 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] | 1626 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1627 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1628 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1629 | ac_configure_args0= |
| 1630 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1631 | ac_must_keep_next=false |
| 1632 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1633 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1634 | for ac_arg |
| 1635 | do |
| 1636 | case $ac_arg in |
| 1637 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1638 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1639 | | -silent | --silent | --silen | --sile | --sil) |
| 1640 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1641 | *\'*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1642 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1643 | esac |
| 1644 | case $ac_pass in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1645 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1646 | 2) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1647 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1648 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1649 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1650 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1651 | case $ac_arg in |
| 1652 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1653 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1654 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1655 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1656 | case "$ac_configure_args0 " in |
| 1657 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1658 | esac |
| 1659 | ;; |
| 1660 | -* ) ac_must_keep_next=true ;; |
| 1661 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1662 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1663 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1664 | ;; |
| 1665 | esac |
| 1666 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1667 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1668 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1669 | $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] | 1670 | |
| 1671 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1672 | # config.log. We remove comments because anyway the quotes in there |
| 1673 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1674 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1675 | # 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] | 1676 | trap 'exit_status=$? |
| 1677 | # Save into config.log some information that might help in debugging. |
| 1678 | { |
| 1679 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1680 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1681 | cat <<\_ASBOX |
| 1682 | ## ---------------- ## |
| 1683 | ## Cache variables. ## |
| 1684 | ## ---------------- ## |
| 1685 | _ASBOX |
| 1686 | echo |
| 1687 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1688 | ( |
| 1689 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1690 | eval ac_val=\$$ac_var |
| 1691 | case $ac_val in #( |
| 1692 | *${as_nl}*) |
| 1693 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1694 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1695 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1696 | esac |
| 1697 | case $ac_var in #( |
| 1698 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1699 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1700 | esac ;; |
| 1701 | esac |
| 1702 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1703 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1704 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1705 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1706 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1707 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1708 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1709 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1710 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1711 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
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 | esac | |
| 1714 | sort |
| 1715 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1716 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1717 | |
| 1718 | cat <<\_ASBOX |
| 1719 | ## ----------------- ## |
| 1720 | ## Output variables. ## |
| 1721 | ## ----------------- ## |
| 1722 | _ASBOX |
| 1723 | echo |
| 1724 | for ac_var in $ac_subst_vars |
| 1725 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1726 | eval ac_val=\$$ac_var |
| 1727 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1728 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1729 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1730 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1731 | done | sort |
| 1732 | echo |
| 1733 | |
| 1734 | if test -n "$ac_subst_files"; then |
| 1735 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1736 | ## ------------------- ## |
| 1737 | ## File substitutions. ## |
| 1738 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1739 | _ASBOX |
| 1740 | echo |
| 1741 | for ac_var in $ac_subst_files |
| 1742 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1743 | eval ac_val=\$$ac_var |
| 1744 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1745 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1746 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1747 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1748 | done | sort |
| 1749 | echo |
| 1750 | fi |
| 1751 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1752 | if test -s confdefs.h; then |
| 1753 | cat <<\_ASBOX |
| 1754 | ## ----------- ## |
| 1755 | ## confdefs.h. ## |
| 1756 | ## ----------- ## |
| 1757 | _ASBOX |
| 1758 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1759 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1760 | echo |
| 1761 | fi |
| 1762 | test "$ac_signal" != 0 && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1763 | echo "$as_me: caught signal $ac_signal" |
| 1764 | echo "$as_me: exit $exit_status" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1765 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1766 | rm -f core *.core core.conftest.* && |
| 1767 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1768 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1769 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1770 | for ac_signal in 1 2 13 15; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1771 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1772 | done |
| 1773 | ac_signal=0 |
| 1774 | |
| 1775 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1776 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1777 | |
| 1778 | # Predefined preprocessor variables. |
| 1779 | |
| 1780 | cat >>confdefs.h <<_ACEOF |
| 1781 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1782 | _ACEOF |
| 1783 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1784 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1785 | cat >>confdefs.h <<_ACEOF |
| 1786 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1787 | _ACEOF |
| 1788 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1789 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1790 | cat >>confdefs.h <<_ACEOF |
| 1791 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1792 | _ACEOF |
| 1793 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1794 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1795 | cat >>confdefs.h <<_ACEOF |
| 1796 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1797 | _ACEOF |
| 1798 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1799 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1800 | cat >>confdefs.h <<_ACEOF |
| 1801 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1802 | _ACEOF |
| 1803 | |
| 1804 | |
| 1805 | # 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] | 1806 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1807 | if test -n "$CONFIG_SITE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1808 | set x "$CONFIG_SITE" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1809 | elif test "x$prefix" != xNONE; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1810 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1811 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1812 | set x "$ac_default_prefix/share/config.site" \ |
| 1813 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1814 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1815 | shift |
| 1816 | for ac_site_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1817 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1818 | if test -r "$ac_site_file"; then |
| 1819 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1820 | echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1821 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1822 | . "$ac_site_file" |
| 1823 | fi |
| 1824 | done |
| 1825 | |
| 1826 | if test -r "$cache_file"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1827 | # Some versions of bash will fail to source /dev/null (special |
| 1828 | # files actually), so we avoid doing that. |
| 1829 | if test -f "$cache_file"; then |
| 1830 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1831 | echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1832 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1833 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1834 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1835 | esac |
| 1836 | fi |
| 1837 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1838 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1839 | echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1840 | >$cache_file |
| 1841 | fi |
| 1842 | |
| 1843 | # Check that the precious variables saved in the cache have kept the same |
| 1844 | # value. |
| 1845 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1846 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1847 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1848 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1849 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1850 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1851 | case $ac_old_set,$ac_new_set in |
| 1852 | set,) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1853 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1854 | 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] | 1855 | ac_cache_corrupted=: ;; |
| 1856 | ,set) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1857 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1858 | 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] | 1859 | ac_cache_corrupted=: ;; |
| 1860 | ,);; |
| 1861 | *) |
| 1862 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1863 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1864 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1865 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1866 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1867 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1868 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1869 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1870 | fi;; |
| 1871 | esac |
| 1872 | # Pass precious variables to config.status. |
| 1873 | if test "$ac_new_set" = set; then |
| 1874 | case $ac_new_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1875 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1876 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1877 | esac |
| 1878 | case " $ac_configure_args " in |
| 1879 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1880 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1881 | esac |
| 1882 | fi |
| 1883 | done |
| 1884 | if $ac_cache_corrupted; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1885 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1886 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1887 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1888 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1889 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1890 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1891 | |
| 1892 | |
| 1893 | |
| 1894 | |
| 1895 | |
| 1896 | |
| 1897 | |
| 1898 | |
| 1899 | |
| 1900 | |
| 1901 | |
| 1902 | |
| 1903 | |
| 1904 | |
| 1905 | |
| 1906 | |
| 1907 | |
| 1908 | |
| 1909 | |
| 1910 | |
| 1911 | |
| 1912 | |
| 1913 | |
| 1914 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1915 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1916 | ac_ext=c |
| 1917 | ac_cpp='$CPP $CPPFLAGS' |
| 1918 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1919 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1920 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1921 | |
| 1922 | |
| 1923 | |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 1924 | LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1925 | |
| 1926 | |
| 1927 | |
| 1928 | |
| 1929 | |
| 1930 | |
| 1931 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1932 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1933 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1934 | if test -f "$ac_dir/install-sh"; then |
| 1935 | ac_aux_dir=$ac_dir |
| 1936 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1937 | break |
| 1938 | elif test -f "$ac_dir/install.sh"; then |
| 1939 | ac_aux_dir=$ac_dir |
| 1940 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1941 | break |
| 1942 | elif test -f "$ac_dir/shtool"; then |
| 1943 | ac_aux_dir=$ac_dir |
| 1944 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1945 | break |
| 1946 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1947 | done |
| 1948 | if test -z "$ac_aux_dir"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1949 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1950 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
| 1951 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1952 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1953 | |
| 1954 | # These three variables are undocumented and unsupported, |
| 1955 | # and are intended to be withdrawn in a future Autoconf release. |
| 1956 | # They can cause serious problems if a builder's source tree is in a directory |
| 1957 | # whose full name contains unusual characters. |
| 1958 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1959 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1960 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1961 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1962 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1963 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1964 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1965 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1966 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
| 1967 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1968 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1969 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1970 | fi |
| 1971 | |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 1972 | |
| 1973 | |
| 1974 | if test -d ${srcdir}/projects/llvm-gcc ; then |
| 1975 | subdirs="$subdirs projects/llvm-gcc" |
| 1976 | |
| 1977 | fi |
| 1978 | |
| 1979 | if test -d ${srcdir}/projects/test-suite ; then |
| 1980 | subdirs="$subdirs projects/test-suite" |
| 1981 | |
| 1982 | fi |
| 1983 | |
| 1984 | if test -d ${srcdir}/projects/llvm-test ; then |
| 1985 | subdirs="$subdirs projects/llvm-test" |
| 1986 | |
| 1987 | fi |
| 1988 | |
| 1989 | if test -d ${srcdir}/projects/poolalloc ; then |
| 1990 | subdirs="$subdirs projects/poolalloc" |
| 1991 | |
| 1992 | fi |
| 1993 | |
| 1994 | if test -d ${srcdir}/projects/llvm-poolalloc ; then |
| 1995 | subdirs="$subdirs projects/llvm-poolalloc" |
| 1996 | |
| 1997 | fi |
| 1998 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1999 | for i in `ls ${srcdir}/projects` |
| 2000 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2001 | if test -d ${srcdir}/projects/${i} ; then |
| 2002 | case ${i} in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2003 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2004 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2005 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2006 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2007 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2008 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2009 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
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-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2012 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2013 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2014 | ;; |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 2015 | safecode) subdirs="$subdirs projects/safecode" |
| 2016 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2017 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2018 | ;; |
John Criswell | 52c0286 | 2010-03-25 13:59:09 +0000 | [diff] [blame] | 2019 | llvm-gcc) ;; |
| 2020 | test-suite) ;; |
| 2021 | llvm-test) ;; |
| 2022 | poolalloc) ;; |
| 2023 | llvm-poolalloc) ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2024 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2025 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2026 | 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] | 2027 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2028 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2029 | fi |
| 2030 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2031 | |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 2032 | # Check whether --enable-polly was given. |
| 2033 | if test "${enable_polly+set}" = set; then |
| 2034 | enableval=$enable_polly; |
| 2035 | else |
| 2036 | enableval=default |
| 2037 | fi |
| 2038 | |
| 2039 | case "$enableval" in |
| 2040 | yes) ENABLE_POLLY=1 |
| 2041 | ;; |
| 2042 | no) ENABLE_POLLY=0 |
| 2043 | ;; |
| 2044 | default) ENABLE_POLLY=1 |
| 2045 | ;; |
| 2046 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 |
| 2047 | echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} |
| 2048 | { (exit 1); exit 1; }; } ;; |
| 2049 | esac |
| 2050 | |
| 2051 | |
| 2052 | if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then |
| 2053 | LLVM_HAS_POLLY=1 |
| 2054 | |
| 2055 | subdirs="$subdirs tools/polly" |
| 2056 | |
| 2057 | fi |
| 2058 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2059 | |
| 2060 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2061 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2062 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2063 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 2064 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2065 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2066 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2067 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 2068 | if test "${ac_cv_build+set}" = set; then |
| 2069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2070 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2071 | ac_build_alias=$build_alias |
| 2072 | test "x$ac_build_alias" = x && |
| 2073 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2074 | test "x$ac_build_alias" = x && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2075 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2076 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2077 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2078 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2079 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2080 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 2081 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2082 | |
| 2083 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2084 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2085 | echo "${ECHO_T}$ac_cv_build" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2086 | case $ac_cv_build in |
| 2087 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2088 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2089 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2090 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2091 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2092 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2093 | ac_save_IFS=$IFS; IFS='-' |
| 2094 | set x $ac_cv_build |
| 2095 | shift |
| 2096 | build_cpu=$1 |
| 2097 | build_vendor=$2 |
| 2098 | shift; shift |
| 2099 | # Remember, the first character of IFS is used to create $*, |
| 2100 | # except with old shells: |
| 2101 | build_os=$* |
| 2102 | IFS=$ac_save_IFS |
| 2103 | 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] | 2104 | |
| 2105 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2106 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2107 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 2108 | if test "${ac_cv_host+set}" = set; then |
| 2109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2110 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2111 | if test "x$host_alias" = x; then |
| 2112 | ac_cv_host=$ac_cv_build |
| 2113 | else |
| 2114 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2115 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2116 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 2117 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2118 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2119 | |
| 2120 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2121 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2122 | echo "${ECHO_T}$ac_cv_host" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2123 | case $ac_cv_host in |
| 2124 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2125 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2126 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2127 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2128 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2129 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2130 | ac_save_IFS=$IFS; IFS='-' |
| 2131 | set x $ac_cv_host |
| 2132 | shift |
| 2133 | host_cpu=$1 |
| 2134 | host_vendor=$2 |
| 2135 | shift; shift |
| 2136 | # Remember, the first character of IFS is used to create $*, |
| 2137 | # except with old shells: |
| 2138 | host_os=$* |
| 2139 | IFS=$ac_save_IFS |
| 2140 | 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] | 2141 | |
| 2142 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2143 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2144 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 2145 | if test "${ac_cv_target+set}" = set; then |
| 2146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2147 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2148 | if test "x$target_alias" = x; then |
| 2149 | ac_cv_target=$ac_cv_host |
| 2150 | else |
| 2151 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2152 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2153 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 2154 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2155 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2156 | |
| 2157 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2158 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2159 | echo "${ECHO_T}$ac_cv_target" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2160 | case $ac_cv_target in |
| 2161 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2162 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2163 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2164 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2165 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2166 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2167 | ac_save_IFS=$IFS; IFS='-' |
| 2168 | set x $ac_cv_target |
| 2169 | shift |
| 2170 | target_cpu=$1 |
| 2171 | target_vendor=$2 |
| 2172 | shift; shift |
| 2173 | # Remember, the first character of IFS is used to create $*, |
| 2174 | # except with old shells: |
| 2175 | target_os=$* |
| 2176 | IFS=$ac_save_IFS |
| 2177 | 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] | 2178 | |
| 2179 | |
| 2180 | # The aliases save the names the user supplied, while $host etc. |
| 2181 | # will get canonicalized. |
| 2182 | test -n "$target_alias" && |
| 2183 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2184 | NONENONEs,x,x, && |
| 2185 | program_prefix=${target_alias}- |
| 2186 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2187 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2188 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 2189 | if test "${llvm_cv_os_type+set}" = set; then |
| 2190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2191 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2192 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2193 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2194 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2195 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2196 | llvm_cv_os_type="AIX" |
| 2197 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2198 | *-*-irix*) |
| 2199 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2200 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2201 | llvm_cv_os_type="IRIX" |
| 2202 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2203 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2204 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2205 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2206 | llvm_cv_os_type="Cygwin" |
| 2207 | llvm_cv_platform_type="Unix" ;; |
| 2208 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2209 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2210 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2211 | llvm_cv_os_type="Darwin" |
| 2212 | llvm_cv_platform_type="Unix" ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 2213 | *-*-minix*) |
| 2214 | llvm_cv_link_all_option="-Wl,-all_load" |
| 2215 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 2216 | llvm_cv_os_type="Minix" |
| 2217 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2218 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2219 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2220 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2221 | llvm_cv_os_type="FreeBSD" |
| 2222 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2223 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2224 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2225 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2226 | llvm_cv_os_type="OpenBSD" |
| 2227 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2228 | *-*-netbsd*) |
| 2229 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2230 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2231 | llvm_cv_os_type="NetBSD" |
| 2232 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2233 | *-*-dragonfly*) |
| 2234 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2235 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2236 | llvm_cv_os_type="DragonFly" |
| 2237 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2238 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2239 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2240 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2241 | llvm_cv_os_type="HP-UX" |
| 2242 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2243 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2244 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2245 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2246 | llvm_cv_os_type="Interix" |
| 2247 | llvm_cv_platform_type="Unix" ;; |
| 2248 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2249 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2250 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2251 | llvm_cv_os_type="Linux" |
| 2252 | llvm_cv_platform_type="Unix" ;; |
| 2253 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2254 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2255 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2256 | llvm_cv_os_type="SunOS" |
| 2257 | llvm_cv_platform_type="Unix" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2258 | *-*-auroraux*) |
| 2259 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2260 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 2261 | llvm_cv_os_type="AuroraUX" |
| 2262 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2263 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2264 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2265 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2266 | llvm_cv_os_type="Win32" |
| 2267 | llvm_cv_platform_type="Win32" ;; |
| 2268 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2269 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2270 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2271 | llvm_cv_os_type="MingW" |
| 2272 | llvm_cv_platform_type="Win32" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2273 | *-*-haiku*) |
| 2274 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2275 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2276 | llvm_cv_os_type="Haiku" |
| 2277 | llvm_cv_platform_type="Unix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2278 | *-unknown-eabi*) |
| 2279 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2280 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2281 | llvm_cv_os_type="Freestanding" |
| 2282 | llvm_cv_platform_type="Unix" ;; |
| 2283 | *-unknown-elf*) |
| 2284 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2285 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2286 | llvm_cv_os_type="Freestanding" |
| 2287 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2288 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2289 | llvm_cv_link_all_option="" |
| 2290 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2291 | llvm_cv_os_type="Unknown" |
| 2292 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2293 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2294 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2295 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2296 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2297 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2298 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 2299 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 2300 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 2301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2302 | else |
| 2303 | case $target in |
| 2304 | *-*-aix*) |
| 2305 | llvm_cv_target_os_type="AIX" ;; |
| 2306 | *-*-irix*) |
| 2307 | llvm_cv_target_os_type="IRIX" ;; |
| 2308 | *-*-cygwin*) |
| 2309 | llvm_cv_target_os_type="Cygwin" ;; |
| 2310 | *-*-darwin*) |
| 2311 | llvm_cv_target_os_type="Darwin" ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 2312 | *-*-minix*) |
| 2313 | llvm_cv_target_os_type="Minix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2314 | *-*-freebsd*) |
| 2315 | llvm_cv_target_os_type="FreeBSD" ;; |
| 2316 | *-*-openbsd*) |
| 2317 | llvm_cv_target_os_type="OpenBSD" ;; |
| 2318 | *-*-netbsd*) |
| 2319 | llvm_cv_target_os_type="NetBSD" ;; |
| 2320 | *-*-dragonfly*) |
| 2321 | llvm_cv_target_os_type="DragonFly" ;; |
| 2322 | *-*-hpux*) |
| 2323 | llvm_cv_target_os_type="HP-UX" ;; |
| 2324 | *-*-interix*) |
| 2325 | llvm_cv_target_os_type="Interix" ;; |
| 2326 | *-*-linux*) |
| 2327 | llvm_cv_target_os_type="Linux" ;; |
| 2328 | *-*-solaris*) |
| 2329 | llvm_cv_target_os_type="SunOS" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2330 | *-*-auroraux*) |
| 2331 | llvm_cv_target_os_type="AuroraUX" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2332 | *-*-win32*) |
| 2333 | llvm_cv_target_os_type="Win32" ;; |
| 2334 | *-*-mingw*) |
| 2335 | llvm_cv_target_os_type="MingW" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2336 | *-*-haiku*) |
| 2337 | llvm_cv_target_os_type="Haiku" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2338 | *-unknown-eabi*) |
| 2339 | llvm_cv_target_os_type="Freestanding" ;; |
| 2340 | *) |
| 2341 | llvm_cv_target_os_type="Unknown" ;; |
| 2342 | esac |
| 2343 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2344 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 2345 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2346 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2347 | if test "$llvm_cv_os_type" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2348 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2349 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 2350 | { (exit 1); exit 1; }; } |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 2351 | fi |
| 2352 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2353 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2354 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2355 | HOST_OS=$llvm_cv_os_type |
| 2356 | |
| 2357 | TARGET_OS=$llvm_cv_target_os_type |
| 2358 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2359 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2360 | LINKALL=$llvm_cv_link_all_option |
| 2361 | |
| 2362 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2363 | |
| 2364 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2365 | case $llvm_cv_platform_type in |
| 2366 | Unix) |
| 2367 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2368 | cat >>confdefs.h <<\_ACEOF |
| 2369 | #define LLVM_ON_UNIX 1 |
| 2370 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2371 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2372 | LLVM_ON_UNIX=1 |
| 2373 | |
| 2374 | LLVM_ON_WIN32=0 |
| 2375 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2376 | ;; |
| 2377 | Win32) |
| 2378 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2379 | cat >>confdefs.h <<\_ACEOF |
| 2380 | #define LLVM_ON_WIN32 1 |
| 2381 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2382 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2383 | LLVM_ON_UNIX=0 |
| 2384 | |
| 2385 | LLVM_ON_WIN32=1 |
| 2386 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2387 | ;; |
| 2388 | esac |
| 2389 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2390 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2391 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 2392 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2394 | else |
| 2395 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2396 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2397 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2398 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2399 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2400 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2401 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2402 | mips-*) llvm_cv_target_arch="Mips" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2403 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2404 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2405 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 2406 | bfin-*) llvm_cv_target_arch="Blackfin" ;; |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 2407 | mblaze-*) llvm_cv_target_arch="MBlaze" ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 2408 | ptx-*) llvm_cv_target_arch="PTX" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2409 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2410 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2411 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2412 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2413 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2414 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2415 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2416 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2417 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2418 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2419 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 2420 | # Determine the LLVM native architecture for the target |
| 2421 | case "$llvm_cv_target_arch" in |
| 2422 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2423 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2424 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2425 | esac |
| 2426 | |
| 2427 | ARCH=$llvm_cv_target_arch |
| 2428 | |
| 2429 | |
| 2430 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2431 | ac_cpp='$CPP $CPPFLAGS' |
| 2432 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2433 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2434 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2435 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2436 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2437 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2438 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2439 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2440 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2442 | else |
| 2443 | if test -n "$CC"; then |
| 2444 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2445 | else |
| 2446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2447 | for as_dir in $PATH |
| 2448 | do |
| 2449 | IFS=$as_save_IFS |
| 2450 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2451 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2452 | 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] | 2453 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2454 | 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] | 2455 | break 2 |
| 2456 | fi |
| 2457 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2458 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2459 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2460 | |
| 2461 | fi |
| 2462 | fi |
| 2463 | CC=$ac_cv_prog_CC |
| 2464 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2465 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2466 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2467 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2468 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2469 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2470 | fi |
| 2471 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2472 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2473 | fi |
| 2474 | if test -z "$ac_cv_prog_CC"; then |
| 2475 | ac_ct_CC=$CC |
| 2476 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2477 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2478 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2479 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2480 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2482 | else |
| 2483 | if test -n "$ac_ct_CC"; then |
| 2484 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2485 | else |
| 2486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2487 | for as_dir in $PATH |
| 2488 | do |
| 2489 | IFS=$as_save_IFS |
| 2490 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2491 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2492 | 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] | 2493 | ac_cv_prog_ac_ct_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2494 | 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] | 2495 | break 2 |
| 2496 | fi |
| 2497 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2498 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2499 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2500 | |
| 2501 | fi |
| 2502 | fi |
| 2503 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2504 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2505 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2506 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2507 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2508 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2509 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2510 | fi |
| 2511 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2512 | if test "x$ac_ct_CC" = x; then |
| 2513 | CC="" |
| 2514 | else |
| 2515 | case $cross_compiling:$ac_tool_warned in |
| 2516 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2517 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2518 | whose name does not start with the host triplet. If you think this |
| 2519 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2520 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2521 | whose name does not start with the host triplet. If you think this |
| 2522 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2523 | ac_tool_warned=yes ;; |
| 2524 | esac |
| 2525 | CC=$ac_ct_CC |
| 2526 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2527 | else |
| 2528 | CC="$ac_cv_prog_CC" |
| 2529 | fi |
| 2530 | |
| 2531 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2532 | if test -n "$ac_tool_prefix"; then |
| 2533 | # 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] | 2534 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2535 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2536 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2537 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2539 | else |
| 2540 | if test -n "$CC"; then |
| 2541 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2542 | else |
| 2543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2544 | for as_dir in $PATH |
| 2545 | do |
| 2546 | IFS=$as_save_IFS |
| 2547 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2548 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2549 | 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] | 2550 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2551 | 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] | 2552 | break 2 |
| 2553 | fi |
| 2554 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2555 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2556 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2557 | |
| 2558 | fi |
| 2559 | fi |
| 2560 | CC=$ac_cv_prog_CC |
| 2561 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2562 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2563 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2564 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2565 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2566 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2567 | fi |
| 2568 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2569 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2570 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2571 | fi |
| 2572 | if test -z "$CC"; then |
| 2573 | # Extract the first word of "cc", so it can be a program name with args. |
| 2574 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2575 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2576 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2577 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2579 | else |
| 2580 | if test -n "$CC"; then |
| 2581 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2582 | else |
| 2583 | ac_prog_rejected=no |
| 2584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2585 | for as_dir in $PATH |
| 2586 | do |
| 2587 | IFS=$as_save_IFS |
| 2588 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2589 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2590 | 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] | 2591 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2592 | ac_prog_rejected=yes |
| 2593 | continue |
| 2594 | fi |
| 2595 | ac_cv_prog_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2596 | 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] | 2597 | break 2 |
| 2598 | fi |
| 2599 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2600 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2601 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2602 | |
| 2603 | if test $ac_prog_rejected = yes; then |
| 2604 | # We found a bogon in the path, so make sure we never use it. |
| 2605 | set dummy $ac_cv_prog_CC |
| 2606 | shift |
| 2607 | if test $# != 0; then |
| 2608 | # We chose a different compiler from the bogus one. |
| 2609 | # However, it has the same basename, so the bogon will be chosen |
| 2610 | # first if we set CC to just the basename; use the full file name. |
| 2611 | shift |
| 2612 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2613 | fi |
| 2614 | fi |
| 2615 | fi |
| 2616 | fi |
| 2617 | CC=$ac_cv_prog_CC |
| 2618 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2619 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2620 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2621 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2622 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2623 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2624 | fi |
| 2625 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2626 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2627 | fi |
| 2628 | if test -z "$CC"; then |
| 2629 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2630 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2631 | do |
| 2632 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2633 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2634 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2636 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2638 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2639 | if test -n "$CC"; then |
| 2640 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2641 | else |
| 2642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2643 | for as_dir in $PATH |
| 2644 | do |
| 2645 | IFS=$as_save_IFS |
| 2646 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2647 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2648 | 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] | 2649 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2650 | 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] | 2651 | break 2 |
| 2652 | fi |
| 2653 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2654 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2655 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2656 | |
| 2657 | fi |
| 2658 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2659 | CC=$ac_cv_prog_CC |
| 2660 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2661 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2662 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2663 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2664 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2665 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2666 | fi |
| 2667 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2668 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2669 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2670 | done |
| 2671 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2672 | if test -z "$CC"; then |
| 2673 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2674 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2675 | do |
| 2676 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2677 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2678 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2680 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2682 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2683 | if test -n "$ac_ct_CC"; then |
| 2684 | 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] | 2685 | else |
| 2686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2687 | for as_dir in $PATH |
| 2688 | do |
| 2689 | IFS=$as_save_IFS |
| 2690 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2691 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2692 | 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] | 2693 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2694 | 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] | 2695 | break 2 |
| 2696 | fi |
| 2697 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2698 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2699 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2700 | |
| 2701 | fi |
| 2702 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2703 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2704 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2705 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2706 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2707 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2708 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2709 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2710 | fi |
| 2711 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2712 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2713 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2714 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2715 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2716 | if test "x$ac_ct_CC" = x; then |
| 2717 | CC="" |
| 2718 | else |
| 2719 | case $cross_compiling:$ac_tool_warned in |
| 2720 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2721 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2722 | whose name does not start with the host triplet. If you think this |
| 2723 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2724 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2725 | whose name does not start with the host triplet. If you think this |
| 2726 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2727 | ac_tool_warned=yes ;; |
| 2728 | esac |
| 2729 | CC=$ac_ct_CC |
| 2730 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2731 | fi |
| 2732 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2733 | fi |
| 2734 | |
| 2735 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2736 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2737 | See \`config.log' for more details." >&5 |
| 2738 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2739 | See \`config.log' for more details." >&2;} |
| 2740 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2741 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2742 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2743 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2744 | ac_compiler=`set X $ac_compile; echo $2` |
| 2745 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2746 | case "(($ac_try" in |
| 2747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2748 | *) ac_try_echo=$ac_try;; |
| 2749 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2751 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2752 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2754 | (exit $ac_status); } |
| 2755 | { (ac_try="$ac_compiler -v >&5" |
| 2756 | case "(($ac_try" in |
| 2757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2758 | *) ac_try_echo=$ac_try;; |
| 2759 | esac |
| 2760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2761 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2762 | ac_status=$? |
| 2763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2764 | (exit $ac_status); } |
| 2765 | { (ac_try="$ac_compiler -V >&5" |
| 2766 | case "(($ac_try" in |
| 2767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2768 | *) ac_try_echo=$ac_try;; |
| 2769 | esac |
| 2770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2771 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2772 | ac_status=$? |
| 2773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2774 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2775 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2776 | cat >conftest.$ac_ext <<_ACEOF |
| 2777 | /* confdefs.h. */ |
| 2778 | _ACEOF |
| 2779 | cat confdefs.h >>conftest.$ac_ext |
| 2780 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2781 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2782 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2783 | int |
| 2784 | main () |
| 2785 | { |
| 2786 | |
| 2787 | ; |
| 2788 | return 0; |
| 2789 | } |
| 2790 | _ACEOF |
| 2791 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2792 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2793 | # Try to create an executable without -o first, disregard a.out. |
| 2794 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2795 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2796 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2797 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2798 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2799 | # |
| 2800 | # List of possible output files, starting from the most likely. |
| 2801 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2802 | # only as a last resort. b.out is created by i960 compilers. |
| 2803 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2804 | # |
| 2805 | # The IRIX 6 linker writes into existing files which may not be |
| 2806 | # executable, retaining their permissions. Remove them first so a |
| 2807 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2808 | ac_rmfiles= |
| 2809 | for ac_file in $ac_files |
| 2810 | do |
| 2811 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2812 | *.$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] | 2813 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2814 | esac |
| 2815 | done |
| 2816 | rm -f $ac_rmfiles |
| 2817 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2818 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2819 | case "(($ac_try" in |
| 2820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2821 | *) ac_try_echo=$ac_try;; |
| 2822 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2824 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2825 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2827 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2828 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2829 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2830 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2831 | # so that the user can short-circuit this test for compilers unknown to |
| 2832 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2833 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2834 | do |
| 2835 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2836 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2837 | *.$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] | 2838 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2839 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2840 | # We found the default executable, but exeext='' is most |
| 2841 | # certainly right. |
| 2842 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2843 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2844 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2845 | then :; else |
| 2846 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2847 | fi |
| 2848 | # We set ac_cv_exeext here because the later test for it is not |
| 2849 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2850 | # argument, so we may need to know it at that point already. |
| 2851 | # Even if this section looks crufty: it has the advantage of |
| 2852 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2853 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2854 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2855 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2856 | esac |
| 2857 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2858 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2859 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2860 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2861 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2863 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2864 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2865 | See \`config.log' for more details." >&5 |
| 2866 | echo "$as_me: error: C compiler cannot create executables |
| 2867 | See \`config.log' for more details." >&2;} |
| 2868 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2869 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2870 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2871 | ac_exeext=$ac_cv_exeext |
| 2872 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2873 | echo "${ECHO_T}$ac_file" >&6; } |
| 2874 | |
| 2875 | # Check that the compiler produces executables we can run. If not, either |
| 2876 | # the compiler is broken, or we cross compile. |
| 2877 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2878 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2879 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2880 | # If not cross compiling, check that we can run a simple program. |
| 2881 | if test "$cross_compiling" != yes; then |
| 2882 | if { ac_try='./$ac_file' |
| 2883 | { (case "(($ac_try" in |
| 2884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2885 | *) ac_try_echo=$ac_try;; |
| 2886 | esac |
| 2887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2888 | (eval "$ac_try") 2>&5 |
| 2889 | ac_status=$? |
| 2890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2891 | (exit $ac_status); }; }; then |
| 2892 | cross_compiling=no |
| 2893 | else |
| 2894 | if test "$cross_compiling" = maybe; then |
| 2895 | cross_compiling=yes |
| 2896 | else |
| 2897 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2898 | If you meant to cross compile, use \`--host'. |
| 2899 | See \`config.log' for more details." >&5 |
| 2900 | echo "$as_me: error: cannot run C compiled programs. |
| 2901 | If you meant to cross compile, use \`--host'. |
| 2902 | See \`config.log' for more details." >&2;} |
| 2903 | { (exit 1); exit 1; }; } |
| 2904 | fi |
| 2905 | fi |
| 2906 | fi |
| 2907 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2908 | echo "${ECHO_T}yes" >&6; } |
| 2909 | |
| 2910 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2911 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2912 | # Check that the compiler produces executables we can run. If not, either |
| 2913 | # the compiler is broken, or we cross compile. |
| 2914 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2915 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2916 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2917 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2918 | |
| 2919 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2920 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2921 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2922 | case "(($ac_try" in |
| 2923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2924 | *) ac_try_echo=$ac_try;; |
| 2925 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2927 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2928 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2930 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2931 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2932 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2933 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2934 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2935 | for ac_file in conftest.exe conftest conftest.*; do |
| 2936 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2937 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2938 | *.$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] | 2939 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2940 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2941 | * ) break;; |
| 2942 | esac |
| 2943 | done |
| 2944 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2945 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2946 | See \`config.log' for more details." >&5 |
| 2947 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2948 | See \`config.log' for more details." >&2;} |
| 2949 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2950 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2951 | |
| 2952 | rm -f conftest$ac_cv_exeext |
| 2953 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2954 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2955 | |
| 2956 | rm -f conftest.$ac_ext |
| 2957 | EXEEXT=$ac_cv_exeext |
| 2958 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2959 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2960 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2961 | if test "${ac_cv_objext+set}" = set; then |
| 2962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2963 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2964 | cat >conftest.$ac_ext <<_ACEOF |
| 2965 | /* confdefs.h. */ |
| 2966 | _ACEOF |
| 2967 | cat confdefs.h >>conftest.$ac_ext |
| 2968 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2969 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2970 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2971 | int |
| 2972 | main () |
| 2973 | { |
| 2974 | |
| 2975 | ; |
| 2976 | return 0; |
| 2977 | } |
| 2978 | _ACEOF |
| 2979 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2980 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2981 | case "(($ac_try" in |
| 2982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2983 | *) ac_try_echo=$ac_try;; |
| 2984 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2986 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2987 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2989 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2990 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2991 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2992 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2993 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2994 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2995 | break;; |
| 2996 | esac |
| 2997 | done |
| 2998 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2999 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3001 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3002 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 3003 | See \`config.log' for more details." >&5 |
| 3004 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 3005 | See \`config.log' for more details." >&2;} |
| 3006 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3007 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3008 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3009 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3010 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3011 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 3012 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3013 | OBJEXT=$ac_cv_objext |
| 3014 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3015 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3016 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 3017 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 3018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3019 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3020 | cat >conftest.$ac_ext <<_ACEOF |
| 3021 | /* confdefs.h. */ |
| 3022 | _ACEOF |
| 3023 | cat confdefs.h >>conftest.$ac_ext |
| 3024 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3025 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3026 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3027 | int |
| 3028 | main () |
| 3029 | { |
| 3030 | #ifndef __GNUC__ |
| 3031 | choke me |
| 3032 | #endif |
| 3033 | |
| 3034 | ; |
| 3035 | return 0; |
| 3036 | } |
| 3037 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3038 | rm -f conftest.$ac_objext |
| 3039 | if { (ac_try="$ac_compile" |
| 3040 | case "(($ac_try" in |
| 3041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3042 | *) ac_try_echo=$ac_try;; |
| 3043 | esac |
| 3044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3045 | (eval "$ac_compile") 2>conftest.er1 |
| 3046 | ac_status=$? |
| 3047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3048 | rm -f conftest.er1 |
| 3049 | cat conftest.err >&5 |
| 3050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3051 | (exit $ac_status); } && |
| 3052 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3053 | { (case "(($ac_try" in |
| 3054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3055 | *) ac_try_echo=$ac_try;; |
| 3056 | esac |
| 3057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3058 | (eval "$ac_try") 2>&5 |
| 3059 | ac_status=$? |
| 3060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3061 | (exit $ac_status); }; } && |
| 3062 | { ac_try='test -s conftest.$ac_objext' |
| 3063 | { (case "(($ac_try" in |
| 3064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3065 | *) ac_try_echo=$ac_try;; |
| 3066 | esac |
| 3067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3068 | (eval "$ac_try") 2>&5 |
| 3069 | ac_status=$? |
| 3070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3071 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3072 | ac_compiler_gnu=yes |
| 3073 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3074 | echo "$as_me: failed program was:" >&5 |
| 3075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3076 | |
| 3077 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3078 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3079 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3081 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3082 | |
| 3083 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3084 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3085 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3086 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3087 | ac_test_CFLAGS=${CFLAGS+set} |
| 3088 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3089 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3090 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 3091 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3093 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3094 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3095 | ac_c_werror_flag=yes |
| 3096 | ac_cv_prog_cc_g=no |
| 3097 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3098 | cat >conftest.$ac_ext <<_ACEOF |
| 3099 | /* confdefs.h. */ |
| 3100 | _ACEOF |
| 3101 | cat confdefs.h >>conftest.$ac_ext |
| 3102 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3103 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3104 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3105 | int |
| 3106 | main () |
| 3107 | { |
| 3108 | |
| 3109 | ; |
| 3110 | return 0; |
| 3111 | } |
| 3112 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3113 | rm -f conftest.$ac_objext |
| 3114 | if { (ac_try="$ac_compile" |
| 3115 | case "(($ac_try" in |
| 3116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3117 | *) ac_try_echo=$ac_try;; |
| 3118 | esac |
| 3119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3120 | (eval "$ac_compile") 2>conftest.er1 |
| 3121 | ac_status=$? |
| 3122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3123 | rm -f conftest.er1 |
| 3124 | cat conftest.err >&5 |
| 3125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3126 | (exit $ac_status); } && |
| 3127 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3128 | { (case "(($ac_try" in |
| 3129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3130 | *) ac_try_echo=$ac_try;; |
| 3131 | esac |
| 3132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3133 | (eval "$ac_try") 2>&5 |
| 3134 | ac_status=$? |
| 3135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3136 | (exit $ac_status); }; } && |
| 3137 | { ac_try='test -s conftest.$ac_objext' |
| 3138 | { (case "(($ac_try" in |
| 3139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3140 | *) ac_try_echo=$ac_try;; |
| 3141 | esac |
| 3142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3143 | (eval "$ac_try") 2>&5 |
| 3144 | ac_status=$? |
| 3145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3146 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3147 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3148 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3149 | echo "$as_me: failed program was:" >&5 |
| 3150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3151 | |
| 3152 | CFLAGS="" |
| 3153 | cat >conftest.$ac_ext <<_ACEOF |
| 3154 | /* confdefs.h. */ |
| 3155 | _ACEOF |
| 3156 | cat confdefs.h >>conftest.$ac_ext |
| 3157 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3158 | /* end confdefs.h. */ |
| 3159 | |
| 3160 | int |
| 3161 | main () |
| 3162 | { |
| 3163 | |
| 3164 | ; |
| 3165 | return 0; |
| 3166 | } |
| 3167 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3168 | rm -f conftest.$ac_objext |
| 3169 | if { (ac_try="$ac_compile" |
| 3170 | case "(($ac_try" in |
| 3171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3172 | *) ac_try_echo=$ac_try;; |
| 3173 | esac |
| 3174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3175 | (eval "$ac_compile") 2>conftest.er1 |
| 3176 | ac_status=$? |
| 3177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3178 | rm -f conftest.er1 |
| 3179 | cat conftest.err >&5 |
| 3180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3181 | (exit $ac_status); } && |
| 3182 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3183 | { (case "(($ac_try" in |
| 3184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3185 | *) ac_try_echo=$ac_try;; |
| 3186 | esac |
| 3187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3188 | (eval "$ac_try") 2>&5 |
| 3189 | ac_status=$? |
| 3190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3191 | (exit $ac_status); }; } && |
| 3192 | { ac_try='test -s conftest.$ac_objext' |
| 3193 | { (case "(($ac_try" in |
| 3194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3195 | *) ac_try_echo=$ac_try;; |
| 3196 | esac |
| 3197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3198 | (eval "$ac_try") 2>&5 |
| 3199 | ac_status=$? |
| 3200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3201 | (exit $ac_status); }; }; then |
| 3202 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3203 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3204 | echo "$as_me: failed program was:" >&5 |
| 3205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3206 | |
| 3207 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3208 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3209 | cat >conftest.$ac_ext <<_ACEOF |
| 3210 | /* confdefs.h. */ |
| 3211 | _ACEOF |
| 3212 | cat confdefs.h >>conftest.$ac_ext |
| 3213 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3214 | /* end confdefs.h. */ |
| 3215 | |
| 3216 | int |
| 3217 | main () |
| 3218 | { |
| 3219 | |
| 3220 | ; |
| 3221 | return 0; |
| 3222 | } |
| 3223 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3224 | rm -f conftest.$ac_objext |
| 3225 | if { (ac_try="$ac_compile" |
| 3226 | case "(($ac_try" in |
| 3227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3228 | *) ac_try_echo=$ac_try;; |
| 3229 | esac |
| 3230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3231 | (eval "$ac_compile") 2>conftest.er1 |
| 3232 | ac_status=$? |
| 3233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3234 | rm -f conftest.er1 |
| 3235 | cat conftest.err >&5 |
| 3236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3237 | (exit $ac_status); } && |
| 3238 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3239 | { (case "(($ac_try" in |
| 3240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3241 | *) ac_try_echo=$ac_try;; |
| 3242 | esac |
| 3243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3244 | (eval "$ac_try") 2>&5 |
| 3245 | ac_status=$? |
| 3246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3247 | (exit $ac_status); }; } && |
| 3248 | { ac_try='test -s conftest.$ac_objext' |
| 3249 | { (case "(($ac_try" in |
| 3250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3251 | *) ac_try_echo=$ac_try;; |
| 3252 | esac |
| 3253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3254 | (eval "$ac_try") 2>&5 |
| 3255 | ac_status=$? |
| 3256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3257 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3258 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3259 | else |
| 3260 | echo "$as_me: failed program was:" >&5 |
| 3261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3262 | |
| 3263 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3264 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3265 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3267 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3268 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3270 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3271 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3273 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3274 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3275 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3276 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3277 | if test "$ac_test_CFLAGS" = set; then |
| 3278 | CFLAGS=$ac_save_CFLAGS |
| 3279 | elif test $ac_cv_prog_cc_g = yes; then |
| 3280 | if test "$GCC" = yes; then |
| 3281 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3282 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3283 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3284 | fi |
| 3285 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3286 | if test "$GCC" = yes; then |
| 3287 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3288 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3289 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3290 | fi |
| 3291 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3292 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3293 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3294 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 3295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3296 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3297 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3298 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3299 | cat >conftest.$ac_ext <<_ACEOF |
| 3300 | /* confdefs.h. */ |
| 3301 | _ACEOF |
| 3302 | cat confdefs.h >>conftest.$ac_ext |
| 3303 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3304 | /* end confdefs.h. */ |
| 3305 | #include <stdarg.h> |
| 3306 | #include <stdio.h> |
| 3307 | #include <sys/types.h> |
| 3308 | #include <sys/stat.h> |
| 3309 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3310 | struct buf { int x; }; |
| 3311 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3312 | static char *e (p, i) |
| 3313 | char **p; |
| 3314 | int i; |
| 3315 | { |
| 3316 | return p[i]; |
| 3317 | } |
| 3318 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3319 | { |
| 3320 | char *s; |
| 3321 | va_list v; |
| 3322 | va_start (v,p); |
| 3323 | s = g (p, va_arg (v,int)); |
| 3324 | va_end (v); |
| 3325 | return s; |
| 3326 | } |
| 3327 | |
| 3328 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3329 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3330 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3331 | 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] | 3332 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3333 | 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] | 3334 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3335 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3336 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3337 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3338 | inside strings and character constants. */ |
| 3339 | #define FOO(x) 'x' |
| 3340 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3341 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3342 | int test (int i, double x); |
| 3343 | struct s1 {int (*f) (int a);}; |
| 3344 | struct s2 {int (*f) (double a);}; |
| 3345 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3346 | int argc; |
| 3347 | char **argv; |
| 3348 | int |
| 3349 | main () |
| 3350 | { |
| 3351 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3352 | ; |
| 3353 | return 0; |
| 3354 | } |
| 3355 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3356 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3357 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3358 | do |
| 3359 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3360 | rm -f conftest.$ac_objext |
| 3361 | if { (ac_try="$ac_compile" |
| 3362 | case "(($ac_try" in |
| 3363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3364 | *) ac_try_echo=$ac_try;; |
| 3365 | esac |
| 3366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3367 | (eval "$ac_compile") 2>conftest.er1 |
| 3368 | ac_status=$? |
| 3369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3370 | rm -f conftest.er1 |
| 3371 | cat conftest.err >&5 |
| 3372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3373 | (exit $ac_status); } && |
| 3374 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3375 | { (case "(($ac_try" in |
| 3376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3377 | *) ac_try_echo=$ac_try;; |
| 3378 | esac |
| 3379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3380 | (eval "$ac_try") 2>&5 |
| 3381 | ac_status=$? |
| 3382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3383 | (exit $ac_status); }; } && |
| 3384 | { ac_try='test -s conftest.$ac_objext' |
| 3385 | { (case "(($ac_try" in |
| 3386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3387 | *) ac_try_echo=$ac_try;; |
| 3388 | esac |
| 3389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3390 | (eval "$ac_try") 2>&5 |
| 3391 | ac_status=$? |
| 3392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3393 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3394 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3395 | else |
| 3396 | echo "$as_me: failed program was:" >&5 |
| 3397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3398 | |
| 3399 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3400 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3401 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3402 | rm -f core conftest.err conftest.$ac_objext |
| 3403 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3404 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3405 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3406 | CC=$ac_save_CC |
| 3407 | |
| 3408 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3409 | # AC_CACHE_VAL |
| 3410 | case "x$ac_cv_prog_cc_c89" in |
| 3411 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3412 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3413 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3414 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3415 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3416 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3417 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3418 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3419 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3420 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3421 | esac |
| 3422 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3423 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3424 | ac_ext=c |
| 3425 | ac_cpp='$CPP $CPPFLAGS' |
| 3426 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3427 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3428 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3429 | |
| 3430 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3431 | ac_ext=c |
| 3432 | ac_cpp='$CPP $CPPFLAGS' |
| 3433 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3434 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3435 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3436 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3437 | 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] | 3438 | # On Suns, sometimes $CPP names a directory. |
| 3439 | if test -n "$CPP" && test -d "$CPP"; then |
| 3440 | CPP= |
| 3441 | fi |
| 3442 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3443 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3445 | else |
| 3446 | # Double quotes because CPP needs to be expanded |
| 3447 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3448 | do |
| 3449 | ac_preproc_ok=false |
| 3450 | for ac_c_preproc_warn_flag in '' yes |
| 3451 | do |
| 3452 | # Use a header file that comes with gcc, so configuring glibc |
| 3453 | # with a fresh cross-compiler works. |
| 3454 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3455 | # <limits.h> exists even on freestanding compilers. |
| 3456 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3457 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3458 | cat >conftest.$ac_ext <<_ACEOF |
| 3459 | /* confdefs.h. */ |
| 3460 | _ACEOF |
| 3461 | cat confdefs.h >>conftest.$ac_ext |
| 3462 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3463 | /* end confdefs.h. */ |
| 3464 | #ifdef __STDC__ |
| 3465 | # include <limits.h> |
| 3466 | #else |
| 3467 | # include <assert.h> |
| 3468 | #endif |
| 3469 | Syntax error |
| 3470 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3471 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3472 | case "(($ac_try" in |
| 3473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3474 | *) ac_try_echo=$ac_try;; |
| 3475 | esac |
| 3476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3477 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3478 | ac_status=$? |
| 3479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3480 | rm -f conftest.er1 |
| 3481 | cat conftest.err >&5 |
| 3482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3483 | (exit $ac_status); } >/dev/null; then |
| 3484 | if test -s conftest.err; then |
| 3485 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3486 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3487 | else |
| 3488 | ac_cpp_err= |
| 3489 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3490 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3491 | ac_cpp_err=yes |
| 3492 | fi |
| 3493 | if test -z "$ac_cpp_err"; then |
| 3494 | : |
| 3495 | else |
| 3496 | echo "$as_me: failed program was:" >&5 |
| 3497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3498 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3499 | # Broken: fails on valid input. |
| 3500 | continue |
| 3501 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3502 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3503 | rm -f conftest.err conftest.$ac_ext |
| 3504 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3505 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3506 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3507 | cat >conftest.$ac_ext <<_ACEOF |
| 3508 | /* confdefs.h. */ |
| 3509 | _ACEOF |
| 3510 | cat confdefs.h >>conftest.$ac_ext |
| 3511 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3512 | /* end confdefs.h. */ |
| 3513 | #include <ac_nonexistent.h> |
| 3514 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3515 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3516 | case "(($ac_try" in |
| 3517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3518 | *) ac_try_echo=$ac_try;; |
| 3519 | esac |
| 3520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3521 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3522 | ac_status=$? |
| 3523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3524 | rm -f conftest.er1 |
| 3525 | cat conftest.err >&5 |
| 3526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3527 | (exit $ac_status); } >/dev/null; then |
| 3528 | if test -s conftest.err; then |
| 3529 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3530 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3531 | else |
| 3532 | ac_cpp_err= |
| 3533 | fi |
| 3534 | else |
| 3535 | ac_cpp_err=yes |
| 3536 | fi |
| 3537 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3538 | # Broken: success on invalid input. |
| 3539 | continue |
| 3540 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3541 | echo "$as_me: failed program was:" >&5 |
| 3542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3543 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3544 | # Passes both tests. |
| 3545 | ac_preproc_ok=: |
| 3546 | break |
| 3547 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3548 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3549 | rm -f conftest.err conftest.$ac_ext |
| 3550 | |
| 3551 | done |
| 3552 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3553 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3554 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3555 | break |
| 3556 | fi |
| 3557 | |
| 3558 | done |
| 3559 | ac_cv_prog_CPP=$CPP |
| 3560 | |
| 3561 | fi |
| 3562 | CPP=$ac_cv_prog_CPP |
| 3563 | else |
| 3564 | ac_cv_prog_CPP=$CPP |
| 3565 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3566 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3567 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3568 | ac_preproc_ok=false |
| 3569 | for ac_c_preproc_warn_flag in '' yes |
| 3570 | do |
| 3571 | # Use a header file that comes with gcc, so configuring glibc |
| 3572 | # with a fresh cross-compiler works. |
| 3573 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3574 | # <limits.h> exists even on freestanding compilers. |
| 3575 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3576 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3577 | cat >conftest.$ac_ext <<_ACEOF |
| 3578 | /* confdefs.h. */ |
| 3579 | _ACEOF |
| 3580 | cat confdefs.h >>conftest.$ac_ext |
| 3581 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3582 | /* end confdefs.h. */ |
| 3583 | #ifdef __STDC__ |
| 3584 | # include <limits.h> |
| 3585 | #else |
| 3586 | # include <assert.h> |
| 3587 | #endif |
| 3588 | Syntax error |
| 3589 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3590 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3591 | case "(($ac_try" in |
| 3592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3593 | *) ac_try_echo=$ac_try;; |
| 3594 | esac |
| 3595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3596 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3597 | ac_status=$? |
| 3598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3599 | rm -f conftest.er1 |
| 3600 | cat conftest.err >&5 |
| 3601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3602 | (exit $ac_status); } >/dev/null; then |
| 3603 | if test -s conftest.err; then |
| 3604 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3605 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3606 | else |
| 3607 | ac_cpp_err= |
| 3608 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3609 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3610 | ac_cpp_err=yes |
| 3611 | fi |
| 3612 | if test -z "$ac_cpp_err"; then |
| 3613 | : |
| 3614 | else |
| 3615 | echo "$as_me: failed program was:" >&5 |
| 3616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3617 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3618 | # Broken: fails on valid input. |
| 3619 | continue |
| 3620 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3621 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3622 | rm -f conftest.err conftest.$ac_ext |
| 3623 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3624 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3625 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3626 | cat >conftest.$ac_ext <<_ACEOF |
| 3627 | /* confdefs.h. */ |
| 3628 | _ACEOF |
| 3629 | cat confdefs.h >>conftest.$ac_ext |
| 3630 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3631 | /* end confdefs.h. */ |
| 3632 | #include <ac_nonexistent.h> |
| 3633 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3634 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3635 | case "(($ac_try" in |
| 3636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3637 | *) ac_try_echo=$ac_try;; |
| 3638 | esac |
| 3639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3640 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3641 | ac_status=$? |
| 3642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3643 | rm -f conftest.er1 |
| 3644 | cat conftest.err >&5 |
| 3645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3646 | (exit $ac_status); } >/dev/null; then |
| 3647 | if test -s conftest.err; then |
| 3648 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3649 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3650 | else |
| 3651 | ac_cpp_err= |
| 3652 | fi |
| 3653 | else |
| 3654 | ac_cpp_err=yes |
| 3655 | fi |
| 3656 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3657 | # Broken: success on invalid input. |
| 3658 | continue |
| 3659 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3660 | echo "$as_me: failed program was:" >&5 |
| 3661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3662 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3663 | # Passes both tests. |
| 3664 | ac_preproc_ok=: |
| 3665 | break |
| 3666 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3667 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3668 | rm -f conftest.err conftest.$ac_ext |
| 3669 | |
| 3670 | done |
| 3671 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3672 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3673 | if $ac_preproc_ok; then |
| 3674 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3675 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3676 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3677 | See \`config.log' for more details." >&5 |
| 3678 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3679 | See \`config.log' for more details." >&2;} |
| 3680 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3681 | fi |
| 3682 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3683 | ac_ext=c |
| 3684 | ac_cpp='$CPP $CPPFLAGS' |
| 3685 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3686 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3687 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3688 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3689 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3690 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3691 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3692 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3694 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3695 | # Extract the first word of "grep ggrep" to use in msg output |
| 3696 | if test -z "$GREP"; then |
| 3697 | set dummy grep ggrep; ac_prog_name=$2 |
| 3698 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3700 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3701 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3702 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3704 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3705 | do |
| 3706 | IFS=$as_save_IFS |
| 3707 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3708 | for ac_prog in grep ggrep; do |
| 3709 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3710 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3711 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3712 | # 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] | 3713 | # Check for GNU $ac_path_GREP |
| 3714 | case `"$ac_path_GREP" --version 2>&1` in |
| 3715 | *GNU*) |
| 3716 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3717 | *) |
| 3718 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3719 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3720 | while : |
| 3721 | do |
| 3722 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3723 | mv "conftest.tmp" "conftest.in" |
| 3724 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3725 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3726 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3727 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3728 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3729 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3730 | # Best one so far, save it but keep looking for a better one |
| 3731 | ac_cv_path_GREP="$ac_path_GREP" |
| 3732 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3733 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3734 | # 10*(2^10) chars as input seems more than enough |
| 3735 | test $ac_count -gt 10 && break |
| 3736 | done |
| 3737 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3738 | esac |
| 3739 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3740 | |
| 3741 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3742 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3743 | done |
| 3744 | |
| 3745 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3746 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3747 | |
| 3748 | |
| 3749 | fi |
| 3750 | |
| 3751 | GREP="$ac_cv_path_GREP" |
| 3752 | if test -z "$GREP"; then |
| 3753 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3754 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3755 | { (exit 1); exit 1; }; } |
| 3756 | fi |
| 3757 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3758 | else |
| 3759 | ac_cv_path_GREP=$GREP |
| 3760 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3761 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3762 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3763 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3764 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3765 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3766 | GREP="$ac_cv_path_GREP" |
| 3767 | |
| 3768 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3769 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3770 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3771 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3773 | else |
| 3774 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3775 | then ac_cv_path_EGREP="$GREP -E" |
| 3776 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3777 | # Extract the first word of "egrep" to use in msg output |
| 3778 | if test -z "$EGREP"; then |
| 3779 | set dummy egrep; ac_prog_name=$2 |
| 3780 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3782 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3783 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3784 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3786 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3787 | do |
| 3788 | IFS=$as_save_IFS |
| 3789 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3790 | for ac_prog in egrep; do |
| 3791 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3792 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3793 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3794 | # 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] | 3795 | # Check for GNU $ac_path_EGREP |
| 3796 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3797 | *GNU*) |
| 3798 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3799 | *) |
| 3800 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3801 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3802 | while : |
| 3803 | do |
| 3804 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3805 | mv "conftest.tmp" "conftest.in" |
| 3806 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3807 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3808 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3809 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3810 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3811 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3812 | # Best one so far, save it but keep looking for a better one |
| 3813 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3814 | ac_path_EGREP_max=$ac_count |
| 3815 | fi |
| 3816 | # 10*(2^10) chars as input seems more than enough |
| 3817 | test $ac_count -gt 10 && break |
| 3818 | done |
| 3819 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3820 | esac |
| 3821 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3822 | |
| 3823 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3824 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3825 | done |
| 3826 | |
| 3827 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3828 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3829 | |
| 3830 | |
| 3831 | fi |
| 3832 | |
| 3833 | EGREP="$ac_cv_path_EGREP" |
| 3834 | if test -z "$EGREP"; then |
| 3835 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3836 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3837 | { (exit 1); exit 1; }; } |
| 3838 | fi |
| 3839 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3840 | else |
| 3841 | ac_cv_path_EGREP=$EGREP |
| 3842 | fi |
| 3843 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3844 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3845 | fi |
| 3846 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3847 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3848 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3849 | EGREP="$ac_cv_path_EGREP" |
| 3850 | |
| 3851 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3852 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3853 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 3854 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3856 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3857 | cat >conftest.$ac_ext <<_ACEOF |
| 3858 | /* confdefs.h. */ |
| 3859 | _ACEOF |
| 3860 | cat confdefs.h >>conftest.$ac_ext |
| 3861 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3862 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3863 | #include <stdlib.h> |
| 3864 | #include <stdarg.h> |
| 3865 | #include <string.h> |
| 3866 | #include <float.h> |
| 3867 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3868 | int |
| 3869 | main () |
| 3870 | { |
| 3871 | |
| 3872 | ; |
| 3873 | return 0; |
| 3874 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3875 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3876 | rm -f conftest.$ac_objext |
| 3877 | if { (ac_try="$ac_compile" |
| 3878 | case "(($ac_try" in |
| 3879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3880 | *) ac_try_echo=$ac_try;; |
| 3881 | esac |
| 3882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3883 | (eval "$ac_compile") 2>conftest.er1 |
| 3884 | ac_status=$? |
| 3885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3886 | rm -f conftest.er1 |
| 3887 | cat conftest.err >&5 |
| 3888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3889 | (exit $ac_status); } && |
| 3890 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3891 | { (case "(($ac_try" in |
| 3892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3893 | *) ac_try_echo=$ac_try;; |
| 3894 | esac |
| 3895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3896 | (eval "$ac_try") 2>&5 |
| 3897 | ac_status=$? |
| 3898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3899 | (exit $ac_status); }; } && |
| 3900 | { ac_try='test -s conftest.$ac_objext' |
| 3901 | { (case "(($ac_try" in |
| 3902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3903 | *) ac_try_echo=$ac_try;; |
| 3904 | esac |
| 3905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3906 | (eval "$ac_try") 2>&5 |
| 3907 | ac_status=$? |
| 3908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3909 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3910 | ac_cv_header_stdc=yes |
| 3911 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3912 | echo "$as_me: failed program was:" >&5 |
| 3913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3914 | |
| 3915 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3916 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3917 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3919 | |
| 3920 | if test $ac_cv_header_stdc = yes; then |
| 3921 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3922 | cat >conftest.$ac_ext <<_ACEOF |
| 3923 | /* confdefs.h. */ |
| 3924 | _ACEOF |
| 3925 | cat confdefs.h >>conftest.$ac_ext |
| 3926 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3927 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3928 | #include <string.h> |
| 3929 | |
| 3930 | _ACEOF |
| 3931 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3932 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3933 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3934 | else |
| 3935 | ac_cv_header_stdc=no |
| 3936 | fi |
| 3937 | rm -f conftest* |
| 3938 | |
| 3939 | fi |
| 3940 | |
| 3941 | if test $ac_cv_header_stdc = yes; then |
| 3942 | # 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] | 3943 | cat >conftest.$ac_ext <<_ACEOF |
| 3944 | /* confdefs.h. */ |
| 3945 | _ACEOF |
| 3946 | cat confdefs.h >>conftest.$ac_ext |
| 3947 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3948 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3949 | #include <stdlib.h> |
| 3950 | |
| 3951 | _ACEOF |
| 3952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3953 | $EGREP "free" >/dev/null 2>&1; then |
| 3954 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3955 | else |
| 3956 | ac_cv_header_stdc=no |
| 3957 | fi |
| 3958 | rm -f conftest* |
| 3959 | |
| 3960 | fi |
| 3961 | |
| 3962 | if test $ac_cv_header_stdc = yes; then |
| 3963 | # /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] | 3964 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3965 | : |
| 3966 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3967 | cat >conftest.$ac_ext <<_ACEOF |
| 3968 | /* confdefs.h. */ |
| 3969 | _ACEOF |
| 3970 | cat confdefs.h >>conftest.$ac_ext |
| 3971 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3972 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3973 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3974 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3975 | #if ((' ' & 0x0FF) == 0x020) |
| 3976 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3977 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3978 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3979 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3980 | (('a' <= (c) && (c) <= 'i') \ |
| 3981 | || ('j' <= (c) && (c) <= 'r') \ |
| 3982 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3983 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3984 | #endif |
| 3985 | |
| 3986 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3987 | int |
| 3988 | main () |
| 3989 | { |
| 3990 | int i; |
| 3991 | for (i = 0; i < 256; i++) |
| 3992 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3993 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3994 | return 2; |
| 3995 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3996 | } |
| 3997 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3998 | rm -f conftest$ac_exeext |
| 3999 | if { (ac_try="$ac_link" |
| 4000 | case "(($ac_try" in |
| 4001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4002 | *) ac_try_echo=$ac_try;; |
| 4003 | esac |
| 4004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4005 | (eval "$ac_link") 2>&5 |
| 4006 | ac_status=$? |
| 4007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4008 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4009 | { (case "(($ac_try" in |
| 4010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4011 | *) ac_try_echo=$ac_try;; |
| 4012 | esac |
| 4013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4014 | (eval "$ac_try") 2>&5 |
| 4015 | ac_status=$? |
| 4016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4017 | (exit $ac_status); }; }; then |
| 4018 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4019 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4020 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4021 | echo "$as_me: failed program was:" >&5 |
| 4022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4023 | |
| 4024 | ( exit $ac_status ) |
| 4025 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4026 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4027 | 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] | 4028 | fi |
| 4029 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4030 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4031 | fi |
| 4032 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4033 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4034 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4035 | if test $ac_cv_header_stdc = yes; then |
| 4036 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4037 | cat >>confdefs.h <<\_ACEOF |
| 4038 | #define STDC_HEADERS 1 |
| 4039 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4040 | |
| 4041 | fi |
| 4042 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4043 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4044 | |
| 4045 | |
| 4046 | |
| 4047 | |
| 4048 | |
| 4049 | |
| 4050 | |
| 4051 | |
| 4052 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4053 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4054 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4055 | do |
| 4056 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4057 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4058 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4059 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4061 | else |
| 4062 | cat >conftest.$ac_ext <<_ACEOF |
| 4063 | /* confdefs.h. */ |
| 4064 | _ACEOF |
| 4065 | cat confdefs.h >>conftest.$ac_ext |
| 4066 | cat >>conftest.$ac_ext <<_ACEOF |
| 4067 | /* end confdefs.h. */ |
| 4068 | $ac_includes_default |
| 4069 | |
| 4070 | #include <$ac_header> |
| 4071 | _ACEOF |
| 4072 | rm -f conftest.$ac_objext |
| 4073 | if { (ac_try="$ac_compile" |
| 4074 | case "(($ac_try" in |
| 4075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4076 | *) ac_try_echo=$ac_try;; |
| 4077 | esac |
| 4078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4079 | (eval "$ac_compile") 2>conftest.er1 |
| 4080 | ac_status=$? |
| 4081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4082 | rm -f conftest.er1 |
| 4083 | cat conftest.err >&5 |
| 4084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4085 | (exit $ac_status); } && |
| 4086 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4087 | { (case "(($ac_try" in |
| 4088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4089 | *) ac_try_echo=$ac_try;; |
| 4090 | esac |
| 4091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4092 | (eval "$ac_try") 2>&5 |
| 4093 | ac_status=$? |
| 4094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4095 | (exit $ac_status); }; } && |
| 4096 | { ac_try='test -s conftest.$ac_objext' |
| 4097 | { (case "(($ac_try" in |
| 4098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4099 | *) ac_try_echo=$ac_try;; |
| 4100 | esac |
| 4101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4102 | (eval "$ac_try") 2>&5 |
| 4103 | ac_status=$? |
| 4104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4105 | (exit $ac_status); }; }; then |
| 4106 | eval "$as_ac_Header=yes" |
| 4107 | else |
| 4108 | echo "$as_me: failed program was:" >&5 |
| 4109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4110 | |
| 4111 | eval "$as_ac_Header=no" |
| 4112 | fi |
| 4113 | |
| 4114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4115 | fi |
| 4116 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4117 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4118 | echo "${ECHO_T}$ac_res" >&6; } |
| 4119 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4120 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4121 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4122 | _ACEOF |
| 4123 | |
| 4124 | fi |
| 4125 | |
| 4126 | done |
| 4127 | |
| 4128 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4129 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4130 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4131 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4133 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4134 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4135 | cat >conftest.$ac_ext <<_ACEOF |
| 4136 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4137 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4138 | cat confdefs.h >>conftest.$ac_ext |
| 4139 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4140 | /* end confdefs.h. */ |
| 4141 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4142 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4143 | |
| 4144 | int |
| 4145 | main () |
| 4146 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4147 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4148 | bogus endian macros |
| 4149 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4150 | |
| 4151 | ; |
| 4152 | return 0; |
| 4153 | } |
| 4154 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4155 | rm -f conftest.$ac_objext |
| 4156 | if { (ac_try="$ac_compile" |
| 4157 | case "(($ac_try" in |
| 4158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4159 | *) ac_try_echo=$ac_try;; |
| 4160 | esac |
| 4161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4162 | (eval "$ac_compile") 2>conftest.er1 |
| 4163 | ac_status=$? |
| 4164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4165 | rm -f conftest.er1 |
| 4166 | cat conftest.err >&5 |
| 4167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4168 | (exit $ac_status); } && |
| 4169 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4170 | { (case "(($ac_try" in |
| 4171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4172 | *) ac_try_echo=$ac_try;; |
| 4173 | esac |
| 4174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4175 | (eval "$ac_try") 2>&5 |
| 4176 | ac_status=$? |
| 4177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4178 | (exit $ac_status); }; } && |
| 4179 | { ac_try='test -s conftest.$ac_objext' |
| 4180 | { (case "(($ac_try" in |
| 4181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4182 | *) ac_try_echo=$ac_try;; |
| 4183 | esac |
| 4184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4185 | (eval "$ac_try") 2>&5 |
| 4186 | ac_status=$? |
| 4187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4188 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4189 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4190 | cat >conftest.$ac_ext <<_ACEOF |
| 4191 | /* confdefs.h. */ |
| 4192 | _ACEOF |
| 4193 | cat confdefs.h >>conftest.$ac_ext |
| 4194 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4195 | /* end confdefs.h. */ |
| 4196 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4197 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4198 | |
| 4199 | int |
| 4200 | main () |
| 4201 | { |
| 4202 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4203 | not big endian |
| 4204 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4205 | |
| 4206 | ; |
| 4207 | return 0; |
| 4208 | } |
| 4209 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4210 | rm -f conftest.$ac_objext |
| 4211 | if { (ac_try="$ac_compile" |
| 4212 | case "(($ac_try" in |
| 4213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4214 | *) ac_try_echo=$ac_try;; |
| 4215 | esac |
| 4216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4217 | (eval "$ac_compile") 2>conftest.er1 |
| 4218 | ac_status=$? |
| 4219 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4220 | rm -f conftest.er1 |
| 4221 | cat conftest.err >&5 |
| 4222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4223 | (exit $ac_status); } && |
| 4224 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4225 | { (case "(($ac_try" in |
| 4226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4227 | *) ac_try_echo=$ac_try;; |
| 4228 | esac |
| 4229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4230 | (eval "$ac_try") 2>&5 |
| 4231 | ac_status=$? |
| 4232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4233 | (exit $ac_status); }; } && |
| 4234 | { ac_try='test -s conftest.$ac_objext' |
| 4235 | { (case "(($ac_try" in |
| 4236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4237 | *) ac_try_echo=$ac_try;; |
| 4238 | esac |
| 4239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4240 | (eval "$ac_try") 2>&5 |
| 4241 | ac_status=$? |
| 4242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4243 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4244 | ac_cv_c_bigendian=yes |
| 4245 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4246 | echo "$as_me: failed program was:" >&5 |
| 4247 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4248 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4249 | ac_cv_c_bigendian=no |
| 4250 | fi |
| 4251 | |
| 4252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4253 | else |
| 4254 | echo "$as_me: failed program was:" >&5 |
| 4255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4256 | |
| 4257 | # It does not; compile a test program. |
| 4258 | if test "$cross_compiling" = yes; then |
| 4259 | # try to guess the endianness by grepping values into an object file |
| 4260 | ac_cv_c_bigendian=unknown |
| 4261 | cat >conftest.$ac_ext <<_ACEOF |
| 4262 | /* confdefs.h. */ |
| 4263 | _ACEOF |
| 4264 | cat confdefs.h >>conftest.$ac_ext |
| 4265 | cat >>conftest.$ac_ext <<_ACEOF |
| 4266 | /* end confdefs.h. */ |
| 4267 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4268 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4269 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4270 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4271 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4272 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4273 | int |
| 4274 | main () |
| 4275 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4276 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4277 | ; |
| 4278 | return 0; |
| 4279 | } |
| 4280 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4281 | rm -f conftest.$ac_objext |
| 4282 | if { (ac_try="$ac_compile" |
| 4283 | case "(($ac_try" in |
| 4284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4285 | *) ac_try_echo=$ac_try;; |
| 4286 | esac |
| 4287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4288 | (eval "$ac_compile") 2>conftest.er1 |
| 4289 | ac_status=$? |
| 4290 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4291 | rm -f conftest.er1 |
| 4292 | cat conftest.err >&5 |
| 4293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4294 | (exit $ac_status); } && |
| 4295 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4296 | { (case "(($ac_try" in |
| 4297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4298 | *) ac_try_echo=$ac_try;; |
| 4299 | esac |
| 4300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4301 | (eval "$ac_try") 2>&5 |
| 4302 | ac_status=$? |
| 4303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4304 | (exit $ac_status); }; } && |
| 4305 | { ac_try='test -s conftest.$ac_objext' |
| 4306 | { (case "(($ac_try" in |
| 4307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4308 | *) ac_try_echo=$ac_try;; |
| 4309 | esac |
| 4310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4311 | (eval "$ac_try") 2>&5 |
| 4312 | ac_status=$? |
| 4313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4314 | (exit $ac_status); }; }; then |
| 4315 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4316 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4317 | fi |
| 4318 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4319 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4320 | ac_cv_c_bigendian=no |
| 4321 | else |
| 4322 | # finding both strings is unlikely to happen, but who knows? |
| 4323 | ac_cv_c_bigendian=unknown |
| 4324 | fi |
| 4325 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4326 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4327 | echo "$as_me: failed program was:" >&5 |
| 4328 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4329 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4330 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4331 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4332 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4334 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4335 | cat >conftest.$ac_ext <<_ACEOF |
| 4336 | /* confdefs.h. */ |
| 4337 | _ACEOF |
| 4338 | cat confdefs.h >>conftest.$ac_ext |
| 4339 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4340 | /* end confdefs.h. */ |
| 4341 | $ac_includes_default |
| 4342 | int |
| 4343 | main () |
| 4344 | { |
| 4345 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4346 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4347 | union |
| 4348 | { |
| 4349 | long int l; |
| 4350 | char c[sizeof (long int)]; |
| 4351 | } u; |
| 4352 | u.l = 1; |
| 4353 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4354 | |
| 4355 | ; |
| 4356 | return 0; |
| 4357 | } |
| 4358 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4359 | rm -f conftest$ac_exeext |
| 4360 | if { (ac_try="$ac_link" |
| 4361 | case "(($ac_try" in |
| 4362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4363 | *) ac_try_echo=$ac_try;; |
| 4364 | esac |
| 4365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4366 | (eval "$ac_link") 2>&5 |
| 4367 | ac_status=$? |
| 4368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4369 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4370 | { (case "(($ac_try" in |
| 4371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4372 | *) ac_try_echo=$ac_try;; |
| 4373 | esac |
| 4374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4375 | (eval "$ac_try") 2>&5 |
| 4376 | ac_status=$? |
| 4377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4378 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4379 | ac_cv_c_bigendian=no |
| 4380 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4381 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4382 | echo "$as_me: failed program was:" >&5 |
| 4383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4384 | |
| 4385 | ( exit $ac_status ) |
| 4386 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4387 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4388 | 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] | 4389 | fi |
| 4390 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4391 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4392 | fi |
| 4393 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4395 | fi |
| 4396 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4397 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4398 | case $ac_cv_c_bigendian in |
| 4399 | yes) |
| 4400 | ENDIAN=big |
| 4401 | ;; |
| 4402 | no) |
| 4403 | ENDIAN=little |
| 4404 | ;; |
| 4405 | *) |
| 4406 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4407 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4408 | echo "$as_me: error: unknown endianness |
| 4409 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4410 | { (exit 1); exit 1; }; } ;; |
| 4411 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4412 | |
| 4413 | |
| 4414 | if test "$cross_compiling" = yes; then |
| 4415 | LLVM_CROSS_COMPILING=1 |
| 4416 | |
| 4417 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4418 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4419 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4420 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4422 | else |
| 4423 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4424 | ac_cv_build_exeext=.exe |
| 4425 | else |
| 4426 | ac_build_prefix=${build_alias}- |
| 4427 | |
| 4428 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4429 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4430 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4431 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4432 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4434 | else |
| 4435 | if test -n "$BUILD_CC"; then |
| 4436 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4437 | else |
| 4438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4439 | for as_dir in $PATH |
| 4440 | do |
| 4441 | IFS=$as_save_IFS |
| 4442 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4443 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4444 | 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] | 4445 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4446 | 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] | 4447 | break 2 |
| 4448 | fi |
| 4449 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4450 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4451 | IFS=$as_save_IFS |
| 4452 | |
| 4453 | fi |
| 4454 | fi |
| 4455 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4456 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4457 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4458 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4459 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4460 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4461 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4462 | fi |
| 4463 | |
| 4464 | |
| 4465 | if test -z "$BUILD_CC"; then |
| 4466 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4467 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4468 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4470 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4472 | else |
| 4473 | if test -n "$BUILD_CC"; then |
| 4474 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4475 | else |
| 4476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4477 | for as_dir in $PATH |
| 4478 | do |
| 4479 | IFS=$as_save_IFS |
| 4480 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4481 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4482 | 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] | 4483 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4484 | 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] | 4485 | break 2 |
| 4486 | fi |
| 4487 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4488 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4489 | IFS=$as_save_IFS |
| 4490 | |
| 4491 | fi |
| 4492 | fi |
| 4493 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4494 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4495 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4496 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4497 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4498 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4499 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4500 | fi |
| 4501 | |
| 4502 | |
| 4503 | if test -z "$BUILD_CC"; then |
| 4504 | # Extract the first word of "cc", so it can be a program name with args. |
| 4505 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4506 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4507 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4508 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4510 | else |
| 4511 | if test -n "$BUILD_CC"; then |
| 4512 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4513 | else |
| 4514 | ac_prog_rejected=no |
| 4515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4516 | for as_dir in $PATH |
| 4517 | do |
| 4518 | IFS=$as_save_IFS |
| 4519 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4520 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4521 | 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] | 4522 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4523 | ac_prog_rejected=yes |
| 4524 | continue |
| 4525 | fi |
| 4526 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4527 | 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] | 4528 | break 2 |
| 4529 | fi |
| 4530 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4531 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4532 | IFS=$as_save_IFS |
| 4533 | |
| 4534 | if test $ac_prog_rejected = yes; then |
| 4535 | # We found a bogon in the path, so make sure we never use it. |
| 4536 | set dummy $ac_cv_prog_BUILD_CC |
| 4537 | shift |
| 4538 | if test $# != 0; then |
| 4539 | # We chose a different compiler from the bogus one. |
| 4540 | # However, it has the same basename, so the bogon will be chosen |
| 4541 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4542 | shift |
| 4543 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4544 | fi |
| 4545 | fi |
| 4546 | fi |
| 4547 | fi |
| 4548 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4549 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4550 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4551 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4552 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4553 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4554 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4555 | fi |
| 4556 | |
| 4557 | |
| 4558 | fi |
| 4559 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4560 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4561 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4562 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4563 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4564 | rm -f conftest* |
| 4565 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4566 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4567 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4568 | (eval $ac_build_link) 2>&5 |
| 4569 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4571 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4572 | for file in conftest.*; do |
| 4573 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4574 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4575 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4576 | esac |
| 4577 | done |
| 4578 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4579 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4580 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4581 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4582 | fi |
| 4583 | rm -f conftest* |
| 4584 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4585 | fi |
| 4586 | fi |
| 4587 | |
| 4588 | BUILD_EXEEXT="" |
| 4589 | 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] | 4590 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4591 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4592 | ac_build_exeext=$BUILD_EXEEXT |
| 4593 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4594 | ac_build_prefix=${build_alias}- |
| 4595 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4596 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4597 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4598 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4599 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4601 | else |
| 4602 | if test -n "$BUILD_CXX"; then |
| 4603 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4604 | else |
| 4605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4606 | for as_dir in $PATH |
| 4607 | do |
| 4608 | IFS=$as_save_IFS |
| 4609 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4610 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4611 | 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] | 4612 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4613 | 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] | 4614 | break 2 |
| 4615 | fi |
| 4616 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4617 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4618 | IFS=$as_save_IFS |
| 4619 | |
| 4620 | fi |
| 4621 | fi |
| 4622 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4623 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4624 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4625 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4626 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4627 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4628 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4629 | fi |
| 4630 | |
| 4631 | |
| 4632 | if test -z "$BUILD_CXX"; then |
| 4633 | # Extract the first word of "g++", so it can be a program name with args. |
| 4634 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4635 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4637 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4639 | else |
| 4640 | if test -n "$BUILD_CXX"; then |
| 4641 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4642 | else |
| 4643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4644 | for as_dir in $PATH |
| 4645 | do |
| 4646 | IFS=$as_save_IFS |
| 4647 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4648 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4649 | 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] | 4650 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4651 | 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] | 4652 | break 2 |
| 4653 | fi |
| 4654 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4655 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4656 | IFS=$as_save_IFS |
| 4657 | |
| 4658 | fi |
| 4659 | fi |
| 4660 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4661 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4662 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4663 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4664 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4665 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4666 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4667 | fi |
| 4668 | |
| 4669 | |
| 4670 | if test -z "$BUILD_CXX"; then |
| 4671 | # Extract the first word of "c++", so it can be a program name with args. |
| 4672 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4673 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4675 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4677 | else |
| 4678 | if test -n "$BUILD_CXX"; then |
| 4679 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4680 | else |
| 4681 | ac_prog_rejected=no |
| 4682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4683 | for as_dir in $PATH |
| 4684 | do |
| 4685 | IFS=$as_save_IFS |
| 4686 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4687 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4688 | 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] | 4689 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4690 | ac_prog_rejected=yes |
| 4691 | continue |
| 4692 | fi |
| 4693 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4694 | 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] | 4695 | break 2 |
| 4696 | fi |
| 4697 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4698 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4699 | IFS=$as_save_IFS |
| 4700 | |
| 4701 | if test $ac_prog_rejected = yes; then |
| 4702 | # We found a bogon in the path, so make sure we never use it. |
| 4703 | set dummy $ac_cv_prog_BUILD_CXX |
| 4704 | shift |
| 4705 | if test $# != 0; then |
| 4706 | # We chose a different compiler from the bogus one. |
| 4707 | # However, it has the same basename, so the bogon will be chosen |
| 4708 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4709 | shift |
| 4710 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4711 | fi |
| 4712 | fi |
| 4713 | fi |
| 4714 | fi |
| 4715 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4716 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4717 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4718 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4719 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4720 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4721 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4722 | fi |
| 4723 | |
| 4724 | |
| 4725 | fi |
| 4726 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4727 | else |
| 4728 | LLVM_CROSS_COMPILING=0 |
| 4729 | |
| 4730 | fi |
| 4731 | |
Dan Gohman | 56fb5f9 | 2010-08-04 16:25:01 +0000 | [diff] [blame] | 4732 | 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] | 4733 | cvsbuild="yes" |
| 4734 | optimize="no" |
| 4735 | CVSBUILD=CVSBUILD=1 |
| 4736 | |
| 4737 | else |
| 4738 | cvsbuild="no" |
| 4739 | optimize="yes" |
| 4740 | fi |
| 4741 | |
| 4742 | |
| 4743 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4744 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4745 | enableval=$enable_optimized; |
| 4746 | else |
| 4747 | enableval=$optimize |
| 4748 | fi |
| 4749 | |
| 4750 | if test ${enableval} = "no" ; then |
| 4751 | ENABLE_OPTIMIZED= |
| 4752 | |
| 4753 | else |
| 4754 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4755 | |
| 4756 | fi |
| 4757 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4758 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4759 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4760 | enableval=$enable_profiling; |
| 4761 | else |
| 4762 | enableval="no" |
| 4763 | fi |
| 4764 | |
| 4765 | if test ${enableval} = "no" ; then |
| 4766 | ENABLE_PROFILING= |
| 4767 | |
| 4768 | else |
| 4769 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4770 | |
| 4771 | fi |
| 4772 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4773 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4774 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4775 | enableval=$enable_assertions; |
| 4776 | else |
| 4777 | enableval="yes" |
| 4778 | fi |
| 4779 | |
| 4780 | if test ${enableval} = "yes" ; then |
| 4781 | DISABLE_ASSERTIONS= |
| 4782 | |
| 4783 | else |
| 4784 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4785 | |
| 4786 | fi |
| 4787 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4788 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4789 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4790 | enableval=$enable_expensive_checks; |
| 4791 | else |
| 4792 | enableval="no" |
| 4793 | fi |
| 4794 | |
| 4795 | if test ${enableval} = "yes" ; then |
| 4796 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4797 | |
| 4798 | EXPENSIVE_CHECKS=yes |
| 4799 | |
| 4800 | else |
| 4801 | ENABLE_EXPENSIVE_CHECKS= |
| 4802 | |
| 4803 | EXPENSIVE_CHECKS=no |
| 4804 | |
| 4805 | fi |
| 4806 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4807 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4808 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4809 | enableval=$enable_debug_runtime; |
| 4810 | else |
| 4811 | enableval=no |
| 4812 | fi |
| 4813 | |
| 4814 | if test ${enableval} = "no" ; then |
| 4815 | DEBUG_RUNTIME= |
| 4816 | |
| 4817 | else |
| 4818 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4819 | |
| 4820 | fi |
| 4821 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4822 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4823 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4824 | enableval=$enable_debug_symbols; |
| 4825 | else |
| 4826 | enableval=no |
| 4827 | fi |
| 4828 | |
| 4829 | if test ${enableval} = "no" ; then |
| 4830 | DEBUG_SYMBOLS= |
| 4831 | |
| 4832 | else |
| 4833 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 4834 | |
| 4835 | fi |
| 4836 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4837 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4838 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4839 | enableval=$enable_jit; |
| 4840 | else |
| 4841 | enableval=default |
| 4842 | fi |
| 4843 | |
| 4844 | if test ${enableval} = "no" |
| 4845 | then |
| 4846 | JIT= |
| 4847 | |
| 4848 | else |
| 4849 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4850 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4851 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4852 | Sparc) TARGET_HAS_JIT=0 |
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 | PowerPC) TARGET_HAS_JIT=1 |
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 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4857 | ;; |
Chris Lattner | c476ed9 | 2010-11-14 18:24:41 +0000 | [diff] [blame] | 4858 | Alpha) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4859 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 4860 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4861 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4862 | Mips) TARGET_HAS_JIT=0 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4863 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4864 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4865 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4866 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4867 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4868 | SystemZ) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4869 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4870 | Blackfin) TARGET_HAS_JIT=0 |
| 4871 | ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4872 | MBlaze) TARGET_HAS_JIT=0 |
| 4873 | ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 4874 | PTX) TARGET_HAS_JIT=0 |
| 4875 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4876 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4877 | ;; |
| 4878 | esac |
| 4879 | fi |
| 4880 | |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 4881 | # Check whether --enable-docs was given. |
| 4882 | if test "${enable_docs+set}" = set; then |
| 4883 | enableval=$enable_docs; |
| 4884 | else |
| 4885 | enableval=default |
| 4886 | fi |
| 4887 | |
| 4888 | case "$enableval" in |
| 4889 | yes) ENABLE_DOCS=1 |
| 4890 | ;; |
| 4891 | no) ENABLE_DOCS=0 |
| 4892 | ;; |
| 4893 | default) ENABLE_DOCS=1 |
| 4894 | ;; |
| 4895 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 |
| 4896 | echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} |
| 4897 | { (exit 1); exit 1; }; } ;; |
| 4898 | esac |
| 4899 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4900 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4901 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4902 | enableval=$enable_doxygen; |
| 4903 | else |
| 4904 | enableval=default |
| 4905 | fi |
| 4906 | |
| 4907 | case "$enableval" in |
| 4908 | yes) ENABLE_DOXYGEN=1 |
| 4909 | ;; |
| 4910 | no) ENABLE_DOXYGEN=0 |
| 4911 | ;; |
| 4912 | default) ENABLE_DOXYGEN=0 |
| 4913 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4914 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4915 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4916 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4917 | esac |
| 4918 | |
| 4919 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4920 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4921 | enableval=$enable_threads; |
| 4922 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4923 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4924 | fi |
| 4925 | |
| 4926 | case "$enableval" in |
| 4927 | yes) ENABLE_THREADS=1 |
| 4928 | ;; |
| 4929 | no) ENABLE_THREADS=0 |
| 4930 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4931 | default) ENABLE_THREADS=1 |
| 4932 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4933 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4934 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4935 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4936 | esac |
| 4937 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 4938 | cat >>confdefs.h <<_ACEOF |
| 4939 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4940 | _ACEOF |
| 4941 | |
| 4942 | |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 4943 | # Check whether --enable-pthreads was given. |
| 4944 | if test "${enable_pthreads+set}" = set; then |
| 4945 | enableval=$enable_pthreads; |
| 4946 | else |
| 4947 | enableval=default |
| 4948 | fi |
| 4949 | |
| 4950 | case "$enableval" in |
| 4951 | yes) ENABLE_PTHREADS=1 |
| 4952 | ;; |
| 4953 | no) ENABLE_PTHREADS=0 |
| 4954 | ;; |
| 4955 | default) ENABLE_PTHREADS=1 |
| 4956 | ;; |
| 4957 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 |
| 4958 | echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} |
| 4959 | { (exit 1); exit 1; }; } ;; |
| 4960 | esac |
| 4961 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4962 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4963 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4964 | enableval=$enable_pic; |
| 4965 | else |
| 4966 | enableval=default |
| 4967 | fi |
| 4968 | |
| 4969 | case "$enableval" in |
| 4970 | yes) ENABLE_PIC=1 |
| 4971 | ;; |
| 4972 | no) ENABLE_PIC=0 |
| 4973 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4974 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4975 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4976 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4977 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4978 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4979 | esac |
| 4980 | |
| 4981 | cat >>confdefs.h <<_ACEOF |
| 4982 | #define ENABLE_PIC $ENABLE_PIC |
| 4983 | _ACEOF |
| 4984 | |
| 4985 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 4986 | # Check whether --enable-shared was given. |
| 4987 | if test "${enable_shared+set}" = set; then |
| 4988 | enableval=$enable_shared; |
| 4989 | else |
| 4990 | enableval=default |
| 4991 | fi |
| 4992 | |
| 4993 | case "$enableval" in |
| 4994 | yes) ENABLE_SHARED=1 |
| 4995 | ;; |
| 4996 | no) ENABLE_SHARED=0 |
| 4997 | ;; |
| 4998 | default) ENABLE_SHARED=0 |
| 4999 | ;; |
| 5000 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 |
| 5001 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} |
| 5002 | { (exit 1); exit 1; }; } ;; |
| 5003 | esac |
| 5004 | |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5005 | # Check whether --enable-embed-stdcxx was given. |
| 5006 | if test "${enable_embed_stdcxx+set}" = set; then |
| 5007 | enableval=$enable_embed_stdcxx; |
| 5008 | else |
| 5009 | enableval=default |
| 5010 | fi |
| 5011 | |
| 5012 | case "$enableval" in |
| 5013 | yes) ENABLE_EMBED_STDCXX=1 |
| 5014 | ;; |
| 5015 | no) ENABLE_EMBED_STDCXX=0 |
| 5016 | ;; |
| 5017 | default) ENABLE_EMBED_STDCXX=1 |
| 5018 | ;; |
| 5019 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 |
| 5020 | echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} |
| 5021 | { (exit 1); exit 1; }; } ;; |
| 5022 | esac |
| 5023 | |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 5024 | # Check whether --enable-timestamps was given. |
| 5025 | if test "${enable_timestamps+set}" = set; then |
| 5026 | enableval=$enable_timestamps; |
| 5027 | else |
| 5028 | enableval=default |
| 5029 | fi |
| 5030 | |
| 5031 | case "$enableval" in |
| 5032 | yes) ENABLE_TIMESTAMPS=1 |
| 5033 | ;; |
| 5034 | no) ENABLE_TIMESTAMPS=0 |
| 5035 | ;; |
| 5036 | default) ENABLE_TIMESTAMPS=1 |
| 5037 | ;; |
| 5038 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 |
| 5039 | echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} |
| 5040 | { (exit 1); exit 1; }; } ;; |
| 5041 | esac |
| 5042 | |
| 5043 | cat >>confdefs.h <<_ACEOF |
| 5044 | #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS |
| 5045 | _ACEOF |
| 5046 | |
| 5047 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5048 | TARGETS_TO_BUILD="" |
| 5049 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5050 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5051 | enableval=$enable_targets; |
| 5052 | else |
| 5053 | enableval=all |
| 5054 | fi |
| 5055 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5056 | if test "$enableval" = host-only ; then |
| 5057 | enableval=host |
| 5058 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5059 | case "$enableval" in |
Chris Lattner | 60cb528 | 2010-10-11 05:44:40 +0000 | [diff] [blame] | 5060 | 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] | 5061 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5062 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5063 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5064 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5065 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5066 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 5067 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 5068 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5069 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 5070 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5071 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5072 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 5073 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 5074 | blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 5075 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5076 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5077 | mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5078 | ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5079 | host) case "$llvm_cv_target_arch" in |
| 5080 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5081 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5082 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5083 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 5084 | Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 5085 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5086 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5087 | MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5088 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5089 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5090 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 6ca835d | 2010-01-05 20:45:43 +0000 | [diff] [blame] | 5091 | s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5092 | Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5093 | PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5094 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 5095 | echo "$as_me: error: Can not set target to build" >&2;} |
| 5096 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5097 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5098 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 5099 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 5100 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5101 | esac |
| 5102 | done |
| 5103 | ;; |
| 5104 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5105 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 5106 | |
| 5107 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5108 | # Determine whether we are building LLVM support for the native architecture. |
| 5109 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 5110 | for a_target in $TARGETS_TO_BUILD; do |
| 5111 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
| 5112 | |
| 5113 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5114 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH |
| 5115 | _ACEOF |
| 5116 | |
| 5117 | LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" |
| 5118 | LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" |
| 5119 | LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" |
| 5120 | |
| 5121 | cat >>confdefs.h <<_ACEOF |
| 5122 | #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET |
Daniel Dunbar | b1247c3 | 2010-08-03 14:26:17 +0000 | [diff] [blame] | 5123 | _ACEOF |
| 5124 | |
| 5125 | |
| 5126 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5127 | #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO |
| 5128 | _ACEOF |
| 5129 | |
| 5130 | |
| 5131 | cat >>confdefs.h <<_ACEOF |
| 5132 | #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5133 | _ACEOF |
| 5134 | |
| 5135 | fi |
| 5136 | done |
| 5137 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5138 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual |
| 5139 | # target feature def files. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5140 | LLVM_ENUM_TARGETS="" |
| 5141 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5142 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5143 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5144 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5145 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
Chris Lattner | e15f2e1 | 2010-11-14 19:10:47 +0000 | [diff] [blame] | 5146 | if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then |
Jim Grosbach | 7ac1609 | 2010-10-01 22:39:28 +0000 | [diff] [blame] | 5147 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5148 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5149 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5150 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5151 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5152 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 5153 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 5154 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5155 | done |
| 5156 | |
| 5157 | |
| 5158 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5159 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5160 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5161 | # Check whether --enable-cbe-printf-a was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5162 | if test "${enable_cbe_printf_a+set}" = set; then |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5163 | enableval=$enable_cbe_printf_a; |
| 5164 | else |
| 5165 | enableval=default |
| 5166 | fi |
| 5167 | |
| 5168 | case "$enableval" in |
| 5169 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5170 | ;; |
| 5171 | no) ENABLE_CBE_PRINTF_A=0 |
| 5172 | ;; |
| 5173 | default) ENABLE_CBE_PRINTF_A=1 |
| 5174 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5175 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5176 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5177 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5178 | esac |
| 5179 | |
| 5180 | cat >>confdefs.h <<_ACEOF |
| 5181 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5182 | _ACEOF |
| 5183 | |
| 5184 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5185 | |
| 5186 | # Check whether --with-llvmgccdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5187 | if test "${with_llvmgccdir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5188 | withval=$with_llvmgccdir; |
| 5189 | else |
| 5190 | withval=default |
| 5191 | fi |
| 5192 | |
| 5193 | case "$withval" in |
| 5194 | default) WITH_LLVMGCCDIR=default ;; |
| 5195 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5196 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 5197 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 5198 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5199 | esac |
| 5200 | |
| 5201 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5202 | # Check whether --with-llvmgcc was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5203 | if test "${with_llvmgcc+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5204 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 5205 | WITH_LLVMGCCDIR="" |
| 5206 | fi |
| 5207 | |
| 5208 | |
| 5209 | |
| 5210 | # Check whether --with-llvmgxx was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5211 | if test "${with_llvmgxx+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5212 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5213 | WITH_LLVMGCCDIR="" |
| 5214 | fi |
| 5215 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5216 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5217 | if test -n "$LLVMGCC"; then |
| 5218 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5219 | fi |
| 5220 | |
| 5221 | if test -n "$LLVMGXX"; then |
| 5222 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5223 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5224 | |
| 5225 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5226 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5227 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5228 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5229 | fi |
| 5230 | |
| 5231 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5232 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5233 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5234 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5235 | fi |
| 5236 | |
| 5237 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 5238 | # Check whether --with-clang was given. |
| 5239 | if test "${with_clang+set}" = set; then |
| 5240 | withval=$with_clang; |
| 5241 | else |
| 5242 | with_clang=default |
| 5243 | fi |
| 5244 | |
| 5245 | |
| 5246 | |
| 5247 | # Check whether --with-built-clang was given. |
| 5248 | if test "${with_built_clang+set}" = set; then |
| 5249 | withval=$with_built_clang; |
| 5250 | else |
| 5251 | with_built_clang=check |
| 5252 | fi |
| 5253 | |
| 5254 | |
| 5255 | { echo "$as_me:$LINENO: checking clang compiler" >&5 |
| 5256 | echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; } |
| 5257 | WITH_CLANGPATH="" |
| 5258 | WITH_BUILT_CLANG=0 |
| 5259 | if test "$with_clang" != "default"; then |
| 5260 | WITH_CLANGPATH="$with_clang" |
| 5261 | if ! test -x "$WITH_CLANGPATH"; then |
| 5262 | { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5 |
| 5263 | echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;} |
| 5264 | { (exit 1); exit 1; }; } |
| 5265 | fi |
| 5266 | elif test "$with_built_clang" = "yes"; then |
| 5267 | WITH_BUILT_CLANG=1 |
| 5268 | elif test "$with_built_clang" = "no"; then |
| 5269 | WITH_BUILT_CLANG=0 |
| 5270 | else |
| 5271 | if test "$with_built_clang" != "check"; then |
| 5272 | { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5 |
| 5273 | echo "$as_me: error: invalid value for --with-built-clang." >&2;} |
| 5274 | { (exit 1); exit 1; }; } |
| 5275 | fi |
| 5276 | |
| 5277 | if test -f ${srcdir}/tools/clang/README.txt; then |
| 5278 | WITH_BUILT_CLANG=1 |
| 5279 | fi |
| 5280 | fi |
| 5281 | |
| 5282 | if ! test -z "$WITH_CLANGPATH"; then |
| 5283 | { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5 |
| 5284 | echo "${ECHO_T}$WITH_CLANGPATH" >&6; } |
| 5285 | WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++` |
| 5286 | elif test "$WITH_BUILT_CLANG" = "1"; then |
| 5287 | { echo "$as_me:$LINENO: result: built" >&5 |
| 5288 | echo "${ECHO_T}built" >&6; } |
| 5289 | else |
| 5290 | { echo "$as_me:$LINENO: result: none" >&5 |
| 5291 | echo "${ECHO_T}none" >&6; } |
| 5292 | fi |
| 5293 | CLANGPATH=$WITH_CLANGPATH |
| 5294 | |
| 5295 | CLANGXXPATH=$WITH_CLANGXXPATH |
| 5296 | |
| 5297 | ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG |
| 5298 | |
| 5299 | |
| 5300 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5301 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5302 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5303 | withval=$with_optimize_option; |
| 5304 | else |
| 5305 | withval=default |
| 5306 | fi |
| 5307 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5308 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5309 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5310 | case "$withval" in |
| 5311 | default) |
| 5312 | case "$llvm_cv_os_type" in |
Daniel Dunbar | f913878 | 2010-04-30 17:12:26 +0000 | [diff] [blame] | 5313 | FreeBSD) optimize_option=-O2 ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 5314 | MingW) optimize_option=-O2 ;; |
| 5315 | *) optimize_option=-O3 ;; |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5316 | esac ;; |
| 5317 | *) optimize_option="$withval" ;; |
| 5318 | esac |
| 5319 | OPTIMIZE_OPTION=$optimize_option |
| 5320 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5321 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5322 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5323 | |
| 5324 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5325 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5326 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5327 | withval=$with_extra_options; |
| 5328 | else |
| 5329 | withval=default |
| 5330 | fi |
| 5331 | |
| 5332 | case "$withval" in |
| 5333 | default) EXTRA_OPTIONS= ;; |
| 5334 | *) EXTRA_OPTIONS=$withval ;; |
| 5335 | esac |
| 5336 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5337 | |
| 5338 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5339 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5340 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5341 | enableval=$enable_bindings; |
| 5342 | else |
| 5343 | enableval=default |
| 5344 | fi |
| 5345 | |
| 5346 | BINDINGS_TO_BUILD="" |
| 5347 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5348 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5349 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5350 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5351 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5352 | case "$a_binding" in |
| 5353 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5354 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5355 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5356 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5357 | esac |
| 5358 | done |
| 5359 | ;; |
| 5360 | esac |
| 5361 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5362 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5363 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5364 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5365 | withval=$with_ocaml_libdir; |
| 5366 | else |
| 5367 | withval=auto |
| 5368 | fi |
| 5369 | |
| 5370 | case "$withval" in |
| 5371 | auto) with_ocaml_libdir="$withval" ;; |
| 5372 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5373 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5374 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5375 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5376 | esac |
| 5377 | |
| 5378 | |
Chandler Carruth | 6b24116 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 5379 | # Check whether --with-clang-resource-dir was given. |
| 5380 | if test "${with_clang_resource_dir+set}" = set; then |
| 5381 | withval=$with_clang_resource_dir; |
| 5382 | else |
| 5383 | withval="" |
| 5384 | fi |
| 5385 | |
| 5386 | |
| 5387 | cat >>confdefs.h <<_ACEOF |
| 5388 | #define CLANG_RESOURCE_DIR "$withval" |
| 5389 | _ACEOF |
| 5390 | |
| 5391 | |
| 5392 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5393 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5394 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5395 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5396 | else |
| 5397 | withval="" |
| 5398 | fi |
| 5399 | |
| 5400 | |
| 5401 | cat >>confdefs.h <<_ACEOF |
| 5402 | #define C_INCLUDE_DIRS "$withval" |
| 5403 | _ACEOF |
| 5404 | |
| 5405 | |
| 5406 | |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5407 | # Check whether --with-cxx-include-root was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5408 | if test "${with_cxx_include_root+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5409 | withval=$with_cxx_include_root; |
| 5410 | else |
| 5411 | withval="" |
| 5412 | fi |
| 5413 | |
| 5414 | |
| 5415 | cat >>confdefs.h <<_ACEOF |
| 5416 | #define CXX_INCLUDE_ROOT "$withval" |
| 5417 | _ACEOF |
| 5418 | |
| 5419 | |
| 5420 | |
| 5421 | # Check whether --with-cxx-include-arch was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5422 | if test "${with_cxx_include_arch+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5423 | withval=$with_cxx_include_arch; |
| 5424 | else |
| 5425 | withval="" |
| 5426 | fi |
| 5427 | |
| 5428 | |
| 5429 | cat >>confdefs.h <<_ACEOF |
| 5430 | #define CXX_INCLUDE_ARCH "$withval" |
| 5431 | _ACEOF |
| 5432 | |
| 5433 | |
| 5434 | |
| 5435 | # Check whether --with-cxx-include-32bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5436 | if test "${with_cxx_include_32bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5437 | withval=$with_cxx_include_32bit_dir; |
| 5438 | else |
| 5439 | withval="" |
| 5440 | fi |
| 5441 | |
| 5442 | |
| 5443 | cat >>confdefs.h <<_ACEOF |
| 5444 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5445 | _ACEOF |
| 5446 | |
| 5447 | |
| 5448 | |
| 5449 | # Check whether --with-cxx-include-64bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5450 | if test "${with_cxx_include_64bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5451 | withval=$with_cxx_include_64bit_dir; |
| 5452 | else |
| 5453 | withval="" |
| 5454 | fi |
| 5455 | |
| 5456 | |
| 5457 | cat >>confdefs.h <<_ACEOF |
| 5458 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5459 | _ACEOF |
| 5460 | |
| 5461 | |
| 5462 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5463 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5464 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5465 | withval=$with_binutils_include; |
| 5466 | else |
| 5467 | withval=default |
| 5468 | fi |
| 5469 | |
| 5470 | case "$withval" in |
| 5471 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5472 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5473 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5474 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5475 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5476 | esac |
| 5477 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5478 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5479 | |
| 5480 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5481 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5482 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5483 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5484 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5485 | fi |
| 5486 | fi |
| 5487 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5488 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5489 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5490 | enableval=$enable_libffi; case "$enableval" in |
| 5491 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5492 | no) llvm_cv_enable_libffi="no" ;; |
| 5493 | *) { { 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] | 5494 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5495 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5496 | esac |
| 5497 | else |
| 5498 | llvm_cv_enable_libffi=no |
| 5499 | fi |
| 5500 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5501 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5503 | ac_ext=c |
| 5504 | ac_cpp='$CPP $CPPFLAGS' |
| 5505 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5506 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5507 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5508 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5509 | 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] | 5510 | # On Suns, sometimes $CPP names a directory. |
| 5511 | if test -n "$CPP" && test -d "$CPP"; then |
| 5512 | CPP= |
| 5513 | fi |
| 5514 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5515 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5517 | else |
| 5518 | # Double quotes because CPP needs to be expanded |
| 5519 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5520 | do |
| 5521 | ac_preproc_ok=false |
| 5522 | for ac_c_preproc_warn_flag in '' yes |
| 5523 | do |
| 5524 | # Use a header file that comes with gcc, so configuring glibc |
| 5525 | # with a fresh cross-compiler works. |
| 5526 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5527 | # <limits.h> exists even on freestanding compilers. |
| 5528 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5529 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5530 | cat >conftest.$ac_ext <<_ACEOF |
| 5531 | /* confdefs.h. */ |
| 5532 | _ACEOF |
| 5533 | cat confdefs.h >>conftest.$ac_ext |
| 5534 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5535 | /* end confdefs.h. */ |
| 5536 | #ifdef __STDC__ |
| 5537 | # include <limits.h> |
| 5538 | #else |
| 5539 | # include <assert.h> |
| 5540 | #endif |
| 5541 | Syntax error |
| 5542 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5543 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5544 | case "(($ac_try" in |
| 5545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5546 | *) ac_try_echo=$ac_try;; |
| 5547 | esac |
| 5548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5549 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5550 | ac_status=$? |
| 5551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5552 | rm -f conftest.er1 |
| 5553 | cat conftest.err >&5 |
| 5554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5555 | (exit $ac_status); } >/dev/null; then |
| 5556 | if test -s conftest.err; then |
| 5557 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5558 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5559 | else |
| 5560 | ac_cpp_err= |
| 5561 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5562 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5563 | ac_cpp_err=yes |
| 5564 | fi |
| 5565 | if test -z "$ac_cpp_err"; then |
| 5566 | : |
| 5567 | else |
| 5568 | echo "$as_me: failed program was:" >&5 |
| 5569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5570 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5571 | # Broken: fails on valid input. |
| 5572 | continue |
| 5573 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5574 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5575 | rm -f conftest.err conftest.$ac_ext |
| 5576 | |
| 5577 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5578 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5579 | cat >conftest.$ac_ext <<_ACEOF |
| 5580 | /* confdefs.h. */ |
| 5581 | _ACEOF |
| 5582 | cat confdefs.h >>conftest.$ac_ext |
| 5583 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5584 | /* end confdefs.h. */ |
| 5585 | #include <ac_nonexistent.h> |
| 5586 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5587 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5588 | case "(($ac_try" in |
| 5589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5590 | *) ac_try_echo=$ac_try;; |
| 5591 | esac |
| 5592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5593 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5594 | ac_status=$? |
| 5595 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5596 | rm -f conftest.er1 |
| 5597 | cat conftest.err >&5 |
| 5598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5599 | (exit $ac_status); } >/dev/null; then |
| 5600 | if test -s conftest.err; then |
| 5601 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5602 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5603 | else |
| 5604 | ac_cpp_err= |
| 5605 | fi |
| 5606 | else |
| 5607 | ac_cpp_err=yes |
| 5608 | fi |
| 5609 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5610 | # Broken: success on invalid input. |
| 5611 | continue |
| 5612 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5613 | echo "$as_me: failed program was:" >&5 |
| 5614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5615 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5616 | # Passes both tests. |
| 5617 | ac_preproc_ok=: |
| 5618 | break |
| 5619 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5620 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5621 | rm -f conftest.err conftest.$ac_ext |
| 5622 | |
| 5623 | done |
| 5624 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5625 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5626 | if $ac_preproc_ok; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5627 | break |
| 5628 | fi |
| 5629 | |
| 5630 | done |
| 5631 | ac_cv_prog_CPP=$CPP |
| 5632 | |
| 5633 | fi |
| 5634 | CPP=$ac_cv_prog_CPP |
| 5635 | else |
| 5636 | ac_cv_prog_CPP=$CPP |
| 5637 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5638 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5639 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5640 | ac_preproc_ok=false |
| 5641 | for ac_c_preproc_warn_flag in '' yes |
| 5642 | do |
| 5643 | # Use a header file that comes with gcc, so configuring glibc |
| 5644 | # with a fresh cross-compiler works. |
| 5645 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5646 | # <limits.h> exists even on freestanding compilers. |
| 5647 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5648 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5649 | cat >conftest.$ac_ext <<_ACEOF |
| 5650 | /* confdefs.h. */ |
| 5651 | _ACEOF |
| 5652 | cat confdefs.h >>conftest.$ac_ext |
| 5653 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5654 | /* end confdefs.h. */ |
| 5655 | #ifdef __STDC__ |
| 5656 | # include <limits.h> |
| 5657 | #else |
| 5658 | # include <assert.h> |
| 5659 | #endif |
| 5660 | Syntax error |
| 5661 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5662 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5663 | case "(($ac_try" in |
| 5664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5665 | *) ac_try_echo=$ac_try;; |
| 5666 | esac |
| 5667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5668 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5669 | ac_status=$? |
| 5670 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5671 | rm -f conftest.er1 |
| 5672 | cat conftest.err >&5 |
| 5673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5674 | (exit $ac_status); } >/dev/null; then |
| 5675 | if test -s conftest.err; then |
| 5676 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5677 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5678 | else |
| 5679 | ac_cpp_err= |
| 5680 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5681 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5682 | ac_cpp_err=yes |
| 5683 | fi |
| 5684 | if test -z "$ac_cpp_err"; then |
| 5685 | : |
| 5686 | else |
| 5687 | echo "$as_me: failed program was:" >&5 |
| 5688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5690 | # Broken: fails on valid input. |
| 5691 | continue |
| 5692 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5693 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5694 | rm -f conftest.err conftest.$ac_ext |
| 5695 | |
| 5696 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5697 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5698 | cat >conftest.$ac_ext <<_ACEOF |
| 5699 | /* confdefs.h. */ |
| 5700 | _ACEOF |
| 5701 | cat confdefs.h >>conftest.$ac_ext |
| 5702 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5703 | /* end confdefs.h. */ |
| 5704 | #include <ac_nonexistent.h> |
| 5705 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5706 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5707 | case "(($ac_try" in |
| 5708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5709 | *) ac_try_echo=$ac_try;; |
| 5710 | esac |
| 5711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5712 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5713 | ac_status=$? |
| 5714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5715 | rm -f conftest.er1 |
| 5716 | cat conftest.err >&5 |
| 5717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5718 | (exit $ac_status); } >/dev/null; then |
| 5719 | if test -s conftest.err; then |
| 5720 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5721 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5722 | else |
| 5723 | ac_cpp_err= |
| 5724 | fi |
| 5725 | else |
| 5726 | ac_cpp_err=yes |
| 5727 | fi |
| 5728 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5729 | # Broken: success on invalid input. |
| 5730 | continue |
| 5731 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5732 | echo "$as_me: failed program was:" >&5 |
| 5733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5734 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5735 | # Passes both tests. |
| 5736 | ac_preproc_ok=: |
| 5737 | break |
| 5738 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5739 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5740 | rm -f conftest.err conftest.$ac_ext |
| 5741 | |
| 5742 | done |
| 5743 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5744 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5745 | if $ac_preproc_ok; then |
| 5746 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5747 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5748 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5749 | See \`config.log' for more details." >&5 |
| 5750 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5751 | See \`config.log' for more details." >&2;} |
| 5752 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5753 | fi |
| 5754 | |
| 5755 | ac_ext=c |
| 5756 | ac_cpp='$CPP $CPPFLAGS' |
| 5757 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5758 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5759 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5760 | |
| 5761 | ac_ext=c |
| 5762 | ac_cpp='$CPP $CPPFLAGS' |
| 5763 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5764 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5765 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5766 | if test -n "$ac_tool_prefix"; then |
| 5767 | for ac_prog in gcc |
| 5768 | do |
| 5769 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5770 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5771 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5772 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5773 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5775 | else |
| 5776 | if test -n "$CC"; then |
| 5777 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5778 | else |
| 5779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5780 | for as_dir in $PATH |
| 5781 | do |
| 5782 | IFS=$as_save_IFS |
| 5783 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5784 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5785 | 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] | 5786 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5787 | 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] | 5788 | break 2 |
| 5789 | fi |
| 5790 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5791 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5792 | IFS=$as_save_IFS |
| 5793 | |
| 5794 | fi |
| 5795 | fi |
| 5796 | CC=$ac_cv_prog_CC |
| 5797 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5798 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5799 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5800 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5801 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5802 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5803 | fi |
| 5804 | |
| 5805 | |
| 5806 | test -n "$CC" && break |
| 5807 | done |
| 5808 | fi |
| 5809 | if test -z "$CC"; then |
| 5810 | ac_ct_CC=$CC |
| 5811 | for ac_prog in gcc |
| 5812 | do |
| 5813 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5814 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5815 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5816 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5817 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5819 | else |
| 5820 | if test -n "$ac_ct_CC"; then |
| 5821 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5822 | else |
| 5823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5824 | for as_dir in $PATH |
| 5825 | do |
| 5826 | IFS=$as_save_IFS |
| 5827 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5828 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5829 | 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] | 5830 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5831 | 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] | 5832 | break 2 |
| 5833 | fi |
| 5834 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5835 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5836 | IFS=$as_save_IFS |
| 5837 | |
| 5838 | fi |
| 5839 | fi |
| 5840 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5841 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5842 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5843 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5844 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5845 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5846 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5847 | fi |
| 5848 | |
| 5849 | |
| 5850 | test -n "$ac_ct_CC" && break |
| 5851 | done |
| 5852 | |
| 5853 | if test "x$ac_ct_CC" = x; then |
| 5854 | CC="" |
| 5855 | else |
| 5856 | case $cross_compiling:$ac_tool_warned in |
| 5857 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5858 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5859 | whose name does not start with the host triplet. If you think this |
| 5860 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5861 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5862 | whose name does not start with the host triplet. If you think this |
| 5863 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5864 | ac_tool_warned=yes ;; |
| 5865 | esac |
| 5866 | CC=$ac_ct_CC |
| 5867 | fi |
| 5868 | fi |
| 5869 | |
| 5870 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5871 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5872 | See \`config.log' for more details." >&5 |
| 5873 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5874 | See \`config.log' for more details." >&2;} |
| 5875 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5876 | |
| 5877 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5878 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5879 | ac_compiler=`set X $ac_compile; echo $2` |
| 5880 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5881 | case "(($ac_try" in |
| 5882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5883 | *) ac_try_echo=$ac_try;; |
| 5884 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5886 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5887 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5889 | (exit $ac_status); } |
| 5890 | { (ac_try="$ac_compiler -v >&5" |
| 5891 | case "(($ac_try" in |
| 5892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5893 | *) ac_try_echo=$ac_try;; |
| 5894 | esac |
| 5895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5896 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5897 | ac_status=$? |
| 5898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5899 | (exit $ac_status); } |
| 5900 | { (ac_try="$ac_compiler -V >&5" |
| 5901 | case "(($ac_try" in |
| 5902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5903 | *) ac_try_echo=$ac_try;; |
| 5904 | esac |
| 5905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5906 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5907 | ac_status=$? |
| 5908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5909 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5910 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5911 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5912 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5913 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5915 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5916 | cat >conftest.$ac_ext <<_ACEOF |
| 5917 | /* confdefs.h. */ |
| 5918 | _ACEOF |
| 5919 | cat confdefs.h >>conftest.$ac_ext |
| 5920 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5921 | /* end confdefs.h. */ |
| 5922 | |
| 5923 | int |
| 5924 | main () |
| 5925 | { |
| 5926 | #ifndef __GNUC__ |
| 5927 | choke me |
| 5928 | #endif |
| 5929 | |
| 5930 | ; |
| 5931 | return 0; |
| 5932 | } |
| 5933 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5934 | rm -f conftest.$ac_objext |
| 5935 | if { (ac_try="$ac_compile" |
| 5936 | case "(($ac_try" in |
| 5937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5938 | *) ac_try_echo=$ac_try;; |
| 5939 | esac |
| 5940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5941 | (eval "$ac_compile") 2>conftest.er1 |
| 5942 | ac_status=$? |
| 5943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5944 | rm -f conftest.er1 |
| 5945 | cat conftest.err >&5 |
| 5946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5947 | (exit $ac_status); } && |
| 5948 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5949 | { (case "(($ac_try" in |
| 5950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5951 | *) ac_try_echo=$ac_try;; |
| 5952 | esac |
| 5953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5954 | (eval "$ac_try") 2>&5 |
| 5955 | ac_status=$? |
| 5956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5957 | (exit $ac_status); }; } && |
| 5958 | { ac_try='test -s conftest.$ac_objext' |
| 5959 | { (case "(($ac_try" in |
| 5960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5961 | *) ac_try_echo=$ac_try;; |
| 5962 | esac |
| 5963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5964 | (eval "$ac_try") 2>&5 |
| 5965 | ac_status=$? |
| 5966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5967 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5968 | ac_compiler_gnu=yes |
| 5969 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5970 | echo "$as_me: failed program was:" >&5 |
| 5971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5972 | |
| 5973 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5974 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5977 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5978 | |
| 5979 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5980 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5981 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5982 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5983 | ac_test_CFLAGS=${CFLAGS+set} |
| 5984 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5985 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5986 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5987 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5989 | else |
| 5990 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5991 | ac_c_werror_flag=yes |
| 5992 | ac_cv_prog_cc_g=no |
| 5993 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5994 | cat >conftest.$ac_ext <<_ACEOF |
| 5995 | /* confdefs.h. */ |
| 5996 | _ACEOF |
| 5997 | cat confdefs.h >>conftest.$ac_ext |
| 5998 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5999 | /* end confdefs.h. */ |
| 6000 | |
| 6001 | int |
| 6002 | main () |
| 6003 | { |
| 6004 | |
| 6005 | ; |
| 6006 | return 0; |
| 6007 | } |
| 6008 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6009 | rm -f conftest.$ac_objext |
| 6010 | if { (ac_try="$ac_compile" |
| 6011 | case "(($ac_try" in |
| 6012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6013 | *) ac_try_echo=$ac_try;; |
| 6014 | esac |
| 6015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6016 | (eval "$ac_compile") 2>conftest.er1 |
| 6017 | ac_status=$? |
| 6018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6019 | rm -f conftest.er1 |
| 6020 | cat conftest.err >&5 |
| 6021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6022 | (exit $ac_status); } && |
| 6023 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6024 | { (case "(($ac_try" in |
| 6025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6026 | *) ac_try_echo=$ac_try;; |
| 6027 | esac |
| 6028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6029 | (eval "$ac_try") 2>&5 |
| 6030 | ac_status=$? |
| 6031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6032 | (exit $ac_status); }; } && |
| 6033 | { ac_try='test -s conftest.$ac_objext' |
| 6034 | { (case "(($ac_try" in |
| 6035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6036 | *) ac_try_echo=$ac_try;; |
| 6037 | esac |
| 6038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6039 | (eval "$ac_try") 2>&5 |
| 6040 | ac_status=$? |
| 6041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6042 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6043 | ac_cv_prog_cc_g=yes |
| 6044 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6045 | echo "$as_me: failed program was:" >&5 |
| 6046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6047 | |
| 6048 | CFLAGS="" |
| 6049 | cat >conftest.$ac_ext <<_ACEOF |
| 6050 | /* confdefs.h. */ |
| 6051 | _ACEOF |
| 6052 | cat confdefs.h >>conftest.$ac_ext |
| 6053 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6054 | /* end confdefs.h. */ |
| 6055 | |
| 6056 | int |
| 6057 | main () |
| 6058 | { |
| 6059 | |
| 6060 | ; |
| 6061 | return 0; |
| 6062 | } |
| 6063 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6064 | rm -f conftest.$ac_objext |
| 6065 | if { (ac_try="$ac_compile" |
| 6066 | case "(($ac_try" in |
| 6067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6068 | *) ac_try_echo=$ac_try;; |
| 6069 | esac |
| 6070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6071 | (eval "$ac_compile") 2>conftest.er1 |
| 6072 | ac_status=$? |
| 6073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6074 | rm -f conftest.er1 |
| 6075 | cat conftest.err >&5 |
| 6076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6077 | (exit $ac_status); } && |
| 6078 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6079 | { (case "(($ac_try" in |
| 6080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6081 | *) ac_try_echo=$ac_try;; |
| 6082 | esac |
| 6083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6084 | (eval "$ac_try") 2>&5 |
| 6085 | ac_status=$? |
| 6086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6087 | (exit $ac_status); }; } && |
| 6088 | { ac_try='test -s conftest.$ac_objext' |
| 6089 | { (case "(($ac_try" in |
| 6090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6091 | *) ac_try_echo=$ac_try;; |
| 6092 | esac |
| 6093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6094 | (eval "$ac_try") 2>&5 |
| 6095 | ac_status=$? |
| 6096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6097 | (exit $ac_status); }; }; then |
| 6098 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6099 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6100 | echo "$as_me: failed program was:" >&5 |
| 6101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6102 | |
| 6103 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6104 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6105 | cat >conftest.$ac_ext <<_ACEOF |
| 6106 | /* confdefs.h. */ |
| 6107 | _ACEOF |
| 6108 | cat confdefs.h >>conftest.$ac_ext |
| 6109 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6110 | /* end confdefs.h. */ |
| 6111 | |
| 6112 | int |
| 6113 | main () |
| 6114 | { |
| 6115 | |
| 6116 | ; |
| 6117 | return 0; |
| 6118 | } |
| 6119 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6120 | rm -f conftest.$ac_objext |
| 6121 | if { (ac_try="$ac_compile" |
| 6122 | case "(($ac_try" in |
| 6123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6124 | *) ac_try_echo=$ac_try;; |
| 6125 | esac |
| 6126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6127 | (eval "$ac_compile") 2>conftest.er1 |
| 6128 | ac_status=$? |
| 6129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6130 | rm -f conftest.er1 |
| 6131 | cat conftest.err >&5 |
| 6132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6133 | (exit $ac_status); } && |
| 6134 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6135 | { (case "(($ac_try" in |
| 6136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6137 | *) ac_try_echo=$ac_try;; |
| 6138 | esac |
| 6139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6140 | (eval "$ac_try") 2>&5 |
| 6141 | ac_status=$? |
| 6142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6143 | (exit $ac_status); }; } && |
| 6144 | { ac_try='test -s conftest.$ac_objext' |
| 6145 | { (case "(($ac_try" in |
| 6146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6147 | *) ac_try_echo=$ac_try;; |
| 6148 | esac |
| 6149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6150 | (eval "$ac_try") 2>&5 |
| 6151 | ac_status=$? |
| 6152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6153 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6154 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6155 | else |
| 6156 | echo "$as_me: failed program was:" >&5 |
| 6157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6158 | |
| 6159 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6160 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6161 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6163 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6164 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6166 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6167 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6169 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6170 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6171 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 6172 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6173 | if test "$ac_test_CFLAGS" = set; then |
| 6174 | CFLAGS=$ac_save_CFLAGS |
| 6175 | elif test $ac_cv_prog_cc_g = yes; then |
| 6176 | if test "$GCC" = yes; then |
| 6177 | CFLAGS="-g -O2" |
| 6178 | else |
| 6179 | CFLAGS="-g" |
| 6180 | fi |
| 6181 | else |
| 6182 | if test "$GCC" = yes; then |
| 6183 | CFLAGS="-O2" |
| 6184 | else |
| 6185 | CFLAGS= |
| 6186 | fi |
| 6187 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6188 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 6189 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 6190 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 6191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6192 | else |
| 6193 | ac_cv_prog_cc_c89=no |
| 6194 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6195 | cat >conftest.$ac_ext <<_ACEOF |
| 6196 | /* confdefs.h. */ |
| 6197 | _ACEOF |
| 6198 | cat confdefs.h >>conftest.$ac_ext |
| 6199 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6200 | /* end confdefs.h. */ |
| 6201 | #include <stdarg.h> |
| 6202 | #include <stdio.h> |
| 6203 | #include <sys/types.h> |
| 6204 | #include <sys/stat.h> |
| 6205 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6206 | struct buf { int x; }; |
| 6207 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6208 | static char *e (p, i) |
| 6209 | char **p; |
| 6210 | int i; |
| 6211 | { |
| 6212 | return p[i]; |
| 6213 | } |
| 6214 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6215 | { |
| 6216 | char *s; |
| 6217 | va_list v; |
| 6218 | va_start (v,p); |
| 6219 | s = g (p, va_arg (v,int)); |
| 6220 | va_end (v); |
| 6221 | return s; |
| 6222 | } |
| 6223 | |
| 6224 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6225 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6226 | These don't provoke an error unfortunately, instead are silently treated |
| 6227 | as 'x'. The following induces an error, until -std is added to get |
| 6228 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6229 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6230 | that's true only with -std. */ |
| 6231 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6232 | |
| 6233 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6234 | inside strings and character constants. */ |
| 6235 | #define FOO(x) 'x' |
| 6236 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6237 | |
| 6238 | int test (int i, double x); |
| 6239 | struct s1 {int (*f) (int a);}; |
| 6240 | struct s2 {int (*f) (double a);}; |
| 6241 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6242 | int argc; |
| 6243 | char **argv; |
| 6244 | int |
| 6245 | main () |
| 6246 | { |
| 6247 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6248 | ; |
| 6249 | return 0; |
| 6250 | } |
| 6251 | _ACEOF |
| 6252 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6253 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6254 | do |
| 6255 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6256 | rm -f conftest.$ac_objext |
| 6257 | if { (ac_try="$ac_compile" |
| 6258 | case "(($ac_try" in |
| 6259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6260 | *) ac_try_echo=$ac_try;; |
| 6261 | esac |
| 6262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6263 | (eval "$ac_compile") 2>conftest.er1 |
| 6264 | ac_status=$? |
| 6265 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6266 | rm -f conftest.er1 |
| 6267 | cat conftest.err >&5 |
| 6268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6269 | (exit $ac_status); } && |
| 6270 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6271 | { (case "(($ac_try" in |
| 6272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6273 | *) ac_try_echo=$ac_try;; |
| 6274 | esac |
| 6275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6276 | (eval "$ac_try") 2>&5 |
| 6277 | ac_status=$? |
| 6278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6279 | (exit $ac_status); }; } && |
| 6280 | { ac_try='test -s conftest.$ac_objext' |
| 6281 | { (case "(($ac_try" in |
| 6282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6283 | *) ac_try_echo=$ac_try;; |
| 6284 | esac |
| 6285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6286 | (eval "$ac_try") 2>&5 |
| 6287 | ac_status=$? |
| 6288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6289 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6290 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6291 | else |
| 6292 | echo "$as_me: failed program was:" >&5 |
| 6293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6294 | |
| 6295 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6296 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6297 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6298 | rm -f core conftest.err conftest.$ac_objext |
| 6299 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6300 | done |
| 6301 | rm -f conftest.$ac_ext |
| 6302 | CC=$ac_save_CC |
| 6303 | |
| 6304 | fi |
| 6305 | # AC_CACHE_VAL |
| 6306 | case "x$ac_cv_prog_cc_c89" in |
| 6307 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6308 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6309 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6310 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6311 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6312 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6313 | *) |
| 6314 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6315 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6316 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6317 | esac |
| 6318 | |
| 6319 | |
| 6320 | ac_ext=c |
| 6321 | ac_cpp='$CPP $CPPFLAGS' |
| 6322 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6323 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6324 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6325 | |
| 6326 | ac_ext=cpp |
| 6327 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6328 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6329 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6330 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6331 | if test -z "$CXX"; then |
| 6332 | if test -n "$CCC"; then |
| 6333 | CXX=$CCC |
| 6334 | else |
| 6335 | if test -n "$ac_tool_prefix"; then |
| 6336 | for ac_prog in g++ |
| 6337 | do |
| 6338 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6339 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6340 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6341 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6342 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 6343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6344 | else |
| 6345 | if test -n "$CXX"; then |
| 6346 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6347 | else |
| 6348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6349 | for as_dir in $PATH |
| 6350 | do |
| 6351 | IFS=$as_save_IFS |
| 6352 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6353 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6354 | 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] | 6355 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6356 | 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] | 6357 | break 2 |
| 6358 | fi |
| 6359 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6360 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6361 | IFS=$as_save_IFS |
| 6362 | |
| 6363 | fi |
| 6364 | fi |
| 6365 | CXX=$ac_cv_prog_CXX |
| 6366 | if test -n "$CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6367 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6368 | echo "${ECHO_T}$CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6369 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6370 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6371 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6372 | fi |
| 6373 | |
| 6374 | |
| 6375 | test -n "$CXX" && break |
| 6376 | done |
| 6377 | fi |
| 6378 | if test -z "$CXX"; then |
| 6379 | ac_ct_CXX=$CXX |
| 6380 | for ac_prog in g++ |
| 6381 | do |
| 6382 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6383 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6384 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6385 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6386 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6388 | else |
| 6389 | if test -n "$ac_ct_CXX"; then |
| 6390 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6391 | else |
| 6392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6393 | for as_dir in $PATH |
| 6394 | do |
| 6395 | IFS=$as_save_IFS |
| 6396 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6397 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6398 | 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] | 6399 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6400 | 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] | 6401 | break 2 |
| 6402 | fi |
| 6403 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6404 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6405 | IFS=$as_save_IFS |
| 6406 | |
| 6407 | fi |
| 6408 | fi |
| 6409 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6410 | if test -n "$ac_ct_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6411 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6412 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6413 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6414 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6415 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6416 | fi |
| 6417 | |
| 6418 | |
| 6419 | test -n "$ac_ct_CXX" && break |
| 6420 | done |
| 6421 | |
| 6422 | if test "x$ac_ct_CXX" = x; then |
| 6423 | CXX="g++" |
| 6424 | else |
| 6425 | case $cross_compiling:$ac_tool_warned in |
| 6426 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6427 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6428 | whose name does not start with the host triplet. If you think this |
| 6429 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6430 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6431 | whose name does not start with the host triplet. If you think this |
| 6432 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6433 | ac_tool_warned=yes ;; |
| 6434 | esac |
| 6435 | CXX=$ac_ct_CXX |
| 6436 | fi |
| 6437 | fi |
| 6438 | |
| 6439 | fi |
| 6440 | fi |
| 6441 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6442 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6443 | ac_compiler=`set X $ac_compile; echo $2` |
| 6444 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6445 | case "(($ac_try" in |
| 6446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6447 | *) ac_try_echo=$ac_try;; |
| 6448 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6450 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6451 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6453 | (exit $ac_status); } |
| 6454 | { (ac_try="$ac_compiler -v >&5" |
| 6455 | case "(($ac_try" in |
| 6456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6457 | *) ac_try_echo=$ac_try;; |
| 6458 | esac |
| 6459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6460 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6461 | ac_status=$? |
| 6462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6463 | (exit $ac_status); } |
| 6464 | { (ac_try="$ac_compiler -V >&5" |
| 6465 | case "(($ac_try" in |
| 6466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6467 | *) ac_try_echo=$ac_try;; |
| 6468 | esac |
| 6469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6470 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6471 | ac_status=$? |
| 6472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6473 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6474 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6475 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6476 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6477 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6479 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6480 | cat >conftest.$ac_ext <<_ACEOF |
| 6481 | /* confdefs.h. */ |
| 6482 | _ACEOF |
| 6483 | cat confdefs.h >>conftest.$ac_ext |
| 6484 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6485 | /* end confdefs.h. */ |
| 6486 | |
| 6487 | int |
| 6488 | main () |
| 6489 | { |
| 6490 | #ifndef __GNUC__ |
| 6491 | choke me |
| 6492 | #endif |
| 6493 | |
| 6494 | ; |
| 6495 | return 0; |
| 6496 | } |
| 6497 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6498 | rm -f conftest.$ac_objext |
| 6499 | if { (ac_try="$ac_compile" |
| 6500 | case "(($ac_try" in |
| 6501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6502 | *) ac_try_echo=$ac_try;; |
| 6503 | esac |
| 6504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6505 | (eval "$ac_compile") 2>conftest.er1 |
| 6506 | ac_status=$? |
| 6507 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6508 | rm -f conftest.er1 |
| 6509 | cat conftest.err >&5 |
| 6510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6511 | (exit $ac_status); } && |
| 6512 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6513 | { (case "(($ac_try" in |
| 6514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6515 | *) ac_try_echo=$ac_try;; |
| 6516 | esac |
| 6517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6518 | (eval "$ac_try") 2>&5 |
| 6519 | ac_status=$? |
| 6520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6521 | (exit $ac_status); }; } && |
| 6522 | { ac_try='test -s conftest.$ac_objext' |
| 6523 | { (case "(($ac_try" in |
| 6524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6525 | *) ac_try_echo=$ac_try;; |
| 6526 | esac |
| 6527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6528 | (eval "$ac_try") 2>&5 |
| 6529 | ac_status=$? |
| 6530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6531 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6532 | ac_compiler_gnu=yes |
| 6533 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6534 | echo "$as_me: failed program was:" >&5 |
| 6535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6536 | |
| 6537 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6538 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6539 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6541 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6542 | |
| 6543 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6544 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6545 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6546 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6547 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6548 | ac_save_CXXFLAGS=$CXXFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6549 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6550 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6551 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6553 | else |
| 6554 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6555 | ac_cxx_werror_flag=yes |
| 6556 | ac_cv_prog_cxx_g=no |
| 6557 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6558 | cat >conftest.$ac_ext <<_ACEOF |
| 6559 | /* confdefs.h. */ |
| 6560 | _ACEOF |
| 6561 | cat confdefs.h >>conftest.$ac_ext |
| 6562 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6563 | /* end confdefs.h. */ |
| 6564 | |
| 6565 | int |
| 6566 | main () |
| 6567 | { |
| 6568 | |
| 6569 | ; |
| 6570 | return 0; |
| 6571 | } |
| 6572 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6573 | rm -f conftest.$ac_objext |
| 6574 | if { (ac_try="$ac_compile" |
| 6575 | case "(($ac_try" in |
| 6576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6577 | *) ac_try_echo=$ac_try;; |
| 6578 | esac |
| 6579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6580 | (eval "$ac_compile") 2>conftest.er1 |
| 6581 | ac_status=$? |
| 6582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6583 | rm -f conftest.er1 |
| 6584 | cat conftest.err >&5 |
| 6585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6586 | (exit $ac_status); } && |
| 6587 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6588 | { (case "(($ac_try" in |
| 6589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6590 | *) ac_try_echo=$ac_try;; |
| 6591 | esac |
| 6592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6593 | (eval "$ac_try") 2>&5 |
| 6594 | ac_status=$? |
| 6595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6596 | (exit $ac_status); }; } && |
| 6597 | { ac_try='test -s conftest.$ac_objext' |
| 6598 | { (case "(($ac_try" in |
| 6599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6600 | *) ac_try_echo=$ac_try;; |
| 6601 | esac |
| 6602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6603 | (eval "$ac_try") 2>&5 |
| 6604 | ac_status=$? |
| 6605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6606 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6607 | ac_cv_prog_cxx_g=yes |
| 6608 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6609 | echo "$as_me: failed program was:" >&5 |
| 6610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6611 | |
| 6612 | CXXFLAGS="" |
| 6613 | cat >conftest.$ac_ext <<_ACEOF |
| 6614 | /* confdefs.h. */ |
| 6615 | _ACEOF |
| 6616 | cat confdefs.h >>conftest.$ac_ext |
| 6617 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6618 | /* end confdefs.h. */ |
| 6619 | |
| 6620 | int |
| 6621 | main () |
| 6622 | { |
| 6623 | |
| 6624 | ; |
| 6625 | return 0; |
| 6626 | } |
| 6627 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6628 | rm -f conftest.$ac_objext |
| 6629 | if { (ac_try="$ac_compile" |
| 6630 | case "(($ac_try" in |
| 6631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6632 | *) ac_try_echo=$ac_try;; |
| 6633 | esac |
| 6634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6635 | (eval "$ac_compile") 2>conftest.er1 |
| 6636 | ac_status=$? |
| 6637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6638 | rm -f conftest.er1 |
| 6639 | cat conftest.err >&5 |
| 6640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6641 | (exit $ac_status); } && |
| 6642 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6643 | { (case "(($ac_try" in |
| 6644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6645 | *) ac_try_echo=$ac_try;; |
| 6646 | esac |
| 6647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6648 | (eval "$ac_try") 2>&5 |
| 6649 | ac_status=$? |
| 6650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6651 | (exit $ac_status); }; } && |
| 6652 | { ac_try='test -s conftest.$ac_objext' |
| 6653 | { (case "(($ac_try" in |
| 6654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6655 | *) ac_try_echo=$ac_try;; |
| 6656 | esac |
| 6657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6658 | (eval "$ac_try") 2>&5 |
| 6659 | ac_status=$? |
| 6660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6661 | (exit $ac_status); }; }; then |
| 6662 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6663 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6664 | echo "$as_me: failed program was:" >&5 |
| 6665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6666 | |
| 6667 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6668 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6669 | cat >conftest.$ac_ext <<_ACEOF |
| 6670 | /* confdefs.h. */ |
| 6671 | _ACEOF |
| 6672 | cat confdefs.h >>conftest.$ac_ext |
| 6673 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6674 | /* end confdefs.h. */ |
| 6675 | |
| 6676 | int |
| 6677 | main () |
| 6678 | { |
| 6679 | |
| 6680 | ; |
| 6681 | return 0; |
| 6682 | } |
| 6683 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6684 | rm -f conftest.$ac_objext |
| 6685 | if { (ac_try="$ac_compile" |
| 6686 | case "(($ac_try" in |
| 6687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6688 | *) ac_try_echo=$ac_try;; |
| 6689 | esac |
| 6690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6691 | (eval "$ac_compile") 2>conftest.er1 |
| 6692 | ac_status=$? |
| 6693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6694 | rm -f conftest.er1 |
| 6695 | cat conftest.err >&5 |
| 6696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6697 | (exit $ac_status); } && |
| 6698 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6699 | { (case "(($ac_try" in |
| 6700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6701 | *) ac_try_echo=$ac_try;; |
| 6702 | esac |
| 6703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6704 | (eval "$ac_try") 2>&5 |
| 6705 | ac_status=$? |
| 6706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6707 | (exit $ac_status); }; } && |
| 6708 | { ac_try='test -s conftest.$ac_objext' |
| 6709 | { (case "(($ac_try" in |
| 6710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6711 | *) ac_try_echo=$ac_try;; |
| 6712 | esac |
| 6713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6714 | (eval "$ac_try") 2>&5 |
| 6715 | ac_status=$? |
| 6716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6717 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6718 | ac_cv_prog_cxx_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6719 | else |
| 6720 | echo "$as_me: failed program was:" >&5 |
| 6721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6722 | |
| 6723 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6724 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6725 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6727 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6728 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6730 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6731 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6733 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6734 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6735 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6736 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6737 | if test "$ac_test_CXXFLAGS" = set; then |
| 6738 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6739 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6740 | if test "$GXX" = yes; then |
| 6741 | CXXFLAGS="-g -O2" |
| 6742 | else |
| 6743 | CXXFLAGS="-g" |
| 6744 | fi |
| 6745 | else |
| 6746 | if test "$GXX" = yes; then |
| 6747 | CXXFLAGS="-O2" |
| 6748 | else |
| 6749 | CXXFLAGS= |
| 6750 | fi |
| 6751 | fi |
| 6752 | ac_ext=c |
| 6753 | ac_cpp='$CPP $CPPFLAGS' |
| 6754 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6755 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6756 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6757 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6758 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6759 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6760 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6761 | if test "${lt_cv_path_NM+set}" = set; then |
| 6762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6763 | else |
| 6764 | if test -n "$NM"; then |
| 6765 | # Let the user override the test. |
| 6766 | lt_cv_path_NM="$NM" |
| 6767 | else |
| 6768 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6769 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6770 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6771 | fi |
| 6772 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6773 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6774 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6775 | IFS="$lt_save_ifs" |
| 6776 | test -z "$ac_dir" && ac_dir=. |
| 6777 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6778 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6779 | # Check to see if the nm accepts a BSD-compat flag. |
| 6780 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6781 | # nm: unknown option "B" ignored |
| 6782 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6783 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6784 | */dev/null* | *'Invalid file or object type'*) |
| 6785 | lt_cv_path_NM="$tmp_nm -B" |
| 6786 | break |
| 6787 | ;; |
| 6788 | *) |
| 6789 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6790 | */dev/null*) |
| 6791 | lt_cv_path_NM="$tmp_nm -p" |
| 6792 | break |
| 6793 | ;; |
| 6794 | *) |
| 6795 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6796 | continue # so that we can try to find one that supports BSD flags |
| 6797 | ;; |
| 6798 | esac |
| 6799 | ;; |
| 6800 | esac |
| 6801 | fi |
| 6802 | done |
| 6803 | IFS="$lt_save_ifs" |
| 6804 | done |
| 6805 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6806 | fi |
| 6807 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6808 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6809 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6810 | NM="$lt_cv_path_NM" |
| 6811 | |
| 6812 | |
| 6813 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6814 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6815 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6816 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6818 | else |
| 6819 | llvm_cv_gnu_make_command='' |
| 6820 | for a in "$MAKE" make gmake gnumake ; do |
| 6821 | if test -z "$a" ; then continue ; fi ; |
| 6822 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6823 | then |
| 6824 | llvm_cv_gnu_make_command=$a ; |
| 6825 | break; |
| 6826 | fi |
| 6827 | done |
| 6828 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6829 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6830 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6831 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6832 | ifGNUmake='' ; |
| 6833 | else |
| 6834 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6835 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6836 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6837 | fi |
| 6838 | |
| 6839 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6840 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6841 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6842 | LN_S=$as_ln_s |
| 6843 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6844 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6845 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6846 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6847 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6848 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6849 | fi |
| 6850 | |
| 6851 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6852 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6853 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6855 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6857 | else |
| 6858 | case $CMP in |
| 6859 | [\\/]* | ?:[\\/]*) |
| 6860 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6861 | ;; |
| 6862 | *) |
| 6863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6864 | for as_dir in $PATH |
| 6865 | do |
| 6866 | IFS=$as_save_IFS |
| 6867 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6868 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6869 | 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] | 6870 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6871 | 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] | 6872 | break 2 |
| 6873 | fi |
| 6874 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6875 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6876 | IFS=$as_save_IFS |
| 6877 | |
| 6878 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6879 | ;; |
| 6880 | esac |
| 6881 | fi |
| 6882 | CMP=$ac_cv_path_CMP |
| 6883 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6884 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6885 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6886 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6887 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6888 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6889 | fi |
| 6890 | |
| 6891 | |
| 6892 | # Extract the first word of "cp", so it can be a program name with args. |
| 6893 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6894 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6895 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6896 | if test "${ac_cv_path_CP+set}" = set; then |
| 6897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6898 | else |
| 6899 | case $CP in |
| 6900 | [\\/]* | ?:[\\/]*) |
| 6901 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6902 | ;; |
| 6903 | *) |
| 6904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6905 | for as_dir in $PATH |
| 6906 | do |
| 6907 | IFS=$as_save_IFS |
| 6908 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6909 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6910 | 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] | 6911 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6912 | 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] | 6913 | break 2 |
| 6914 | fi |
| 6915 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6916 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6917 | IFS=$as_save_IFS |
| 6918 | |
| 6919 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6920 | ;; |
| 6921 | esac |
| 6922 | fi |
| 6923 | CP=$ac_cv_path_CP |
| 6924 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6925 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6926 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6927 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6928 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6929 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6930 | fi |
| 6931 | |
| 6932 | |
| 6933 | # Extract the first word of "date", so it can be a program name with args. |
| 6934 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6935 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6936 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6937 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6939 | else |
| 6940 | case $DATE in |
| 6941 | [\\/]* | ?:[\\/]*) |
| 6942 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6943 | ;; |
| 6944 | *) |
| 6945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6946 | for as_dir in $PATH |
| 6947 | do |
| 6948 | IFS=$as_save_IFS |
| 6949 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6950 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6951 | 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] | 6952 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6953 | 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] | 6954 | break 2 |
| 6955 | fi |
| 6956 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6957 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6958 | IFS=$as_save_IFS |
| 6959 | |
| 6960 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6961 | ;; |
| 6962 | esac |
| 6963 | fi |
| 6964 | DATE=$ac_cv_path_DATE |
| 6965 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6966 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6967 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6968 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6969 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6970 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6971 | fi |
| 6972 | |
| 6973 | |
| 6974 | # Extract the first word of "find", so it can be a program name with args. |
| 6975 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6976 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6977 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6978 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6980 | else |
| 6981 | case $FIND in |
| 6982 | [\\/]* | ?:[\\/]*) |
| 6983 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6984 | ;; |
| 6985 | *) |
| 6986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6987 | for as_dir in $PATH |
| 6988 | do |
| 6989 | IFS=$as_save_IFS |
| 6990 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6991 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6992 | 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] | 6993 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6994 | 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] | 6995 | break 2 |
| 6996 | fi |
| 6997 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6998 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6999 | IFS=$as_save_IFS |
| 7000 | |
| 7001 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 7002 | ;; |
| 7003 | esac |
| 7004 | fi |
| 7005 | FIND=$ac_cv_path_FIND |
| 7006 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7007 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 7008 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7009 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7010 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7011 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7012 | fi |
| 7013 | |
| 7014 | |
| 7015 | # Extract the first word of "grep", so it can be a program name with args. |
| 7016 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7017 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7018 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7019 | if test "${ac_cv_path_GREP+set}" = set; then |
| 7020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7021 | else |
| 7022 | case $GREP in |
| 7023 | [\\/]* | ?:[\\/]*) |
| 7024 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 7025 | ;; |
| 7026 | *) |
| 7027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7028 | for as_dir in $PATH |
| 7029 | do |
| 7030 | IFS=$as_save_IFS |
| 7031 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7032 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7033 | 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] | 7034 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7035 | 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] | 7036 | break 2 |
| 7037 | fi |
| 7038 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7039 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7040 | IFS=$as_save_IFS |
| 7041 | |
| 7042 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 7043 | ;; |
| 7044 | esac |
| 7045 | fi |
| 7046 | GREP=$ac_cv_path_GREP |
| 7047 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7048 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 7049 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7050 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7051 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7052 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7053 | fi |
| 7054 | |
| 7055 | |
| 7056 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 7057 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7058 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7059 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7060 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 7061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7062 | else |
| 7063 | case $MKDIR in |
| 7064 | [\\/]* | ?:[\\/]*) |
| 7065 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 7066 | ;; |
| 7067 | *) |
| 7068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7069 | for as_dir in $PATH |
| 7070 | do |
| 7071 | IFS=$as_save_IFS |
| 7072 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7073 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7074 | 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] | 7075 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7076 | 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] | 7077 | break 2 |
| 7078 | fi |
| 7079 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7080 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7081 | IFS=$as_save_IFS |
| 7082 | |
| 7083 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 7084 | ;; |
| 7085 | esac |
| 7086 | fi |
| 7087 | MKDIR=$ac_cv_path_MKDIR |
| 7088 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7089 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 7090 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7091 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7092 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7093 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7094 | fi |
| 7095 | |
| 7096 | |
| 7097 | # Extract the first word of "mv", so it can be a program name with args. |
| 7098 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7099 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7100 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7101 | if test "${ac_cv_path_MV+set}" = set; then |
| 7102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7103 | else |
| 7104 | case $MV in |
| 7105 | [\\/]* | ?:[\\/]*) |
| 7106 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 7107 | ;; |
| 7108 | *) |
| 7109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7110 | for as_dir in $PATH |
| 7111 | do |
| 7112 | IFS=$as_save_IFS |
| 7113 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7114 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7115 | 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] | 7116 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7117 | 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] | 7118 | break 2 |
| 7119 | fi |
| 7120 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7121 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7122 | IFS=$as_save_IFS |
| 7123 | |
| 7124 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 7125 | ;; |
| 7126 | esac |
| 7127 | fi |
| 7128 | MV=$ac_cv_path_MV |
| 7129 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7130 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 7131 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7132 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7133 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7134 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7135 | fi |
| 7136 | |
| 7137 | |
| 7138 | if test -n "$ac_tool_prefix"; then |
| 7139 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7140 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7141 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7142 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7143 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 7144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7145 | else |
| 7146 | if test -n "$RANLIB"; then |
| 7147 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7148 | else |
| 7149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7150 | for as_dir in $PATH |
| 7151 | do |
| 7152 | IFS=$as_save_IFS |
| 7153 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7154 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7155 | 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] | 7156 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7157 | 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] | 7158 | break 2 |
| 7159 | fi |
| 7160 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7161 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7162 | IFS=$as_save_IFS |
| 7163 | |
| 7164 | fi |
| 7165 | fi |
| 7166 | RANLIB=$ac_cv_prog_RANLIB |
| 7167 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7168 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 7169 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7170 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7171 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7172 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7173 | fi |
| 7174 | |
| 7175 | |
| 7176 | fi |
| 7177 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7178 | ac_ct_RANLIB=$RANLIB |
| 7179 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7180 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7181 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7182 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7183 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 7184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7185 | else |
| 7186 | if test -n "$ac_ct_RANLIB"; then |
| 7187 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7188 | else |
| 7189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7190 | for as_dir in $PATH |
| 7191 | do |
| 7192 | IFS=$as_save_IFS |
| 7193 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7194 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7195 | 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] | 7196 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7197 | 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] | 7198 | break 2 |
| 7199 | fi |
| 7200 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7201 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7202 | IFS=$as_save_IFS |
| 7203 | |
| 7204 | fi |
| 7205 | fi |
| 7206 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7207 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7208 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7209 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7210 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7211 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7212 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7213 | fi |
| 7214 | |
| 7215 | if test "x$ac_ct_RANLIB" = x; then |
| 7216 | RANLIB=":" |
| 7217 | else |
| 7218 | case $cross_compiling:$ac_tool_warned in |
| 7219 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7220 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7221 | whose name does not start with the host triplet. If you think this |
| 7222 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7223 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7224 | whose name does not start with the host triplet. If you think this |
| 7225 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7226 | ac_tool_warned=yes ;; |
| 7227 | esac |
| 7228 | RANLIB=$ac_ct_RANLIB |
| 7229 | fi |
| 7230 | else |
| 7231 | RANLIB="$ac_cv_prog_RANLIB" |
| 7232 | fi |
| 7233 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7234 | if test -n "$ac_tool_prefix"; then |
| 7235 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 7236 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7237 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7238 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7239 | if test "${ac_cv_prog_AR+set}" = set; then |
| 7240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7241 | else |
| 7242 | if test -n "$AR"; then |
| 7243 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7244 | else |
| 7245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7246 | for as_dir in $PATH |
| 7247 | do |
| 7248 | IFS=$as_save_IFS |
| 7249 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7250 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7251 | 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] | 7252 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7253 | 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] | 7254 | break 2 |
| 7255 | fi |
| 7256 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7257 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7258 | IFS=$as_save_IFS |
| 7259 | |
| 7260 | fi |
| 7261 | fi |
| 7262 | AR=$ac_cv_prog_AR |
| 7263 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7264 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 7265 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7266 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7267 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7268 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7269 | fi |
| 7270 | |
| 7271 | |
| 7272 | fi |
| 7273 | if test -z "$ac_cv_prog_AR"; then |
| 7274 | ac_ct_AR=$AR |
| 7275 | # Extract the first word of "ar", so it can be a program name with args. |
| 7276 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7277 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7278 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7279 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 7280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7281 | else |
| 7282 | if test -n "$ac_ct_AR"; then |
| 7283 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7284 | else |
| 7285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7286 | for as_dir in $PATH |
| 7287 | do |
| 7288 | IFS=$as_save_IFS |
| 7289 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7290 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7291 | 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] | 7292 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7293 | 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] | 7294 | break 2 |
| 7295 | fi |
| 7296 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7297 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7298 | IFS=$as_save_IFS |
| 7299 | |
| 7300 | fi |
| 7301 | fi |
| 7302 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7303 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7304 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 7305 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7306 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7307 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7308 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7309 | fi |
| 7310 | |
| 7311 | if test "x$ac_ct_AR" = x; then |
| 7312 | AR="false" |
| 7313 | else |
| 7314 | case $cross_compiling:$ac_tool_warned in |
| 7315 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7316 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7317 | whose name does not start with the host triplet. If you think this |
| 7318 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7319 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7320 | whose name does not start with the host triplet. If you think this |
| 7321 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7322 | ac_tool_warned=yes ;; |
| 7323 | esac |
| 7324 | AR=$ac_ct_AR |
| 7325 | fi |
| 7326 | else |
| 7327 | AR="$ac_cv_prog_AR" |
| 7328 | fi |
| 7329 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7330 | # Extract the first word of "rm", so it can be a program name with args. |
| 7331 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7332 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7333 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7334 | if test "${ac_cv_path_RM+set}" = set; then |
| 7335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7336 | else |
| 7337 | case $RM in |
| 7338 | [\\/]* | ?:[\\/]*) |
| 7339 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7340 | ;; |
| 7341 | *) |
| 7342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7343 | for as_dir in $PATH |
| 7344 | do |
| 7345 | IFS=$as_save_IFS |
| 7346 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7347 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7348 | 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] | 7349 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7350 | 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] | 7351 | break 2 |
| 7352 | fi |
| 7353 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7354 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7355 | IFS=$as_save_IFS |
| 7356 | |
| 7357 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7358 | ;; |
| 7359 | esac |
| 7360 | fi |
| 7361 | RM=$ac_cv_path_RM |
| 7362 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7363 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7364 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7365 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7366 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7367 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7368 | fi |
| 7369 | |
| 7370 | |
| 7371 | # Extract the first word of "sed", so it can be a program name with args. |
| 7372 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7373 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7374 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7375 | if test "${ac_cv_path_SED+set}" = set; then |
| 7376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7377 | else |
| 7378 | case $SED in |
| 7379 | [\\/]* | ?:[\\/]*) |
| 7380 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7381 | ;; |
| 7382 | *) |
| 7383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7384 | for as_dir in $PATH |
| 7385 | do |
| 7386 | IFS=$as_save_IFS |
| 7387 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7388 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7389 | 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] | 7390 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7391 | 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] | 7392 | break 2 |
| 7393 | fi |
| 7394 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7395 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7396 | IFS=$as_save_IFS |
| 7397 | |
| 7398 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7399 | ;; |
| 7400 | esac |
| 7401 | fi |
| 7402 | SED=$ac_cv_path_SED |
| 7403 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7404 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7405 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7406 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7407 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7408 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7409 | fi |
| 7410 | |
| 7411 | |
| 7412 | # Extract the first word of "tar", so it can be a program name with args. |
| 7413 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7414 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7415 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7416 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7418 | else |
| 7419 | case $TAR in |
| 7420 | [\\/]* | ?:[\\/]*) |
| 7421 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7422 | ;; |
| 7423 | *) |
| 7424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7425 | for as_dir in $PATH |
| 7426 | do |
| 7427 | IFS=$as_save_IFS |
| 7428 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7429 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7430 | 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] | 7431 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7432 | 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] | 7433 | break 2 |
| 7434 | fi |
| 7435 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7436 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7437 | IFS=$as_save_IFS |
| 7438 | |
| 7439 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7440 | ;; |
| 7441 | esac |
| 7442 | fi |
| 7443 | TAR=$ac_cv_path_TAR |
| 7444 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7445 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7446 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7447 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7448 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7449 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7450 | fi |
| 7451 | |
| 7452 | |
| 7453 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7454 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7455 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7456 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7457 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7459 | else |
| 7460 | case $BINPWD in |
| 7461 | [\\/]* | ?:[\\/]*) |
| 7462 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7463 | ;; |
| 7464 | *) |
| 7465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7466 | for as_dir in $PATH |
| 7467 | do |
| 7468 | IFS=$as_save_IFS |
| 7469 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7470 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7471 | 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] | 7472 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7473 | 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] | 7474 | break 2 |
| 7475 | fi |
| 7476 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7477 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7478 | IFS=$as_save_IFS |
| 7479 | |
| 7480 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7481 | ;; |
| 7482 | esac |
| 7483 | fi |
| 7484 | BINPWD=$ac_cv_path_BINPWD |
| 7485 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7486 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7487 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7488 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7489 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7490 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7491 | fi |
| 7492 | |
| 7493 | |
| 7494 | |
| 7495 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7496 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7497 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7499 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7501 | else |
| 7502 | case $GRAPHVIZ in |
| 7503 | [\\/]* | ?:[\\/]*) |
| 7504 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7505 | ;; |
| 7506 | *) |
| 7507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7508 | for as_dir in $PATH |
| 7509 | do |
| 7510 | IFS=$as_save_IFS |
| 7511 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7512 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7513 | 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] | 7514 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7515 | 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] | 7516 | break 2 |
| 7517 | fi |
| 7518 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7519 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7520 | IFS=$as_save_IFS |
| 7521 | |
| 7522 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7523 | ;; |
| 7524 | esac |
| 7525 | fi |
| 7526 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7527 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7528 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7529 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7530 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7531 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7532 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7533 | fi |
| 7534 | |
| 7535 | |
| 7536 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7537 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7538 | cat >>confdefs.h <<\_ACEOF |
| 7539 | #define HAVE_GRAPHVIZ 1 |
| 7540 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7541 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7542 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7543 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7544 | fi |
| 7545 | |
| 7546 | cat >>confdefs.h <<_ACEOF |
| 7547 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7548 | _ACEOF |
| 7549 | |
| 7550 | fi |
| 7551 | # Extract the first word of "dot", so it can be a program name with args. |
| 7552 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7553 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7555 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7557 | else |
| 7558 | case $DOT in |
| 7559 | [\\/]* | ?:[\\/]*) |
| 7560 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7561 | ;; |
| 7562 | *) |
| 7563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7564 | for as_dir in $PATH |
| 7565 | do |
| 7566 | IFS=$as_save_IFS |
| 7567 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7568 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7569 | 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] | 7570 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7571 | 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] | 7572 | break 2 |
| 7573 | fi |
| 7574 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7575 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7576 | IFS=$as_save_IFS |
| 7577 | |
| 7578 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7579 | ;; |
| 7580 | esac |
| 7581 | fi |
| 7582 | DOT=$ac_cv_path_DOT |
| 7583 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7584 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7585 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7586 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7587 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7588 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7589 | fi |
| 7590 | |
| 7591 | |
| 7592 | if test "$DOT" != "echo dot" ; then |
| 7593 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7594 | cat >>confdefs.h <<\_ACEOF |
| 7595 | #define HAVE_DOT 1 |
| 7596 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7597 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7598 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7599 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7600 | fi |
| 7601 | |
| 7602 | cat >>confdefs.h <<_ACEOF |
| 7603 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7604 | _ACEOF |
| 7605 | |
| 7606 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7607 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7608 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7609 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7611 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7613 | else |
| 7614 | case $FDP in |
| 7615 | [\\/]* | ?:[\\/]*) |
| 7616 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7617 | ;; |
| 7618 | *) |
| 7619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7620 | for as_dir in $PATH |
| 7621 | do |
| 7622 | IFS=$as_save_IFS |
| 7623 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7624 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7625 | 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] | 7626 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7627 | 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] | 7628 | break 2 |
| 7629 | fi |
| 7630 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7631 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7632 | IFS=$as_save_IFS |
| 7633 | |
| 7634 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7635 | ;; |
| 7636 | esac |
| 7637 | fi |
| 7638 | FDP=$ac_cv_path_FDP |
| 7639 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7640 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7641 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7642 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7643 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7644 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7645 | fi |
| 7646 | |
| 7647 | |
| 7648 | if test "$FDP" != "echo fdp" ; then |
| 7649 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7650 | cat >>confdefs.h <<\_ACEOF |
| 7651 | #define HAVE_FDP 1 |
| 7652 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7653 | |
| 7654 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7655 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7656 | fi |
| 7657 | |
| 7658 | cat >>confdefs.h <<_ACEOF |
| 7659 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7660 | _ACEOF |
| 7661 | |
| 7662 | fi |
| 7663 | # Extract the first word of "neato", so it can be a program name with args. |
| 7664 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7665 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7667 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7669 | else |
| 7670 | case $NEATO in |
| 7671 | [\\/]* | ?:[\\/]*) |
| 7672 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7673 | ;; |
| 7674 | *) |
| 7675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7676 | for as_dir in $PATH |
| 7677 | do |
| 7678 | IFS=$as_save_IFS |
| 7679 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7680 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7681 | 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] | 7682 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7683 | 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] | 7684 | break 2 |
| 7685 | fi |
| 7686 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7687 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7688 | IFS=$as_save_IFS |
| 7689 | |
| 7690 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7691 | ;; |
| 7692 | esac |
| 7693 | fi |
| 7694 | NEATO=$ac_cv_path_NEATO |
| 7695 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7696 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7697 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7698 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7699 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7700 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7701 | fi |
| 7702 | |
| 7703 | |
| 7704 | if test "$NEATO" != "echo neato" ; then |
| 7705 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7706 | cat >>confdefs.h <<\_ACEOF |
| 7707 | #define HAVE_NEATO 1 |
| 7708 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7709 | |
| 7710 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7711 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7712 | fi |
| 7713 | |
| 7714 | cat >>confdefs.h <<_ACEOF |
| 7715 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7716 | _ACEOF |
| 7717 | |
| 7718 | fi |
| 7719 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7720 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7721 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7722 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7723 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7725 | else |
| 7726 | case $TWOPI in |
| 7727 | [\\/]* | ?:[\\/]*) |
| 7728 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7729 | ;; |
| 7730 | *) |
| 7731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7732 | for as_dir in $PATH |
| 7733 | do |
| 7734 | IFS=$as_save_IFS |
| 7735 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7736 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7737 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7738 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7739 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7740 | break 2 |
| 7741 | fi |
| 7742 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7743 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7744 | IFS=$as_save_IFS |
| 7745 | |
| 7746 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7747 | ;; |
| 7748 | esac |
| 7749 | fi |
| 7750 | TWOPI=$ac_cv_path_TWOPI |
| 7751 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7752 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7753 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7754 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7755 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7756 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7757 | fi |
| 7758 | |
| 7759 | |
| 7760 | if test "$TWOPI" != "echo twopi" ; then |
| 7761 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7762 | cat >>confdefs.h <<\_ACEOF |
| 7763 | #define HAVE_TWOPI 1 |
| 7764 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7765 | |
| 7766 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7767 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7768 | fi |
| 7769 | |
| 7770 | cat >>confdefs.h <<_ACEOF |
| 7771 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7772 | _ACEOF |
| 7773 | |
| 7774 | fi |
| 7775 | # Extract the first word of "circo", so it can be a program name with args. |
| 7776 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7777 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7778 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7779 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 7780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7781 | else |
| 7782 | case $CIRCO in |
| 7783 | [\\/]* | ?:[\\/]*) |
| 7784 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 7785 | ;; |
| 7786 | *) |
| 7787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7788 | for as_dir in $PATH |
| 7789 | do |
| 7790 | IFS=$as_save_IFS |
| 7791 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7792 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7793 | 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] | 7794 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7795 | 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] | 7796 | break 2 |
| 7797 | fi |
| 7798 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7799 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7800 | IFS=$as_save_IFS |
| 7801 | |
| 7802 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7803 | ;; |
| 7804 | esac |
| 7805 | fi |
| 7806 | CIRCO=$ac_cv_path_CIRCO |
| 7807 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7808 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7809 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7810 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7811 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7812 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7813 | fi |
| 7814 | |
| 7815 | |
| 7816 | if test "$CIRCO" != "echo circo" ; then |
| 7817 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7818 | cat >>confdefs.h <<\_ACEOF |
| 7819 | #define HAVE_CIRCO 1 |
| 7820 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7821 | |
| 7822 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7823 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7824 | fi |
| 7825 | |
| 7826 | cat >>confdefs.h <<_ACEOF |
| 7827 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7828 | _ACEOF |
| 7829 | |
| 7830 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7831 | for ac_prog in gv gsview32 |
| 7832 | do |
| 7833 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7834 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7835 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7836 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7837 | if test "${ac_cv_path_GV+set}" = set; then |
| 7838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7839 | else |
| 7840 | case $GV in |
| 7841 | [\\/]* | ?:[\\/]*) |
| 7842 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7843 | ;; |
| 7844 | *) |
| 7845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7846 | for as_dir in $PATH |
| 7847 | do |
| 7848 | IFS=$as_save_IFS |
| 7849 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7850 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7851 | 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] | 7852 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7853 | 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] | 7854 | break 2 |
| 7855 | fi |
| 7856 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7857 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7858 | IFS=$as_save_IFS |
| 7859 | |
| 7860 | ;; |
| 7861 | esac |
| 7862 | fi |
| 7863 | GV=$ac_cv_path_GV |
| 7864 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7865 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7866 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7867 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7868 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7869 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7870 | fi |
| 7871 | |
| 7872 | |
| 7873 | test -n "$GV" && break |
| 7874 | done |
| 7875 | test -n "$GV" || GV="echo gv" |
| 7876 | |
| 7877 | if test "$GV" != "echo gv" ; then |
| 7878 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7879 | cat >>confdefs.h <<\_ACEOF |
| 7880 | #define HAVE_GV 1 |
| 7881 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7882 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7883 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7884 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7885 | fi |
| 7886 | |
| 7887 | cat >>confdefs.h <<_ACEOF |
| 7888 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7889 | _ACEOF |
| 7890 | |
| 7891 | fi |
| 7892 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7893 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7894 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7895 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7896 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7898 | else |
| 7899 | case $DOTTY in |
| 7900 | [\\/]* | ?:[\\/]*) |
| 7901 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7902 | ;; |
| 7903 | *) |
| 7904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7905 | for as_dir in $PATH |
| 7906 | do |
| 7907 | IFS=$as_save_IFS |
| 7908 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7909 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7910 | 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] | 7911 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7912 | 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] | 7913 | break 2 |
| 7914 | fi |
| 7915 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7916 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7917 | IFS=$as_save_IFS |
| 7918 | |
| 7919 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7920 | ;; |
| 7921 | esac |
| 7922 | fi |
| 7923 | DOTTY=$ac_cv_path_DOTTY |
| 7924 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7925 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7926 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7927 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7928 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7929 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7930 | fi |
| 7931 | |
| 7932 | |
| 7933 | if test "$DOTTY" != "echo dotty" ; then |
| 7934 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7935 | cat >>confdefs.h <<\_ACEOF |
| 7936 | #define HAVE_DOTTY 1 |
| 7937 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7938 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7939 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7940 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7941 | fi |
| 7942 | |
| 7943 | cat >>confdefs.h <<_ACEOF |
| 7944 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7945 | _ACEOF |
| 7946 | |
| 7947 | fi |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 7948 | # Extract the first word of "xdot.py", so it can be a program name with args. |
| 7949 | set dummy xdot.py; ac_word=$2 |
| 7950 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7951 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7952 | if test "${ac_cv_path_XDOT_PY+set}" = set; then |
| 7953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7954 | else |
| 7955 | case $XDOT_PY in |
| 7956 | [\\/]* | ?:[\\/]*) |
| 7957 | ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. |
| 7958 | ;; |
| 7959 | *) |
| 7960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7961 | for as_dir in $PATH |
| 7962 | do |
| 7963 | IFS=$as_save_IFS |
| 7964 | test -z "$as_dir" && as_dir=. |
| 7965 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7966 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7967 | ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" |
| 7968 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7969 | break 2 |
| 7970 | fi |
| 7971 | done |
| 7972 | done |
| 7973 | IFS=$as_save_IFS |
| 7974 | |
| 7975 | test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" |
| 7976 | ;; |
| 7977 | esac |
| 7978 | fi |
| 7979 | XDOT_PY=$ac_cv_path_XDOT_PY |
| 7980 | if test -n "$XDOT_PY"; then |
| 7981 | { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 |
| 7982 | echo "${ECHO_T}$XDOT_PY" >&6; } |
| 7983 | else |
| 7984 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7985 | echo "${ECHO_T}no" >&6; } |
| 7986 | fi |
| 7987 | |
| 7988 | |
| 7989 | if test "$XDOT_PY" != "echo xdot.py" ; then |
| 7990 | |
| 7991 | cat >>confdefs.h <<\_ACEOF |
| 7992 | #define HAVE_XDOT_PY 1 |
| 7993 | _ACEOF |
| 7994 | |
| 7995 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7996 | XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7997 | fi |
| 7998 | |
| 7999 | cat >>confdefs.h <<_ACEOF |
| 8000 | #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" |
| 8001 | _ACEOF |
| 8002 | |
| 8003 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8004 | |
| 8005 | |
| 8006 | # Extract the first word of "perl", so it can be a program name with args. |
| 8007 | set dummy perl; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8008 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8009 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8010 | if test "${ac_cv_path_PERL+set}" = set; then |
| 8011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8012 | else |
| 8013 | case $PERL in |
| 8014 | [\\/]* | ?:[\\/]*) |
| 8015 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 8016 | ;; |
| 8017 | *) |
| 8018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8019 | for as_dir in $PATH |
| 8020 | do |
| 8021 | IFS=$as_save_IFS |
| 8022 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8023 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8024 | 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] | 8025 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8026 | 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] | 8027 | break 2 |
| 8028 | fi |
| 8029 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8030 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8031 | IFS=$as_save_IFS |
| 8032 | |
| 8033 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 8034 | ;; |
| 8035 | esac |
| 8036 | fi |
| 8037 | PERL=$ac_cv_path_PERL |
| 8038 | if test -n "$PERL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8039 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 8040 | echo "${ECHO_T}$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8041 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8042 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8043 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8044 | fi |
| 8045 | |
| 8046 | |
| 8047 | if test "$PERL" != "none"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8048 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 8049 | 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] | 8050 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8051 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 8052 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8053 | else |
| 8054 | PERL=none |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8055 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 8056 | echo "${ECHO_T}not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8057 | fi |
| 8058 | fi |
| 8059 | |
| 8060 | |
| 8061 | if test x"$PERL" = xnone; then |
| 8062 | HAVE_PERL=0 |
| 8063 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8064 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 8065 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 8066 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8067 | else |
| 8068 | HAVE_PERL=1 |
| 8069 | |
| 8070 | fi |
| 8071 | |
| 8072 | # Find a good install program. We prefer a C program (faster), |
| 8073 | # so one script is as good as another. But avoid the broken or |
| 8074 | # incompatible versions: |
| 8075 | # SysV /etc/install, /usr/sbin/install |
| 8076 | # SunOS /usr/etc/install |
| 8077 | # IRIX /sbin/install |
| 8078 | # AIX /bin/install |
| 8079 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 8080 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 8081 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 8082 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 8083 | # OS/2's system install, which has a completely different semantic |
| 8084 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8085 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 8086 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8087 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8088 | if test "${ac_cv_path_install+set}" = set; then |
| 8089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8090 | else |
| 8091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8092 | for as_dir in $PATH |
| 8093 | do |
| 8094 | IFS=$as_save_IFS |
| 8095 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8096 | # Account for people who put trailing slashes in PATH elements. |
| 8097 | case $as_dir/ in |
| 8098 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8099 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8100 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8101 | /usr/ucb/* ) ;; |
| 8102 | *) |
| 8103 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 8104 | # Don't use installbsd from OSF since it installs stuff as root |
| 8105 | # by default. |
| 8106 | for ac_prog in ginstall scoinst install; do |
| 8107 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8108 | 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] | 8109 | if test $ac_prog = install && |
| 8110 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 8111 | # AIX install. It has an incompatible calling convention. |
| 8112 | : |
| 8113 | elif test $ac_prog = install && |
| 8114 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 8115 | # program-specific install script used by HP pwplus--don't use. |
| 8116 | : |
| 8117 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8118 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 8119 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8120 | fi |
| 8121 | fi |
| 8122 | done |
| 8123 | done |
| 8124 | ;; |
| 8125 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8126 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8127 | IFS=$as_save_IFS |
| 8128 | |
| 8129 | |
| 8130 | fi |
| 8131 | if test "${ac_cv_path_install+set}" = set; then |
| 8132 | INSTALL=$ac_cv_path_install |
| 8133 | else |
| 8134 | # As a last resort, use the slow shell script. Don't cache a |
| 8135 | # value for INSTALL within a source directory, because that will |
| 8136 | # break other packages using the cache if that directory is |
| 8137 | # removed, or if the value is a relative name. |
| 8138 | INSTALL=$ac_install_sh |
| 8139 | fi |
| 8140 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8141 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 8142 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8143 | |
| 8144 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 8145 | # It thinks the first close brace ends the variable substitution. |
| 8146 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 8147 | |
| 8148 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 8149 | |
| 8150 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 8151 | |
Eric Christopher | 2a1a44f | 2010-07-22 21:13:48 +0000 | [diff] [blame] | 8152 | case "$INSTALL" in |
| 8153 | [\\/$]* | ?:[\\/]* ) ;; |
| 8154 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 8155 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8156 | |
| 8157 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 8158 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8159 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8160 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8161 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 8162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8163 | else |
| 8164 | case $BZIP2 in |
| 8165 | [\\/]* | ?:[\\/]*) |
| 8166 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 8167 | ;; |
| 8168 | *) |
| 8169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8170 | for as_dir in $PATH |
| 8171 | do |
| 8172 | IFS=$as_save_IFS |
| 8173 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8174 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8175 | 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] | 8176 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8177 | 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] | 8178 | break 2 |
| 8179 | fi |
| 8180 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8181 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8182 | IFS=$as_save_IFS |
| 8183 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8184 | ;; |
| 8185 | esac |
| 8186 | fi |
| 8187 | BZIP2=$ac_cv_path_BZIP2 |
| 8188 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8189 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 8190 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8191 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8192 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8193 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8194 | fi |
| 8195 | |
| 8196 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 8197 | # Extract the first word of "cat", so it can be a program name with args. |
| 8198 | set dummy cat; ac_word=$2 |
| 8199 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8200 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8201 | if test "${ac_cv_path_CAT+set}" = set; then |
| 8202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8203 | else |
| 8204 | case $CAT in |
| 8205 | [\\/]* | ?:[\\/]*) |
| 8206 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
| 8207 | ;; |
| 8208 | *) |
| 8209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8210 | for as_dir in $PATH |
| 8211 | do |
| 8212 | IFS=$as_save_IFS |
| 8213 | test -z "$as_dir" && as_dir=. |
| 8214 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8215 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8216 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
| 8217 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8218 | break 2 |
| 8219 | fi |
| 8220 | done |
| 8221 | done |
| 8222 | IFS=$as_save_IFS |
| 8223 | |
| 8224 | ;; |
| 8225 | esac |
| 8226 | fi |
| 8227 | CAT=$ac_cv_path_CAT |
| 8228 | if test -n "$CAT"; then |
| 8229 | { echo "$as_me:$LINENO: result: $CAT" >&5 |
| 8230 | echo "${ECHO_T}$CAT" >&6; } |
| 8231 | else |
| 8232 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8233 | echo "${ECHO_T}no" >&6; } |
| 8234 | fi |
| 8235 | |
| 8236 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8237 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 8238 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8239 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8240 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8241 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 8242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8243 | else |
| 8244 | case $DOXYGEN in |
| 8245 | [\\/]* | ?:[\\/]*) |
| 8246 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 8247 | ;; |
| 8248 | *) |
| 8249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8250 | for as_dir in $PATH |
| 8251 | do |
| 8252 | IFS=$as_save_IFS |
| 8253 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8254 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8255 | 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] | 8256 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8257 | 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] | 8258 | break 2 |
| 8259 | fi |
| 8260 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8261 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8262 | IFS=$as_save_IFS |
| 8263 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8264 | ;; |
| 8265 | esac |
| 8266 | fi |
| 8267 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 8268 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8269 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 8270 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8271 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8272 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8273 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8274 | fi |
| 8275 | |
| 8276 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8277 | # Extract the first word of "groff", so it can be a program name with args. |
| 8278 | set dummy groff; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8279 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8280 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8281 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 8282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8283 | else |
| 8284 | case $GROFF in |
| 8285 | [\\/]* | ?:[\\/]*) |
| 8286 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 8287 | ;; |
| 8288 | *) |
| 8289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8290 | for as_dir in $PATH |
| 8291 | do |
| 8292 | IFS=$as_save_IFS |
| 8293 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8294 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8295 | 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] | 8296 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8297 | 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] | 8298 | break 2 |
| 8299 | fi |
| 8300 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8301 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8302 | IFS=$as_save_IFS |
| 8303 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8304 | ;; |
| 8305 | esac |
| 8306 | fi |
| 8307 | GROFF=$ac_cv_path_GROFF |
| 8308 | if test -n "$GROFF"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8309 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 8310 | echo "${ECHO_T}$GROFF" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8311 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8312 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8313 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8314 | fi |
| 8315 | |
| 8316 | |
| 8317 | # Extract the first word of "gzip", so it can be a program name with args. |
| 8318 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8319 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8320 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 8321 | if test "${ac_cv_path_GZIPBIN+set}" = set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8323 | else |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 8324 | case $GZIPBIN in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8325 | [\\/]* | ?:[\\/]*) |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 8326 | 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] | 8327 | ;; |
| 8328 | *) |
| 8329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8330 | for as_dir in $PATH |
| 8331 | do |
| 8332 | IFS=$as_save_IFS |
| 8333 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8334 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8335 | 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] | 8336 | ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8337 | 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] | 8338 | break 2 |
| 8339 | fi |
| 8340 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8341 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8342 | IFS=$as_save_IFS |
| 8343 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8344 | ;; |
| 8345 | esac |
| 8346 | fi |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 8347 | GZIPBIN=$ac_cv_path_GZIPBIN |
| 8348 | if test -n "$GZIPBIN"; then |
| 8349 | { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 |
| 8350 | echo "${ECHO_T}$GZIPBIN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8351 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8352 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8353 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8354 | fi |
| 8355 | |
| 8356 | |
| 8357 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 8358 | set dummy pod2html; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8359 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8360 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8361 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 8362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8363 | else |
| 8364 | case $POD2HTML in |
| 8365 | [\\/]* | ?:[\\/]*) |
| 8366 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 8367 | ;; |
| 8368 | *) |
| 8369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8370 | for as_dir in $PATH |
| 8371 | do |
| 8372 | IFS=$as_save_IFS |
| 8373 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8374 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8375 | 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] | 8376 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8377 | 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] | 8378 | break 2 |
| 8379 | fi |
| 8380 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8381 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8382 | IFS=$as_save_IFS |
| 8383 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8384 | ;; |
| 8385 | esac |
| 8386 | fi |
| 8387 | POD2HTML=$ac_cv_path_POD2HTML |
| 8388 | if test -n "$POD2HTML"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8389 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 8390 | echo "${ECHO_T}$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8391 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8392 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8393 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8394 | fi |
| 8395 | |
| 8396 | |
| 8397 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 8398 | set dummy pod2man; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8399 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8400 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8401 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 8402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8403 | else |
| 8404 | case $POD2MAN in |
| 8405 | [\\/]* | ?:[\\/]*) |
| 8406 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 8407 | ;; |
| 8408 | *) |
| 8409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8410 | for as_dir in $PATH |
| 8411 | do |
| 8412 | IFS=$as_save_IFS |
| 8413 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8414 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8415 | 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] | 8416 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8417 | 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] | 8418 | break 2 |
| 8419 | fi |
| 8420 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8421 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8422 | IFS=$as_save_IFS |
| 8423 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8424 | ;; |
| 8425 | esac |
| 8426 | fi |
| 8427 | POD2MAN=$ac_cv_path_POD2MAN |
| 8428 | if test -n "$POD2MAN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8429 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 8430 | echo "${ECHO_T}$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8431 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8432 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8433 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8434 | fi |
| 8435 | |
| 8436 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 8437 | # Extract the first word of "pdfroff", so it can be a program name with args. |
| 8438 | set dummy pdfroff; ac_word=$2 |
| 8439 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8440 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8441 | if test "${ac_cv_path_PDFROFF+set}" = set; then |
| 8442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8443 | else |
| 8444 | case $PDFROFF in |
| 8445 | [\\/]* | ?:[\\/]*) |
| 8446 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. |
| 8447 | ;; |
| 8448 | *) |
| 8449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8450 | for as_dir in $PATH |
| 8451 | do |
| 8452 | IFS=$as_save_IFS |
| 8453 | test -z "$as_dir" && as_dir=. |
| 8454 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8455 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8456 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" |
| 8457 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8458 | break 2 |
| 8459 | fi |
| 8460 | done |
| 8461 | done |
| 8462 | IFS=$as_save_IFS |
| 8463 | |
| 8464 | ;; |
| 8465 | esac |
| 8466 | fi |
| 8467 | PDFROFF=$ac_cv_path_PDFROFF |
| 8468 | if test -n "$PDFROFF"; then |
| 8469 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 |
| 8470 | echo "${ECHO_T}$PDFROFF" >&6; } |
| 8471 | else |
| 8472 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8473 | echo "${ECHO_T}no" >&6; } |
| 8474 | fi |
| 8475 | |
| 8476 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8477 | # Extract the first word of "runtest", so it can be a program name with args. |
| 8478 | set dummy runtest; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8479 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8480 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8481 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 8482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8483 | else |
| 8484 | case $RUNTEST in |
| 8485 | [\\/]* | ?:[\\/]*) |
| 8486 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 8487 | ;; |
| 8488 | *) |
| 8489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8490 | for as_dir in $PATH |
| 8491 | do |
| 8492 | IFS=$as_save_IFS |
| 8493 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8494 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8495 | 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] | 8496 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8497 | 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] | 8498 | break 2 |
| 8499 | fi |
| 8500 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8501 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8502 | IFS=$as_save_IFS |
| 8503 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8504 | ;; |
| 8505 | esac |
| 8506 | fi |
| 8507 | RUNTEST=$ac_cv_path_RUNTEST |
| 8508 | if test -n "$RUNTEST"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8509 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8510 | echo "${ECHO_T}$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8511 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8512 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8513 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8514 | fi |
| 8515 | |
| 8516 | |
| 8517 | |
| 8518 | no_itcl=true |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8519 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8520 | 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] | 8521 | |
| 8522 | # Check whether --with-tclinclude was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8523 | if test "${with_tclinclude+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8524 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8525 | else |
| 8526 | with_tclinclude='' |
| 8527 | fi |
| 8528 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8529 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8531 | else |
| 8532 | |
| 8533 | if test x"${with_tclinclude}" != x ; then |
| 8534 | if test -f ${with_tclinclude}/tclsh ; then |
| 8535 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8536 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8537 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8538 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8539 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8540 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8541 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8542 | fi |
| 8543 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 8544 | fi |
| 8545 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8546 | |
| 8547 | if test x"${ac_cv_path_tclsh}" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8548 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8549 | echo "${ECHO_T}none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8550 | 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 |
| 8551 | do |
| 8552 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8553 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8554 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8555 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 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 | case $TCLSH in |
| 8560 | [\\/]* | ?:[\\/]*) |
| 8561 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8562 | ;; |
| 8563 | *) |
| 8564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8565 | for as_dir in $PATH |
| 8566 | do |
| 8567 | IFS=$as_save_IFS |
| 8568 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8569 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8570 | 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] | 8571 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8572 | 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] | 8573 | break 2 |
| 8574 | fi |
| 8575 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8576 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8577 | IFS=$as_save_IFS |
| 8578 | |
| 8579 | ;; |
| 8580 | esac |
| 8581 | fi |
| 8582 | TCLSH=$ac_cv_path_TCLSH |
| 8583 | if test -n "$TCLSH"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8584 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8585 | echo "${ECHO_T}$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8586 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8587 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8588 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8589 | fi |
| 8590 | |
| 8591 | |
| 8592 | test -n "$TCLSH" && break |
| 8593 | done |
| 8594 | |
| 8595 | if test x"${TCLSH}" = x ; then |
| 8596 | ac_cv_path_tclsh=''; |
| 8597 | else |
| 8598 | ac_cv_path_tclsh="${TCLSH}"; |
| 8599 | fi |
| 8600 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8601 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8602 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8603 | TCLSH="${ac_cv_path_tclsh}" |
| 8604 | |
| 8605 | fi |
| 8606 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8607 | # Extract the first word of "zip", so it can be a program name with args. |
| 8608 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8609 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8611 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8613 | else |
| 8614 | case $ZIP in |
| 8615 | [\\/]* | ?:[\\/]*) |
| 8616 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8617 | ;; |
| 8618 | *) |
| 8619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8620 | for as_dir in $PATH |
| 8621 | do |
| 8622 | IFS=$as_save_IFS |
| 8623 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8624 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8625 | 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] | 8626 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8627 | 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] | 8628 | break 2 |
| 8629 | fi |
| 8630 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8631 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8632 | IFS=$as_save_IFS |
| 8633 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8634 | ;; |
| 8635 | esac |
| 8636 | fi |
| 8637 | ZIP=$ac_cv_path_ZIP |
| 8638 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8639 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8640 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8641 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8642 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8643 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8644 | fi |
| 8645 | |
| 8646 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8647 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8648 | do |
| 8649 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8650 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8651 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8652 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8653 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8655 | else |
| 8656 | case $OCAMLC in |
| 8657 | [\\/]* | ?:[\\/]*) |
| 8658 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8659 | ;; |
| 8660 | *) |
| 8661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8662 | for as_dir in $PATH |
| 8663 | do |
| 8664 | IFS=$as_save_IFS |
| 8665 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8666 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8667 | 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] | 8668 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8669 | 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] | 8670 | break 2 |
| 8671 | fi |
| 8672 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8673 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8674 | IFS=$as_save_IFS |
| 8675 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8676 | ;; |
| 8677 | esac |
| 8678 | fi |
| 8679 | OCAMLC=$ac_cv_path_OCAMLC |
| 8680 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8681 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8682 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8683 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8684 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8685 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8686 | fi |
| 8687 | |
| 8688 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8689 | test -n "$OCAMLC" && break |
| 8690 | done |
| 8691 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8692 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8693 | do |
| 8694 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8695 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8696 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8697 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8698 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8700 | else |
| 8701 | case $OCAMLOPT in |
| 8702 | [\\/]* | ?:[\\/]*) |
| 8703 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8704 | ;; |
| 8705 | *) |
| 8706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8707 | for as_dir in $PATH |
| 8708 | do |
| 8709 | IFS=$as_save_IFS |
| 8710 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8711 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8712 | 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] | 8713 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8714 | 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] | 8715 | break 2 |
| 8716 | fi |
| 8717 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8718 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8719 | IFS=$as_save_IFS |
| 8720 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8721 | ;; |
| 8722 | esac |
| 8723 | fi |
| 8724 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8725 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8726 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8727 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8728 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8729 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8730 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8731 | fi |
| 8732 | |
| 8733 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8734 | test -n "$OCAMLOPT" && break |
| 8735 | done |
| 8736 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8737 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8738 | do |
| 8739 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8740 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8741 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8742 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8743 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8745 | else |
| 8746 | case $OCAMLDEP in |
| 8747 | [\\/]* | ?:[\\/]*) |
| 8748 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8749 | ;; |
| 8750 | *) |
| 8751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8752 | for as_dir in $PATH |
| 8753 | do |
| 8754 | IFS=$as_save_IFS |
| 8755 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8756 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8757 | 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] | 8758 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8759 | 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] | 8760 | break 2 |
| 8761 | fi |
| 8762 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8763 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8764 | IFS=$as_save_IFS |
| 8765 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8766 | ;; |
| 8767 | esac |
| 8768 | fi |
| 8769 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8770 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8771 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8772 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8773 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8774 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8775 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8776 | fi |
| 8777 | |
| 8778 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8779 | test -n "$OCAMLDEP" && break |
| 8780 | done |
| 8781 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8782 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8783 | do |
| 8784 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8785 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8786 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8787 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8788 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8790 | else |
| 8791 | case $OCAMLDOC in |
| 8792 | [\\/]* | ?:[\\/]*) |
| 8793 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8794 | ;; |
| 8795 | *) |
| 8796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8797 | for as_dir in $PATH |
| 8798 | do |
| 8799 | IFS=$as_save_IFS |
| 8800 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8801 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8802 | 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] | 8803 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8804 | 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] | 8805 | break 2 |
| 8806 | fi |
| 8807 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8808 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8809 | IFS=$as_save_IFS |
| 8810 | |
| 8811 | ;; |
| 8812 | esac |
| 8813 | fi |
| 8814 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8815 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8816 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8817 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8818 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8819 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8820 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8821 | fi |
| 8822 | |
| 8823 | |
| 8824 | test -n "$OCAMLDOC" && break |
| 8825 | done |
| 8826 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8827 | for ac_prog in gas as |
| 8828 | do |
| 8829 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8830 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8831 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8832 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8833 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8835 | else |
| 8836 | case $GAS in |
| 8837 | [\\/]* | ?:[\\/]*) |
| 8838 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8839 | ;; |
| 8840 | *) |
| 8841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8842 | for as_dir in $PATH |
| 8843 | do |
| 8844 | IFS=$as_save_IFS |
| 8845 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8846 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8847 | 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] | 8848 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8849 | 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] | 8850 | break 2 |
| 8851 | fi |
| 8852 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8853 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8854 | IFS=$as_save_IFS |
| 8855 | |
| 8856 | ;; |
| 8857 | esac |
| 8858 | fi |
| 8859 | GAS=$ac_cv_path_GAS |
| 8860 | if test -n "$GAS"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8861 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8862 | echo "${ECHO_T}$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8863 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8864 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8865 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8866 | fi |
| 8867 | |
| 8868 | |
| 8869 | test -n "$GAS" && break |
| 8870 | done |
| 8871 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8872 | |
Daniel Dunbar | ee0f32d | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 8873 | { echo "$as_me:$LINENO: checking for linker version" >&5 |
| 8874 | echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } |
| 8875 | if test "${llvm_cv_link_version+set}" = set; then |
| 8876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8877 | else |
| 8878 | |
| 8879 | version_string="$(ld -v 2>&1 | head -1)" |
| 8880 | |
| 8881 | # Check for ld64. |
| 8882 | if (echo "$version_string" | grep -q "ld64"); then |
| 8883 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#") |
| 8884 | else |
| 8885 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") |
| 8886 | fi |
| 8887 | |
| 8888 | fi |
| 8889 | { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 |
| 8890 | echo "${ECHO_T}$llvm_cv_link_version" >&6; } |
| 8891 | |
| 8892 | cat >>confdefs.h <<_ACEOF |
| 8893 | #define HOST_LINK_VERSION "$llvm_cv_link_version" |
| 8894 | _ACEOF |
| 8895 | |
| 8896 | |
| 8897 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8898 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8899 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8900 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8902 | else |
| 8903 | ac_ext=c |
| 8904 | ac_cpp='$CPP $CPPFLAGS' |
| 8905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8908 | |
| 8909 | oldcflags="$CFLAGS" |
| 8910 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8911 | cat >conftest.$ac_ext <<_ACEOF |
| 8912 | /* confdefs.h. */ |
| 8913 | _ACEOF |
| 8914 | cat confdefs.h >>conftest.$ac_ext |
| 8915 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8916 | /* end confdefs.h. */ |
| 8917 | |
| 8918 | int |
| 8919 | main () |
| 8920 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8921 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8922 | ; |
| 8923 | return 0; |
| 8924 | } |
| 8925 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8926 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8927 | if { (ac_try="$ac_link" |
| 8928 | case "(($ac_try" in |
| 8929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8930 | *) ac_try_echo=$ac_try;; |
| 8931 | esac |
| 8932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8933 | (eval "$ac_link") 2>conftest.er1 |
| 8934 | ac_status=$? |
| 8935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8936 | rm -f conftest.er1 |
| 8937 | cat conftest.err >&5 |
| 8938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8939 | (exit $ac_status); } && |
| 8940 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8941 | { (case "(($ac_try" in |
| 8942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8943 | *) ac_try_echo=$ac_try;; |
| 8944 | esac |
| 8945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8946 | (eval "$ac_try") 2>&5 |
| 8947 | ac_status=$? |
| 8948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8949 | (exit $ac_status); }; } && |
| 8950 | { ac_try='test -s conftest$ac_exeext' |
| 8951 | { (case "(($ac_try" in |
| 8952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8953 | *) ac_try_echo=$ac_try;; |
| 8954 | esac |
| 8955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8956 | (eval "$ac_try") 2>&5 |
| 8957 | ac_status=$? |
| 8958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8959 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8960 | llvm_cv_link_use_r=yes |
| 8961 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8962 | echo "$as_me: failed program was:" >&5 |
| 8963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8964 | |
| 8965 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8966 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8967 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8968 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8969 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8970 | CFLAGS="$oldcflags" |
| 8971 | ac_ext=c |
| 8972 | ac_cpp='$CPP $CPPFLAGS' |
| 8973 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8974 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8975 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8976 | |
| 8977 | |
| 8978 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8979 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8980 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8981 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8982 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8983 | cat >>confdefs.h <<\_ACEOF |
| 8984 | #define HAVE_LINK_R 1 |
| 8985 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8986 | |
| 8987 | fi |
| 8988 | |
| 8989 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8990 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8991 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8992 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8994 | else |
| 8995 | ac_ext=c |
| 8996 | ac_cpp='$CPP $CPPFLAGS' |
| 8997 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8998 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8999 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9000 | |
| 9001 | oldcflags="$CFLAGS" |
| 9002 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9003 | cat >conftest.$ac_ext <<_ACEOF |
| 9004 | /* confdefs.h. */ |
| 9005 | _ACEOF |
| 9006 | cat confdefs.h >>conftest.$ac_ext |
| 9007 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9008 | /* end confdefs.h. */ |
| 9009 | |
| 9010 | int |
| 9011 | main () |
| 9012 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 9013 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9014 | ; |
| 9015 | return 0; |
| 9016 | } |
| 9017 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9018 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9019 | if { (ac_try="$ac_link" |
| 9020 | case "(($ac_try" in |
| 9021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9022 | *) ac_try_echo=$ac_try;; |
| 9023 | esac |
| 9024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9025 | (eval "$ac_link") 2>conftest.er1 |
| 9026 | ac_status=$? |
| 9027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9028 | rm -f conftest.er1 |
| 9029 | cat conftest.err >&5 |
| 9030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9031 | (exit $ac_status); } && |
| 9032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9033 | { (case "(($ac_try" in |
| 9034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9035 | *) ac_try_echo=$ac_try;; |
| 9036 | esac |
| 9037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9038 | (eval "$ac_try") 2>&5 |
| 9039 | ac_status=$? |
| 9040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9041 | (exit $ac_status); }; } && |
| 9042 | { ac_try='test -s conftest$ac_exeext' |
| 9043 | { (case "(($ac_try" in |
| 9044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9045 | *) ac_try_echo=$ac_try;; |
| 9046 | esac |
| 9047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9048 | (eval "$ac_try") 2>&5 |
| 9049 | ac_status=$? |
| 9050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9051 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9052 | llvm_cv_link_use_export_dynamic=yes |
| 9053 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9054 | echo "$as_me: failed program was:" >&5 |
| 9055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9056 | |
| 9057 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9058 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9059 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9060 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9061 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9062 | CFLAGS="$oldcflags" |
| 9063 | ac_ext=c |
| 9064 | ac_cpp='$CPP $CPPFLAGS' |
| 9065 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9066 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9067 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9068 | |
| 9069 | |
| 9070 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9071 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 9072 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9073 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 9074 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9075 | cat >>confdefs.h <<\_ACEOF |
| 9076 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 9077 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 9078 | |
| 9079 | fi |
| 9080 | |
| 9081 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9082 | { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 |
| 9083 | echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } |
| 9084 | if test "${llvm_cv_link_use_version_script+set}" = set; then |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9086 | else |
| 9087 | ac_ext=c |
| 9088 | ac_cpp='$CPP $CPPFLAGS' |
| 9089 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9090 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9091 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9092 | |
| 9093 | oldcflags="$CFLAGS" |
| 9094 | |
| 9095 | # The following code is from the autoconf manual, |
| 9096 | # "11.13: Limitations of Usual Tools". |
| 9097 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). |
| 9098 | # Use mktemp if possible; otherwise fall back on mkdir, |
| 9099 | # with $RANDOM to make collisions less likely. |
| 9100 | : ${TMPDIR=/tmp} |
| 9101 | { |
| 9102 | tmp=` |
| 9103 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null |
| 9104 | ` && |
| 9105 | test -n "$tmp" && test -d "$tmp" |
| 9106 | } || { |
| 9107 | tmp=$TMPDIR/foo$$-$RANDOM |
| 9108 | (umask 077 && mkdir "$tmp") |
| 9109 | } || exit $? |
| 9110 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9111 | echo "{" > "$tmp/export.map" |
| 9112 | echo " global: main;" >> "$tmp/export.map" |
| 9113 | echo " local: *;" >> "$tmp/export.map" |
| 9114 | echo "};" >> "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9115 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9116 | CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9117 | cat >conftest.$ac_ext <<_ACEOF |
| 9118 | /* confdefs.h. */ |
| 9119 | _ACEOF |
| 9120 | cat confdefs.h >>conftest.$ac_ext |
| 9121 | cat >>conftest.$ac_ext <<_ACEOF |
| 9122 | /* end confdefs.h. */ |
| 9123 | |
| 9124 | int |
| 9125 | main () |
| 9126 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 9127 | |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9128 | ; |
| 9129 | return 0; |
| 9130 | } |
| 9131 | _ACEOF |
| 9132 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9133 | if { (ac_try="$ac_link" |
| 9134 | case "(($ac_try" in |
| 9135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9136 | *) ac_try_echo=$ac_try;; |
| 9137 | esac |
| 9138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9139 | (eval "$ac_link") 2>conftest.er1 |
| 9140 | ac_status=$? |
| 9141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9142 | rm -f conftest.er1 |
| 9143 | cat conftest.err >&5 |
| 9144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9145 | (exit $ac_status); } && |
| 9146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9147 | { (case "(($ac_try" in |
| 9148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9149 | *) ac_try_echo=$ac_try;; |
| 9150 | esac |
| 9151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9152 | (eval "$ac_try") 2>&5 |
| 9153 | ac_status=$? |
| 9154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9155 | (exit $ac_status); }; } && |
| 9156 | { ac_try='test -s conftest$ac_exeext' |
| 9157 | { (case "(($ac_try" in |
| 9158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9159 | *) ac_try_echo=$ac_try;; |
| 9160 | esac |
| 9161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9162 | (eval "$ac_try") 2>&5 |
| 9163 | ac_status=$? |
| 9164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9165 | (exit $ac_status); }; }; then |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9166 | llvm_cv_link_use_version_script=yes |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9167 | else |
| 9168 | echo "$as_me: failed program was:" >&5 |
| 9169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9170 | |
Dan Gohman | 943005e | 2010-06-01 16:22:27 +0000 | [diff] [blame] | 9171 | llvm_cv_link_use_version_script=no |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9172 | fi |
| 9173 | |
| 9174 | rm -f core conftest.err conftest.$ac_objext \ |
| 9175 | conftest$ac_exeext conftest.$ac_ext |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9176 | rm "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9177 | rmdir "$tmp" |
| 9178 | CFLAGS="$oldcflags" |
| 9179 | ac_ext=c |
| 9180 | ac_cpp='$CPP $CPPFLAGS' |
| 9181 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9182 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9183 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9184 | |
| 9185 | |
| 9186 | fi |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9187 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 |
| 9188 | echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } |
| 9189 | if test "$llvm_cv_link_use_version_script" = yes ; then |
| 9190 | HAVE_LINK_VERSION_SCRIPT=1 |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9191 | |
| 9192 | fi |
| 9193 | |
| 9194 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9195 | |
| 9196 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9197 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 9198 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 9199 | if test "${ac_cv_c_const+set}" = set; then |
| 9200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9201 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9202 | cat >conftest.$ac_ext <<_ACEOF |
| 9203 | /* confdefs.h. */ |
| 9204 | _ACEOF |
| 9205 | cat confdefs.h >>conftest.$ac_ext |
| 9206 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9207 | /* end confdefs.h. */ |
| 9208 | |
| 9209 | int |
| 9210 | main () |
| 9211 | { |
| 9212 | /* FIXME: Include the comments suggested by Paul. */ |
| 9213 | #ifndef __cplusplus |
| 9214 | /* Ultrix mips cc rejects this. */ |
| 9215 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9216 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9217 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9218 | char const *const *ccp; |
| 9219 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9220 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 9221 | struct point {int x, y;}; |
| 9222 | static struct point const zero = {0,0}; |
| 9223 | /* AIX XL C 1.02.0.0 rejects this. |
| 9224 | It does not let you subtract one const X* pointer from another in |
| 9225 | an arm of an if-expression whose if-part is not a constant |
| 9226 | expression */ |
| 9227 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9228 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9229 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9230 | ++ccp; |
| 9231 | p = (char**) ccp; |
| 9232 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9233 | { /* SCO 3.2v4 cc rejects this. */ |
| 9234 | char *t; |
| 9235 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 9236 | |
| 9237 | *t++ = 0; |
| 9238 | if (s) return 0; |
| 9239 | } |
| 9240 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 9241 | int x[] = {25, 17}; |
| 9242 | const int *foo = &x[0]; |
| 9243 | ++foo; |
| 9244 | } |
| 9245 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 9246 | typedef const int *iptr; |
| 9247 | iptr p = 0; |
| 9248 | ++p; |
| 9249 | } |
| 9250 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 9251 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 9252 | struct s { int j; const int *ap[3]; }; |
| 9253 | struct s *b; b->j = 5; |
| 9254 | } |
| 9255 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 9256 | const int foo = 10; |
| 9257 | if (!foo) return 0; |
| 9258 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9259 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9260 | #endif |
| 9261 | |
| 9262 | ; |
| 9263 | return 0; |
| 9264 | } |
| 9265 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9266 | rm -f conftest.$ac_objext |
| 9267 | if { (ac_try="$ac_compile" |
| 9268 | case "(($ac_try" in |
| 9269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9270 | *) ac_try_echo=$ac_try;; |
| 9271 | esac |
| 9272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9273 | (eval "$ac_compile") 2>conftest.er1 |
| 9274 | ac_status=$? |
| 9275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9276 | rm -f conftest.er1 |
| 9277 | cat conftest.err >&5 |
| 9278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9279 | (exit $ac_status); } && |
| 9280 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9281 | { (case "(($ac_try" in |
| 9282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9283 | *) ac_try_echo=$ac_try;; |
| 9284 | esac |
| 9285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9286 | (eval "$ac_try") 2>&5 |
| 9287 | ac_status=$? |
| 9288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9289 | (exit $ac_status); }; } && |
| 9290 | { ac_try='test -s conftest.$ac_objext' |
| 9291 | { (case "(($ac_try" in |
| 9292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9293 | *) ac_try_echo=$ac_try;; |
| 9294 | esac |
| 9295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9296 | (eval "$ac_try") 2>&5 |
| 9297 | ac_status=$? |
| 9298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9299 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9300 | ac_cv_c_const=yes |
| 9301 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9302 | echo "$as_me: failed program was:" >&5 |
| 9303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9304 | |
| 9305 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9306 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9307 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9309 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9310 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 9311 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9312 | if test $ac_cv_c_const = no; then |
| 9313 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9314 | cat >>confdefs.h <<\_ACEOF |
| 9315 | #define const |
| 9316 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9317 | |
| 9318 | fi |
| 9319 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9320 | |
| 9321 | |
| 9322 | |
| 9323 | |
| 9324 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9325 | ac_header_dirent=no |
| 9326 | 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] | 9327 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 9328 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 9329 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 9330 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9332 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9333 | cat >conftest.$ac_ext <<_ACEOF |
| 9334 | /* confdefs.h. */ |
| 9335 | _ACEOF |
| 9336 | cat confdefs.h >>conftest.$ac_ext |
| 9337 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9338 | /* end confdefs.h. */ |
| 9339 | #include <sys/types.h> |
| 9340 | #include <$ac_hdr> |
| 9341 | |
| 9342 | int |
| 9343 | main () |
| 9344 | { |
| 9345 | if ((DIR *) 0) |
| 9346 | return 0; |
| 9347 | ; |
| 9348 | return 0; |
| 9349 | } |
| 9350 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9351 | rm -f conftest.$ac_objext |
| 9352 | if { (ac_try="$ac_compile" |
| 9353 | case "(($ac_try" in |
| 9354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9355 | *) ac_try_echo=$ac_try;; |
| 9356 | esac |
| 9357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9358 | (eval "$ac_compile") 2>conftest.er1 |
| 9359 | ac_status=$? |
| 9360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9361 | rm -f conftest.er1 |
| 9362 | cat conftest.err >&5 |
| 9363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9364 | (exit $ac_status); } && |
| 9365 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9366 | { (case "(($ac_try" in |
| 9367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9368 | *) ac_try_echo=$ac_try;; |
| 9369 | esac |
| 9370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9371 | (eval "$ac_try") 2>&5 |
| 9372 | ac_status=$? |
| 9373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9374 | (exit $ac_status); }; } && |
| 9375 | { ac_try='test -s conftest.$ac_objext' |
| 9376 | { (case "(($ac_try" in |
| 9377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9378 | *) ac_try_echo=$ac_try;; |
| 9379 | esac |
| 9380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9381 | (eval "$ac_try") 2>&5 |
| 9382 | ac_status=$? |
| 9383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9384 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9385 | eval "$as_ac_Header=yes" |
| 9386 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9387 | echo "$as_me: failed program was:" >&5 |
| 9388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9389 | |
| 9390 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9391 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9392 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9394 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9395 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9396 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9397 | echo "${ECHO_T}$ac_res" >&6; } |
| 9398 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9399 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9400 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9401 | _ACEOF |
| 9402 | |
| 9403 | ac_header_dirent=$ac_hdr; break |
| 9404 | fi |
| 9405 | |
| 9406 | done |
| 9407 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 9408 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9409 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9410 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9411 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9413 | else |
| 9414 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9415 | cat >conftest.$ac_ext <<_ACEOF |
| 9416 | /* confdefs.h. */ |
| 9417 | _ACEOF |
| 9418 | cat confdefs.h >>conftest.$ac_ext |
| 9419 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9420 | /* end confdefs.h. */ |
| 9421 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9422 | /* Override any GCC internal prototype to avoid an error. |
| 9423 | Use char because int might match the return type of a GCC |
| 9424 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9425 | #ifdef __cplusplus |
| 9426 | extern "C" |
| 9427 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9428 | char opendir (); |
| 9429 | int |
| 9430 | main () |
| 9431 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9432 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9433 | ; |
| 9434 | return 0; |
| 9435 | } |
| 9436 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9437 | for ac_lib in '' dir; do |
| 9438 | if test -z "$ac_lib"; then |
| 9439 | ac_res="none required" |
| 9440 | else |
| 9441 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9442 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9443 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9444 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9445 | if { (ac_try="$ac_link" |
| 9446 | case "(($ac_try" in |
| 9447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9448 | *) ac_try_echo=$ac_try;; |
| 9449 | esac |
| 9450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9451 | (eval "$ac_link") 2>conftest.er1 |
| 9452 | ac_status=$? |
| 9453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9454 | rm -f conftest.er1 |
| 9455 | cat conftest.err >&5 |
| 9456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9457 | (exit $ac_status); } && |
| 9458 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9459 | { (case "(($ac_try" in |
| 9460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9461 | *) ac_try_echo=$ac_try;; |
| 9462 | esac |
| 9463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9464 | (eval "$ac_try") 2>&5 |
| 9465 | ac_status=$? |
| 9466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9467 | (exit $ac_status); }; } && |
| 9468 | { ac_try='test -s conftest$ac_exeext' |
| 9469 | { (case "(($ac_try" in |
| 9470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9471 | *) ac_try_echo=$ac_try;; |
| 9472 | esac |
| 9473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9474 | (eval "$ac_try") 2>&5 |
| 9475 | ac_status=$? |
| 9476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9477 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9478 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9479 | else |
| 9480 | echo "$as_me: failed program was:" >&5 |
| 9481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9482 | |
| 9483 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9484 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9485 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9486 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9487 | conftest$ac_exeext |
| 9488 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9489 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9490 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9491 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9492 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9493 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9494 | else |
| 9495 | ac_cv_search_opendir=no |
| 9496 | fi |
| 9497 | rm conftest.$ac_ext |
| 9498 | LIBS=$ac_func_search_save_LIBS |
| 9499 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9500 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9501 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9502 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9503 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9504 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9505 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9506 | fi |
| 9507 | |
| 9508 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9509 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9510 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9511 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9513 | else |
| 9514 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9515 | cat >conftest.$ac_ext <<_ACEOF |
| 9516 | /* confdefs.h. */ |
| 9517 | _ACEOF |
| 9518 | cat confdefs.h >>conftest.$ac_ext |
| 9519 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9520 | /* end confdefs.h. */ |
| 9521 | |
| 9522 | /* Override any GCC internal prototype to avoid an error. |
| 9523 | Use char because int might match the return type of a GCC |
| 9524 | builtin and then its argument prototype would still apply. */ |
| 9525 | #ifdef __cplusplus |
| 9526 | extern "C" |
| 9527 | #endif |
| 9528 | char opendir (); |
| 9529 | int |
| 9530 | main () |
| 9531 | { |
| 9532 | return opendir (); |
| 9533 | ; |
| 9534 | return 0; |
| 9535 | } |
| 9536 | _ACEOF |
| 9537 | for ac_lib in '' x; do |
| 9538 | if test -z "$ac_lib"; then |
| 9539 | ac_res="none required" |
| 9540 | else |
| 9541 | ac_res=-l$ac_lib |
| 9542 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9543 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9544 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9545 | if { (ac_try="$ac_link" |
| 9546 | case "(($ac_try" in |
| 9547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9548 | *) ac_try_echo=$ac_try;; |
| 9549 | esac |
| 9550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9551 | (eval "$ac_link") 2>conftest.er1 |
| 9552 | ac_status=$? |
| 9553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9554 | rm -f conftest.er1 |
| 9555 | cat conftest.err >&5 |
| 9556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9557 | (exit $ac_status); } && |
| 9558 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9559 | { (case "(($ac_try" in |
| 9560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9561 | *) ac_try_echo=$ac_try;; |
| 9562 | esac |
| 9563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9564 | (eval "$ac_try") 2>&5 |
| 9565 | ac_status=$? |
| 9566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9567 | (exit $ac_status); }; } && |
| 9568 | { ac_try='test -s conftest$ac_exeext' |
| 9569 | { (case "(($ac_try" in |
| 9570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9571 | *) ac_try_echo=$ac_try;; |
| 9572 | esac |
| 9573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9574 | (eval "$ac_try") 2>&5 |
| 9575 | ac_status=$? |
| 9576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9577 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9578 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9579 | else |
| 9580 | echo "$as_me: failed program was:" >&5 |
| 9581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9582 | |
| 9583 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9584 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9585 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9586 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9587 | conftest$ac_exeext |
| 9588 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9589 | break |
| 9590 | fi |
| 9591 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9592 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9593 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9594 | else |
| 9595 | ac_cv_search_opendir=no |
| 9596 | fi |
| 9597 | rm conftest.$ac_ext |
| 9598 | LIBS=$ac_func_search_save_LIBS |
| 9599 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9600 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9601 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9602 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9603 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9604 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9605 | |
| 9606 | fi |
| 9607 | |
| 9608 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9609 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9610 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9611 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9612 | do |
| 9613 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9614 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9615 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9616 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9617 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9619 | fi |
| 9620 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9621 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9622 | echo "${ECHO_T}$ac_res" >&6; } |
| 9623 | else |
| 9624 | # Is the header compilable? |
| 9625 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9626 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 9627 | cat >conftest.$ac_ext <<_ACEOF |
| 9628 | /* confdefs.h. */ |
| 9629 | _ACEOF |
| 9630 | cat confdefs.h >>conftest.$ac_ext |
| 9631 | cat >>conftest.$ac_ext <<_ACEOF |
| 9632 | /* end confdefs.h. */ |
| 9633 | $ac_includes_default |
| 9634 | #include <$ac_header> |
| 9635 | _ACEOF |
| 9636 | rm -f conftest.$ac_objext |
| 9637 | if { (ac_try="$ac_compile" |
| 9638 | case "(($ac_try" in |
| 9639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9640 | *) ac_try_echo=$ac_try;; |
| 9641 | esac |
| 9642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9643 | (eval "$ac_compile") 2>conftest.er1 |
| 9644 | ac_status=$? |
| 9645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9646 | rm -f conftest.er1 |
| 9647 | cat conftest.err >&5 |
| 9648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9649 | (exit $ac_status); } && |
| 9650 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9651 | { (case "(($ac_try" in |
| 9652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9653 | *) ac_try_echo=$ac_try;; |
| 9654 | esac |
| 9655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9656 | (eval "$ac_try") 2>&5 |
| 9657 | ac_status=$? |
| 9658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9659 | (exit $ac_status); }; } && |
| 9660 | { ac_try='test -s conftest.$ac_objext' |
| 9661 | { (case "(($ac_try" in |
| 9662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9663 | *) ac_try_echo=$ac_try;; |
| 9664 | esac |
| 9665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9666 | (eval "$ac_try") 2>&5 |
| 9667 | ac_status=$? |
| 9668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9669 | (exit $ac_status); }; }; then |
| 9670 | ac_header_compiler=yes |
| 9671 | else |
| 9672 | echo "$as_me: failed program was:" >&5 |
| 9673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9674 | |
| 9675 | ac_header_compiler=no |
| 9676 | fi |
| 9677 | |
| 9678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9679 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9680 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9681 | |
| 9682 | # Is the header present? |
| 9683 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9684 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 9685 | cat >conftest.$ac_ext <<_ACEOF |
| 9686 | /* confdefs.h. */ |
| 9687 | _ACEOF |
| 9688 | cat confdefs.h >>conftest.$ac_ext |
| 9689 | cat >>conftest.$ac_ext <<_ACEOF |
| 9690 | /* end confdefs.h. */ |
| 9691 | #include <$ac_header> |
| 9692 | _ACEOF |
| 9693 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9694 | case "(($ac_try" in |
| 9695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9696 | *) ac_try_echo=$ac_try;; |
| 9697 | esac |
| 9698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9699 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9700 | ac_status=$? |
| 9701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9702 | rm -f conftest.er1 |
| 9703 | cat conftest.err >&5 |
| 9704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9705 | (exit $ac_status); } >/dev/null; then |
| 9706 | if test -s conftest.err; then |
| 9707 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9708 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9709 | else |
| 9710 | ac_cpp_err= |
| 9711 | fi |
| 9712 | else |
| 9713 | ac_cpp_err=yes |
| 9714 | fi |
| 9715 | if test -z "$ac_cpp_err"; then |
| 9716 | ac_header_preproc=yes |
| 9717 | else |
| 9718 | echo "$as_me: failed program was:" >&5 |
| 9719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9720 | |
| 9721 | ac_header_preproc=no |
| 9722 | fi |
| 9723 | |
| 9724 | rm -f conftest.err conftest.$ac_ext |
| 9725 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9726 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9727 | |
| 9728 | # So? What about this header? |
| 9729 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9730 | yes:no: ) |
| 9731 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9732 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9733 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9734 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9735 | ac_header_preproc=yes |
| 9736 | ;; |
| 9737 | no:yes:* ) |
| 9738 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9739 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9740 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9741 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9742 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9743 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9744 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9745 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9746 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9747 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9748 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9749 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9750 | ( cat <<\_ASBOX |
| 9751 | ## ----------------------------------- ## |
| 9752 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9753 | ## ----------------------------------- ## |
| 9754 | _ASBOX |
| 9755 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 9756 | ;; |
| 9757 | esac |
| 9758 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9759 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9760 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9762 | else |
| 9763 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9764 | fi |
| 9765 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9766 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9767 | echo "${ECHO_T}$ac_res" >&6; } |
| 9768 | |
| 9769 | fi |
| 9770 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9771 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9772 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9773 | _ACEOF |
| 9774 | |
| 9775 | fi |
| 9776 | |
| 9777 | done |
| 9778 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9779 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9780 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9781 | enableval=$enable_ltdl_install; |
| 9782 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9783 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9784 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9785 | |
| 9786 | |
| 9787 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9788 | INSTALL_LTDL_TRUE= |
| 9789 | INSTALL_LTDL_FALSE='#' |
| 9790 | else |
| 9791 | INSTALL_LTDL_TRUE='#' |
| 9792 | INSTALL_LTDL_FALSE= |
| 9793 | fi |
| 9794 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9795 | |
| 9796 | |
| 9797 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9798 | CONVENIENCE_LTDL_TRUE= |
| 9799 | CONVENIENCE_LTDL_FALSE='#' |
| 9800 | else |
| 9801 | CONVENIENCE_LTDL_TRUE='#' |
| 9802 | CONVENIENCE_LTDL_FALSE= |
| 9803 | fi |
| 9804 | |
| 9805 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9806 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9807 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9808 | library_names_spec= |
| 9809 | libname_spec='lib$name' |
| 9810 | soname_spec= |
| 9811 | shrext_cmds=".so" |
| 9812 | postinstall_cmds= |
| 9813 | postuninstall_cmds= |
| 9814 | finish_cmds= |
| 9815 | finish_eval= |
| 9816 | shlibpath_var= |
| 9817 | shlibpath_overrides_runpath=unknown |
| 9818 | version_type=none |
| 9819 | dynamic_linker="$host_os ld.so" |
| 9820 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9821 | if test "$GCC" = yes; then |
| 9822 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9823 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9824 | # if the path contains ";" then we assume it to be the separator |
| 9825 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9826 | # assumed that no part of a normal pathname contains ";" but that should |
| 9827 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9828 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9829 | else |
| 9830 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9831 | fi |
| 9832 | else |
| 9833 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9834 | fi |
| 9835 | need_lib_prefix=unknown |
| 9836 | hardcode_into_libs=no |
| 9837 | |
| 9838 | # when you set need_version to no, make sure it does not cause -set_version |
| 9839 | # flags to be left without arguments |
| 9840 | need_version=unknown |
| 9841 | |
| 9842 | case $host_os in |
| 9843 | aix3*) |
| 9844 | version_type=linux |
| 9845 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9846 | shlibpath_var=LIBPATH |
| 9847 | |
| 9848 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9849 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9850 | ;; |
| 9851 | |
| 9852 | aix4* | aix5*) |
| 9853 | version_type=linux |
| 9854 | need_lib_prefix=no |
| 9855 | need_version=no |
| 9856 | hardcode_into_libs=yes |
| 9857 | if test "$host_cpu" = ia64; then |
| 9858 | # AIX 5 supports IA64 |
| 9859 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9860 | shlibpath_var=LD_LIBRARY_PATH |
| 9861 | else |
| 9862 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9863 | # for dependence libraries. The import file would start with |
| 9864 | # the line `#! .'. This would cause the generated library to |
| 9865 | # depend on `.', always an invalid library. This was fixed in |
| 9866 | # development snapshots of GCC prior to 3.0. |
| 9867 | case $host_os in |
| 9868 | aix4 | aix4.[01] | aix4.[01].*) |
| 9869 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9870 | echo ' yes ' |
| 9871 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9872 | : |
| 9873 | else |
| 9874 | can_build_shared=no |
| 9875 | fi |
| 9876 | ;; |
| 9877 | esac |
| 9878 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9879 | # soname into executable. Probably we can add versioning support to |
| 9880 | # collect2, so additional links can be useful in future. |
| 9881 | if test "$aix_use_runtimelinking" = yes; then |
| 9882 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9883 | # instead of lib<name>.a to let people know that these are not |
| 9884 | # typical AIX shared libraries. |
| 9885 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9886 | else |
| 9887 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9888 | # and later when we are not doing run time linking. |
| 9889 | library_names_spec='${libname}${release}.a $libname.a' |
| 9890 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9891 | fi |
| 9892 | shlibpath_var=LIBPATH |
| 9893 | fi |
| 9894 | ;; |
| 9895 | |
| 9896 | amigaos*) |
| 9897 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9898 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9899 | 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' |
| 9900 | ;; |
| 9901 | |
| 9902 | beos*) |
| 9903 | library_names_spec='${libname}${shared_ext}' |
| 9904 | dynamic_linker="$host_os ld.so" |
| 9905 | shlibpath_var=LIBRARY_PATH |
| 9906 | ;; |
| 9907 | |
| 9908 | bsdi[45]*) |
| 9909 | version_type=linux |
| 9910 | need_version=no |
| 9911 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9912 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9913 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9914 | shlibpath_var=LD_LIBRARY_PATH |
| 9915 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9916 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9917 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9918 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9919 | # libtool to hard-code these into programs |
| 9920 | ;; |
| 9921 | |
| 9922 | cygwin* | mingw* | pw32*) |
| 9923 | version_type=windows |
| 9924 | shrext_cmds=".dll" |
| 9925 | need_version=no |
| 9926 | need_lib_prefix=no |
| 9927 | |
| 9928 | case $GCC,$host_os in |
| 9929 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9930 | library_names_spec='$libname.dll.a' |
| 9931 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9932 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9933 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9934 | dldir=$destdir/`dirname \$dlpath`~ |
| 9935 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9936 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9937 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9938 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9939 | dlpath=$dir/\$dldll~ |
| 9940 | $rm \$dlpath' |
| 9941 | shlibpath_overrides_runpath=yes |
| 9942 | |
| 9943 | case $host_os in |
| 9944 | cygwin*) |
| 9945 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9946 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9947 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9948 | ;; |
| 9949 | mingw*) |
| 9950 | # MinGW DLLs use traditional 'lib' prefix |
| 9951 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9952 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9953 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9954 | # It is most probably a Windows format PATH printed by |
| 9955 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9956 | # path with ; separators, and with drive letters. We can handle the |
| 9957 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9958 | # especially as we might pass files found there to a mingw objdump, |
| 9959 | # which wouldn't understand a cygwinified path. Ahh. |
| 9960 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9961 | else |
| 9962 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9963 | fi |
| 9964 | ;; |
| 9965 | pw32*) |
| 9966 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9967 | 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] | 9968 | ;; |
| 9969 | esac |
| 9970 | ;; |
| 9971 | |
| 9972 | *) |
| 9973 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9974 | ;; |
| 9975 | esac |
| 9976 | dynamic_linker='Win32 ld.exe' |
| 9977 | # FIXME: first we should search . and the directory the executable is in |
| 9978 | shlibpath_var=PATH |
| 9979 | ;; |
| 9980 | |
| 9981 | darwin* | rhapsody*) |
| 9982 | dynamic_linker="$host_os dyld" |
| 9983 | version_type=darwin |
| 9984 | need_lib_prefix=no |
| 9985 | need_version=no |
| 9986 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9987 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9988 | shlibpath_overrides_runpath=yes |
| 9989 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9990 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9991 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9992 | if test "$GCC" = yes; then |
| 9993 | 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"` |
| 9994 | else |
| 9995 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9996 | fi |
| 9997 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9998 | ;; |
| 9999 | |
| 10000 | dgux*) |
| 10001 | version_type=linux |
| 10002 | need_lib_prefix=no |
| 10003 | need_version=no |
| 10004 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10005 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10006 | shlibpath_var=LD_LIBRARY_PATH |
| 10007 | ;; |
| 10008 | |
| 10009 | freebsd1*) |
| 10010 | dynamic_linker=no |
| 10011 | ;; |
| 10012 | |
| 10013 | kfreebsd*-gnu) |
| 10014 | version_type=linux |
| 10015 | need_lib_prefix=no |
| 10016 | need_version=no |
| 10017 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10018 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10019 | shlibpath_var=LD_LIBRARY_PATH |
| 10020 | shlibpath_overrides_runpath=no |
| 10021 | hardcode_into_libs=yes |
| 10022 | dynamic_linker='GNU ld.so' |
| 10023 | ;; |
| 10024 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10025 | freebsd* | dragonfly*) |
| 10026 | # DragonFly does not have aout. When/if they implement a new |
| 10027 | # versioning mechanism, adjust this. |
| 10028 | if test -x /usr/bin/objformat; then |
| 10029 | objformat=`/usr/bin/objformat` |
| 10030 | else |
| 10031 | case $host_os in |
| 10032 | freebsd[123]*) objformat=aout ;; |
| 10033 | *) objformat=elf ;; |
| 10034 | esac |
| 10035 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10036 | version_type=freebsd-$objformat |
| 10037 | case $version_type in |
| 10038 | freebsd-elf*) |
| 10039 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10040 | need_version=no |
| 10041 | need_lib_prefix=no |
| 10042 | ;; |
| 10043 | freebsd-*) |
| 10044 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10045 | need_version=yes |
| 10046 | ;; |
| 10047 | esac |
| 10048 | shlibpath_var=LD_LIBRARY_PATH |
| 10049 | case $host_os in |
| 10050 | freebsd2*) |
| 10051 | shlibpath_overrides_runpath=yes |
| 10052 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10053 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10054 | shlibpath_overrides_runpath=yes |
| 10055 | hardcode_into_libs=yes |
| 10056 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10057 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10058 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10059 | shlibpath_overrides_runpath=no |
| 10060 | hardcode_into_libs=yes |
| 10061 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10062 | freebsd*) # from 4.6 on |
| 10063 | shlibpath_overrides_runpath=yes |
| 10064 | hardcode_into_libs=yes |
| 10065 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10066 | esac |
| 10067 | ;; |
| 10068 | |
| 10069 | gnu*) |
| 10070 | version_type=linux |
| 10071 | need_lib_prefix=no |
| 10072 | need_version=no |
| 10073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10074 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10075 | shlibpath_var=LD_LIBRARY_PATH |
| 10076 | hardcode_into_libs=yes |
| 10077 | ;; |
| 10078 | |
| 10079 | hpux9* | hpux10* | hpux11*) |
| 10080 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10081 | # link against other versions. |
| 10082 | version_type=sunos |
| 10083 | need_lib_prefix=no |
| 10084 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10085 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10086 | ia64*) |
| 10087 | shrext_cmds='.so' |
| 10088 | hardcode_into_libs=yes |
| 10089 | dynamic_linker="$host_os dld.so" |
| 10090 | shlibpath_var=LD_LIBRARY_PATH |
| 10091 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10093 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10094 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10095 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10096 | else |
| 10097 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10098 | fi |
| 10099 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10100 | ;; |
| 10101 | hppa*64*) |
| 10102 | shrext_cmds='.sl' |
| 10103 | hardcode_into_libs=yes |
| 10104 | dynamic_linker="$host_os dld.sl" |
| 10105 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10106 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10108 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10109 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10110 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10111 | ;; |
| 10112 | *) |
| 10113 | shrext_cmds='.sl' |
| 10114 | dynamic_linker="$host_os dld.sl" |
| 10115 | shlibpath_var=SHLIB_PATH |
| 10116 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10118 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10119 | ;; |
| 10120 | esac |
| 10121 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 10122 | postinstall_cmds='chmod 555 $lib' |
| 10123 | ;; |
| 10124 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10125 | interix3*) |
| 10126 | version_type=linux |
| 10127 | need_lib_prefix=no |
| 10128 | need_version=no |
| 10129 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10130 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10131 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10132 | shlibpath_var=LD_LIBRARY_PATH |
| 10133 | shlibpath_overrides_runpath=no |
| 10134 | hardcode_into_libs=yes |
| 10135 | ;; |
| 10136 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10137 | irix5* | irix6* | nonstopux*) |
| 10138 | case $host_os in |
| 10139 | nonstopux*) version_type=nonstopux ;; |
| 10140 | *) |
| 10141 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10142 | version_type=linux |
| 10143 | else |
| 10144 | version_type=irix |
| 10145 | fi ;; |
| 10146 | esac |
| 10147 | need_lib_prefix=no |
| 10148 | need_version=no |
| 10149 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10151 | case $host_os in |
| 10152 | irix5* | nonstopux*) |
| 10153 | libsuff= shlibsuff= |
| 10154 | ;; |
| 10155 | *) |
| 10156 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10157 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10158 | libsuff= shlibsuff= libmagic=32-bit;; |
| 10159 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10160 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10161 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10162 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10163 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 10164 | esac |
| 10165 | ;; |
| 10166 | esac |
| 10167 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10168 | shlibpath_overrides_runpath=no |
| 10169 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10170 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10171 | hardcode_into_libs=yes |
| 10172 | ;; |
| 10173 | |
| 10174 | # No shared lib support for Linux oldld, aout, or coff. |
| 10175 | linux*oldld* | linux*aout* | linux*coff*) |
| 10176 | dynamic_linker=no |
| 10177 | ;; |
| 10178 | |
| 10179 | # This must be Linux ELF. |
| 10180 | linux*) |
| 10181 | version_type=linux |
| 10182 | need_lib_prefix=no |
| 10183 | need_version=no |
| 10184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10185 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10186 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10187 | shlibpath_var=LD_LIBRARY_PATH |
| 10188 | shlibpath_overrides_runpath=no |
| 10189 | # This implies no fast_install, which is unacceptable. |
| 10190 | # Some rework will be needed to allow for fast_install |
| 10191 | # before this can be enabled. |
| 10192 | hardcode_into_libs=yes |
| 10193 | |
| 10194 | # Append ld.so.conf contents to the search path |
| 10195 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10196 | 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] | 10197 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10198 | fi |
| 10199 | |
| 10200 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10201 | # powerpc, because MkLinux only supported shared libraries with the |
| 10202 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10203 | # most powerpc-linux boxes support dynamic linking these days and |
| 10204 | # people can always --disable-shared, the test was removed, and we |
| 10205 | # assume the GNU/Linux dynamic linker is in use. |
| 10206 | dynamic_linker='GNU/Linux ld.so' |
| 10207 | ;; |
| 10208 | |
| 10209 | knetbsd*-gnu) |
| 10210 | version_type=linux |
| 10211 | need_lib_prefix=no |
| 10212 | need_version=no |
| 10213 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10214 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10215 | shlibpath_var=LD_LIBRARY_PATH |
| 10216 | shlibpath_overrides_runpath=no |
| 10217 | hardcode_into_libs=yes |
| 10218 | dynamic_linker='GNU ld.so' |
| 10219 | ;; |
| 10220 | |
| 10221 | netbsd*) |
| 10222 | version_type=sunos |
| 10223 | need_lib_prefix=no |
| 10224 | need_version=no |
| 10225 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10226 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10227 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10228 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10229 | else |
| 10230 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10231 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10232 | dynamic_linker='NetBSD ld.elf_so' |
| 10233 | fi |
| 10234 | shlibpath_var=LD_LIBRARY_PATH |
| 10235 | shlibpath_overrides_runpath=yes |
| 10236 | hardcode_into_libs=yes |
| 10237 | ;; |
| 10238 | |
| 10239 | newsos6) |
| 10240 | version_type=linux |
| 10241 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10242 | shlibpath_var=LD_LIBRARY_PATH |
| 10243 | shlibpath_overrides_runpath=yes |
| 10244 | ;; |
| 10245 | |
| 10246 | nto-qnx*) |
| 10247 | version_type=linux |
| 10248 | need_lib_prefix=no |
| 10249 | need_version=no |
| 10250 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10251 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10252 | shlibpath_var=LD_LIBRARY_PATH |
| 10253 | shlibpath_overrides_runpath=yes |
| 10254 | ;; |
| 10255 | |
| 10256 | openbsd*) |
| 10257 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10258 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10259 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10260 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10261 | case $host_os in |
| 10262 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10263 | *) need_version=no ;; |
| 10264 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10266 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10267 | shlibpath_var=LD_LIBRARY_PATH |
| 10268 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10269 | case $host_os in |
| 10270 | openbsd2.[89] | openbsd2.[89].*) |
| 10271 | shlibpath_overrides_runpath=no |
| 10272 | ;; |
| 10273 | *) |
| 10274 | shlibpath_overrides_runpath=yes |
| 10275 | ;; |
| 10276 | esac |
| 10277 | else |
| 10278 | shlibpath_overrides_runpath=yes |
| 10279 | fi |
| 10280 | ;; |
| 10281 | |
| 10282 | os2*) |
| 10283 | libname_spec='$name' |
| 10284 | shrext_cmds=".dll" |
| 10285 | need_lib_prefix=no |
| 10286 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10287 | dynamic_linker='OS/2 ld.exe' |
| 10288 | shlibpath_var=LIBPATH |
| 10289 | ;; |
| 10290 | |
| 10291 | osf3* | osf4* | osf5*) |
| 10292 | version_type=osf |
| 10293 | need_lib_prefix=no |
| 10294 | need_version=no |
| 10295 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10296 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10297 | shlibpath_var=LD_LIBRARY_PATH |
| 10298 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10299 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10300 | ;; |
| 10301 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10302 | solaris*) |
| 10303 | version_type=linux |
| 10304 | need_lib_prefix=no |
| 10305 | need_version=no |
| 10306 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10307 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10308 | shlibpath_var=LD_LIBRARY_PATH |
| 10309 | shlibpath_overrides_runpath=yes |
| 10310 | hardcode_into_libs=yes |
| 10311 | # ldd complains unless libraries are executable |
| 10312 | postinstall_cmds='chmod +x $lib' |
| 10313 | ;; |
| 10314 | |
| 10315 | sunos4*) |
| 10316 | version_type=sunos |
| 10317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10318 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10319 | shlibpath_var=LD_LIBRARY_PATH |
| 10320 | shlibpath_overrides_runpath=yes |
| 10321 | if test "$with_gnu_ld" = yes; then |
| 10322 | need_lib_prefix=no |
| 10323 | fi |
| 10324 | need_version=yes |
| 10325 | ;; |
| 10326 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10327 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10328 | version_type=linux |
| 10329 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10330 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10331 | shlibpath_var=LD_LIBRARY_PATH |
| 10332 | case $host_vendor in |
| 10333 | sni) |
| 10334 | shlibpath_overrides_runpath=no |
| 10335 | need_lib_prefix=no |
| 10336 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10337 | runpath_var=LD_RUN_PATH |
| 10338 | ;; |
| 10339 | siemens) |
| 10340 | need_lib_prefix=no |
| 10341 | ;; |
| 10342 | motorola) |
| 10343 | need_lib_prefix=no |
| 10344 | need_version=no |
| 10345 | shlibpath_overrides_runpath=no |
| 10346 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10347 | ;; |
| 10348 | esac |
| 10349 | ;; |
| 10350 | |
| 10351 | sysv4*MP*) |
| 10352 | if test -d /usr/nec ;then |
| 10353 | version_type=linux |
| 10354 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10355 | soname_spec='$libname${shared_ext}.$major' |
| 10356 | shlibpath_var=LD_LIBRARY_PATH |
| 10357 | fi |
| 10358 | ;; |
| 10359 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10360 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10361 | version_type=freebsd-elf |
| 10362 | need_lib_prefix=no |
| 10363 | need_version=no |
| 10364 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10365 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10366 | shlibpath_var=LD_LIBRARY_PATH |
| 10367 | hardcode_into_libs=yes |
| 10368 | if test "$with_gnu_ld" = yes; then |
| 10369 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 10370 | shlibpath_overrides_runpath=no |
| 10371 | else |
| 10372 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 10373 | shlibpath_overrides_runpath=yes |
| 10374 | case $host_os in |
| 10375 | sco3.2v5*) |
| 10376 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10377 | ;; |
| 10378 | esac |
| 10379 | fi |
| 10380 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10381 | ;; |
| 10382 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10383 | uts4*) |
| 10384 | version_type=linux |
| 10385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10386 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10387 | shlibpath_var=LD_LIBRARY_PATH |
| 10388 | ;; |
| 10389 | |
| 10390 | *) |
| 10391 | dynamic_linker=no |
| 10392 | ;; |
| 10393 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10394 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 10395 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10396 | test "$dynamic_linker" = no && can_build_shared=no |
| 10397 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10398 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10399 | if test "$GCC" = yes; then |
| 10400 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10401 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10402 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10403 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10404 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 10405 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 10406 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 10407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10408 | else |
| 10409 | |
| 10410 | module=yes |
| 10411 | eval libltdl_cv_shlibext=$shrext_cmds |
| 10412 | |
| 10413 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10414 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 10415 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10416 | if test -n "$libltdl_cv_shlibext"; then |
| 10417 | |
| 10418 | cat >>confdefs.h <<_ACEOF |
| 10419 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 10420 | _ACEOF |
| 10421 | |
| 10422 | fi |
| 10423 | |
| 10424 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10425 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 10426 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 10427 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 10428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10429 | else |
| 10430 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 10431 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10432 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 10433 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10434 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 10435 | |
| 10436 | cat >>confdefs.h <<_ACEOF |
| 10437 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 10438 | _ACEOF |
| 10439 | |
| 10440 | fi |
| 10441 | |
| 10442 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10443 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 10444 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 10445 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 10446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10447 | else |
| 10448 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 10449 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10450 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 10451 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10452 | if test -n "$libltdl_cv_sys_search_path"; then |
| 10453 | sys_search_path= |
| 10454 | for dir in $libltdl_cv_sys_search_path; do |
| 10455 | if test -z "$sys_search_path"; then |
| 10456 | sys_search_path="$dir" |
| 10457 | else |
| 10458 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 10459 | fi |
| 10460 | done |
| 10461 | |
| 10462 | cat >>confdefs.h <<_ACEOF |
| 10463 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 10464 | _ACEOF |
| 10465 | |
| 10466 | fi |
| 10467 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10468 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 10469 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 10470 | if test "${libltdl_cv_objdir+set}" = set; then |
| 10471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10472 | else |
| 10473 | libltdl_cv_objdir="$objdir" |
| 10474 | if test -n "$objdir"; then |
| 10475 | : |
| 10476 | else |
| 10477 | rm -f .libs 2>/dev/null |
| 10478 | mkdir .libs 2>/dev/null |
| 10479 | if test -d .libs; then |
| 10480 | libltdl_cv_objdir=.libs |
| 10481 | else |
| 10482 | # MS-DOS does not allow filenames that begin with a dot. |
| 10483 | libltdl_cv_objdir=_libs |
| 10484 | fi |
| 10485 | rmdir .libs 2>/dev/null |
| 10486 | fi |
| 10487 | |
| 10488 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10489 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 10490 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10491 | |
| 10492 | cat >>confdefs.h <<_ACEOF |
| 10493 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 10494 | _ACEOF |
| 10495 | |
| 10496 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10497 | |
| 10498 | |
| 10499 | |
| 10500 | |
| 10501 | # 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] | 10502 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 10503 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 10504 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 10505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10506 | else |
| 10507 | |
| 10508 | # These are sane defaults that work on at least a few old systems. |
| 10509 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 10510 | |
| 10511 | # Character class describing NM global symbol codes. |
| 10512 | symcode='[BCDEGRST]' |
| 10513 | |
| 10514 | # Regexp to match symbols that can be accessed directly from C. |
| 10515 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 10516 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10517 | # Transform an extracted symbol line into a proper C declaration |
| 10518 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 10519 | |
| 10520 | # Transform an extracted symbol line into symbol name and symbol address |
| 10521 | 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'" |
| 10522 | |
| 10523 | # Define system-specific variables. |
| 10524 | case $host_os in |
| 10525 | aix*) |
| 10526 | symcode='[BCDT]' |
| 10527 | ;; |
| 10528 | cygwin* | mingw* | pw32*) |
| 10529 | symcode='[ABCDGISTW]' |
| 10530 | ;; |
| 10531 | hpux*) # Its linker distinguishes data from code symbols |
| 10532 | if test "$host_cpu" = ia64; then |
| 10533 | symcode='[ABCDEGRST]' |
| 10534 | fi |
| 10535 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10536 | 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'" |
| 10537 | ;; |
| 10538 | linux*) |
| 10539 | if test "$host_cpu" = ia64; then |
| 10540 | symcode='[ABCDGIRSTW]' |
| 10541 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10542 | 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'" |
| 10543 | fi |
| 10544 | ;; |
| 10545 | irix* | nonstopux*) |
| 10546 | symcode='[BCDEGRST]' |
| 10547 | ;; |
| 10548 | osf*) |
| 10549 | symcode='[BCDEGQRST]' |
| 10550 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10551 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10552 | symcode='[BDRT]' |
| 10553 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10554 | sco3.2v5*) |
| 10555 | symcode='[DT]' |
| 10556 | ;; |
| 10557 | sysv4.2uw2*) |
| 10558 | symcode='[DT]' |
| 10559 | ;; |
| 10560 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 10561 | symcode='[ABDT]' |
| 10562 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10563 | sysv4) |
| 10564 | symcode='[DFNSTU]' |
| 10565 | ;; |
| 10566 | esac |
| 10567 | |
| 10568 | # Handle CRLF in mingw tool chain |
| 10569 | opt_cr= |
| 10570 | case $build_os in |
| 10571 | mingw*) |
| 10572 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 10573 | ;; |
| 10574 | esac |
| 10575 | |
| 10576 | # If we're using GNU nm, then use its standard symbol codes. |
| 10577 | case `$NM -V 2>&1` in |
| 10578 | *GNU* | *'with BFD'*) |
| 10579 | symcode='[ABCDGIRSTW]' ;; |
| 10580 | esac |
| 10581 | |
| 10582 | # Try without a prefix undercore, then with it. |
| 10583 | for ac_symprfx in "" "_"; do |
| 10584 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10585 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 10586 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 10587 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10588 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10589 | 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] | 10590 | |
| 10591 | # Check to see that the pipe works correctly. |
| 10592 | pipe_works=no |
| 10593 | |
| 10594 | rm -f conftest* |
| 10595 | cat > conftest.$ac_ext <<EOF |
| 10596 | #ifdef __cplusplus |
| 10597 | extern "C" { |
| 10598 | #endif |
| 10599 | char nm_test_var; |
| 10600 | void nm_test_func(){} |
| 10601 | #ifdef __cplusplus |
| 10602 | } |
| 10603 | #endif |
| 10604 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 10605 | EOF |
| 10606 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10608 | (eval $ac_compile) 2>&5 |
| 10609 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10611 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10612 | # Now try to grab the symbols. |
| 10613 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10614 | 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] | 10615 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 10616 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10618 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10619 | # Try sorting and uniquifying the output. |
| 10620 | if sort "$nlist" | uniq > "$nlist"T; then |
| 10621 | mv -f "$nlist"T "$nlist" |
| 10622 | else |
| 10623 | rm -f "$nlist"T |
| 10624 | fi |
| 10625 | |
| 10626 | # Make sure that we snagged all the symbols we need. |
| 10627 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 10628 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 10629 | cat <<EOF > conftest.$ac_ext |
| 10630 | #ifdef __cplusplus |
| 10631 | extern "C" { |
| 10632 | #endif |
| 10633 | |
| 10634 | EOF |
| 10635 | # Now generate the symbol file. |
| 10636 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 10637 | |
| 10638 | cat <<EOF >> conftest.$ac_ext |
| 10639 | #if defined (__STDC__) && __STDC__ |
| 10640 | # define lt_ptr_t void * |
| 10641 | #else |
| 10642 | # define lt_ptr_t char * |
| 10643 | # define const |
| 10644 | #endif |
| 10645 | |
| 10646 | /* The mapping between symbol names and symbols. */ |
| 10647 | const struct { |
| 10648 | const char *name; |
| 10649 | lt_ptr_t address; |
| 10650 | } |
| 10651 | lt_preloaded_symbols[] = |
| 10652 | { |
| 10653 | EOF |
| 10654 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10655 | cat <<\EOF >> conftest.$ac_ext |
| 10656 | {0, (lt_ptr_t) 0} |
| 10657 | }; |
| 10658 | |
| 10659 | #ifdef __cplusplus |
| 10660 | } |
| 10661 | #endif |
| 10662 | EOF |
| 10663 | # Now try linking the two files. |
| 10664 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10665 | lt_save_LIBS="$LIBS" |
| 10666 | lt_save_CFLAGS="$CFLAGS" |
| 10667 | LIBS="conftstm.$ac_objext" |
| 10668 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10670 | (eval $ac_link) 2>&5 |
| 10671 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10673 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10674 | pipe_works=yes |
| 10675 | fi |
| 10676 | LIBS="$lt_save_LIBS" |
| 10677 | CFLAGS="$lt_save_CFLAGS" |
| 10678 | else |
| 10679 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10680 | fi |
| 10681 | else |
| 10682 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10683 | fi |
| 10684 | else |
| 10685 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10686 | fi |
| 10687 | else |
| 10688 | echo "$progname: failed program was:" >&5 |
| 10689 | cat conftest.$ac_ext >&5 |
| 10690 | fi |
| 10691 | rm -f conftest* conftst* |
| 10692 | |
| 10693 | # Do not use the global_symbol_pipe unless it works. |
| 10694 | if test "$pipe_works" = yes; then |
| 10695 | break |
| 10696 | else |
| 10697 | lt_cv_sys_global_symbol_pipe= |
| 10698 | fi |
| 10699 | done |
| 10700 | |
| 10701 | fi |
| 10702 | |
| 10703 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10704 | lt_cv_sys_global_symbol_to_cdecl= |
| 10705 | fi |
| 10706 | 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] | 10707 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10708 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10709 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10710 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10711 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10712 | fi |
| 10713 | |
| 10714 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10715 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10716 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 10717 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10719 | else |
| 10720 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10721 | libltdl_cv_preloaded_symbols=yes |
| 10722 | else |
| 10723 | libltdl_cv_preloaded_symbols=no |
| 10724 | fi |
| 10725 | |
| 10726 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10727 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10728 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10729 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10730 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10731 | cat >>confdefs.h <<\_ACEOF |
| 10732 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10733 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10734 | |
| 10735 | fi |
| 10736 | |
| 10737 | LIBADD_DL= |
| 10738 | |
| 10739 | ac_ext=c |
| 10740 | ac_cpp='$CPP $CPPFLAGS' |
| 10741 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10742 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10743 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10744 | |
| 10745 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10746 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10747 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 10748 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10750 | else |
| 10751 | cat >conftest.$ac_ext <<_ACEOF |
| 10752 | /* confdefs.h. */ |
| 10753 | _ACEOF |
| 10754 | cat confdefs.h >>conftest.$ac_ext |
| 10755 | cat >>conftest.$ac_ext <<_ACEOF |
| 10756 | /* end confdefs.h. */ |
| 10757 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10758 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10759 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10760 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10761 | /* System header to define __stub macros and hopefully few prototypes, |
| 10762 | which can conflict with char shl_load (); below. |
| 10763 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10764 | <limits.h> exists even on freestanding compilers. */ |
| 10765 | |
| 10766 | #ifdef __STDC__ |
| 10767 | # include <limits.h> |
| 10768 | #else |
| 10769 | # include <assert.h> |
| 10770 | #endif |
| 10771 | |
| 10772 | #undef shl_load |
| 10773 | |
| 10774 | /* Override any GCC internal prototype to avoid an error. |
| 10775 | Use char because int might match the return type of a GCC |
| 10776 | builtin and then its argument prototype would still apply. */ |
| 10777 | #ifdef __cplusplus |
| 10778 | extern "C" |
| 10779 | #endif |
| 10780 | char shl_load (); |
| 10781 | /* The GNU C library defines this for functions which it implements |
| 10782 | to always fail with ENOSYS. Some functions are actually named |
| 10783 | something starting with __ and the normal name is an alias. */ |
| 10784 | #if defined __stub_shl_load || defined __stub___shl_load |
| 10785 | choke me |
| 10786 | #endif |
| 10787 | |
| 10788 | int |
| 10789 | main () |
| 10790 | { |
| 10791 | return shl_load (); |
| 10792 | ; |
| 10793 | return 0; |
| 10794 | } |
| 10795 | _ACEOF |
| 10796 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10797 | if { (ac_try="$ac_link" |
| 10798 | case "(($ac_try" in |
| 10799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10800 | *) ac_try_echo=$ac_try;; |
| 10801 | esac |
| 10802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10803 | (eval "$ac_link") 2>conftest.er1 |
| 10804 | ac_status=$? |
| 10805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10806 | rm -f conftest.er1 |
| 10807 | cat conftest.err >&5 |
| 10808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10809 | (exit $ac_status); } && |
| 10810 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10811 | { (case "(($ac_try" in |
| 10812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10813 | *) ac_try_echo=$ac_try;; |
| 10814 | esac |
| 10815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10816 | (eval "$ac_try") 2>&5 |
| 10817 | ac_status=$? |
| 10818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10819 | (exit $ac_status); }; } && |
| 10820 | { ac_try='test -s conftest$ac_exeext' |
| 10821 | { (case "(($ac_try" in |
| 10822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10823 | *) ac_try_echo=$ac_try;; |
| 10824 | esac |
| 10825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10826 | (eval "$ac_try") 2>&5 |
| 10827 | ac_status=$? |
| 10828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10829 | (exit $ac_status); }; }; then |
| 10830 | ac_cv_func_shl_load=yes |
| 10831 | else |
| 10832 | echo "$as_me: failed program was:" >&5 |
| 10833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10834 | |
| 10835 | ac_cv_func_shl_load=no |
| 10836 | fi |
| 10837 | |
| 10838 | rm -f core conftest.err conftest.$ac_objext \ |
| 10839 | conftest$ac_exeext conftest.$ac_ext |
| 10840 | fi |
| 10841 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10842 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 10843 | if test $ac_cv_func_shl_load = yes; then |
| 10844 | |
| 10845 | cat >>confdefs.h <<\_ACEOF |
| 10846 | #define HAVE_SHL_LOAD 1 |
| 10847 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10848 | |
| 10849 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10850 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10851 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 10852 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10854 | else |
| 10855 | ac_check_lib_save_LIBS=$LIBS |
| 10856 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10857 | cat >conftest.$ac_ext <<_ACEOF |
| 10858 | /* confdefs.h. */ |
| 10859 | _ACEOF |
| 10860 | cat confdefs.h >>conftest.$ac_ext |
| 10861 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10862 | /* end confdefs.h. */ |
| 10863 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10864 | /* Override any GCC internal prototype to avoid an error. |
| 10865 | Use char because int might match the return type of a GCC |
| 10866 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10867 | #ifdef __cplusplus |
| 10868 | extern "C" |
| 10869 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10870 | char shl_load (); |
| 10871 | int |
| 10872 | main () |
| 10873 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10874 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10875 | ; |
| 10876 | return 0; |
| 10877 | } |
| 10878 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10879 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10880 | if { (ac_try="$ac_link" |
| 10881 | case "(($ac_try" in |
| 10882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10883 | *) ac_try_echo=$ac_try;; |
| 10884 | esac |
| 10885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10886 | (eval "$ac_link") 2>conftest.er1 |
| 10887 | ac_status=$? |
| 10888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10889 | rm -f conftest.er1 |
| 10890 | cat conftest.err >&5 |
| 10891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10892 | (exit $ac_status); } && |
| 10893 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10894 | { (case "(($ac_try" in |
| 10895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10896 | *) ac_try_echo=$ac_try;; |
| 10897 | esac |
| 10898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10899 | (eval "$ac_try") 2>&5 |
| 10900 | ac_status=$? |
| 10901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10902 | (exit $ac_status); }; } && |
| 10903 | { ac_try='test -s conftest$ac_exeext' |
| 10904 | { (case "(($ac_try" in |
| 10905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10906 | *) ac_try_echo=$ac_try;; |
| 10907 | esac |
| 10908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10909 | (eval "$ac_try") 2>&5 |
| 10910 | ac_status=$? |
| 10911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10912 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10913 | ac_cv_lib_dld_shl_load=yes |
| 10914 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10915 | echo "$as_me: failed program was:" >&5 |
| 10916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10917 | |
| 10918 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10919 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10920 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10921 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10922 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10923 | LIBS=$ac_check_lib_save_LIBS |
| 10924 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10925 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10926 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 10927 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10928 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10929 | cat >>confdefs.h <<\_ACEOF |
| 10930 | #define HAVE_SHL_LOAD 1 |
| 10931 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10932 | |
| 10933 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10934 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10935 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10936 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 10937 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10939 | else |
| 10940 | ac_check_lib_save_LIBS=$LIBS |
| 10941 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10942 | cat >conftest.$ac_ext <<_ACEOF |
| 10943 | /* confdefs.h. */ |
| 10944 | _ACEOF |
| 10945 | cat confdefs.h >>conftest.$ac_ext |
| 10946 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10947 | /* end confdefs.h. */ |
| 10948 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10949 | /* Override any GCC internal prototype to avoid an error. |
| 10950 | Use char because int might match the return type of a GCC |
| 10951 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10952 | #ifdef __cplusplus |
| 10953 | extern "C" |
| 10954 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10955 | char dlopen (); |
| 10956 | int |
| 10957 | main () |
| 10958 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10959 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10960 | ; |
| 10961 | return 0; |
| 10962 | } |
| 10963 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10964 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10965 | if { (ac_try="$ac_link" |
| 10966 | case "(($ac_try" in |
| 10967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10968 | *) ac_try_echo=$ac_try;; |
| 10969 | esac |
| 10970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10971 | (eval "$ac_link") 2>conftest.er1 |
| 10972 | ac_status=$? |
| 10973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10974 | rm -f conftest.er1 |
| 10975 | cat conftest.err >&5 |
| 10976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10977 | (exit $ac_status); } && |
| 10978 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10979 | { (case "(($ac_try" in |
| 10980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10981 | *) ac_try_echo=$ac_try;; |
| 10982 | esac |
| 10983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10984 | (eval "$ac_try") 2>&5 |
| 10985 | ac_status=$? |
| 10986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10987 | (exit $ac_status); }; } && |
| 10988 | { ac_try='test -s conftest$ac_exeext' |
| 10989 | { (case "(($ac_try" in |
| 10990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10991 | *) ac_try_echo=$ac_try;; |
| 10992 | esac |
| 10993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10994 | (eval "$ac_try") 2>&5 |
| 10995 | ac_status=$? |
| 10996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10997 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10998 | ac_cv_lib_dl_dlopen=yes |
| 10999 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11000 | echo "$as_me: failed program was:" >&5 |
| 11001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11002 | |
| 11003 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11004 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11005 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11006 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11007 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11008 | LIBS=$ac_check_lib_save_LIBS |
| 11009 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11010 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11011 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 11012 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11013 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11014 | cat >>confdefs.h <<\_ACEOF |
| 11015 | #define HAVE_LIBDL 1 |
| 11016 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11017 | |
| 11018 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 11019 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11020 | cat >conftest.$ac_ext <<_ACEOF |
| 11021 | /* confdefs.h. */ |
| 11022 | _ACEOF |
| 11023 | cat confdefs.h >>conftest.$ac_ext |
| 11024 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11025 | /* end confdefs.h. */ |
| 11026 | #if HAVE_DLFCN_H |
| 11027 | # include <dlfcn.h> |
| 11028 | #endif |
| 11029 | |
| 11030 | int |
| 11031 | main () |
| 11032 | { |
| 11033 | dlopen(0, 0); |
| 11034 | ; |
| 11035 | return 0; |
| 11036 | } |
| 11037 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11038 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11039 | if { (ac_try="$ac_link" |
| 11040 | case "(($ac_try" in |
| 11041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11042 | *) ac_try_echo=$ac_try;; |
| 11043 | esac |
| 11044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11045 | (eval "$ac_link") 2>conftest.er1 |
| 11046 | ac_status=$? |
| 11047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11048 | rm -f conftest.er1 |
| 11049 | cat conftest.err >&5 |
| 11050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11051 | (exit $ac_status); } && |
| 11052 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11053 | { (case "(($ac_try" in |
| 11054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11055 | *) ac_try_echo=$ac_try;; |
| 11056 | esac |
| 11057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11058 | (eval "$ac_try") 2>&5 |
| 11059 | ac_status=$? |
| 11060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11061 | (exit $ac_status); }; } && |
| 11062 | { ac_try='test -s conftest$ac_exeext' |
| 11063 | { (case "(($ac_try" in |
| 11064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11065 | *) ac_try_echo=$ac_try;; |
| 11066 | esac |
| 11067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11068 | (eval "$ac_try") 2>&5 |
| 11069 | ac_status=$? |
| 11070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11071 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11072 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11073 | cat >>confdefs.h <<\_ACEOF |
| 11074 | #define HAVE_LIBDL 1 |
| 11075 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11076 | libltdl_cv_func_dlopen="yes" |
| 11077 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11078 | echo "$as_me: failed program was:" >&5 |
| 11079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11080 | |
| 11081 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 11082 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 11083 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 11084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11085 | else |
| 11086 | ac_check_lib_save_LIBS=$LIBS |
| 11087 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11088 | cat >conftest.$ac_ext <<_ACEOF |
| 11089 | /* confdefs.h. */ |
| 11090 | _ACEOF |
| 11091 | cat confdefs.h >>conftest.$ac_ext |
| 11092 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11093 | /* end confdefs.h. */ |
| 11094 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11095 | /* Override any GCC internal prototype to avoid an error. |
| 11096 | Use char because int might match the return type of a GCC |
| 11097 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11098 | #ifdef __cplusplus |
| 11099 | extern "C" |
| 11100 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11101 | char dlopen (); |
| 11102 | int |
| 11103 | main () |
| 11104 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11105 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11106 | ; |
| 11107 | return 0; |
| 11108 | } |
| 11109 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11110 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11111 | if { (ac_try="$ac_link" |
| 11112 | case "(($ac_try" in |
| 11113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11114 | *) ac_try_echo=$ac_try;; |
| 11115 | esac |
| 11116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11117 | (eval "$ac_link") 2>conftest.er1 |
| 11118 | ac_status=$? |
| 11119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11120 | rm -f conftest.er1 |
| 11121 | cat conftest.err >&5 |
| 11122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11123 | (exit $ac_status); } && |
| 11124 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11125 | { (case "(($ac_try" in |
| 11126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11127 | *) ac_try_echo=$ac_try;; |
| 11128 | esac |
| 11129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11130 | (eval "$ac_try") 2>&5 |
| 11131 | ac_status=$? |
| 11132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11133 | (exit $ac_status); }; } && |
| 11134 | { ac_try='test -s conftest$ac_exeext' |
| 11135 | { (case "(($ac_try" in |
| 11136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11137 | *) ac_try_echo=$ac_try;; |
| 11138 | esac |
| 11139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11140 | (eval "$ac_try") 2>&5 |
| 11141 | ac_status=$? |
| 11142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11143 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11144 | ac_cv_lib_svld_dlopen=yes |
| 11145 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11146 | echo "$as_me: failed program was:" >&5 |
| 11147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11148 | |
| 11149 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11150 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11151 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11152 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11153 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11154 | LIBS=$ac_check_lib_save_LIBS |
| 11155 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11156 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11157 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 11158 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11159 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11160 | cat >>confdefs.h <<\_ACEOF |
| 11161 | #define HAVE_LIBDL 1 |
| 11162 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11163 | |
| 11164 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 11165 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11166 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 11167 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 11168 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 11169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11170 | else |
| 11171 | ac_check_lib_save_LIBS=$LIBS |
| 11172 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11173 | cat >conftest.$ac_ext <<_ACEOF |
| 11174 | /* confdefs.h. */ |
| 11175 | _ACEOF |
| 11176 | cat confdefs.h >>conftest.$ac_ext |
| 11177 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11178 | /* end confdefs.h. */ |
| 11179 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11180 | /* Override any GCC internal prototype to avoid an error. |
| 11181 | Use char because int might match the return type of a GCC |
| 11182 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11183 | #ifdef __cplusplus |
| 11184 | extern "C" |
| 11185 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11186 | char dld_link (); |
| 11187 | int |
| 11188 | main () |
| 11189 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11190 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11191 | ; |
| 11192 | return 0; |
| 11193 | } |
| 11194 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11195 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11196 | if { (ac_try="$ac_link" |
| 11197 | case "(($ac_try" in |
| 11198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11199 | *) ac_try_echo=$ac_try;; |
| 11200 | esac |
| 11201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11202 | (eval "$ac_link") 2>conftest.er1 |
| 11203 | ac_status=$? |
| 11204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11205 | rm -f conftest.er1 |
| 11206 | cat conftest.err >&5 |
| 11207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11208 | (exit $ac_status); } && |
| 11209 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11210 | { (case "(($ac_try" in |
| 11211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11212 | *) ac_try_echo=$ac_try;; |
| 11213 | esac |
| 11214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11215 | (eval "$ac_try") 2>&5 |
| 11216 | ac_status=$? |
| 11217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11218 | (exit $ac_status); }; } && |
| 11219 | { ac_try='test -s conftest$ac_exeext' |
| 11220 | { (case "(($ac_try" in |
| 11221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11222 | *) ac_try_echo=$ac_try;; |
| 11223 | esac |
| 11224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11225 | (eval "$ac_try") 2>&5 |
| 11226 | ac_status=$? |
| 11227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11228 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11229 | ac_cv_lib_dld_dld_link=yes |
| 11230 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11231 | echo "$as_me: failed program was:" >&5 |
| 11232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11233 | |
| 11234 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11235 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11236 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11237 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11238 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11239 | LIBS=$ac_check_lib_save_LIBS |
| 11240 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11241 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11242 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 11243 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11244 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11245 | cat >>confdefs.h <<\_ACEOF |
| 11246 | #define HAVE_DLD 1 |
| 11247 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11248 | |
| 11249 | LIBADD_DL="$LIBADD_DL -ldld" |
| 11250 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11251 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 11252 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 11253 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 11254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11255 | else |
| 11256 | cat >conftest.$ac_ext <<_ACEOF |
| 11257 | /* confdefs.h. */ |
| 11258 | _ACEOF |
| 11259 | cat confdefs.h >>conftest.$ac_ext |
| 11260 | cat >>conftest.$ac_ext <<_ACEOF |
| 11261 | /* end confdefs.h. */ |
| 11262 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 11263 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11264 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11265 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11266 | /* System header to define __stub macros and hopefully few prototypes, |
| 11267 | which can conflict with char _dyld_func_lookup (); below. |
| 11268 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11269 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11270 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11271 | #ifdef __STDC__ |
| 11272 | # include <limits.h> |
| 11273 | #else |
| 11274 | # include <assert.h> |
| 11275 | #endif |
| 11276 | |
| 11277 | #undef _dyld_func_lookup |
| 11278 | |
| 11279 | /* Override any GCC internal prototype to avoid an error. |
| 11280 | Use char because int might match the return type of a GCC |
| 11281 | builtin and then its argument prototype would still apply. */ |
| 11282 | #ifdef __cplusplus |
| 11283 | extern "C" |
| 11284 | #endif |
| 11285 | char _dyld_func_lookup (); |
| 11286 | /* The GNU C library defines this for functions which it implements |
| 11287 | to always fail with ENOSYS. Some functions are actually named |
| 11288 | something starting with __ and the normal name is an alias. */ |
| 11289 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 11290 | choke me |
| 11291 | #endif |
| 11292 | |
| 11293 | int |
| 11294 | main () |
| 11295 | { |
| 11296 | return _dyld_func_lookup (); |
| 11297 | ; |
| 11298 | return 0; |
| 11299 | } |
| 11300 | _ACEOF |
| 11301 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11302 | if { (ac_try="$ac_link" |
| 11303 | case "(($ac_try" in |
| 11304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11305 | *) ac_try_echo=$ac_try;; |
| 11306 | esac |
| 11307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11308 | (eval "$ac_link") 2>conftest.er1 |
| 11309 | ac_status=$? |
| 11310 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11311 | rm -f conftest.er1 |
| 11312 | cat conftest.err >&5 |
| 11313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11314 | (exit $ac_status); } && |
| 11315 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11316 | { (case "(($ac_try" in |
| 11317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11318 | *) ac_try_echo=$ac_try;; |
| 11319 | esac |
| 11320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11321 | (eval "$ac_try") 2>&5 |
| 11322 | ac_status=$? |
| 11323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11324 | (exit $ac_status); }; } && |
| 11325 | { ac_try='test -s conftest$ac_exeext' |
| 11326 | { (case "(($ac_try" in |
| 11327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11328 | *) ac_try_echo=$ac_try;; |
| 11329 | esac |
| 11330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11331 | (eval "$ac_try") 2>&5 |
| 11332 | ac_status=$? |
| 11333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11334 | (exit $ac_status); }; }; then |
| 11335 | ac_cv_func__dyld_func_lookup=yes |
| 11336 | else |
| 11337 | echo "$as_me: failed program was:" >&5 |
| 11338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11339 | |
| 11340 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11341 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11342 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11343 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11344 | conftest$ac_exeext conftest.$ac_ext |
| 11345 | fi |
| 11346 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 11347 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 11348 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 11349 | |
| 11350 | cat >>confdefs.h <<\_ACEOF |
| 11351 | #define HAVE_DYLD 1 |
| 11352 | _ACEOF |
| 11353 | |
| 11354 | fi |
| 11355 | |
| 11356 | |
| 11357 | fi |
| 11358 | |
| 11359 | |
| 11360 | fi |
| 11361 | |
| 11362 | |
| 11363 | fi |
| 11364 | |
| 11365 | rm -f core conftest.err conftest.$ac_objext \ |
| 11366 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11367 | |
| 11368 | fi |
| 11369 | |
| 11370 | |
| 11371 | fi |
| 11372 | |
| 11373 | |
| 11374 | fi |
| 11375 | |
| 11376 | |
| 11377 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 11378 | then |
| 11379 | lt_save_LIBS="$LIBS" |
| 11380 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11381 | |
| 11382 | for ac_func in dlerror |
| 11383 | do |
| 11384 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11385 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11386 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11387 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11389 | else |
| 11390 | cat >conftest.$ac_ext <<_ACEOF |
| 11391 | /* confdefs.h. */ |
| 11392 | _ACEOF |
| 11393 | cat confdefs.h >>conftest.$ac_ext |
| 11394 | cat >>conftest.$ac_ext <<_ACEOF |
| 11395 | /* end confdefs.h. */ |
| 11396 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11397 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11398 | #define $ac_func innocuous_$ac_func |
| 11399 | |
| 11400 | /* System header to define __stub macros and hopefully few prototypes, |
| 11401 | which can conflict with char $ac_func (); below. |
| 11402 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11403 | <limits.h> exists even on freestanding compilers. */ |
| 11404 | |
| 11405 | #ifdef __STDC__ |
| 11406 | # include <limits.h> |
| 11407 | #else |
| 11408 | # include <assert.h> |
| 11409 | #endif |
| 11410 | |
| 11411 | #undef $ac_func |
| 11412 | |
| 11413 | /* Override any GCC internal prototype to avoid an error. |
| 11414 | Use char because int might match the return type of a GCC |
| 11415 | builtin and then its argument prototype would still apply. */ |
| 11416 | #ifdef __cplusplus |
| 11417 | extern "C" |
| 11418 | #endif |
| 11419 | char $ac_func (); |
| 11420 | /* The GNU C library defines this for functions which it implements |
| 11421 | to always fail with ENOSYS. Some functions are actually named |
| 11422 | something starting with __ and the normal name is an alias. */ |
| 11423 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11424 | choke me |
| 11425 | #endif |
| 11426 | |
| 11427 | int |
| 11428 | main () |
| 11429 | { |
| 11430 | return $ac_func (); |
| 11431 | ; |
| 11432 | return 0; |
| 11433 | } |
| 11434 | _ACEOF |
| 11435 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11436 | if { (ac_try="$ac_link" |
| 11437 | case "(($ac_try" in |
| 11438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11439 | *) ac_try_echo=$ac_try;; |
| 11440 | esac |
| 11441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11442 | (eval "$ac_link") 2>conftest.er1 |
| 11443 | ac_status=$? |
| 11444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11445 | rm -f conftest.er1 |
| 11446 | cat conftest.err >&5 |
| 11447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11448 | (exit $ac_status); } && |
| 11449 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11450 | { (case "(($ac_try" in |
| 11451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11452 | *) ac_try_echo=$ac_try;; |
| 11453 | esac |
| 11454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11455 | (eval "$ac_try") 2>&5 |
| 11456 | ac_status=$? |
| 11457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11458 | (exit $ac_status); }; } && |
| 11459 | { ac_try='test -s conftest$ac_exeext' |
| 11460 | { (case "(($ac_try" in |
| 11461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11462 | *) ac_try_echo=$ac_try;; |
| 11463 | esac |
| 11464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11465 | (eval "$ac_try") 2>&5 |
| 11466 | ac_status=$? |
| 11467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11468 | (exit $ac_status); }; }; then |
| 11469 | eval "$as_ac_var=yes" |
| 11470 | else |
| 11471 | echo "$as_me: failed program was:" >&5 |
| 11472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11473 | |
| 11474 | eval "$as_ac_var=no" |
| 11475 | fi |
| 11476 | |
| 11477 | rm -f core conftest.err conftest.$ac_objext \ |
| 11478 | conftest$ac_exeext conftest.$ac_ext |
| 11479 | fi |
| 11480 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11481 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11482 | echo "${ECHO_T}$ac_res" >&6; } |
| 11483 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11484 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11485 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11486 | _ACEOF |
| 11487 | |
| 11488 | fi |
| 11489 | done |
| 11490 | |
| 11491 | LIBS="$lt_save_LIBS" |
| 11492 | fi |
| 11493 | ac_ext=c |
| 11494 | ac_cpp='$CPP $CPPFLAGS' |
| 11495 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11496 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11497 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11498 | |
| 11499 | |
| 11500 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11501 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 11502 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 11503 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 11504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11505 | else |
| 11506 | ac_cv_sys_symbol_underscore=no |
| 11507 | cat > conftest.$ac_ext <<EOF |
| 11508 | void nm_test_func(){} |
| 11509 | int main(){nm_test_func;return 0;} |
| 11510 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11512 | (eval $ac_compile) 2>&5 |
| 11513 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11515 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11516 | # Now try to grab the symbols. |
| 11517 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11518 | 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] | 11519 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 11520 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11522 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11523 | # See whether the symbols have a leading underscore. |
| 11524 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 11525 | ac_cv_sys_symbol_underscore=yes |
| 11526 | else |
| 11527 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 11528 | : |
| 11529 | else |
| 11530 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 11531 | fi |
| 11532 | fi |
| 11533 | else |
| 11534 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11535 | fi |
| 11536 | else |
| 11537 | echo "configure: failed program was:" >&5 |
| 11538 | cat conftest.c >&5 |
| 11539 | fi |
| 11540 | rm -rf conftest* |
| 11541 | |
| 11542 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11543 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 11544 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11545 | |
| 11546 | |
| 11547 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 11548 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 11549 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11550 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 11551 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 11552 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 11553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11554 | else |
| 11555 | libltdl_cv_need_uscore=unknown |
| 11556 | save_LIBS="$LIBS" |
| 11557 | LIBS="$LIBS $LIBADD_DL" |
| 11558 | if test "$cross_compiling" = yes; then : |
| 11559 | libltdl_cv_need_uscore=cross |
| 11560 | else |
| 11561 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11562 | lt_status=$lt_dlunknown |
| 11563 | cat > conftest.$ac_ext <<EOF |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 11564 | #line 11564 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11565 | #include "confdefs.h" |
| 11566 | |
| 11567 | #if HAVE_DLFCN_H |
| 11568 | #include <dlfcn.h> |
| 11569 | #endif |
| 11570 | |
| 11571 | #include <stdio.h> |
| 11572 | |
| 11573 | #ifdef RTLD_GLOBAL |
| 11574 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11575 | #else |
| 11576 | # ifdef DL_GLOBAL |
| 11577 | # define LT_DLGLOBAL DL_GLOBAL |
| 11578 | # else |
| 11579 | # define LT_DLGLOBAL 0 |
| 11580 | # endif |
| 11581 | #endif |
| 11582 | |
| 11583 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11584 | find out it does not work in some platform. */ |
| 11585 | #ifndef LT_DLLAZY_OR_NOW |
| 11586 | # ifdef RTLD_LAZY |
| 11587 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11588 | # else |
| 11589 | # ifdef DL_LAZY |
| 11590 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11591 | # else |
| 11592 | # ifdef RTLD_NOW |
| 11593 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11594 | # else |
| 11595 | # ifdef DL_NOW |
| 11596 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11597 | # else |
| 11598 | # define LT_DLLAZY_OR_NOW 0 |
| 11599 | # endif |
| 11600 | # endif |
| 11601 | # endif |
| 11602 | # endif |
| 11603 | #endif |
| 11604 | |
| 11605 | #ifdef __cplusplus |
| 11606 | extern "C" void exit (int); |
| 11607 | #endif |
| 11608 | |
| 11609 | void fnord() { int i=42;} |
| 11610 | int main () |
| 11611 | { |
| 11612 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11613 | int status = $lt_dlunknown; |
| 11614 | |
| 11615 | if (self) |
| 11616 | { |
| 11617 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11618 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11619 | /* dlclose (self); */ |
| 11620 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11621 | else |
| 11622 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11623 | |
| 11624 | exit (status); |
| 11625 | } |
| 11626 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11628 | (eval $ac_link) 2>&5 |
| 11629 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11631 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11632 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11633 | lt_status=$? |
| 11634 | case x$lt_status in |
| 11635 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 11636 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11637 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11638 | esac |
| 11639 | else : |
| 11640 | # compilation failed |
| 11641 | |
| 11642 | fi |
| 11643 | fi |
| 11644 | rm -fr conftest* |
| 11645 | |
| 11646 | LIBS="$save_LIBS" |
| 11647 | |
| 11648 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11649 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 11650 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11651 | fi |
| 11652 | fi |
| 11653 | |
| 11654 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11655 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11656 | cat >>confdefs.h <<\_ACEOF |
| 11657 | #define NEED_USCORE 1 |
| 11658 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11659 | |
| 11660 | fi |
| 11661 | |
| 11662 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11663 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11664 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 11665 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11667 | else |
| 11668 | # PORTME does your system automatically load deplibs for dlopen? |
| 11669 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11670 | # For now, we just catch OSes we know something about -- in the |
| 11671 | # future, we'll try test this programmatically. |
| 11672 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11673 | case "$host_os" in |
| 11674 | aix3*|aix4.1.*|aix4.2.*) |
| 11675 | # Unknown whether this is true for these versions of AIX, but |
| 11676 | # we want this `case' here to explicitly catch those versions. |
| 11677 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11678 | ;; |
| 11679 | aix[45]*) |
| 11680 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11681 | ;; |
| 11682 | darwin*) |
| 11683 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11684 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11685 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11686 | ;; |
| 11687 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11688 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11689 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11690 | ;; |
| 11691 | hpux10*|hpux11*) |
| 11692 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11693 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11694 | interix*) |
| 11695 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11696 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11697 | irix[12345]*|irix6.[01]*) |
| 11698 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11699 | # know how it worked for any of those versions. |
| 11700 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11701 | ;; |
| 11702 | irix*) |
| 11703 | # The case above catches anything before 6.2, and it's known that |
| 11704 | # at 6.2 and later dlopen does load deplibs. |
| 11705 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11706 | ;; |
| 11707 | netbsd*) |
| 11708 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11709 | ;; |
| 11710 | openbsd*) |
| 11711 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11712 | ;; |
| 11713 | osf[1234]*) |
| 11714 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11715 | # it did *not* use an RPATH in a shared library to find objects the |
| 11716 | # library depends on, so we explictly say `no'. |
| 11717 | libltdl_cv_sys_dlopen_deplibs=no |
| 11718 | ;; |
| 11719 | osf5.0|osf5.0a|osf5.1) |
| 11720 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11721 | # it even uses RPATH in a shared library to search for shared objects |
| 11722 | # that the library depends on, but there's no easy way to know if that |
| 11723 | # patch is installed. Since this is the case, all we can really |
| 11724 | # say is unknown -- it depends on the patch being installed. If |
| 11725 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11726 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11727 | ;; |
| 11728 | osf*) |
| 11729 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11730 | # the comments above for what we know about them. |
| 11731 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11732 | # is used to find them so we can finally say `yes'. |
| 11733 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11734 | ;; |
| 11735 | solaris*) |
| 11736 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11737 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11738 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11739 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11740 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11741 | esac |
| 11742 | |
| 11743 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11744 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11745 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11746 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11747 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11748 | cat >>confdefs.h <<\_ACEOF |
| 11749 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11750 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11751 | |
| 11752 | fi |
| 11753 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11754 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11755 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11756 | do |
| 11757 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11758 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11759 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11760 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11761 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11763 | fi |
| 11764 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11765 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11766 | echo "${ECHO_T}$ac_res" >&6; } |
| 11767 | else |
| 11768 | # Is the header compilable? |
| 11769 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11770 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11771 | cat >conftest.$ac_ext <<_ACEOF |
| 11772 | /* confdefs.h. */ |
| 11773 | _ACEOF |
| 11774 | cat confdefs.h >>conftest.$ac_ext |
| 11775 | cat >>conftest.$ac_ext <<_ACEOF |
| 11776 | /* end confdefs.h. */ |
| 11777 | $ac_includes_default |
| 11778 | #include <$ac_header> |
| 11779 | _ACEOF |
| 11780 | rm -f conftest.$ac_objext |
| 11781 | if { (ac_try="$ac_compile" |
| 11782 | case "(($ac_try" in |
| 11783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11784 | *) ac_try_echo=$ac_try;; |
| 11785 | esac |
| 11786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11787 | (eval "$ac_compile") 2>conftest.er1 |
| 11788 | ac_status=$? |
| 11789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11790 | rm -f conftest.er1 |
| 11791 | cat conftest.err >&5 |
| 11792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11793 | (exit $ac_status); } && |
| 11794 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11795 | { (case "(($ac_try" in |
| 11796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11797 | *) ac_try_echo=$ac_try;; |
| 11798 | esac |
| 11799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11800 | (eval "$ac_try") 2>&5 |
| 11801 | ac_status=$? |
| 11802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11803 | (exit $ac_status); }; } && |
| 11804 | { ac_try='test -s conftest.$ac_objext' |
| 11805 | { (case "(($ac_try" in |
| 11806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11807 | *) ac_try_echo=$ac_try;; |
| 11808 | esac |
| 11809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11810 | (eval "$ac_try") 2>&5 |
| 11811 | ac_status=$? |
| 11812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11813 | (exit $ac_status); }; }; then |
| 11814 | ac_header_compiler=yes |
| 11815 | else |
| 11816 | echo "$as_me: failed program was:" >&5 |
| 11817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11818 | |
| 11819 | ac_header_compiler=no |
| 11820 | fi |
| 11821 | |
| 11822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11823 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11824 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11825 | |
| 11826 | # Is the header present? |
| 11827 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11828 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11829 | cat >conftest.$ac_ext <<_ACEOF |
| 11830 | /* confdefs.h. */ |
| 11831 | _ACEOF |
| 11832 | cat confdefs.h >>conftest.$ac_ext |
| 11833 | cat >>conftest.$ac_ext <<_ACEOF |
| 11834 | /* end confdefs.h. */ |
| 11835 | #include <$ac_header> |
| 11836 | _ACEOF |
| 11837 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11838 | case "(($ac_try" in |
| 11839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11840 | *) ac_try_echo=$ac_try;; |
| 11841 | esac |
| 11842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11843 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11844 | ac_status=$? |
| 11845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11846 | rm -f conftest.er1 |
| 11847 | cat conftest.err >&5 |
| 11848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11849 | (exit $ac_status); } >/dev/null; then |
| 11850 | if test -s conftest.err; then |
| 11851 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11852 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11853 | else |
| 11854 | ac_cpp_err= |
| 11855 | fi |
| 11856 | else |
| 11857 | ac_cpp_err=yes |
| 11858 | fi |
| 11859 | if test -z "$ac_cpp_err"; then |
| 11860 | ac_header_preproc=yes |
| 11861 | else |
| 11862 | echo "$as_me: failed program was:" >&5 |
| 11863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11864 | |
| 11865 | ac_header_preproc=no |
| 11866 | fi |
| 11867 | |
| 11868 | rm -f conftest.err conftest.$ac_ext |
| 11869 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11870 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11871 | |
| 11872 | # So? What about this header? |
| 11873 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11874 | yes:no: ) |
| 11875 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11876 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11877 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11878 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11879 | ac_header_preproc=yes |
| 11880 | ;; |
| 11881 | no:yes:* ) |
| 11882 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11883 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11884 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11885 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11886 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11887 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11888 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11889 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11890 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11891 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11892 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11893 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11894 | ( cat <<\_ASBOX |
| 11895 | ## ----------------------------------- ## |
| 11896 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11897 | ## ----------------------------------- ## |
| 11898 | _ASBOX |
| 11899 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11900 | ;; |
| 11901 | esac |
| 11902 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11903 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11904 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11906 | else |
| 11907 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11908 | fi |
| 11909 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11910 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11911 | echo "${ECHO_T}$ac_res" >&6; } |
| 11912 | |
| 11913 | fi |
| 11914 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11915 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11916 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11917 | _ACEOF |
| 11918 | |
| 11919 | fi |
| 11920 | |
| 11921 | done |
| 11922 | |
| 11923 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11924 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11925 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 11926 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11928 | else |
| 11929 | cat >conftest.$ac_ext <<_ACEOF |
| 11930 | /* confdefs.h. */ |
| 11931 | _ACEOF |
| 11932 | cat confdefs.h >>conftest.$ac_ext |
| 11933 | cat >>conftest.$ac_ext <<_ACEOF |
| 11934 | /* end confdefs.h. */ |
| 11935 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11936 | # include <argz.h> |
| 11937 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11938 | |
| 11939 | typedef error_t ac__type_new_; |
| 11940 | int |
| 11941 | main () |
| 11942 | { |
| 11943 | if ((ac__type_new_ *) 0) |
| 11944 | return 0; |
| 11945 | if (sizeof (ac__type_new_)) |
| 11946 | return 0; |
| 11947 | ; |
| 11948 | return 0; |
| 11949 | } |
| 11950 | _ACEOF |
| 11951 | rm -f conftest.$ac_objext |
| 11952 | if { (ac_try="$ac_compile" |
| 11953 | case "(($ac_try" in |
| 11954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11955 | *) ac_try_echo=$ac_try;; |
| 11956 | esac |
| 11957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11958 | (eval "$ac_compile") 2>conftest.er1 |
| 11959 | ac_status=$? |
| 11960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11961 | rm -f conftest.er1 |
| 11962 | cat conftest.err >&5 |
| 11963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11964 | (exit $ac_status); } && |
| 11965 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11966 | { (case "(($ac_try" in |
| 11967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11968 | *) ac_try_echo=$ac_try;; |
| 11969 | esac |
| 11970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11971 | (eval "$ac_try") 2>&5 |
| 11972 | ac_status=$? |
| 11973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11974 | (exit $ac_status); }; } && |
| 11975 | { ac_try='test -s conftest.$ac_objext' |
| 11976 | { (case "(($ac_try" in |
| 11977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11978 | *) ac_try_echo=$ac_try;; |
| 11979 | esac |
| 11980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11981 | (eval "$ac_try") 2>&5 |
| 11982 | ac_status=$? |
| 11983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11984 | (exit $ac_status); }; }; then |
| 11985 | ac_cv_type_error_t=yes |
| 11986 | else |
| 11987 | echo "$as_me: failed program was:" >&5 |
| 11988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11989 | |
| 11990 | ac_cv_type_error_t=no |
| 11991 | fi |
| 11992 | |
| 11993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11994 | fi |
| 11995 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11996 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 11997 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11998 | |
| 11999 | cat >>confdefs.h <<_ACEOF |
| 12000 | #define HAVE_ERROR_T 1 |
| 12001 | _ACEOF |
| 12002 | |
| 12003 | |
| 12004 | else |
| 12005 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12006 | cat >>confdefs.h <<\_ACEOF |
| 12007 | #define error_t int |
| 12008 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12009 | |
| 12010 | fi |
| 12011 | |
| 12012 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12013 | |
| 12014 | |
| 12015 | |
| 12016 | |
| 12017 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12018 | 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] | 12019 | do |
| 12020 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12021 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12022 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12023 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12025 | else |
| 12026 | cat >conftest.$ac_ext <<_ACEOF |
| 12027 | /* confdefs.h. */ |
| 12028 | _ACEOF |
| 12029 | cat confdefs.h >>conftest.$ac_ext |
| 12030 | cat >>conftest.$ac_ext <<_ACEOF |
| 12031 | /* end confdefs.h. */ |
| 12032 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12033 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12034 | #define $ac_func innocuous_$ac_func |
| 12035 | |
| 12036 | /* System header to define __stub macros and hopefully few prototypes, |
| 12037 | which can conflict with char $ac_func (); below. |
| 12038 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12039 | <limits.h> exists even on freestanding compilers. */ |
| 12040 | |
| 12041 | #ifdef __STDC__ |
| 12042 | # include <limits.h> |
| 12043 | #else |
| 12044 | # include <assert.h> |
| 12045 | #endif |
| 12046 | |
| 12047 | #undef $ac_func |
| 12048 | |
| 12049 | /* Override any GCC internal prototype to avoid an error. |
| 12050 | Use char because int might match the return type of a GCC |
| 12051 | builtin and then its argument prototype would still apply. */ |
| 12052 | #ifdef __cplusplus |
| 12053 | extern "C" |
| 12054 | #endif |
| 12055 | char $ac_func (); |
| 12056 | /* The GNU C library defines this for functions which it implements |
| 12057 | to always fail with ENOSYS. Some functions are actually named |
| 12058 | something starting with __ and the normal name is an alias. */ |
| 12059 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12060 | choke me |
| 12061 | #endif |
| 12062 | |
| 12063 | int |
| 12064 | main () |
| 12065 | { |
| 12066 | return $ac_func (); |
| 12067 | ; |
| 12068 | return 0; |
| 12069 | } |
| 12070 | _ACEOF |
| 12071 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12072 | if { (ac_try="$ac_link" |
| 12073 | case "(($ac_try" in |
| 12074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12075 | *) ac_try_echo=$ac_try;; |
| 12076 | esac |
| 12077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12078 | (eval "$ac_link") 2>conftest.er1 |
| 12079 | ac_status=$? |
| 12080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12081 | rm -f conftest.er1 |
| 12082 | cat conftest.err >&5 |
| 12083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12084 | (exit $ac_status); } && |
| 12085 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12086 | { (case "(($ac_try" in |
| 12087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12088 | *) ac_try_echo=$ac_try;; |
| 12089 | esac |
| 12090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12091 | (eval "$ac_try") 2>&5 |
| 12092 | ac_status=$? |
| 12093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12094 | (exit $ac_status); }; } && |
| 12095 | { ac_try='test -s conftest$ac_exeext' |
| 12096 | { (case "(($ac_try" in |
| 12097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12098 | *) ac_try_echo=$ac_try;; |
| 12099 | esac |
| 12100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12101 | (eval "$ac_try") 2>&5 |
| 12102 | ac_status=$? |
| 12103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12104 | (exit $ac_status); }; }; then |
| 12105 | eval "$as_ac_var=yes" |
| 12106 | else |
| 12107 | echo "$as_me: failed program was:" >&5 |
| 12108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12109 | |
| 12110 | eval "$as_ac_var=no" |
| 12111 | fi |
| 12112 | |
| 12113 | rm -f core conftest.err conftest.$ac_objext \ |
| 12114 | conftest$ac_exeext conftest.$ac_ext |
| 12115 | fi |
| 12116 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12117 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12118 | echo "${ECHO_T}$ac_res" >&6; } |
| 12119 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12120 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12121 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12122 | _ACEOF |
| 12123 | |
| 12124 | fi |
| 12125 | done |
| 12126 | |
| 12127 | |
| 12128 | |
| 12129 | |
| 12130 | |
| 12131 | |
| 12132 | |
| 12133 | |
| 12134 | |
| 12135 | |
| 12136 | |
| 12137 | |
| 12138 | |
| 12139 | |
| 12140 | |
| 12141 | |
| 12142 | |
| 12143 | |
| 12144 | |
| 12145 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12146 | |
| 12147 | |
| 12148 | |
| 12149 | |
| 12150 | |
| 12151 | |
| 12152 | |
| 12153 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12154 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 12155 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12156 | do |
| 12157 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12158 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12159 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12160 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12161 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12163 | fi |
| 12164 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12165 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12166 | echo "${ECHO_T}$ac_res" >&6; } |
| 12167 | else |
| 12168 | # Is the header compilable? |
| 12169 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12170 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12171 | cat >conftest.$ac_ext <<_ACEOF |
| 12172 | /* confdefs.h. */ |
| 12173 | _ACEOF |
| 12174 | cat confdefs.h >>conftest.$ac_ext |
| 12175 | cat >>conftest.$ac_ext <<_ACEOF |
| 12176 | /* end confdefs.h. */ |
| 12177 | $ac_includes_default |
| 12178 | #include <$ac_header> |
| 12179 | _ACEOF |
| 12180 | rm -f conftest.$ac_objext |
| 12181 | if { (ac_try="$ac_compile" |
| 12182 | case "(($ac_try" in |
| 12183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12184 | *) ac_try_echo=$ac_try;; |
| 12185 | esac |
| 12186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12187 | (eval "$ac_compile") 2>conftest.er1 |
| 12188 | ac_status=$? |
| 12189 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12190 | rm -f conftest.er1 |
| 12191 | cat conftest.err >&5 |
| 12192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12193 | (exit $ac_status); } && |
| 12194 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12195 | { (case "(($ac_try" in |
| 12196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12197 | *) ac_try_echo=$ac_try;; |
| 12198 | esac |
| 12199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12200 | (eval "$ac_try") 2>&5 |
| 12201 | ac_status=$? |
| 12202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12203 | (exit $ac_status); }; } && |
| 12204 | { ac_try='test -s conftest.$ac_objext' |
| 12205 | { (case "(($ac_try" in |
| 12206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12207 | *) ac_try_echo=$ac_try;; |
| 12208 | esac |
| 12209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12210 | (eval "$ac_try") 2>&5 |
| 12211 | ac_status=$? |
| 12212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12213 | (exit $ac_status); }; }; then |
| 12214 | ac_header_compiler=yes |
| 12215 | else |
| 12216 | echo "$as_me: failed program was:" >&5 |
| 12217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12218 | |
| 12219 | ac_header_compiler=no |
| 12220 | fi |
| 12221 | |
| 12222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12223 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12224 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12225 | |
| 12226 | # Is the header present? |
| 12227 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12228 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12229 | cat >conftest.$ac_ext <<_ACEOF |
| 12230 | /* confdefs.h. */ |
| 12231 | _ACEOF |
| 12232 | cat confdefs.h >>conftest.$ac_ext |
| 12233 | cat >>conftest.$ac_ext <<_ACEOF |
| 12234 | /* end confdefs.h. */ |
| 12235 | #include <$ac_header> |
| 12236 | _ACEOF |
| 12237 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12238 | case "(($ac_try" in |
| 12239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12240 | *) ac_try_echo=$ac_try;; |
| 12241 | esac |
| 12242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12243 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12244 | ac_status=$? |
| 12245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12246 | rm -f conftest.er1 |
| 12247 | cat conftest.err >&5 |
| 12248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12249 | (exit $ac_status); } >/dev/null; then |
| 12250 | if test -s conftest.err; then |
| 12251 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12252 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12253 | else |
| 12254 | ac_cpp_err= |
| 12255 | fi |
| 12256 | else |
| 12257 | ac_cpp_err=yes |
| 12258 | fi |
| 12259 | if test -z "$ac_cpp_err"; then |
| 12260 | ac_header_preproc=yes |
| 12261 | else |
| 12262 | echo "$as_me: failed program was:" >&5 |
| 12263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12264 | |
| 12265 | ac_header_preproc=no |
| 12266 | fi |
| 12267 | |
| 12268 | rm -f conftest.err conftest.$ac_ext |
| 12269 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12270 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12271 | |
| 12272 | # So? What about this header? |
| 12273 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12274 | yes:no: ) |
| 12275 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12276 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12277 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12278 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12279 | ac_header_preproc=yes |
| 12280 | ;; |
| 12281 | no:yes:* ) |
| 12282 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12283 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12284 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12285 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12286 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12287 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12288 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12289 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12290 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12291 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12292 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12293 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12294 | ( cat <<\_ASBOX |
| 12295 | ## ----------------------------------- ## |
| 12296 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12297 | ## ----------------------------------- ## |
| 12298 | _ASBOX |
| 12299 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12300 | ;; |
| 12301 | esac |
| 12302 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12303 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12304 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12306 | else |
| 12307 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12308 | fi |
| 12309 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12310 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12311 | echo "${ECHO_T}$ac_res" >&6; } |
| 12312 | |
| 12313 | fi |
| 12314 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12315 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12316 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12317 | _ACEOF |
| 12318 | |
| 12319 | fi |
| 12320 | |
| 12321 | done |
| 12322 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12323 | |
| 12324 | |
| 12325 | |
| 12326 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12327 | 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] | 12328 | do |
| 12329 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12330 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12331 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12332 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12333 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 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 | else |
| 12340 | # Is the header compilable? |
| 12341 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12342 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12343 | cat >conftest.$ac_ext <<_ACEOF |
| 12344 | /* confdefs.h. */ |
| 12345 | _ACEOF |
| 12346 | cat confdefs.h >>conftest.$ac_ext |
| 12347 | cat >>conftest.$ac_ext <<_ACEOF |
| 12348 | /* end confdefs.h. */ |
| 12349 | $ac_includes_default |
| 12350 | #include <$ac_header> |
| 12351 | _ACEOF |
| 12352 | rm -f conftest.$ac_objext |
| 12353 | if { (ac_try="$ac_compile" |
| 12354 | case "(($ac_try" in |
| 12355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12356 | *) ac_try_echo=$ac_try;; |
| 12357 | esac |
| 12358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12359 | (eval "$ac_compile") 2>conftest.er1 |
| 12360 | ac_status=$? |
| 12361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12362 | rm -f conftest.er1 |
| 12363 | cat conftest.err >&5 |
| 12364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12365 | (exit $ac_status); } && |
| 12366 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12367 | { (case "(($ac_try" in |
| 12368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12369 | *) ac_try_echo=$ac_try;; |
| 12370 | esac |
| 12371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12372 | (eval "$ac_try") 2>&5 |
| 12373 | ac_status=$? |
| 12374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12375 | (exit $ac_status); }; } && |
| 12376 | { ac_try='test -s conftest.$ac_objext' |
| 12377 | { (case "(($ac_try" in |
| 12378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12379 | *) ac_try_echo=$ac_try;; |
| 12380 | esac |
| 12381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12382 | (eval "$ac_try") 2>&5 |
| 12383 | ac_status=$? |
| 12384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12385 | (exit $ac_status); }; }; then |
| 12386 | ac_header_compiler=yes |
| 12387 | else |
| 12388 | echo "$as_me: failed program was:" >&5 |
| 12389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12390 | |
| 12391 | ac_header_compiler=no |
| 12392 | fi |
| 12393 | |
| 12394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12395 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12396 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12397 | |
| 12398 | # Is the header present? |
| 12399 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12400 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12401 | cat >conftest.$ac_ext <<_ACEOF |
| 12402 | /* confdefs.h. */ |
| 12403 | _ACEOF |
| 12404 | cat confdefs.h >>conftest.$ac_ext |
| 12405 | cat >>conftest.$ac_ext <<_ACEOF |
| 12406 | /* end confdefs.h. */ |
| 12407 | #include <$ac_header> |
| 12408 | _ACEOF |
| 12409 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12410 | case "(($ac_try" in |
| 12411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12412 | *) ac_try_echo=$ac_try;; |
| 12413 | esac |
| 12414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12415 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12416 | ac_status=$? |
| 12417 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12418 | rm -f conftest.er1 |
| 12419 | cat conftest.err >&5 |
| 12420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12421 | (exit $ac_status); } >/dev/null; then |
| 12422 | if test -s conftest.err; then |
| 12423 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12424 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12425 | else |
| 12426 | ac_cpp_err= |
| 12427 | fi |
| 12428 | else |
| 12429 | ac_cpp_err=yes |
| 12430 | fi |
| 12431 | if test -z "$ac_cpp_err"; then |
| 12432 | ac_header_preproc=yes |
| 12433 | else |
| 12434 | echo "$as_me: failed program was:" >&5 |
| 12435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12436 | |
| 12437 | ac_header_preproc=no |
| 12438 | fi |
| 12439 | |
| 12440 | rm -f conftest.err conftest.$ac_ext |
| 12441 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12442 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12443 | |
| 12444 | # So? What about this header? |
| 12445 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12446 | yes:no: ) |
| 12447 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12448 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12449 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12450 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12451 | ac_header_preproc=yes |
| 12452 | ;; |
| 12453 | no:yes:* ) |
| 12454 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12455 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12456 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12457 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12458 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12459 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12460 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12461 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12462 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12463 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12464 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12465 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12466 | ( cat <<\_ASBOX |
| 12467 | ## ----------------------------------- ## |
| 12468 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12469 | ## ----------------------------------- ## |
| 12470 | _ASBOX |
| 12471 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12472 | ;; |
| 12473 | esac |
| 12474 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12475 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12476 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12478 | else |
| 12479 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12480 | fi |
| 12481 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12482 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12483 | echo "${ECHO_T}$ac_res" >&6; } |
| 12484 | |
| 12485 | fi |
| 12486 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12487 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12488 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12489 | _ACEOF |
| 12490 | |
| 12491 | fi |
| 12492 | |
| 12493 | done |
| 12494 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12495 | |
| 12496 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12497 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12498 | do |
| 12499 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12500 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 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 | fi |
| 12506 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12507 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12508 | echo "${ECHO_T}$ac_res" >&6; } |
| 12509 | else |
| 12510 | # Is the header compilable? |
| 12511 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12512 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12513 | cat >conftest.$ac_ext <<_ACEOF |
| 12514 | /* confdefs.h. */ |
| 12515 | _ACEOF |
| 12516 | cat confdefs.h >>conftest.$ac_ext |
| 12517 | cat >>conftest.$ac_ext <<_ACEOF |
| 12518 | /* end confdefs.h. */ |
| 12519 | $ac_includes_default |
| 12520 | #include <$ac_header> |
| 12521 | _ACEOF |
| 12522 | rm -f conftest.$ac_objext |
| 12523 | if { (ac_try="$ac_compile" |
| 12524 | case "(($ac_try" in |
| 12525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12526 | *) ac_try_echo=$ac_try;; |
| 12527 | esac |
| 12528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12529 | (eval "$ac_compile") 2>conftest.er1 |
| 12530 | ac_status=$? |
| 12531 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12532 | rm -f conftest.er1 |
| 12533 | cat conftest.err >&5 |
| 12534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12535 | (exit $ac_status); } && |
| 12536 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12537 | { (case "(($ac_try" in |
| 12538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12539 | *) ac_try_echo=$ac_try;; |
| 12540 | esac |
| 12541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12542 | (eval "$ac_try") 2>&5 |
| 12543 | ac_status=$? |
| 12544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12545 | (exit $ac_status); }; } && |
| 12546 | { ac_try='test -s conftest.$ac_objext' |
| 12547 | { (case "(($ac_try" in |
| 12548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12549 | *) ac_try_echo=$ac_try;; |
| 12550 | esac |
| 12551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12552 | (eval "$ac_try") 2>&5 |
| 12553 | ac_status=$? |
| 12554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12555 | (exit $ac_status); }; }; then |
| 12556 | ac_header_compiler=yes |
| 12557 | else |
| 12558 | echo "$as_me: failed program was:" >&5 |
| 12559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12560 | |
| 12561 | ac_header_compiler=no |
| 12562 | fi |
| 12563 | |
| 12564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12565 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12566 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12567 | |
| 12568 | # Is the header present? |
| 12569 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12570 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12571 | cat >conftest.$ac_ext <<_ACEOF |
| 12572 | /* confdefs.h. */ |
| 12573 | _ACEOF |
| 12574 | cat confdefs.h >>conftest.$ac_ext |
| 12575 | cat >>conftest.$ac_ext <<_ACEOF |
| 12576 | /* end confdefs.h. */ |
| 12577 | #include <$ac_header> |
| 12578 | _ACEOF |
| 12579 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12580 | case "(($ac_try" in |
| 12581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12582 | *) ac_try_echo=$ac_try;; |
| 12583 | esac |
| 12584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12585 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12586 | ac_status=$? |
| 12587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12588 | rm -f conftest.er1 |
| 12589 | cat conftest.err >&5 |
| 12590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12591 | (exit $ac_status); } >/dev/null; then |
| 12592 | if test -s conftest.err; then |
| 12593 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12594 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12595 | else |
| 12596 | ac_cpp_err= |
| 12597 | fi |
| 12598 | else |
| 12599 | ac_cpp_err=yes |
| 12600 | fi |
| 12601 | if test -z "$ac_cpp_err"; then |
| 12602 | ac_header_preproc=yes |
| 12603 | else |
| 12604 | echo "$as_me: failed program was:" >&5 |
| 12605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12606 | |
| 12607 | ac_header_preproc=no |
| 12608 | fi |
| 12609 | |
| 12610 | rm -f conftest.err conftest.$ac_ext |
| 12611 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12612 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12613 | |
| 12614 | # So? What about this header? |
| 12615 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12616 | yes:no: ) |
| 12617 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12618 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12619 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12620 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12621 | ac_header_preproc=yes |
| 12622 | ;; |
| 12623 | no:yes:* ) |
| 12624 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12625 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12626 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12627 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12628 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12629 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12630 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12631 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12632 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12633 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12634 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12635 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12636 | ( cat <<\_ASBOX |
| 12637 | ## ----------------------------------- ## |
| 12638 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12639 | ## ----------------------------------- ## |
| 12640 | _ASBOX |
| 12641 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12642 | ;; |
| 12643 | esac |
| 12644 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12645 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12646 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12648 | else |
| 12649 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12650 | fi |
| 12651 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12652 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12653 | echo "${ECHO_T}$ac_res" >&6; } |
| 12654 | |
| 12655 | fi |
| 12656 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12657 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12658 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12659 | _ACEOF |
| 12660 | break |
| 12661 | fi |
| 12662 | |
| 12663 | done |
| 12664 | |
| 12665 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12666 | |
| 12667 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12668 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12669 | do |
| 12670 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12671 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12672 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12673 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12675 | else |
| 12676 | cat >conftest.$ac_ext <<_ACEOF |
| 12677 | /* confdefs.h. */ |
| 12678 | _ACEOF |
| 12679 | cat confdefs.h >>conftest.$ac_ext |
| 12680 | cat >>conftest.$ac_ext <<_ACEOF |
| 12681 | /* end confdefs.h. */ |
| 12682 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12683 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12684 | #define $ac_func innocuous_$ac_func |
| 12685 | |
| 12686 | /* System header to define __stub macros and hopefully few prototypes, |
| 12687 | which can conflict with char $ac_func (); below. |
| 12688 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12689 | <limits.h> exists even on freestanding compilers. */ |
| 12690 | |
| 12691 | #ifdef __STDC__ |
| 12692 | # include <limits.h> |
| 12693 | #else |
| 12694 | # include <assert.h> |
| 12695 | #endif |
| 12696 | |
| 12697 | #undef $ac_func |
| 12698 | |
| 12699 | /* Override any GCC internal prototype to avoid an error. |
| 12700 | Use char because int might match the return type of a GCC |
| 12701 | builtin and then its argument prototype would still apply. */ |
| 12702 | #ifdef __cplusplus |
| 12703 | extern "C" |
| 12704 | #endif |
| 12705 | char $ac_func (); |
| 12706 | /* The GNU C library defines this for functions which it implements |
| 12707 | to always fail with ENOSYS. Some functions are actually named |
| 12708 | something starting with __ and the normal name is an alias. */ |
| 12709 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12710 | choke me |
| 12711 | #endif |
| 12712 | |
| 12713 | int |
| 12714 | main () |
| 12715 | { |
| 12716 | return $ac_func (); |
| 12717 | ; |
| 12718 | return 0; |
| 12719 | } |
| 12720 | _ACEOF |
| 12721 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12722 | if { (ac_try="$ac_link" |
| 12723 | case "(($ac_try" in |
| 12724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12725 | *) ac_try_echo=$ac_try;; |
| 12726 | esac |
| 12727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12728 | (eval "$ac_link") 2>conftest.er1 |
| 12729 | ac_status=$? |
| 12730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12731 | rm -f conftest.er1 |
| 12732 | cat conftest.err >&5 |
| 12733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12734 | (exit $ac_status); } && |
| 12735 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12736 | { (case "(($ac_try" in |
| 12737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12738 | *) ac_try_echo=$ac_try;; |
| 12739 | esac |
| 12740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12741 | (eval "$ac_try") 2>&5 |
| 12742 | ac_status=$? |
| 12743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12744 | (exit $ac_status); }; } && |
| 12745 | { ac_try='test -s conftest$ac_exeext' |
| 12746 | { (case "(($ac_try" in |
| 12747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12748 | *) ac_try_echo=$ac_try;; |
| 12749 | esac |
| 12750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12751 | (eval "$ac_try") 2>&5 |
| 12752 | ac_status=$? |
| 12753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12754 | (exit $ac_status); }; }; then |
| 12755 | eval "$as_ac_var=yes" |
| 12756 | else |
| 12757 | echo "$as_me: failed program was:" >&5 |
| 12758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12759 | |
| 12760 | eval "$as_ac_var=no" |
| 12761 | fi |
| 12762 | |
| 12763 | rm -f core conftest.err conftest.$ac_objext \ |
| 12764 | conftest$ac_exeext conftest.$ac_ext |
| 12765 | fi |
| 12766 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12767 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12768 | echo "${ECHO_T}$ac_res" >&6; } |
| 12769 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12770 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12771 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12772 | _ACEOF |
| 12773 | break |
| 12774 | fi |
| 12775 | done |
| 12776 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12777 | |
| 12778 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12779 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12780 | do |
| 12781 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12782 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12783 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12784 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12786 | else |
| 12787 | cat >conftest.$ac_ext <<_ACEOF |
| 12788 | /* confdefs.h. */ |
| 12789 | _ACEOF |
| 12790 | cat confdefs.h >>conftest.$ac_ext |
| 12791 | cat >>conftest.$ac_ext <<_ACEOF |
| 12792 | /* end confdefs.h. */ |
| 12793 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12794 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12795 | #define $ac_func innocuous_$ac_func |
| 12796 | |
| 12797 | /* System header to define __stub macros and hopefully few prototypes, |
| 12798 | which can conflict with char $ac_func (); below. |
| 12799 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12800 | <limits.h> exists even on freestanding compilers. */ |
| 12801 | |
| 12802 | #ifdef __STDC__ |
| 12803 | # include <limits.h> |
| 12804 | #else |
| 12805 | # include <assert.h> |
| 12806 | #endif |
| 12807 | |
| 12808 | #undef $ac_func |
| 12809 | |
| 12810 | /* Override any GCC internal prototype to avoid an error. |
| 12811 | Use char because int might match the return type of a GCC |
| 12812 | builtin and then its argument prototype would still apply. */ |
| 12813 | #ifdef __cplusplus |
| 12814 | extern "C" |
| 12815 | #endif |
| 12816 | char $ac_func (); |
| 12817 | /* The GNU C library defines this for functions which it implements |
| 12818 | to always fail with ENOSYS. Some functions are actually named |
| 12819 | something starting with __ and the normal name is an alias. */ |
| 12820 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12821 | choke me |
| 12822 | #endif |
| 12823 | |
| 12824 | int |
| 12825 | main () |
| 12826 | { |
| 12827 | return $ac_func (); |
| 12828 | ; |
| 12829 | return 0; |
| 12830 | } |
| 12831 | _ACEOF |
| 12832 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12833 | if { (ac_try="$ac_link" |
| 12834 | case "(($ac_try" in |
| 12835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12836 | *) ac_try_echo=$ac_try;; |
| 12837 | esac |
| 12838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12839 | (eval "$ac_link") 2>conftest.er1 |
| 12840 | ac_status=$? |
| 12841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12842 | rm -f conftest.er1 |
| 12843 | cat conftest.err >&5 |
| 12844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12845 | (exit $ac_status); } && |
| 12846 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12847 | { (case "(($ac_try" in |
| 12848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12849 | *) ac_try_echo=$ac_try;; |
| 12850 | esac |
| 12851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12852 | (eval "$ac_try") 2>&5 |
| 12853 | ac_status=$? |
| 12854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12855 | (exit $ac_status); }; } && |
| 12856 | { ac_try='test -s conftest$ac_exeext' |
| 12857 | { (case "(($ac_try" in |
| 12858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12859 | *) ac_try_echo=$ac_try;; |
| 12860 | esac |
| 12861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12862 | (eval "$ac_try") 2>&5 |
| 12863 | ac_status=$? |
| 12864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12865 | (exit $ac_status); }; }; then |
| 12866 | eval "$as_ac_var=yes" |
| 12867 | else |
| 12868 | echo "$as_me: failed program was:" >&5 |
| 12869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12870 | |
| 12871 | eval "$as_ac_var=no" |
| 12872 | fi |
| 12873 | |
| 12874 | rm -f core conftest.err conftest.$ac_objext \ |
| 12875 | conftest$ac_exeext conftest.$ac_ext |
| 12876 | fi |
| 12877 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12878 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12879 | echo "${ECHO_T}$ac_res" >&6; } |
| 12880 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12881 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12882 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12883 | _ACEOF |
| 12884 | break |
| 12885 | fi |
| 12886 | done |
| 12887 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12888 | |
| 12889 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12890 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12891 | do |
| 12892 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12893 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12894 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12895 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12897 | else |
| 12898 | cat >conftest.$ac_ext <<_ACEOF |
| 12899 | /* confdefs.h. */ |
| 12900 | _ACEOF |
| 12901 | cat confdefs.h >>conftest.$ac_ext |
| 12902 | cat >>conftest.$ac_ext <<_ACEOF |
| 12903 | /* end confdefs.h. */ |
| 12904 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12905 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12906 | #define $ac_func innocuous_$ac_func |
| 12907 | |
| 12908 | /* System header to define __stub macros and hopefully few prototypes, |
| 12909 | which can conflict with char $ac_func (); below. |
| 12910 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12911 | <limits.h> exists even on freestanding compilers. */ |
| 12912 | |
| 12913 | #ifdef __STDC__ |
| 12914 | # include <limits.h> |
| 12915 | #else |
| 12916 | # include <assert.h> |
| 12917 | #endif |
| 12918 | |
| 12919 | #undef $ac_func |
| 12920 | |
| 12921 | /* Override any GCC internal prototype to avoid an error. |
| 12922 | Use char because int might match the return type of a GCC |
| 12923 | builtin and then its argument prototype would still apply. */ |
| 12924 | #ifdef __cplusplus |
| 12925 | extern "C" |
| 12926 | #endif |
| 12927 | char $ac_func (); |
| 12928 | /* The GNU C library defines this for functions which it implements |
| 12929 | to always fail with ENOSYS. Some functions are actually named |
| 12930 | something starting with __ and the normal name is an alias. */ |
| 12931 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12932 | choke me |
| 12933 | #endif |
| 12934 | |
| 12935 | int |
| 12936 | main () |
| 12937 | { |
| 12938 | return $ac_func (); |
| 12939 | ; |
| 12940 | return 0; |
| 12941 | } |
| 12942 | _ACEOF |
| 12943 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12944 | if { (ac_try="$ac_link" |
| 12945 | case "(($ac_try" in |
| 12946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12947 | *) ac_try_echo=$ac_try;; |
| 12948 | esac |
| 12949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12950 | (eval "$ac_link") 2>conftest.er1 |
| 12951 | ac_status=$? |
| 12952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12953 | rm -f conftest.er1 |
| 12954 | cat conftest.err >&5 |
| 12955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12956 | (exit $ac_status); } && |
| 12957 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12958 | { (case "(($ac_try" in |
| 12959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12960 | *) ac_try_echo=$ac_try;; |
| 12961 | esac |
| 12962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12963 | (eval "$ac_try") 2>&5 |
| 12964 | ac_status=$? |
| 12965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12966 | (exit $ac_status); }; } && |
| 12967 | { ac_try='test -s conftest$ac_exeext' |
| 12968 | { (case "(($ac_try" in |
| 12969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12970 | *) ac_try_echo=$ac_try;; |
| 12971 | esac |
| 12972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12973 | (eval "$ac_try") 2>&5 |
| 12974 | ac_status=$? |
| 12975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12976 | (exit $ac_status); }; }; then |
| 12977 | eval "$as_ac_var=yes" |
| 12978 | else |
| 12979 | echo "$as_me: failed program was:" >&5 |
| 12980 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12981 | |
| 12982 | eval "$as_ac_var=no" |
| 12983 | fi |
| 12984 | |
| 12985 | rm -f core conftest.err conftest.$ac_objext \ |
| 12986 | conftest$ac_exeext conftest.$ac_ext |
| 12987 | fi |
| 12988 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12989 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12990 | echo "${ECHO_T}$ac_res" >&6; } |
| 12991 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12992 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12993 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12994 | _ACEOF |
| 12995 | break |
| 12996 | fi |
| 12997 | done |
| 12998 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12999 | |
| 13000 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13001 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13002 | do |
| 13003 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13004 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13005 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 13006 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 13007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13008 | else |
| 13009 | cat >conftest.$ac_ext <<_ACEOF |
| 13010 | /* confdefs.h. */ |
| 13011 | _ACEOF |
| 13012 | cat confdefs.h >>conftest.$ac_ext |
| 13013 | cat >>conftest.$ac_ext <<_ACEOF |
| 13014 | /* end confdefs.h. */ |
| 13015 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13016 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13017 | #define $ac_func innocuous_$ac_func |
| 13018 | |
| 13019 | /* System header to define __stub macros and hopefully few prototypes, |
| 13020 | which can conflict with char $ac_func (); below. |
| 13021 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13022 | <limits.h> exists even on freestanding compilers. */ |
| 13023 | |
| 13024 | #ifdef __STDC__ |
| 13025 | # include <limits.h> |
| 13026 | #else |
| 13027 | # include <assert.h> |
| 13028 | #endif |
| 13029 | |
| 13030 | #undef $ac_func |
| 13031 | |
| 13032 | /* Override any GCC internal prototype to avoid an error. |
| 13033 | Use char because int might match the return type of a GCC |
| 13034 | builtin and then its argument prototype would still apply. */ |
| 13035 | #ifdef __cplusplus |
| 13036 | extern "C" |
| 13037 | #endif |
| 13038 | char $ac_func (); |
| 13039 | /* The GNU C library defines this for functions which it implements |
| 13040 | to always fail with ENOSYS. Some functions are actually named |
| 13041 | something starting with __ and the normal name is an alias. */ |
| 13042 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 13043 | choke me |
| 13044 | #endif |
| 13045 | |
| 13046 | int |
| 13047 | main () |
| 13048 | { |
| 13049 | return $ac_func (); |
| 13050 | ; |
| 13051 | return 0; |
| 13052 | } |
| 13053 | _ACEOF |
| 13054 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13055 | if { (ac_try="$ac_link" |
| 13056 | case "(($ac_try" in |
| 13057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13058 | *) ac_try_echo=$ac_try;; |
| 13059 | esac |
| 13060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13061 | (eval "$ac_link") 2>conftest.er1 |
| 13062 | ac_status=$? |
| 13063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13064 | rm -f conftest.er1 |
| 13065 | cat conftest.err >&5 |
| 13066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13067 | (exit $ac_status); } && |
| 13068 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13069 | { (case "(($ac_try" in |
| 13070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13071 | *) ac_try_echo=$ac_try;; |
| 13072 | esac |
| 13073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13074 | (eval "$ac_try") 2>&5 |
| 13075 | ac_status=$? |
| 13076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13077 | (exit $ac_status); }; } && |
| 13078 | { ac_try='test -s conftest$ac_exeext' |
| 13079 | { (case "(($ac_try" in |
| 13080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13081 | *) ac_try_echo=$ac_try;; |
| 13082 | esac |
| 13083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13084 | (eval "$ac_try") 2>&5 |
| 13085 | ac_status=$? |
| 13086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13087 | (exit $ac_status); }; }; then |
| 13088 | eval "$as_ac_var=yes" |
| 13089 | else |
| 13090 | echo "$as_me: failed program was:" >&5 |
| 13091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13092 | |
| 13093 | eval "$as_ac_var=no" |
| 13094 | fi |
| 13095 | |
| 13096 | rm -f core conftest.err conftest.$ac_objext \ |
| 13097 | conftest$ac_exeext conftest.$ac_ext |
| 13098 | fi |
| 13099 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13100 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13101 | echo "${ECHO_T}$ac_res" >&6; } |
| 13102 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13103 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13104 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13105 | _ACEOF |
| 13106 | |
| 13107 | fi |
| 13108 | done |
| 13109 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13110 | |
| 13111 | |
| 13112 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13113 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13114 | do |
| 13115 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13116 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13117 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 13118 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 13119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13120 | else |
| 13121 | cat >conftest.$ac_ext <<_ACEOF |
| 13122 | /* confdefs.h. */ |
| 13123 | _ACEOF |
| 13124 | cat confdefs.h >>conftest.$ac_ext |
| 13125 | cat >>conftest.$ac_ext <<_ACEOF |
| 13126 | /* end confdefs.h. */ |
| 13127 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13128 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13129 | #define $ac_func innocuous_$ac_func |
| 13130 | |
| 13131 | /* System header to define __stub macros and hopefully few prototypes, |
| 13132 | which can conflict with char $ac_func (); below. |
| 13133 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13134 | <limits.h> exists even on freestanding compilers. */ |
| 13135 | |
| 13136 | #ifdef __STDC__ |
| 13137 | # include <limits.h> |
| 13138 | #else |
| 13139 | # include <assert.h> |
| 13140 | #endif |
| 13141 | |
| 13142 | #undef $ac_func |
| 13143 | |
| 13144 | /* Override any GCC internal prototype to avoid an error. |
| 13145 | Use char because int might match the return type of a GCC |
| 13146 | builtin and then its argument prototype would still apply. */ |
| 13147 | #ifdef __cplusplus |
| 13148 | extern "C" |
| 13149 | #endif |
| 13150 | char $ac_func (); |
| 13151 | /* The GNU C library defines this for functions which it implements |
| 13152 | to always fail with ENOSYS. Some functions are actually named |
| 13153 | something starting with __ and the normal name is an alias. */ |
| 13154 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 13155 | choke me |
| 13156 | #endif |
| 13157 | |
| 13158 | int |
| 13159 | main () |
| 13160 | { |
| 13161 | return $ac_func (); |
| 13162 | ; |
| 13163 | return 0; |
| 13164 | } |
| 13165 | _ACEOF |
| 13166 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13167 | if { (ac_try="$ac_link" |
| 13168 | case "(($ac_try" in |
| 13169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13170 | *) ac_try_echo=$ac_try;; |
| 13171 | esac |
| 13172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13173 | (eval "$ac_link") 2>conftest.er1 |
| 13174 | ac_status=$? |
| 13175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13176 | rm -f conftest.er1 |
| 13177 | cat conftest.err >&5 |
| 13178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13179 | (exit $ac_status); } && |
| 13180 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13181 | { (case "(($ac_try" in |
| 13182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13183 | *) ac_try_echo=$ac_try;; |
| 13184 | esac |
| 13185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13186 | (eval "$ac_try") 2>&5 |
| 13187 | ac_status=$? |
| 13188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13189 | (exit $ac_status); }; } && |
| 13190 | { ac_try='test -s conftest$ac_exeext' |
| 13191 | { (case "(($ac_try" in |
| 13192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13193 | *) ac_try_echo=$ac_try;; |
| 13194 | esac |
| 13195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13196 | (eval "$ac_try") 2>&5 |
| 13197 | ac_status=$? |
| 13198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13199 | (exit $ac_status); }; }; then |
| 13200 | eval "$as_ac_var=yes" |
| 13201 | else |
| 13202 | echo "$as_me: failed program was:" >&5 |
| 13203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13204 | |
| 13205 | eval "$as_ac_var=no" |
| 13206 | fi |
| 13207 | |
| 13208 | rm -f core conftest.err conftest.$ac_objext \ |
| 13209 | conftest$ac_exeext conftest.$ac_ext |
| 13210 | fi |
| 13211 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13212 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13213 | echo "${ECHO_T}$ac_res" >&6; } |
| 13214 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13215 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13216 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13217 | _ACEOF |
| 13218 | |
| 13219 | fi |
| 13220 | done |
| 13221 | |
| 13222 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 13223 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 13224 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13225 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 13226 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13227 | LLVMGCCCOMMAND="$LLVMGCC" |
| 13228 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13229 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 13230 | |
| 13231 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 13232 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13233 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 13234 | set dummy $LLVMGCC; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13235 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13236 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13237 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 13238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13239 | else |
| 13240 | case $LLVMGCC in |
| 13241 | [\\/]* | ?:[\\/]*) |
| 13242 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 13243 | ;; |
| 13244 | *) |
| 13245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13246 | for as_dir in $PATH |
| 13247 | do |
| 13248 | IFS=$as_save_IFS |
| 13249 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13250 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13251 | 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] | 13252 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13253 | 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] | 13254 | break 2 |
| 13255 | fi |
| 13256 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13257 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13258 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13259 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13260 | ;; |
| 13261 | esac |
| 13262 | fi |
| 13263 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13264 | if test -n "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13265 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 13266 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13267 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13268 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13269 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13270 | fi |
| 13271 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13272 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13273 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 13274 | set dummy $LLVMGXX; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13275 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13277 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 13278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13279 | else |
| 13280 | case $LLVMGXX in |
| 13281 | [\\/]* | ?:[\\/]*) |
| 13282 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 13283 | ;; |
| 13284 | *) |
| 13285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13286 | for as_dir in $PATH |
| 13287 | do |
| 13288 | IFS=$as_save_IFS |
| 13289 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13290 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13291 | 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] | 13292 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13293 | 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] | 13294 | break 2 |
| 13295 | fi |
| 13296 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13297 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13298 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13299 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13300 | ;; |
| 13301 | esac |
| 13302 | fi |
| 13303 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13304 | if test -n "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13305 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 13306 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13307 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13308 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13309 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13310 | fi |
| 13311 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13312 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13313 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13314 | if test -z "$LLVMGCC"; then |
| 13315 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13316 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13317 | fi |
| 13318 | if test -z "$LLVMGXX"; then |
| 13319 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13320 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13321 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13322 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13323 | LLVMGCC=$LLVMGCC |
| 13324 | |
| 13325 | LLVMGXX=$LLVMGXX |
| 13326 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13327 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 13328 | |
| 13329 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 13330 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13331 | fi |
| 13332 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13333 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 13334 | # Check whether --with-llvmcc was given. |
| 13335 | if test "${with_llvmcc+set}" = set; then |
| 13336 | withval=$with_llvmcc; |
| 13337 | else |
| 13338 | with_llvmcc=check |
| 13339 | fi |
| 13340 | |
| 13341 | { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5 |
| 13342 | echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; } |
| 13343 | if test "$with_llvmcc" != "check"; then |
| 13344 | if (test "$with_llvmcc" != "llvm-gcc" && |
| 13345 | test "$with_llvmcc" != "clang" && |
| 13346 | test "$with_llvmcc" != "none"); then |
| 13347 | { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5 |
| 13348 | echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;} |
| 13349 | { (exit 1); exit 1; }; } |
| 13350 | fi |
| 13351 | WITH_LLVMCC="$with_llvmcc" |
| 13352 | elif test -n "$LLVMGCC"; then |
| 13353 | WITH_LLVMCC=llvm-gcc |
| 13354 | elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then |
| 13355 | WITH_LLVMCC=clang |
| 13356 | else |
| 13357 | WITH_LLVMCC=none |
| 13358 | fi |
| 13359 | { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5 |
| 13360 | echo "${ECHO_T}$WITH_LLVMCC" >&6; } |
| 13361 | LLVMCC_OPTION=$WITH_LLVMCC |
| 13362 | |
| 13363 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13364 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 13365 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13366 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 13367 | ICC=no |
| 13368 | IXX=no |
| 13369 | case $CC in |
| 13370 | icc*|icpc*) |
| 13371 | ICC=yes |
| 13372 | IXX=yes |
| 13373 | ;; |
| 13374 | *) |
| 13375 | ;; |
| 13376 | esac |
| 13377 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13378 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 13379 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13380 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 13381 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 13382 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13383 | fi |
| 13384 | |
| 13385 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 13386 | then |
Eric Christopher | 73e36da | 2010-12-08 02:02:14 +0000 | [diff] [blame] | 13387 | { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 |
| 13388 | echo "$as_me: error: g++|clang++|icc required but not found" >&2;} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13389 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13390 | fi |
| 13391 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 13392 | if test "$GCC" = "yes" |
| 13393 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13394 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13395 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 13396 | #error Unsupported GCC version |
| 13397 | #endif |
| 13398 | |
| 13399 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13400 | rm -f conftest.$ac_objext |
| 13401 | if { (ac_try="$ac_compile" |
| 13402 | case "(($ac_try" in |
| 13403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13404 | *) ac_try_echo=$ac_try;; |
| 13405 | esac |
| 13406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13407 | (eval "$ac_compile") 2>conftest.er1 |
| 13408 | ac_status=$? |
| 13409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13410 | rm -f conftest.er1 |
| 13411 | cat conftest.err >&5 |
| 13412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13413 | (exit $ac_status); } && |
| 13414 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13415 | { (case "(($ac_try" in |
| 13416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13417 | *) ac_try_echo=$ac_try;; |
| 13418 | esac |
| 13419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13420 | (eval "$ac_try") 2>&5 |
| 13421 | ac_status=$? |
| 13422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13423 | (exit $ac_status); }; } && |
| 13424 | { ac_try='test -s conftest.$ac_objext' |
| 13425 | { (case "(($ac_try" in |
| 13426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13427 | *) ac_try_echo=$ac_try;; |
| 13428 | esac |
| 13429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13430 | (eval "$ac_try") 2>&5 |
| 13431 | ac_status=$? |
| 13432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13433 | (exit $ac_status); }; }; then |
| 13434 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13435 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13436 | echo "$as_me: failed program was:" >&5 |
| 13437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13438 | |
| 13439 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 13440 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 13441 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13442 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13443 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13445 | fi |
| 13446 | |
| 13447 | if test -z "$llvm_cv_gnu_make_command" |
| 13448 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13449 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 13450 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 13451 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13452 | fi |
| 13453 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13454 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13455 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13456 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13457 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 13458 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13459 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 13460 | |
| 13461 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 13462 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13463 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 13464 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13465 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 13466 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13467 | |
| 13468 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 13469 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 13470 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 13471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13472 | else |
| 13473 | ac_check_lib_save_LIBS=$LIBS |
| 13474 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13475 | cat >conftest.$ac_ext <<_ACEOF |
| 13476 | /* confdefs.h. */ |
| 13477 | _ACEOF |
| 13478 | cat confdefs.h >>conftest.$ac_ext |
| 13479 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13480 | /* end confdefs.h. */ |
| 13481 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13482 | /* Override any GCC internal prototype to avoid an error. |
| 13483 | Use char because int might match the return type of a GCC |
| 13484 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13485 | #ifdef __cplusplus |
| 13486 | extern "C" |
| 13487 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13488 | char sin (); |
| 13489 | int |
| 13490 | main () |
| 13491 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13492 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13493 | ; |
| 13494 | return 0; |
| 13495 | } |
| 13496 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13497 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13498 | if { (ac_try="$ac_link" |
| 13499 | case "(($ac_try" in |
| 13500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13501 | *) ac_try_echo=$ac_try;; |
| 13502 | esac |
| 13503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13504 | (eval "$ac_link") 2>conftest.er1 |
| 13505 | ac_status=$? |
| 13506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13507 | rm -f conftest.er1 |
| 13508 | cat conftest.err >&5 |
| 13509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13510 | (exit $ac_status); } && |
| 13511 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13512 | { (case "(($ac_try" in |
| 13513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13514 | *) ac_try_echo=$ac_try;; |
| 13515 | esac |
| 13516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13517 | (eval "$ac_try") 2>&5 |
| 13518 | ac_status=$? |
| 13519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13520 | (exit $ac_status); }; } && |
| 13521 | { ac_try='test -s conftest$ac_exeext' |
| 13522 | { (case "(($ac_try" in |
| 13523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13524 | *) ac_try_echo=$ac_try;; |
| 13525 | esac |
| 13526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13527 | (eval "$ac_try") 2>&5 |
| 13528 | ac_status=$? |
| 13529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13530 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13531 | ac_cv_lib_m_sin=yes |
| 13532 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13533 | echo "$as_me: failed program was:" >&5 |
| 13534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13535 | |
| 13536 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13537 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13538 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13539 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13540 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13541 | LIBS=$ac_check_lib_save_LIBS |
| 13542 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13543 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 13544 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 13545 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13546 | cat >>confdefs.h <<_ACEOF |
| 13547 | #define HAVE_LIBM 1 |
| 13548 | _ACEOF |
| 13549 | |
| 13550 | LIBS="-lm $LIBS" |
| 13551 | |
| 13552 | fi |
| 13553 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 13554 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13555 | |
| 13556 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 13557 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 13558 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 13559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13560 | else |
| 13561 | ac_check_lib_save_LIBS=$LIBS |
| 13562 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13563 | cat >conftest.$ac_ext <<_ACEOF |
| 13564 | /* confdefs.h. */ |
| 13565 | _ACEOF |
| 13566 | cat confdefs.h >>conftest.$ac_ext |
| 13567 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13568 | /* end confdefs.h. */ |
| 13569 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13570 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13571 | int |
| 13572 | main () |
| 13573 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13574 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13575 | ; |
| 13576 | return 0; |
| 13577 | } |
| 13578 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13579 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13580 | if { (ac_try="$ac_link" |
| 13581 | case "(($ac_try" in |
| 13582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13583 | *) ac_try_echo=$ac_try;; |
| 13584 | esac |
| 13585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13586 | (eval "$ac_link") 2>conftest.er1 |
| 13587 | ac_status=$? |
| 13588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13589 | rm -f conftest.er1 |
| 13590 | cat conftest.err >&5 |
| 13591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13592 | (exit $ac_status); } && |
| 13593 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13594 | { (case "(($ac_try" in |
| 13595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13596 | *) ac_try_echo=$ac_try;; |
| 13597 | esac |
| 13598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13599 | (eval "$ac_try") 2>&5 |
| 13600 | ac_status=$? |
| 13601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13602 | (exit $ac_status); }; } && |
| 13603 | { ac_try='test -s conftest$ac_exeext' |
| 13604 | { (case "(($ac_try" in |
| 13605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13606 | *) ac_try_echo=$ac_try;; |
| 13607 | esac |
| 13608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13609 | (eval "$ac_try") 2>&5 |
| 13610 | ac_status=$? |
| 13611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13612 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13613 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13614 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13615 | echo "$as_me: failed program was:" >&5 |
| 13616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13617 | |
| 13618 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13619 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13620 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13621 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13622 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13623 | LIBS=$ac_check_lib_save_LIBS |
| 13624 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13625 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 13626 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 13627 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13628 | cat >>confdefs.h <<_ACEOF |
| 13629 | #define HAVE_LIBIMAGEHLP 1 |
| 13630 | _ACEOF |
| 13631 | |
| 13632 | LIBS="-limagehlp $LIBS" |
| 13633 | |
| 13634 | fi |
| 13635 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13636 | |
| 13637 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 13638 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 13639 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 13640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13641 | else |
| 13642 | ac_check_lib_save_LIBS=$LIBS |
| 13643 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13644 | cat >conftest.$ac_ext <<_ACEOF |
| 13645 | /* confdefs.h. */ |
| 13646 | _ACEOF |
| 13647 | cat confdefs.h >>conftest.$ac_ext |
| 13648 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13649 | /* end confdefs.h. */ |
| 13650 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13651 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13652 | int |
| 13653 | main () |
| 13654 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13655 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13656 | ; |
| 13657 | return 0; |
| 13658 | } |
| 13659 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13660 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13661 | if { (ac_try="$ac_link" |
| 13662 | case "(($ac_try" in |
| 13663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13664 | *) ac_try_echo=$ac_try;; |
| 13665 | esac |
| 13666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13667 | (eval "$ac_link") 2>conftest.er1 |
| 13668 | ac_status=$? |
| 13669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13670 | rm -f conftest.er1 |
| 13671 | cat conftest.err >&5 |
| 13672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13673 | (exit $ac_status); } && |
| 13674 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13675 | { (case "(($ac_try" in |
| 13676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13677 | *) ac_try_echo=$ac_try;; |
| 13678 | esac |
| 13679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13680 | (eval "$ac_try") 2>&5 |
| 13681 | ac_status=$? |
| 13682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13683 | (exit $ac_status); }; } && |
| 13684 | { ac_try='test -s conftest$ac_exeext' |
| 13685 | { (case "(($ac_try" in |
| 13686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13687 | *) ac_try_echo=$ac_try;; |
| 13688 | esac |
| 13689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13690 | (eval "$ac_try") 2>&5 |
| 13691 | ac_status=$? |
| 13692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13693 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13694 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13695 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13696 | echo "$as_me: failed program was:" >&5 |
| 13697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13698 | |
| 13699 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13700 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13701 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13702 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13703 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13704 | LIBS=$ac_check_lib_save_LIBS |
| 13705 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13706 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 13707 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 13708 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13709 | cat >>confdefs.h <<_ACEOF |
| 13710 | #define HAVE_LIBPSAPI 1 |
| 13711 | _ACEOF |
| 13712 | |
| 13713 | LIBS="-lpsapi $LIBS" |
| 13714 | |
| 13715 | fi |
| 13716 | |
| 13717 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13718 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13719 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 13720 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 13721 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13723 | else |
| 13724 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13725 | cat >conftest.$ac_ext <<_ACEOF |
| 13726 | /* confdefs.h. */ |
| 13727 | _ACEOF |
| 13728 | cat confdefs.h >>conftest.$ac_ext |
| 13729 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13730 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13731 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13732 | /* Override any GCC internal prototype to avoid an error. |
| 13733 | Use char because int might match the return type of a GCC |
| 13734 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13735 | #ifdef __cplusplus |
| 13736 | extern "C" |
| 13737 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13738 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13739 | int |
| 13740 | main () |
| 13741 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13742 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13743 | ; |
| 13744 | return 0; |
| 13745 | } |
| 13746 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13747 | for ac_lib in '' dl; do |
| 13748 | if test -z "$ac_lib"; then |
| 13749 | ac_res="none required" |
| 13750 | else |
| 13751 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13752 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13753 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13754 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13755 | if { (ac_try="$ac_link" |
| 13756 | case "(($ac_try" in |
| 13757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13758 | *) ac_try_echo=$ac_try;; |
| 13759 | esac |
| 13760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13761 | (eval "$ac_link") 2>conftest.er1 |
| 13762 | ac_status=$? |
| 13763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13764 | rm -f conftest.er1 |
| 13765 | cat conftest.err >&5 |
| 13766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13767 | (exit $ac_status); } && |
| 13768 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13769 | { (case "(($ac_try" in |
| 13770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13771 | *) ac_try_echo=$ac_try;; |
| 13772 | esac |
| 13773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13774 | (eval "$ac_try") 2>&5 |
| 13775 | ac_status=$? |
| 13776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13777 | (exit $ac_status); }; } && |
| 13778 | { ac_try='test -s conftest$ac_exeext' |
| 13779 | { (case "(($ac_try" in |
| 13780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13781 | *) ac_try_echo=$ac_try;; |
| 13782 | esac |
| 13783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13784 | (eval "$ac_try") 2>&5 |
| 13785 | ac_status=$? |
| 13786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13787 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13788 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13789 | else |
| 13790 | echo "$as_me: failed program was:" >&5 |
| 13791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13792 | |
| 13793 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13794 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13795 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13796 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13797 | conftest$ac_exeext |
| 13798 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13799 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13800 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13801 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13802 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13803 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13804 | else |
| 13805 | ac_cv_search_dlopen=no |
| 13806 | fi |
| 13807 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13808 | LIBS=$ac_func_search_save_LIBS |
| 13809 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13810 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 13811 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13812 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13813 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13814 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13815 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13816 | cat >>confdefs.h <<\_ACEOF |
| 13817 | #define HAVE_DLOPEN 1 |
| 13818 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13819 | |
| 13820 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13821 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 13822 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13823 | fi |
| 13824 | |
| 13825 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13826 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13827 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 13828 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 13829 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13831 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13832 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13833 | cat >conftest.$ac_ext <<_ACEOF |
| 13834 | /* confdefs.h. */ |
| 13835 | _ACEOF |
| 13836 | cat confdefs.h >>conftest.$ac_ext |
| 13837 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13838 | /* end confdefs.h. */ |
| 13839 | |
| 13840 | /* Override any GCC internal prototype to avoid an error. |
| 13841 | Use char because int might match the return type of a GCC |
| 13842 | builtin and then its argument prototype would still apply. */ |
| 13843 | #ifdef __cplusplus |
| 13844 | extern "C" |
| 13845 | #endif |
| 13846 | char ffi_call (); |
| 13847 | int |
| 13848 | main () |
| 13849 | { |
| 13850 | return ffi_call (); |
| 13851 | ; |
| 13852 | return 0; |
| 13853 | } |
| 13854 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13855 | for ac_lib in '' ffi; do |
| 13856 | if test -z "$ac_lib"; then |
| 13857 | ac_res="none required" |
| 13858 | else |
| 13859 | ac_res=-l$ac_lib |
| 13860 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13861 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13862 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13863 | if { (ac_try="$ac_link" |
| 13864 | case "(($ac_try" in |
| 13865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13866 | *) ac_try_echo=$ac_try;; |
| 13867 | esac |
| 13868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13869 | (eval "$ac_link") 2>conftest.er1 |
| 13870 | ac_status=$? |
| 13871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13872 | rm -f conftest.er1 |
| 13873 | cat conftest.err >&5 |
| 13874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13875 | (exit $ac_status); } && |
| 13876 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13877 | { (case "(($ac_try" in |
| 13878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13879 | *) ac_try_echo=$ac_try;; |
| 13880 | esac |
| 13881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13882 | (eval "$ac_try") 2>&5 |
| 13883 | ac_status=$? |
| 13884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13885 | (exit $ac_status); }; } && |
| 13886 | { ac_try='test -s conftest$ac_exeext' |
| 13887 | { (case "(($ac_try" in |
| 13888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13889 | *) ac_try_echo=$ac_try;; |
| 13890 | esac |
| 13891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13892 | (eval "$ac_try") 2>&5 |
| 13893 | ac_status=$? |
| 13894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13895 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13896 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13897 | else |
| 13898 | echo "$as_me: failed program was:" >&5 |
| 13899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13900 | |
| 13901 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13902 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13903 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13904 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13905 | conftest$ac_exeext |
| 13906 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13907 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13908 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13909 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13910 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13911 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13912 | else |
| 13913 | ac_cv_search_ffi_call=no |
| 13914 | fi |
| 13915 | rm conftest.$ac_ext |
| 13916 | LIBS=$ac_func_search_save_LIBS |
| 13917 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13918 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 13919 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13920 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13921 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13922 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13923 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13924 | cat >>confdefs.h <<\_ACEOF |
| 13925 | #define HAVE_FFI_CALL 1 |
| 13926 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13927 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13928 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 13929 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 13930 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 13931 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13932 | fi |
| 13933 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13934 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13935 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13936 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 13937 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 13938 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13940 | else |
| 13941 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13942 | cat >conftest.$ac_ext <<_ACEOF |
| 13943 | /* confdefs.h. */ |
| 13944 | _ACEOF |
| 13945 | cat confdefs.h >>conftest.$ac_ext |
| 13946 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13947 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13948 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13949 | /* Override any GCC internal prototype to avoid an error. |
| 13950 | Use char because int might match the return type of a GCC |
| 13951 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13952 | #ifdef __cplusplus |
| 13953 | extern "C" |
| 13954 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13955 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13956 | int |
| 13957 | main () |
| 13958 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13959 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13960 | ; |
| 13961 | return 0; |
| 13962 | } |
| 13963 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13964 | for ac_lib in '' malloc; do |
| 13965 | if test -z "$ac_lib"; then |
| 13966 | ac_res="none required" |
| 13967 | else |
| 13968 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13969 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13970 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13971 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13972 | if { (ac_try="$ac_link" |
| 13973 | case "(($ac_try" in |
| 13974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13975 | *) ac_try_echo=$ac_try;; |
| 13976 | esac |
| 13977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13978 | (eval "$ac_link") 2>conftest.er1 |
| 13979 | ac_status=$? |
| 13980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13981 | rm -f conftest.er1 |
| 13982 | cat conftest.err >&5 |
| 13983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13984 | (exit $ac_status); } && |
| 13985 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13986 | { (case "(($ac_try" in |
| 13987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13988 | *) ac_try_echo=$ac_try;; |
| 13989 | esac |
| 13990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13991 | (eval "$ac_try") 2>&5 |
| 13992 | ac_status=$? |
| 13993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13994 | (exit $ac_status); }; } && |
| 13995 | { ac_try='test -s conftest$ac_exeext' |
| 13996 | { (case "(($ac_try" in |
| 13997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13998 | *) ac_try_echo=$ac_try;; |
| 13999 | esac |
| 14000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14001 | (eval "$ac_try") 2>&5 |
| 14002 | ac_status=$? |
| 14003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14004 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14005 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14006 | else |
| 14007 | echo "$as_me: failed program was:" >&5 |
| 14008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14009 | |
| 14010 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14011 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14012 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14013 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14014 | conftest$ac_exeext |
| 14015 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14016 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14017 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14018 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14019 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 14020 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14021 | else |
| 14022 | ac_cv_search_mallinfo=no |
| 14023 | fi |
| 14024 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14025 | LIBS=$ac_func_search_save_LIBS |
| 14026 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14027 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 14028 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14029 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14030 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14031 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 14032 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14033 | cat >>confdefs.h <<\_ACEOF |
| 14034 | #define HAVE_MALLINFO 1 |
| 14035 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14036 | |
| 14037 | fi |
| 14038 | |
| 14039 | |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 14040 | if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14041 | |
| 14042 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 14043 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 14044 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 14045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14046 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 14047 | ac_check_lib_save_LIBS=$LIBS |
| 14048 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14049 | cat >conftest.$ac_ext <<_ACEOF |
| 14050 | /* confdefs.h. */ |
| 14051 | _ACEOF |
| 14052 | cat confdefs.h >>conftest.$ac_ext |
| 14053 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14054 | /* end confdefs.h. */ |
| 14055 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14056 | /* Override any GCC internal prototype to avoid an error. |
| 14057 | Use char because int might match the return type of a GCC |
| 14058 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14059 | #ifdef __cplusplus |
| 14060 | extern "C" |
| 14061 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14062 | char pthread_mutex_init (); |
| 14063 | int |
| 14064 | main () |
| 14065 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14066 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14067 | ; |
| 14068 | return 0; |
| 14069 | } |
| 14070 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14071 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14072 | if { (ac_try="$ac_link" |
| 14073 | case "(($ac_try" in |
| 14074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14075 | *) ac_try_echo=$ac_try;; |
| 14076 | esac |
| 14077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14078 | (eval "$ac_link") 2>conftest.er1 |
| 14079 | ac_status=$? |
| 14080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14081 | rm -f conftest.er1 |
| 14082 | cat conftest.err >&5 |
| 14083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14084 | (exit $ac_status); } && |
| 14085 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14086 | { (case "(($ac_try" in |
| 14087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14088 | *) ac_try_echo=$ac_try;; |
| 14089 | esac |
| 14090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14091 | (eval "$ac_try") 2>&5 |
| 14092 | ac_status=$? |
| 14093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14094 | (exit $ac_status); }; } && |
| 14095 | { ac_try='test -s conftest$ac_exeext' |
| 14096 | { (case "(($ac_try" in |
| 14097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14098 | *) ac_try_echo=$ac_try;; |
| 14099 | esac |
| 14100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14101 | (eval "$ac_try") 2>&5 |
| 14102 | ac_status=$? |
| 14103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14104 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 14105 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14106 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14107 | echo "$as_me: failed program was:" >&5 |
| 14108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14109 | |
| 14110 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14111 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14112 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14113 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14114 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 14115 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14116 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14117 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 14118 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 14119 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 14120 | cat >>confdefs.h <<_ACEOF |
| 14121 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 14122 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14123 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 14124 | LIBS="-lpthread $LIBS" |
| 14125 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14126 | fi |
| 14127 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14128 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 14129 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 14130 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 14131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14132 | else |
| 14133 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14134 | cat >conftest.$ac_ext <<_ACEOF |
| 14135 | /* confdefs.h. */ |
| 14136 | _ACEOF |
| 14137 | cat confdefs.h >>conftest.$ac_ext |
| 14138 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14139 | /* end confdefs.h. */ |
| 14140 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14141 | /* Override any GCC internal prototype to avoid an error. |
| 14142 | Use char because int might match the return type of a GCC |
| 14143 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14144 | #ifdef __cplusplus |
| 14145 | extern "C" |
| 14146 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14147 | char pthread_mutex_lock (); |
| 14148 | int |
| 14149 | main () |
| 14150 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14151 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14152 | ; |
| 14153 | return 0; |
| 14154 | } |
| 14155 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14156 | for ac_lib in '' pthread; do |
| 14157 | if test -z "$ac_lib"; then |
| 14158 | ac_res="none required" |
| 14159 | else |
| 14160 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14161 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14162 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14163 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14164 | if { (ac_try="$ac_link" |
| 14165 | case "(($ac_try" in |
| 14166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14167 | *) ac_try_echo=$ac_try;; |
| 14168 | esac |
| 14169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14170 | (eval "$ac_link") 2>conftest.er1 |
| 14171 | ac_status=$? |
| 14172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14173 | rm -f conftest.er1 |
| 14174 | cat conftest.err >&5 |
| 14175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14176 | (exit $ac_status); } && |
| 14177 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14178 | { (case "(($ac_try" in |
| 14179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14180 | *) ac_try_echo=$ac_try;; |
| 14181 | esac |
| 14182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14183 | (eval "$ac_try") 2>&5 |
| 14184 | ac_status=$? |
| 14185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14186 | (exit $ac_status); }; } && |
| 14187 | { ac_try='test -s conftest$ac_exeext' |
| 14188 | { (case "(($ac_try" in |
| 14189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14190 | *) ac_try_echo=$ac_try;; |
| 14191 | esac |
| 14192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14193 | (eval "$ac_try") 2>&5 |
| 14194 | ac_status=$? |
| 14195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14196 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14197 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14198 | else |
| 14199 | echo "$as_me: failed program was:" >&5 |
| 14200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14201 | |
| 14202 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14203 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14204 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14205 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14206 | conftest$ac_exeext |
| 14207 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14208 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14209 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14210 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14211 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 14212 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14213 | else |
| 14214 | ac_cv_search_pthread_mutex_lock=no |
| 14215 | fi |
| 14216 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14217 | LIBS=$ac_func_search_save_LIBS |
| 14218 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14219 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 14220 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14221 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14222 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14223 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14224 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14225 | cat >>confdefs.h <<\_ACEOF |
| 14226 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 14227 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 14228 | |
| 14229 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14230 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14231 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 14232 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 14233 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 14234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14235 | else |
| 14236 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14237 | cat >conftest.$ac_ext <<_ACEOF |
| 14238 | /* confdefs.h. */ |
| 14239 | _ACEOF |
| 14240 | cat confdefs.h >>conftest.$ac_ext |
| 14241 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14242 | /* end confdefs.h. */ |
| 14243 | |
| 14244 | /* Override any GCC internal prototype to avoid an error. |
| 14245 | Use char because int might match the return type of a GCC |
| 14246 | builtin and then its argument prototype would still apply. */ |
| 14247 | #ifdef __cplusplus |
| 14248 | extern "C" |
| 14249 | #endif |
| 14250 | char pthread_rwlock_init (); |
| 14251 | int |
| 14252 | main () |
| 14253 | { |
| 14254 | return pthread_rwlock_init (); |
| 14255 | ; |
| 14256 | return 0; |
| 14257 | } |
| 14258 | _ACEOF |
| 14259 | for ac_lib in '' pthread; do |
| 14260 | if test -z "$ac_lib"; then |
| 14261 | ac_res="none required" |
| 14262 | else |
| 14263 | ac_res=-l$ac_lib |
| 14264 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14265 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14266 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14267 | if { (ac_try="$ac_link" |
| 14268 | case "(($ac_try" in |
| 14269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14270 | *) ac_try_echo=$ac_try;; |
| 14271 | esac |
| 14272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14273 | (eval "$ac_link") 2>conftest.er1 |
| 14274 | ac_status=$? |
| 14275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14276 | rm -f conftest.er1 |
| 14277 | cat conftest.err >&5 |
| 14278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14279 | (exit $ac_status); } && |
| 14280 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14281 | { (case "(($ac_try" in |
| 14282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14283 | *) ac_try_echo=$ac_try;; |
| 14284 | esac |
| 14285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14286 | (eval "$ac_try") 2>&5 |
| 14287 | ac_status=$? |
| 14288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14289 | (exit $ac_status); }; } && |
| 14290 | { ac_try='test -s conftest$ac_exeext' |
| 14291 | { (case "(($ac_try" in |
| 14292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14293 | *) ac_try_echo=$ac_try;; |
| 14294 | esac |
| 14295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14296 | (eval "$ac_try") 2>&5 |
| 14297 | ac_status=$? |
| 14298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14299 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14300 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14301 | else |
| 14302 | echo "$as_me: failed program was:" >&5 |
| 14303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14304 | |
| 14305 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14306 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14307 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14308 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14309 | conftest$ac_exeext |
| 14310 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14311 | break |
| 14312 | fi |
| 14313 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14314 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 14315 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14316 | else |
| 14317 | ac_cv_search_pthread_rwlock_init=no |
| 14318 | fi |
| 14319 | rm conftest.$ac_ext |
| 14320 | LIBS=$ac_func_search_save_LIBS |
| 14321 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14322 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 14323 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14324 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14325 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14326 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14327 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14328 | cat >>confdefs.h <<\_ACEOF |
| 14329 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 14330 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14331 | |
| 14332 | fi |
| 14333 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14334 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 14335 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 14336 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 14337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14338 | else |
| 14339 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14340 | cat >conftest.$ac_ext <<_ACEOF |
| 14341 | /* confdefs.h. */ |
| 14342 | _ACEOF |
| 14343 | cat confdefs.h >>conftest.$ac_ext |
| 14344 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14345 | /* end confdefs.h. */ |
| 14346 | |
| 14347 | /* Override any GCC internal prototype to avoid an error. |
| 14348 | Use char because int might match the return type of a GCC |
| 14349 | builtin and then its argument prototype would still apply. */ |
| 14350 | #ifdef __cplusplus |
| 14351 | extern "C" |
| 14352 | #endif |
| 14353 | char pthread_getspecific (); |
| 14354 | int |
| 14355 | main () |
| 14356 | { |
| 14357 | return pthread_getspecific (); |
| 14358 | ; |
| 14359 | return 0; |
| 14360 | } |
| 14361 | _ACEOF |
| 14362 | for ac_lib in '' pthread; do |
| 14363 | if test -z "$ac_lib"; then |
| 14364 | ac_res="none required" |
| 14365 | else |
| 14366 | ac_res=-l$ac_lib |
| 14367 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14368 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14369 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14370 | if { (ac_try="$ac_link" |
| 14371 | case "(($ac_try" in |
| 14372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14373 | *) ac_try_echo=$ac_try;; |
| 14374 | esac |
| 14375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14376 | (eval "$ac_link") 2>conftest.er1 |
| 14377 | ac_status=$? |
| 14378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14379 | rm -f conftest.er1 |
| 14380 | cat conftest.err >&5 |
| 14381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14382 | (exit $ac_status); } && |
| 14383 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14384 | { (case "(($ac_try" in |
| 14385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14386 | *) ac_try_echo=$ac_try;; |
| 14387 | esac |
| 14388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14389 | (eval "$ac_try") 2>&5 |
| 14390 | ac_status=$? |
| 14391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14392 | (exit $ac_status); }; } && |
| 14393 | { ac_try='test -s conftest$ac_exeext' |
| 14394 | { (case "(($ac_try" in |
| 14395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14396 | *) ac_try_echo=$ac_try;; |
| 14397 | esac |
| 14398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14399 | (eval "$ac_try") 2>&5 |
| 14400 | ac_status=$? |
| 14401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14402 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14403 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14404 | else |
| 14405 | echo "$as_me: failed program was:" >&5 |
| 14406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14407 | |
| 14408 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14409 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14410 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14411 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14412 | conftest$ac_exeext |
| 14413 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14414 | break |
| 14415 | fi |
| 14416 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14417 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 14418 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14419 | else |
| 14420 | ac_cv_search_pthread_getspecific=no |
| 14421 | fi |
| 14422 | rm conftest.$ac_ext |
| 14423 | LIBS=$ac_func_search_save_LIBS |
| 14424 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14425 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 14426 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14427 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14428 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14429 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14430 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14431 | cat >>confdefs.h <<\_ACEOF |
| 14432 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 14433 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14434 | |
| 14435 | fi |
| 14436 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 14437 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 14438 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14439 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14440 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14441 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14442 | withval=$with_udis86; |
| 14443 | USE_UDIS86=1 |
| 14444 | |
| 14445 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 14446 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14447 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 14448 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14449 | |
| 14450 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 14451 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 14452 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 14453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14454 | else |
| 14455 | ac_check_lib_save_LIBS=$LIBS |
| 14456 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14457 | cat >conftest.$ac_ext <<_ACEOF |
| 14458 | /* confdefs.h. */ |
| 14459 | _ACEOF |
| 14460 | cat confdefs.h >>conftest.$ac_ext |
| 14461 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14462 | /* end confdefs.h. */ |
| 14463 | |
| 14464 | /* Override any GCC internal prototype to avoid an error. |
| 14465 | Use char because int might match the return type of a GCC |
| 14466 | builtin and then its argument prototype would still apply. */ |
| 14467 | #ifdef __cplusplus |
| 14468 | extern "C" |
| 14469 | #endif |
| 14470 | char ud_init (); |
| 14471 | int |
| 14472 | main () |
| 14473 | { |
| 14474 | return ud_init (); |
| 14475 | ; |
| 14476 | return 0; |
| 14477 | } |
| 14478 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14479 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14480 | if { (ac_try="$ac_link" |
| 14481 | case "(($ac_try" in |
| 14482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14483 | *) ac_try_echo=$ac_try;; |
| 14484 | esac |
| 14485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14486 | (eval "$ac_link") 2>conftest.er1 |
| 14487 | ac_status=$? |
| 14488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14489 | rm -f conftest.er1 |
| 14490 | cat conftest.err >&5 |
| 14491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14492 | (exit $ac_status); } && |
| 14493 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14494 | { (case "(($ac_try" in |
| 14495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14496 | *) ac_try_echo=$ac_try;; |
| 14497 | esac |
| 14498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14499 | (eval "$ac_try") 2>&5 |
| 14500 | ac_status=$? |
| 14501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14502 | (exit $ac_status); }; } && |
| 14503 | { ac_try='test -s conftest$ac_exeext' |
| 14504 | { (case "(($ac_try" in |
| 14505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14506 | *) ac_try_echo=$ac_try;; |
| 14507 | esac |
| 14508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14509 | (eval "$ac_try") 2>&5 |
| 14510 | ac_status=$? |
| 14511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14512 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14513 | ac_cv_lib_udis86_ud_init=yes |
| 14514 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14515 | echo "$as_me: failed program was:" >&5 |
| 14516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14517 | |
| 14518 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14519 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14520 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14521 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14522 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14523 | LIBS=$ac_check_lib_save_LIBS |
| 14524 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14525 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 14526 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 14527 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14528 | cat >>confdefs.h <<_ACEOF |
| 14529 | #define HAVE_LIBUDIS86 1 |
| 14530 | _ACEOF |
| 14531 | |
| 14532 | LIBS="-ludis86 $LIBS" |
| 14533 | |
| 14534 | else |
| 14535 | |
| 14536 | echo "Error! You need to have libudis86 around." |
| 14537 | exit -1 |
| 14538 | |
| 14539 | fi |
| 14540 | |
| 14541 | |
| 14542 | else |
| 14543 | USE_UDIS86=0 |
| 14544 | |
| 14545 | fi |
| 14546 | |
| 14547 | |
| 14548 | cat >>confdefs.h <<_ACEOF |
| 14549 | #define USE_UDIS86 $USE_UDIS86 |
| 14550 | _ACEOF |
| 14551 | |
| 14552 | |
| 14553 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14554 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14555 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14556 | withval=$with_oprofile; |
| 14557 | USE_OPROFILE=1 |
| 14558 | |
| 14559 | case "$withval" in |
| 14560 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14561 | no) llvm_cv_oppath= |
| 14562 | USE_OPROFILE=0 |
| 14563 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14564 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 14565 | CPPFLAGS="-I${withval}/include";; |
| 14566 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14567 | if test -n "$llvm_cv_oppath" ; then |
| 14568 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14569 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 14570 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 14571 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14573 | else |
| 14574 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14575 | cat >conftest.$ac_ext <<_ACEOF |
| 14576 | /* confdefs.h. */ |
| 14577 | _ACEOF |
| 14578 | cat confdefs.h >>conftest.$ac_ext |
| 14579 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14580 | /* end confdefs.h. */ |
| 14581 | |
| 14582 | /* Override any GCC internal prototype to avoid an error. |
| 14583 | Use char because int might match the return type of a GCC |
| 14584 | builtin and then its argument prototype would still apply. */ |
| 14585 | #ifdef __cplusplus |
| 14586 | extern "C" |
| 14587 | #endif |
| 14588 | char bfd_init (); |
| 14589 | int |
| 14590 | main () |
| 14591 | { |
| 14592 | return bfd_init (); |
| 14593 | ; |
| 14594 | return 0; |
| 14595 | } |
| 14596 | _ACEOF |
| 14597 | for ac_lib in '' bfd; do |
| 14598 | if test -z "$ac_lib"; then |
| 14599 | ac_res="none required" |
| 14600 | else |
| 14601 | ac_res=-l$ac_lib |
| 14602 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14603 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14604 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14605 | if { (ac_try="$ac_link" |
| 14606 | case "(($ac_try" in |
| 14607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14608 | *) ac_try_echo=$ac_try;; |
| 14609 | esac |
| 14610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14611 | (eval "$ac_link") 2>conftest.er1 |
| 14612 | ac_status=$? |
| 14613 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14614 | rm -f conftest.er1 |
| 14615 | cat conftest.err >&5 |
| 14616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14617 | (exit $ac_status); } && |
| 14618 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14619 | { (case "(($ac_try" in |
| 14620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14621 | *) ac_try_echo=$ac_try;; |
| 14622 | esac |
| 14623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14624 | (eval "$ac_try") 2>&5 |
| 14625 | ac_status=$? |
| 14626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14627 | (exit $ac_status); }; } && |
| 14628 | { ac_try='test -s conftest$ac_exeext' |
| 14629 | { (case "(($ac_try" in |
| 14630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14631 | *) ac_try_echo=$ac_try;; |
| 14632 | esac |
| 14633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14634 | (eval "$ac_try") 2>&5 |
| 14635 | ac_status=$? |
| 14636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14637 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14638 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14639 | else |
| 14640 | echo "$as_me: failed program was:" >&5 |
| 14641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14642 | |
| 14643 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14644 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14645 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14646 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14647 | conftest$ac_exeext |
| 14648 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14649 | break |
| 14650 | fi |
| 14651 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14652 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14653 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14654 | else |
| 14655 | ac_cv_search_bfd_init=no |
| 14656 | fi |
| 14657 | rm conftest.$ac_ext |
| 14658 | LIBS=$ac_func_search_save_LIBS |
| 14659 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14660 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 14661 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14662 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14663 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14664 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14665 | |
| 14666 | fi |
| 14667 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14668 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 14669 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 14670 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14672 | else |
| 14673 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14674 | cat >conftest.$ac_ext <<_ACEOF |
| 14675 | /* confdefs.h. */ |
| 14676 | _ACEOF |
| 14677 | cat confdefs.h >>conftest.$ac_ext |
| 14678 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14679 | /* end confdefs.h. */ |
| 14680 | |
| 14681 | /* Override any GCC internal prototype to avoid an error. |
| 14682 | Use char because int might match the return type of a GCC |
| 14683 | builtin and then its argument prototype would still apply. */ |
| 14684 | #ifdef __cplusplus |
| 14685 | extern "C" |
| 14686 | #endif |
| 14687 | char op_open_agent (); |
| 14688 | int |
| 14689 | main () |
| 14690 | { |
| 14691 | return op_open_agent (); |
| 14692 | ; |
| 14693 | return 0; |
| 14694 | } |
| 14695 | _ACEOF |
| 14696 | for ac_lib in '' opagent; do |
| 14697 | if test -z "$ac_lib"; then |
| 14698 | ac_res="none required" |
| 14699 | else |
| 14700 | ac_res=-l$ac_lib |
| 14701 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14702 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14703 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14704 | if { (ac_try="$ac_link" |
| 14705 | case "(($ac_try" in |
| 14706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14707 | *) ac_try_echo=$ac_try;; |
| 14708 | esac |
| 14709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14710 | (eval "$ac_link") 2>conftest.er1 |
| 14711 | ac_status=$? |
| 14712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14713 | rm -f conftest.er1 |
| 14714 | cat conftest.err >&5 |
| 14715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14716 | (exit $ac_status); } && |
| 14717 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14718 | { (case "(($ac_try" in |
| 14719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14720 | *) ac_try_echo=$ac_try;; |
| 14721 | esac |
| 14722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14723 | (eval "$ac_try") 2>&5 |
| 14724 | ac_status=$? |
| 14725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14726 | (exit $ac_status); }; } && |
| 14727 | { ac_try='test -s conftest$ac_exeext' |
| 14728 | { (case "(($ac_try" in |
| 14729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14730 | *) ac_try_echo=$ac_try;; |
| 14731 | esac |
| 14732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14733 | (eval "$ac_try") 2>&5 |
| 14734 | ac_status=$? |
| 14735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14736 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14737 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14738 | else |
| 14739 | echo "$as_me: failed program was:" >&5 |
| 14740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14741 | |
| 14742 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14743 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14744 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14745 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14746 | conftest$ac_exeext |
| 14747 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14748 | break |
| 14749 | fi |
| 14750 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14751 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14752 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14753 | else |
| 14754 | ac_cv_search_op_open_agent=no |
| 14755 | fi |
| 14756 | rm conftest.$ac_ext |
| 14757 | LIBS=$ac_func_search_save_LIBS |
| 14758 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14759 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 14760 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14761 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14762 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14763 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14764 | |
| 14765 | else |
| 14766 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14767 | echo "Error! You need to have libopagent around." |
| 14768 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14769 | |
| 14770 | fi |
| 14771 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14772 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14773 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14774 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14775 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14777 | fi |
| 14778 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14779 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14780 | else |
| 14781 | # Is the header compilable? |
| 14782 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 14783 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 14784 | cat >conftest.$ac_ext <<_ACEOF |
| 14785 | /* confdefs.h. */ |
| 14786 | _ACEOF |
| 14787 | cat confdefs.h >>conftest.$ac_ext |
| 14788 | cat >>conftest.$ac_ext <<_ACEOF |
| 14789 | /* end confdefs.h. */ |
| 14790 | $ac_includes_default |
| 14791 | #include <opagent.h> |
| 14792 | _ACEOF |
| 14793 | rm -f conftest.$ac_objext |
| 14794 | if { (ac_try="$ac_compile" |
| 14795 | case "(($ac_try" in |
| 14796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14797 | *) ac_try_echo=$ac_try;; |
| 14798 | esac |
| 14799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14800 | (eval "$ac_compile") 2>conftest.er1 |
| 14801 | ac_status=$? |
| 14802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14803 | rm -f conftest.er1 |
| 14804 | cat conftest.err >&5 |
| 14805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14806 | (exit $ac_status); } && |
| 14807 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14808 | { (case "(($ac_try" in |
| 14809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14810 | *) ac_try_echo=$ac_try;; |
| 14811 | esac |
| 14812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14813 | (eval "$ac_try") 2>&5 |
| 14814 | ac_status=$? |
| 14815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14816 | (exit $ac_status); }; } && |
| 14817 | { ac_try='test -s conftest.$ac_objext' |
| 14818 | { (case "(($ac_try" in |
| 14819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14820 | *) ac_try_echo=$ac_try;; |
| 14821 | esac |
| 14822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14823 | (eval "$ac_try") 2>&5 |
| 14824 | ac_status=$? |
| 14825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14826 | (exit $ac_status); }; }; then |
| 14827 | ac_header_compiler=yes |
| 14828 | else |
| 14829 | echo "$as_me: failed program was:" >&5 |
| 14830 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14831 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14832 | ac_header_compiler=no |
| 14833 | fi |
| 14834 | |
| 14835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14836 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14837 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14838 | |
| 14839 | # Is the header present? |
| 14840 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 14841 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 14842 | cat >conftest.$ac_ext <<_ACEOF |
| 14843 | /* confdefs.h. */ |
| 14844 | _ACEOF |
| 14845 | cat confdefs.h >>conftest.$ac_ext |
| 14846 | cat >>conftest.$ac_ext <<_ACEOF |
| 14847 | /* end confdefs.h. */ |
| 14848 | #include <opagent.h> |
| 14849 | _ACEOF |
| 14850 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14851 | case "(($ac_try" in |
| 14852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14853 | *) ac_try_echo=$ac_try;; |
| 14854 | esac |
| 14855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14856 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14857 | ac_status=$? |
| 14858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14859 | rm -f conftest.er1 |
| 14860 | cat conftest.err >&5 |
| 14861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14862 | (exit $ac_status); } >/dev/null; then |
| 14863 | if test -s conftest.err; then |
| 14864 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14865 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14866 | else |
| 14867 | ac_cpp_err= |
| 14868 | fi |
| 14869 | else |
| 14870 | ac_cpp_err=yes |
| 14871 | fi |
| 14872 | if test -z "$ac_cpp_err"; then |
| 14873 | ac_header_preproc=yes |
| 14874 | else |
| 14875 | echo "$as_me: failed program was:" >&5 |
| 14876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14877 | |
| 14878 | ac_header_preproc=no |
| 14879 | fi |
| 14880 | |
| 14881 | rm -f conftest.err conftest.$ac_ext |
| 14882 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14883 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14884 | |
| 14885 | # So? What about this header? |
| 14886 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14887 | yes:no: ) |
| 14888 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14889 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14890 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 14891 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 14892 | ac_header_preproc=yes |
| 14893 | ;; |
| 14894 | no:yes:* ) |
| 14895 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 14896 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 14897 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 14898 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 14899 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 14900 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 14901 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14902 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14903 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 14904 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 14905 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 14906 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 14907 | ( cat <<\_ASBOX |
| 14908 | ## ----------------------------------- ## |
| 14909 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 14910 | ## ----------------------------------- ## |
| 14911 | _ASBOX |
| 14912 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14913 | ;; |
| 14914 | esac |
| 14915 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14916 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14917 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14919 | else |
| 14920 | ac_cv_header_opagent_h=$ac_header_preproc |
| 14921 | fi |
| 14922 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14923 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14924 | |
| 14925 | fi |
| 14926 | if test $ac_cv_header_opagent_h = yes; then |
| 14927 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14928 | else |
| 14929 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14930 | echo "Error! You need to have opagent.h around." |
| 14931 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14932 | |
| 14933 | fi |
| 14934 | |
| 14935 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14936 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14937 | |
| 14938 | else |
| 14939 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14940 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14941 | |
| 14942 | |
| 14943 | fi |
| 14944 | |
| 14945 | |
| 14946 | cat >>confdefs.h <<_ACEOF |
| 14947 | #define USE_OPROFILE $USE_OPROFILE |
| 14948 | _ACEOF |
| 14949 | |
| 14950 | |
| 14951 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14952 | |
| 14953 | |
| 14954 | |
| 14955 | |
| 14956 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14957 | ac_header_dirent=no |
| 14958 | 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] | 14959 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 14960 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 14961 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 14962 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14964 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14965 | cat >conftest.$ac_ext <<_ACEOF |
| 14966 | /* confdefs.h. */ |
| 14967 | _ACEOF |
| 14968 | cat confdefs.h >>conftest.$ac_ext |
| 14969 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14970 | /* end confdefs.h. */ |
| 14971 | #include <sys/types.h> |
| 14972 | #include <$ac_hdr> |
| 14973 | |
| 14974 | int |
| 14975 | main () |
| 14976 | { |
| 14977 | if ((DIR *) 0) |
| 14978 | return 0; |
| 14979 | ; |
| 14980 | return 0; |
| 14981 | } |
| 14982 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14983 | rm -f conftest.$ac_objext |
| 14984 | if { (ac_try="$ac_compile" |
| 14985 | case "(($ac_try" in |
| 14986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14987 | *) ac_try_echo=$ac_try;; |
| 14988 | esac |
| 14989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14990 | (eval "$ac_compile") 2>conftest.er1 |
| 14991 | ac_status=$? |
| 14992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14993 | rm -f conftest.er1 |
| 14994 | cat conftest.err >&5 |
| 14995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14996 | (exit $ac_status); } && |
| 14997 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14998 | { (case "(($ac_try" in |
| 14999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15000 | *) ac_try_echo=$ac_try;; |
| 15001 | esac |
| 15002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15003 | (eval "$ac_try") 2>&5 |
| 15004 | ac_status=$? |
| 15005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15006 | (exit $ac_status); }; } && |
| 15007 | { ac_try='test -s conftest.$ac_objext' |
| 15008 | { (case "(($ac_try" in |
| 15009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15010 | *) ac_try_echo=$ac_try;; |
| 15011 | esac |
| 15012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15013 | (eval "$ac_try") 2>&5 |
| 15014 | ac_status=$? |
| 15015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15016 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15017 | eval "$as_ac_Header=yes" |
| 15018 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15019 | echo "$as_me: failed program was:" >&5 |
| 15020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15021 | |
| 15022 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15023 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15024 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15026 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15027 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15028 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15029 | echo "${ECHO_T}$ac_res" >&6; } |
| 15030 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15031 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15032 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15033 | _ACEOF |
| 15034 | |
| 15035 | ac_header_dirent=$ac_hdr; break |
| 15036 | fi |
| 15037 | |
| 15038 | done |
| 15039 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 15040 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15041 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 15042 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 15043 | if test "${ac_cv_search_opendir+set}" = set; then |
| 15044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15045 | else |
| 15046 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15047 | cat >conftest.$ac_ext <<_ACEOF |
| 15048 | /* confdefs.h. */ |
| 15049 | _ACEOF |
| 15050 | cat confdefs.h >>conftest.$ac_ext |
| 15051 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15052 | /* end confdefs.h. */ |
| 15053 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15054 | /* Override any GCC internal prototype to avoid an error. |
| 15055 | Use char because int might match the return type of a GCC |
| 15056 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15057 | #ifdef __cplusplus |
| 15058 | extern "C" |
| 15059 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15060 | char opendir (); |
| 15061 | int |
| 15062 | main () |
| 15063 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15064 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15065 | ; |
| 15066 | return 0; |
| 15067 | } |
| 15068 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15069 | for ac_lib in '' dir; do |
| 15070 | if test -z "$ac_lib"; then |
| 15071 | ac_res="none required" |
| 15072 | else |
| 15073 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15074 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15075 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15076 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15077 | if { (ac_try="$ac_link" |
| 15078 | case "(($ac_try" in |
| 15079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15080 | *) ac_try_echo=$ac_try;; |
| 15081 | esac |
| 15082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15083 | (eval "$ac_link") 2>conftest.er1 |
| 15084 | ac_status=$? |
| 15085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15086 | rm -f conftest.er1 |
| 15087 | cat conftest.err >&5 |
| 15088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15089 | (exit $ac_status); } && |
| 15090 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15091 | { (case "(($ac_try" in |
| 15092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15093 | *) ac_try_echo=$ac_try;; |
| 15094 | esac |
| 15095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15096 | (eval "$ac_try") 2>&5 |
| 15097 | ac_status=$? |
| 15098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15099 | (exit $ac_status); }; } && |
| 15100 | { ac_try='test -s conftest$ac_exeext' |
| 15101 | { (case "(($ac_try" in |
| 15102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15103 | *) ac_try_echo=$ac_try;; |
| 15104 | esac |
| 15105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15106 | (eval "$ac_try") 2>&5 |
| 15107 | ac_status=$? |
| 15108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15109 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15110 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15111 | else |
| 15112 | echo "$as_me: failed program was:" >&5 |
| 15113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15114 | |
| 15115 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15116 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15117 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15118 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15119 | conftest$ac_exeext |
| 15120 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15121 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15122 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15123 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15124 | if test "${ac_cv_search_opendir+set}" = set; then |
| 15125 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15126 | else |
| 15127 | ac_cv_search_opendir=no |
| 15128 | fi |
| 15129 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15130 | LIBS=$ac_func_search_save_LIBS |
| 15131 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15132 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 15133 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15134 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15135 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15136 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15137 | |
| 15138 | fi |
| 15139 | |
| 15140 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15141 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 15142 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 15143 | if test "${ac_cv_search_opendir+set}" = set; then |
| 15144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15145 | else |
| 15146 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15147 | cat >conftest.$ac_ext <<_ACEOF |
| 15148 | /* confdefs.h. */ |
| 15149 | _ACEOF |
| 15150 | cat confdefs.h >>conftest.$ac_ext |
| 15151 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15152 | /* end confdefs.h. */ |
| 15153 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15154 | /* Override any GCC internal prototype to avoid an error. |
| 15155 | Use char because int might match the return type of a GCC |
| 15156 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15157 | #ifdef __cplusplus |
| 15158 | extern "C" |
| 15159 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15160 | char opendir (); |
| 15161 | int |
| 15162 | main () |
| 15163 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15164 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15165 | ; |
| 15166 | return 0; |
| 15167 | } |
| 15168 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15169 | for ac_lib in '' x; do |
| 15170 | if test -z "$ac_lib"; then |
| 15171 | ac_res="none required" |
| 15172 | else |
| 15173 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15174 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15175 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15176 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15177 | if { (ac_try="$ac_link" |
| 15178 | case "(($ac_try" in |
| 15179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15180 | *) ac_try_echo=$ac_try;; |
| 15181 | esac |
| 15182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15183 | (eval "$ac_link") 2>conftest.er1 |
| 15184 | ac_status=$? |
| 15185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15186 | rm -f conftest.er1 |
| 15187 | cat conftest.err >&5 |
| 15188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15189 | (exit $ac_status); } && |
| 15190 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15191 | { (case "(($ac_try" in |
| 15192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15193 | *) ac_try_echo=$ac_try;; |
| 15194 | esac |
| 15195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15196 | (eval "$ac_try") 2>&5 |
| 15197 | ac_status=$? |
| 15198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15199 | (exit $ac_status); }; } && |
| 15200 | { ac_try='test -s conftest$ac_exeext' |
| 15201 | { (case "(($ac_try" in |
| 15202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15203 | *) ac_try_echo=$ac_try;; |
| 15204 | esac |
| 15205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15206 | (eval "$ac_try") 2>&5 |
| 15207 | ac_status=$? |
| 15208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15209 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15210 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15211 | else |
| 15212 | echo "$as_me: failed program was:" >&5 |
| 15213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15214 | |
| 15215 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15216 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15217 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15218 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15219 | conftest$ac_exeext |
| 15220 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15221 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15222 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15223 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15224 | if test "${ac_cv_search_opendir+set}" = set; then |
| 15225 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15226 | else |
| 15227 | ac_cv_search_opendir=no |
| 15228 | fi |
| 15229 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15230 | LIBS=$ac_func_search_save_LIBS |
| 15231 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15232 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 15233 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15234 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15235 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15236 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15237 | |
| 15238 | fi |
| 15239 | |
| 15240 | fi |
| 15241 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15242 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 15243 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 15244 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 15245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15246 | else |
| 15247 | ac_ext=c |
| 15248 | ac_cpp='$CPP $CPPFLAGS' |
| 15249 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15250 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15251 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15252 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15253 | cat >conftest.$ac_ext <<_ACEOF |
| 15254 | /* confdefs.h. */ |
| 15255 | _ACEOF |
| 15256 | cat confdefs.h >>conftest.$ac_ext |
| 15257 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15258 | /* end confdefs.h. */ |
| 15259 | #include <sys/mman.h> |
| 15260 | #include <unistd.h> |
| 15261 | #include <fcntl.h> |
| 15262 | int |
| 15263 | main () |
| 15264 | { |
| 15265 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 15266 | ; |
| 15267 | return 0; |
| 15268 | } |
| 15269 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15270 | rm -f conftest.$ac_objext |
| 15271 | if { (ac_try="$ac_compile" |
| 15272 | case "(($ac_try" in |
| 15273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15274 | *) ac_try_echo=$ac_try;; |
| 15275 | esac |
| 15276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15277 | (eval "$ac_compile") 2>conftest.er1 |
| 15278 | ac_status=$? |
| 15279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15280 | rm -f conftest.er1 |
| 15281 | cat conftest.err >&5 |
| 15282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15283 | (exit $ac_status); } && |
| 15284 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15285 | { (case "(($ac_try" in |
| 15286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15287 | *) ac_try_echo=$ac_try;; |
| 15288 | esac |
| 15289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15290 | (eval "$ac_try") 2>&5 |
| 15291 | ac_status=$? |
| 15292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15293 | (exit $ac_status); }; } && |
| 15294 | { ac_try='test -s conftest.$ac_objext' |
| 15295 | { (case "(($ac_try" in |
| 15296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15297 | *) ac_try_echo=$ac_try;; |
| 15298 | esac |
| 15299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15300 | (eval "$ac_try") 2>&5 |
| 15301 | ac_status=$? |
| 15302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15303 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15304 | ac_cv_header_mmap_anon=yes |
| 15305 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15306 | echo "$as_me: failed program was:" >&5 |
| 15307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15308 | |
| 15309 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15310 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15311 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15313 | ac_ext=c |
| 15314 | ac_cpp='$CPP $CPPFLAGS' |
| 15315 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15316 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15318 | |
| 15319 | |
| 15320 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15321 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 15322 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15323 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 15324 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15325 | cat >>confdefs.h <<\_ACEOF |
| 15326 | #define HAVE_MMAP_ANONYMOUS 1 |
| 15327 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15328 | |
| 15329 | fi |
| 15330 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15331 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 15332 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 15333 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 15334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15335 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15336 | cat >conftest.$ac_ext <<_ACEOF |
| 15337 | /* confdefs.h. */ |
| 15338 | _ACEOF |
| 15339 | cat confdefs.h >>conftest.$ac_ext |
| 15340 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15341 | /* end confdefs.h. */ |
| 15342 | #include <sys/types.h> |
| 15343 | #include <sys/stat.h> |
| 15344 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15345 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15346 | # if S_ISBLK (S_IFDIR) |
| 15347 | You lose. |
| 15348 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15349 | #endif |
| 15350 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15351 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15352 | # if S_ISBLK (S_IFCHR) |
| 15353 | You lose. |
| 15354 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15355 | #endif |
| 15356 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15357 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15358 | # if S_ISLNK (S_IFREG) |
| 15359 | You lose. |
| 15360 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15361 | #endif |
| 15362 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15363 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15364 | # if S_ISSOCK (S_IFREG) |
| 15365 | You lose. |
| 15366 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15367 | #endif |
| 15368 | |
| 15369 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15370 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15371 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 15372 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15373 | else |
| 15374 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 15375 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15376 | rm -f conftest* |
| 15377 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15378 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15379 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 15380 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15381 | if test $ac_cv_header_stat_broken = yes; then |
| 15382 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15383 | cat >>confdefs.h <<\_ACEOF |
| 15384 | #define STAT_MACROS_BROKEN 1 |
| 15385 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15386 | |
| 15387 | fi |
| 15388 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15389 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 15390 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 15391 | if test "${ac_cv_header_stdc+set}" = set; then |
| 15392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15393 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15394 | cat >conftest.$ac_ext <<_ACEOF |
| 15395 | /* confdefs.h. */ |
| 15396 | _ACEOF |
| 15397 | cat confdefs.h >>conftest.$ac_ext |
| 15398 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15399 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15400 | #include <stdlib.h> |
| 15401 | #include <stdarg.h> |
| 15402 | #include <string.h> |
| 15403 | #include <float.h> |
| 15404 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15405 | int |
| 15406 | main () |
| 15407 | { |
| 15408 | |
| 15409 | ; |
| 15410 | return 0; |
| 15411 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15412 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15413 | rm -f conftest.$ac_objext |
| 15414 | if { (ac_try="$ac_compile" |
| 15415 | case "(($ac_try" in |
| 15416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15417 | *) ac_try_echo=$ac_try;; |
| 15418 | esac |
| 15419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15420 | (eval "$ac_compile") 2>conftest.er1 |
| 15421 | ac_status=$? |
| 15422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15423 | rm -f conftest.er1 |
| 15424 | cat conftest.err >&5 |
| 15425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15426 | (exit $ac_status); } && |
| 15427 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15428 | { (case "(($ac_try" in |
| 15429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15430 | *) ac_try_echo=$ac_try;; |
| 15431 | esac |
| 15432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15433 | (eval "$ac_try") 2>&5 |
| 15434 | ac_status=$? |
| 15435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15436 | (exit $ac_status); }; } && |
| 15437 | { ac_try='test -s conftest.$ac_objext' |
| 15438 | { (case "(($ac_try" in |
| 15439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15440 | *) ac_try_echo=$ac_try;; |
| 15441 | esac |
| 15442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15443 | (eval "$ac_try") 2>&5 |
| 15444 | ac_status=$? |
| 15445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15446 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15447 | ac_cv_header_stdc=yes |
| 15448 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15449 | echo "$as_me: failed program was:" >&5 |
| 15450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15451 | |
| 15452 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15453 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15454 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15456 | |
| 15457 | if test $ac_cv_header_stdc = yes; then |
| 15458 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15459 | cat >conftest.$ac_ext <<_ACEOF |
| 15460 | /* confdefs.h. */ |
| 15461 | _ACEOF |
| 15462 | cat confdefs.h >>conftest.$ac_ext |
| 15463 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15464 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15465 | #include <string.h> |
| 15466 | |
| 15467 | _ACEOF |
| 15468 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15469 | $EGREP "memchr" >/dev/null 2>&1; then |
| 15470 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15471 | else |
| 15472 | ac_cv_header_stdc=no |
| 15473 | fi |
| 15474 | rm -f conftest* |
| 15475 | |
| 15476 | fi |
| 15477 | |
| 15478 | if test $ac_cv_header_stdc = yes; then |
| 15479 | # 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] | 15480 | cat >conftest.$ac_ext <<_ACEOF |
| 15481 | /* confdefs.h. */ |
| 15482 | _ACEOF |
| 15483 | cat confdefs.h >>conftest.$ac_ext |
| 15484 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15485 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15486 | #include <stdlib.h> |
| 15487 | |
| 15488 | _ACEOF |
| 15489 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15490 | $EGREP "free" >/dev/null 2>&1; then |
| 15491 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15492 | else |
| 15493 | ac_cv_header_stdc=no |
| 15494 | fi |
| 15495 | rm -f conftest* |
| 15496 | |
| 15497 | fi |
| 15498 | |
| 15499 | if test $ac_cv_header_stdc = yes; then |
| 15500 | # /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] | 15501 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15502 | : |
| 15503 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15504 | cat >conftest.$ac_ext <<_ACEOF |
| 15505 | /* confdefs.h. */ |
| 15506 | _ACEOF |
| 15507 | cat confdefs.h >>conftest.$ac_ext |
| 15508 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15509 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15510 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15511 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15512 | #if ((' ' & 0x0FF) == 0x020) |
| 15513 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 15514 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 15515 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15516 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15517 | (('a' <= (c) && (c) <= 'i') \ |
| 15518 | || ('j' <= (c) && (c) <= 'r') \ |
| 15519 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15520 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 15521 | #endif |
| 15522 | |
| 15523 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 15524 | int |
| 15525 | main () |
| 15526 | { |
| 15527 | int i; |
| 15528 | for (i = 0; i < 256; i++) |
| 15529 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15530 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15531 | return 2; |
| 15532 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15533 | } |
| 15534 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15535 | rm -f conftest$ac_exeext |
| 15536 | if { (ac_try="$ac_link" |
| 15537 | case "(($ac_try" in |
| 15538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15539 | *) ac_try_echo=$ac_try;; |
| 15540 | esac |
| 15541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15542 | (eval "$ac_link") 2>&5 |
| 15543 | ac_status=$? |
| 15544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15545 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15546 | { (case "(($ac_try" in |
| 15547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15548 | *) ac_try_echo=$ac_try;; |
| 15549 | esac |
| 15550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15551 | (eval "$ac_try") 2>&5 |
| 15552 | ac_status=$? |
| 15553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15554 | (exit $ac_status); }; }; then |
| 15555 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15556 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15557 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15558 | echo "$as_me: failed program was:" >&5 |
| 15559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15560 | |
| 15561 | ( exit $ac_status ) |
| 15562 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15563 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15564 | 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] | 15565 | fi |
| 15566 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15567 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15568 | fi |
| 15569 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15570 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 15571 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15572 | if test $ac_cv_header_stdc = yes; then |
| 15573 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15574 | cat >>confdefs.h <<\_ACEOF |
| 15575 | #define STDC_HEADERS 1 |
| 15576 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15577 | |
| 15578 | fi |
| 15579 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15580 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 15581 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 15582 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 15583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15584 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15585 | cat >conftest.$ac_ext <<_ACEOF |
| 15586 | /* confdefs.h. */ |
| 15587 | _ACEOF |
| 15588 | cat confdefs.h >>conftest.$ac_ext |
| 15589 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15590 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15591 | #include <sys/types.h> |
| 15592 | #include <sys/wait.h> |
| 15593 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15594 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15595 | #endif |
| 15596 | #ifndef WIFEXITED |
| 15597 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 15598 | #endif |
| 15599 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15600 | int |
| 15601 | main () |
| 15602 | { |
| 15603 | int s; |
| 15604 | wait (&s); |
| 15605 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 15606 | ; |
| 15607 | return 0; |
| 15608 | } |
| 15609 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15610 | rm -f conftest.$ac_objext |
| 15611 | if { (ac_try="$ac_compile" |
| 15612 | case "(($ac_try" in |
| 15613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15614 | *) ac_try_echo=$ac_try;; |
| 15615 | esac |
| 15616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15617 | (eval "$ac_compile") 2>conftest.er1 |
| 15618 | ac_status=$? |
| 15619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15620 | rm -f conftest.er1 |
| 15621 | cat conftest.err >&5 |
| 15622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15623 | (exit $ac_status); } && |
| 15624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15625 | { (case "(($ac_try" in |
| 15626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15627 | *) ac_try_echo=$ac_try;; |
| 15628 | esac |
| 15629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15630 | (eval "$ac_try") 2>&5 |
| 15631 | ac_status=$? |
| 15632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15633 | (exit $ac_status); }; } && |
| 15634 | { ac_try='test -s conftest.$ac_objext' |
| 15635 | { (case "(($ac_try" in |
| 15636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15637 | *) ac_try_echo=$ac_try;; |
| 15638 | esac |
| 15639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15640 | (eval "$ac_try") 2>&5 |
| 15641 | ac_status=$? |
| 15642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15643 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15644 | ac_cv_header_sys_wait_h=yes |
| 15645 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15646 | echo "$as_me: failed program was:" >&5 |
| 15647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15648 | |
| 15649 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15650 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15651 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15653 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15654 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 15655 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15656 | if test $ac_cv_header_sys_wait_h = yes; then |
| 15657 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15658 | cat >>confdefs.h <<\_ACEOF |
| 15659 | #define HAVE_SYS_WAIT_H 1 |
| 15660 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15661 | |
| 15662 | fi |
| 15663 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15664 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15665 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 15666 | if test "${ac_cv_header_time+set}" = set; then |
| 15667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15668 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15669 | cat >conftest.$ac_ext <<_ACEOF |
| 15670 | /* confdefs.h. */ |
| 15671 | _ACEOF |
| 15672 | cat confdefs.h >>conftest.$ac_ext |
| 15673 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15674 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15675 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15676 | #include <sys/time.h> |
| 15677 | #include <time.h> |
| 15678 | |
| 15679 | int |
| 15680 | main () |
| 15681 | { |
| 15682 | if ((struct tm *) 0) |
| 15683 | return 0; |
| 15684 | ; |
| 15685 | return 0; |
| 15686 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15687 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15688 | rm -f conftest.$ac_objext |
| 15689 | if { (ac_try="$ac_compile" |
| 15690 | case "(($ac_try" in |
| 15691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15692 | *) ac_try_echo=$ac_try;; |
| 15693 | esac |
| 15694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15695 | (eval "$ac_compile") 2>conftest.er1 |
| 15696 | ac_status=$? |
| 15697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15698 | rm -f conftest.er1 |
| 15699 | cat conftest.err >&5 |
| 15700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15701 | (exit $ac_status); } && |
| 15702 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15703 | { (case "(($ac_try" in |
| 15704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15705 | *) ac_try_echo=$ac_try;; |
| 15706 | esac |
| 15707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15708 | (eval "$ac_try") 2>&5 |
| 15709 | ac_status=$? |
| 15710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15711 | (exit $ac_status); }; } && |
| 15712 | { ac_try='test -s conftest.$ac_objext' |
| 15713 | { (case "(($ac_try" in |
| 15714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15715 | *) ac_try_echo=$ac_try;; |
| 15716 | esac |
| 15717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15718 | (eval "$ac_try") 2>&5 |
| 15719 | ac_status=$? |
| 15720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15721 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15722 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15723 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15724 | echo "$as_me: failed program was:" >&5 |
| 15725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15726 | |
| 15727 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15728 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15729 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15730 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15731 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15732 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15733 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15734 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15735 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15736 | cat >>confdefs.h <<\_ACEOF |
| 15737 | #define TIME_WITH_SYS_TIME 1 |
| 15738 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15739 | |
| 15740 | fi |
| 15741 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15742 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15743 | |
| 15744 | |
| 15745 | |
| 15746 | |
| 15747 | |
| 15748 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15749 | 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] | 15750 | do |
| 15751 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15752 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15753 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15754 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15755 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15757 | fi |
| 15758 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15759 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15760 | echo "${ECHO_T}$ac_res" >&6; } |
| 15761 | else |
| 15762 | # Is the header compilable? |
| 15763 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15764 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15765 | cat >conftest.$ac_ext <<_ACEOF |
| 15766 | /* confdefs.h. */ |
| 15767 | _ACEOF |
| 15768 | cat confdefs.h >>conftest.$ac_ext |
| 15769 | cat >>conftest.$ac_ext <<_ACEOF |
| 15770 | /* end confdefs.h. */ |
| 15771 | $ac_includes_default |
| 15772 | #include <$ac_header> |
| 15773 | _ACEOF |
| 15774 | rm -f conftest.$ac_objext |
| 15775 | if { (ac_try="$ac_compile" |
| 15776 | case "(($ac_try" in |
| 15777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15778 | *) ac_try_echo=$ac_try;; |
| 15779 | esac |
| 15780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15781 | (eval "$ac_compile") 2>conftest.er1 |
| 15782 | ac_status=$? |
| 15783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15784 | rm -f conftest.er1 |
| 15785 | cat conftest.err >&5 |
| 15786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15787 | (exit $ac_status); } && |
| 15788 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15789 | { (case "(($ac_try" in |
| 15790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15791 | *) ac_try_echo=$ac_try;; |
| 15792 | esac |
| 15793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15794 | (eval "$ac_try") 2>&5 |
| 15795 | ac_status=$? |
| 15796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15797 | (exit $ac_status); }; } && |
| 15798 | { ac_try='test -s conftest.$ac_objext' |
| 15799 | { (case "(($ac_try" in |
| 15800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15801 | *) ac_try_echo=$ac_try;; |
| 15802 | esac |
| 15803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15804 | (eval "$ac_try") 2>&5 |
| 15805 | ac_status=$? |
| 15806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15807 | (exit $ac_status); }; }; then |
| 15808 | ac_header_compiler=yes |
| 15809 | else |
| 15810 | echo "$as_me: failed program was:" >&5 |
| 15811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15812 | |
| 15813 | ac_header_compiler=no |
| 15814 | fi |
| 15815 | |
| 15816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15817 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15818 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15819 | |
| 15820 | # Is the header present? |
| 15821 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15822 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15823 | cat >conftest.$ac_ext <<_ACEOF |
| 15824 | /* confdefs.h. */ |
| 15825 | _ACEOF |
| 15826 | cat confdefs.h >>conftest.$ac_ext |
| 15827 | cat >>conftest.$ac_ext <<_ACEOF |
| 15828 | /* end confdefs.h. */ |
| 15829 | #include <$ac_header> |
| 15830 | _ACEOF |
| 15831 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15832 | case "(($ac_try" in |
| 15833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15834 | *) ac_try_echo=$ac_try;; |
| 15835 | esac |
| 15836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15837 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15838 | ac_status=$? |
| 15839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15840 | rm -f conftest.er1 |
| 15841 | cat conftest.err >&5 |
| 15842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15843 | (exit $ac_status); } >/dev/null; then |
| 15844 | if test -s conftest.err; then |
| 15845 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15846 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15847 | else |
| 15848 | ac_cpp_err= |
| 15849 | fi |
| 15850 | else |
| 15851 | ac_cpp_err=yes |
| 15852 | fi |
| 15853 | if test -z "$ac_cpp_err"; then |
| 15854 | ac_header_preproc=yes |
| 15855 | else |
| 15856 | echo "$as_me: failed program was:" >&5 |
| 15857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15858 | |
| 15859 | ac_header_preproc=no |
| 15860 | fi |
| 15861 | |
| 15862 | rm -f conftest.err conftest.$ac_ext |
| 15863 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15864 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15865 | |
| 15866 | # So? What about this header? |
| 15867 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15868 | yes:no: ) |
| 15869 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15870 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15871 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15872 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15873 | ac_header_preproc=yes |
| 15874 | ;; |
| 15875 | no:yes:* ) |
| 15876 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15877 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15878 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15879 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15880 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15881 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15882 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15883 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15884 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15885 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15886 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15887 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15888 | ( cat <<\_ASBOX |
| 15889 | ## ----------------------------------- ## |
| 15890 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15891 | ## ----------------------------------- ## |
| 15892 | _ASBOX |
| 15893 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15894 | ;; |
| 15895 | esac |
| 15896 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15897 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15898 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15900 | else |
| 15901 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15902 | fi |
| 15903 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15904 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15905 | echo "${ECHO_T}$ac_res" >&6; } |
| 15906 | |
| 15907 | fi |
| 15908 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15909 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15910 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15911 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15912 | |
| 15913 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15914 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15915 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15916 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15917 | |
| 15918 | |
| 15919 | |
| 15920 | |
| 15921 | |
| 15922 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15923 | 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] | 15924 | do |
| 15925 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15926 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15927 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15928 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15929 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15931 | fi |
| 15932 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15933 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15934 | echo "${ECHO_T}$ac_res" >&6; } |
| 15935 | else |
| 15936 | # Is the header compilable? |
| 15937 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15938 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15939 | cat >conftest.$ac_ext <<_ACEOF |
| 15940 | /* confdefs.h. */ |
| 15941 | _ACEOF |
| 15942 | cat confdefs.h >>conftest.$ac_ext |
| 15943 | cat >>conftest.$ac_ext <<_ACEOF |
| 15944 | /* end confdefs.h. */ |
| 15945 | $ac_includes_default |
| 15946 | #include <$ac_header> |
| 15947 | _ACEOF |
| 15948 | rm -f conftest.$ac_objext |
| 15949 | if { (ac_try="$ac_compile" |
| 15950 | case "(($ac_try" in |
| 15951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15952 | *) ac_try_echo=$ac_try;; |
| 15953 | esac |
| 15954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15955 | (eval "$ac_compile") 2>conftest.er1 |
| 15956 | ac_status=$? |
| 15957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15958 | rm -f conftest.er1 |
| 15959 | cat conftest.err >&5 |
| 15960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15961 | (exit $ac_status); } && |
| 15962 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15963 | { (case "(($ac_try" in |
| 15964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15965 | *) ac_try_echo=$ac_try;; |
| 15966 | esac |
| 15967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15968 | (eval "$ac_try") 2>&5 |
| 15969 | ac_status=$? |
| 15970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15971 | (exit $ac_status); }; } && |
| 15972 | { ac_try='test -s conftest.$ac_objext' |
| 15973 | { (case "(($ac_try" in |
| 15974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15975 | *) ac_try_echo=$ac_try;; |
| 15976 | esac |
| 15977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15978 | (eval "$ac_try") 2>&5 |
| 15979 | ac_status=$? |
| 15980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15981 | (exit $ac_status); }; }; then |
| 15982 | ac_header_compiler=yes |
| 15983 | else |
| 15984 | echo "$as_me: failed program was:" >&5 |
| 15985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15986 | |
| 15987 | ac_header_compiler=no |
| 15988 | fi |
| 15989 | |
| 15990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15991 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15992 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15993 | |
| 15994 | # Is the header present? |
| 15995 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15996 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15997 | cat >conftest.$ac_ext <<_ACEOF |
| 15998 | /* confdefs.h. */ |
| 15999 | _ACEOF |
| 16000 | cat confdefs.h >>conftest.$ac_ext |
| 16001 | cat >>conftest.$ac_ext <<_ACEOF |
| 16002 | /* end confdefs.h. */ |
| 16003 | #include <$ac_header> |
| 16004 | _ACEOF |
| 16005 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16006 | case "(($ac_try" in |
| 16007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16008 | *) ac_try_echo=$ac_try;; |
| 16009 | esac |
| 16010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16011 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16012 | ac_status=$? |
| 16013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16014 | rm -f conftest.er1 |
| 16015 | cat conftest.err >&5 |
| 16016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16017 | (exit $ac_status); } >/dev/null; then |
| 16018 | if test -s conftest.err; then |
| 16019 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16020 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16021 | else |
| 16022 | ac_cpp_err= |
| 16023 | fi |
| 16024 | else |
| 16025 | ac_cpp_err=yes |
| 16026 | fi |
| 16027 | if test -z "$ac_cpp_err"; then |
| 16028 | ac_header_preproc=yes |
| 16029 | else |
| 16030 | echo "$as_me: failed program was:" >&5 |
| 16031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16032 | |
| 16033 | ac_header_preproc=no |
| 16034 | fi |
| 16035 | |
| 16036 | rm -f conftest.err conftest.$ac_ext |
| 16037 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16038 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16039 | |
| 16040 | # So? What about this header? |
| 16041 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16042 | yes:no: ) |
| 16043 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16044 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16045 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16046 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16047 | ac_header_preproc=yes |
| 16048 | ;; |
| 16049 | no:yes:* ) |
| 16050 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16051 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16052 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16053 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16054 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16055 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16056 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16057 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16058 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16059 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16060 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16061 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16062 | ( cat <<\_ASBOX |
| 16063 | ## ----------------------------------- ## |
| 16064 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16065 | ## ----------------------------------- ## |
| 16066 | _ASBOX |
| 16067 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16068 | ;; |
| 16069 | esac |
| 16070 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16071 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16072 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16074 | else |
| 16075 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16076 | fi |
| 16077 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16078 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16079 | echo "${ECHO_T}$ac_res" >&6; } |
| 16080 | |
| 16081 | fi |
| 16082 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 16083 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16084 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 16085 | _ACEOF |
| 16086 | |
| 16087 | fi |
| 16088 | |
| 16089 | done |
| 16090 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16091 | |
| 16092 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 16093 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16094 | do |
| 16095 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16096 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 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 | fi |
| 16102 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16103 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16104 | echo "${ECHO_T}$ac_res" >&6; } |
| 16105 | else |
| 16106 | # Is the header compilable? |
| 16107 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16108 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16109 | cat >conftest.$ac_ext <<_ACEOF |
| 16110 | /* confdefs.h. */ |
| 16111 | _ACEOF |
| 16112 | cat confdefs.h >>conftest.$ac_ext |
| 16113 | cat >>conftest.$ac_ext <<_ACEOF |
| 16114 | /* end confdefs.h. */ |
| 16115 | $ac_includes_default |
| 16116 | #include <$ac_header> |
| 16117 | _ACEOF |
| 16118 | rm -f conftest.$ac_objext |
| 16119 | if { (ac_try="$ac_compile" |
| 16120 | case "(($ac_try" in |
| 16121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16122 | *) ac_try_echo=$ac_try;; |
| 16123 | esac |
| 16124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16125 | (eval "$ac_compile") 2>conftest.er1 |
| 16126 | ac_status=$? |
| 16127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16128 | rm -f conftest.er1 |
| 16129 | cat conftest.err >&5 |
| 16130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16131 | (exit $ac_status); } && |
| 16132 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16133 | { (case "(($ac_try" in |
| 16134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16135 | *) ac_try_echo=$ac_try;; |
| 16136 | esac |
| 16137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16138 | (eval "$ac_try") 2>&5 |
| 16139 | ac_status=$? |
| 16140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16141 | (exit $ac_status); }; } && |
| 16142 | { ac_try='test -s conftest.$ac_objext' |
| 16143 | { (case "(($ac_try" in |
| 16144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16145 | *) ac_try_echo=$ac_try;; |
| 16146 | esac |
| 16147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16148 | (eval "$ac_try") 2>&5 |
| 16149 | ac_status=$? |
| 16150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16151 | (exit $ac_status); }; }; then |
| 16152 | ac_header_compiler=yes |
| 16153 | else |
| 16154 | echo "$as_me: failed program was:" >&5 |
| 16155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16156 | |
| 16157 | ac_header_compiler=no |
| 16158 | fi |
| 16159 | |
| 16160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16161 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16162 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16163 | |
| 16164 | # Is the header present? |
| 16165 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16166 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16167 | cat >conftest.$ac_ext <<_ACEOF |
| 16168 | /* confdefs.h. */ |
| 16169 | _ACEOF |
| 16170 | cat confdefs.h >>conftest.$ac_ext |
| 16171 | cat >>conftest.$ac_ext <<_ACEOF |
| 16172 | /* end confdefs.h. */ |
| 16173 | #include <$ac_header> |
| 16174 | _ACEOF |
| 16175 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16176 | case "(($ac_try" in |
| 16177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16178 | *) ac_try_echo=$ac_try;; |
| 16179 | esac |
| 16180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16181 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16182 | ac_status=$? |
| 16183 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16184 | rm -f conftest.er1 |
| 16185 | cat conftest.err >&5 |
| 16186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16187 | (exit $ac_status); } >/dev/null; then |
| 16188 | if test -s conftest.err; then |
| 16189 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16190 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16191 | else |
| 16192 | ac_cpp_err= |
| 16193 | fi |
| 16194 | else |
| 16195 | ac_cpp_err=yes |
| 16196 | fi |
| 16197 | if test -z "$ac_cpp_err"; then |
| 16198 | ac_header_preproc=yes |
| 16199 | else |
| 16200 | echo "$as_me: failed program was:" >&5 |
| 16201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16202 | |
| 16203 | ac_header_preproc=no |
| 16204 | fi |
| 16205 | |
| 16206 | rm -f conftest.err conftest.$ac_ext |
| 16207 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16208 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16209 | |
| 16210 | # So? What about this header? |
| 16211 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16212 | yes:no: ) |
| 16213 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16214 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16215 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16216 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16217 | ac_header_preproc=yes |
| 16218 | ;; |
| 16219 | no:yes:* ) |
| 16220 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16221 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16222 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16223 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16224 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16225 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16226 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16227 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16228 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16229 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16230 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16231 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16232 | ( cat <<\_ASBOX |
| 16233 | ## ----------------------------------- ## |
| 16234 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16235 | ## ----------------------------------- ## |
| 16236 | _ASBOX |
| 16237 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16238 | ;; |
| 16239 | esac |
| 16240 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16241 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16242 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16244 | else |
| 16245 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16246 | fi |
| 16247 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16248 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16249 | echo "${ECHO_T}$ac_res" >&6; } |
| 16250 | |
| 16251 | fi |
| 16252 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16253 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16254 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16255 | _ACEOF |
| 16256 | |
| 16257 | fi |
| 16258 | |
| 16259 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 16260 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16261 | |
| 16262 | |
| 16263 | |
| 16264 | |
Daniel Dunbar | 3e46293 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 16265 | |
| 16266 | 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] | 16267 | do |
| 16268 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16269 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16270 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16271 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16272 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16274 | fi |
| 16275 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16276 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16277 | echo "${ECHO_T}$ac_res" >&6; } |
| 16278 | else |
| 16279 | # Is the header compilable? |
| 16280 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16281 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16282 | cat >conftest.$ac_ext <<_ACEOF |
| 16283 | /* confdefs.h. */ |
| 16284 | _ACEOF |
| 16285 | cat confdefs.h >>conftest.$ac_ext |
| 16286 | cat >>conftest.$ac_ext <<_ACEOF |
| 16287 | /* end confdefs.h. */ |
| 16288 | $ac_includes_default |
| 16289 | #include <$ac_header> |
| 16290 | _ACEOF |
| 16291 | rm -f conftest.$ac_objext |
| 16292 | if { (ac_try="$ac_compile" |
| 16293 | case "(($ac_try" in |
| 16294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16295 | *) ac_try_echo=$ac_try;; |
| 16296 | esac |
| 16297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16298 | (eval "$ac_compile") 2>conftest.er1 |
| 16299 | ac_status=$? |
| 16300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16301 | rm -f conftest.er1 |
| 16302 | cat conftest.err >&5 |
| 16303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16304 | (exit $ac_status); } && |
| 16305 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16306 | { (case "(($ac_try" in |
| 16307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16308 | *) ac_try_echo=$ac_try;; |
| 16309 | esac |
| 16310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16311 | (eval "$ac_try") 2>&5 |
| 16312 | ac_status=$? |
| 16313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16314 | (exit $ac_status); }; } && |
| 16315 | { ac_try='test -s conftest.$ac_objext' |
| 16316 | { (case "(($ac_try" in |
| 16317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16318 | *) ac_try_echo=$ac_try;; |
| 16319 | esac |
| 16320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16321 | (eval "$ac_try") 2>&5 |
| 16322 | ac_status=$? |
| 16323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16324 | (exit $ac_status); }; }; then |
| 16325 | ac_header_compiler=yes |
| 16326 | else |
| 16327 | echo "$as_me: failed program was:" >&5 |
| 16328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16329 | |
| 16330 | ac_header_compiler=no |
| 16331 | fi |
| 16332 | |
| 16333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16334 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16335 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16336 | |
| 16337 | # Is the header present? |
| 16338 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16339 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16340 | cat >conftest.$ac_ext <<_ACEOF |
| 16341 | /* confdefs.h. */ |
| 16342 | _ACEOF |
| 16343 | cat confdefs.h >>conftest.$ac_ext |
| 16344 | cat >>conftest.$ac_ext <<_ACEOF |
| 16345 | /* end confdefs.h. */ |
| 16346 | #include <$ac_header> |
| 16347 | _ACEOF |
| 16348 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16349 | case "(($ac_try" in |
| 16350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16351 | *) ac_try_echo=$ac_try;; |
| 16352 | esac |
| 16353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16354 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16355 | ac_status=$? |
| 16356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16357 | rm -f conftest.er1 |
| 16358 | cat conftest.err >&5 |
| 16359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16360 | (exit $ac_status); } >/dev/null; then |
| 16361 | if test -s conftest.err; then |
| 16362 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16363 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16364 | else |
| 16365 | ac_cpp_err= |
| 16366 | fi |
| 16367 | else |
| 16368 | ac_cpp_err=yes |
| 16369 | fi |
| 16370 | if test -z "$ac_cpp_err"; then |
| 16371 | ac_header_preproc=yes |
| 16372 | else |
| 16373 | echo "$as_me: failed program was:" >&5 |
| 16374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16375 | |
| 16376 | ac_header_preproc=no |
| 16377 | fi |
| 16378 | |
| 16379 | rm -f conftest.err conftest.$ac_ext |
| 16380 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16381 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16382 | |
| 16383 | # So? What about this header? |
| 16384 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16385 | yes:no: ) |
| 16386 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16387 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16388 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16389 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16390 | ac_header_preproc=yes |
| 16391 | ;; |
| 16392 | no:yes:* ) |
| 16393 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16394 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16395 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16396 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16397 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16398 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16399 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16400 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16401 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16402 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16403 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16404 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16405 | ( cat <<\_ASBOX |
| 16406 | ## ----------------------------------- ## |
| 16407 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16408 | ## ----------------------------------- ## |
| 16409 | _ASBOX |
| 16410 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16411 | ;; |
| 16412 | esac |
| 16413 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16414 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16415 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16417 | else |
| 16418 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16419 | fi |
| 16420 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16421 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16422 | echo "${ECHO_T}$ac_res" >&6; } |
| 16423 | |
| 16424 | fi |
| 16425 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16426 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16427 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16428 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16429 | |
| 16430 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16431 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16432 | done |
| 16433 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16434 | |
| 16435 | |
| 16436 | |
| 16437 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 16438 | 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] | 16439 | do |
| 16440 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16441 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16442 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16443 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16444 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 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 | else |
| 16451 | # Is the header compilable? |
| 16452 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16453 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16454 | cat >conftest.$ac_ext <<_ACEOF |
| 16455 | /* confdefs.h. */ |
| 16456 | _ACEOF |
| 16457 | cat confdefs.h >>conftest.$ac_ext |
| 16458 | cat >>conftest.$ac_ext <<_ACEOF |
| 16459 | /* end confdefs.h. */ |
| 16460 | $ac_includes_default |
| 16461 | #include <$ac_header> |
| 16462 | _ACEOF |
| 16463 | rm -f conftest.$ac_objext |
| 16464 | if { (ac_try="$ac_compile" |
| 16465 | case "(($ac_try" in |
| 16466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16467 | *) ac_try_echo=$ac_try;; |
| 16468 | esac |
| 16469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16470 | (eval "$ac_compile") 2>conftest.er1 |
| 16471 | ac_status=$? |
| 16472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16473 | rm -f conftest.er1 |
| 16474 | cat conftest.err >&5 |
| 16475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16476 | (exit $ac_status); } && |
| 16477 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16478 | { (case "(($ac_try" in |
| 16479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16480 | *) ac_try_echo=$ac_try;; |
| 16481 | esac |
| 16482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16483 | (eval "$ac_try") 2>&5 |
| 16484 | ac_status=$? |
| 16485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16486 | (exit $ac_status); }; } && |
| 16487 | { ac_try='test -s conftest.$ac_objext' |
| 16488 | { (case "(($ac_try" in |
| 16489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16490 | *) ac_try_echo=$ac_try;; |
| 16491 | esac |
| 16492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16493 | (eval "$ac_try") 2>&5 |
| 16494 | ac_status=$? |
| 16495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16496 | (exit $ac_status); }; }; then |
| 16497 | ac_header_compiler=yes |
| 16498 | else |
| 16499 | echo "$as_me: failed program was:" >&5 |
| 16500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16501 | |
| 16502 | ac_header_compiler=no |
| 16503 | fi |
| 16504 | |
| 16505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16506 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16507 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16508 | |
| 16509 | # Is the header present? |
| 16510 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16511 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16512 | cat >conftest.$ac_ext <<_ACEOF |
| 16513 | /* confdefs.h. */ |
| 16514 | _ACEOF |
| 16515 | cat confdefs.h >>conftest.$ac_ext |
| 16516 | cat >>conftest.$ac_ext <<_ACEOF |
| 16517 | /* end confdefs.h. */ |
| 16518 | #include <$ac_header> |
| 16519 | _ACEOF |
| 16520 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16521 | case "(($ac_try" in |
| 16522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16523 | *) ac_try_echo=$ac_try;; |
| 16524 | esac |
| 16525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16526 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16527 | ac_status=$? |
| 16528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16529 | rm -f conftest.er1 |
| 16530 | cat conftest.err >&5 |
| 16531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16532 | (exit $ac_status); } >/dev/null; then |
| 16533 | if test -s conftest.err; then |
| 16534 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16535 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16536 | else |
| 16537 | ac_cpp_err= |
| 16538 | fi |
| 16539 | else |
| 16540 | ac_cpp_err=yes |
| 16541 | fi |
| 16542 | if test -z "$ac_cpp_err"; then |
| 16543 | ac_header_preproc=yes |
| 16544 | else |
| 16545 | echo "$as_me: failed program was:" >&5 |
| 16546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16547 | |
| 16548 | ac_header_preproc=no |
| 16549 | fi |
| 16550 | |
| 16551 | rm -f conftest.err conftest.$ac_ext |
| 16552 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16553 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16554 | |
| 16555 | # So? What about this header? |
| 16556 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16557 | yes:no: ) |
| 16558 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16559 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16560 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16561 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16562 | ac_header_preproc=yes |
| 16563 | ;; |
| 16564 | no:yes:* ) |
| 16565 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16566 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16567 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16568 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16569 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16570 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16571 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16572 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16573 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16574 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16575 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16576 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16577 | ( cat <<\_ASBOX |
| 16578 | ## ----------------------------------- ## |
| 16579 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16580 | ## ----------------------------------- ## |
| 16581 | _ASBOX |
| 16582 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16583 | ;; |
| 16584 | esac |
| 16585 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16586 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16587 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16589 | else |
| 16590 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16591 | fi |
| 16592 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16593 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16594 | echo "${ECHO_T}$ac_res" >&6; } |
| 16595 | |
| 16596 | fi |
| 16597 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16598 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16599 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16600 | _ACEOF |
| 16601 | |
| 16602 | fi |
| 16603 | |
| 16604 | done |
| 16605 | |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 16606 | |
| 16607 | for ac_header in valgrind/valgrind.h |
| 16608 | do |
| 16609 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16610 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16611 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16612 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16613 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16615 | fi |
| 16616 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16617 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16618 | echo "${ECHO_T}$ac_res" >&6; } |
| 16619 | else |
| 16620 | # Is the header compilable? |
| 16621 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16622 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16623 | cat >conftest.$ac_ext <<_ACEOF |
| 16624 | /* confdefs.h. */ |
| 16625 | _ACEOF |
| 16626 | cat confdefs.h >>conftest.$ac_ext |
| 16627 | cat >>conftest.$ac_ext <<_ACEOF |
| 16628 | /* end confdefs.h. */ |
| 16629 | $ac_includes_default |
| 16630 | #include <$ac_header> |
| 16631 | _ACEOF |
| 16632 | rm -f conftest.$ac_objext |
| 16633 | if { (ac_try="$ac_compile" |
| 16634 | case "(($ac_try" in |
| 16635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16636 | *) ac_try_echo=$ac_try;; |
| 16637 | esac |
| 16638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16639 | (eval "$ac_compile") 2>conftest.er1 |
| 16640 | ac_status=$? |
| 16641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16642 | rm -f conftest.er1 |
| 16643 | cat conftest.err >&5 |
| 16644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16645 | (exit $ac_status); } && |
| 16646 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16647 | { (case "(($ac_try" in |
| 16648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16649 | *) ac_try_echo=$ac_try;; |
| 16650 | esac |
| 16651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16652 | (eval "$ac_try") 2>&5 |
| 16653 | ac_status=$? |
| 16654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16655 | (exit $ac_status); }; } && |
| 16656 | { ac_try='test -s conftest.$ac_objext' |
| 16657 | { (case "(($ac_try" in |
| 16658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16659 | *) ac_try_echo=$ac_try;; |
| 16660 | esac |
| 16661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16662 | (eval "$ac_try") 2>&5 |
| 16663 | ac_status=$? |
| 16664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16665 | (exit $ac_status); }; }; then |
| 16666 | ac_header_compiler=yes |
| 16667 | else |
| 16668 | echo "$as_me: failed program was:" >&5 |
| 16669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16670 | |
| 16671 | ac_header_compiler=no |
| 16672 | fi |
| 16673 | |
| 16674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16675 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16676 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16677 | |
| 16678 | # Is the header present? |
| 16679 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16680 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16681 | cat >conftest.$ac_ext <<_ACEOF |
| 16682 | /* confdefs.h. */ |
| 16683 | _ACEOF |
| 16684 | cat confdefs.h >>conftest.$ac_ext |
| 16685 | cat >>conftest.$ac_ext <<_ACEOF |
| 16686 | /* end confdefs.h. */ |
| 16687 | #include <$ac_header> |
| 16688 | _ACEOF |
| 16689 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16690 | case "(($ac_try" in |
| 16691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16692 | *) ac_try_echo=$ac_try;; |
| 16693 | esac |
| 16694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16695 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16696 | ac_status=$? |
| 16697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16698 | rm -f conftest.er1 |
| 16699 | cat conftest.err >&5 |
| 16700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16701 | (exit $ac_status); } >/dev/null; then |
| 16702 | if test -s conftest.err; then |
| 16703 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16704 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16705 | else |
| 16706 | ac_cpp_err= |
| 16707 | fi |
| 16708 | else |
| 16709 | ac_cpp_err=yes |
| 16710 | fi |
| 16711 | if test -z "$ac_cpp_err"; then |
| 16712 | ac_header_preproc=yes |
| 16713 | else |
| 16714 | echo "$as_me: failed program was:" >&5 |
| 16715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16716 | |
| 16717 | ac_header_preproc=no |
| 16718 | fi |
| 16719 | |
| 16720 | rm -f conftest.err conftest.$ac_ext |
| 16721 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16722 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16723 | |
| 16724 | # So? What about this header? |
| 16725 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16726 | yes:no: ) |
| 16727 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16728 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16729 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16730 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16731 | ac_header_preproc=yes |
| 16732 | ;; |
| 16733 | no:yes:* ) |
| 16734 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16735 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16736 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16737 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16738 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16739 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16740 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16741 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16742 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16743 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16744 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16745 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16746 | ( cat <<\_ASBOX |
| 16747 | ## ----------------------------------- ## |
| 16748 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16749 | ## ----------------------------------- ## |
| 16750 | _ASBOX |
| 16751 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16752 | ;; |
| 16753 | esac |
| 16754 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16755 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16756 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16758 | else |
| 16759 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16760 | fi |
| 16761 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16762 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16763 | echo "${ECHO_T}$ac_res" >&6; } |
| 16764 | |
| 16765 | fi |
| 16766 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16767 | cat >>confdefs.h <<_ACEOF |
| 16768 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16769 | _ACEOF |
| 16770 | |
| 16771 | fi |
| 16772 | |
| 16773 | done |
| 16774 | |
Dan Gohman | c6ce9d6 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 16775 | |
| 16776 | for ac_header in fenv.h |
| 16777 | do |
| 16778 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16779 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16780 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16781 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16782 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16784 | fi |
| 16785 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16786 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16787 | echo "${ECHO_T}$ac_res" >&6; } |
| 16788 | else |
| 16789 | # Is the header compilable? |
| 16790 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16791 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16792 | cat >conftest.$ac_ext <<_ACEOF |
| 16793 | /* confdefs.h. */ |
| 16794 | _ACEOF |
| 16795 | cat confdefs.h >>conftest.$ac_ext |
| 16796 | cat >>conftest.$ac_ext <<_ACEOF |
| 16797 | /* end confdefs.h. */ |
| 16798 | $ac_includes_default |
| 16799 | #include <$ac_header> |
| 16800 | _ACEOF |
| 16801 | rm -f conftest.$ac_objext |
| 16802 | if { (ac_try="$ac_compile" |
| 16803 | case "(($ac_try" in |
| 16804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16805 | *) ac_try_echo=$ac_try;; |
| 16806 | esac |
| 16807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16808 | (eval "$ac_compile") 2>conftest.er1 |
| 16809 | ac_status=$? |
| 16810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16811 | rm -f conftest.er1 |
| 16812 | cat conftest.err >&5 |
| 16813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16814 | (exit $ac_status); } && |
| 16815 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16816 | { (case "(($ac_try" in |
| 16817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16818 | *) ac_try_echo=$ac_try;; |
| 16819 | esac |
| 16820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16821 | (eval "$ac_try") 2>&5 |
| 16822 | ac_status=$? |
| 16823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16824 | (exit $ac_status); }; } && |
| 16825 | { ac_try='test -s conftest.$ac_objext' |
| 16826 | { (case "(($ac_try" in |
| 16827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16828 | *) ac_try_echo=$ac_try;; |
| 16829 | esac |
| 16830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16831 | (eval "$ac_try") 2>&5 |
| 16832 | ac_status=$? |
| 16833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16834 | (exit $ac_status); }; }; then |
| 16835 | ac_header_compiler=yes |
| 16836 | else |
| 16837 | echo "$as_me: failed program was:" >&5 |
| 16838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16839 | |
| 16840 | ac_header_compiler=no |
| 16841 | fi |
| 16842 | |
| 16843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16844 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16845 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16846 | |
| 16847 | # Is the header present? |
| 16848 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16849 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16850 | cat >conftest.$ac_ext <<_ACEOF |
| 16851 | /* confdefs.h. */ |
| 16852 | _ACEOF |
| 16853 | cat confdefs.h >>conftest.$ac_ext |
| 16854 | cat >>conftest.$ac_ext <<_ACEOF |
| 16855 | /* end confdefs.h. */ |
| 16856 | #include <$ac_header> |
| 16857 | _ACEOF |
| 16858 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16859 | case "(($ac_try" in |
| 16860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16861 | *) ac_try_echo=$ac_try;; |
| 16862 | esac |
| 16863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16864 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16865 | ac_status=$? |
| 16866 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16867 | rm -f conftest.er1 |
| 16868 | cat conftest.err >&5 |
| 16869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16870 | (exit $ac_status); } >/dev/null; then |
| 16871 | if test -s conftest.err; then |
| 16872 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16873 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16874 | else |
| 16875 | ac_cpp_err= |
| 16876 | fi |
| 16877 | else |
| 16878 | ac_cpp_err=yes |
| 16879 | fi |
| 16880 | if test -z "$ac_cpp_err"; then |
| 16881 | ac_header_preproc=yes |
| 16882 | else |
| 16883 | echo "$as_me: failed program was:" >&5 |
| 16884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16885 | |
| 16886 | ac_header_preproc=no |
| 16887 | fi |
| 16888 | |
| 16889 | rm -f conftest.err conftest.$ac_ext |
| 16890 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16891 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16892 | |
| 16893 | # So? What about this header? |
| 16894 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16895 | yes:no: ) |
| 16896 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16897 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16898 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16899 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16900 | ac_header_preproc=yes |
| 16901 | ;; |
| 16902 | no:yes:* ) |
| 16903 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16904 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16905 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16906 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16907 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16908 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16909 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16910 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16911 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16912 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16913 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16914 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16915 | ( cat <<\_ASBOX |
| 16916 | ## ----------------------------------- ## |
| 16917 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16918 | ## ----------------------------------- ## |
| 16919 | _ASBOX |
| 16920 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16921 | ;; |
| 16922 | esac |
| 16923 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16924 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16925 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16927 | else |
| 16928 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16929 | fi |
| 16930 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16931 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16932 | echo "${ECHO_T}$ac_res" >&6; } |
| 16933 | |
| 16934 | fi |
| 16935 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16936 | cat >>confdefs.h <<_ACEOF |
| 16937 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16938 | _ACEOF |
| 16939 | |
| 16940 | fi |
| 16941 | |
| 16942 | done |
| 16943 | |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 16944 | if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16945 | |
| 16946 | for ac_header in pthread.h |
| 16947 | do |
| 16948 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16949 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 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 | fi |
| 16955 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16956 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16957 | echo "${ECHO_T}$ac_res" >&6; } |
| 16958 | else |
| 16959 | # Is the header compilable? |
| 16960 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16961 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16962 | cat >conftest.$ac_ext <<_ACEOF |
| 16963 | /* confdefs.h. */ |
| 16964 | _ACEOF |
| 16965 | cat confdefs.h >>conftest.$ac_ext |
| 16966 | cat >>conftest.$ac_ext <<_ACEOF |
| 16967 | /* end confdefs.h. */ |
| 16968 | $ac_includes_default |
| 16969 | #include <$ac_header> |
| 16970 | _ACEOF |
| 16971 | rm -f conftest.$ac_objext |
| 16972 | if { (ac_try="$ac_compile" |
| 16973 | case "(($ac_try" in |
| 16974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16975 | *) ac_try_echo=$ac_try;; |
| 16976 | esac |
| 16977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16978 | (eval "$ac_compile") 2>conftest.er1 |
| 16979 | ac_status=$? |
| 16980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16981 | rm -f conftest.er1 |
| 16982 | cat conftest.err >&5 |
| 16983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16984 | (exit $ac_status); } && |
| 16985 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16986 | { (case "(($ac_try" in |
| 16987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16988 | *) ac_try_echo=$ac_try;; |
| 16989 | esac |
| 16990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16991 | (eval "$ac_try") 2>&5 |
| 16992 | ac_status=$? |
| 16993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16994 | (exit $ac_status); }; } && |
| 16995 | { ac_try='test -s conftest.$ac_objext' |
| 16996 | { (case "(($ac_try" in |
| 16997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16998 | *) ac_try_echo=$ac_try;; |
| 16999 | esac |
| 17000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17001 | (eval "$ac_try") 2>&5 |
| 17002 | ac_status=$? |
| 17003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17004 | (exit $ac_status); }; }; then |
| 17005 | ac_header_compiler=yes |
| 17006 | else |
| 17007 | echo "$as_me: failed program was:" >&5 |
| 17008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17009 | |
| 17010 | ac_header_compiler=no |
| 17011 | fi |
| 17012 | |
| 17013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17014 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17015 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17016 | |
| 17017 | # Is the header present? |
| 17018 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 17019 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 17020 | cat >conftest.$ac_ext <<_ACEOF |
| 17021 | /* confdefs.h. */ |
| 17022 | _ACEOF |
| 17023 | cat confdefs.h >>conftest.$ac_ext |
| 17024 | cat >>conftest.$ac_ext <<_ACEOF |
| 17025 | /* end confdefs.h. */ |
| 17026 | #include <$ac_header> |
| 17027 | _ACEOF |
| 17028 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17029 | case "(($ac_try" in |
| 17030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17031 | *) ac_try_echo=$ac_try;; |
| 17032 | esac |
| 17033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17034 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17035 | ac_status=$? |
| 17036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17037 | rm -f conftest.er1 |
| 17038 | cat conftest.err >&5 |
| 17039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17040 | (exit $ac_status); } >/dev/null; then |
| 17041 | if test -s conftest.err; then |
| 17042 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17043 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 17044 | else |
| 17045 | ac_cpp_err= |
| 17046 | fi |
| 17047 | else |
| 17048 | ac_cpp_err=yes |
| 17049 | fi |
| 17050 | if test -z "$ac_cpp_err"; then |
| 17051 | ac_header_preproc=yes |
| 17052 | else |
| 17053 | echo "$as_me: failed program was:" >&5 |
| 17054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17055 | |
| 17056 | ac_header_preproc=no |
| 17057 | fi |
| 17058 | |
| 17059 | rm -f conftest.err conftest.$ac_ext |
| 17060 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17061 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17062 | |
| 17063 | # So? What about this header? |
| 17064 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17065 | yes:no: ) |
| 17066 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17067 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17068 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17069 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 17070 | ac_header_preproc=yes |
| 17071 | ;; |
| 17072 | no:yes:* ) |
| 17073 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17074 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17075 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17076 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17077 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17078 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17079 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17080 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17081 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17082 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17083 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17084 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17085 | ( cat <<\_ASBOX |
| 17086 | ## ----------------------------------- ## |
| 17087 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 17088 | ## ----------------------------------- ## |
| 17089 | _ASBOX |
| 17090 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17091 | ;; |
| 17092 | esac |
| 17093 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17094 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17095 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17097 | else |
| 17098 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17099 | fi |
| 17100 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17101 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17102 | echo "${ECHO_T}$ac_res" >&6; } |
| 17103 | |
| 17104 | fi |
| 17105 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 17106 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17107 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 17108 | _ACEOF |
| 17109 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 17110 | |
| 17111 | else |
| 17112 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 17113 | |
| 17114 | fi |
| 17115 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 17116 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 17117 | |
| 17118 | else |
| 17119 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 17120 | |
| 17121 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 17122 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 17123 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17124 | |
| 17125 | |
| 17126 | for ac_header in ffi.h ffi/ffi.h |
| 17127 | do |
| 17128 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17129 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17130 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17131 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17132 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17134 | fi |
| 17135 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17136 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17137 | echo "${ECHO_T}$ac_res" >&6; } |
| 17138 | else |
| 17139 | # Is the header compilable? |
| 17140 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 17141 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 17142 | cat >conftest.$ac_ext <<_ACEOF |
| 17143 | /* confdefs.h. */ |
| 17144 | _ACEOF |
| 17145 | cat confdefs.h >>conftest.$ac_ext |
| 17146 | cat >>conftest.$ac_ext <<_ACEOF |
| 17147 | /* end confdefs.h. */ |
| 17148 | $ac_includes_default |
| 17149 | #include <$ac_header> |
| 17150 | _ACEOF |
| 17151 | rm -f conftest.$ac_objext |
| 17152 | if { (ac_try="$ac_compile" |
| 17153 | case "(($ac_try" in |
| 17154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17155 | *) ac_try_echo=$ac_try;; |
| 17156 | esac |
| 17157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17158 | (eval "$ac_compile") 2>conftest.er1 |
| 17159 | ac_status=$? |
| 17160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17161 | rm -f conftest.er1 |
| 17162 | cat conftest.err >&5 |
| 17163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17164 | (exit $ac_status); } && |
| 17165 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17166 | { (case "(($ac_try" in |
| 17167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17168 | *) ac_try_echo=$ac_try;; |
| 17169 | esac |
| 17170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17171 | (eval "$ac_try") 2>&5 |
| 17172 | ac_status=$? |
| 17173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17174 | (exit $ac_status); }; } && |
| 17175 | { ac_try='test -s conftest.$ac_objext' |
| 17176 | { (case "(($ac_try" in |
| 17177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17178 | *) ac_try_echo=$ac_try;; |
| 17179 | esac |
| 17180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17181 | (eval "$ac_try") 2>&5 |
| 17182 | ac_status=$? |
| 17183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17184 | (exit $ac_status); }; }; then |
| 17185 | ac_header_compiler=yes |
| 17186 | else |
| 17187 | echo "$as_me: failed program was:" >&5 |
| 17188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17189 | |
| 17190 | ac_header_compiler=no |
| 17191 | fi |
| 17192 | |
| 17193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17194 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17195 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17196 | |
| 17197 | # Is the header present? |
| 17198 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 17199 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 17200 | cat >conftest.$ac_ext <<_ACEOF |
| 17201 | /* confdefs.h. */ |
| 17202 | _ACEOF |
| 17203 | cat confdefs.h >>conftest.$ac_ext |
| 17204 | cat >>conftest.$ac_ext <<_ACEOF |
| 17205 | /* end confdefs.h. */ |
| 17206 | #include <$ac_header> |
| 17207 | _ACEOF |
| 17208 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17209 | case "(($ac_try" in |
| 17210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17211 | *) ac_try_echo=$ac_try;; |
| 17212 | esac |
| 17213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17214 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17215 | ac_status=$? |
| 17216 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17217 | rm -f conftest.er1 |
| 17218 | cat conftest.err >&5 |
| 17219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17220 | (exit $ac_status); } >/dev/null; then |
| 17221 | if test -s conftest.err; then |
| 17222 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17223 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 17224 | else |
| 17225 | ac_cpp_err= |
| 17226 | fi |
| 17227 | else |
| 17228 | ac_cpp_err=yes |
| 17229 | fi |
| 17230 | if test -z "$ac_cpp_err"; then |
| 17231 | ac_header_preproc=yes |
| 17232 | else |
| 17233 | echo "$as_me: failed program was:" >&5 |
| 17234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17235 | |
| 17236 | ac_header_preproc=no |
| 17237 | fi |
| 17238 | |
| 17239 | rm -f conftest.err conftest.$ac_ext |
| 17240 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17241 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17242 | |
| 17243 | # So? What about this header? |
| 17244 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17245 | yes:no: ) |
| 17246 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17247 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17248 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17249 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 17250 | ac_header_preproc=yes |
| 17251 | ;; |
| 17252 | no:yes:* ) |
| 17253 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17254 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17255 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17256 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17257 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17258 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17259 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17260 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17261 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17262 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17263 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17264 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17265 | ( cat <<\_ASBOX |
| 17266 | ## ----------------------------------- ## |
| 17267 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 17268 | ## ----------------------------------- ## |
| 17269 | _ASBOX |
| 17270 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17271 | ;; |
| 17272 | esac |
| 17273 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17274 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17275 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17277 | else |
| 17278 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17279 | fi |
| 17280 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17281 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17282 | echo "${ECHO_T}$ac_res" >&6; } |
| 17283 | |
| 17284 | fi |
| 17285 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 17286 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17287 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 17288 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 17289 | |
| 17290 | fi |
| 17291 | |
| 17292 | done |
| 17293 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 17294 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 17295 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 17296 | |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 17297 | for ac_header in CrashReporterClient.h |
| 17298 | do |
| 17299 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17300 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17301 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17302 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17303 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17305 | fi |
| 17306 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17307 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17308 | echo "${ECHO_T}$ac_res" >&6; } |
| 17309 | else |
| 17310 | # Is the header compilable? |
| 17311 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 17312 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 17313 | cat >conftest.$ac_ext <<_ACEOF |
| 17314 | /* confdefs.h. */ |
| 17315 | _ACEOF |
| 17316 | cat confdefs.h >>conftest.$ac_ext |
| 17317 | cat >>conftest.$ac_ext <<_ACEOF |
| 17318 | /* end confdefs.h. */ |
| 17319 | $ac_includes_default |
| 17320 | #include <$ac_header> |
| 17321 | _ACEOF |
| 17322 | rm -f conftest.$ac_objext |
| 17323 | if { (ac_try="$ac_compile" |
| 17324 | case "(($ac_try" in |
| 17325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17326 | *) ac_try_echo=$ac_try;; |
| 17327 | esac |
| 17328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17329 | (eval "$ac_compile") 2>conftest.er1 |
| 17330 | ac_status=$? |
| 17331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17332 | rm -f conftest.er1 |
| 17333 | cat conftest.err >&5 |
| 17334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17335 | (exit $ac_status); } && |
| 17336 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17337 | { (case "(($ac_try" in |
| 17338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17339 | *) ac_try_echo=$ac_try;; |
| 17340 | esac |
| 17341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17342 | (eval "$ac_try") 2>&5 |
| 17343 | ac_status=$? |
| 17344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17345 | (exit $ac_status); }; } && |
| 17346 | { ac_try='test -s conftest.$ac_objext' |
| 17347 | { (case "(($ac_try" in |
| 17348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17349 | *) ac_try_echo=$ac_try;; |
| 17350 | esac |
| 17351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17352 | (eval "$ac_try") 2>&5 |
| 17353 | ac_status=$? |
| 17354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17355 | (exit $ac_status); }; }; then |
| 17356 | ac_header_compiler=yes |
| 17357 | else |
| 17358 | echo "$as_me: failed program was:" >&5 |
| 17359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17360 | |
| 17361 | ac_header_compiler=no |
| 17362 | fi |
| 17363 | |
| 17364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17365 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17366 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17367 | |
| 17368 | # Is the header present? |
| 17369 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 17370 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 17371 | cat >conftest.$ac_ext <<_ACEOF |
| 17372 | /* confdefs.h. */ |
| 17373 | _ACEOF |
| 17374 | cat confdefs.h >>conftest.$ac_ext |
| 17375 | cat >>conftest.$ac_ext <<_ACEOF |
| 17376 | /* end confdefs.h. */ |
| 17377 | #include <$ac_header> |
| 17378 | _ACEOF |
| 17379 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17380 | case "(($ac_try" in |
| 17381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17382 | *) ac_try_echo=$ac_try;; |
| 17383 | esac |
| 17384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17385 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17386 | ac_status=$? |
| 17387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17388 | rm -f conftest.er1 |
| 17389 | cat conftest.err >&5 |
| 17390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17391 | (exit $ac_status); } >/dev/null; then |
| 17392 | if test -s conftest.err; then |
| 17393 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17394 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 17395 | else |
| 17396 | ac_cpp_err= |
| 17397 | fi |
| 17398 | else |
| 17399 | ac_cpp_err=yes |
| 17400 | fi |
| 17401 | if test -z "$ac_cpp_err"; then |
| 17402 | ac_header_preproc=yes |
| 17403 | else |
| 17404 | echo "$as_me: failed program was:" >&5 |
| 17405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17406 | |
| 17407 | ac_header_preproc=no |
| 17408 | fi |
| 17409 | |
| 17410 | rm -f conftest.err conftest.$ac_ext |
| 17411 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17412 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17413 | |
| 17414 | # So? What about this header? |
| 17415 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17416 | yes:no: ) |
| 17417 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17418 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17419 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17420 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 17421 | ac_header_preproc=yes |
| 17422 | ;; |
| 17423 | no:yes:* ) |
| 17424 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17425 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17426 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17427 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17428 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17429 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17430 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17431 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17432 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17433 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17434 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17435 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17436 | ( cat <<\_ASBOX |
| 17437 | ## ----------------------------------- ## |
| 17438 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 17439 | ## ----------------------------------- ## |
| 17440 | _ASBOX |
| 17441 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17442 | ;; |
| 17443 | esac |
| 17444 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17445 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17446 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17448 | else |
| 17449 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17450 | fi |
| 17451 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17452 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17453 | echo "${ECHO_T}$ac_res" >&6; } |
| 17454 | |
| 17455 | fi |
| 17456 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 17457 | cat >>confdefs.h <<_ACEOF |
| 17458 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17459 | _ACEOF |
| 17460 | |
| 17461 | fi |
| 17462 | |
| 17463 | done |
| 17464 | |
| 17465 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 17466 | { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 |
| 17467 | echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 17468 | cat >conftest.$ac_ext <<_ACEOF |
| 17469 | /* confdefs.h. */ |
| 17470 | _ACEOF |
| 17471 | cat confdefs.h >>conftest.$ac_ext |
| 17472 | cat >>conftest.$ac_ext <<_ACEOF |
| 17473 | /* end confdefs.h. */ |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 17474 | extern const char *__crashreporter_info__; |
| 17475 | int main() { |
| 17476 | __crashreporter_info__ = "test"; |
| 17477 | return 0; |
| 17478 | } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 17479 | |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 17480 | _ACEOF |
| 17481 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17482 | if { (ac_try="$ac_link" |
| 17483 | case "(($ac_try" in |
| 17484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17485 | *) ac_try_echo=$ac_try;; |
| 17486 | esac |
| 17487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17488 | (eval "$ac_link") 2>conftest.er1 |
| 17489 | ac_status=$? |
| 17490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17491 | rm -f conftest.er1 |
| 17492 | cat conftest.err >&5 |
| 17493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17494 | (exit $ac_status); } && |
| 17495 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17496 | { (case "(($ac_try" in |
| 17497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17498 | *) ac_try_echo=$ac_try;; |
| 17499 | esac |
| 17500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17501 | (eval "$ac_try") 2>&5 |
| 17502 | ac_status=$? |
| 17503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17504 | (exit $ac_status); }; } && |
| 17505 | { ac_try='test -s conftest$ac_exeext' |
| 17506 | { (case "(($ac_try" in |
| 17507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17508 | *) ac_try_echo=$ac_try;; |
| 17509 | esac |
| 17510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17511 | (eval "$ac_try") 2>&5 |
| 17512 | ac_status=$? |
| 17513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17514 | (exit $ac_status); }; }; then |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 17515 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17516 | echo "${ECHO_T}yes" >&6; } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 17517 | |
| 17518 | cat >>confdefs.h <<\_ACEOF |
| 17519 | #define HAVE_CRASHREPORTER_INFO 1 |
| 17520 | _ACEOF |
| 17521 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 17522 | else |
| 17523 | echo "$as_me: failed program was:" >&5 |
| 17524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17525 | |
| 17526 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17527 | echo "${ECHO_T}no" >&6; } |
| 17528 | |
| 17529 | cat >>confdefs.h <<\_ACEOF |
| 17530 | #define HAVE_CRASHREPORTER_INFO 0 |
| 17531 | _ACEOF |
| 17532 | |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 17533 | fi |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 17534 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 17535 | rm -f core conftest.err conftest.$ac_objext \ |
| 17536 | conftest$ac_exeext conftest.$ac_ext |
| 17537 | |
| 17538 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 17539 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17540 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17541 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 17542 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 17543 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 17544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17545 | else |
| 17546 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 17547 | ac_ext=cpp |
| 17548 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17549 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17550 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17551 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17552 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 17553 | ac_save_CXXFLAGS=$CXXFLAGS |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 17554 | CXXFLAGS=-pedantic |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17555 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17556 | ac_cv_huge_val_sanity=yes |
| 17557 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17558 | cat >conftest.$ac_ext <<_ACEOF |
| 17559 | /* confdefs.h. */ |
| 17560 | _ACEOF |
| 17561 | cat confdefs.h >>conftest.$ac_ext |
| 17562 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17563 | /* end confdefs.h. */ |
| 17564 | #include <math.h> |
| 17565 | int |
| 17566 | main () |
| 17567 | { |
| 17568 | double x = HUGE_VAL; return x != x; |
| 17569 | ; |
| 17570 | return 0; |
| 17571 | } |
| 17572 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17573 | rm -f conftest$ac_exeext |
| 17574 | if { (ac_try="$ac_link" |
| 17575 | case "(($ac_try" in |
| 17576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17577 | *) ac_try_echo=$ac_try;; |
| 17578 | esac |
| 17579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17580 | (eval "$ac_link") 2>&5 |
| 17581 | ac_status=$? |
| 17582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17583 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17584 | { (case "(($ac_try" in |
| 17585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17586 | *) ac_try_echo=$ac_try;; |
| 17587 | esac |
| 17588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17589 | (eval "$ac_try") 2>&5 |
| 17590 | ac_status=$? |
| 17591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17592 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17593 | ac_cv_huge_val_sanity=yes |
| 17594 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17595 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17596 | echo "$as_me: failed program was:" >&5 |
| 17597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17598 | |
| 17599 | ( exit $ac_status ) |
| 17600 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17601 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17602 | 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] | 17603 | fi |
| 17604 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17605 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 17606 | CXXFLAGS=$ac_save_CXXFLAGS |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17607 | ac_ext=c |
| 17608 | ac_cpp='$CPP $CPPFLAGS' |
| 17609 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17610 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17611 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17612 | |
| 17613 | |
| 17614 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17615 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 17616 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17617 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 17618 | |
| 17619 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17620 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 17621 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 17622 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 17623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17624 | else |
| 17625 | cat >conftest.$ac_ext <<_ACEOF |
| 17626 | /* confdefs.h. */ |
| 17627 | _ACEOF |
| 17628 | cat confdefs.h >>conftest.$ac_ext |
| 17629 | cat >>conftest.$ac_ext <<_ACEOF |
| 17630 | /* end confdefs.h. */ |
| 17631 | $ac_includes_default |
| 17632 | typedef pid_t ac__type_new_; |
| 17633 | int |
| 17634 | main () |
| 17635 | { |
| 17636 | if ((ac__type_new_ *) 0) |
| 17637 | return 0; |
| 17638 | if (sizeof (ac__type_new_)) |
| 17639 | return 0; |
| 17640 | ; |
| 17641 | return 0; |
| 17642 | } |
| 17643 | _ACEOF |
| 17644 | rm -f conftest.$ac_objext |
| 17645 | if { (ac_try="$ac_compile" |
| 17646 | case "(($ac_try" in |
| 17647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17648 | *) ac_try_echo=$ac_try;; |
| 17649 | esac |
| 17650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17651 | (eval "$ac_compile") 2>conftest.er1 |
| 17652 | ac_status=$? |
| 17653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17654 | rm -f conftest.er1 |
| 17655 | cat conftest.err >&5 |
| 17656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17657 | (exit $ac_status); } && |
| 17658 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17659 | { (case "(($ac_try" in |
| 17660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17661 | *) ac_try_echo=$ac_try;; |
| 17662 | esac |
| 17663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17664 | (eval "$ac_try") 2>&5 |
| 17665 | ac_status=$? |
| 17666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17667 | (exit $ac_status); }; } && |
| 17668 | { ac_try='test -s conftest.$ac_objext' |
| 17669 | { (case "(($ac_try" in |
| 17670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17671 | *) ac_try_echo=$ac_try;; |
| 17672 | esac |
| 17673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17674 | (eval "$ac_try") 2>&5 |
| 17675 | ac_status=$? |
| 17676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17677 | (exit $ac_status); }; }; then |
| 17678 | ac_cv_type_pid_t=yes |
| 17679 | else |
| 17680 | echo "$as_me: failed program was:" >&5 |
| 17681 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17682 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17683 | ac_cv_type_pid_t=no |
| 17684 | fi |
| 17685 | |
| 17686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17687 | fi |
| 17688 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 17689 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 17690 | if test $ac_cv_type_pid_t = yes; then |
| 17691 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17692 | else |
| 17693 | |
| 17694 | cat >>confdefs.h <<_ACEOF |
| 17695 | #define pid_t int |
| 17696 | _ACEOF |
| 17697 | |
| 17698 | fi |
| 17699 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17700 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 17701 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 17702 | if test "${ac_cv_type_size_t+set}" = set; then |
| 17703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17704 | else |
| 17705 | cat >conftest.$ac_ext <<_ACEOF |
| 17706 | /* confdefs.h. */ |
| 17707 | _ACEOF |
| 17708 | cat confdefs.h >>conftest.$ac_ext |
| 17709 | cat >>conftest.$ac_ext <<_ACEOF |
| 17710 | /* end confdefs.h. */ |
| 17711 | $ac_includes_default |
| 17712 | typedef size_t ac__type_new_; |
| 17713 | int |
| 17714 | main () |
| 17715 | { |
| 17716 | if ((ac__type_new_ *) 0) |
| 17717 | return 0; |
| 17718 | if (sizeof (ac__type_new_)) |
| 17719 | return 0; |
| 17720 | ; |
| 17721 | return 0; |
| 17722 | } |
| 17723 | _ACEOF |
| 17724 | rm -f conftest.$ac_objext |
| 17725 | if { (ac_try="$ac_compile" |
| 17726 | case "(($ac_try" in |
| 17727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17728 | *) ac_try_echo=$ac_try;; |
| 17729 | esac |
| 17730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17731 | (eval "$ac_compile") 2>conftest.er1 |
| 17732 | ac_status=$? |
| 17733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17734 | rm -f conftest.er1 |
| 17735 | cat conftest.err >&5 |
| 17736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17737 | (exit $ac_status); } && |
| 17738 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17739 | { (case "(($ac_try" in |
| 17740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17741 | *) ac_try_echo=$ac_try;; |
| 17742 | esac |
| 17743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17744 | (eval "$ac_try") 2>&5 |
| 17745 | ac_status=$? |
| 17746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17747 | (exit $ac_status); }; } && |
| 17748 | { ac_try='test -s conftest.$ac_objext' |
| 17749 | { (case "(($ac_try" in |
| 17750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17751 | *) ac_try_echo=$ac_try;; |
| 17752 | esac |
| 17753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17754 | (eval "$ac_try") 2>&5 |
| 17755 | ac_status=$? |
| 17756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17757 | (exit $ac_status); }; }; then |
| 17758 | ac_cv_type_size_t=yes |
| 17759 | else |
| 17760 | echo "$as_me: failed program was:" >&5 |
| 17761 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17762 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17763 | ac_cv_type_size_t=no |
| 17764 | fi |
| 17765 | |
| 17766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17767 | fi |
| 17768 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 17769 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 17770 | if test $ac_cv_type_size_t = yes; then |
| 17771 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17772 | else |
| 17773 | |
| 17774 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17775 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17776 | _ACEOF |
| 17777 | |
| 17778 | fi |
| 17779 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17780 | |
| 17781 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17782 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17783 | _ACEOF |
| 17784 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17785 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 17786 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 17787 | if test "${ac_cv_struct_tm+set}" = set; then |
| 17788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17789 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17790 | cat >conftest.$ac_ext <<_ACEOF |
| 17791 | /* confdefs.h. */ |
| 17792 | _ACEOF |
| 17793 | cat confdefs.h >>conftest.$ac_ext |
| 17794 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17795 | /* end confdefs.h. */ |
| 17796 | #include <sys/types.h> |
| 17797 | #include <time.h> |
| 17798 | |
| 17799 | int |
| 17800 | main () |
| 17801 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17802 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17803 | ; |
| 17804 | return 0; |
| 17805 | } |
| 17806 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17807 | rm -f conftest.$ac_objext |
| 17808 | if { (ac_try="$ac_compile" |
| 17809 | case "(($ac_try" in |
| 17810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17811 | *) ac_try_echo=$ac_try;; |
| 17812 | esac |
| 17813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17814 | (eval "$ac_compile") 2>conftest.er1 |
| 17815 | ac_status=$? |
| 17816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17817 | rm -f conftest.er1 |
| 17818 | cat conftest.err >&5 |
| 17819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17820 | (exit $ac_status); } && |
| 17821 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17822 | { (case "(($ac_try" in |
| 17823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17824 | *) ac_try_echo=$ac_try;; |
| 17825 | esac |
| 17826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17827 | (eval "$ac_try") 2>&5 |
| 17828 | ac_status=$? |
| 17829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17830 | (exit $ac_status); }; } && |
| 17831 | { ac_try='test -s conftest.$ac_objext' |
| 17832 | { (case "(($ac_try" in |
| 17833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17834 | *) ac_try_echo=$ac_try;; |
| 17835 | esac |
| 17836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17837 | (eval "$ac_try") 2>&5 |
| 17838 | ac_status=$? |
| 17839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17840 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17841 | ac_cv_struct_tm=time.h |
| 17842 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17843 | echo "$as_me: failed program was:" >&5 |
| 17844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17845 | |
| 17846 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17847 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17848 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17850 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17851 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 17852 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17853 | if test $ac_cv_struct_tm = sys/time.h; then |
| 17854 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17855 | cat >>confdefs.h <<\_ACEOF |
| 17856 | #define TM_IN_SYS_TIME 1 |
| 17857 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17858 | |
| 17859 | fi |
| 17860 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17861 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 17862 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 17863 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 17864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17865 | else |
| 17866 | cat >conftest.$ac_ext <<_ACEOF |
| 17867 | /* confdefs.h. */ |
| 17868 | _ACEOF |
| 17869 | cat confdefs.h >>conftest.$ac_ext |
| 17870 | cat >>conftest.$ac_ext <<_ACEOF |
| 17871 | /* end confdefs.h. */ |
| 17872 | $ac_includes_default |
| 17873 | typedef int64_t ac__type_new_; |
| 17874 | int |
| 17875 | main () |
| 17876 | { |
| 17877 | if ((ac__type_new_ *) 0) |
| 17878 | return 0; |
| 17879 | if (sizeof (ac__type_new_)) |
| 17880 | return 0; |
| 17881 | ; |
| 17882 | return 0; |
| 17883 | } |
| 17884 | _ACEOF |
| 17885 | rm -f conftest.$ac_objext |
| 17886 | if { (ac_try="$ac_compile" |
| 17887 | case "(($ac_try" in |
| 17888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17889 | *) ac_try_echo=$ac_try;; |
| 17890 | esac |
| 17891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17892 | (eval "$ac_compile") 2>conftest.er1 |
| 17893 | ac_status=$? |
| 17894 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17895 | rm -f conftest.er1 |
| 17896 | cat conftest.err >&5 |
| 17897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17898 | (exit $ac_status); } && |
| 17899 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17900 | { (case "(($ac_try" in |
| 17901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17902 | *) ac_try_echo=$ac_try;; |
| 17903 | esac |
| 17904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17905 | (eval "$ac_try") 2>&5 |
| 17906 | ac_status=$? |
| 17907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17908 | (exit $ac_status); }; } && |
| 17909 | { ac_try='test -s conftest.$ac_objext' |
| 17910 | { (case "(($ac_try" in |
| 17911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17912 | *) ac_try_echo=$ac_try;; |
| 17913 | esac |
| 17914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17915 | (eval "$ac_try") 2>&5 |
| 17916 | ac_status=$? |
| 17917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17918 | (exit $ac_status); }; }; then |
| 17919 | ac_cv_type_int64_t=yes |
| 17920 | else |
| 17921 | echo "$as_me: failed program was:" >&5 |
| 17922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17923 | |
| 17924 | ac_cv_type_int64_t=no |
| 17925 | fi |
| 17926 | |
| 17927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17928 | fi |
| 17929 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 17930 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 17931 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17932 | |
| 17933 | cat >>confdefs.h <<_ACEOF |
| 17934 | #define HAVE_INT64_T 1 |
| 17935 | _ACEOF |
| 17936 | |
| 17937 | |
| 17938 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17939 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 17940 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 17941 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17942 | fi |
| 17943 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17944 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 17945 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 17946 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 17947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17948 | else |
| 17949 | cat >conftest.$ac_ext <<_ACEOF |
| 17950 | /* confdefs.h. */ |
| 17951 | _ACEOF |
| 17952 | cat confdefs.h >>conftest.$ac_ext |
| 17953 | cat >>conftest.$ac_ext <<_ACEOF |
| 17954 | /* end confdefs.h. */ |
| 17955 | $ac_includes_default |
| 17956 | typedef uint64_t ac__type_new_; |
| 17957 | int |
| 17958 | main () |
| 17959 | { |
| 17960 | if ((ac__type_new_ *) 0) |
| 17961 | return 0; |
| 17962 | if (sizeof (ac__type_new_)) |
| 17963 | return 0; |
| 17964 | ; |
| 17965 | return 0; |
| 17966 | } |
| 17967 | _ACEOF |
| 17968 | rm -f conftest.$ac_objext |
| 17969 | if { (ac_try="$ac_compile" |
| 17970 | case "(($ac_try" in |
| 17971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17972 | *) ac_try_echo=$ac_try;; |
| 17973 | esac |
| 17974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17975 | (eval "$ac_compile") 2>conftest.er1 |
| 17976 | ac_status=$? |
| 17977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17978 | rm -f conftest.er1 |
| 17979 | cat conftest.err >&5 |
| 17980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17981 | (exit $ac_status); } && |
| 17982 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17983 | { (case "(($ac_try" in |
| 17984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17985 | *) ac_try_echo=$ac_try;; |
| 17986 | esac |
| 17987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17988 | (eval "$ac_try") 2>&5 |
| 17989 | ac_status=$? |
| 17990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17991 | (exit $ac_status); }; } && |
| 17992 | { ac_try='test -s conftest.$ac_objext' |
| 17993 | { (case "(($ac_try" in |
| 17994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17995 | *) ac_try_echo=$ac_try;; |
| 17996 | esac |
| 17997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17998 | (eval "$ac_try") 2>&5 |
| 17999 | ac_status=$? |
| 18000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18001 | (exit $ac_status); }; }; then |
| 18002 | ac_cv_type_uint64_t=yes |
| 18003 | else |
| 18004 | echo "$as_me: failed program was:" >&5 |
| 18005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18006 | |
| 18007 | ac_cv_type_uint64_t=no |
| 18008 | fi |
| 18009 | |
| 18010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18011 | fi |
| 18012 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 18013 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 18014 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18015 | |
| 18016 | cat >>confdefs.h <<_ACEOF |
| 18017 | #define HAVE_UINT64_T 1 |
| 18018 | _ACEOF |
| 18019 | |
| 18020 | |
| 18021 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18022 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 18023 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 18024 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 18025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18026 | else |
| 18027 | cat >conftest.$ac_ext <<_ACEOF |
| 18028 | /* confdefs.h. */ |
| 18029 | _ACEOF |
| 18030 | cat confdefs.h >>conftest.$ac_ext |
| 18031 | cat >>conftest.$ac_ext <<_ACEOF |
| 18032 | /* end confdefs.h. */ |
| 18033 | $ac_includes_default |
| 18034 | typedef u_int64_t ac__type_new_; |
| 18035 | int |
| 18036 | main () |
| 18037 | { |
| 18038 | if ((ac__type_new_ *) 0) |
| 18039 | return 0; |
| 18040 | if (sizeof (ac__type_new_)) |
| 18041 | return 0; |
| 18042 | ; |
| 18043 | return 0; |
| 18044 | } |
| 18045 | _ACEOF |
| 18046 | rm -f conftest.$ac_objext |
| 18047 | if { (ac_try="$ac_compile" |
| 18048 | case "(($ac_try" in |
| 18049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18050 | *) ac_try_echo=$ac_try;; |
| 18051 | esac |
| 18052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18053 | (eval "$ac_compile") 2>conftest.er1 |
| 18054 | ac_status=$? |
| 18055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18056 | rm -f conftest.er1 |
| 18057 | cat conftest.err >&5 |
| 18058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18059 | (exit $ac_status); } && |
| 18060 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18061 | { (case "(($ac_try" in |
| 18062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18063 | *) ac_try_echo=$ac_try;; |
| 18064 | esac |
| 18065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18066 | (eval "$ac_try") 2>&5 |
| 18067 | ac_status=$? |
| 18068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18069 | (exit $ac_status); }; } && |
| 18070 | { ac_try='test -s conftest.$ac_objext' |
| 18071 | { (case "(($ac_try" in |
| 18072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18073 | *) ac_try_echo=$ac_try;; |
| 18074 | esac |
| 18075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18076 | (eval "$ac_try") 2>&5 |
| 18077 | ac_status=$? |
| 18078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18079 | (exit $ac_status); }; }; then |
| 18080 | ac_cv_type_u_int64_t=yes |
| 18081 | else |
| 18082 | echo "$as_me: failed program was:" >&5 |
| 18083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18084 | |
| 18085 | ac_cv_type_u_int64_t=no |
| 18086 | fi |
| 18087 | |
| 18088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18089 | fi |
| 18090 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 18091 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 18092 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 18093 | |
| 18094 | cat >>confdefs.h <<_ACEOF |
| 18095 | #define HAVE_U_INT64_T 1 |
| 18096 | _ACEOF |
| 18097 | |
| 18098 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 18099 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18100 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 18101 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 18102 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 18103 | fi |
| 18104 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 18105 | fi |
| 18106 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18107 | |
| 18108 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18109 | |
| 18110 | |
| 18111 | |
| 18112 | |
| 18113 | |
| 18114 | |
| 18115 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18116 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18117 | do |
| 18118 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18119 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18120 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18121 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18123 | else |
| 18124 | cat >conftest.$ac_ext <<_ACEOF |
| 18125 | /* confdefs.h. */ |
| 18126 | _ACEOF |
| 18127 | cat confdefs.h >>conftest.$ac_ext |
| 18128 | cat >>conftest.$ac_ext <<_ACEOF |
| 18129 | /* end confdefs.h. */ |
| 18130 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18131 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18132 | #define $ac_func innocuous_$ac_func |
| 18133 | |
| 18134 | /* System header to define __stub macros and hopefully few prototypes, |
| 18135 | which can conflict with char $ac_func (); below. |
| 18136 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18137 | <limits.h> exists even on freestanding compilers. */ |
| 18138 | |
| 18139 | #ifdef __STDC__ |
| 18140 | # include <limits.h> |
| 18141 | #else |
| 18142 | # include <assert.h> |
| 18143 | #endif |
| 18144 | |
| 18145 | #undef $ac_func |
| 18146 | |
| 18147 | /* Override any GCC internal prototype to avoid an error. |
| 18148 | Use char because int might match the return type of a GCC |
| 18149 | builtin and then its argument prototype would still apply. */ |
| 18150 | #ifdef __cplusplus |
| 18151 | extern "C" |
| 18152 | #endif |
| 18153 | char $ac_func (); |
| 18154 | /* The GNU C library defines this for functions which it implements |
| 18155 | to always fail with ENOSYS. Some functions are actually named |
| 18156 | something starting with __ and the normal name is an alias. */ |
| 18157 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18158 | choke me |
| 18159 | #endif |
| 18160 | |
| 18161 | int |
| 18162 | main () |
| 18163 | { |
| 18164 | return $ac_func (); |
| 18165 | ; |
| 18166 | return 0; |
| 18167 | } |
| 18168 | _ACEOF |
| 18169 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18170 | if { (ac_try="$ac_link" |
| 18171 | case "(($ac_try" in |
| 18172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18173 | *) ac_try_echo=$ac_try;; |
| 18174 | esac |
| 18175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18176 | (eval "$ac_link") 2>conftest.er1 |
| 18177 | ac_status=$? |
| 18178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18179 | rm -f conftest.er1 |
| 18180 | cat conftest.err >&5 |
| 18181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18182 | (exit $ac_status); } && |
| 18183 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18184 | { (case "(($ac_try" in |
| 18185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18186 | *) ac_try_echo=$ac_try;; |
| 18187 | esac |
| 18188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18189 | (eval "$ac_try") 2>&5 |
| 18190 | ac_status=$? |
| 18191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18192 | (exit $ac_status); }; } && |
| 18193 | { ac_try='test -s conftest$ac_exeext' |
| 18194 | { (case "(($ac_try" in |
| 18195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18196 | *) ac_try_echo=$ac_try;; |
| 18197 | esac |
| 18198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18199 | (eval "$ac_try") 2>&5 |
| 18200 | ac_status=$? |
| 18201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18202 | (exit $ac_status); }; }; then |
| 18203 | eval "$as_ac_var=yes" |
| 18204 | else |
| 18205 | echo "$as_me: failed program was:" >&5 |
| 18206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18207 | |
| 18208 | eval "$as_ac_var=no" |
| 18209 | fi |
| 18210 | |
| 18211 | rm -f core conftest.err conftest.$ac_objext \ |
| 18212 | conftest$ac_exeext conftest.$ac_ext |
| 18213 | fi |
| 18214 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18215 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18216 | echo "${ECHO_T}$ac_res" >&6; } |
| 18217 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18218 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18219 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18220 | _ACEOF |
| 18221 | |
| 18222 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18223 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18224 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18225 | |
| 18226 | |
| 18227 | |
| 18228 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 18229 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18230 | do |
| 18231 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18232 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18233 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18234 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18236 | else |
| 18237 | cat >conftest.$ac_ext <<_ACEOF |
| 18238 | /* confdefs.h. */ |
| 18239 | _ACEOF |
| 18240 | cat confdefs.h >>conftest.$ac_ext |
| 18241 | cat >>conftest.$ac_ext <<_ACEOF |
| 18242 | /* end confdefs.h. */ |
| 18243 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18244 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18245 | #define $ac_func innocuous_$ac_func |
| 18246 | |
| 18247 | /* System header to define __stub macros and hopefully few prototypes, |
| 18248 | which can conflict with char $ac_func (); below. |
| 18249 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18250 | <limits.h> exists even on freestanding compilers. */ |
| 18251 | |
| 18252 | #ifdef __STDC__ |
| 18253 | # include <limits.h> |
| 18254 | #else |
| 18255 | # include <assert.h> |
| 18256 | #endif |
| 18257 | |
| 18258 | #undef $ac_func |
| 18259 | |
| 18260 | /* Override any GCC internal prototype to avoid an error. |
| 18261 | Use char because int might match the return type of a GCC |
| 18262 | builtin and then its argument prototype would still apply. */ |
| 18263 | #ifdef __cplusplus |
| 18264 | extern "C" |
| 18265 | #endif |
| 18266 | char $ac_func (); |
| 18267 | /* The GNU C library defines this for functions which it implements |
| 18268 | to always fail with ENOSYS. Some functions are actually named |
| 18269 | something starting with __ and the normal name is an alias. */ |
| 18270 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18271 | choke me |
| 18272 | #endif |
| 18273 | |
| 18274 | int |
| 18275 | main () |
| 18276 | { |
| 18277 | return $ac_func (); |
| 18278 | ; |
| 18279 | return 0; |
| 18280 | } |
| 18281 | _ACEOF |
| 18282 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18283 | if { (ac_try="$ac_link" |
| 18284 | case "(($ac_try" in |
| 18285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18286 | *) ac_try_echo=$ac_try;; |
| 18287 | esac |
| 18288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18289 | (eval "$ac_link") 2>conftest.er1 |
| 18290 | ac_status=$? |
| 18291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18292 | rm -f conftest.er1 |
| 18293 | cat conftest.err >&5 |
| 18294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18295 | (exit $ac_status); } && |
| 18296 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18297 | { (case "(($ac_try" in |
| 18298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18299 | *) ac_try_echo=$ac_try;; |
| 18300 | esac |
| 18301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18302 | (eval "$ac_try") 2>&5 |
| 18303 | ac_status=$? |
| 18304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18305 | (exit $ac_status); }; } && |
| 18306 | { ac_try='test -s conftest$ac_exeext' |
| 18307 | { (case "(($ac_try" in |
| 18308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18309 | *) ac_try_echo=$ac_try;; |
| 18310 | esac |
| 18311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18312 | (eval "$ac_try") 2>&5 |
| 18313 | ac_status=$? |
| 18314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18315 | (exit $ac_status); }; }; then |
| 18316 | eval "$as_ac_var=yes" |
| 18317 | else |
| 18318 | echo "$as_me: failed program was:" >&5 |
| 18319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18320 | |
| 18321 | eval "$as_ac_var=no" |
| 18322 | fi |
| 18323 | |
| 18324 | rm -f core conftest.err conftest.$ac_objext \ |
| 18325 | conftest$ac_exeext conftest.$ac_ext |
| 18326 | fi |
| 18327 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18328 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18329 | echo "${ECHO_T}$ac_res" >&6; } |
| 18330 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 18331 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18332 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 18333 | _ACEOF |
| 18334 | |
| 18335 | fi |
| 18336 | done |
| 18337 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18338 | |
| 18339 | |
| 18340 | |
| 18341 | |
| 18342 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18343 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18344 | do |
| 18345 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18346 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18347 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18348 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18350 | else |
| 18351 | cat >conftest.$ac_ext <<_ACEOF |
| 18352 | /* confdefs.h. */ |
| 18353 | _ACEOF |
| 18354 | cat confdefs.h >>conftest.$ac_ext |
| 18355 | cat >>conftest.$ac_ext <<_ACEOF |
| 18356 | /* end confdefs.h. */ |
| 18357 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18358 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18359 | #define $ac_func innocuous_$ac_func |
| 18360 | |
| 18361 | /* System header to define __stub macros and hopefully few prototypes, |
| 18362 | which can conflict with char $ac_func (); below. |
| 18363 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18364 | <limits.h> exists even on freestanding compilers. */ |
| 18365 | |
| 18366 | #ifdef __STDC__ |
| 18367 | # include <limits.h> |
| 18368 | #else |
| 18369 | # include <assert.h> |
| 18370 | #endif |
| 18371 | |
| 18372 | #undef $ac_func |
| 18373 | |
| 18374 | /* Override any GCC internal prototype to avoid an error. |
| 18375 | Use char because int might match the return type of a GCC |
| 18376 | builtin and then its argument prototype would still apply. */ |
| 18377 | #ifdef __cplusplus |
| 18378 | extern "C" |
| 18379 | #endif |
| 18380 | char $ac_func (); |
| 18381 | /* The GNU C library defines this for functions which it implements |
| 18382 | to always fail with ENOSYS. Some functions are actually named |
| 18383 | something starting with __ and the normal name is an alias. */ |
| 18384 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18385 | choke me |
| 18386 | #endif |
| 18387 | |
| 18388 | int |
| 18389 | main () |
| 18390 | { |
| 18391 | return $ac_func (); |
| 18392 | ; |
| 18393 | return 0; |
| 18394 | } |
| 18395 | _ACEOF |
| 18396 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18397 | if { (ac_try="$ac_link" |
| 18398 | case "(($ac_try" in |
| 18399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18400 | *) ac_try_echo=$ac_try;; |
| 18401 | esac |
| 18402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18403 | (eval "$ac_link") 2>conftest.er1 |
| 18404 | ac_status=$? |
| 18405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18406 | rm -f conftest.er1 |
| 18407 | cat conftest.err >&5 |
| 18408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18409 | (exit $ac_status); } && |
| 18410 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18411 | { (case "(($ac_try" in |
| 18412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18413 | *) ac_try_echo=$ac_try;; |
| 18414 | esac |
| 18415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18416 | (eval "$ac_try") 2>&5 |
| 18417 | ac_status=$? |
| 18418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18419 | (exit $ac_status); }; } && |
| 18420 | { ac_try='test -s conftest$ac_exeext' |
| 18421 | { (case "(($ac_try" in |
| 18422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18423 | *) ac_try_echo=$ac_try;; |
| 18424 | esac |
| 18425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18426 | (eval "$ac_try") 2>&5 |
| 18427 | ac_status=$? |
| 18428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18429 | (exit $ac_status); }; }; then |
| 18430 | eval "$as_ac_var=yes" |
| 18431 | else |
| 18432 | echo "$as_me: failed program was:" >&5 |
| 18433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18434 | |
| 18435 | eval "$as_ac_var=no" |
| 18436 | fi |
| 18437 | |
| 18438 | rm -f core conftest.err conftest.$ac_objext \ |
| 18439 | conftest$ac_exeext conftest.$ac_ext |
| 18440 | fi |
| 18441 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18442 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18443 | echo "${ECHO_T}$ac_res" >&6; } |
| 18444 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18445 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18446 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18447 | _ACEOF |
| 18448 | |
| 18449 | fi |
| 18450 | done |
| 18451 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18452 | |
| 18453 | |
| 18454 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18455 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18456 | do |
| 18457 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18458 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18459 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18460 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18462 | else |
| 18463 | cat >conftest.$ac_ext <<_ACEOF |
| 18464 | /* confdefs.h. */ |
| 18465 | _ACEOF |
| 18466 | cat confdefs.h >>conftest.$ac_ext |
| 18467 | cat >>conftest.$ac_ext <<_ACEOF |
| 18468 | /* end confdefs.h. */ |
| 18469 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18470 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18471 | #define $ac_func innocuous_$ac_func |
| 18472 | |
| 18473 | /* System header to define __stub macros and hopefully few prototypes, |
| 18474 | which can conflict with char $ac_func (); below. |
| 18475 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18476 | <limits.h> exists even on freestanding compilers. */ |
| 18477 | |
| 18478 | #ifdef __STDC__ |
| 18479 | # include <limits.h> |
| 18480 | #else |
| 18481 | # include <assert.h> |
| 18482 | #endif |
| 18483 | |
| 18484 | #undef $ac_func |
| 18485 | |
| 18486 | /* Override any GCC internal prototype to avoid an error. |
| 18487 | Use char because int might match the return type of a GCC |
| 18488 | builtin and then its argument prototype would still apply. */ |
| 18489 | #ifdef __cplusplus |
| 18490 | extern "C" |
| 18491 | #endif |
| 18492 | char $ac_func (); |
| 18493 | /* The GNU C library defines this for functions which it implements |
| 18494 | to always fail with ENOSYS. Some functions are actually named |
| 18495 | something starting with __ and the normal name is an alias. */ |
| 18496 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18497 | choke me |
| 18498 | #endif |
| 18499 | |
| 18500 | int |
| 18501 | main () |
| 18502 | { |
| 18503 | return $ac_func (); |
| 18504 | ; |
| 18505 | return 0; |
| 18506 | } |
| 18507 | _ACEOF |
| 18508 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18509 | if { (ac_try="$ac_link" |
| 18510 | case "(($ac_try" in |
| 18511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18512 | *) ac_try_echo=$ac_try;; |
| 18513 | esac |
| 18514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18515 | (eval "$ac_link") 2>conftest.er1 |
| 18516 | ac_status=$? |
| 18517 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18518 | rm -f conftest.er1 |
| 18519 | cat conftest.err >&5 |
| 18520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18521 | (exit $ac_status); } && |
| 18522 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18523 | { (case "(($ac_try" in |
| 18524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18525 | *) ac_try_echo=$ac_try;; |
| 18526 | esac |
| 18527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18528 | (eval "$ac_try") 2>&5 |
| 18529 | ac_status=$? |
| 18530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18531 | (exit $ac_status); }; } && |
| 18532 | { ac_try='test -s conftest$ac_exeext' |
| 18533 | { (case "(($ac_try" in |
| 18534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18535 | *) ac_try_echo=$ac_try;; |
| 18536 | esac |
| 18537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18538 | (eval "$ac_try") 2>&5 |
| 18539 | ac_status=$? |
| 18540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18541 | (exit $ac_status); }; }; then |
| 18542 | eval "$as_ac_var=yes" |
| 18543 | else |
| 18544 | echo "$as_me: failed program was:" >&5 |
| 18545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18546 | |
| 18547 | eval "$as_ac_var=no" |
| 18548 | fi |
| 18549 | |
| 18550 | rm -f core conftest.err conftest.$ac_objext \ |
| 18551 | conftest$ac_exeext conftest.$ac_ext |
| 18552 | fi |
| 18553 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18554 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18555 | echo "${ECHO_T}$ac_res" >&6; } |
| 18556 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18557 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18558 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18559 | _ACEOF |
| 18560 | |
| 18561 | fi |
| 18562 | done |
| 18563 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18564 | |
| 18565 | |
| 18566 | |
| 18567 | |
| 18568 | |
Eric Christopher | e429182 | 2010-04-16 05:14:21 +0000 | [diff] [blame] | 18569 | |
| 18570 | for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18571 | do |
| 18572 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18573 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18574 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18575 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18577 | else |
| 18578 | cat >conftest.$ac_ext <<_ACEOF |
| 18579 | /* confdefs.h. */ |
| 18580 | _ACEOF |
| 18581 | cat confdefs.h >>conftest.$ac_ext |
| 18582 | cat >>conftest.$ac_ext <<_ACEOF |
| 18583 | /* end confdefs.h. */ |
| 18584 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18585 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18586 | #define $ac_func innocuous_$ac_func |
| 18587 | |
| 18588 | /* System header to define __stub macros and hopefully few prototypes, |
| 18589 | which can conflict with char $ac_func (); below. |
| 18590 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18591 | <limits.h> exists even on freestanding compilers. */ |
| 18592 | |
| 18593 | #ifdef __STDC__ |
| 18594 | # include <limits.h> |
| 18595 | #else |
| 18596 | # include <assert.h> |
| 18597 | #endif |
| 18598 | |
| 18599 | #undef $ac_func |
| 18600 | |
| 18601 | /* Override any GCC internal prototype to avoid an error. |
| 18602 | Use char because int might match the return type of a GCC |
| 18603 | builtin and then its argument prototype would still apply. */ |
| 18604 | #ifdef __cplusplus |
| 18605 | extern "C" |
| 18606 | #endif |
| 18607 | char $ac_func (); |
| 18608 | /* The GNU C library defines this for functions which it implements |
| 18609 | to always fail with ENOSYS. Some functions are actually named |
| 18610 | something starting with __ and the normal name is an alias. */ |
| 18611 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18612 | choke me |
| 18613 | #endif |
| 18614 | |
| 18615 | int |
| 18616 | main () |
| 18617 | { |
| 18618 | return $ac_func (); |
| 18619 | ; |
| 18620 | return 0; |
| 18621 | } |
| 18622 | _ACEOF |
| 18623 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18624 | if { (ac_try="$ac_link" |
| 18625 | case "(($ac_try" in |
| 18626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18627 | *) ac_try_echo=$ac_try;; |
| 18628 | esac |
| 18629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18630 | (eval "$ac_link") 2>conftest.er1 |
| 18631 | ac_status=$? |
| 18632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18633 | rm -f conftest.er1 |
| 18634 | cat conftest.err >&5 |
| 18635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18636 | (exit $ac_status); } && |
| 18637 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18638 | { (case "(($ac_try" in |
| 18639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18640 | *) ac_try_echo=$ac_try;; |
| 18641 | esac |
| 18642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18643 | (eval "$ac_try") 2>&5 |
| 18644 | ac_status=$? |
| 18645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18646 | (exit $ac_status); }; } && |
| 18647 | { ac_try='test -s conftest$ac_exeext' |
| 18648 | { (case "(($ac_try" in |
| 18649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18650 | *) ac_try_echo=$ac_try;; |
| 18651 | esac |
| 18652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18653 | (eval "$ac_try") 2>&5 |
| 18654 | ac_status=$? |
| 18655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18656 | (exit $ac_status); }; }; then |
| 18657 | eval "$as_ac_var=yes" |
| 18658 | else |
| 18659 | echo "$as_me: failed program was:" >&5 |
| 18660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18661 | |
| 18662 | eval "$as_ac_var=no" |
| 18663 | fi |
| 18664 | |
| 18665 | rm -f core conftest.err conftest.$ac_objext \ |
| 18666 | conftest$ac_exeext conftest.$ac_ext |
| 18667 | fi |
| 18668 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18669 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18670 | echo "${ECHO_T}$ac_res" >&6; } |
| 18671 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 18672 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18673 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 18674 | _ACEOF |
| 18675 | |
| 18676 | fi |
| 18677 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18678 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18679 | |
| 18680 | |
| 18681 | |
NAKAMURA Takumi | e29b0ac | 2011-02-09 04:18:48 +0000 | [diff] [blame^] | 18682 | for ac_func in strerror strerror_r setenv |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18683 | do |
| 18684 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18685 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18686 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18687 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18689 | else |
| 18690 | cat >conftest.$ac_ext <<_ACEOF |
| 18691 | /* confdefs.h. */ |
| 18692 | _ACEOF |
| 18693 | cat confdefs.h >>conftest.$ac_ext |
| 18694 | cat >>conftest.$ac_ext <<_ACEOF |
| 18695 | /* end confdefs.h. */ |
| 18696 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18697 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18698 | #define $ac_func innocuous_$ac_func |
| 18699 | |
| 18700 | /* System header to define __stub macros and hopefully few prototypes, |
| 18701 | which can conflict with char $ac_func (); below. |
| 18702 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18703 | <limits.h> exists even on freestanding compilers. */ |
| 18704 | |
| 18705 | #ifdef __STDC__ |
| 18706 | # include <limits.h> |
| 18707 | #else |
| 18708 | # include <assert.h> |
| 18709 | #endif |
| 18710 | |
| 18711 | #undef $ac_func |
| 18712 | |
| 18713 | /* Override any GCC internal prototype to avoid an error. |
| 18714 | Use char because int might match the return type of a GCC |
| 18715 | builtin and then its argument prototype would still apply. */ |
| 18716 | #ifdef __cplusplus |
| 18717 | extern "C" |
| 18718 | #endif |
| 18719 | char $ac_func (); |
| 18720 | /* The GNU C library defines this for functions which it implements |
| 18721 | to always fail with ENOSYS. Some functions are actually named |
| 18722 | something starting with __ and the normal name is an alias. */ |
| 18723 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18724 | choke me |
| 18725 | #endif |
| 18726 | |
| 18727 | int |
| 18728 | main () |
| 18729 | { |
| 18730 | return $ac_func (); |
| 18731 | ; |
| 18732 | return 0; |
| 18733 | } |
| 18734 | _ACEOF |
| 18735 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18736 | if { (ac_try="$ac_link" |
| 18737 | case "(($ac_try" in |
| 18738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18739 | *) ac_try_echo=$ac_try;; |
| 18740 | esac |
| 18741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18742 | (eval "$ac_link") 2>conftest.er1 |
| 18743 | ac_status=$? |
| 18744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18745 | rm -f conftest.er1 |
| 18746 | cat conftest.err >&5 |
| 18747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18748 | (exit $ac_status); } && |
| 18749 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18750 | { (case "(($ac_try" in |
| 18751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18752 | *) ac_try_echo=$ac_try;; |
| 18753 | esac |
| 18754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18755 | (eval "$ac_try") 2>&5 |
| 18756 | ac_status=$? |
| 18757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18758 | (exit $ac_status); }; } && |
| 18759 | { ac_try='test -s conftest$ac_exeext' |
| 18760 | { (case "(($ac_try" in |
| 18761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18762 | *) ac_try_echo=$ac_try;; |
| 18763 | esac |
| 18764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18765 | (eval "$ac_try") 2>&5 |
| 18766 | ac_status=$? |
| 18767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18768 | (exit $ac_status); }; }; then |
| 18769 | eval "$as_ac_var=yes" |
| 18770 | else |
| 18771 | echo "$as_me: failed program was:" >&5 |
| 18772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18773 | |
| 18774 | eval "$as_ac_var=no" |
| 18775 | fi |
| 18776 | |
| 18777 | rm -f core conftest.err conftest.$ac_objext \ |
| 18778 | conftest$ac_exeext conftest.$ac_ext |
| 18779 | fi |
| 18780 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18781 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18782 | echo "${ECHO_T}$ac_res" >&6; } |
| 18783 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 18784 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18785 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 18786 | _ACEOF |
| 18787 | |
| 18788 | fi |
| 18789 | done |
| 18790 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18791 | |
| 18792 | |
| 18793 | |
| 18794 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 18795 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18796 | do |
| 18797 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18798 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18799 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18800 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18802 | else |
| 18803 | cat >conftest.$ac_ext <<_ACEOF |
| 18804 | /* confdefs.h. */ |
| 18805 | _ACEOF |
| 18806 | cat confdefs.h >>conftest.$ac_ext |
| 18807 | cat >>conftest.$ac_ext <<_ACEOF |
| 18808 | /* end confdefs.h. */ |
| 18809 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18810 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18811 | #define $ac_func innocuous_$ac_func |
| 18812 | |
| 18813 | /* System header to define __stub macros and hopefully few prototypes, |
| 18814 | which can conflict with char $ac_func (); below. |
| 18815 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18816 | <limits.h> exists even on freestanding compilers. */ |
| 18817 | |
| 18818 | #ifdef __STDC__ |
| 18819 | # include <limits.h> |
| 18820 | #else |
| 18821 | # include <assert.h> |
| 18822 | #endif |
| 18823 | |
| 18824 | #undef $ac_func |
| 18825 | |
| 18826 | /* Override any GCC internal prototype to avoid an error. |
| 18827 | Use char because int might match the return type of a GCC |
| 18828 | builtin and then its argument prototype would still apply. */ |
| 18829 | #ifdef __cplusplus |
| 18830 | extern "C" |
| 18831 | #endif |
| 18832 | char $ac_func (); |
| 18833 | /* The GNU C library defines this for functions which it implements |
| 18834 | to always fail with ENOSYS. Some functions are actually named |
| 18835 | something starting with __ and the normal name is an alias. */ |
| 18836 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18837 | choke me |
| 18838 | #endif |
| 18839 | |
| 18840 | int |
| 18841 | main () |
| 18842 | { |
| 18843 | return $ac_func (); |
| 18844 | ; |
| 18845 | return 0; |
| 18846 | } |
| 18847 | _ACEOF |
| 18848 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18849 | if { (ac_try="$ac_link" |
| 18850 | case "(($ac_try" in |
| 18851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18852 | *) ac_try_echo=$ac_try;; |
| 18853 | esac |
| 18854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18855 | (eval "$ac_link") 2>conftest.er1 |
| 18856 | ac_status=$? |
| 18857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18858 | rm -f conftest.er1 |
| 18859 | cat conftest.err >&5 |
| 18860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18861 | (exit $ac_status); } && |
| 18862 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18863 | { (case "(($ac_try" in |
| 18864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18865 | *) ac_try_echo=$ac_try;; |
| 18866 | esac |
| 18867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18868 | (eval "$ac_try") 2>&5 |
| 18869 | ac_status=$? |
| 18870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18871 | (exit $ac_status); }; } && |
| 18872 | { ac_try='test -s conftest$ac_exeext' |
| 18873 | { (case "(($ac_try" in |
| 18874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18875 | *) ac_try_echo=$ac_try;; |
| 18876 | esac |
| 18877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18878 | (eval "$ac_try") 2>&5 |
| 18879 | ac_status=$? |
| 18880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18881 | (exit $ac_status); }; }; then |
| 18882 | eval "$as_ac_var=yes" |
| 18883 | else |
| 18884 | echo "$as_me: failed program was:" >&5 |
| 18885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18886 | |
| 18887 | eval "$as_ac_var=no" |
| 18888 | fi |
| 18889 | |
| 18890 | rm -f core conftest.err conftest.$ac_objext \ |
| 18891 | conftest$ac_exeext conftest.$ac_ext |
| 18892 | fi |
| 18893 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18894 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18895 | echo "${ECHO_T}$ac_res" >&6; } |
| 18896 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18897 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18898 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18899 | _ACEOF |
| 18900 | |
| 18901 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18902 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18903 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18904 | |
| 18905 | |
| 18906 | |
| 18907 | |
Daniel Dunbar | 3e46293 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 18908 | |
| 18909 | for ac_func in setjmp longjmp sigsetjmp siglongjmp writev |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18910 | do |
| 18911 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18912 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18913 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18914 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18916 | else |
| 18917 | cat >conftest.$ac_ext <<_ACEOF |
| 18918 | /* confdefs.h. */ |
| 18919 | _ACEOF |
| 18920 | cat confdefs.h >>conftest.$ac_ext |
| 18921 | cat >>conftest.$ac_ext <<_ACEOF |
| 18922 | /* end confdefs.h. */ |
| 18923 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18924 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18925 | #define $ac_func innocuous_$ac_func |
| 18926 | |
| 18927 | /* System header to define __stub macros and hopefully few prototypes, |
| 18928 | which can conflict with char $ac_func (); below. |
| 18929 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18930 | <limits.h> exists even on freestanding compilers. */ |
| 18931 | |
| 18932 | #ifdef __STDC__ |
| 18933 | # include <limits.h> |
| 18934 | #else |
| 18935 | # include <assert.h> |
| 18936 | #endif |
| 18937 | |
| 18938 | #undef $ac_func |
| 18939 | |
| 18940 | /* Override any GCC internal prototype to avoid an error. |
| 18941 | Use char because int might match the return type of a GCC |
| 18942 | builtin and then its argument prototype would still apply. */ |
| 18943 | #ifdef __cplusplus |
| 18944 | extern "C" |
| 18945 | #endif |
| 18946 | char $ac_func (); |
| 18947 | /* The GNU C library defines this for functions which it implements |
| 18948 | to always fail with ENOSYS. Some functions are actually named |
| 18949 | something starting with __ and the normal name is an alias. */ |
| 18950 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18951 | choke me |
| 18952 | #endif |
| 18953 | |
| 18954 | int |
| 18955 | main () |
| 18956 | { |
| 18957 | return $ac_func (); |
| 18958 | ; |
| 18959 | return 0; |
| 18960 | } |
| 18961 | _ACEOF |
| 18962 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18963 | if { (ac_try="$ac_link" |
| 18964 | case "(($ac_try" in |
| 18965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18966 | *) ac_try_echo=$ac_try;; |
| 18967 | esac |
| 18968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18969 | (eval "$ac_link") 2>conftest.er1 |
| 18970 | ac_status=$? |
| 18971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18972 | rm -f conftest.er1 |
| 18973 | cat conftest.err >&5 |
| 18974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18975 | (exit $ac_status); } && |
| 18976 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18977 | { (case "(($ac_try" in |
| 18978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18979 | *) ac_try_echo=$ac_try;; |
| 18980 | esac |
| 18981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18982 | (eval "$ac_try") 2>&5 |
| 18983 | ac_status=$? |
| 18984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18985 | (exit $ac_status); }; } && |
| 18986 | { ac_try='test -s conftest$ac_exeext' |
| 18987 | { (case "(($ac_try" in |
| 18988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18989 | *) ac_try_echo=$ac_try;; |
| 18990 | esac |
| 18991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18992 | (eval "$ac_try") 2>&5 |
| 18993 | ac_status=$? |
| 18994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18995 | (exit $ac_status); }; }; then |
| 18996 | eval "$as_ac_var=yes" |
| 18997 | else |
| 18998 | echo "$as_me: failed program was:" >&5 |
| 18999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19000 | |
| 19001 | eval "$as_ac_var=no" |
| 19002 | fi |
| 19003 | |
| 19004 | rm -f core conftest.err conftest.$ac_objext \ |
| 19005 | conftest$ac_exeext conftest.$ac_ext |
| 19006 | fi |
| 19007 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19008 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19009 | echo "${ECHO_T}$ac_res" >&6; } |
| 19010 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 19011 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19012 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 19013 | _ACEOF |
| 19014 | |
| 19015 | fi |
| 19016 | done |
| 19017 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19018 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 19019 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 19020 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 19021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19022 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19023 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19024 | ac_cpp='$CPP $CPPFLAGS' |
| 19025 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19026 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19027 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19028 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19029 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 19030 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19031 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19032 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19033 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19034 | /* confdefs.h. */ |
| 19035 | _ACEOF |
| 19036 | cat confdefs.h >>conftest.$ac_ext |
| 19037 | cat >>conftest.$ac_ext <<_ACEOF |
| 19038 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19039 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19040 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19041 | #include <stdlib.h> |
| 19042 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19043 | int |
| 19044 | main () |
| 19045 | { |
| 19046 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19047 | volatile double A, B; |
| 19048 | char Buffer[100]; |
| 19049 | A = 1; |
| 19050 | A /= 10.0; |
| 19051 | sprintf(Buffer, "%a", A); |
| 19052 | B = atof(Buffer); |
| 19053 | if (A != B) |
| 19054 | return (1); |
| 19055 | if (A != 0x1.999999999999ap-4) |
| 19056 | return (1); |
| 19057 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19058 | ; |
| 19059 | return 0; |
| 19060 | } |
| 19061 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19062 | rm -f conftest$ac_exeext |
| 19063 | if { (ac_try="$ac_link" |
| 19064 | case "(($ac_try" in |
| 19065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19066 | *) ac_try_echo=$ac_try;; |
| 19067 | esac |
| 19068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19069 | (eval "$ac_link") 2>&5 |
| 19070 | ac_status=$? |
| 19071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19072 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19073 | { (case "(($ac_try" in |
| 19074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19075 | *) ac_try_echo=$ac_try;; |
| 19076 | esac |
| 19077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19078 | (eval "$ac_try") 2>&5 |
| 19079 | ac_status=$? |
| 19080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19081 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 19082 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19083 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19084 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19085 | echo "$as_me: failed program was:" >&5 |
| 19086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19087 | |
| 19088 | ( exit $ac_status ) |
| 19089 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19090 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19091 | 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] | 19092 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19093 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19094 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19095 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19096 | ac_cpp='$CPP $CPPFLAGS' |
| 19097 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19098 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19099 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19100 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19101 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19102 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 19103 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 19104 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19105 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19106 | cat >>confdefs.h <<\_ACEOF |
| 19107 | #define HAVE_PRINTF_A 1 |
| 19108 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19109 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19110 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19111 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19112 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19113 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 19114 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 19115 | if test "${ac_cv_func_rand48+set}" = set; then |
| 19116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19117 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19118 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19119 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19120 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19121 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19122 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19123 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19124 | cat >conftest.$ac_ext <<_ACEOF |
| 19125 | /* confdefs.h. */ |
| 19126 | _ACEOF |
| 19127 | cat confdefs.h >>conftest.$ac_ext |
| 19128 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19129 | /* end confdefs.h. */ |
| 19130 | #include <stdlib.h> |
| 19131 | int |
| 19132 | main () |
| 19133 | { |
| 19134 | srand48(0);lrand48();drand48(); |
| 19135 | ; |
| 19136 | return 0; |
| 19137 | } |
| 19138 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19139 | rm -f conftest.$ac_objext |
| 19140 | if { (ac_try="$ac_compile" |
| 19141 | case "(($ac_try" in |
| 19142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19143 | *) ac_try_echo=$ac_try;; |
| 19144 | esac |
| 19145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19146 | (eval "$ac_compile") 2>conftest.er1 |
| 19147 | ac_status=$? |
| 19148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19149 | rm -f conftest.er1 |
| 19150 | cat conftest.err >&5 |
| 19151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19152 | (exit $ac_status); } && |
| 19153 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19154 | { (case "(($ac_try" in |
| 19155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19156 | *) ac_try_echo=$ac_try;; |
| 19157 | esac |
| 19158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19159 | (eval "$ac_try") 2>&5 |
| 19160 | ac_status=$? |
| 19161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19162 | (exit $ac_status); }; } && |
| 19163 | { ac_try='test -s conftest.$ac_objext' |
| 19164 | { (case "(($ac_try" in |
| 19165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19166 | *) ac_try_echo=$ac_try;; |
| 19167 | esac |
| 19168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19169 | (eval "$ac_try") 2>&5 |
| 19170 | ac_status=$? |
| 19171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19172 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19173 | ac_cv_func_rand48=yes |
| 19174 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19175 | echo "$as_me: failed program was:" >&5 |
| 19176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19177 | |
| 19178 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19179 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19180 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19182 | ac_ext=c |
| 19183 | ac_cpp='$CPP $CPPFLAGS' |
| 19184 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19185 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19186 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19187 | |
| 19188 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19189 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 19190 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19191 | |
| 19192 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 19193 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19194 | cat >>confdefs.h <<\_ACEOF |
| 19195 | #define HAVE_RAND48 1 |
| 19196 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19197 | |
| 19198 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 19199 | |
| 19200 | |
NAKAMURA Takumi | e29b0ac | 2011-02-09 04:18:48 +0000 | [diff] [blame^] | 19201 | { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 |
| 19202 | echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } |
| 19203 | if test "${ac_cv_have_decl_strerror_s+set}" = set; then |
| 19204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19205 | else |
| 19206 | cat >conftest.$ac_ext <<_ACEOF |
| 19207 | /* confdefs.h. */ |
| 19208 | _ACEOF |
| 19209 | cat confdefs.h >>conftest.$ac_ext |
| 19210 | cat >>conftest.$ac_ext <<_ACEOF |
| 19211 | /* end confdefs.h. */ |
| 19212 | $ac_includes_default |
| 19213 | int |
| 19214 | main () |
| 19215 | { |
| 19216 | #ifndef strerror_s |
| 19217 | char *p = (char *) strerror_s; |
| 19218 | return !p; |
| 19219 | #endif |
| 19220 | |
| 19221 | ; |
| 19222 | return 0; |
| 19223 | } |
| 19224 | _ACEOF |
| 19225 | rm -f conftest.$ac_objext |
| 19226 | if { (ac_try="$ac_compile" |
| 19227 | case "(($ac_try" in |
| 19228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19229 | *) ac_try_echo=$ac_try;; |
| 19230 | esac |
| 19231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19232 | (eval "$ac_compile") 2>conftest.er1 |
| 19233 | ac_status=$? |
| 19234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19235 | rm -f conftest.er1 |
| 19236 | cat conftest.err >&5 |
| 19237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19238 | (exit $ac_status); } && |
| 19239 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19240 | { (case "(($ac_try" in |
| 19241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19242 | *) ac_try_echo=$ac_try;; |
| 19243 | esac |
| 19244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19245 | (eval "$ac_try") 2>&5 |
| 19246 | ac_status=$? |
| 19247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19248 | (exit $ac_status); }; } && |
| 19249 | { ac_try='test -s conftest.$ac_objext' |
| 19250 | { (case "(($ac_try" in |
| 19251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19252 | *) ac_try_echo=$ac_try;; |
| 19253 | esac |
| 19254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19255 | (eval "$ac_try") 2>&5 |
| 19256 | ac_status=$? |
| 19257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19258 | (exit $ac_status); }; }; then |
| 19259 | ac_cv_have_decl_strerror_s=yes |
| 19260 | else |
| 19261 | echo "$as_me: failed program was:" >&5 |
| 19262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19263 | |
| 19264 | ac_cv_have_decl_strerror_s=no |
| 19265 | fi |
| 19266 | |
| 19267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19268 | fi |
| 19269 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 |
| 19270 | echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } |
| 19271 | if test $ac_cv_have_decl_strerror_s = yes; then |
| 19272 | |
| 19273 | cat >>confdefs.h <<_ACEOF |
| 19274 | #define HAVE_DECL_STRERROR_S 1 |
| 19275 | _ACEOF |
| 19276 | |
| 19277 | |
| 19278 | else |
| 19279 | cat >>confdefs.h <<_ACEOF |
| 19280 | #define HAVE_DECL_STRERROR_S 0 |
| 19281 | _ACEOF |
| 19282 | |
| 19283 | |
| 19284 | fi |
| 19285 | |
| 19286 | |
| 19287 | |
NAKAMURA Takumi | 1f6832a | 2011-02-05 15:11:53 +0000 | [diff] [blame] | 19288 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 19289 | { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 |
| 19290 | echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } |
| 19291 | if test "${ac_cv_lib_gcc__alloca+set}" = set; then |
| 19292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19293 | else |
| 19294 | ac_check_lib_save_LIBS=$LIBS |
| 19295 | LIBS="-lgcc $LIBS" |
| 19296 | cat >conftest.$ac_ext <<_ACEOF |
| 19297 | /* confdefs.h. */ |
| 19298 | _ACEOF |
| 19299 | cat confdefs.h >>conftest.$ac_ext |
| 19300 | cat >>conftest.$ac_ext <<_ACEOF |
| 19301 | /* end confdefs.h. */ |
| 19302 | |
| 19303 | /* Override any GCC internal prototype to avoid an error. |
| 19304 | Use char because int might match the return type of a GCC |
| 19305 | builtin and then its argument prototype would still apply. */ |
| 19306 | #ifdef __cplusplus |
| 19307 | extern "C" |
| 19308 | #endif |
| 19309 | char _alloca (); |
| 19310 | int |
| 19311 | main () |
| 19312 | { |
| 19313 | return _alloca (); |
| 19314 | ; |
| 19315 | return 0; |
| 19316 | } |
| 19317 | _ACEOF |
| 19318 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19319 | if { (ac_try="$ac_link" |
| 19320 | case "(($ac_try" in |
| 19321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19322 | *) ac_try_echo=$ac_try;; |
| 19323 | esac |
| 19324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19325 | (eval "$ac_link") 2>conftest.er1 |
| 19326 | ac_status=$? |
| 19327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19328 | rm -f conftest.er1 |
| 19329 | cat conftest.err >&5 |
| 19330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19331 | (exit $ac_status); } && |
| 19332 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19333 | { (case "(($ac_try" in |
| 19334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19335 | *) ac_try_echo=$ac_try;; |
| 19336 | esac |
| 19337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19338 | (eval "$ac_try") 2>&5 |
| 19339 | ac_status=$? |
| 19340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19341 | (exit $ac_status); }; } && |
| 19342 | { ac_try='test -s conftest$ac_exeext' |
| 19343 | { (case "(($ac_try" in |
| 19344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19345 | *) ac_try_echo=$ac_try;; |
| 19346 | esac |
| 19347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19348 | (eval "$ac_try") 2>&5 |
| 19349 | ac_status=$? |
| 19350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19351 | (exit $ac_status); }; }; then |
| 19352 | ac_cv_lib_gcc__alloca=yes |
| 19353 | else |
| 19354 | echo "$as_me: failed program was:" >&5 |
| 19355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19356 | |
| 19357 | ac_cv_lib_gcc__alloca=no |
| 19358 | fi |
| 19359 | |
| 19360 | rm -f core conftest.err conftest.$ac_objext \ |
| 19361 | conftest$ac_exeext conftest.$ac_ext |
| 19362 | LIBS=$ac_check_lib_save_LIBS |
| 19363 | fi |
| 19364 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 |
| 19365 | echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } |
| 19366 | if test $ac_cv_lib_gcc__alloca = yes; then |
| 19367 | |
| 19368 | cat >>confdefs.h <<\_ACEOF |
| 19369 | #define HAVE__ALLOCA 1 |
| 19370 | _ACEOF |
| 19371 | |
| 19372 | fi |
| 19373 | |
| 19374 | { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 |
| 19375 | echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } |
| 19376 | if test "${ac_cv_lib_gcc___alloca+set}" = set; then |
| 19377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19378 | else |
| 19379 | ac_check_lib_save_LIBS=$LIBS |
| 19380 | LIBS="-lgcc $LIBS" |
| 19381 | cat >conftest.$ac_ext <<_ACEOF |
| 19382 | /* confdefs.h. */ |
| 19383 | _ACEOF |
| 19384 | cat confdefs.h >>conftest.$ac_ext |
| 19385 | cat >>conftest.$ac_ext <<_ACEOF |
| 19386 | /* end confdefs.h. */ |
| 19387 | |
| 19388 | /* Override any GCC internal prototype to avoid an error. |
| 19389 | Use char because int might match the return type of a GCC |
| 19390 | builtin and then its argument prototype would still apply. */ |
| 19391 | #ifdef __cplusplus |
| 19392 | extern "C" |
| 19393 | #endif |
| 19394 | char __alloca (); |
| 19395 | int |
| 19396 | main () |
| 19397 | { |
| 19398 | return __alloca (); |
| 19399 | ; |
| 19400 | return 0; |
| 19401 | } |
| 19402 | _ACEOF |
| 19403 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19404 | if { (ac_try="$ac_link" |
| 19405 | case "(($ac_try" in |
| 19406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19407 | *) ac_try_echo=$ac_try;; |
| 19408 | esac |
| 19409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19410 | (eval "$ac_link") 2>conftest.er1 |
| 19411 | ac_status=$? |
| 19412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19413 | rm -f conftest.er1 |
| 19414 | cat conftest.err >&5 |
| 19415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19416 | (exit $ac_status); } && |
| 19417 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19418 | { (case "(($ac_try" in |
| 19419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19420 | *) ac_try_echo=$ac_try;; |
| 19421 | esac |
| 19422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19423 | (eval "$ac_try") 2>&5 |
| 19424 | ac_status=$? |
| 19425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19426 | (exit $ac_status); }; } && |
| 19427 | { ac_try='test -s conftest$ac_exeext' |
| 19428 | { (case "(($ac_try" in |
| 19429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19430 | *) ac_try_echo=$ac_try;; |
| 19431 | esac |
| 19432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19433 | (eval "$ac_try") 2>&5 |
| 19434 | ac_status=$? |
| 19435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19436 | (exit $ac_status); }; }; then |
| 19437 | ac_cv_lib_gcc___alloca=yes |
| 19438 | else |
| 19439 | echo "$as_me: failed program was:" >&5 |
| 19440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19441 | |
| 19442 | ac_cv_lib_gcc___alloca=no |
| 19443 | fi |
| 19444 | |
| 19445 | rm -f core conftest.err conftest.$ac_objext \ |
| 19446 | conftest$ac_exeext conftest.$ac_ext |
| 19447 | LIBS=$ac_check_lib_save_LIBS |
| 19448 | fi |
| 19449 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 |
| 19450 | echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } |
| 19451 | if test $ac_cv_lib_gcc___alloca = yes; then |
| 19452 | |
| 19453 | cat >>confdefs.h <<\_ACEOF |
| 19454 | #define HAVE___ALLOCA 1 |
| 19455 | _ACEOF |
| 19456 | |
| 19457 | fi |
| 19458 | |
| 19459 | { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 |
| 19460 | echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } |
| 19461 | if test "${ac_cv_lib_gcc___chkstk+set}" = set; then |
| 19462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19463 | else |
| 19464 | ac_check_lib_save_LIBS=$LIBS |
| 19465 | LIBS="-lgcc $LIBS" |
| 19466 | cat >conftest.$ac_ext <<_ACEOF |
| 19467 | /* confdefs.h. */ |
| 19468 | _ACEOF |
| 19469 | cat confdefs.h >>conftest.$ac_ext |
| 19470 | cat >>conftest.$ac_ext <<_ACEOF |
| 19471 | /* end confdefs.h. */ |
| 19472 | |
| 19473 | /* Override any GCC internal prototype to avoid an error. |
| 19474 | Use char because int might match the return type of a GCC |
| 19475 | builtin and then its argument prototype would still apply. */ |
| 19476 | #ifdef __cplusplus |
| 19477 | extern "C" |
| 19478 | #endif |
| 19479 | char __chkstk (); |
| 19480 | int |
| 19481 | main () |
| 19482 | { |
| 19483 | return __chkstk (); |
| 19484 | ; |
| 19485 | return 0; |
| 19486 | } |
| 19487 | _ACEOF |
| 19488 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19489 | if { (ac_try="$ac_link" |
| 19490 | case "(($ac_try" in |
| 19491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19492 | *) ac_try_echo=$ac_try;; |
| 19493 | esac |
| 19494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19495 | (eval "$ac_link") 2>conftest.er1 |
| 19496 | ac_status=$? |
| 19497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19498 | rm -f conftest.er1 |
| 19499 | cat conftest.err >&5 |
| 19500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19501 | (exit $ac_status); } && |
| 19502 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19503 | { (case "(($ac_try" in |
| 19504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19505 | *) ac_try_echo=$ac_try;; |
| 19506 | esac |
| 19507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19508 | (eval "$ac_try") 2>&5 |
| 19509 | ac_status=$? |
| 19510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19511 | (exit $ac_status); }; } && |
| 19512 | { ac_try='test -s conftest$ac_exeext' |
| 19513 | { (case "(($ac_try" in |
| 19514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19515 | *) ac_try_echo=$ac_try;; |
| 19516 | esac |
| 19517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19518 | (eval "$ac_try") 2>&5 |
| 19519 | ac_status=$? |
| 19520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19521 | (exit $ac_status); }; }; then |
| 19522 | ac_cv_lib_gcc___chkstk=yes |
| 19523 | else |
| 19524 | echo "$as_me: failed program was:" >&5 |
| 19525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19526 | |
| 19527 | ac_cv_lib_gcc___chkstk=no |
| 19528 | fi |
| 19529 | |
| 19530 | rm -f core conftest.err conftest.$ac_objext \ |
| 19531 | conftest$ac_exeext conftest.$ac_ext |
| 19532 | LIBS=$ac_check_lib_save_LIBS |
| 19533 | fi |
| 19534 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 |
| 19535 | echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } |
| 19536 | if test $ac_cv_lib_gcc___chkstk = yes; then |
| 19537 | |
| 19538 | cat >>confdefs.h <<\_ACEOF |
| 19539 | #define HAVE___CHKSTK 1 |
| 19540 | _ACEOF |
| 19541 | |
| 19542 | fi |
| 19543 | |
| 19544 | { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 |
| 19545 | echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } |
| 19546 | if test "${ac_cv_lib_gcc____chkstk+set}" = set; then |
| 19547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19548 | else |
| 19549 | ac_check_lib_save_LIBS=$LIBS |
| 19550 | LIBS="-lgcc $LIBS" |
| 19551 | cat >conftest.$ac_ext <<_ACEOF |
| 19552 | /* confdefs.h. */ |
| 19553 | _ACEOF |
| 19554 | cat confdefs.h >>conftest.$ac_ext |
| 19555 | cat >>conftest.$ac_ext <<_ACEOF |
| 19556 | /* end confdefs.h. */ |
| 19557 | |
| 19558 | /* Override any GCC internal prototype to avoid an error. |
| 19559 | Use char because int might match the return type of a GCC |
| 19560 | builtin and then its argument prototype would still apply. */ |
| 19561 | #ifdef __cplusplus |
| 19562 | extern "C" |
| 19563 | #endif |
| 19564 | char ___chkstk (); |
| 19565 | int |
| 19566 | main () |
| 19567 | { |
| 19568 | return ___chkstk (); |
| 19569 | ; |
| 19570 | return 0; |
| 19571 | } |
| 19572 | _ACEOF |
| 19573 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19574 | if { (ac_try="$ac_link" |
| 19575 | case "(($ac_try" in |
| 19576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19577 | *) ac_try_echo=$ac_try;; |
| 19578 | esac |
| 19579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19580 | (eval "$ac_link") 2>conftest.er1 |
| 19581 | ac_status=$? |
| 19582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19583 | rm -f conftest.er1 |
| 19584 | cat conftest.err >&5 |
| 19585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19586 | (exit $ac_status); } && |
| 19587 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19588 | { (case "(($ac_try" in |
| 19589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19590 | *) ac_try_echo=$ac_try;; |
| 19591 | esac |
| 19592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19593 | (eval "$ac_try") 2>&5 |
| 19594 | ac_status=$? |
| 19595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19596 | (exit $ac_status); }; } && |
| 19597 | { ac_try='test -s conftest$ac_exeext' |
| 19598 | { (case "(($ac_try" in |
| 19599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19600 | *) ac_try_echo=$ac_try;; |
| 19601 | esac |
| 19602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19603 | (eval "$ac_try") 2>&5 |
| 19604 | ac_status=$? |
| 19605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19606 | (exit $ac_status); }; }; then |
| 19607 | ac_cv_lib_gcc____chkstk=yes |
| 19608 | else |
| 19609 | echo "$as_me: failed program was:" >&5 |
| 19610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19611 | |
| 19612 | ac_cv_lib_gcc____chkstk=no |
| 19613 | fi |
| 19614 | |
| 19615 | rm -f core conftest.err conftest.$ac_objext \ |
| 19616 | conftest$ac_exeext conftest.$ac_ext |
| 19617 | LIBS=$ac_check_lib_save_LIBS |
| 19618 | fi |
| 19619 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 |
| 19620 | echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } |
| 19621 | if test $ac_cv_lib_gcc____chkstk = yes; then |
| 19622 | |
| 19623 | cat >>confdefs.h <<\_ACEOF |
| 19624 | #define HAVE____CHKSTK 1 |
| 19625 | _ACEOF |
| 19626 | |
| 19627 | fi |
| 19628 | |
| 19629 | |
| 19630 | { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 |
| 19631 | echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } |
| 19632 | if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then |
| 19633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19634 | else |
| 19635 | ac_check_lib_save_LIBS=$LIBS |
| 19636 | LIBS="-lgcc $LIBS" |
| 19637 | cat >conftest.$ac_ext <<_ACEOF |
| 19638 | /* confdefs.h. */ |
| 19639 | _ACEOF |
| 19640 | cat confdefs.h >>conftest.$ac_ext |
| 19641 | cat >>conftest.$ac_ext <<_ACEOF |
| 19642 | /* end confdefs.h. */ |
| 19643 | |
| 19644 | /* Override any GCC internal prototype to avoid an error. |
| 19645 | Use char because int might match the return type of a GCC |
| 19646 | builtin and then its argument prototype would still apply. */ |
| 19647 | #ifdef __cplusplus |
| 19648 | extern "C" |
| 19649 | #endif |
| 19650 | char __ashldi3 (); |
| 19651 | int |
| 19652 | main () |
| 19653 | { |
| 19654 | return __ashldi3 (); |
| 19655 | ; |
| 19656 | return 0; |
| 19657 | } |
| 19658 | _ACEOF |
| 19659 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19660 | if { (ac_try="$ac_link" |
| 19661 | case "(($ac_try" in |
| 19662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19663 | *) ac_try_echo=$ac_try;; |
| 19664 | esac |
| 19665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19666 | (eval "$ac_link") 2>conftest.er1 |
| 19667 | ac_status=$? |
| 19668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19669 | rm -f conftest.er1 |
| 19670 | cat conftest.err >&5 |
| 19671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19672 | (exit $ac_status); } && |
| 19673 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19674 | { (case "(($ac_try" in |
| 19675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19676 | *) ac_try_echo=$ac_try;; |
| 19677 | esac |
| 19678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19679 | (eval "$ac_try") 2>&5 |
| 19680 | ac_status=$? |
| 19681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19682 | (exit $ac_status); }; } && |
| 19683 | { ac_try='test -s conftest$ac_exeext' |
| 19684 | { (case "(($ac_try" in |
| 19685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19686 | *) ac_try_echo=$ac_try;; |
| 19687 | esac |
| 19688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19689 | (eval "$ac_try") 2>&5 |
| 19690 | ac_status=$? |
| 19691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19692 | (exit $ac_status); }; }; then |
| 19693 | ac_cv_lib_gcc___ashldi3=yes |
| 19694 | else |
| 19695 | echo "$as_me: failed program was:" >&5 |
| 19696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19697 | |
| 19698 | ac_cv_lib_gcc___ashldi3=no |
| 19699 | fi |
| 19700 | |
| 19701 | rm -f core conftest.err conftest.$ac_objext \ |
| 19702 | conftest$ac_exeext conftest.$ac_ext |
| 19703 | LIBS=$ac_check_lib_save_LIBS |
| 19704 | fi |
| 19705 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 |
| 19706 | echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } |
| 19707 | if test $ac_cv_lib_gcc___ashldi3 = yes; then |
| 19708 | |
| 19709 | cat >>confdefs.h <<\_ACEOF |
| 19710 | #define HAVE___ASHLDI3 1 |
| 19711 | _ACEOF |
| 19712 | |
| 19713 | fi |
| 19714 | |
| 19715 | { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 |
| 19716 | echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } |
| 19717 | if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then |
| 19718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19719 | else |
| 19720 | ac_check_lib_save_LIBS=$LIBS |
| 19721 | LIBS="-lgcc $LIBS" |
| 19722 | cat >conftest.$ac_ext <<_ACEOF |
| 19723 | /* confdefs.h. */ |
| 19724 | _ACEOF |
| 19725 | cat confdefs.h >>conftest.$ac_ext |
| 19726 | cat >>conftest.$ac_ext <<_ACEOF |
| 19727 | /* end confdefs.h. */ |
| 19728 | |
| 19729 | /* Override any GCC internal prototype to avoid an error. |
| 19730 | Use char because int might match the return type of a GCC |
| 19731 | builtin and then its argument prototype would still apply. */ |
| 19732 | #ifdef __cplusplus |
| 19733 | extern "C" |
| 19734 | #endif |
| 19735 | char __ashrdi3 (); |
| 19736 | int |
| 19737 | main () |
| 19738 | { |
| 19739 | return __ashrdi3 (); |
| 19740 | ; |
| 19741 | return 0; |
| 19742 | } |
| 19743 | _ACEOF |
| 19744 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19745 | if { (ac_try="$ac_link" |
| 19746 | case "(($ac_try" in |
| 19747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19748 | *) ac_try_echo=$ac_try;; |
| 19749 | esac |
| 19750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19751 | (eval "$ac_link") 2>conftest.er1 |
| 19752 | ac_status=$? |
| 19753 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19754 | rm -f conftest.er1 |
| 19755 | cat conftest.err >&5 |
| 19756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19757 | (exit $ac_status); } && |
| 19758 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19759 | { (case "(($ac_try" in |
| 19760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19761 | *) ac_try_echo=$ac_try;; |
| 19762 | esac |
| 19763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19764 | (eval "$ac_try") 2>&5 |
| 19765 | ac_status=$? |
| 19766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19767 | (exit $ac_status); }; } && |
| 19768 | { ac_try='test -s conftest$ac_exeext' |
| 19769 | { (case "(($ac_try" in |
| 19770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19771 | *) ac_try_echo=$ac_try;; |
| 19772 | esac |
| 19773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19774 | (eval "$ac_try") 2>&5 |
| 19775 | ac_status=$? |
| 19776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19777 | (exit $ac_status); }; }; then |
| 19778 | ac_cv_lib_gcc___ashrdi3=yes |
| 19779 | else |
| 19780 | echo "$as_me: failed program was:" >&5 |
| 19781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19782 | |
| 19783 | ac_cv_lib_gcc___ashrdi3=no |
| 19784 | fi |
| 19785 | |
| 19786 | rm -f core conftest.err conftest.$ac_objext \ |
| 19787 | conftest$ac_exeext conftest.$ac_ext |
| 19788 | LIBS=$ac_check_lib_save_LIBS |
| 19789 | fi |
| 19790 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 |
| 19791 | echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } |
| 19792 | if test $ac_cv_lib_gcc___ashrdi3 = yes; then |
| 19793 | |
| 19794 | cat >>confdefs.h <<\_ACEOF |
| 19795 | #define HAVE___ASHRDI3 1 |
| 19796 | _ACEOF |
| 19797 | |
| 19798 | fi |
| 19799 | |
| 19800 | { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 |
| 19801 | echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } |
| 19802 | if test "${ac_cv_lib_gcc___divdi3+set}" = set; then |
| 19803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19804 | else |
| 19805 | ac_check_lib_save_LIBS=$LIBS |
| 19806 | LIBS="-lgcc $LIBS" |
| 19807 | cat >conftest.$ac_ext <<_ACEOF |
| 19808 | /* confdefs.h. */ |
| 19809 | _ACEOF |
| 19810 | cat confdefs.h >>conftest.$ac_ext |
| 19811 | cat >>conftest.$ac_ext <<_ACEOF |
| 19812 | /* end confdefs.h. */ |
| 19813 | |
| 19814 | /* Override any GCC internal prototype to avoid an error. |
| 19815 | Use char because int might match the return type of a GCC |
| 19816 | builtin and then its argument prototype would still apply. */ |
| 19817 | #ifdef __cplusplus |
| 19818 | extern "C" |
| 19819 | #endif |
| 19820 | char __divdi3 (); |
| 19821 | int |
| 19822 | main () |
| 19823 | { |
| 19824 | return __divdi3 (); |
| 19825 | ; |
| 19826 | return 0; |
| 19827 | } |
| 19828 | _ACEOF |
| 19829 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19830 | if { (ac_try="$ac_link" |
| 19831 | case "(($ac_try" in |
| 19832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19833 | *) ac_try_echo=$ac_try;; |
| 19834 | esac |
| 19835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19836 | (eval "$ac_link") 2>conftest.er1 |
| 19837 | ac_status=$? |
| 19838 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19839 | rm -f conftest.er1 |
| 19840 | cat conftest.err >&5 |
| 19841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19842 | (exit $ac_status); } && |
| 19843 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19844 | { (case "(($ac_try" in |
| 19845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19846 | *) ac_try_echo=$ac_try;; |
| 19847 | esac |
| 19848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19849 | (eval "$ac_try") 2>&5 |
| 19850 | ac_status=$? |
| 19851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19852 | (exit $ac_status); }; } && |
| 19853 | { ac_try='test -s conftest$ac_exeext' |
| 19854 | { (case "(($ac_try" in |
| 19855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19856 | *) ac_try_echo=$ac_try;; |
| 19857 | esac |
| 19858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19859 | (eval "$ac_try") 2>&5 |
| 19860 | ac_status=$? |
| 19861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19862 | (exit $ac_status); }; }; then |
| 19863 | ac_cv_lib_gcc___divdi3=yes |
| 19864 | else |
| 19865 | echo "$as_me: failed program was:" >&5 |
| 19866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19867 | |
| 19868 | ac_cv_lib_gcc___divdi3=no |
| 19869 | fi |
| 19870 | |
| 19871 | rm -f core conftest.err conftest.$ac_objext \ |
| 19872 | conftest$ac_exeext conftest.$ac_ext |
| 19873 | LIBS=$ac_check_lib_save_LIBS |
| 19874 | fi |
| 19875 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 |
| 19876 | echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } |
| 19877 | if test $ac_cv_lib_gcc___divdi3 = yes; then |
| 19878 | |
| 19879 | cat >>confdefs.h <<\_ACEOF |
| 19880 | #define HAVE___DIVDI3 1 |
| 19881 | _ACEOF |
| 19882 | |
| 19883 | fi |
| 19884 | |
| 19885 | { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 |
| 19886 | echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } |
| 19887 | if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then |
| 19888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19889 | else |
| 19890 | ac_check_lib_save_LIBS=$LIBS |
| 19891 | LIBS="-lgcc $LIBS" |
| 19892 | cat >conftest.$ac_ext <<_ACEOF |
| 19893 | /* confdefs.h. */ |
| 19894 | _ACEOF |
| 19895 | cat confdefs.h >>conftest.$ac_ext |
| 19896 | cat >>conftest.$ac_ext <<_ACEOF |
| 19897 | /* end confdefs.h. */ |
| 19898 | |
| 19899 | /* Override any GCC internal prototype to avoid an error. |
| 19900 | Use char because int might match the return type of a GCC |
| 19901 | builtin and then its argument prototype would still apply. */ |
| 19902 | #ifdef __cplusplus |
| 19903 | extern "C" |
| 19904 | #endif |
| 19905 | char __fixdfdi (); |
| 19906 | int |
| 19907 | main () |
| 19908 | { |
| 19909 | return __fixdfdi (); |
| 19910 | ; |
| 19911 | return 0; |
| 19912 | } |
| 19913 | _ACEOF |
| 19914 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19915 | if { (ac_try="$ac_link" |
| 19916 | case "(($ac_try" in |
| 19917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19918 | *) ac_try_echo=$ac_try;; |
| 19919 | esac |
| 19920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19921 | (eval "$ac_link") 2>conftest.er1 |
| 19922 | ac_status=$? |
| 19923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19924 | rm -f conftest.er1 |
| 19925 | cat conftest.err >&5 |
| 19926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19927 | (exit $ac_status); } && |
| 19928 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19929 | { (case "(($ac_try" in |
| 19930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19931 | *) ac_try_echo=$ac_try;; |
| 19932 | esac |
| 19933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19934 | (eval "$ac_try") 2>&5 |
| 19935 | ac_status=$? |
| 19936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19937 | (exit $ac_status); }; } && |
| 19938 | { ac_try='test -s conftest$ac_exeext' |
| 19939 | { (case "(($ac_try" in |
| 19940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19941 | *) ac_try_echo=$ac_try;; |
| 19942 | esac |
| 19943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19944 | (eval "$ac_try") 2>&5 |
| 19945 | ac_status=$? |
| 19946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19947 | (exit $ac_status); }; }; then |
| 19948 | ac_cv_lib_gcc___fixdfdi=yes |
| 19949 | else |
| 19950 | echo "$as_me: failed program was:" >&5 |
| 19951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19952 | |
| 19953 | ac_cv_lib_gcc___fixdfdi=no |
| 19954 | fi |
| 19955 | |
| 19956 | rm -f core conftest.err conftest.$ac_objext \ |
| 19957 | conftest$ac_exeext conftest.$ac_ext |
| 19958 | LIBS=$ac_check_lib_save_LIBS |
| 19959 | fi |
| 19960 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 |
| 19961 | echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } |
| 19962 | if test $ac_cv_lib_gcc___fixdfdi = yes; then |
| 19963 | |
| 19964 | cat >>confdefs.h <<\_ACEOF |
| 19965 | #define HAVE___FIXDFDI 1 |
| 19966 | _ACEOF |
| 19967 | |
| 19968 | fi |
| 19969 | |
| 19970 | { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 |
| 19971 | echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } |
| 19972 | if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then |
| 19973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19974 | else |
| 19975 | ac_check_lib_save_LIBS=$LIBS |
| 19976 | LIBS="-lgcc $LIBS" |
| 19977 | cat >conftest.$ac_ext <<_ACEOF |
| 19978 | /* confdefs.h. */ |
| 19979 | _ACEOF |
| 19980 | cat confdefs.h >>conftest.$ac_ext |
| 19981 | cat >>conftest.$ac_ext <<_ACEOF |
| 19982 | /* end confdefs.h. */ |
| 19983 | |
| 19984 | /* Override any GCC internal prototype to avoid an error. |
| 19985 | Use char because int might match the return type of a GCC |
| 19986 | builtin and then its argument prototype would still apply. */ |
| 19987 | #ifdef __cplusplus |
| 19988 | extern "C" |
| 19989 | #endif |
| 19990 | char __fixsfdi (); |
| 19991 | int |
| 19992 | main () |
| 19993 | { |
| 19994 | return __fixsfdi (); |
| 19995 | ; |
| 19996 | return 0; |
| 19997 | } |
| 19998 | _ACEOF |
| 19999 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20000 | if { (ac_try="$ac_link" |
| 20001 | case "(($ac_try" in |
| 20002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20003 | *) ac_try_echo=$ac_try;; |
| 20004 | esac |
| 20005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20006 | (eval "$ac_link") 2>conftest.er1 |
| 20007 | ac_status=$? |
| 20008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20009 | rm -f conftest.er1 |
| 20010 | cat conftest.err >&5 |
| 20011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20012 | (exit $ac_status); } && |
| 20013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20014 | { (case "(($ac_try" in |
| 20015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20016 | *) ac_try_echo=$ac_try;; |
| 20017 | esac |
| 20018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20019 | (eval "$ac_try") 2>&5 |
| 20020 | ac_status=$? |
| 20021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20022 | (exit $ac_status); }; } && |
| 20023 | { ac_try='test -s conftest$ac_exeext' |
| 20024 | { (case "(($ac_try" in |
| 20025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20026 | *) ac_try_echo=$ac_try;; |
| 20027 | esac |
| 20028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20029 | (eval "$ac_try") 2>&5 |
| 20030 | ac_status=$? |
| 20031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20032 | (exit $ac_status); }; }; then |
| 20033 | ac_cv_lib_gcc___fixsfdi=yes |
| 20034 | else |
| 20035 | echo "$as_me: failed program was:" >&5 |
| 20036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20037 | |
| 20038 | ac_cv_lib_gcc___fixsfdi=no |
| 20039 | fi |
| 20040 | |
| 20041 | rm -f core conftest.err conftest.$ac_objext \ |
| 20042 | conftest$ac_exeext conftest.$ac_ext |
| 20043 | LIBS=$ac_check_lib_save_LIBS |
| 20044 | fi |
| 20045 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 |
| 20046 | echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } |
| 20047 | if test $ac_cv_lib_gcc___fixsfdi = yes; then |
| 20048 | |
| 20049 | cat >>confdefs.h <<\_ACEOF |
| 20050 | #define HAVE___FIXSFDI 1 |
| 20051 | _ACEOF |
| 20052 | |
| 20053 | fi |
| 20054 | |
| 20055 | { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 |
| 20056 | echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } |
| 20057 | if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then |
| 20058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20059 | else |
| 20060 | ac_check_lib_save_LIBS=$LIBS |
| 20061 | LIBS="-lgcc $LIBS" |
| 20062 | cat >conftest.$ac_ext <<_ACEOF |
| 20063 | /* confdefs.h. */ |
| 20064 | _ACEOF |
| 20065 | cat confdefs.h >>conftest.$ac_ext |
| 20066 | cat >>conftest.$ac_ext <<_ACEOF |
| 20067 | /* end confdefs.h. */ |
| 20068 | |
| 20069 | /* Override any GCC internal prototype to avoid an error. |
| 20070 | Use char because int might match the return type of a GCC |
| 20071 | builtin and then its argument prototype would still apply. */ |
| 20072 | #ifdef __cplusplus |
| 20073 | extern "C" |
| 20074 | #endif |
| 20075 | char __floatdidf (); |
| 20076 | int |
| 20077 | main () |
| 20078 | { |
| 20079 | return __floatdidf (); |
| 20080 | ; |
| 20081 | return 0; |
| 20082 | } |
| 20083 | _ACEOF |
| 20084 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20085 | if { (ac_try="$ac_link" |
| 20086 | case "(($ac_try" in |
| 20087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20088 | *) ac_try_echo=$ac_try;; |
| 20089 | esac |
| 20090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20091 | (eval "$ac_link") 2>conftest.er1 |
| 20092 | ac_status=$? |
| 20093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20094 | rm -f conftest.er1 |
| 20095 | cat conftest.err >&5 |
| 20096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20097 | (exit $ac_status); } && |
| 20098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20099 | { (case "(($ac_try" in |
| 20100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20101 | *) ac_try_echo=$ac_try;; |
| 20102 | esac |
| 20103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20104 | (eval "$ac_try") 2>&5 |
| 20105 | ac_status=$? |
| 20106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20107 | (exit $ac_status); }; } && |
| 20108 | { ac_try='test -s conftest$ac_exeext' |
| 20109 | { (case "(($ac_try" in |
| 20110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20111 | *) ac_try_echo=$ac_try;; |
| 20112 | esac |
| 20113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20114 | (eval "$ac_try") 2>&5 |
| 20115 | ac_status=$? |
| 20116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20117 | (exit $ac_status); }; }; then |
| 20118 | ac_cv_lib_gcc___floatdidf=yes |
| 20119 | else |
| 20120 | echo "$as_me: failed program was:" >&5 |
| 20121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20122 | |
| 20123 | ac_cv_lib_gcc___floatdidf=no |
| 20124 | fi |
| 20125 | |
| 20126 | rm -f core conftest.err conftest.$ac_objext \ |
| 20127 | conftest$ac_exeext conftest.$ac_ext |
| 20128 | LIBS=$ac_check_lib_save_LIBS |
| 20129 | fi |
| 20130 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 |
| 20131 | echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } |
| 20132 | if test $ac_cv_lib_gcc___floatdidf = yes; then |
| 20133 | |
| 20134 | cat >>confdefs.h <<\_ACEOF |
| 20135 | #define HAVE___FLOATDIDF 1 |
| 20136 | _ACEOF |
| 20137 | |
| 20138 | fi |
| 20139 | |
| 20140 | { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 |
| 20141 | echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } |
| 20142 | if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then |
| 20143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20144 | else |
| 20145 | ac_check_lib_save_LIBS=$LIBS |
| 20146 | LIBS="-lgcc $LIBS" |
| 20147 | cat >conftest.$ac_ext <<_ACEOF |
| 20148 | /* confdefs.h. */ |
| 20149 | _ACEOF |
| 20150 | cat confdefs.h >>conftest.$ac_ext |
| 20151 | cat >>conftest.$ac_ext <<_ACEOF |
| 20152 | /* end confdefs.h. */ |
| 20153 | |
| 20154 | /* Override any GCC internal prototype to avoid an error. |
| 20155 | Use char because int might match the return type of a GCC |
| 20156 | builtin and then its argument prototype would still apply. */ |
| 20157 | #ifdef __cplusplus |
| 20158 | extern "C" |
| 20159 | #endif |
| 20160 | char __lshrdi3 (); |
| 20161 | int |
| 20162 | main () |
| 20163 | { |
| 20164 | return __lshrdi3 (); |
| 20165 | ; |
| 20166 | return 0; |
| 20167 | } |
| 20168 | _ACEOF |
| 20169 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20170 | if { (ac_try="$ac_link" |
| 20171 | case "(($ac_try" in |
| 20172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20173 | *) ac_try_echo=$ac_try;; |
| 20174 | esac |
| 20175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20176 | (eval "$ac_link") 2>conftest.er1 |
| 20177 | ac_status=$? |
| 20178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20179 | rm -f conftest.er1 |
| 20180 | cat conftest.err >&5 |
| 20181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20182 | (exit $ac_status); } && |
| 20183 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20184 | { (case "(($ac_try" in |
| 20185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20186 | *) ac_try_echo=$ac_try;; |
| 20187 | esac |
| 20188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20189 | (eval "$ac_try") 2>&5 |
| 20190 | ac_status=$? |
| 20191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20192 | (exit $ac_status); }; } && |
| 20193 | { ac_try='test -s conftest$ac_exeext' |
| 20194 | { (case "(($ac_try" in |
| 20195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20196 | *) ac_try_echo=$ac_try;; |
| 20197 | esac |
| 20198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20199 | (eval "$ac_try") 2>&5 |
| 20200 | ac_status=$? |
| 20201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20202 | (exit $ac_status); }; }; then |
| 20203 | ac_cv_lib_gcc___lshrdi3=yes |
| 20204 | else |
| 20205 | echo "$as_me: failed program was:" >&5 |
| 20206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20207 | |
| 20208 | ac_cv_lib_gcc___lshrdi3=no |
| 20209 | fi |
| 20210 | |
| 20211 | rm -f core conftest.err conftest.$ac_objext \ |
| 20212 | conftest$ac_exeext conftest.$ac_ext |
| 20213 | LIBS=$ac_check_lib_save_LIBS |
| 20214 | fi |
| 20215 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 |
| 20216 | echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } |
| 20217 | if test $ac_cv_lib_gcc___lshrdi3 = yes; then |
| 20218 | |
| 20219 | cat >>confdefs.h <<\_ACEOF |
| 20220 | #define HAVE___LSHRDI3 1 |
| 20221 | _ACEOF |
| 20222 | |
| 20223 | fi |
| 20224 | |
| 20225 | { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 |
| 20226 | echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } |
| 20227 | if test "${ac_cv_lib_gcc___moddi3+set}" = set; then |
| 20228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20229 | else |
| 20230 | ac_check_lib_save_LIBS=$LIBS |
| 20231 | LIBS="-lgcc $LIBS" |
| 20232 | cat >conftest.$ac_ext <<_ACEOF |
| 20233 | /* confdefs.h. */ |
| 20234 | _ACEOF |
| 20235 | cat confdefs.h >>conftest.$ac_ext |
| 20236 | cat >>conftest.$ac_ext <<_ACEOF |
| 20237 | /* end confdefs.h. */ |
| 20238 | |
| 20239 | /* Override any GCC internal prototype to avoid an error. |
| 20240 | Use char because int might match the return type of a GCC |
| 20241 | builtin and then its argument prototype would still apply. */ |
| 20242 | #ifdef __cplusplus |
| 20243 | extern "C" |
| 20244 | #endif |
| 20245 | char __moddi3 (); |
| 20246 | int |
| 20247 | main () |
| 20248 | { |
| 20249 | return __moddi3 (); |
| 20250 | ; |
| 20251 | return 0; |
| 20252 | } |
| 20253 | _ACEOF |
| 20254 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20255 | if { (ac_try="$ac_link" |
| 20256 | case "(($ac_try" in |
| 20257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20258 | *) ac_try_echo=$ac_try;; |
| 20259 | esac |
| 20260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20261 | (eval "$ac_link") 2>conftest.er1 |
| 20262 | ac_status=$? |
| 20263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20264 | rm -f conftest.er1 |
| 20265 | cat conftest.err >&5 |
| 20266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20267 | (exit $ac_status); } && |
| 20268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20269 | { (case "(($ac_try" in |
| 20270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20271 | *) ac_try_echo=$ac_try;; |
| 20272 | esac |
| 20273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20274 | (eval "$ac_try") 2>&5 |
| 20275 | ac_status=$? |
| 20276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20277 | (exit $ac_status); }; } && |
| 20278 | { ac_try='test -s conftest$ac_exeext' |
| 20279 | { (case "(($ac_try" in |
| 20280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20281 | *) ac_try_echo=$ac_try;; |
| 20282 | esac |
| 20283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20284 | (eval "$ac_try") 2>&5 |
| 20285 | ac_status=$? |
| 20286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20287 | (exit $ac_status); }; }; then |
| 20288 | ac_cv_lib_gcc___moddi3=yes |
| 20289 | else |
| 20290 | echo "$as_me: failed program was:" >&5 |
| 20291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20292 | |
| 20293 | ac_cv_lib_gcc___moddi3=no |
| 20294 | fi |
| 20295 | |
| 20296 | rm -f core conftest.err conftest.$ac_objext \ |
| 20297 | conftest$ac_exeext conftest.$ac_ext |
| 20298 | LIBS=$ac_check_lib_save_LIBS |
| 20299 | fi |
| 20300 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 |
| 20301 | echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } |
| 20302 | if test $ac_cv_lib_gcc___moddi3 = yes; then |
| 20303 | |
| 20304 | cat >>confdefs.h <<\_ACEOF |
| 20305 | #define HAVE___MODDI3 1 |
| 20306 | _ACEOF |
| 20307 | |
| 20308 | fi |
| 20309 | |
| 20310 | { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 |
| 20311 | echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } |
| 20312 | if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then |
| 20313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20314 | else |
| 20315 | ac_check_lib_save_LIBS=$LIBS |
| 20316 | LIBS="-lgcc $LIBS" |
| 20317 | cat >conftest.$ac_ext <<_ACEOF |
| 20318 | /* confdefs.h. */ |
| 20319 | _ACEOF |
| 20320 | cat confdefs.h >>conftest.$ac_ext |
| 20321 | cat >>conftest.$ac_ext <<_ACEOF |
| 20322 | /* end confdefs.h. */ |
| 20323 | |
| 20324 | /* Override any GCC internal prototype to avoid an error. |
| 20325 | Use char because int might match the return type of a GCC |
| 20326 | builtin and then its argument prototype would still apply. */ |
| 20327 | #ifdef __cplusplus |
| 20328 | extern "C" |
| 20329 | #endif |
| 20330 | char __udivdi3 (); |
| 20331 | int |
| 20332 | main () |
| 20333 | { |
| 20334 | return __udivdi3 (); |
| 20335 | ; |
| 20336 | return 0; |
| 20337 | } |
| 20338 | _ACEOF |
| 20339 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20340 | if { (ac_try="$ac_link" |
| 20341 | case "(($ac_try" in |
| 20342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20343 | *) ac_try_echo=$ac_try;; |
| 20344 | esac |
| 20345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20346 | (eval "$ac_link") 2>conftest.er1 |
| 20347 | ac_status=$? |
| 20348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20349 | rm -f conftest.er1 |
| 20350 | cat conftest.err >&5 |
| 20351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20352 | (exit $ac_status); } && |
| 20353 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20354 | { (case "(($ac_try" in |
| 20355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20356 | *) ac_try_echo=$ac_try;; |
| 20357 | esac |
| 20358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20359 | (eval "$ac_try") 2>&5 |
| 20360 | ac_status=$? |
| 20361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20362 | (exit $ac_status); }; } && |
| 20363 | { ac_try='test -s conftest$ac_exeext' |
| 20364 | { (case "(($ac_try" in |
| 20365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20366 | *) ac_try_echo=$ac_try;; |
| 20367 | esac |
| 20368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20369 | (eval "$ac_try") 2>&5 |
| 20370 | ac_status=$? |
| 20371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20372 | (exit $ac_status); }; }; then |
| 20373 | ac_cv_lib_gcc___udivdi3=yes |
| 20374 | else |
| 20375 | echo "$as_me: failed program was:" >&5 |
| 20376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20377 | |
| 20378 | ac_cv_lib_gcc___udivdi3=no |
| 20379 | fi |
| 20380 | |
| 20381 | rm -f core conftest.err conftest.$ac_objext \ |
| 20382 | conftest$ac_exeext conftest.$ac_ext |
| 20383 | LIBS=$ac_check_lib_save_LIBS |
| 20384 | fi |
| 20385 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 |
| 20386 | echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } |
| 20387 | if test $ac_cv_lib_gcc___udivdi3 = yes; then |
| 20388 | |
| 20389 | cat >>confdefs.h <<\_ACEOF |
| 20390 | #define HAVE___UDIVDI3 1 |
| 20391 | _ACEOF |
| 20392 | |
| 20393 | fi |
| 20394 | |
| 20395 | { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 |
| 20396 | echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } |
| 20397 | if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then |
| 20398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20399 | else |
| 20400 | ac_check_lib_save_LIBS=$LIBS |
| 20401 | LIBS="-lgcc $LIBS" |
| 20402 | cat >conftest.$ac_ext <<_ACEOF |
| 20403 | /* confdefs.h. */ |
| 20404 | _ACEOF |
| 20405 | cat confdefs.h >>conftest.$ac_ext |
| 20406 | cat >>conftest.$ac_ext <<_ACEOF |
| 20407 | /* end confdefs.h. */ |
| 20408 | |
| 20409 | /* Override any GCC internal prototype to avoid an error. |
| 20410 | Use char because int might match the return type of a GCC |
| 20411 | builtin and then its argument prototype would still apply. */ |
| 20412 | #ifdef __cplusplus |
| 20413 | extern "C" |
| 20414 | #endif |
| 20415 | char __umoddi3 (); |
| 20416 | int |
| 20417 | main () |
| 20418 | { |
| 20419 | return __umoddi3 (); |
| 20420 | ; |
| 20421 | return 0; |
| 20422 | } |
| 20423 | _ACEOF |
| 20424 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20425 | if { (ac_try="$ac_link" |
| 20426 | case "(($ac_try" in |
| 20427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20428 | *) ac_try_echo=$ac_try;; |
| 20429 | esac |
| 20430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20431 | (eval "$ac_link") 2>conftest.er1 |
| 20432 | ac_status=$? |
| 20433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20434 | rm -f conftest.er1 |
| 20435 | cat conftest.err >&5 |
| 20436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20437 | (exit $ac_status); } && |
| 20438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20439 | { (case "(($ac_try" in |
| 20440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20441 | *) ac_try_echo=$ac_try;; |
| 20442 | esac |
| 20443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20444 | (eval "$ac_try") 2>&5 |
| 20445 | ac_status=$? |
| 20446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20447 | (exit $ac_status); }; } && |
| 20448 | { ac_try='test -s conftest$ac_exeext' |
| 20449 | { (case "(($ac_try" in |
| 20450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20451 | *) ac_try_echo=$ac_try;; |
| 20452 | esac |
| 20453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20454 | (eval "$ac_try") 2>&5 |
| 20455 | ac_status=$? |
| 20456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20457 | (exit $ac_status); }; }; then |
| 20458 | ac_cv_lib_gcc___umoddi3=yes |
| 20459 | else |
| 20460 | echo "$as_me: failed program was:" >&5 |
| 20461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20462 | |
| 20463 | ac_cv_lib_gcc___umoddi3=no |
| 20464 | fi |
| 20465 | |
| 20466 | rm -f core conftest.err conftest.$ac_objext \ |
| 20467 | conftest$ac_exeext conftest.$ac_ext |
| 20468 | LIBS=$ac_check_lib_save_LIBS |
| 20469 | fi |
| 20470 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 |
| 20471 | echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } |
| 20472 | if test $ac_cv_lib_gcc___umoddi3 = yes; then |
| 20473 | |
| 20474 | cat >>confdefs.h <<\_ACEOF |
| 20475 | #define HAVE___UMODDI3 1 |
| 20476 | _ACEOF |
| 20477 | |
| 20478 | fi |
| 20479 | |
| 20480 | |
| 20481 | { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 |
| 20482 | echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } |
| 20483 | if test "${ac_cv_lib_gcc___main+set}" = set; then |
| 20484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20485 | else |
| 20486 | ac_check_lib_save_LIBS=$LIBS |
| 20487 | LIBS="-lgcc $LIBS" |
| 20488 | cat >conftest.$ac_ext <<_ACEOF |
| 20489 | /* confdefs.h. */ |
| 20490 | _ACEOF |
| 20491 | cat confdefs.h >>conftest.$ac_ext |
| 20492 | cat >>conftest.$ac_ext <<_ACEOF |
| 20493 | /* end confdefs.h. */ |
| 20494 | |
| 20495 | /* Override any GCC internal prototype to avoid an error. |
| 20496 | Use char because int might match the return type of a GCC |
| 20497 | builtin and then its argument prototype would still apply. */ |
| 20498 | #ifdef __cplusplus |
| 20499 | extern "C" |
| 20500 | #endif |
| 20501 | char __main (); |
| 20502 | int |
| 20503 | main () |
| 20504 | { |
| 20505 | return __main (); |
| 20506 | ; |
| 20507 | return 0; |
| 20508 | } |
| 20509 | _ACEOF |
| 20510 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20511 | if { (ac_try="$ac_link" |
| 20512 | case "(($ac_try" in |
| 20513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20514 | *) ac_try_echo=$ac_try;; |
| 20515 | esac |
| 20516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20517 | (eval "$ac_link") 2>conftest.er1 |
| 20518 | ac_status=$? |
| 20519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20520 | rm -f conftest.er1 |
| 20521 | cat conftest.err >&5 |
| 20522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20523 | (exit $ac_status); } && |
| 20524 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20525 | { (case "(($ac_try" in |
| 20526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20527 | *) ac_try_echo=$ac_try;; |
| 20528 | esac |
| 20529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20530 | (eval "$ac_try") 2>&5 |
| 20531 | ac_status=$? |
| 20532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20533 | (exit $ac_status); }; } && |
| 20534 | { ac_try='test -s conftest$ac_exeext' |
| 20535 | { (case "(($ac_try" in |
| 20536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20537 | *) ac_try_echo=$ac_try;; |
| 20538 | esac |
| 20539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20540 | (eval "$ac_try") 2>&5 |
| 20541 | ac_status=$? |
| 20542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20543 | (exit $ac_status); }; }; then |
| 20544 | ac_cv_lib_gcc___main=yes |
| 20545 | else |
| 20546 | echo "$as_me: failed program was:" >&5 |
| 20547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20548 | |
| 20549 | ac_cv_lib_gcc___main=no |
| 20550 | fi |
| 20551 | |
| 20552 | rm -f core conftest.err conftest.$ac_objext \ |
| 20553 | conftest$ac_exeext conftest.$ac_ext |
| 20554 | LIBS=$ac_check_lib_save_LIBS |
| 20555 | fi |
| 20556 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 |
| 20557 | echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } |
| 20558 | if test $ac_cv_lib_gcc___main = yes; then |
| 20559 | |
| 20560 | cat >>confdefs.h <<\_ACEOF |
| 20561 | #define HAVE___MAIN 1 |
| 20562 | _ACEOF |
| 20563 | |
| 20564 | fi |
| 20565 | |
| 20566 | { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 |
| 20567 | echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } |
| 20568 | if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then |
| 20569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20570 | else |
| 20571 | ac_check_lib_save_LIBS=$LIBS |
| 20572 | LIBS="-lgcc $LIBS" |
| 20573 | cat >conftest.$ac_ext <<_ACEOF |
| 20574 | /* confdefs.h. */ |
| 20575 | _ACEOF |
| 20576 | cat confdefs.h >>conftest.$ac_ext |
| 20577 | cat >>conftest.$ac_ext <<_ACEOF |
| 20578 | /* end confdefs.h. */ |
| 20579 | |
| 20580 | /* Override any GCC internal prototype to avoid an error. |
| 20581 | Use char because int might match the return type of a GCC |
| 20582 | builtin and then its argument prototype would still apply. */ |
| 20583 | #ifdef __cplusplus |
| 20584 | extern "C" |
| 20585 | #endif |
| 20586 | char __cmpdi2 (); |
| 20587 | int |
| 20588 | main () |
| 20589 | { |
| 20590 | return __cmpdi2 (); |
| 20591 | ; |
| 20592 | return 0; |
| 20593 | } |
| 20594 | _ACEOF |
| 20595 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20596 | if { (ac_try="$ac_link" |
| 20597 | case "(($ac_try" in |
| 20598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20599 | *) ac_try_echo=$ac_try;; |
| 20600 | esac |
| 20601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20602 | (eval "$ac_link") 2>conftest.er1 |
| 20603 | ac_status=$? |
| 20604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20605 | rm -f conftest.er1 |
| 20606 | cat conftest.err >&5 |
| 20607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20608 | (exit $ac_status); } && |
| 20609 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20610 | { (case "(($ac_try" in |
| 20611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20612 | *) ac_try_echo=$ac_try;; |
| 20613 | esac |
| 20614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20615 | (eval "$ac_try") 2>&5 |
| 20616 | ac_status=$? |
| 20617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20618 | (exit $ac_status); }; } && |
| 20619 | { ac_try='test -s conftest$ac_exeext' |
| 20620 | { (case "(($ac_try" in |
| 20621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20622 | *) ac_try_echo=$ac_try;; |
| 20623 | esac |
| 20624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20625 | (eval "$ac_try") 2>&5 |
| 20626 | ac_status=$? |
| 20627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20628 | (exit $ac_status); }; }; then |
| 20629 | ac_cv_lib_gcc___cmpdi2=yes |
| 20630 | else |
| 20631 | echo "$as_me: failed program was:" >&5 |
| 20632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20633 | |
| 20634 | ac_cv_lib_gcc___cmpdi2=no |
| 20635 | fi |
| 20636 | |
| 20637 | rm -f core conftest.err conftest.$ac_objext \ |
| 20638 | conftest$ac_exeext conftest.$ac_ext |
| 20639 | LIBS=$ac_check_lib_save_LIBS |
| 20640 | fi |
| 20641 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 |
| 20642 | echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } |
| 20643 | if test $ac_cv_lib_gcc___cmpdi2 = yes; then |
| 20644 | |
| 20645 | cat >>confdefs.h <<\_ACEOF |
| 20646 | #define HAVE___CMPDI2 1 |
| 20647 | _ACEOF |
| 20648 | |
| 20649 | fi |
| 20650 | |
| 20651 | fi |
| 20652 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20653 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20654 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 20655 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 20656 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 20657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20658 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20659 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20660 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20661 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20662 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20663 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20664 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20665 | cat >conftest.$ac_ext <<_ACEOF |
| 20666 | /* confdefs.h. */ |
| 20667 | _ACEOF |
| 20668 | cat confdefs.h >>conftest.$ac_ext |
| 20669 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20670 | /* end confdefs.h. */ |
| 20671 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20672 | int |
| 20673 | main () |
| 20674 | { |
| 20675 | float f; isnan(f); |
| 20676 | ; |
| 20677 | return 0; |
| 20678 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20679 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20680 | rm -f conftest.$ac_objext |
| 20681 | if { (ac_try="$ac_compile" |
| 20682 | case "(($ac_try" in |
| 20683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20684 | *) ac_try_echo=$ac_try;; |
| 20685 | esac |
| 20686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20687 | (eval "$ac_compile") 2>conftest.er1 |
| 20688 | ac_status=$? |
| 20689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20690 | rm -f conftest.er1 |
| 20691 | cat conftest.err >&5 |
| 20692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20693 | (exit $ac_status); } && |
| 20694 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20695 | { (case "(($ac_try" in |
| 20696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20697 | *) ac_try_echo=$ac_try;; |
| 20698 | esac |
| 20699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20700 | (eval "$ac_try") 2>&5 |
| 20701 | ac_status=$? |
| 20702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20703 | (exit $ac_status); }; } && |
| 20704 | { ac_try='test -s conftest.$ac_objext' |
| 20705 | { (case "(($ac_try" in |
| 20706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20707 | *) ac_try_echo=$ac_try;; |
| 20708 | esac |
| 20709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20710 | (eval "$ac_try") 2>&5 |
| 20711 | ac_status=$? |
| 20712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20713 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20714 | ac_cv_func_isnan_in_math_h=yes |
| 20715 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20716 | echo "$as_me: failed program was:" >&5 |
| 20717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20718 | |
| 20719 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20720 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20721 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20723 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20724 | ac_cpp='$CPP $CPPFLAGS' |
| 20725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20728 | |
| 20729 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20730 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 20731 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20732 | |
| 20733 | |
| 20734 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20735 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20736 | cat >>confdefs.h <<\_ACEOF |
| 20737 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 20738 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20739 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20740 | fi |
| 20741 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20742 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 20743 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 20744 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 20745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20746 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20747 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20748 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20749 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20750 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20751 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20752 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20753 | cat >conftest.$ac_ext <<_ACEOF |
| 20754 | /* confdefs.h. */ |
| 20755 | _ACEOF |
| 20756 | cat confdefs.h >>conftest.$ac_ext |
| 20757 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20758 | /* end confdefs.h. */ |
| 20759 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20760 | int |
| 20761 | main () |
| 20762 | { |
| 20763 | float f; isnan(f); |
| 20764 | ; |
| 20765 | return 0; |
| 20766 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20767 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20768 | rm -f conftest.$ac_objext |
| 20769 | if { (ac_try="$ac_compile" |
| 20770 | case "(($ac_try" in |
| 20771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20772 | *) ac_try_echo=$ac_try;; |
| 20773 | esac |
| 20774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20775 | (eval "$ac_compile") 2>conftest.er1 |
| 20776 | ac_status=$? |
| 20777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20778 | rm -f conftest.er1 |
| 20779 | cat conftest.err >&5 |
| 20780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20781 | (exit $ac_status); } && |
| 20782 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20783 | { (case "(($ac_try" in |
| 20784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20785 | *) ac_try_echo=$ac_try;; |
| 20786 | esac |
| 20787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20788 | (eval "$ac_try") 2>&5 |
| 20789 | ac_status=$? |
| 20790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20791 | (exit $ac_status); }; } && |
| 20792 | { ac_try='test -s conftest.$ac_objext' |
| 20793 | { (case "(($ac_try" in |
| 20794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20795 | *) ac_try_echo=$ac_try;; |
| 20796 | esac |
| 20797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20798 | (eval "$ac_try") 2>&5 |
| 20799 | ac_status=$? |
| 20800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20801 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20802 | ac_cv_func_isnan_in_cmath=yes |
| 20803 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20804 | echo "$as_me: failed program was:" >&5 |
| 20805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20806 | |
| 20807 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20808 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20809 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20811 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20812 | ac_cpp='$CPP $CPPFLAGS' |
| 20813 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20814 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20815 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20816 | |
| 20817 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20818 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 20819 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20820 | |
| 20821 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20822 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20823 | cat >>confdefs.h <<\_ACEOF |
| 20824 | #define HAVE_ISNAN_IN_CMATH 1 |
| 20825 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20826 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20827 | fi |
| 20828 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20829 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 20830 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 20831 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 20832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20833 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20834 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20835 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20836 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20837 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20838 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20839 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20840 | cat >conftest.$ac_ext <<_ACEOF |
| 20841 | /* confdefs.h. */ |
| 20842 | _ACEOF |
| 20843 | cat confdefs.h >>conftest.$ac_ext |
| 20844 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20845 | /* end confdefs.h. */ |
| 20846 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20847 | int |
| 20848 | main () |
| 20849 | { |
| 20850 | float f; std::isnan(f); |
| 20851 | ; |
| 20852 | return 0; |
| 20853 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20854 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20855 | rm -f conftest.$ac_objext |
| 20856 | if { (ac_try="$ac_compile" |
| 20857 | case "(($ac_try" in |
| 20858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20859 | *) ac_try_echo=$ac_try;; |
| 20860 | esac |
| 20861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20862 | (eval "$ac_compile") 2>conftest.er1 |
| 20863 | ac_status=$? |
| 20864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20865 | rm -f conftest.er1 |
| 20866 | cat conftest.err >&5 |
| 20867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20868 | (exit $ac_status); } && |
| 20869 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20870 | { (case "(($ac_try" in |
| 20871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20872 | *) ac_try_echo=$ac_try;; |
| 20873 | esac |
| 20874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20875 | (eval "$ac_try") 2>&5 |
| 20876 | ac_status=$? |
| 20877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20878 | (exit $ac_status); }; } && |
| 20879 | { ac_try='test -s conftest.$ac_objext' |
| 20880 | { (case "(($ac_try" in |
| 20881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20882 | *) ac_try_echo=$ac_try;; |
| 20883 | esac |
| 20884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20885 | (eval "$ac_try") 2>&5 |
| 20886 | ac_status=$? |
| 20887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20888 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20889 | ac_cv_func_std_isnan_in_cmath=yes |
| 20890 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20891 | echo "$as_me: failed program was:" >&5 |
| 20892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20893 | |
| 20894 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20895 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20896 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20898 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20899 | ac_cpp='$CPP $CPPFLAGS' |
| 20900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20903 | |
| 20904 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20905 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 20906 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20907 | |
| 20908 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20909 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20910 | cat >>confdefs.h <<\_ACEOF |
| 20911 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 20912 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20913 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20914 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 20915 | |
| 20916 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20917 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 20918 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 20919 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 20920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20921 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20922 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20923 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20924 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20925 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20926 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20927 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20928 | cat >conftest.$ac_ext <<_ACEOF |
| 20929 | /* confdefs.h. */ |
| 20930 | _ACEOF |
| 20931 | cat confdefs.h >>conftest.$ac_ext |
| 20932 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20933 | /* end confdefs.h. */ |
| 20934 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20935 | int |
| 20936 | main () |
| 20937 | { |
| 20938 | float f; isinf(f); |
| 20939 | ; |
| 20940 | return 0; |
| 20941 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20942 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20943 | rm -f conftest.$ac_objext |
| 20944 | if { (ac_try="$ac_compile" |
| 20945 | case "(($ac_try" in |
| 20946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20947 | *) ac_try_echo=$ac_try;; |
| 20948 | esac |
| 20949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20950 | (eval "$ac_compile") 2>conftest.er1 |
| 20951 | ac_status=$? |
| 20952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20953 | rm -f conftest.er1 |
| 20954 | cat conftest.err >&5 |
| 20955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20956 | (exit $ac_status); } && |
| 20957 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20958 | { (case "(($ac_try" in |
| 20959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20960 | *) ac_try_echo=$ac_try;; |
| 20961 | esac |
| 20962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20963 | (eval "$ac_try") 2>&5 |
| 20964 | ac_status=$? |
| 20965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20966 | (exit $ac_status); }; } && |
| 20967 | { ac_try='test -s conftest.$ac_objext' |
| 20968 | { (case "(($ac_try" in |
| 20969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20970 | *) ac_try_echo=$ac_try;; |
| 20971 | esac |
| 20972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20973 | (eval "$ac_try") 2>&5 |
| 20974 | ac_status=$? |
| 20975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20976 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20977 | ac_cv_func_isinf_in_math_h=yes |
| 20978 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20979 | echo "$as_me: failed program was:" >&5 |
| 20980 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20981 | |
| 20982 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20983 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20984 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20985 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20986 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20987 | ac_cpp='$CPP $CPPFLAGS' |
| 20988 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20989 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20990 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20991 | |
| 20992 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20993 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 20994 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20995 | |
| 20996 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20997 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20998 | cat >>confdefs.h <<\_ACEOF |
| 20999 | #define HAVE_ISINF_IN_MATH_H 1 |
| 21000 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21001 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21002 | fi |
| 21003 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21004 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 21005 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 21006 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 21007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21008 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21009 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21010 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21011 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21012 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21013 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21014 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21015 | cat >conftest.$ac_ext <<_ACEOF |
| 21016 | /* confdefs.h. */ |
| 21017 | _ACEOF |
| 21018 | cat confdefs.h >>conftest.$ac_ext |
| 21019 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21020 | /* end confdefs.h. */ |
| 21021 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21022 | int |
| 21023 | main () |
| 21024 | { |
| 21025 | float f; isinf(f); |
| 21026 | ; |
| 21027 | return 0; |
| 21028 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21029 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21030 | rm -f conftest.$ac_objext |
| 21031 | if { (ac_try="$ac_compile" |
| 21032 | case "(($ac_try" in |
| 21033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21034 | *) ac_try_echo=$ac_try;; |
| 21035 | esac |
| 21036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21037 | (eval "$ac_compile") 2>conftest.er1 |
| 21038 | ac_status=$? |
| 21039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21040 | rm -f conftest.er1 |
| 21041 | cat conftest.err >&5 |
| 21042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21043 | (exit $ac_status); } && |
| 21044 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 21045 | { (case "(($ac_try" in |
| 21046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21047 | *) ac_try_echo=$ac_try;; |
| 21048 | esac |
| 21049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21050 | (eval "$ac_try") 2>&5 |
| 21051 | ac_status=$? |
| 21052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21053 | (exit $ac_status); }; } && |
| 21054 | { ac_try='test -s conftest.$ac_objext' |
| 21055 | { (case "(($ac_try" in |
| 21056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21057 | *) ac_try_echo=$ac_try;; |
| 21058 | esac |
| 21059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21060 | (eval "$ac_try") 2>&5 |
| 21061 | ac_status=$? |
| 21062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21063 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21064 | ac_cv_func_isinf_in_cmath=yes |
| 21065 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21066 | echo "$as_me: failed program was:" >&5 |
| 21067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21068 | |
| 21069 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21070 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21071 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21073 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21074 | ac_cpp='$CPP $CPPFLAGS' |
| 21075 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21076 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21077 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21078 | |
| 21079 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21080 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 21081 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21082 | |
| 21083 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21084 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21085 | cat >>confdefs.h <<\_ACEOF |
| 21086 | #define HAVE_ISINF_IN_CMATH 1 |
| 21087 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21088 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21089 | fi |
| 21090 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21091 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 21092 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 21093 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 21094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21095 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21096 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21097 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21098 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21099 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21100 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21101 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21102 | cat >conftest.$ac_ext <<_ACEOF |
| 21103 | /* confdefs.h. */ |
| 21104 | _ACEOF |
| 21105 | cat confdefs.h >>conftest.$ac_ext |
| 21106 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21107 | /* end confdefs.h. */ |
| 21108 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21109 | int |
| 21110 | main () |
| 21111 | { |
| 21112 | float f; std::isinf(f)} |
| 21113 | ; |
| 21114 | return 0; |
| 21115 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21116 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21117 | rm -f conftest.$ac_objext |
| 21118 | if { (ac_try="$ac_compile" |
| 21119 | case "(($ac_try" in |
| 21120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21121 | *) ac_try_echo=$ac_try;; |
| 21122 | esac |
| 21123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21124 | (eval "$ac_compile") 2>conftest.er1 |
| 21125 | ac_status=$? |
| 21126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21127 | rm -f conftest.er1 |
| 21128 | cat conftest.err >&5 |
| 21129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21130 | (exit $ac_status); } && |
| 21131 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 21132 | { (case "(($ac_try" in |
| 21133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21134 | *) ac_try_echo=$ac_try;; |
| 21135 | esac |
| 21136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21137 | (eval "$ac_try") 2>&5 |
| 21138 | ac_status=$? |
| 21139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21140 | (exit $ac_status); }; } && |
| 21141 | { ac_try='test -s conftest.$ac_objext' |
| 21142 | { (case "(($ac_try" in |
| 21143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21144 | *) ac_try_echo=$ac_try;; |
| 21145 | esac |
| 21146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21147 | (eval "$ac_try") 2>&5 |
| 21148 | ac_status=$? |
| 21149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21150 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21151 | ac_cv_func_std_isinf_in_cmath=yes |
| 21152 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21153 | echo "$as_me: failed program was:" >&5 |
| 21154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21155 | |
| 21156 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21157 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21158 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21160 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21161 | ac_cpp='$CPP $CPPFLAGS' |
| 21162 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21163 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21164 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21165 | |
| 21166 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21167 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 21168 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21169 | |
| 21170 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21171 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21172 | cat >>confdefs.h <<\_ACEOF |
| 21173 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 21174 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 21175 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21176 | fi |
| 21177 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21178 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 21179 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 21180 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 21181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 21182 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21183 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 21184 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21185 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21186 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21187 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21188 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21189 | cat >conftest.$ac_ext <<_ACEOF |
| 21190 | /* confdefs.h. */ |
| 21191 | _ACEOF |
| 21192 | cat confdefs.h >>conftest.$ac_ext |
| 21193 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 21194 | /* end confdefs.h. */ |
| 21195 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21196 | int |
| 21197 | main () |
| 21198 | { |
| 21199 | float f; finite(f); |
| 21200 | ; |
| 21201 | return 0; |
| 21202 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 21203 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21204 | rm -f conftest.$ac_objext |
| 21205 | if { (ac_try="$ac_compile" |
| 21206 | case "(($ac_try" in |
| 21207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21208 | *) ac_try_echo=$ac_try;; |
| 21209 | esac |
| 21210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21211 | (eval "$ac_compile") 2>conftest.er1 |
| 21212 | ac_status=$? |
| 21213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21214 | rm -f conftest.er1 |
| 21215 | cat conftest.err >&5 |
| 21216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21217 | (exit $ac_status); } && |
| 21218 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 21219 | { (case "(($ac_try" in |
| 21220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21221 | *) ac_try_echo=$ac_try;; |
| 21222 | esac |
| 21223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21224 | (eval "$ac_try") 2>&5 |
| 21225 | ac_status=$? |
| 21226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21227 | (exit $ac_status); }; } && |
| 21228 | { ac_try='test -s conftest.$ac_objext' |
| 21229 | { (case "(($ac_try" in |
| 21230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21231 | *) ac_try_echo=$ac_try;; |
| 21232 | esac |
| 21233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21234 | (eval "$ac_try") 2>&5 |
| 21235 | ac_status=$? |
| 21236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21237 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 21238 | ac_cv_func_finite_in_ieeefp_h=yes |
| 21239 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21240 | echo "$as_me: failed program was:" >&5 |
| 21241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21242 | |
| 21243 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 21244 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21245 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21247 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 21248 | ac_cpp='$CPP $CPPFLAGS' |
| 21249 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21250 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21251 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21252 | |
| 21253 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21254 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 21255 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21256 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 21257 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 21258 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21259 | cat >>confdefs.h <<\_ACEOF |
| 21260 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 21261 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 21262 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 21263 | fi |
| 21264 | |
| 21265 | |
| 21266 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 21267 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21268 | |
| 21269 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21270 | for ac_header in stdlib.h unistd.h |
| 21271 | do |
| 21272 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21273 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21274 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21275 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 21276 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21278 | fi |
| 21279 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 21280 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21281 | echo "${ECHO_T}$ac_res" >&6; } |
| 21282 | else |
| 21283 | # Is the header compilable? |
| 21284 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 21285 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 21286 | cat >conftest.$ac_ext <<_ACEOF |
| 21287 | /* confdefs.h. */ |
| 21288 | _ACEOF |
| 21289 | cat confdefs.h >>conftest.$ac_ext |
| 21290 | cat >>conftest.$ac_ext <<_ACEOF |
| 21291 | /* end confdefs.h. */ |
| 21292 | $ac_includes_default |
| 21293 | #include <$ac_header> |
| 21294 | _ACEOF |
| 21295 | rm -f conftest.$ac_objext |
| 21296 | if { (ac_try="$ac_compile" |
| 21297 | case "(($ac_try" in |
| 21298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21299 | *) ac_try_echo=$ac_try;; |
| 21300 | esac |
| 21301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21302 | (eval "$ac_compile") 2>conftest.er1 |
| 21303 | ac_status=$? |
| 21304 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21305 | rm -f conftest.er1 |
| 21306 | cat conftest.err >&5 |
| 21307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21308 | (exit $ac_status); } && |
| 21309 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21310 | { (case "(($ac_try" in |
| 21311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21312 | *) ac_try_echo=$ac_try;; |
| 21313 | esac |
| 21314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21315 | (eval "$ac_try") 2>&5 |
| 21316 | ac_status=$? |
| 21317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21318 | (exit $ac_status); }; } && |
| 21319 | { ac_try='test -s conftest.$ac_objext' |
| 21320 | { (case "(($ac_try" in |
| 21321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21322 | *) ac_try_echo=$ac_try;; |
| 21323 | esac |
| 21324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21325 | (eval "$ac_try") 2>&5 |
| 21326 | ac_status=$? |
| 21327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21328 | (exit $ac_status); }; }; then |
| 21329 | ac_header_compiler=yes |
| 21330 | else |
| 21331 | echo "$as_me: failed program was:" >&5 |
| 21332 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21333 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21334 | ac_header_compiler=no |
| 21335 | fi |
| 21336 | |
| 21337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21338 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21339 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 21340 | |
| 21341 | # Is the header present? |
| 21342 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 21343 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 21344 | cat >conftest.$ac_ext <<_ACEOF |
| 21345 | /* confdefs.h. */ |
| 21346 | _ACEOF |
| 21347 | cat confdefs.h >>conftest.$ac_ext |
| 21348 | cat >>conftest.$ac_ext <<_ACEOF |
| 21349 | /* end confdefs.h. */ |
| 21350 | #include <$ac_header> |
| 21351 | _ACEOF |
| 21352 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 21353 | case "(($ac_try" in |
| 21354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21355 | *) ac_try_echo=$ac_try;; |
| 21356 | esac |
| 21357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21358 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 21359 | ac_status=$? |
| 21360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21361 | rm -f conftest.er1 |
| 21362 | cat conftest.err >&5 |
| 21363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21364 | (exit $ac_status); } >/dev/null; then |
| 21365 | if test -s conftest.err; then |
| 21366 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 21367 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 21368 | else |
| 21369 | ac_cpp_err= |
| 21370 | fi |
| 21371 | else |
| 21372 | ac_cpp_err=yes |
| 21373 | fi |
| 21374 | if test -z "$ac_cpp_err"; then |
| 21375 | ac_header_preproc=yes |
| 21376 | else |
| 21377 | echo "$as_me: failed program was:" >&5 |
| 21378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21379 | |
| 21380 | ac_header_preproc=no |
| 21381 | fi |
| 21382 | |
| 21383 | rm -f conftest.err conftest.$ac_ext |
| 21384 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 21385 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 21386 | |
| 21387 | # So? What about this header? |
| 21388 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 21389 | yes:no: ) |
| 21390 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 21391 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 21392 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 21393 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 21394 | ac_header_preproc=yes |
| 21395 | ;; |
| 21396 | no:yes:* ) |
| 21397 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 21398 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 21399 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 21400 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 21401 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 21402 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 21403 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 21404 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 21405 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 21406 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 21407 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 21408 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 21409 | ( cat <<\_ASBOX |
| 21410 | ## ----------------------------------- ## |
| 21411 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 21412 | ## ----------------------------------- ## |
| 21413 | _ASBOX |
| 21414 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 21415 | ;; |
| 21416 | esac |
| 21417 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21418 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 21419 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21421 | else |
| 21422 | eval "$as_ac_Header=\$ac_header_preproc" |
| 21423 | fi |
| 21424 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 21425 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21426 | echo "${ECHO_T}$ac_res" >&6; } |
| 21427 | |
| 21428 | fi |
| 21429 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21430 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21431 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21432 | _ACEOF |
| 21433 | |
| 21434 | fi |
| 21435 | |
| 21436 | done |
| 21437 | |
| 21438 | |
| 21439 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21440 | do |
| 21441 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21442 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21443 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 21444 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21446 | else |
| 21447 | cat >conftest.$ac_ext <<_ACEOF |
| 21448 | /* confdefs.h. */ |
| 21449 | _ACEOF |
| 21450 | cat confdefs.h >>conftest.$ac_ext |
| 21451 | cat >>conftest.$ac_ext <<_ACEOF |
| 21452 | /* end confdefs.h. */ |
| 21453 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21454 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21455 | #define $ac_func innocuous_$ac_func |
| 21456 | |
| 21457 | /* System header to define __stub macros and hopefully few prototypes, |
| 21458 | which can conflict with char $ac_func (); below. |
| 21459 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21460 | <limits.h> exists even on freestanding compilers. */ |
| 21461 | |
| 21462 | #ifdef __STDC__ |
| 21463 | # include <limits.h> |
| 21464 | #else |
| 21465 | # include <assert.h> |
| 21466 | #endif |
| 21467 | |
| 21468 | #undef $ac_func |
| 21469 | |
| 21470 | /* Override any GCC internal prototype to avoid an error. |
| 21471 | Use char because int might match the return type of a GCC |
| 21472 | builtin and then its argument prototype would still apply. */ |
| 21473 | #ifdef __cplusplus |
| 21474 | extern "C" |
| 21475 | #endif |
| 21476 | char $ac_func (); |
| 21477 | /* The GNU C library defines this for functions which it implements |
| 21478 | to always fail with ENOSYS. Some functions are actually named |
| 21479 | something starting with __ and the normal name is an alias. */ |
| 21480 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 21481 | choke me |
| 21482 | #endif |
| 21483 | |
| 21484 | int |
| 21485 | main () |
| 21486 | { |
| 21487 | return $ac_func (); |
| 21488 | ; |
| 21489 | return 0; |
| 21490 | } |
| 21491 | _ACEOF |
| 21492 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21493 | if { (ac_try="$ac_link" |
| 21494 | case "(($ac_try" in |
| 21495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21496 | *) ac_try_echo=$ac_try;; |
| 21497 | esac |
| 21498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21499 | (eval "$ac_link") 2>conftest.er1 |
| 21500 | ac_status=$? |
| 21501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21502 | rm -f conftest.er1 |
| 21503 | cat conftest.err >&5 |
| 21504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21505 | (exit $ac_status); } && |
| 21506 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21507 | { (case "(($ac_try" in |
| 21508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21509 | *) ac_try_echo=$ac_try;; |
| 21510 | esac |
| 21511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21512 | (eval "$ac_try") 2>&5 |
| 21513 | ac_status=$? |
| 21514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21515 | (exit $ac_status); }; } && |
| 21516 | { ac_try='test -s conftest$ac_exeext' |
| 21517 | { (case "(($ac_try" in |
| 21518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21519 | *) ac_try_echo=$ac_try;; |
| 21520 | esac |
| 21521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21522 | (eval "$ac_try") 2>&5 |
| 21523 | ac_status=$? |
| 21524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21525 | (exit $ac_status); }; }; then |
| 21526 | eval "$as_ac_var=yes" |
| 21527 | else |
| 21528 | echo "$as_me: failed program was:" >&5 |
| 21529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21530 | |
| 21531 | eval "$as_ac_var=no" |
| 21532 | fi |
| 21533 | |
| 21534 | rm -f core conftest.err conftest.$ac_objext \ |
| 21535 | conftest$ac_exeext conftest.$ac_ext |
| 21536 | fi |
| 21537 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21538 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21539 | echo "${ECHO_T}$ac_res" >&6; } |
| 21540 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21541 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21542 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21543 | _ACEOF |
| 21544 | |
| 21545 | fi |
| 21546 | done |
| 21547 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21548 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 21549 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 21550 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 21551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21552 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21553 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21554 | ac_cv_func_mmap_fixed_mapped=no |
| 21555 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21556 | cat >conftest.$ac_ext <<_ACEOF |
| 21557 | /* confdefs.h. */ |
| 21558 | _ACEOF |
| 21559 | cat confdefs.h >>conftest.$ac_ext |
| 21560 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21561 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21562 | $ac_includes_default |
| 21563 | /* malloc might have been renamed as rpl_malloc. */ |
| 21564 | #undef malloc |
| 21565 | |
| 21566 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 21567 | Here is a matrix of mmap possibilities: |
| 21568 | mmap private not fixed |
| 21569 | mmap private fixed at somewhere currently unmapped |
| 21570 | mmap private fixed at somewhere already mapped |
| 21571 | mmap shared not fixed |
| 21572 | mmap shared fixed at somewhere currently unmapped |
| 21573 | mmap shared fixed at somewhere already mapped |
| 21574 | For private mappings, we should verify that changes cannot be read() |
| 21575 | back from the file, nor mmap's back from the file at a different |
| 21576 | address. (There have been systems where private was not correctly |
| 21577 | implemented like the infamous i386 svr4.0, and systems where the |
| 21578 | VM page cache was not coherent with the file system buffer cache |
| 21579 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 21580 | For shared mappings, we should conversely verify that changes get |
| 21581 | propagated back to all the places they're supposed to be. |
| 21582 | |
| 21583 | Grep wants private fixed already mapped. |
| 21584 | The main things grep needs to know about mmap are: |
| 21585 | * does it exist and is it safe to write into the mmap'd area |
| 21586 | * how to use it (BSD variants) */ |
| 21587 | |
| 21588 | #include <fcntl.h> |
| 21589 | #include <sys/mman.h> |
| 21590 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21591 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21592 | char *malloc (); |
| 21593 | #endif |
| 21594 | |
| 21595 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21596 | #if !HAVE_GETPAGESIZE |
| 21597 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 21598 | # if !HAVE_SYS_PARAM_H |
| 21599 | # define HAVE_SYS_PARAM_H 1 |
| 21600 | # endif |
| 21601 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21602 | # ifdef _SC_PAGESIZE |
| 21603 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 21604 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21605 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21606 | # include <sys/param.h> |
| 21607 | # ifdef EXEC_PAGESIZE |
| 21608 | # define getpagesize() EXEC_PAGESIZE |
| 21609 | # else /* no EXEC_PAGESIZE */ |
| 21610 | # ifdef NBPG |
| 21611 | # define getpagesize() NBPG * CLSIZE |
| 21612 | # ifndef CLSIZE |
| 21613 | # define CLSIZE 1 |
| 21614 | # endif /* no CLSIZE */ |
| 21615 | # else /* no NBPG */ |
| 21616 | # ifdef NBPC |
| 21617 | # define getpagesize() NBPC |
| 21618 | # else /* no NBPC */ |
| 21619 | # ifdef PAGESIZE |
| 21620 | # define getpagesize() PAGESIZE |
| 21621 | # endif /* PAGESIZE */ |
| 21622 | # endif /* no NBPC */ |
| 21623 | # endif /* no NBPG */ |
| 21624 | # endif /* no EXEC_PAGESIZE */ |
| 21625 | # else /* no HAVE_SYS_PARAM_H */ |
| 21626 | # define getpagesize() 8192 /* punt totally */ |
| 21627 | # endif /* no HAVE_SYS_PARAM_H */ |
| 21628 | # endif /* no _SC_PAGESIZE */ |
| 21629 | |
| 21630 | #endif /* no HAVE_GETPAGESIZE */ |
| 21631 | |
| 21632 | int |
| 21633 | main () |
| 21634 | { |
| 21635 | char *data, *data2, *data3; |
| 21636 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21637 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21638 | |
| 21639 | pagesize = getpagesize (); |
| 21640 | |
| 21641 | /* First, make a file with some known garbage in it. */ |
| 21642 | data = (char *) malloc (pagesize); |
| 21643 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21644 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21645 | for (i = 0; i < pagesize; ++i) |
| 21646 | *(data + i) = rand (); |
| 21647 | umask (0); |
| 21648 | fd = creat ("conftest.mmap", 0600); |
| 21649 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21650 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21651 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21652 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21653 | close (fd); |
| 21654 | |
| 21655 | /* Next, try to mmap the file at a fixed address which already has |
| 21656 | something else allocated at it. If we can, also make sure that |
| 21657 | we see the same garbage. */ |
| 21658 | fd = open ("conftest.mmap", O_RDWR); |
| 21659 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21660 | return 1; |
| 21661 | data2 = (char *) malloc (2 * pagesize); |
| 21662 | if (!data2) |
| 21663 | return 1; |
| 21664 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21665 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21666 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21667 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21668 | for (i = 0; i < pagesize; ++i) |
| 21669 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21670 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21671 | |
| 21672 | /* Finally, make sure that changes to the mapped area do not |
| 21673 | percolate back to the file as seen by read(). (This is a bug on |
| 21674 | some variants of i386 svr4.0.) */ |
| 21675 | for (i = 0; i < pagesize; ++i) |
| 21676 | *(data2 + i) = *(data2 + i) + 1; |
| 21677 | data3 = (char *) malloc (pagesize); |
| 21678 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21679 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21680 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21681 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21682 | for (i = 0; i < pagesize; ++i) |
| 21683 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21684 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21685 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21686 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21687 | } |
| 21688 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21689 | rm -f conftest$ac_exeext |
| 21690 | if { (ac_try="$ac_link" |
| 21691 | case "(($ac_try" in |
| 21692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21693 | *) ac_try_echo=$ac_try;; |
| 21694 | esac |
| 21695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21696 | (eval "$ac_link") 2>&5 |
| 21697 | ac_status=$? |
| 21698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21699 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21700 | { (case "(($ac_try" in |
| 21701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21702 | *) ac_try_echo=$ac_try;; |
| 21703 | esac |
| 21704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21705 | (eval "$ac_try") 2>&5 |
| 21706 | ac_status=$? |
| 21707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21708 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21709 | ac_cv_func_mmap_fixed_mapped=yes |
| 21710 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21711 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21712 | echo "$as_me: failed program was:" >&5 |
| 21713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21714 | |
| 21715 | ( exit $ac_status ) |
| 21716 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21717 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21718 | 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] | 21719 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21720 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21721 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21722 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21723 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 21724 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21725 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 21726 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21727 | cat >>confdefs.h <<\_ACEOF |
| 21728 | #define HAVE_MMAP 1 |
| 21729 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21730 | |
| 21731 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21732 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21733 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21734 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 21735 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 21736 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 21737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21738 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21739 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21740 | ac_cpp='$CPP $CPPFLAGS' |
| 21741 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21742 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21743 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21744 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21745 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 21746 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21747 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21748 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 21749 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21750 | /* confdefs.h. */ |
| 21751 | _ACEOF |
| 21752 | cat confdefs.h >>conftest.$ac_ext |
| 21753 | cat >>conftest.$ac_ext <<_ACEOF |
| 21754 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21755 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21756 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 21757 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21758 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 21759 | |
| 21760 | int |
| 21761 | main () |
| 21762 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21763 | |
| 21764 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 21765 | fd = creat ("foo",0777); |
| 21766 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 21767 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 21768 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 21769 | ; |
| 21770 | return 0; |
| 21771 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21772 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21773 | rm -f conftest$ac_exeext |
| 21774 | if { (ac_try="$ac_link" |
| 21775 | case "(($ac_try" in |
| 21776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21777 | *) ac_try_echo=$ac_try;; |
| 21778 | esac |
| 21779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21780 | (eval "$ac_link") 2>&5 |
| 21781 | ac_status=$? |
| 21782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21783 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21784 | { (case "(($ac_try" in |
| 21785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21786 | *) ac_try_echo=$ac_try;; |
| 21787 | esac |
| 21788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21789 | (eval "$ac_try") 2>&5 |
| 21790 | ac_status=$? |
| 21791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21792 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21793 | ac_cv_func_mmap_file=yes |
| 21794 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21795 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21796 | echo "$as_me: failed program was:" >&5 |
| 21797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21798 | |
| 21799 | ( exit $ac_status ) |
| 21800 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21801 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21802 | 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] | 21803 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21804 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21805 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21806 | ac_ext=c |
| 21807 | ac_cpp='$CPP $CPPFLAGS' |
| 21808 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21809 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21810 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21811 | |
| 21812 | |
| 21813 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21814 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 21815 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21816 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 21817 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21818 | cat >>confdefs.h <<\_ACEOF |
| 21819 | #define HAVE_MMAP_FILE |
| 21820 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21821 | |
| 21822 | MMAP_FILE=yes |
| 21823 | |
| 21824 | fi |
| 21825 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21826 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 21827 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 21828 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 21829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 21830 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 21831 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 21832 | ac_cv_need_dev_zero_for_mmap=yes |
| 21833 | else |
| 21834 | ac_cv_need_dev_zero_for_mmap=no |
| 21835 | fi |
| 21836 | |
| 21837 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21838 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 21839 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 21840 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 21841 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21842 | cat >>confdefs.h <<\_ACEOF |
| 21843 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 21844 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 21845 | |
| 21846 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21847 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 21848 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 21849 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21850 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 21851 | 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] | 21852 | fi |
| 21853 | if test "$ac_cv_func_mmap_file" = "no" |
| 21854 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21855 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 21856 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 21857 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21858 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21859 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21860 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 21861 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 21862 | ac_ext=cpp |
| 21863 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21864 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21865 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21866 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21867 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21868 | cat >conftest.$ac_ext <<_ACEOF |
| 21869 | /* confdefs.h. */ |
| 21870 | _ACEOF |
| 21871 | cat confdefs.h >>conftest.$ac_ext |
| 21872 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 21873 | /* end confdefs.h. */ |
| 21874 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 21875 | volatile unsigned long val = 1; |
| 21876 | __sync_synchronize(); |
| 21877 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 21878 | __sync_add_and_fetch(&val, 1); |
| 21879 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 21880 | return 0; |
| 21881 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 21882 | |
| 21883 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21884 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21885 | if { (ac_try="$ac_link" |
| 21886 | case "(($ac_try" in |
| 21887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21888 | *) ac_try_echo=$ac_try;; |
| 21889 | esac |
| 21890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21891 | (eval "$ac_link") 2>conftest.er1 |
| 21892 | ac_status=$? |
| 21893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21894 | rm -f conftest.er1 |
| 21895 | cat conftest.err >&5 |
| 21896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21897 | (exit $ac_status); } && |
| 21898 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21899 | { (case "(($ac_try" in |
| 21900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21901 | *) ac_try_echo=$ac_try;; |
| 21902 | esac |
| 21903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21904 | (eval "$ac_try") 2>&5 |
| 21905 | ac_status=$? |
| 21906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21907 | (exit $ac_status); }; } && |
| 21908 | { ac_try='test -s conftest$ac_exeext' |
| 21909 | { (case "(($ac_try" in |
| 21910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21911 | *) ac_try_echo=$ac_try;; |
| 21912 | esac |
| 21913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21914 | (eval "$ac_try") 2>&5 |
| 21915 | ac_status=$? |
| 21916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21917 | (exit $ac_status); }; }; then |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 21918 | ac_ext=c |
| 21919 | ac_cpp='$CPP $CPPFLAGS' |
| 21920 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21921 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21922 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21923 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21924 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21925 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 21926 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21927 | cat >>confdefs.h <<\_ACEOF |
| 21928 | #define LLVM_MULTITHREADED 1 |
| 21929 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 21930 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 21931 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21932 | echo "$as_me: failed program was:" >&5 |
| 21933 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 21934 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21935 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21936 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 21937 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21938 | cat >>confdefs.h <<\_ACEOF |
| 21939 | #define LLVM_MULTITHREADED 0 |
| 21940 | _ACEOF |
| 21941 | |
| 21942 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 21943 | 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] | 21944 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21945 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 21946 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21947 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 21948 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21949 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 21950 | 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] | 21951 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 21952 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 21953 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 21954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 21955 | else |
| 21956 | ac_ext=c |
| 21957 | ac_cpp='$CPP $CPPFLAGS' |
| 21958 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21959 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21960 | ac_compiler_gnu=$ac_cv_c_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 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 21967 | /* end confdefs.h. */ |
| 21968 | #ifndef __x86_64__ |
| 21969 | error: Not x86-64 even if uname says so! |
| 21970 | #endif |
| 21971 | |
| 21972 | int |
| 21973 | main () |
| 21974 | { |
| 21975 | |
| 21976 | ; |
| 21977 | return 0; |
| 21978 | } |
| 21979 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21980 | rm -f conftest.$ac_objext |
| 21981 | if { (ac_try="$ac_compile" |
| 21982 | case "(($ac_try" in |
| 21983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21984 | *) ac_try_echo=$ac_try;; |
| 21985 | esac |
| 21986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21987 | (eval "$ac_compile") 2>conftest.er1 |
| 21988 | ac_status=$? |
| 21989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21990 | rm -f conftest.er1 |
| 21991 | cat conftest.err >&5 |
| 21992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21993 | (exit $ac_status); } && |
| 21994 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21995 | { (case "(($ac_try" in |
| 21996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21997 | *) ac_try_echo=$ac_try;; |
| 21998 | esac |
| 21999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22000 | (eval "$ac_try") 2>&5 |
| 22001 | ac_status=$? |
| 22002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22003 | (exit $ac_status); }; } && |
| 22004 | { ac_try='test -s conftest.$ac_objext' |
| 22005 | { (case "(($ac_try" in |
| 22006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22007 | *) ac_try_echo=$ac_try;; |
| 22008 | esac |
| 22009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22010 | (eval "$ac_try") 2>&5 |
| 22011 | ac_status=$? |
| 22012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22013 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 22014 | llvm_cv_linux_mixed=no |
| 22015 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22016 | echo "$as_me: failed program was:" >&5 |
| 22017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22018 | |
| 22019 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 22020 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22021 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 22022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22023 | ac_ext=c |
| 22024 | ac_cpp='$CPP $CPPFLAGS' |
| 22025 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22026 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22027 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22028 | |
| 22029 | |
| 22030 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22031 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 22032 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 22033 | |
| 22034 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 22035 | llvm_cv_target_arch="x86" |
| 22036 | ARCH="x86" |
| 22037 | fi |
| 22038 | fi |
| 22039 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22040 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 22041 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22042 | do |
| 22043 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22044 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22045 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 22046 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 22047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22048 | else |
| 22049 | cat >conftest.$ac_ext <<_ACEOF |
| 22050 | /* confdefs.h. */ |
| 22051 | _ACEOF |
| 22052 | cat confdefs.h >>conftest.$ac_ext |
| 22053 | cat >>conftest.$ac_ext <<_ACEOF |
| 22054 | /* end confdefs.h. */ |
| 22055 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22056 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22057 | #define $ac_func innocuous_$ac_func |
| 22058 | |
| 22059 | /* System header to define __stub macros and hopefully few prototypes, |
| 22060 | which can conflict with char $ac_func (); below. |
| 22061 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22062 | <limits.h> exists even on freestanding compilers. */ |
| 22063 | |
| 22064 | #ifdef __STDC__ |
| 22065 | # include <limits.h> |
| 22066 | #else |
| 22067 | # include <assert.h> |
| 22068 | #endif |
| 22069 | |
| 22070 | #undef $ac_func |
| 22071 | |
| 22072 | /* Override any GCC internal prototype to avoid an error. |
| 22073 | Use char because int might match the return type of a GCC |
| 22074 | builtin and then its argument prototype would still apply. */ |
| 22075 | #ifdef __cplusplus |
| 22076 | extern "C" |
| 22077 | #endif |
| 22078 | char $ac_func (); |
| 22079 | /* The GNU C library defines this for functions which it implements |
| 22080 | to always fail with ENOSYS. Some functions are actually named |
| 22081 | something starting with __ and the normal name is an alias. */ |
| 22082 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 22083 | choke me |
| 22084 | #endif |
| 22085 | |
| 22086 | int |
| 22087 | main () |
| 22088 | { |
| 22089 | return $ac_func (); |
| 22090 | ; |
| 22091 | return 0; |
| 22092 | } |
| 22093 | _ACEOF |
| 22094 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22095 | if { (ac_try="$ac_link" |
| 22096 | case "(($ac_try" in |
| 22097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22098 | *) ac_try_echo=$ac_try;; |
| 22099 | esac |
| 22100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22101 | (eval "$ac_link") 2>conftest.er1 |
| 22102 | ac_status=$? |
| 22103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22104 | rm -f conftest.er1 |
| 22105 | cat conftest.err >&5 |
| 22106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22107 | (exit $ac_status); } && |
| 22108 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22109 | { (case "(($ac_try" in |
| 22110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22111 | *) ac_try_echo=$ac_try;; |
| 22112 | esac |
| 22113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22114 | (eval "$ac_try") 2>&5 |
| 22115 | ac_status=$? |
| 22116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22117 | (exit $ac_status); }; } && |
| 22118 | { ac_try='test -s conftest$ac_exeext' |
| 22119 | { (case "(($ac_try" in |
| 22120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22121 | *) ac_try_echo=$ac_try;; |
| 22122 | esac |
| 22123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22124 | (eval "$ac_try") 2>&5 |
| 22125 | ac_status=$? |
| 22126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22127 | (exit $ac_status); }; }; then |
| 22128 | eval "$as_ac_var=yes" |
| 22129 | else |
| 22130 | echo "$as_me: failed program was:" >&5 |
| 22131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22132 | |
| 22133 | eval "$as_ac_var=no" |
| 22134 | fi |
| 22135 | |
| 22136 | rm -f core conftest.err conftest.$ac_objext \ |
| 22137 | conftest$ac_exeext conftest.$ac_ext |
| 22138 | fi |
| 22139 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 22140 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22141 | echo "${ECHO_T}$ac_res" >&6; } |
| 22142 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 22143 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22144 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 22145 | _ACEOF |
| 22146 | |
| 22147 | fi |
| 22148 | done |
| 22149 | |
| 22150 | |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22151 | { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5 |
| 22152 | echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; } |
| 22153 | if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then |
| 22154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22155 | else |
| 22156 | llvm_cv_llvmgcc_dragonegg="no" |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 22157 | if test -n "$LLVMGCC" ; then |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22158 | cp /dev/null conftest.c |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 22159 | $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] | 22160 | if test $? -eq 0 ; then |
| 22161 | llvm_cv_llvmgcc_dragonegg="yes" |
| 22162 | fi |
| 22163 | rm conftest.c |
| 22164 | fi |
| 22165 | fi |
| 22166 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5 |
| 22167 | echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; } |
| 22168 | |
| 22169 | if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then |
| 22170 | LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir" |
Duncan Sands | 1ac320e | 2010-11-25 17:57:43 +0000 | [diff] [blame] | 22171 | LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns" |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22172 | else |
| 22173 | LLVMCC_EMITIR_FLAG="-emit-llvm" |
Duncan Sands | 1ac320e | 2010-11-25 17:57:43 +0000 | [diff] [blame] | 22174 | LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns" |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22175 | fi |
| 22176 | |
| 22177 | |
| 22178 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22179 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 22180 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
| 22181 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 22182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22183 | else |
| 22184 | llvm_cv_llvmgcc_sanity="no" |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 22185 | if test -n "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22186 | cp /dev/null conftest.c |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 22187 | $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \ |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 22188 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22189 | if test $? -eq 0 ; then |
| 22190 | llvm_cv_llvmgcc_sanity="yes" |
| 22191 | fi |
| 22192 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 22193 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22194 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22195 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 22196 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22197 | |
| 22198 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22199 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 22200 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 22201 | llvmcc1path=`$LLVMGCC --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22202 | LLVMCC1=$llvmcc1path |
| 22203 | |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 22204 | llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22205 | LLVMCC1PLUS=$llvmcc1pluspath |
| 22206 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 22207 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 22208 | LLVMGCCDIR=$llvmgccdir |
| 22209 | |
Duncan Sands | 1526b19 | 2010-11-25 17:47:42 +0000 | [diff] [blame] | 22210 | 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] | 22211 | LLVMGCC_LANGS=$llvmgcclangs |
| 22212 | |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22213 | LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg |
| 22214 | |
| 22215 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22216 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 22217 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 22218 | fi |
| 22219 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 22220 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 22221 | |
| 22222 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 22223 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var |
| 22224 | |
| 22225 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 22226 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22227 | # information into substitutions that will end up in Makefile.config.in |
| 22228 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 22229 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 22230 | prefix="/usr/local" |
| 22231 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 22232 | eval LLVM_PREFIX="${prefix}"; |
| 22233 | eval LLVM_BINDIR="${prefix}/bin"; |
| 22234 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 22235 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
Eric Christopher | ec27496 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 22236 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 22237 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 22238 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 22239 | eval LLVM_INFODIR="${prefix}/info"; |
| 22240 | eval LLVM_MANDIR="${prefix}/man"; |
| 22241 | LLVM_CONFIGTIME=`date` |
| 22242 | |
| 22243 | |
| 22244 | |
| 22245 | |
| 22246 | |
| 22247 | |
| 22248 | |
| 22249 | |
| 22250 | |
| 22251 | |
| 22252 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22253 | # Place the various directores into the config.h file as #defines so that we |
| 22254 | # can know about the installation paths within LLVM. |
| 22255 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 22256 | cat >>confdefs.h <<_ACEOF |
| 22257 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 22258 | _ACEOF |
| 22259 | |
| 22260 | |
| 22261 | cat >>confdefs.h <<_ACEOF |
| 22262 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 22263 | _ACEOF |
| 22264 | |
| 22265 | |
| 22266 | cat >>confdefs.h <<_ACEOF |
| 22267 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 22268 | _ACEOF |
| 22269 | |
| 22270 | |
| 22271 | cat >>confdefs.h <<_ACEOF |
| 22272 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 22273 | _ACEOF |
| 22274 | |
| 22275 | |
| 22276 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 22277 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 22278 | _ACEOF |
| 22279 | |
| 22280 | |
| 22281 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 22282 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 22283 | _ACEOF |
| 22284 | |
| 22285 | |
| 22286 | cat >>confdefs.h <<_ACEOF |
| 22287 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 22288 | _ACEOF |
| 22289 | |
| 22290 | |
| 22291 | cat >>confdefs.h <<_ACEOF |
| 22292 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 22293 | _ACEOF |
| 22294 | |
| 22295 | |
| 22296 | cat >>confdefs.h <<_ACEOF |
| 22297 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 22298 | _ACEOF |
| 22299 | |
| 22300 | |
| 22301 | cat >>confdefs.h <<_ACEOF |
| 22302 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 22303 | _ACEOF |
| 22304 | |
| 22305 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 22306 | cat >>confdefs.h <<_ACEOF |
| 22307 | #define LLVM_HOSTTRIPLE "$host" |
| 22308 | _ACEOF |
| 22309 | |
| 22310 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 22311 | # Determine which bindings to build. |
| 22312 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 22313 | BINDINGS_TO_BUILD="" |
| 22314 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 22315 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 22316 | fi |
| 22317 | fi |
| 22318 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 22319 | |
| 22320 | |
| 22321 | # This isn't really configurey, but it avoids having to repeat the list in |
| 22322 | # other files. |
| 22323 | ALL_BINDINGS=ocaml |
| 22324 | |
| 22325 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 22326 | # Do any work necessary to ensure that bindings have what they need. |
| 22327 | binding_prereqs_failed=0 |
| 22328 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 22329 | case "$a_binding" in |
| 22330 | ocaml) |
| 22331 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22332 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 22333 | 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] | 22334 | binding_prereqs_failed=1 |
| 22335 | fi |
| 22336 | if test "x$OCAMLDEP" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22337 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 22338 | 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] | 22339 | binding_prereqs_failed=1 |
| 22340 | fi |
| 22341 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22342 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 22343 | 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] | 22344 | fi |
| 22345 | if test "x$with_ocaml_libdir" != xauto ; then |
| 22346 | OCAML_LIBDIR=$with_ocaml_libdir |
| 22347 | |
| 22348 | else |
| 22349 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 22350 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 22351 | then |
| 22352 | # ocaml stdlib is beneath our prefix; use stdlib |
| 22353 | OCAML_LIBDIR=$ocaml_stdlib |
| 22354 | |
| 22355 | else |
| 22356 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 22357 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 22358 | |
| 22359 | fi |
| 22360 | fi |
| 22361 | ;; |
| 22362 | esac |
| 22363 | done |
| 22364 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22365 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 22366 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 22367 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 22368 | fi |
| 22369 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22370 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 22371 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 22372 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 22373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 22374 | else |
| 22375 | ac_ext=cpp |
| 22376 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22377 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22378 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22379 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22380 | |
| 22381 | oldcxxflags="$CXXFLAGS" |
| 22382 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22383 | cat >conftest.$ac_ext <<_ACEOF |
| 22384 | /* confdefs.h. */ |
| 22385 | _ACEOF |
| 22386 | cat confdefs.h >>conftest.$ac_ext |
| 22387 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 22388 | /* end confdefs.h. */ |
| 22389 | |
| 22390 | int |
| 22391 | main () |
| 22392 | { |
| 22393 | |
| 22394 | ; |
| 22395 | return 0; |
| 22396 | } |
| 22397 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22398 | rm -f conftest.$ac_objext |
| 22399 | if { (ac_try="$ac_compile" |
| 22400 | case "(($ac_try" in |
| 22401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22402 | *) ac_try_echo=$ac_try;; |
| 22403 | esac |
| 22404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22405 | (eval "$ac_compile") 2>conftest.er1 |
| 22406 | ac_status=$? |
| 22407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22408 | rm -f conftest.er1 |
| 22409 | cat conftest.err >&5 |
| 22410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22411 | (exit $ac_status); } && |
| 22412 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 22413 | { (case "(($ac_try" in |
| 22414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22415 | *) ac_try_echo=$ac_try;; |
| 22416 | esac |
| 22417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22418 | (eval "$ac_try") 2>&5 |
| 22419 | ac_status=$? |
| 22420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22421 | (exit $ac_status); }; } && |
| 22422 | { ac_try='test -s conftest.$ac_objext' |
| 22423 | { (case "(($ac_try" in |
| 22424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22425 | *) ac_try_echo=$ac_try;; |
| 22426 | esac |
| 22427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22428 | (eval "$ac_try") 2>&5 |
| 22429 | ac_status=$? |
| 22430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22431 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 22432 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 22433 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22434 | echo "$as_me: failed program was:" >&5 |
| 22435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22436 | |
| 22437 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 22438 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22439 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 22440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22441 | CXXFLAGS="$oldcxxflags" |
| 22442 | ac_ext=c |
| 22443 | ac_cpp='$CPP $CPPFLAGS' |
| 22444 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22445 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22446 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22447 | |
| 22448 | |
| 22449 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22450 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 22451 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 22452 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 22453 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 22454 | |
| 22455 | else |
| 22456 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 22457 | |
| 22458 | fi |
| 22459 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 22460 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 22461 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 22462 | RPATH="-Wl,-R" |
| 22463 | else |
| 22464 | RPATH="-Wl,-rpath" |
| 22465 | fi |
| 22466 | |
| 22467 | |
| 22468 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 22469 | RDYNAMIC="-Wl,-export-dynamic" |
| 22470 | else |
| 22471 | RDYNAMIC="" |
| 22472 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 22473 | |
| 22474 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22475 | |
Eric Christopher | a1cba68 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 22476 | 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] | 22477 | |
Eric Christopher | 21d3eeb | 2010-08-08 09:20:39 +0000 | [diff] [blame] | 22478 | |
| 22479 | |
| 22480 | |
| 22481 | |
| 22482 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 22483 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 22484 | |
| 22485 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 22486 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 22487 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 22488 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 22489 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 22490 | |
Michael J. Spencer | 1f6efa3 | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 22491 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22492 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22493 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22494 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22495 | |
| 22496 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 22497 | ac_config_files="$ac_config_files llvm.spec" |
| 22498 | |
| 22499 | |
Mikhail Glushenkov | 4b643c0 | 2010-08-15 07:07:17 +0000 | [diff] [blame] | 22500 | ac_config_files="$ac_config_files tools/llvmc/src/Base.td" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 22501 | |
| 22502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22503 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 22504 | |
| 22505 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22506 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 22507 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22508 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22509 | |
| 22510 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22511 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22512 | |
| 22513 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22514 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22515 | |
| 22516 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22517 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22518 | |
| 22519 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 22520 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 22521 | |
| 22522 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22523 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22524 | |
| 22525 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22526 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22527 | |
| 22528 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 22529 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 22530 | |
| 22531 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22532 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22533 | |
| 22534 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22535 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22536 | |
| 22537 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22538 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22539 | |
| 22540 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 22541 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 22542 | |
| 22543 | |
| 22544 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 22545 | |
| 22546 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22547 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22548 | cat >confcache <<\_ACEOF |
| 22549 | # This file is a shell script that caches the results of configure |
| 22550 | # tests run on this system so they can be shared between configure |
| 22551 | # scripts and configure runs, see configure's option --config-cache. |
| 22552 | # It is not useful on other systems. If it contains results you don't |
| 22553 | # want to keep, you may remove or edit it. |
| 22554 | # |
| 22555 | # config.status only pays attention to the cache file if you give it |
| 22556 | # the --recheck option to rerun configure. |
| 22557 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22558 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22559 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 22560 | # following values. |
| 22561 | |
| 22562 | _ACEOF |
| 22563 | |
| 22564 | # The following way of writing the cache mishandles newlines in values, |
| 22565 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22566 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22567 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 22568 | # 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] | 22569 | ( |
| 22570 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 22571 | eval ac_val=\$$ac_var |
| 22572 | case $ac_val in #( |
| 22573 | *${as_nl}*) |
| 22574 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22575 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 22576 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22577 | esac |
| 22578 | case $ac_var in #( |
| 22579 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22580 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22581 | esac ;; |
| 22582 | esac |
| 22583 | done |
| 22584 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22585 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22586 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 22587 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22588 | # `set' does not quote correctly, so add quotes (double-quote |
| 22589 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22590 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22591 | "s/'/'\\\\''/g; |
| 22592 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22593 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22594 | *) |
| 22595 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22596 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22597 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22598 | esac | |
| 22599 | sort |
| 22600 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22601 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22602 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22603 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22604 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22605 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 22606 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22607 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 22608 | :end' >>confcache |
| 22609 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 22610 | if test -w "$cache_file"; then |
| 22611 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22612 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 22613 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22614 | cat confcache >$cache_file |
| 22615 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22616 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 22617 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22618 | fi |
| 22619 | fi |
| 22620 | rm -f confcache |
| 22621 | |
| 22622 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 22623 | # Let make expand exec_prefix. |
| 22624 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 22625 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22626 | DEFS=-DHAVE_CONFIG_H |
| 22627 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22628 | ac_libobjs= |
| 22629 | ac_ltlibobjs= |
| 22630 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 22631 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22632 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22633 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22634 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 22635 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22636 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 22637 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22638 | done |
| 22639 | LIBOBJS=$ac_libobjs |
| 22640 | |
| 22641 | LTLIBOBJS=$ac_ltlibobjs |
| 22642 | |
| 22643 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 22644 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22645 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 22646 | Usually this means the macro was only invoked conditionally." >&5 |
| 22647 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 22648 | Usually this means the macro was only invoked conditionally." >&2;} |
| 22649 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 22650 | fi |
| 22651 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22652 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 22653 | Usually this means the macro was only invoked conditionally." >&5 |
| 22654 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 22655 | Usually this means the macro was only invoked conditionally." >&2;} |
| 22656 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 22657 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22658 | |
| 22659 | : ${CONFIG_STATUS=./config.status} |
| 22660 | ac_clean_files_save=$ac_clean_files |
| 22661 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22662 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 22663 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 22664 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22665 | #! $SHELL |
| 22666 | # Generated by $as_me. |
| 22667 | # Run this file to recreate the current configuration. |
| 22668 | # Compiler output produced by configure, useful for debugging |
| 22669 | # configure, is in config.log if it exists. |
| 22670 | |
| 22671 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22672 | ac_cs_recheck=false |
| 22673 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22674 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22675 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22676 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22677 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22678 | ## --------------------- ## |
| 22679 | ## M4sh Initialization. ## |
| 22680 | ## --------------------- ## |
| 22681 | |
| 22682 | # Be Bourne compatible |
| 22683 | 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] | 22684 | emulate sh |
| 22685 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22686 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22687 | # is contrary to our usage. Disable this feature. |
| 22688 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22689 | setopt NO_GLOB_SUBST |
| 22690 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22691 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22692 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22693 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 22694 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22695 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22696 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22697 | # PATH needs CR |
| 22698 | # Avoid depending upon Character Ranges. |
| 22699 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 22700 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 22701 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 22702 | as_cr_digits='0123456789' |
| 22703 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22704 | |
| 22705 | # The user is always right. |
| 22706 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22707 | echo "#! /bin/sh" >conf$$.sh |
| 22708 | echo "exit 0" >>conf$$.sh |
| 22709 | chmod +x conf$$.sh |
| 22710 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 22711 | PATH_SEPARATOR=';' |
| 22712 | else |
| 22713 | PATH_SEPARATOR=: |
| 22714 | fi |
| 22715 | rm -f conf$$.sh |
| 22716 | fi |
| 22717 | |
| 22718 | # Support unset when possible. |
| 22719 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 22720 | as_unset=unset |
| 22721 | else |
| 22722 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22723 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22724 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22725 | |
| 22726 | # IFS |
| 22727 | # We need space, tab and new line, in precisely that order. Quoting is |
| 22728 | # there to prevent editors from complaining about space-tab. |
| 22729 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 22730 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22731 | as_nl=' |
| 22732 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22733 | IFS=" "" $as_nl" |
| 22734 | |
| 22735 | # 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] | 22736 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22737 | *[\\/]* ) as_myself=$0 ;; |
| 22738 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22739 | for as_dir in $PATH |
| 22740 | do |
| 22741 | IFS=$as_save_IFS |
| 22742 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22743 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 22744 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22745 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22746 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22747 | ;; |
| 22748 | esac |
| 22749 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 22750 | # in which case we are not to be found in the path. |
| 22751 | if test "x$as_myself" = x; then |
| 22752 | as_myself=$0 |
| 22753 | fi |
| 22754 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22755 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 22756 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22757 | fi |
| 22758 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22759 | # Work around bugs in pre-3.0 UWIN ksh. |
| 22760 | for as_var in ENV MAIL MAILPATH |
| 22761 | 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] | 22762 | done |
| 22763 | PS1='$ ' |
| 22764 | PS2='> ' |
| 22765 | PS4='+ ' |
| 22766 | |
| 22767 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22768 | for as_var in \ |
| 22769 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 22770 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 22771 | LC_TELEPHONE LC_TIME |
| 22772 | do |
| 22773 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 22774 | eval $as_var=C; export $as_var |
| 22775 | else |
| 22776 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 22777 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22778 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 22779 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22780 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22781 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 22782 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 22783 | as_expr=expr |
| 22784 | else |
| 22785 | as_expr=false |
| 22786 | fi |
| 22787 | |
| 22788 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 22789 | as_basename=basename |
| 22790 | else |
| 22791 | as_basename=false |
| 22792 | fi |
| 22793 | |
| 22794 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22795 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22796 | as_me=`$as_basename -- "$0" || |
| 22797 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 22798 | X"$0" : 'X\(//\)$' \| \ |
| 22799 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22800 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22801 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 22802 | s//\1/ |
| 22803 | q |
| 22804 | } |
| 22805 | /^X\/\(\/\/\)$/{ |
| 22806 | s//\1/ |
| 22807 | q |
| 22808 | } |
| 22809 | /^X\/\(\/\).*/{ |
| 22810 | s//\1/ |
| 22811 | q |
| 22812 | } |
| 22813 | s/.*/./; q'` |
| 22814 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22815 | # CDPATH. |
| 22816 | $as_unset CDPATH |
| 22817 | |
| 22818 | |
| 22819 | |
| 22820 | as_lineno_1=$LINENO |
| 22821 | as_lineno_2=$LINENO |
| 22822 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 22823 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 22824 | |
| 22825 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 22826 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 22827 | # line-number line after each line using $LINENO; the second 'sed' |
| 22828 | # does the real work. The second script uses 'N' to pair each |
| 22829 | # line-number line with the line containing $LINENO, and appends |
| 22830 | # trailing '-' during substitution so that $LINENO is not a special |
| 22831 | # case at line end. |
| 22832 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 22833 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 22834 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 22835 | sed -n ' |
| 22836 | p |
| 22837 | /[$]LINENO/= |
| 22838 | ' <$as_myself | |
| 22839 | sed ' |
| 22840 | s/[$]LINENO.*/&-/ |
| 22841 | t lineno |
| 22842 | b |
| 22843 | :lineno |
| 22844 | N |
| 22845 | :loop |
| 22846 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 22847 | t loop |
| 22848 | s/-\n.*// |
| 22849 | ' >$as_me.lineno && |
| 22850 | chmod +x "$as_me.lineno" || |
| 22851 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 22852 | { (exit 1); exit 1; }; } |
| 22853 | |
| 22854 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 22855 | # (the dirname of $[0] is not the place where we might find the |
| 22856 | # original and so on. Autoconf is especially sensitive to this). |
| 22857 | . "./$as_me.lineno" |
| 22858 | # Exit status is that of the last command. |
| 22859 | exit |
| 22860 | } |
| 22861 | |
| 22862 | |
| 22863 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 22864 | as_dirname=dirname |
| 22865 | else |
| 22866 | as_dirname=false |
| 22867 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22868 | |
| 22869 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22870 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22871 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22872 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22873 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22874 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22875 | esac;; |
| 22876 | *) |
| 22877 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22878 | esac |
| 22879 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22880 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 22881 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 22882 | as_expr=expr |
| 22883 | else |
| 22884 | as_expr=false |
| 22885 | fi |
| 22886 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22887 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22888 | if test -d conf$$.dir; then |
| 22889 | rm -f conf$$.dir/conf$$.file |
| 22890 | else |
| 22891 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22892 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22893 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22894 | echo >conf$$.file |
| 22895 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 22896 | as_ln_s='ln -s' |
| 22897 | # ... but there are two gotchas: |
| 22898 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 22899 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 22900 | # In both cases, we have to default to `cp -p'. |
| 22901 | 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] | 22902 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22903 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 22904 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22905 | else |
| 22906 | as_ln_s='cp -p' |
| 22907 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22908 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 22909 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22910 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22911 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22912 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22913 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22914 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22915 | as_mkdir_p=false |
| 22916 | fi |
| 22917 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22918 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 22919 | # systems may use methods other than mode bits to determine executability. |
| 22920 | cat >conf$$.file <<_ASEOF |
| 22921 | #! /bin/sh |
| 22922 | exit 0 |
| 22923 | _ASEOF |
| 22924 | chmod +x conf$$.file |
| 22925 | if test -x conf$$.file >/dev/null 2>&1; then |
| 22926 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22927 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22928 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22929 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22930 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22931 | |
| 22932 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22933 | 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] | 22934 | |
| 22935 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22936 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22937 | |
| 22938 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22939 | exec 6>&1 |
| 22940 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22941 | # 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] | 22942 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22943 | # values after options handling. |
| 22944 | ac_log=" |
Eric Christopher | b26697c | 2010-09-06 18:47:10 +0000 | [diff] [blame] | 22945 | This file was extended by llvm $as_me 2.9svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22946 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22947 | |
| 22948 | CONFIG_FILES = $CONFIG_FILES |
| 22949 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 22950 | CONFIG_LINKS = $CONFIG_LINKS |
| 22951 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 22952 | $ $0 $@ |
| 22953 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22954 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 22955 | " |
| 22956 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22957 | _ACEOF |
| 22958 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22959 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22960 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22961 | config_files="$ac_config_files" |
| 22962 | config_headers="$ac_config_headers" |
| 22963 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22964 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22965 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22966 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22967 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22968 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22969 | \`$as_me' instantiates files from templates according to the |
| 22970 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22971 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22972 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22973 | |
| 22974 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22975 | -V, --version print version number, then exit |
| 22976 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22977 | -d, --debug don't remove temporary files |
| 22978 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22979 | --file=FILE[:TEMPLATE] |
| 22980 | instantiate the configuration file FILE |
| 22981 | --header=FILE[:TEMPLATE] |
| 22982 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22983 | |
| 22984 | Configuration files: |
| 22985 | $config_files |
| 22986 | |
| 22987 | Configuration headers: |
| 22988 | $config_headers |
| 22989 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22990 | Configuration commands: |
| 22991 | $config_commands |
| 22992 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22993 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22994 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22995 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22996 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22997 | ac_cs_version="\\ |
Eric Christopher | b26697c | 2010-09-06 18:47:10 +0000 | [diff] [blame] | 22998 | llvm config.status 2.9svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22999 | configured by $0, generated by GNU Autoconf 2.60, |
| 23000 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23001 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23002 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23003 | This config.status script is free software; the Free Software Foundation |
| 23004 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23005 | |
| 23006 | ac_pwd='$ac_pwd' |
| 23007 | srcdir='$srcdir' |
| 23008 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23009 | _ACEOF |
| 23010 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23011 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23012 | # If no file are specified by the user, then we need to provide default |
| 23013 | # 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] | 23014 | ac_need_defaults=: |
| 23015 | while test $# != 0 |
| 23016 | do |
| 23017 | case $1 in |
| 23018 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23019 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 23020 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23021 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23022 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23023 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23024 | ac_option=$1 |
| 23025 | ac_optarg=$2 |
| 23026 | ac_shift=shift |
| 23027 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23028 | esac |
| 23029 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23030 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23031 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23032 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 23033 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23034 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23035 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23036 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23037 | debug=: ;; |
| 23038 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23039 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23040 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23041 | ac_need_defaults=false;; |
| 23042 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23043 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23044 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23045 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23046 | --he | --h) |
| 23047 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23048 | { echo "$as_me: error: ambiguous option: $1 |
| 23049 | Try \`$0 --help' for more information." >&2 |
| 23050 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23051 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23052 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23053 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 23054 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 23055 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23056 | |
| 23057 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23058 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 23059 | Try \`$0 --help' for more information." >&2 |
| 23060 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23061 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23062 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23063 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23064 | |
| 23065 | esac |
| 23066 | shift |
| 23067 | done |
| 23068 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23069 | ac_configure_extra_args= |
| 23070 | |
| 23071 | if $ac_cs_silent; then |
| 23072 | exec 6>/dev/null |
| 23073 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 23074 | fi |
| 23075 | |
| 23076 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23077 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23078 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23079 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 23080 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23081 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23082 | 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] | 23083 | fi |
| 23084 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23085 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23086 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23087 | exec 5>>config.log |
| 23088 | { |
| 23089 | echo |
| 23090 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 23091 | ## Running $as_me. ## |
| 23092 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23093 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23094 | } >&5 |
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 | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23098 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23099 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23100 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 23101 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23102 | |
| 23103 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23104 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23105 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23106 | |
| 23107 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23108 | for ac_config_target in $ac_config_targets |
| 23109 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23110 | case $ac_config_target in |
| 23111 | "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] | 23112 | "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] | 23113 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 23114 | "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] | 23115 | "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] | 23116 | "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] | 23117 | "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] | 23118 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 23119 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Mikhail Glushenkov | 4b643c0 | 2010-08-15 07:07:17 +0000 | [diff] [blame] | 23120 | "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] | 23121 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 23122 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 23123 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 23124 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 23125 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 23126 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 23127 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23128 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 23129 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 23130 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23131 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 23132 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 23133 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 23134 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 23135 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23136 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23137 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 23138 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 23139 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23140 | esac |
| 23141 | done |
| 23142 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23143 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23144 | # If the user did not use the arguments to specify the items to instantiate, |
| 23145 | # then the envvar interface is used. Set only those that are not. |
| 23146 | # We use the long form for the default assignment because of an extremely |
| 23147 | # bizarre bug on SunOS 4.1.3. |
| 23148 | if $ac_need_defaults; then |
| 23149 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 23150 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23151 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23152 | fi |
| 23153 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23154 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23155 | # 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] | 23156 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23157 | # Hook for its removal unless debugging. |
| 23158 | # Note that there is a small window in which the directory will not be cleaned: |
| 23159 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23160 | $debug || |
| 23161 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23162 | tmp= |
| 23163 | trap 'exit_status=$? |
| 23164 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 23165 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23166 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23167 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23168 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23169 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23170 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23171 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23172 | test -n "$tmp" && test -d "$tmp" |
| 23173 | } || |
| 23174 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23175 | tmp=./conf$$-$RANDOM |
| 23176 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23177 | } || |
| 23178 | { |
| 23179 | echo "$me: cannot create a temporary directory in ." >&2 |
| 23180 | { (exit 1); exit 1; } |
| 23181 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23182 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23183 | # |
| 23184 | # Set up the sed scripts for CONFIG_FILES section. |
| 23185 | # |
| 23186 | |
| 23187 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 23188 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23189 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23190 | |
| 23191 | _ACEOF |
| 23192 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23193 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23194 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23195 | ac_delim='%!_!# ' |
| 23196 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23197 | cat >conf$$subs.sed <<_ACEOF |
| 23198 | SHELL!$SHELL$ac_delim |
| 23199 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 23200 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 23201 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 23202 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 23203 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 23204 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 23205 | exec_prefix!$exec_prefix$ac_delim |
| 23206 | prefix!$prefix$ac_delim |
| 23207 | program_transform_name!$program_transform_name$ac_delim |
| 23208 | bindir!$bindir$ac_delim |
| 23209 | sbindir!$sbindir$ac_delim |
| 23210 | libexecdir!$libexecdir$ac_delim |
| 23211 | datarootdir!$datarootdir$ac_delim |
| 23212 | datadir!$datadir$ac_delim |
| 23213 | sysconfdir!$sysconfdir$ac_delim |
| 23214 | sharedstatedir!$sharedstatedir$ac_delim |
| 23215 | localstatedir!$localstatedir$ac_delim |
| 23216 | includedir!$includedir$ac_delim |
| 23217 | oldincludedir!$oldincludedir$ac_delim |
| 23218 | docdir!$docdir$ac_delim |
| 23219 | infodir!$infodir$ac_delim |
| 23220 | htmldir!$htmldir$ac_delim |
| 23221 | dvidir!$dvidir$ac_delim |
| 23222 | pdfdir!$pdfdir$ac_delim |
| 23223 | psdir!$psdir$ac_delim |
| 23224 | libdir!$libdir$ac_delim |
| 23225 | localedir!$localedir$ac_delim |
| 23226 | mandir!$mandir$ac_delim |
| 23227 | DEFS!$DEFS$ac_delim |
| 23228 | ECHO_C!$ECHO_C$ac_delim |
| 23229 | ECHO_N!$ECHO_N$ac_delim |
| 23230 | ECHO_T!$ECHO_T$ac_delim |
| 23231 | LIBS!$LIBS$ac_delim |
| 23232 | build_alias!$build_alias$ac_delim |
| 23233 | host_alias!$host_alias$ac_delim |
| 23234 | target_alias!$target_alias$ac_delim |
| 23235 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 23236 | subdirs!$subdirs$ac_delim |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 23237 | ENABLE_POLLY!$ENABLE_POLLY$ac_delim |
| 23238 | LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23239 | build!$build$ac_delim |
| 23240 | build_cpu!$build_cpu$ac_delim |
| 23241 | build_vendor!$build_vendor$ac_delim |
| 23242 | build_os!$build_os$ac_delim |
| 23243 | host!$host$ac_delim |
| 23244 | host_cpu!$host_cpu$ac_delim |
| 23245 | host_vendor!$host_vendor$ac_delim |
| 23246 | host_os!$host_os$ac_delim |
| 23247 | target!$target$ac_delim |
| 23248 | target_cpu!$target_cpu$ac_delim |
| 23249 | target_vendor!$target_vendor$ac_delim |
| 23250 | target_os!$target_os$ac_delim |
| 23251 | OS!$OS$ac_delim |
| 23252 | HOST_OS!$HOST_OS$ac_delim |
| 23253 | TARGET_OS!$TARGET_OS$ac_delim |
| 23254 | LINKALL!$LINKALL$ac_delim |
| 23255 | NOLINKALL!$NOLINKALL$ac_delim |
| 23256 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 23257 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 23258 | ARCH!$ARCH$ac_delim |
| 23259 | ENDIAN!$ENDIAN$ac_delim |
| 23260 | CC!$CC$ac_delim |
| 23261 | CFLAGS!$CFLAGS$ac_delim |
| 23262 | LDFLAGS!$LDFLAGS$ac_delim |
| 23263 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 23264 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 23265 | EXEEXT!$EXEEXT$ac_delim |
| 23266 | OBJEXT!$OBJEXT$ac_delim |
| 23267 | CPP!$CPP$ac_delim |
| 23268 | GREP!$GREP$ac_delim |
| 23269 | EGREP!$EGREP$ac_delim |
| 23270 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 23271 | BUILD_CC!$BUILD_CC$ac_delim |
| 23272 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 23273 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 23274 | CVSBUILD!$CVSBUILD$ac_delim |
| 23275 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 23276 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 23277 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 23278 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 23279 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 23280 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 23281 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 23282 | JIT!$JIT$ac_delim |
| 23283 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 23284 | ENABLE_DOCS!$ENABLE_DOCS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23285 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 23286 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 23287 | ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23288 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 23289 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 23290 | ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 23291 | ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23292 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 23293 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 23294 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23295 | _ACEOF |
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 | 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] | 23298 | break |
| 23299 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23300 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 23301 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 23302 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23303 | else |
| 23304 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23305 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23306 | done |
| 23307 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23308 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 23309 | if test -n "$ac_eof"; then |
| 23310 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 23311 | ac_eof=`expr $ac_eof + 1` |
| 23312 | fi |
| 23313 | |
| 23314 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23315 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 23316 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23317 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23318 | sed ' |
| 23319 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 23320 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 23321 | :n |
| 23322 | t n |
| 23323 | s/'"$ac_delim"'$/,g/; t |
| 23324 | s/$/\\/; p |
| 23325 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 23326 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 23327 | rm -f conf$$subs.sed |
| 23328 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23329 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23330 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23331 | |
| 23332 | |
| 23333 | ac_delim='%!_!# ' |
| 23334 | for ac_last_try in false false false false false :; do |
| 23335 | cat >conf$$subs.sed <<_ACEOF |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 23336 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 23337 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 23338 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 23339 | CLANGPATH!$CLANGPATH$ac_delim |
| 23340 | CLANGXXPATH!$CLANGXXPATH$ac_delim |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 23341 | ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 23342 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 23343 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 23344 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23345 | CXX!$CXX$ac_delim |
| 23346 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 23347 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 23348 | NM!$NM$ac_delim |
| 23349 | ifGNUmake!$ifGNUmake$ac_delim |
| 23350 | LN_S!$LN_S$ac_delim |
| 23351 | CMP!$CMP$ac_delim |
| 23352 | CP!$CP$ac_delim |
| 23353 | DATE!$DATE$ac_delim |
| 23354 | FIND!$FIND$ac_delim |
| 23355 | MKDIR!$MKDIR$ac_delim |
| 23356 | MV!$MV$ac_delim |
| 23357 | RANLIB!$RANLIB$ac_delim |
| 23358 | AR!$AR$ac_delim |
| 23359 | RM!$RM$ac_delim |
| 23360 | SED!$SED$ac_delim |
| 23361 | TAR!$TAR$ac_delim |
| 23362 | BINPWD!$BINPWD$ac_delim |
| 23363 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 23364 | DOT!$DOT$ac_delim |
| 23365 | FDP!$FDP$ac_delim |
| 23366 | NEATO!$NEATO$ac_delim |
| 23367 | TWOPI!$TWOPI$ac_delim |
| 23368 | CIRCO!$CIRCO$ac_delim |
| 23369 | GV!$GV$ac_delim |
| 23370 | DOTTY!$DOTTY$ac_delim |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 23371 | XDOT_PY!$XDOT_PY$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23372 | PERL!$PERL$ac_delim |
| 23373 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 23374 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 23375 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 23376 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 23377 | BZIP2!$BZIP2$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 23378 | CAT!$CAT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23379 | DOXYGEN!$DOXYGEN$ac_delim |
| 23380 | GROFF!$GROFF$ac_delim |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 23381 | GZIPBIN!$GZIPBIN$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23382 | POD2HTML!$POD2HTML$ac_delim |
| 23383 | POD2MAN!$POD2MAN$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 23384 | PDFROFF!$PDFROFF$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23385 | RUNTEST!$RUNTEST$ac_delim |
| 23386 | TCLSH!$TCLSH$ac_delim |
| 23387 | ZIP!$ZIP$ac_delim |
| 23388 | OCAMLC!$OCAMLC$ac_delim |
| 23389 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 23390 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 23391 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 23392 | GAS!$GAS$ac_delim |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 23393 | HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23394 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 23395 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 23396 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 23397 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 23398 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 23399 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 23400 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
| 23401 | LLVMGCC!$LLVMGCC$ac_delim |
| 23402 | LLVMGXX!$LLVMGXX$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 23403 | LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23404 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 23405 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
| 23406 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 23407 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 23408 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 23409 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 23410 | MMAP_FILE!$MMAP_FILE$ac_delim |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 23411 | LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23412 | LLVMCC1!$LLVMCC1$ac_delim |
| 23413 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 23414 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23415 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 23416 | LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 23417 | LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23418 | SHLIBEXT!$SHLIBEXT$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 23419 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23420 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 23421 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 23422 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 23423 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 23424 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 23425 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 23426 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 23427 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 23428 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 23429 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 23430 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 23431 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
| 23432 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23433 | _ACEOF |
| 23434 | |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 23435 | 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] | 23436 | break |
| 23437 | elif $ac_last_try; then |
| 23438 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 23439 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 23440 | { (exit 1); exit 1; }; } |
| 23441 | else |
| 23442 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 23443 | fi |
| 23444 | done |
| 23445 | |
| 23446 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 23447 | if test -n "$ac_eof"; then |
| 23448 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 23449 | ac_eof=`expr $ac_eof + 1` |
| 23450 | fi |
| 23451 | |
| 23452 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23453 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 23454 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23455 | _ACEOF |
| 23456 | sed ' |
| 23457 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 23458 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 23459 | :n |
| 23460 | t n |
| 23461 | s/'"$ac_delim"'$/,g/; t |
| 23462 | s/$/\\/; p |
| 23463 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 23464 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 23465 | rm -f conf$$subs.sed |
| 23466 | cat >>$CONFIG_STATUS <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23467 | CEOF$ac_eof |
| 23468 | _ACEOF |
| 23469 | |
| 23470 | |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 23471 | ac_delim='%!_!# ' |
| 23472 | for ac_last_try in false false false false false :; do |
| 23473 | cat >conf$$subs.sed <<_ACEOF |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 23474 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 23475 | RPATH!$RPATH$ac_delim |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 23476 | RDYNAMIC!$RDYNAMIC$ac_delim |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 23477 | LIBOBJS!$LIBOBJS$ac_delim |
| 23478 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 23479 | _ACEOF |
| 23480 | |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 23481 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 23482 | break |
| 23483 | elif $ac_last_try; then |
| 23484 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 23485 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 23486 | { (exit 1); exit 1; }; } |
| 23487 | else |
| 23488 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 23489 | fi |
| 23490 | done |
| 23491 | |
| 23492 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 23493 | if test -n "$ac_eof"; then |
| 23494 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 23495 | ac_eof=`expr $ac_eof + 1` |
| 23496 | fi |
| 23497 | |
| 23498 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23499 | cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof |
| 23500 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 23501 | _ACEOF |
| 23502 | sed ' |
| 23503 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 23504 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 23505 | :n |
| 23506 | t n |
| 23507 | s/'"$ac_delim"'$/,g/; t |
| 23508 | s/$/\\/; p |
| 23509 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 23510 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 23511 | rm -f conf$$subs.sed |
| 23512 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23513 | :end |
| 23514 | s/|#_!!_#|//g |
| 23515 | CEOF$ac_eof |
| 23516 | _ACEOF |
| 23517 | |
| 23518 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23519 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 23520 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 23521 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 23522 | # (actually we leave an empty line to preserve line numbers). |
| 23523 | if test "x$srcdir" = x.; then |
| 23524 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 23525 | s/:*\$(srcdir):*/:/ |
| 23526 | s/:*\${srcdir}:*/:/ |
| 23527 | s/:*@srcdir@:*/:/ |
| 23528 | s/^\([^=]*=[ ]*\):*/\1/ |
| 23529 | s/:*$// |
| 23530 | s/^[^=]*=[ ]*$// |
| 23531 | }' |
| 23532 | fi |
| 23533 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23534 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23535 | fi # test -n "$CONFIG_FILES" |
| 23536 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23537 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23538 | 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] | 23539 | do |
| 23540 | case $ac_tag in |
| 23541 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 23542 | esac |
| 23543 | case $ac_mode$ac_tag in |
| 23544 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23545 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 23546 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 23547 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23548 | :[FH]-) ac_tag=-:-;; |
| 23549 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 23550 | esac |
| 23551 | ac_save_IFS=$IFS |
| 23552 | IFS=: |
| 23553 | set x $ac_tag |
| 23554 | IFS=$ac_save_IFS |
| 23555 | shift |
| 23556 | ac_file=$1 |
| 23557 | shift |
| 23558 | |
| 23559 | case $ac_mode in |
| 23560 | :L) ac_source=$1;; |
| 23561 | :[FH]) |
| 23562 | ac_file_inputs= |
| 23563 | for ac_f |
| 23564 | do |
| 23565 | case $ac_f in |
| 23566 | -) ac_f="$tmp/stdin";; |
| 23567 | *) # Look for the file first in the build tree, then in the source tree |
| 23568 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 23569 | # because $ac_f cannot contain `:'. |
| 23570 | test -f "$ac_f" || |
| 23571 | case $ac_f in |
| 23572 | [\\/$]*) false;; |
| 23573 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 23574 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23575 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 23576 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 23577 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23578 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23579 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23580 | done |
| 23581 | |
| 23582 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 23583 | # use $as_me), people would be surprised to read: |
| 23584 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23585 | configure_input="Generated from "`IFS=: |
| 23586 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23587 | if test x"$ac_file" != x-; then |
| 23588 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23589 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 23590 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23591 | fi |
| 23592 | |
| 23593 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23594 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23595 | esac |
| 23596 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23597 | esac |
| 23598 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23599 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23600 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23601 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 23602 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23603 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23604 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23605 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 23606 | s//\1/ |
| 23607 | q |
| 23608 | } |
| 23609 | /^X\(\/\/\)[^/].*/{ |
| 23610 | s//\1/ |
| 23611 | q |
| 23612 | } |
| 23613 | /^X\(\/\/\)$/{ |
| 23614 | s//\1/ |
| 23615 | q |
| 23616 | } |
| 23617 | /^X\(\/\).*/{ |
| 23618 | s//\1/ |
| 23619 | q |
| 23620 | } |
| 23621 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23622 | { as_dir="$ac_dir" |
| 23623 | case $as_dir in #( |
| 23624 | -*) as_dir=./$as_dir;; |
| 23625 | esac |
| 23626 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 23627 | as_dirs= |
| 23628 | while :; do |
| 23629 | case $as_dir in #( |
| 23630 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 23631 | *) as_qdir=$as_dir;; |
| 23632 | esac |
| 23633 | as_dirs="'$as_qdir' $as_dirs" |
| 23634 | as_dir=`$as_dirname -- "$as_dir" || |
| 23635 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23636 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23637 | X"$as_dir" : 'X\(//\)$' \| \ |
| 23638 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 23639 | echo X"$as_dir" | |
| 23640 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 23641 | s//\1/ |
| 23642 | q |
| 23643 | } |
| 23644 | /^X\(\/\/\)[^/].*/{ |
| 23645 | s//\1/ |
| 23646 | q |
| 23647 | } |
| 23648 | /^X\(\/\/\)$/{ |
| 23649 | s//\1/ |
| 23650 | q |
| 23651 | } |
| 23652 | /^X\(\/\).*/{ |
| 23653 | s//\1/ |
| 23654 | q |
| 23655 | } |
| 23656 | s/.*/./; q'` |
| 23657 | test -d "$as_dir" && break |
| 23658 | done |
| 23659 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 23660 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 23661 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 23662 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23663 | ac_builddir=. |
| 23664 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23665 | case "$ac_dir" in |
| 23666 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 23667 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23668 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23669 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23670 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23671 | case $ac_top_builddir_sub in |
| 23672 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 23673 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 23674 | esac ;; |
| 23675 | esac |
| 23676 | ac_abs_top_builddir=$ac_pwd |
| 23677 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 23678 | # for backward compatibility: |
| 23679 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23680 | |
| 23681 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23682 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23683 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23684 | ac_top_srcdir=$ac_top_builddir_sub |
| 23685 | ac_abs_top_srcdir=$ac_pwd ;; |
| 23686 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23687 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23688 | ac_top_srcdir=$srcdir |
| 23689 | ac_abs_top_srcdir=$srcdir ;; |
| 23690 | *) # Relative name. |
| 23691 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 23692 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 23693 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23694 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23695 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23696 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23697 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23698 | case $ac_mode in |
| 23699 | :F) |
| 23700 | # |
| 23701 | # CONFIG_FILE |
| 23702 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23703 | |
| 23704 | case $INSTALL in |
| 23705 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23706 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23707 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23708 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23709 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23710 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23711 | # If the template does not know about datarootdir, expand it. |
| 23712 | # FIXME: This hack should be removed a few years after 2.60. |
| 23713 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23714 | |
| 23715 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23716 | p |
| 23717 | q |
| 23718 | } |
| 23719 | /@datadir@/p |
| 23720 | /@docdir@/p |
| 23721 | /@infodir@/p |
| 23722 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23723 | /@mandir@/p |
| 23724 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23725 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 23726 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23727 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 23728 | 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] | 23729 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23730 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23731 | ac_datarootdir_hack=' |
| 23732 | s&@datadir@&$datadir&g |
| 23733 | s&@docdir@&$docdir&g |
| 23734 | s&@infodir@&$infodir&g |
| 23735 | s&@localedir@&$localedir&g |
| 23736 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23737 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23738 | esac |
| 23739 | _ACEOF |
| 23740 | |
| 23741 | # Neutralize VPATH when `$srcdir' = `.'. |
| 23742 | # Shell code in configure.ac might set extrasub. |
| 23743 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23744 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23745 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23746 | $extrasub |
| 23747 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23748 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23749 | :t |
| 23750 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23751 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23752 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 23753 | s&@srcdir@&$ac_srcdir&;t t |
| 23754 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 23755 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 23756 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 23757 | s&@builddir@&$ac_builddir&;t t |
| 23758 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 23759 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 23760 | s&@INSTALL@&$ac_INSTALL&;t t |
| 23761 | $ac_datarootdir_hack |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 23762 | " $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] | 23763 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23764 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 23765 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 23766 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23767 | { 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] | 23768 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23769 | 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] | 23770 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23771 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23772 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23773 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23774 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 23775 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 23776 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23777 | ;; |
| 23778 | :H) |
| 23779 | # |
| 23780 | # CONFIG_HEADER |
| 23781 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23782 | _ACEOF |
| 23783 | |
| 23784 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 23785 | # substitutes the proper values into config.h.in to produce config.h. |
| 23786 | rm -f conftest.defines conftest.tail |
| 23787 | # First, append a space to every undef/define line, to ease matching. |
| 23788 | echo 's/$/ /' >conftest.defines |
| 23789 | # Then, protect against being on the right side of a sed subst, or in |
| 23790 | # an unquoted here document, in config.status. If some macros were |
| 23791 | # called several times there might be several #defines for the same |
| 23792 | # symbol, which is useless. But do not sort them, since the last |
| 23793 | # AC_DEFINE must be honored. |
| 23794 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 23795 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 23796 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 23797 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 23798 | # just an empty string. |
| 23799 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 23800 | ac_dB='\\)[ (].*,\\1define\\2' |
| 23801 | ac_dC=' ' |
| 23802 | ac_dD=' ,' |
| 23803 | |
| 23804 | uniq confdefs.h | |
| 23805 | sed -n ' |
| 23806 | t rset |
| 23807 | :rset |
| 23808 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 23809 | t ok |
| 23810 | d |
| 23811 | :ok |
| 23812 | s/[\\&,]/\\&/g |
| 23813 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 23814 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 23815 | ' >>conftest.defines |
| 23816 | |
| 23817 | # Remove the space that was appended to ease matching. |
| 23818 | # Then replace #undef with comments. This is necessary, for |
| 23819 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 23820 | # on some systems where configure will not decide to define it. |
| 23821 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 23822 | echo 's/ $// |
| 23823 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 23824 | |
| 23825 | # Break up conftest.defines: |
| 23826 | ac_max_sed_lines=50 |
| 23827 | |
| 23828 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 23829 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 23830 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 23831 | # et cetera. |
| 23832 | ac_in='$ac_file_inputs' |
| 23833 | ac_out='"$tmp/out1"' |
| 23834 | ac_nxt='"$tmp/out2"' |
| 23835 | |
| 23836 | while : |
| 23837 | do |
| 23838 | # Write a here document: |
| 23839 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23840 | # First, check the format of the line: |
| 23841 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 23842 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 23843 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 23844 | b |
| 23845 | :def |
| 23846 | _ACEOF |
| 23847 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 23848 | echo 'CEOF |
| 23849 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 23850 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 23851 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 23852 | grep . conftest.tail >/dev/null || break |
| 23853 | rm -f conftest.defines |
| 23854 | mv conftest.tail conftest.defines |
| 23855 | done |
| 23856 | rm -f conftest.defines conftest.tail |
| 23857 | |
| 23858 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 23859 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23860 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23861 | echo "/* $configure_input */" >"$tmp/config.h" |
| 23862 | cat "$ac_result" >>"$tmp/config.h" |
| 23863 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 23864 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 23865 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23866 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23867 | rm -f $ac_file |
| 23868 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23869 | fi |
| 23870 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23871 | echo "/* $configure_input */" |
| 23872 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23873 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23874 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23875 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23876 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23877 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 23878 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23879 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23880 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23881 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23882 | |
| 23883 | case $ac_file$ac_mode in |
| 23884 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 23885 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23886 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 23887 | ${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] | 23888 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 23889 | ${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] | 23890 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 23891 | ${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] | 23892 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 23893 | ${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] | 23894 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 23895 | ${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] | 23896 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 23897 | ${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] | 23898 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 23899 | ${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] | 23900 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 23901 | ${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] | 23902 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 23903 | ${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] | 23904 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 23905 | ${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] | 23906 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 23907 | ${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] | 23908 | "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] | 23909 | ${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] | 23910 | |
| 23911 | esac |
| 23912 | done # for ac_tag |
| 23913 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23914 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23915 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23916 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23917 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23918 | ac_clean_files=$ac_clean_files_save |
| 23919 | |
| 23920 | |
| 23921 | # configure is writing to config.log, and then calls config.status. |
| 23922 | # config.status does its own redirection, appending to config.log. |
| 23923 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 23924 | # by configure, so config.status won't be able to write to it; its |
| 23925 | # output is simply discarded. So we exec the FD to /dev/null, |
| 23926 | # effectively closing config.log, so it can be properly (re)opened and |
| 23927 | # appended to by config.status. When coming back to configure, we |
| 23928 | # need to make the FD available again. |
| 23929 | if test "$no_create" != yes; then |
| 23930 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23931 | ac_config_status_args= |
| 23932 | test "$silent" = yes && |
| 23933 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23934 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23935 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23936 | exec 5>>config.log |
| 23937 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 23938 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23939 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23940 | fi |
| 23941 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 23942 | # |
| 23943 | # CONFIG_SUBDIRS section. |
| 23944 | # |
| 23945 | if test "$no_recursion" != yes; then |
| 23946 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23947 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 23948 | ac_sub_configure_args= |
| 23949 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23950 | eval "set x $ac_configure_args" |
| 23951 | shift |
| 23952 | for ac_arg |
| 23953 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 23954 | if test -n "$ac_prev"; then |
| 23955 | ac_prev= |
| 23956 | continue |
| 23957 | fi |
| 23958 | case $ac_arg in |
| 23959 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 23960 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 23961 | ac_prev=cache_file ;; |
| 23962 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 23963 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 23964 | | --c=*) |
| 23965 | ;; |
| 23966 | --config-cache | -C) |
| 23967 | ;; |
| 23968 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 23969 | ac_prev=srcdir ;; |
| 23970 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 23971 | ;; |
| 23972 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 23973 | ac_prev=prefix ;; |
| 23974 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 23975 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23976 | *) |
| 23977 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23978 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23979 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23980 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 23981 | esac |
| 23982 | done |
| 23983 | |
| 23984 | # Always prepend --prefix to ensure using the same prefix |
| 23985 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23986 | ac_arg="--prefix=$prefix" |
| 23987 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23988 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23989 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 23990 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 23991 | |
| 23992 | ac_popdir=`pwd` |
| 23993 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 23994 | |
| 23995 | # Do not complain, so a configure script can configure whichever |
| 23996 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23997 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 23998 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23999 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24000 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 24001 | echo "$ac_msg" >&6 |
| 24002 | { as_dir="$ac_dir" |
| 24003 | case $as_dir in #( |
| 24004 | -*) as_dir=./$as_dir;; |
| 24005 | esac |
| 24006 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 24007 | as_dirs= |
| 24008 | while :; do |
| 24009 | case $as_dir in #( |
| 24010 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 24011 | *) as_qdir=$as_dir;; |
| 24012 | esac |
| 24013 | as_dirs="'$as_qdir' $as_dirs" |
| 24014 | as_dir=`$as_dirname -- "$as_dir" || |
| 24015 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24016 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 24017 | X"$as_dir" : 'X\(//\)$' \| \ |
| 24018 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 24019 | echo X"$as_dir" | |
| 24020 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24021 | s//\1/ |
| 24022 | q |
| 24023 | } |
| 24024 | /^X\(\/\/\)[^/].*/{ |
| 24025 | s//\1/ |
| 24026 | q |
| 24027 | } |
| 24028 | /^X\(\/\/\)$/{ |
| 24029 | s//\1/ |
| 24030 | q |
| 24031 | } |
| 24032 | /^X\(\/\).*/{ |
| 24033 | s//\1/ |
| 24034 | q |
| 24035 | } |
| 24036 | s/.*/./; q'` |
| 24037 | test -d "$as_dir" && break |
| 24038 | done |
| 24039 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 24040 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 24041 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 24042 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24043 | ac_builddir=. |
| 24044 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24045 | case "$ac_dir" in |
| 24046 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 24047 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24048 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24049 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24050 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24051 | case $ac_top_builddir_sub in |
| 24052 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 24053 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 24054 | esac ;; |
| 24055 | esac |
| 24056 | ac_abs_top_builddir=$ac_pwd |
| 24057 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 24058 | # for backward compatibility: |
| 24059 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24060 | |
| 24061 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24062 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24063 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24064 | ac_top_srcdir=$ac_top_builddir_sub |
| 24065 | ac_abs_top_srcdir=$ac_pwd ;; |
| 24066 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24067 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24068 | ac_top_srcdir=$srcdir |
| 24069 | ac_abs_top_srcdir=$srcdir ;; |
| 24070 | *) # Relative name. |
| 24071 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 24072 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 24073 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24074 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24075 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24076 | |
| 24077 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24078 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24079 | |
| 24080 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24081 | if test -f "$ac_srcdir/configure.gnu"; then |
| 24082 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 24083 | elif test -f "$ac_srcdir/configure"; then |
| 24084 | ac_sub_configure=$ac_srcdir/configure |
| 24085 | elif test -f "$ac_srcdir/configure.in"; then |
| 24086 | # This should be Cygnus configure. |
| 24087 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24088 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24089 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 24090 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24091 | ac_sub_configure= |
| 24092 | fi |
| 24093 | |
| 24094 | # The recursion is here. |
| 24095 | if test -n "$ac_sub_configure"; then |
| 24096 | # Make the cache file name correct relative to the subdirectory. |
| 24097 | case $cache_file in |
| 24098 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24099 | *) # Relative name. |
| 24100 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24101 | esac |
| 24102 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24103 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 24104 | 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] | 24105 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24106 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 24107 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 24108 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 24109 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 24110 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24111 | fi |
| 24112 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24113 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24114 | done |
| 24115 | fi |
| 24116 | |