John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 2.7svn. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 6 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11 | # |
Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13 | ## --------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## --------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17 | # Be Bourne compatible |
| 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19 | emulate sh |
| 20 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
| 25 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 28 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 29 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 32 | # PATH needs CR |
| 33 | # Avoid depending upon Character Ranges. |
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 37 | as_cr_digits='0123456789' |
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 39 | |
| 40 | # The user is always right. |
| 41 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 42 | echo "#! /bin/sh" >conf$$.sh |
| 43 | echo "exit 0" >>conf$$.sh |
| 44 | chmod +x conf$$.sh |
| 45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 46 | PATH_SEPARATOR=';' |
| 47 | else |
| 48 | PATH_SEPARATOR=: |
| 49 | fi |
| 50 | rm -f conf$$.sh |
| 51 | fi |
| 52 | |
| 53 | # Support unset when possible. |
| 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 55 | as_unset=unset |
| 56 | else |
| 57 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 58 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 59 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 60 | |
| 61 | # IFS |
| 62 | # We need space, tab and new line, in precisely that order. Quoting is |
| 63 | # there to prevent editors from complaining about space-tab. |
| 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 65 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 66 | as_nl=' |
| 67 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 68 | IFS=" "" $as_nl" |
| 69 | |
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 71 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 72 | *[\\/]* ) as_myself=$0 ;; |
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 74 | for as_dir in $PATH |
| 75 | do |
| 76 | IFS=$as_save_IFS |
| 77 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 79 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 80 | IFS=$as_save_IFS |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 81 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 82 | ;; |
| 83 | esac |
| 84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 85 | # in which case we are not to be found in the path. |
| 86 | if test "x$as_myself" = x; then |
| 87 | as_myself=$0 |
| 88 | fi |
| 89 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 91 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 92 | fi |
| 93 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 94 | # Work around bugs in pre-3.0 UWIN ksh. |
| 95 | for as_var in ENV MAIL MAILPATH |
| 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 103 | for as_var in \ |
| 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 106 | LC_TELEPHONE LC_TIME |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 107 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | eval $as_var=C; export $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 110 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 112 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 113 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 114 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 115 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 118 | as_expr=expr |
| 119 | else |
| 120 | as_expr=false |
| 121 | fi |
| 122 | |
| 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 124 | as_basename=basename |
| 125 | else |
| 126 | as_basename=false |
| 127 | fi |
| 128 | |
| 129 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 130 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 131 | as_me=`$as_basename -- "$0" || |
| 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
| 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 135 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\/\)$/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | /^X\/\(\/\).*/{ |
| 145 | s//\1/ |
| 146 | q |
| 147 | } |
| 148 | s/.*/./; q'` |
| 149 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 150 | # CDPATH. |
| 151 | $as_unset CDPATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 152 | |
| 153 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 154 | if test "x$CONFIG_SHELL" = x; then |
| 155 | if (eval ":") 2>/dev/null; then |
| 156 | as_have_required=yes |
| 157 | else |
| 158 | as_have_required=no |
| 159 | fi |
| 160 | |
| 161 | if test $as_have_required = yes && (eval ": |
| 162 | (as_func_return () { |
| 163 | (exit \$1) |
| 164 | } |
| 165 | as_func_success () { |
| 166 | as_func_return 0 |
| 167 | } |
| 168 | as_func_failure () { |
| 169 | as_func_return 1 |
| 170 | } |
| 171 | as_func_ret_success () { |
| 172 | return 0 |
| 173 | } |
| 174 | as_func_ret_failure () { |
| 175 | return 1 |
| 176 | } |
| 177 | |
| 178 | exitcode=0 |
| 179 | if as_func_success; then |
| 180 | : |
| 181 | else |
| 182 | exitcode=1 |
| 183 | echo as_func_success failed. |
| 184 | fi |
| 185 | |
| 186 | if as_func_failure; then |
| 187 | exitcode=1 |
| 188 | echo as_func_failure succeeded. |
| 189 | fi |
| 190 | |
| 191 | if as_func_ret_success; then |
| 192 | : |
| 193 | else |
| 194 | exitcode=1 |
| 195 | echo as_func_ret_success failed. |
| 196 | fi |
| 197 | |
| 198 | if as_func_ret_failure; then |
| 199 | exitcode=1 |
| 200 | echo as_func_ret_failure succeeded. |
| 201 | fi |
| 202 | |
| 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 204 | : |
| 205 | else |
| 206 | exitcode=1 |
| 207 | echo positional parameters were not saved. |
| 208 | fi |
| 209 | |
| 210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 211 | |
| 212 | ( |
| 213 | as_lineno_1=\$LINENO |
| 214 | as_lineno_2=\$LINENO |
| 215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 217 | ") 2> /dev/null; then |
| 218 | : |
| 219 | else |
| 220 | as_candidate_shells= |
| 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 222 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 223 | do |
| 224 | IFS=$as_save_IFS |
| 225 | test -z "$as_dir" && as_dir=. |
| 226 | case $as_dir in |
| 227 | /*) |
| 228 | for as_base in sh bash ksh sh5; do |
| 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 230 | done;; |
| 231 | esac |
| 232 | done |
| 233 | IFS=$as_save_IFS |
| 234 | |
| 235 | |
| 236 | for as_shell in $as_candidate_shells $SHELL; do |
| 237 | # Try only shells that exist, to save several forks. |
| 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 240 | # Be Bourne compatible |
| 241 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 242 | emulate sh |
| 243 | NULLCMD=: |
| 244 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 245 | # is contrary to our usage. Disable this feature. |
| 246 | alias -g '${1+"$@"}'='"$@"' |
| 247 | setopt NO_GLOB_SUBST |
| 248 | else |
| 249 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 250 | fi |
| 251 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 252 | DUALCASE=1; export DUALCASE # for MKS sh |
| 253 | |
| 254 | : |
| 255 | _ASEOF |
| 256 | }; then |
| 257 | CONFIG_SHELL=$as_shell |
| 258 | as_have_required=yes |
| 259 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 260 | # Be Bourne compatible |
| 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 262 | emulate sh |
| 263 | NULLCMD=: |
| 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 265 | # is contrary to our usage. Disable this feature. |
| 266 | alias -g '${1+"$@"}'='"$@"' |
| 267 | setopt NO_GLOB_SUBST |
| 268 | else |
| 269 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 270 | fi |
| 271 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 272 | DUALCASE=1; export DUALCASE # for MKS sh |
| 273 | |
| 274 | : |
| 275 | (as_func_return () { |
| 276 | (exit $1) |
| 277 | } |
| 278 | as_func_success () { |
| 279 | as_func_return 0 |
| 280 | } |
| 281 | as_func_failure () { |
| 282 | as_func_return 1 |
| 283 | } |
| 284 | as_func_ret_success () { |
| 285 | return 0 |
| 286 | } |
| 287 | as_func_ret_failure () { |
| 288 | return 1 |
| 289 | } |
| 290 | |
| 291 | exitcode=0 |
| 292 | if as_func_success; then |
| 293 | : |
| 294 | else |
| 295 | exitcode=1 |
| 296 | echo as_func_success failed. |
| 297 | fi |
| 298 | |
| 299 | if as_func_failure; then |
| 300 | exitcode=1 |
| 301 | echo as_func_failure succeeded. |
| 302 | fi |
| 303 | |
| 304 | if as_func_ret_success; then |
| 305 | : |
| 306 | else |
| 307 | exitcode=1 |
| 308 | echo as_func_ret_success failed. |
| 309 | fi |
| 310 | |
| 311 | if as_func_ret_failure; then |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_failure succeeded. |
| 314 | fi |
| 315 | |
| 316 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 317 | : |
| 318 | else |
| 319 | exitcode=1 |
| 320 | echo positional parameters were not saved. |
| 321 | fi |
| 322 | |
| 323 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 324 | |
| 325 | ( |
| 326 | as_lineno_1=$LINENO |
| 327 | as_lineno_2=$LINENO |
| 328 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 329 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 330 | |
| 331 | _ASEOF |
| 332 | }; then |
| 333 | break |
| 334 | fi |
| 335 | |
| 336 | fi |
| 337 | |
| 338 | done |
| 339 | |
| 340 | if test "x$CONFIG_SHELL" != x; then |
| 341 | for as_var in BASH_ENV ENV |
| 342 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 343 | done |
| 344 | export CONFIG_SHELL |
| 345 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 346 | fi |
| 347 | |
| 348 | |
| 349 | if test $as_have_required = no; then |
| 350 | echo This script requires a shell more modern than all the |
| 351 | echo shells that I found on your system. Please install a |
| 352 | echo modern shell, or manually run the script under such a |
| 353 | echo shell if you do have one. |
| 354 | { (exit 1); exit 1; } |
| 355 | fi |
| 356 | |
| 357 | |
| 358 | fi |
| 359 | |
| 360 | fi |
| 361 | |
| 362 | |
| 363 | |
| 364 | (eval "as_func_return () { |
| 365 | (exit \$1) |
| 366 | } |
| 367 | as_func_success () { |
| 368 | as_func_return 0 |
| 369 | } |
| 370 | as_func_failure () { |
| 371 | as_func_return 1 |
| 372 | } |
| 373 | as_func_ret_success () { |
| 374 | return 0 |
| 375 | } |
| 376 | as_func_ret_failure () { |
| 377 | return 1 |
| 378 | } |
| 379 | |
| 380 | exitcode=0 |
| 381 | if as_func_success; then |
| 382 | : |
| 383 | else |
| 384 | exitcode=1 |
| 385 | echo as_func_success failed. |
| 386 | fi |
| 387 | |
| 388 | if as_func_failure; then |
| 389 | exitcode=1 |
| 390 | echo as_func_failure succeeded. |
| 391 | fi |
| 392 | |
| 393 | if as_func_ret_success; then |
| 394 | : |
| 395 | else |
| 396 | exitcode=1 |
| 397 | echo as_func_ret_success failed. |
| 398 | fi |
| 399 | |
| 400 | if as_func_ret_failure; then |
| 401 | exitcode=1 |
| 402 | echo as_func_ret_failure succeeded. |
| 403 | fi |
| 404 | |
| 405 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 406 | : |
| 407 | else |
| 408 | exitcode=1 |
| 409 | echo positional parameters were not saved. |
| 410 | fi |
| 411 | |
| 412 | test \$exitcode = 0") || { |
| 413 | echo No shell found that supports shell functions. |
| 414 | echo Please tell autoconf@gnu.org about your system, |
| 415 | echo including any error possibly output before this |
| 416 | echo message |
| 417 | } |
| 418 | |
| 419 | |
| 420 | |
| 421 | as_lineno_1=$LINENO |
| 422 | as_lineno_2=$LINENO |
| 423 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 424 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 425 | |
| 426 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 427 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 428 | # line-number line after each line using $LINENO; the second 'sed' |
| 429 | # does the real work. The second script uses 'N' to pair each |
| 430 | # line-number line with the line containing $LINENO, and appends |
| 431 | # trailing '-' during substitution so that $LINENO is not a special |
| 432 | # case at line end. |
| 433 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 434 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 435 | # E. McMahon (1931-1989) for sed's syntax. :-) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 436 | sed -n ' |
| 437 | p |
| 438 | /[$]LINENO/= |
| 439 | ' <$as_myself | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 440 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 441 | s/[$]LINENO.*/&-/ |
| 442 | t lineno |
| 443 | b |
| 444 | :lineno |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 445 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 446 | :loop |
| 447 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 448 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 449 | s/-\n.*// |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 450 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 451 | chmod +x "$as_me.lineno" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 452 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 453 | { (exit 1); exit 1; }; } |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 454 | |
| 455 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 456 | # (the dirname of $[0] is not the place where we might find the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 457 | # original and so on. Autoconf is especially sensitive to this). |
| 458 | . "./$as_me.lineno" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 459 | # Exit status is that of the last command. |
| 460 | exit |
| 461 | } |
| 462 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 463 | |
| 464 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 465 | as_dirname=dirname |
| 466 | else |
| 467 | as_dirname=false |
| 468 | fi |
| 469 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 470 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 471 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 472 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 473 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 474 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 475 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 476 | esac;; |
| 477 | *) |
| 478 | ECHO_N='-n';; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 479 | esac |
| 480 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 481 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 482 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 483 | as_expr=expr |
| 484 | else |
| 485 | as_expr=false |
| 486 | fi |
| 487 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 488 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 489 | if test -d conf$$.dir; then |
| 490 | rm -f conf$$.dir/conf$$.file |
| 491 | else |
| 492 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 493 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 494 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 495 | echo >conf$$.file |
| 496 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 497 | as_ln_s='ln -s' |
| 498 | # ... but there are two gotchas: |
| 499 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 500 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 501 | # In both cases, we have to default to `cp -p'. |
| 502 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 503 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 504 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 505 | as_ln_s=ln |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 506 | else |
| 507 | as_ln_s='cp -p' |
| 508 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 509 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 510 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 511 | |
| 512 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 513 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 514 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 515 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 516 | as_mkdir_p=false |
| 517 | fi |
| 518 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 519 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 520 | # systems may use methods other than mode bits to determine executability. |
| 521 | cat >conf$$.file <<_ASEOF |
| 522 | #! /bin/sh |
| 523 | exit 0 |
| 524 | _ASEOF |
| 525 | chmod +x conf$$.file |
| 526 | if test -x conf$$.file >/dev/null 2>&1; then |
| 527 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 528 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 529 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 530 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 531 | rm -f conf$$.file |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 532 | |
| 533 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 535 | |
| 536 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 538 | |
| 539 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 540 | |
| 541 | exec 7<&0 </dev/null 6>&1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 542 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 543 | # Name of the host. |
| 544 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 545 | # so uname gets run too. |
| 546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 547 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 548 | # |
| 549 | # Initializations. |
| 550 | # |
| 551 | ac_default_prefix=/usr/local |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 552 | ac_clean_files= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 553 | ac_config_libobj_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 554 | LIBOBJS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 555 | cross_compiling=no |
| 556 | subdirs= |
| 557 | MFLAGS= |
| 558 | MAKEFLAGS= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 559 | SHELL=${CONFIG_SHELL-/bin/sh} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 560 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 561 | # Identity of this package. |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 562 | PACKAGE_NAME='llvm' |
Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 563 | PACKAGE_TARNAME='-llvm-' |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='2.7svn' |
| 565 | PACKAGE_STRING='llvm 2.7svn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 566 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
| 567 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 568 | ac_unique_file="lib/VMCore/Module.cpp" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 569 | # Factoring default headers for most tests. |
| 570 | ac_includes_default="\ |
| 571 | #include <stdio.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 572 | #if HAVE_SYS_TYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 573 | # include <sys/types.h> |
| 574 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 575 | #if HAVE_SYS_STAT_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 576 | # include <sys/stat.h> |
| 577 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 578 | #if STDC_HEADERS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 579 | # include <stdlib.h> |
| 580 | # include <stddef.h> |
| 581 | #else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 582 | # if HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 583 | # include <stdlib.h> |
| 584 | # endif |
| 585 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 586 | #if HAVE_STRING_H |
| 587 | # if !STDC_HEADERS && HAVE_MEMORY_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 588 | # include <memory.h> |
| 589 | # endif |
| 590 | # include <string.h> |
| 591 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 592 | #if HAVE_STRINGS_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 593 | # include <strings.h> |
| 594 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 595 | #if HAVE_INTTYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 596 | # include <inttypes.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 597 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 598 | #if HAVE_STDINT_H |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 599 | # include <stdint.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 600 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 601 | #if HAVE_UNISTD_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 602 | # include <unistd.h> |
| 603 | #endif" |
| 604 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 605 | ac_subst_vars='SHELL |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 606 | PATH_SEPARATOR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 607 | PACKAGE_NAME |
| 608 | PACKAGE_TARNAME |
| 609 | PACKAGE_VERSION |
| 610 | PACKAGE_STRING |
| 611 | PACKAGE_BUGREPORT |
| 612 | exec_prefix |
| 613 | prefix |
| 614 | program_transform_name |
| 615 | bindir |
| 616 | sbindir |
| 617 | libexecdir |
| 618 | datarootdir |
| 619 | datadir |
| 620 | sysconfdir |
| 621 | sharedstatedir |
| 622 | localstatedir |
| 623 | includedir |
| 624 | oldincludedir |
| 625 | docdir |
| 626 | infodir |
| 627 | htmldir |
| 628 | dvidir |
| 629 | pdfdir |
| 630 | psdir |
| 631 | libdir |
| 632 | localedir |
| 633 | mandir |
| 634 | DEFS |
| 635 | ECHO_C |
| 636 | ECHO_N |
| 637 | ECHO_T |
| 638 | LIBS |
| 639 | build_alias |
| 640 | host_alias |
| 641 | target_alias |
| 642 | LLVM_COPYRIGHT |
| 643 | subdirs |
| 644 | build |
| 645 | build_cpu |
| 646 | build_vendor |
| 647 | build_os |
| 648 | host |
| 649 | host_cpu |
| 650 | host_vendor |
| 651 | host_os |
| 652 | target |
| 653 | target_cpu |
| 654 | target_vendor |
| 655 | target_os |
| 656 | OS |
| 657 | HOST_OS |
| 658 | TARGET_OS |
| 659 | LINKALL |
| 660 | NOLINKALL |
| 661 | LLVM_ON_UNIX |
| 662 | LLVM_ON_WIN32 |
| 663 | ARCH |
| 664 | ENDIAN |
| 665 | CC |
| 666 | CFLAGS |
| 667 | LDFLAGS |
| 668 | CPPFLAGS |
| 669 | ac_ct_CC |
| 670 | EXEEXT |
| 671 | OBJEXT |
| 672 | CPP |
| 673 | GREP |
| 674 | EGREP |
| 675 | LLVM_CROSS_COMPILING |
| 676 | BUILD_CC |
| 677 | BUILD_EXEEXT |
| 678 | BUILD_CXX |
| 679 | CVSBUILD |
| 680 | ENABLE_OPTIMIZED |
| 681 | ENABLE_PROFILING |
| 682 | DISABLE_ASSERTIONS |
| 683 | ENABLE_EXPENSIVE_CHECKS |
| 684 | EXPENSIVE_CHECKS |
| 685 | DEBUG_RUNTIME |
| 686 | DEBUG_SYMBOLS |
| 687 | JIT |
| 688 | TARGET_HAS_JIT |
| 689 | ENABLE_DOXYGEN |
| 690 | ENABLE_THREADS |
| 691 | ENABLE_PIC |
Jeffrey Yasskin | f6afae2 | 2010-02-18 02:36:02 +0000 | [diff] [blame] | 692 | ENABLE_SHARED |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 693 | TARGETS_TO_BUILD |
| 694 | LLVM_ENUM_TARGETS |
| 695 | LLVM_ENUM_ASM_PRINTERS |
| 696 | LLVM_ENUM_ASM_PARSERS |
| 697 | LLVM_ENUM_DISASSEMBLERS |
| 698 | ENABLE_CBE_PRINTF_A |
| 699 | OPTIMIZE_OPTION |
| 700 | EXTRA_OPTIONS |
| 701 | BINUTILS_INCDIR |
| 702 | ENABLE_LLVMC_DYNAMIC |
| 703 | ENABLE_LLVMC_DYNAMIC_PLUGINS |
| 704 | CXX |
| 705 | CXXFLAGS |
| 706 | ac_ct_CXX |
| 707 | NM |
| 708 | ifGNUmake |
| 709 | LN_S |
| 710 | CMP |
| 711 | CP |
| 712 | DATE |
| 713 | FIND |
| 714 | MKDIR |
| 715 | MV |
| 716 | RANLIB |
| 717 | AR |
| 718 | RM |
| 719 | SED |
| 720 | TAR |
| 721 | BINPWD |
| 722 | GRAPHVIZ |
| 723 | DOT |
| 724 | FDP |
| 725 | NEATO |
| 726 | TWOPI |
| 727 | CIRCO |
| 728 | GV |
| 729 | DOTTY |
| 730 | PERL |
| 731 | HAVE_PERL |
| 732 | INSTALL_PROGRAM |
| 733 | INSTALL_SCRIPT |
| 734 | INSTALL_DATA |
| 735 | BZIP2 |
| 736 | DOXYGEN |
| 737 | GROFF |
| 738 | GZIP |
| 739 | POD2HTML |
| 740 | POD2MAN |
| 741 | RUNTEST |
| 742 | TCLSH |
| 743 | ZIP |
| 744 | OCAMLC |
| 745 | OCAMLOPT |
| 746 | OCAMLDEP |
| 747 | OCAMLDOC |
| 748 | GAS |
| 749 | INSTALL_LTDL_TRUE |
| 750 | INSTALL_LTDL_FALSE |
| 751 | CONVENIENCE_LTDL_TRUE |
| 752 | CONVENIENCE_LTDL_FALSE |
| 753 | LIBADD_DL |
| 754 | LLVMGCCCOMMAND |
| 755 | LLVMGXXCOMMAND |
| 756 | LLVMGCC |
| 757 | LLVMGXX |
| 758 | NO_VARIADIC_MACROS |
| 759 | NO_MISSING_FIELD_INITIALIZERS |
| 760 | USE_UDIS86 |
| 761 | USE_OPROFILE |
| 762 | HAVE_PTHREAD |
| 763 | HUGE_VAL_SANITY |
| 764 | MMAP_FILE |
| 765 | LLVMCC1 |
| 766 | LLVMCC1PLUS |
| 767 | LLVMGCCDIR |
| 768 | LLVMGCCLIBEXEC |
| 769 | LLVMGCC_VERSION |
| 770 | LLVMGCC_MAJVERS |
| 771 | LLVMGCC_LANGS |
| 772 | SHLIBEXT |
Jeffrey Yasskin | f6afae2 | 2010-02-18 02:36:02 +0000 | [diff] [blame] | 773 | SHLIBPATH_VAR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 774 | LLVM_PREFIX |
| 775 | LLVM_BINDIR |
| 776 | LLVM_LIBDIR |
| 777 | LLVM_DATADIR |
| 778 | LLVM_DOCSDIR |
| 779 | LLVM_ETCDIR |
| 780 | LLVM_INCLUDEDIR |
| 781 | LLVM_INFODIR |
| 782 | LLVM_MANDIR |
| 783 | LLVM_CONFIGTIME |
| 784 | BINDINGS_TO_BUILD |
| 785 | ALL_BINDINGS |
| 786 | OCAML_LIBDIR |
| 787 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 788 | RPATH |
| 789 | RDYNAMIC |
| 790 | LIBOBJS |
| 791 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 792 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 793 | ac_precious_vars='build_alias |
| 794 | host_alias |
| 795 | target_alias |
| 796 | CC |
| 797 | CFLAGS |
| 798 | LDFLAGS |
| 799 | CPPFLAGS |
| 800 | CPP |
| 801 | CXX |
| 802 | CXXFLAGS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 803 | CCC' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 804 | ac_subdirs_all='projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 805 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 806 | projects/llvm-stacker |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 807 | projects/llvm-test |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 808 | projects/test-suite |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 809 | projects/llvm-reopt |
| 810 | projects/llvm-gcc |
| 811 | projects/llvm-java |
| 812 | projects/llvm-tv |
| 813 | projects/llvm-poolalloc |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 814 | projects/poolalloc |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 815 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 816 | |
| 817 | # Initialize some variables set by options. |
| 818 | ac_init_help= |
| 819 | ac_init_version=false |
| 820 | # The variables have the same names as the options, with |
| 821 | # dashes changed to underlines. |
| 822 | cache_file=/dev/null |
| 823 | exec_prefix=NONE |
| 824 | no_create= |
| 825 | no_recursion= |
| 826 | prefix=NONE |
| 827 | program_prefix=NONE |
| 828 | program_suffix=NONE |
| 829 | program_transform_name=s,x,x, |
| 830 | silent= |
| 831 | site= |
| 832 | srcdir= |
| 833 | verbose= |
| 834 | x_includes=NONE |
| 835 | x_libraries=NONE |
| 836 | |
| 837 | # Installation directory options. |
| 838 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 839 | # and all the variables that are supposed to be based on exec_prefix |
| 840 | # by default will actually change. |
| 841 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 842 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 843 | bindir='${exec_prefix}/bin' |
| 844 | sbindir='${exec_prefix}/sbin' |
| 845 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 846 | datarootdir='${prefix}/share' |
| 847 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 848 | sysconfdir='${prefix}/etc' |
| 849 | sharedstatedir='${prefix}/com' |
| 850 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 851 | includedir='${prefix}/include' |
| 852 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 853 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 854 | infodir='${datarootdir}/info' |
| 855 | htmldir='${docdir}' |
| 856 | dvidir='${docdir}' |
| 857 | pdfdir='${docdir}' |
| 858 | psdir='${docdir}' |
| 859 | libdir='${exec_prefix}/lib' |
| 860 | localedir='${datarootdir}/locale' |
| 861 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 862 | |
| 863 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 864 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 865 | for ac_option |
| 866 | do |
| 867 | # If the previous option needs an argument, assign it. |
| 868 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 869 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 870 | ac_prev= |
| 871 | continue |
| 872 | fi |
| 873 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 874 | case $ac_option in |
| 875 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 876 | *) ac_optarg=yes ;; |
| 877 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 878 | |
| 879 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 880 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 881 | case $ac_dashdash$ac_option in |
| 882 | --) |
| 883 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 884 | |
| 885 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 886 | ac_prev=bindir ;; |
| 887 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 888 | bindir=$ac_optarg ;; |
| 889 | |
| 890 | -build | --build | --buil | --bui | --bu) |
| 891 | ac_prev=build_alias ;; |
| 892 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 893 | build_alias=$ac_optarg ;; |
| 894 | |
| 895 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 896 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 897 | ac_prev=cache_file ;; |
| 898 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 899 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 900 | cache_file=$ac_optarg ;; |
| 901 | |
| 902 | --config-cache | -C) |
| 903 | cache_file=config.cache ;; |
| 904 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 905 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 906 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 907 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 908 | datadir=$ac_optarg ;; |
| 909 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 910 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 911 | | --dataroo | --dataro | --datar) |
| 912 | ac_prev=datarootdir ;; |
| 913 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 914 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 915 | datarootdir=$ac_optarg ;; |
| 916 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 917 | -disable-* | --disable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 918 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 919 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 920 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 921 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 922 | { (exit 1); exit 1; }; } |
| 923 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 924 | eval enable_$ac_feature=no ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 925 | |
| 926 | -docdir | --docdir | --docdi | --doc | --do) |
| 927 | ac_prev=docdir ;; |
| 928 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 929 | docdir=$ac_optarg ;; |
| 930 | |
| 931 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 932 | ac_prev=dvidir ;; |
| 933 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 934 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 935 | |
| 936 | -enable-* | --enable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 937 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 938 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 939 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 940 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 941 | { (exit 1); exit 1; }; } |
| 942 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 943 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 944 | |
| 945 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 946 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 947 | | --exec | --exe | --ex) |
| 948 | ac_prev=exec_prefix ;; |
| 949 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 950 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 951 | | --exec=* | --exe=* | --ex=*) |
| 952 | exec_prefix=$ac_optarg ;; |
| 953 | |
| 954 | -gas | --gas | --ga | --g) |
| 955 | # Obsolete; use --with-gas. |
| 956 | with_gas=yes ;; |
| 957 | |
| 958 | -help | --help | --hel | --he | -h) |
| 959 | ac_init_help=long ;; |
| 960 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 961 | ac_init_help=recursive ;; |
| 962 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 963 | ac_init_help=short ;; |
| 964 | |
| 965 | -host | --host | --hos | --ho) |
| 966 | ac_prev=host_alias ;; |
| 967 | -host=* | --host=* | --hos=* | --ho=*) |
| 968 | host_alias=$ac_optarg ;; |
| 969 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 970 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 971 | ac_prev=htmldir ;; |
| 972 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 973 | | --ht=*) |
| 974 | htmldir=$ac_optarg ;; |
| 975 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 976 | -includedir | --includedir | --includedi | --included | --include \ |
| 977 | | --includ | --inclu | --incl | --inc) |
| 978 | ac_prev=includedir ;; |
| 979 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 980 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 981 | includedir=$ac_optarg ;; |
| 982 | |
| 983 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 984 | ac_prev=infodir ;; |
| 985 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 986 | infodir=$ac_optarg ;; |
| 987 | |
| 988 | -libdir | --libdir | --libdi | --libd) |
| 989 | ac_prev=libdir ;; |
| 990 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 991 | libdir=$ac_optarg ;; |
| 992 | |
| 993 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 994 | | --libexe | --libex | --libe) |
| 995 | ac_prev=libexecdir ;; |
| 996 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 997 | | --libexe=* | --libex=* | --libe=*) |
| 998 | libexecdir=$ac_optarg ;; |
| 999 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1000 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1001 | ac_prev=localedir ;; |
| 1002 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1003 | localedir=$ac_optarg ;; |
| 1004 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1005 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1006 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1007 | ac_prev=localstatedir ;; |
| 1008 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1009 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1010 | localstatedir=$ac_optarg ;; |
| 1011 | |
| 1012 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1013 | ac_prev=mandir ;; |
| 1014 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1015 | mandir=$ac_optarg ;; |
| 1016 | |
| 1017 | -nfp | --nfp | --nf) |
| 1018 | # Obsolete; use --without-fp. |
| 1019 | with_fp=no ;; |
| 1020 | |
| 1021 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1022 | | --no-cr | --no-c | -n) |
| 1023 | no_create=yes ;; |
| 1024 | |
| 1025 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1026 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1027 | no_recursion=yes ;; |
| 1028 | |
| 1029 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1030 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1031 | | --oldin | --oldi | --old | --ol | --o) |
| 1032 | ac_prev=oldincludedir ;; |
| 1033 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1034 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1035 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1036 | oldincludedir=$ac_optarg ;; |
| 1037 | |
| 1038 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1039 | ac_prev=prefix ;; |
| 1040 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1041 | prefix=$ac_optarg ;; |
| 1042 | |
| 1043 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1044 | | --program-pre | --program-pr | --program-p) |
| 1045 | ac_prev=program_prefix ;; |
| 1046 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1047 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1048 | program_prefix=$ac_optarg ;; |
| 1049 | |
| 1050 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1051 | | --program-suf | --program-su | --program-s) |
| 1052 | ac_prev=program_suffix ;; |
| 1053 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1054 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1055 | program_suffix=$ac_optarg ;; |
| 1056 | |
| 1057 | -program-transform-name | --program-transform-name \ |
| 1058 | | --program-transform-nam | --program-transform-na \ |
| 1059 | | --program-transform-n | --program-transform- \ |
| 1060 | | --program-transform | --program-transfor \ |
| 1061 | | --program-transfo | --program-transf \ |
| 1062 | | --program-trans | --program-tran \ |
| 1063 | | --progr-tra | --program-tr | --program-t) |
| 1064 | ac_prev=program_transform_name ;; |
| 1065 | -program-transform-name=* | --program-transform-name=* \ |
| 1066 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1067 | | --program-transform-n=* | --program-transform-=* \ |
| 1068 | | --program-transform=* | --program-transfor=* \ |
| 1069 | | --program-transfo=* | --program-transf=* \ |
| 1070 | | --program-trans=* | --program-tran=* \ |
| 1071 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1072 | program_transform_name=$ac_optarg ;; |
| 1073 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1074 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1075 | ac_prev=pdfdir ;; |
| 1076 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1077 | pdfdir=$ac_optarg ;; |
| 1078 | |
| 1079 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1080 | ac_prev=psdir ;; |
| 1081 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1082 | psdir=$ac_optarg ;; |
| 1083 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1084 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1085 | | -silent | --silent | --silen | --sile | --sil) |
| 1086 | silent=yes ;; |
| 1087 | |
| 1088 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1089 | ac_prev=sbindir ;; |
| 1090 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1091 | | --sbi=* | --sb=*) |
| 1092 | sbindir=$ac_optarg ;; |
| 1093 | |
| 1094 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1095 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1096 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1097 | | --sha | --sh) |
| 1098 | ac_prev=sharedstatedir ;; |
| 1099 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1100 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1101 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1102 | | --sha=* | --sh=*) |
| 1103 | sharedstatedir=$ac_optarg ;; |
| 1104 | |
| 1105 | -site | --site | --sit) |
| 1106 | ac_prev=site ;; |
| 1107 | -site=* | --site=* | --sit=*) |
| 1108 | site=$ac_optarg ;; |
| 1109 | |
| 1110 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1111 | ac_prev=srcdir ;; |
| 1112 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1113 | srcdir=$ac_optarg ;; |
| 1114 | |
| 1115 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1116 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1117 | ac_prev=sysconfdir ;; |
| 1118 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1119 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1120 | sysconfdir=$ac_optarg ;; |
| 1121 | |
| 1122 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1123 | ac_prev=target_alias ;; |
| 1124 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1125 | target_alias=$ac_optarg ;; |
| 1126 | |
| 1127 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1128 | verbose=yes ;; |
| 1129 | |
| 1130 | -version | --version | --versio | --versi | --vers | -V) |
| 1131 | ac_init_version=: ;; |
| 1132 | |
| 1133 | -with-* | --with-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1134 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1135 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1136 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1137 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1138 | { (exit 1); exit 1; }; } |
| 1139 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1140 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1141 | |
| 1142 | -without-* | --without-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1143 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1144 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1145 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1146 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1147 | { (exit 1); exit 1; }; } |
| 1148 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1149 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1150 | |
| 1151 | --x) |
| 1152 | # Obsolete; use --with-x. |
| 1153 | with_x=yes ;; |
| 1154 | |
| 1155 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1156 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1157 | ac_prev=x_includes ;; |
| 1158 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1159 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1160 | x_includes=$ac_optarg ;; |
| 1161 | |
| 1162 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1163 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1164 | ac_prev=x_libraries ;; |
| 1165 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1166 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1167 | x_libraries=$ac_optarg ;; |
| 1168 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1169 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1170 | Try \`$0 --help' for more information." >&2 |
| 1171 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1172 | ;; |
| 1173 | |
| 1174 | *=*) |
| 1175 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1176 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1177 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1178 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1179 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1180 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1181 | export $ac_envvar ;; |
| 1182 | |
| 1183 | *) |
| 1184 | # FIXME: should be removed in autoconf 3.0. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1185 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1186 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1187 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1188 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1189 | ;; |
| 1190 | |
| 1191 | esac |
| 1192 | done |
| 1193 | |
| 1194 | if test -n "$ac_prev"; then |
| 1195 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1196 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1197 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1198 | fi |
| 1199 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1200 | # Be sure to have absolute directory names. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1201 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1202 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1203 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1204 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1205 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1206 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1207 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1208 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1209 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1210 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1211 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1212 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1213 | done |
| 1214 | |
| 1215 | # There might be people who depend on the old broken behavior: `$host' |
| 1216 | # used to hold the argument of --host etc. |
| 1217 | # FIXME: To remove some day. |
| 1218 | build=$build_alias |
| 1219 | host=$host_alias |
| 1220 | target=$target_alias |
| 1221 | |
| 1222 | # FIXME: To remove some day. |
| 1223 | if test "x$host_alias" != x; then |
| 1224 | if test "x$build_alias" = x; then |
| 1225 | cross_compiling=maybe |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1226 | 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] | 1227 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1228 | elif test "x$build_alias" != "x$host_alias"; then |
| 1229 | cross_compiling=yes |
| 1230 | fi |
| 1231 | fi |
| 1232 | |
| 1233 | ac_tool_prefix= |
| 1234 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1235 | |
| 1236 | test "$silent" = yes && exec 6>/dev/null |
| 1237 | |
| 1238 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1239 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1240 | ac_ls_di=`ls -di .` && |
| 1241 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1242 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1243 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1244 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1245 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1246 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1247 | |
| 1248 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1249 | # Find the source files, if location was not specified. |
| 1250 | if test -z "$srcdir"; then |
| 1251 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1252 | # Try the directory containing this script, then the parent directory. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1253 | ac_confdir=`$as_dirname -- "$0" || |
| 1254 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1255 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1256 | X"$0" : 'X\(//\)$' \| \ |
| 1257 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1258 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1259 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1260 | s//\1/ |
| 1261 | q |
| 1262 | } |
| 1263 | /^X\(\/\/\)[^/].*/{ |
| 1264 | s//\1/ |
| 1265 | q |
| 1266 | } |
| 1267 | /^X\(\/\/\)$/{ |
| 1268 | s//\1/ |
| 1269 | q |
| 1270 | } |
| 1271 | /^X\(\/\).*/{ |
| 1272 | s//\1/ |
| 1273 | q |
| 1274 | } |
| 1275 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1276 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1277 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1278 | srcdir=.. |
| 1279 | fi |
| 1280 | else |
| 1281 | ac_srcdir_defaulted=no |
| 1282 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1283 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1284 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1285 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1286 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1287 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1288 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1289 | ac_abs_confdir=`( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1290 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1291 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1292 | pwd)` |
| 1293 | # When building in place, set srcdir=. |
| 1294 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1295 | srcdir=. |
| 1296 | fi |
| 1297 | # Remove unnecessary trailing slashes from srcdir. |
| 1298 | # Double slashes in file names in object file debugging info |
| 1299 | # mess up M-x gdb in Emacs. |
| 1300 | case $srcdir in |
| 1301 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1302 | esac |
| 1303 | for ac_var in $ac_precious_vars; do |
| 1304 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1305 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1306 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1307 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1308 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1309 | |
| 1310 | # |
| 1311 | # Report the --help message. |
| 1312 | # |
| 1313 | if test "$ac_init_help" = "long"; then |
| 1314 | # Omit some internal or obsolete options to make the list less imposing. |
| 1315 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1316 | cat <<_ACEOF |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1317 | \`configure' configures llvm 2.7svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1318 | |
| 1319 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1320 | |
| 1321 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1322 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1323 | |
| 1324 | Defaults for the options are specified in brackets. |
| 1325 | |
| 1326 | Configuration: |
| 1327 | -h, --help display this help and exit |
| 1328 | --help=short display options specific to this package |
| 1329 | --help=recursive display the short help of all the included packages |
| 1330 | -V, --version display version information and exit |
| 1331 | -q, --quiet, --silent do not print \`checking...' messages |
| 1332 | --cache-file=FILE cache test results in FILE [disabled] |
| 1333 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1334 | -n, --no-create do not create output files |
| 1335 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1336 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1337 | Installation directories: |
| 1338 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1339 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1340 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1341 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1342 | |
| 1343 | By default, \`make install' will install all the files in |
| 1344 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1345 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1346 | for instance \`--prefix=\$HOME'. |
| 1347 | |
| 1348 | For better control, use the options below. |
| 1349 | |
| 1350 | Fine tuning of the installation directories: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1351 | --bindir=DIR user executables [EPREFIX/bin] |
| 1352 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1353 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1354 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1355 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1356 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1357 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1358 | --includedir=DIR C header files [PREFIX/include] |
| 1359 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1360 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1361 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1362 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1363 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1364 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1365 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1366 | --htmldir=DIR html documentation [DOCDIR] |
| 1367 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1368 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1369 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1370 | _ACEOF |
| 1371 | |
| 1372 | cat <<\_ACEOF |
| 1373 | |
| 1374 | System types: |
| 1375 | --build=BUILD configure for building on BUILD [guessed] |
| 1376 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1377 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1378 | _ACEOF |
| 1379 | fi |
| 1380 | |
| 1381 | if test -n "$ac_init_help"; then |
| 1382 | case $ac_init_help in |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1383 | short | recursive ) echo "Configuration of llvm 2.7svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1384 | esac |
| 1385 | cat <<\_ACEOF |
| 1386 | |
| 1387 | Optional Features: |
| 1388 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1389 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1390 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1391 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1392 | --enable-assertions Compile with assertion checks enabled (default is |
| 1393 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1394 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1395 | Compile with expensive debug checks enabled (default |
| 1396 | is NO) |
| 1397 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1398 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1399 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1400 | optimization is on and YES if it's off) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1401 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1402 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1403 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1404 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1405 | is YES) |
Jeffrey Yasskin | f6afae2 | 2010-02-18 02:36:02 +0000 | [diff] [blame] | 1406 | --enable-shared Link LLVM tools shared (default is NO) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1407 | --enable-targets Build specific host targets: all or |
| 1408 | target1,target2,... Valid targets are: host, x86, |
| 1409 | x86_64, sparc, powerpc, alpha, arm, mips, spu, |
| 1410 | pic16, xcore, msp430, systemz, blackfin, cbe, msil, |
| 1411 | and cpp (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1412 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1413 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1414 | --enable-bindings Build specific language bindings: |
| 1415 | all,auto,none,{binding-name} (default=auto) |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1416 | --enable-libffi Check for the presence of libffi (default is NO) |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 1417 | --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on |
| 1418 | Win32) |
| 1419 | --enable-llvmc-dynamic-plugins |
| 1420 | Enable dynamic LLVMC plugins (default is YES) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1421 | --enable-ltdl-install install libltdl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1422 | |
| 1423 | Optional Packages: |
| 1424 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1425 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1426 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1427 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1428 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1429 | searches PATH) |
| 1430 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1431 | searches PATH) |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1432 | --with-optimize-option Select the compiler options to use for optimized |
| 1433 | builds |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1434 | --with-extra-options Specify additional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1435 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1436 | is stdlib) |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1437 | --with-c-include-dirs Colon separated list of directories clang will |
| 1438 | search for headers |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 1439 | --with-cxx-include-root Directory with the libstdc++ headers. |
| 1440 | --with-cxx-include-arch Architecture of the libstdc++ headers. |
| 1441 | --with-cxx-include-32bit-dir |
| 1442 | 32 bit multilib dir. |
| 1443 | --with-cxx-include-64bit-dir |
| 1444 | 64 bit multilib directory. |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1445 | --with-binutils-include Specify path to binutils/include/ containing |
| 1446 | plugin-api.h file for gold plugin. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1447 | --with-tclinclude directory where tcl headers are |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1448 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1449 | --with-oprofile=<prefix> |
| 1450 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1451 | |
| 1452 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1453 | CC C compiler command |
| 1454 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1455 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1456 | nonstandard directory <lib dir> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1457 | 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] | 1458 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1459 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1460 | CXX C++ compiler command |
| 1461 | CXXFLAGS C++ compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1462 | |
| 1463 | Use these variables to override the choices made by `configure' or to help |
| 1464 | it to find libraries and programs with nonstandard names/locations. |
| 1465 | |
| 1466 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1467 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1468 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1469 | fi |
| 1470 | |
| 1471 | if test "$ac_init_help" = "recursive"; then |
| 1472 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1473 | 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] | 1474 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1475 | ac_builddir=. |
| 1476 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1477 | case "$ac_dir" in |
| 1478 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1479 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1480 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1481 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1482 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1483 | case $ac_top_builddir_sub in |
| 1484 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1485 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1486 | esac ;; |
| 1487 | esac |
| 1488 | ac_abs_top_builddir=$ac_pwd |
| 1489 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1490 | # for backward compatibility: |
| 1491 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1492 | |
| 1493 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1494 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1495 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1496 | ac_top_srcdir=$ac_top_builddir_sub |
| 1497 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1498 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1499 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1500 | ac_top_srcdir=$srcdir |
| 1501 | ac_abs_top_srcdir=$srcdir ;; |
| 1502 | *) # Relative name. |
| 1503 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1504 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1505 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1506 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1507 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1508 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1509 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1510 | # Check for guested configure. |
| 1511 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1512 | echo && |
| 1513 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1514 | elif test -f "$ac_srcdir/configure"; then |
| 1515 | echo && |
| 1516 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1517 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1518 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1519 | fi || ac_status=$? |
| 1520 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1521 | done |
| 1522 | fi |
| 1523 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1524 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1525 | if $ac_init_version; then |
| 1526 | cat <<\_ACEOF |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1527 | llvm configure 2.7svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1528 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1529 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1530 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1531 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1532 | This configure script is free software; the Free Software Foundation |
| 1533 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1534 | |
Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 1535 | Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1536 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1537 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1538 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1539 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1540 | This file contains any messages produced by compilers while |
| 1541 | running configure, to aid debugging if configure makes a mistake. |
| 1542 | |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1543 | It was created by llvm $as_me 2.7svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1544 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1545 | |
| 1546 | $ $0 $@ |
| 1547 | |
| 1548 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1549 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1550 | { |
| 1551 | cat <<_ASUNAME |
| 1552 | ## --------- ## |
| 1553 | ## Platform. ## |
| 1554 | ## --------- ## |
| 1555 | |
| 1556 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1557 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1558 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1559 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1560 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1561 | |
| 1562 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1563 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1564 | |
| 1565 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1566 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1567 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1568 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1569 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1570 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1571 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1572 | |
| 1573 | _ASUNAME |
| 1574 | |
| 1575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1576 | for as_dir in $PATH |
| 1577 | do |
| 1578 | IFS=$as_save_IFS |
| 1579 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1580 | echo "PATH: $as_dir" |
| 1581 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1582 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1583 | |
| 1584 | } >&5 |
| 1585 | |
| 1586 | cat >&5 <<_ACEOF |
| 1587 | |
| 1588 | |
| 1589 | ## ----------- ## |
| 1590 | ## Core tests. ## |
| 1591 | ## ----------- ## |
| 1592 | |
| 1593 | _ACEOF |
| 1594 | |
| 1595 | |
| 1596 | # Keep a trace of the command line. |
| 1597 | # 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] | 1598 | # 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] | 1599 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1600 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1601 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1602 | ac_configure_args0= |
| 1603 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1604 | ac_must_keep_next=false |
| 1605 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1606 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1607 | for ac_arg |
| 1608 | do |
| 1609 | case $ac_arg in |
| 1610 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1611 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1612 | | -silent | --silent | --silen | --sile | --sil) |
| 1613 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1614 | *\'*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1615 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1616 | esac |
| 1617 | case $ac_pass in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1618 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1619 | 2) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1620 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1621 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1622 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1623 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1624 | case $ac_arg in |
| 1625 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1626 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1627 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1628 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1629 | case "$ac_configure_args0 " in |
| 1630 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1631 | esac |
| 1632 | ;; |
| 1633 | -* ) ac_must_keep_next=true ;; |
| 1634 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1635 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1636 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1637 | ;; |
| 1638 | esac |
| 1639 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1640 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1641 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1642 | $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] | 1643 | |
| 1644 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1645 | # config.log. We remove comments because anyway the quotes in there |
| 1646 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1647 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1648 | # 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] | 1649 | trap 'exit_status=$? |
| 1650 | # Save into config.log some information that might help in debugging. |
| 1651 | { |
| 1652 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1653 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1654 | cat <<\_ASBOX |
| 1655 | ## ---------------- ## |
| 1656 | ## Cache variables. ## |
| 1657 | ## ---------------- ## |
| 1658 | _ASBOX |
| 1659 | echo |
| 1660 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1661 | ( |
| 1662 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1663 | eval ac_val=\$$ac_var |
| 1664 | case $ac_val in #( |
| 1665 | *${as_nl}*) |
| 1666 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1667 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1668 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1669 | esac |
| 1670 | case $ac_var in #( |
| 1671 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1672 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1673 | esac ;; |
| 1674 | esac |
| 1675 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1676 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1677 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1678 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1679 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1680 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1681 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1682 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1683 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1684 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1685 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1686 | esac | |
| 1687 | sort |
| 1688 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1689 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1690 | |
| 1691 | cat <<\_ASBOX |
| 1692 | ## ----------------- ## |
| 1693 | ## Output variables. ## |
| 1694 | ## ----------------- ## |
| 1695 | _ASBOX |
| 1696 | echo |
| 1697 | for ac_var in $ac_subst_vars |
| 1698 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1699 | eval ac_val=\$$ac_var |
| 1700 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1701 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1702 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1703 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1704 | done | sort |
| 1705 | echo |
| 1706 | |
| 1707 | if test -n "$ac_subst_files"; then |
| 1708 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1709 | ## ------------------- ## |
| 1710 | ## File substitutions. ## |
| 1711 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1712 | _ASBOX |
| 1713 | echo |
| 1714 | for ac_var in $ac_subst_files |
| 1715 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1716 | eval ac_val=\$$ac_var |
| 1717 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1718 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1719 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1720 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1721 | done | sort |
| 1722 | echo |
| 1723 | fi |
| 1724 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1725 | if test -s confdefs.h; then |
| 1726 | cat <<\_ASBOX |
| 1727 | ## ----------- ## |
| 1728 | ## confdefs.h. ## |
| 1729 | ## ----------- ## |
| 1730 | _ASBOX |
| 1731 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1732 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1733 | echo |
| 1734 | fi |
| 1735 | test "$ac_signal" != 0 && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1736 | echo "$as_me: caught signal $ac_signal" |
| 1737 | echo "$as_me: exit $exit_status" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1738 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1739 | rm -f core *.core core.conftest.* && |
| 1740 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1741 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1742 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1743 | for ac_signal in 1 2 13 15; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1744 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1745 | done |
| 1746 | ac_signal=0 |
| 1747 | |
| 1748 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1749 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1750 | |
| 1751 | # Predefined preprocessor variables. |
| 1752 | |
| 1753 | cat >>confdefs.h <<_ACEOF |
| 1754 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1755 | _ACEOF |
| 1756 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1757 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1758 | cat >>confdefs.h <<_ACEOF |
| 1759 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1760 | _ACEOF |
| 1761 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1762 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1763 | cat >>confdefs.h <<_ACEOF |
| 1764 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1765 | _ACEOF |
| 1766 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1767 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1768 | cat >>confdefs.h <<_ACEOF |
| 1769 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1770 | _ACEOF |
| 1771 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1772 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1773 | cat >>confdefs.h <<_ACEOF |
| 1774 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1775 | _ACEOF |
| 1776 | |
| 1777 | |
| 1778 | # 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] | 1779 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1780 | if test -n "$CONFIG_SITE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1781 | set x "$CONFIG_SITE" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1782 | elif test "x$prefix" != xNONE; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1783 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1784 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1785 | set x "$ac_default_prefix/share/config.site" \ |
| 1786 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1787 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1788 | shift |
| 1789 | for ac_site_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1790 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1791 | if test -r "$ac_site_file"; then |
| 1792 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1793 | echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1794 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1795 | . "$ac_site_file" |
| 1796 | fi |
| 1797 | done |
| 1798 | |
| 1799 | if test -r "$cache_file"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1800 | # Some versions of bash will fail to source /dev/null (special |
| 1801 | # files actually), so we avoid doing that. |
| 1802 | if test -f "$cache_file"; then |
| 1803 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1804 | echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1805 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1806 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1807 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1808 | esac |
| 1809 | fi |
| 1810 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1811 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1812 | echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1813 | >$cache_file |
| 1814 | fi |
| 1815 | |
| 1816 | # Check that the precious variables saved in the cache have kept the same |
| 1817 | # value. |
| 1818 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1819 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1820 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1821 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1822 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1823 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1824 | case $ac_old_set,$ac_new_set in |
| 1825 | set,) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1826 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1827 | 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] | 1828 | ac_cache_corrupted=: ;; |
| 1829 | ,set) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1830 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1831 | 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] | 1832 | ac_cache_corrupted=: ;; |
| 1833 | ,);; |
| 1834 | *) |
| 1835 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1836 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1837 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1838 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1839 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1840 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1841 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1842 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1843 | fi;; |
| 1844 | esac |
| 1845 | # Pass precious variables to config.status. |
| 1846 | if test "$ac_new_set" = set; then |
| 1847 | case $ac_new_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1848 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1849 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1850 | esac |
| 1851 | case " $ac_configure_args " in |
| 1852 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1853 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1854 | esac |
| 1855 | fi |
| 1856 | done |
| 1857 | if $ac_cache_corrupted; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1858 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1859 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1860 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1861 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1862 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1863 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1864 | |
| 1865 | |
| 1866 | |
| 1867 | |
| 1868 | |
| 1869 | |
| 1870 | |
| 1871 | |
| 1872 | |
| 1873 | |
| 1874 | |
| 1875 | |
| 1876 | |
| 1877 | |
| 1878 | |
| 1879 | |
| 1880 | |
| 1881 | |
| 1882 | |
| 1883 | |
| 1884 | |
| 1885 | |
| 1886 | |
| 1887 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1888 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1889 | ac_ext=c |
| 1890 | ac_cpp='$CPP $CPPFLAGS' |
| 1891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1894 | |
| 1895 | |
| 1896 | |
Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 1897 | LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1898 | |
| 1899 | |
| 1900 | |
| 1901 | |
| 1902 | |
| 1903 | |
| 1904 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1905 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1906 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1907 | if test -f "$ac_dir/install-sh"; then |
| 1908 | ac_aux_dir=$ac_dir |
| 1909 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1910 | break |
| 1911 | elif test -f "$ac_dir/install.sh"; then |
| 1912 | ac_aux_dir=$ac_dir |
| 1913 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1914 | break |
| 1915 | elif test -f "$ac_dir/shtool"; then |
| 1916 | ac_aux_dir=$ac_dir |
| 1917 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1918 | break |
| 1919 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1920 | done |
| 1921 | if test -z "$ac_aux_dir"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1922 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1923 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
| 1924 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1925 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1926 | |
| 1927 | # These three variables are undocumented and unsupported, |
| 1928 | # and are intended to be withdrawn in a future Autoconf release. |
| 1929 | # They can cause serious problems if a builder's source tree is in a directory |
| 1930 | # whose full name contains unusual characters. |
| 1931 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1932 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1933 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1934 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1935 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1936 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1937 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1938 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1939 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
| 1940 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1941 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1942 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1943 | fi |
| 1944 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1945 | for i in `ls ${srcdir}/projects` |
| 1946 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1947 | if test -d ${srcdir}/projects/${i} ; then |
| 1948 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1949 | CVS) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1950 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1951 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1952 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 1953 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1954 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1955 | ;; |
Tanya Lattner | b70e452 | 2008-06-24 17:49:13 +0000 | [diff] [blame] | 1956 | # llvm-test is the old name of the test-suite, kept here for backwards |
| 1957 | # compatibility |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 1958 | llvm-test) subdirs="$subdirs projects/llvm-test" |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1959 | ;; |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 1960 | test-suite) subdirs="$subdirs projects/test-suite" |
| 1961 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1962 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1963 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1964 | llvm-gcc) subdirs="$subdirs projects/llvm-gcc" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1965 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1966 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 1967 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1968 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1969 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1970 | llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 1971 | ;; |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 1972 | poolalloc) subdirs="$subdirs projects/poolalloc" |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 1973 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1974 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 1975 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1976 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1977 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 1978 | 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] | 1979 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1980 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1981 | fi |
| 1982 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 1983 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1984 | |
| 1985 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1986 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1987 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1988 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 1989 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1990 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1991 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1992 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 1993 | if test "${ac_cv_build+set}" = set; then |
| 1994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1995 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1996 | ac_build_alias=$build_alias |
| 1997 | test "x$ac_build_alias" = x && |
| 1998 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1999 | test "x$ac_build_alias" = x && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2000 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2001 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2002 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2003 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2004 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2005 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 2006 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2007 | |
| 2008 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2009 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2010 | echo "${ECHO_T}$ac_cv_build" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2011 | case $ac_cv_build in |
| 2012 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2013 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2014 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2015 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2016 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2017 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2018 | ac_save_IFS=$IFS; IFS='-' |
| 2019 | set x $ac_cv_build |
| 2020 | shift |
| 2021 | build_cpu=$1 |
| 2022 | build_vendor=$2 |
| 2023 | shift; shift |
| 2024 | # Remember, the first character of IFS is used to create $*, |
| 2025 | # except with old shells: |
| 2026 | build_os=$* |
| 2027 | IFS=$ac_save_IFS |
| 2028 | 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] | 2029 | |
| 2030 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2031 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2032 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 2033 | if test "${ac_cv_host+set}" = set; then |
| 2034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2035 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2036 | if test "x$host_alias" = x; then |
| 2037 | ac_cv_host=$ac_cv_build |
| 2038 | else |
| 2039 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2040 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2041 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 2042 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2043 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2044 | |
| 2045 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2046 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2047 | echo "${ECHO_T}$ac_cv_host" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2048 | case $ac_cv_host in |
| 2049 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2050 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2051 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2052 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2053 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2054 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2055 | ac_save_IFS=$IFS; IFS='-' |
| 2056 | set x $ac_cv_host |
| 2057 | shift |
| 2058 | host_cpu=$1 |
| 2059 | host_vendor=$2 |
| 2060 | shift; shift |
| 2061 | # Remember, the first character of IFS is used to create $*, |
| 2062 | # except with old shells: |
| 2063 | host_os=$* |
| 2064 | IFS=$ac_save_IFS |
| 2065 | 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] | 2066 | |
| 2067 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2068 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2069 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 2070 | if test "${ac_cv_target+set}" = set; then |
| 2071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2072 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2073 | if test "x$target_alias" = x; then |
| 2074 | ac_cv_target=$ac_cv_host |
| 2075 | else |
| 2076 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2077 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2078 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 2079 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2080 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2081 | |
| 2082 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2083 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2084 | echo "${ECHO_T}$ac_cv_target" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2085 | case $ac_cv_target in |
| 2086 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2087 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2088 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2089 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2090 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2091 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2092 | ac_save_IFS=$IFS; IFS='-' |
| 2093 | set x $ac_cv_target |
| 2094 | shift |
| 2095 | target_cpu=$1 |
| 2096 | target_vendor=$2 |
| 2097 | shift; shift |
| 2098 | # Remember, the first character of IFS is used to create $*, |
| 2099 | # except with old shells: |
| 2100 | target_os=$* |
| 2101 | IFS=$ac_save_IFS |
| 2102 | 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] | 2103 | |
| 2104 | |
| 2105 | # The aliases save the names the user supplied, while $host etc. |
| 2106 | # will get canonicalized. |
| 2107 | test -n "$target_alias" && |
| 2108 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2109 | NONENONEs,x,x, && |
| 2110 | program_prefix=${target_alias}- |
| 2111 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2112 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2113 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 2114 | if test "${llvm_cv_os_type+set}" = set; then |
| 2115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2116 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2117 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2118 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2119 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2120 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2121 | llvm_cv_os_type="AIX" |
| 2122 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2123 | *-*-irix*) |
| 2124 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2125 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2126 | llvm_cv_os_type="IRIX" |
| 2127 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2128 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2129 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2130 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2131 | llvm_cv_os_type="Cygwin" |
| 2132 | llvm_cv_platform_type="Unix" ;; |
| 2133 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2134 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2135 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2136 | llvm_cv_os_type="Darwin" |
| 2137 | llvm_cv_platform_type="Unix" ;; |
| 2138 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2139 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2140 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2141 | llvm_cv_os_type="FreeBSD" |
| 2142 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2143 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2144 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2145 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2146 | llvm_cv_os_type="OpenBSD" |
| 2147 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2148 | *-*-netbsd*) |
| 2149 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2150 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2151 | llvm_cv_os_type="NetBSD" |
| 2152 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2153 | *-*-dragonfly*) |
| 2154 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2155 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2156 | llvm_cv_os_type="DragonFly" |
| 2157 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2158 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2159 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2160 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2161 | llvm_cv_os_type="HP-UX" |
| 2162 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2163 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2164 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2165 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2166 | llvm_cv_os_type="Interix" |
| 2167 | llvm_cv_platform_type="Unix" ;; |
| 2168 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2169 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2170 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2171 | llvm_cv_os_type="Linux" |
| 2172 | llvm_cv_platform_type="Unix" ;; |
| 2173 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2174 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2175 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2176 | llvm_cv_os_type="SunOS" |
| 2177 | llvm_cv_platform_type="Unix" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2178 | *-*-auroraux*) |
| 2179 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2180 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 2181 | llvm_cv_os_type="AuroraUX" |
| 2182 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2183 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2184 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2185 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2186 | llvm_cv_os_type="Win32" |
| 2187 | llvm_cv_platform_type="Win32" ;; |
| 2188 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2189 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2190 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2191 | llvm_cv_os_type="MingW" |
| 2192 | llvm_cv_platform_type="Win32" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2193 | *-*-haiku*) |
| 2194 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2195 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2196 | llvm_cv_os_type="Haiku" |
| 2197 | llvm_cv_platform_type="Unix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2198 | *-unknown-eabi*) |
| 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="Freestanding" |
| 2202 | llvm_cv_platform_type="Unix" ;; |
| 2203 | *-unknown-elf*) |
| 2204 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2205 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2206 | llvm_cv_os_type="Freestanding" |
| 2207 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2208 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2209 | llvm_cv_link_all_option="" |
| 2210 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2211 | llvm_cv_os_type="Unknown" |
| 2212 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2213 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2214 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2215 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2216 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2217 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2218 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 2219 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 2220 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 2221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2222 | else |
| 2223 | case $target in |
| 2224 | *-*-aix*) |
| 2225 | llvm_cv_target_os_type="AIX" ;; |
| 2226 | *-*-irix*) |
| 2227 | llvm_cv_target_os_type="IRIX" ;; |
| 2228 | *-*-cygwin*) |
| 2229 | llvm_cv_target_os_type="Cygwin" ;; |
| 2230 | *-*-darwin*) |
| 2231 | llvm_cv_target_os_type="Darwin" ;; |
| 2232 | *-*-freebsd*) |
| 2233 | llvm_cv_target_os_type="FreeBSD" ;; |
| 2234 | *-*-openbsd*) |
| 2235 | llvm_cv_target_os_type="OpenBSD" ;; |
| 2236 | *-*-netbsd*) |
| 2237 | llvm_cv_target_os_type="NetBSD" ;; |
| 2238 | *-*-dragonfly*) |
| 2239 | llvm_cv_target_os_type="DragonFly" ;; |
| 2240 | *-*-hpux*) |
| 2241 | llvm_cv_target_os_type="HP-UX" ;; |
| 2242 | *-*-interix*) |
| 2243 | llvm_cv_target_os_type="Interix" ;; |
| 2244 | *-*-linux*) |
| 2245 | llvm_cv_target_os_type="Linux" ;; |
| 2246 | *-*-solaris*) |
| 2247 | llvm_cv_target_os_type="SunOS" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2248 | *-*-auroraux*) |
| 2249 | llvm_cv_target_os_type="AuroraUX" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2250 | *-*-win32*) |
| 2251 | llvm_cv_target_os_type="Win32" ;; |
| 2252 | *-*-mingw*) |
| 2253 | llvm_cv_target_os_type="MingW" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2254 | *-*-haiku*) |
| 2255 | llvm_cv_target_os_type="Haiku" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2256 | *-unknown-eabi*) |
| 2257 | llvm_cv_target_os_type="Freestanding" ;; |
| 2258 | *) |
| 2259 | llvm_cv_target_os_type="Unknown" ;; |
| 2260 | esac |
| 2261 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2262 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 2263 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2264 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2265 | if test "$llvm_cv_os_type" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2266 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2267 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 2268 | { (exit 1); exit 1; }; } |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 2269 | fi |
| 2270 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2271 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2272 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2273 | HOST_OS=$llvm_cv_os_type |
| 2274 | |
| 2275 | TARGET_OS=$llvm_cv_target_os_type |
| 2276 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2277 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2278 | LINKALL=$llvm_cv_link_all_option |
| 2279 | |
| 2280 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2281 | |
| 2282 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2283 | case $llvm_cv_platform_type in |
| 2284 | Unix) |
| 2285 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2286 | cat >>confdefs.h <<\_ACEOF |
| 2287 | #define LLVM_ON_UNIX 1 |
| 2288 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2289 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2290 | LLVM_ON_UNIX=1 |
| 2291 | |
| 2292 | LLVM_ON_WIN32=0 |
| 2293 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2294 | ;; |
| 2295 | Win32) |
| 2296 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2297 | cat >>confdefs.h <<\_ACEOF |
| 2298 | #define LLVM_ON_WIN32 1 |
| 2299 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2300 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2301 | LLVM_ON_UNIX=0 |
| 2302 | |
| 2303 | LLVM_ON_WIN32=1 |
| 2304 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2305 | ;; |
| 2306 | esac |
| 2307 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2308 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2309 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 2310 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2312 | else |
| 2313 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2314 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2315 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2316 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2317 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2318 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2319 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2320 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2321 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2322 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2323 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2324 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 2325 | bfin-*) llvm_cv_target_arch="Blackfin" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2326 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2327 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2328 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2329 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2330 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2331 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2332 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2333 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2334 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2335 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2336 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 2337 | # Determine the LLVM native architecture for the target |
| 2338 | case "$llvm_cv_target_arch" in |
| 2339 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2340 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2341 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2342 | esac |
| 2343 | |
| 2344 | ARCH=$llvm_cv_target_arch |
| 2345 | |
| 2346 | |
| 2347 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2348 | ac_cpp='$CPP $CPPFLAGS' |
| 2349 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2350 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2351 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2352 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2353 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2354 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2355 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2356 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2357 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2359 | else |
| 2360 | if test -n "$CC"; then |
| 2361 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2362 | else |
| 2363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2364 | for as_dir in $PATH |
| 2365 | do |
| 2366 | IFS=$as_save_IFS |
| 2367 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2368 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2369 | 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] | 2370 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2371 | 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] | 2372 | break 2 |
| 2373 | fi |
| 2374 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2375 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2376 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2377 | |
| 2378 | fi |
| 2379 | fi |
| 2380 | CC=$ac_cv_prog_CC |
| 2381 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2382 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2383 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2384 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2385 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2386 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2387 | fi |
| 2388 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2389 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2390 | fi |
| 2391 | if test -z "$ac_cv_prog_CC"; then |
| 2392 | ac_ct_CC=$CC |
| 2393 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2394 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2395 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2397 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2399 | else |
| 2400 | if test -n "$ac_ct_CC"; then |
| 2401 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2402 | else |
| 2403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2404 | for as_dir in $PATH |
| 2405 | do |
| 2406 | IFS=$as_save_IFS |
| 2407 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2408 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2409 | 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] | 2410 | ac_cv_prog_ac_ct_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2411 | 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] | 2412 | break 2 |
| 2413 | fi |
| 2414 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2415 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2416 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2417 | |
| 2418 | fi |
| 2419 | fi |
| 2420 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2421 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2422 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2423 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2424 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2425 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2426 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2427 | fi |
| 2428 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2429 | if test "x$ac_ct_CC" = x; then |
| 2430 | CC="" |
| 2431 | else |
| 2432 | case $cross_compiling:$ac_tool_warned in |
| 2433 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2434 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2435 | whose name does not start with the host triplet. If you think this |
| 2436 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2437 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2438 | whose name does not start with the host triplet. If you think this |
| 2439 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2440 | ac_tool_warned=yes ;; |
| 2441 | esac |
| 2442 | CC=$ac_ct_CC |
| 2443 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2444 | else |
| 2445 | CC="$ac_cv_prog_CC" |
| 2446 | fi |
| 2447 | |
| 2448 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2449 | if test -n "$ac_tool_prefix"; then |
| 2450 | # 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] | 2451 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2452 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2453 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2454 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2456 | else |
| 2457 | if test -n "$CC"; then |
| 2458 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2459 | else |
| 2460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2461 | for as_dir in $PATH |
| 2462 | do |
| 2463 | IFS=$as_save_IFS |
| 2464 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2465 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2466 | 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] | 2467 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2468 | 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] | 2469 | break 2 |
| 2470 | fi |
| 2471 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2472 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2473 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2474 | |
| 2475 | fi |
| 2476 | fi |
| 2477 | CC=$ac_cv_prog_CC |
| 2478 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2479 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2480 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2481 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2482 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2483 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2484 | fi |
| 2485 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2486 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2487 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2488 | fi |
| 2489 | if test -z "$CC"; then |
| 2490 | # Extract the first word of "cc", so it can be a program name with args. |
| 2491 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2492 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2494 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2496 | else |
| 2497 | if test -n "$CC"; then |
| 2498 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2499 | else |
| 2500 | ac_prog_rejected=no |
| 2501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2502 | for as_dir in $PATH |
| 2503 | do |
| 2504 | IFS=$as_save_IFS |
| 2505 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2506 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2507 | 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] | 2508 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2509 | ac_prog_rejected=yes |
| 2510 | continue |
| 2511 | fi |
| 2512 | ac_cv_prog_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2513 | 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] | 2514 | break 2 |
| 2515 | fi |
| 2516 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2517 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2518 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2519 | |
| 2520 | if test $ac_prog_rejected = yes; then |
| 2521 | # We found a bogon in the path, so make sure we never use it. |
| 2522 | set dummy $ac_cv_prog_CC |
| 2523 | shift |
| 2524 | if test $# != 0; then |
| 2525 | # We chose a different compiler from the bogus one. |
| 2526 | # However, it has the same basename, so the bogon will be chosen |
| 2527 | # first if we set CC to just the basename; use the full file name. |
| 2528 | shift |
| 2529 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2530 | fi |
| 2531 | fi |
| 2532 | fi |
| 2533 | fi |
| 2534 | CC=$ac_cv_prog_CC |
| 2535 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2536 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2537 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2538 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2539 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2540 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2541 | fi |
| 2542 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2543 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2544 | fi |
| 2545 | if test -z "$CC"; then |
| 2546 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2547 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2548 | do |
| 2549 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2550 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2551 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2552 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2553 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2555 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2556 | if test -n "$CC"; then |
| 2557 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2558 | else |
| 2559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2560 | for as_dir in $PATH |
| 2561 | do |
| 2562 | IFS=$as_save_IFS |
| 2563 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2564 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2565 | 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] | 2566 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2567 | 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] | 2568 | break 2 |
| 2569 | fi |
| 2570 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2571 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2572 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2573 | |
| 2574 | fi |
| 2575 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2576 | CC=$ac_cv_prog_CC |
| 2577 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2578 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2579 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2580 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2581 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2582 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2583 | fi |
| 2584 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2585 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2586 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2587 | done |
| 2588 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2589 | if test -z "$CC"; then |
| 2590 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2591 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2592 | do |
| 2593 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2594 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2595 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2597 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2599 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2600 | if test -n "$ac_ct_CC"; then |
| 2601 | 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] | 2602 | else |
| 2603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2604 | for as_dir in $PATH |
| 2605 | do |
| 2606 | IFS=$as_save_IFS |
| 2607 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2608 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2609 | 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] | 2610 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2611 | 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] | 2612 | break 2 |
| 2613 | fi |
| 2614 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2615 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2616 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2617 | |
| 2618 | fi |
| 2619 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2620 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2621 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2622 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2623 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2624 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2625 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2626 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2627 | fi |
| 2628 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2629 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2630 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2631 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2632 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2633 | if test "x$ac_ct_CC" = x; then |
| 2634 | CC="" |
| 2635 | else |
| 2636 | case $cross_compiling:$ac_tool_warned in |
| 2637 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2638 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2639 | whose name does not start with the host triplet. If you think this |
| 2640 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2641 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2642 | whose name does not start with the host triplet. If you think this |
| 2643 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2644 | ac_tool_warned=yes ;; |
| 2645 | esac |
| 2646 | CC=$ac_ct_CC |
| 2647 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2648 | fi |
| 2649 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2650 | fi |
| 2651 | |
| 2652 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2653 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2654 | See \`config.log' for more details." >&5 |
| 2655 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2656 | See \`config.log' for more details." >&2;} |
| 2657 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2658 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2659 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2660 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2661 | ac_compiler=`set X $ac_compile; echo $2` |
| 2662 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2663 | case "(($ac_try" in |
| 2664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2665 | *) ac_try_echo=$ac_try;; |
| 2666 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2668 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2669 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2671 | (exit $ac_status); } |
| 2672 | { (ac_try="$ac_compiler -v >&5" |
| 2673 | case "(($ac_try" in |
| 2674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2675 | *) ac_try_echo=$ac_try;; |
| 2676 | esac |
| 2677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2678 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2679 | ac_status=$? |
| 2680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2681 | (exit $ac_status); } |
| 2682 | { (ac_try="$ac_compiler -V >&5" |
| 2683 | case "(($ac_try" in |
| 2684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2685 | *) ac_try_echo=$ac_try;; |
| 2686 | esac |
| 2687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2688 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2689 | ac_status=$? |
| 2690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2691 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2692 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2693 | cat >conftest.$ac_ext <<_ACEOF |
| 2694 | /* confdefs.h. */ |
| 2695 | _ACEOF |
| 2696 | cat confdefs.h >>conftest.$ac_ext |
| 2697 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2698 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2699 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2700 | int |
| 2701 | main () |
| 2702 | { |
| 2703 | |
| 2704 | ; |
| 2705 | return 0; |
| 2706 | } |
| 2707 | _ACEOF |
| 2708 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2709 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2710 | # Try to create an executable without -o first, disregard a.out. |
| 2711 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2712 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2713 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2714 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2715 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2716 | # |
| 2717 | # List of possible output files, starting from the most likely. |
| 2718 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2719 | # only as a last resort. b.out is created by i960 compilers. |
| 2720 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2721 | # |
| 2722 | # The IRIX 6 linker writes into existing files which may not be |
| 2723 | # executable, retaining their permissions. Remove them first so a |
| 2724 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2725 | ac_rmfiles= |
| 2726 | for ac_file in $ac_files |
| 2727 | do |
| 2728 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2729 | *.$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] | 2730 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2731 | esac |
| 2732 | done |
| 2733 | rm -f $ac_rmfiles |
| 2734 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2735 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2736 | case "(($ac_try" in |
| 2737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2738 | *) ac_try_echo=$ac_try;; |
| 2739 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2741 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2742 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2744 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2745 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2746 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2747 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2748 | # so that the user can short-circuit this test for compilers unknown to |
| 2749 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2750 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2751 | do |
| 2752 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2753 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2754 | *.$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] | 2755 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2756 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2757 | # We found the default executable, but exeext='' is most |
| 2758 | # certainly right. |
| 2759 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2760 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2761 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2762 | then :; else |
| 2763 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2764 | fi |
| 2765 | # We set ac_cv_exeext here because the later test for it is not |
| 2766 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2767 | # argument, so we may need to know it at that point already. |
| 2768 | # Even if this section looks crufty: it has the advantage of |
| 2769 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2770 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2771 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2772 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2773 | esac |
| 2774 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2775 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2776 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2777 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2778 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2780 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2781 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2782 | See \`config.log' for more details." >&5 |
| 2783 | echo "$as_me: error: C compiler cannot create executables |
| 2784 | See \`config.log' for more details." >&2;} |
| 2785 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2786 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2787 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2788 | ac_exeext=$ac_cv_exeext |
| 2789 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2790 | echo "${ECHO_T}$ac_file" >&6; } |
| 2791 | |
| 2792 | # Check that the compiler produces executables we can run. If not, either |
| 2793 | # the compiler is broken, or we cross compile. |
| 2794 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2795 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2796 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2797 | # If not cross compiling, check that we can run a simple program. |
| 2798 | if test "$cross_compiling" != yes; then |
| 2799 | if { ac_try='./$ac_file' |
| 2800 | { (case "(($ac_try" in |
| 2801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2802 | *) ac_try_echo=$ac_try;; |
| 2803 | esac |
| 2804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2805 | (eval "$ac_try") 2>&5 |
| 2806 | ac_status=$? |
| 2807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2808 | (exit $ac_status); }; }; then |
| 2809 | cross_compiling=no |
| 2810 | else |
| 2811 | if test "$cross_compiling" = maybe; then |
| 2812 | cross_compiling=yes |
| 2813 | else |
| 2814 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2815 | If you meant to cross compile, use \`--host'. |
| 2816 | See \`config.log' for more details." >&5 |
| 2817 | echo "$as_me: error: cannot run C compiled programs. |
| 2818 | If you meant to cross compile, use \`--host'. |
| 2819 | See \`config.log' for more details." >&2;} |
| 2820 | { (exit 1); exit 1; }; } |
| 2821 | fi |
| 2822 | fi |
| 2823 | fi |
| 2824 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2825 | echo "${ECHO_T}yes" >&6; } |
| 2826 | |
| 2827 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2828 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2829 | # Check that the compiler produces executables we can run. If not, either |
| 2830 | # the compiler is broken, or we cross compile. |
| 2831 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2832 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2833 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2834 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2835 | |
| 2836 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2837 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2838 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2839 | case "(($ac_try" in |
| 2840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2841 | *) ac_try_echo=$ac_try;; |
| 2842 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2844 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2845 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2847 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2848 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2849 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2850 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2851 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2852 | for ac_file in conftest.exe conftest conftest.*; do |
| 2853 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2854 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2855 | *.$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] | 2856 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2857 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2858 | * ) break;; |
| 2859 | esac |
| 2860 | done |
| 2861 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2862 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2863 | See \`config.log' for more details." >&5 |
| 2864 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2865 | See \`config.log' for more details." >&2;} |
| 2866 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2867 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2868 | |
| 2869 | rm -f conftest$ac_cv_exeext |
| 2870 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2871 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2872 | |
| 2873 | rm -f conftest.$ac_ext |
| 2874 | EXEEXT=$ac_cv_exeext |
| 2875 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2876 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2877 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2878 | if test "${ac_cv_objext+set}" = set; then |
| 2879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2880 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2881 | cat >conftest.$ac_ext <<_ACEOF |
| 2882 | /* confdefs.h. */ |
| 2883 | _ACEOF |
| 2884 | cat confdefs.h >>conftest.$ac_ext |
| 2885 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2886 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2887 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2888 | int |
| 2889 | main () |
| 2890 | { |
| 2891 | |
| 2892 | ; |
| 2893 | return 0; |
| 2894 | } |
| 2895 | _ACEOF |
| 2896 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2897 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2898 | case "(($ac_try" in |
| 2899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2900 | *) ac_try_echo=$ac_try;; |
| 2901 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2903 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2904 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2906 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2907 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2908 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2909 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2910 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2911 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2912 | break;; |
| 2913 | esac |
| 2914 | done |
| 2915 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2916 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2918 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2919 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2920 | See \`config.log' for more details." >&5 |
| 2921 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2922 | See \`config.log' for more details." >&2;} |
| 2923 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2924 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2925 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2926 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2927 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2928 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2929 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2930 | OBJEXT=$ac_cv_objext |
| 2931 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2932 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2933 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2934 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2936 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2937 | cat >conftest.$ac_ext <<_ACEOF |
| 2938 | /* confdefs.h. */ |
| 2939 | _ACEOF |
| 2940 | cat confdefs.h >>conftest.$ac_ext |
| 2941 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2942 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2943 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2944 | int |
| 2945 | main () |
| 2946 | { |
| 2947 | #ifndef __GNUC__ |
| 2948 | choke me |
| 2949 | #endif |
| 2950 | |
| 2951 | ; |
| 2952 | return 0; |
| 2953 | } |
| 2954 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2955 | rm -f conftest.$ac_objext |
| 2956 | if { (ac_try="$ac_compile" |
| 2957 | case "(($ac_try" in |
| 2958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2959 | *) ac_try_echo=$ac_try;; |
| 2960 | esac |
| 2961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2962 | (eval "$ac_compile") 2>conftest.er1 |
| 2963 | ac_status=$? |
| 2964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2965 | rm -f conftest.er1 |
| 2966 | cat conftest.err >&5 |
| 2967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2968 | (exit $ac_status); } && |
| 2969 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2970 | { (case "(($ac_try" in |
| 2971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2972 | *) ac_try_echo=$ac_try;; |
| 2973 | esac |
| 2974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2975 | (eval "$ac_try") 2>&5 |
| 2976 | ac_status=$? |
| 2977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2978 | (exit $ac_status); }; } && |
| 2979 | { ac_try='test -s conftest.$ac_objext' |
| 2980 | { (case "(($ac_try" in |
| 2981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2982 | *) ac_try_echo=$ac_try;; |
| 2983 | esac |
| 2984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2985 | (eval "$ac_try") 2>&5 |
| 2986 | ac_status=$? |
| 2987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2988 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2989 | ac_compiler_gnu=yes |
| 2990 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2991 | echo "$as_me: failed program was:" >&5 |
| 2992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2993 | |
| 2994 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2995 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2996 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2998 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2999 | |
| 3000 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3001 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3002 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3003 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3004 | ac_test_CFLAGS=${CFLAGS+set} |
| 3005 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3006 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3007 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 3008 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3010 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3011 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3012 | ac_c_werror_flag=yes |
| 3013 | ac_cv_prog_cc_g=no |
| 3014 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3015 | cat >conftest.$ac_ext <<_ACEOF |
| 3016 | /* confdefs.h. */ |
| 3017 | _ACEOF |
| 3018 | cat confdefs.h >>conftest.$ac_ext |
| 3019 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3020 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3021 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3022 | int |
| 3023 | main () |
| 3024 | { |
| 3025 | |
| 3026 | ; |
| 3027 | return 0; |
| 3028 | } |
| 3029 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3030 | rm -f conftest.$ac_objext |
| 3031 | if { (ac_try="$ac_compile" |
| 3032 | case "(($ac_try" in |
| 3033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3034 | *) ac_try_echo=$ac_try;; |
| 3035 | esac |
| 3036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3037 | (eval "$ac_compile") 2>conftest.er1 |
| 3038 | ac_status=$? |
| 3039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3040 | rm -f conftest.er1 |
| 3041 | cat conftest.err >&5 |
| 3042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3043 | (exit $ac_status); } && |
| 3044 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3045 | { (case "(($ac_try" in |
| 3046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3047 | *) ac_try_echo=$ac_try;; |
| 3048 | esac |
| 3049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3050 | (eval "$ac_try") 2>&5 |
| 3051 | ac_status=$? |
| 3052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3053 | (exit $ac_status); }; } && |
| 3054 | { ac_try='test -s conftest.$ac_objext' |
| 3055 | { (case "(($ac_try" in |
| 3056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3057 | *) ac_try_echo=$ac_try;; |
| 3058 | esac |
| 3059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3060 | (eval "$ac_try") 2>&5 |
| 3061 | ac_status=$? |
| 3062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3063 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3064 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3065 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3066 | echo "$as_me: failed program was:" >&5 |
| 3067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3068 | |
| 3069 | CFLAGS="" |
| 3070 | cat >conftest.$ac_ext <<_ACEOF |
| 3071 | /* confdefs.h. */ |
| 3072 | _ACEOF |
| 3073 | cat confdefs.h >>conftest.$ac_ext |
| 3074 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3075 | /* end confdefs.h. */ |
| 3076 | |
| 3077 | int |
| 3078 | main () |
| 3079 | { |
| 3080 | |
| 3081 | ; |
| 3082 | return 0; |
| 3083 | } |
| 3084 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3085 | rm -f conftest.$ac_objext |
| 3086 | if { (ac_try="$ac_compile" |
| 3087 | case "(($ac_try" in |
| 3088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3089 | *) ac_try_echo=$ac_try;; |
| 3090 | esac |
| 3091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3092 | (eval "$ac_compile") 2>conftest.er1 |
| 3093 | ac_status=$? |
| 3094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3095 | rm -f conftest.er1 |
| 3096 | cat conftest.err >&5 |
| 3097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3098 | (exit $ac_status); } && |
| 3099 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3100 | { (case "(($ac_try" in |
| 3101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3102 | *) ac_try_echo=$ac_try;; |
| 3103 | esac |
| 3104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3105 | (eval "$ac_try") 2>&5 |
| 3106 | ac_status=$? |
| 3107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3108 | (exit $ac_status); }; } && |
| 3109 | { ac_try='test -s conftest.$ac_objext' |
| 3110 | { (case "(($ac_try" in |
| 3111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3112 | *) ac_try_echo=$ac_try;; |
| 3113 | esac |
| 3114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3115 | (eval "$ac_try") 2>&5 |
| 3116 | ac_status=$? |
| 3117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3118 | (exit $ac_status); }; }; then |
| 3119 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3120 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3121 | echo "$as_me: failed program was:" >&5 |
| 3122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3123 | |
| 3124 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3125 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3126 | cat >conftest.$ac_ext <<_ACEOF |
| 3127 | /* confdefs.h. */ |
| 3128 | _ACEOF |
| 3129 | cat confdefs.h >>conftest.$ac_ext |
| 3130 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3131 | /* end confdefs.h. */ |
| 3132 | |
| 3133 | int |
| 3134 | main () |
| 3135 | { |
| 3136 | |
| 3137 | ; |
| 3138 | return 0; |
| 3139 | } |
| 3140 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3141 | rm -f conftest.$ac_objext |
| 3142 | if { (ac_try="$ac_compile" |
| 3143 | case "(($ac_try" in |
| 3144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3145 | *) ac_try_echo=$ac_try;; |
| 3146 | esac |
| 3147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3148 | (eval "$ac_compile") 2>conftest.er1 |
| 3149 | ac_status=$? |
| 3150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3151 | rm -f conftest.er1 |
| 3152 | cat conftest.err >&5 |
| 3153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3154 | (exit $ac_status); } && |
| 3155 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3156 | { (case "(($ac_try" in |
| 3157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3158 | *) ac_try_echo=$ac_try;; |
| 3159 | esac |
| 3160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3161 | (eval "$ac_try") 2>&5 |
| 3162 | ac_status=$? |
| 3163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3164 | (exit $ac_status); }; } && |
| 3165 | { ac_try='test -s conftest.$ac_objext' |
| 3166 | { (case "(($ac_try" in |
| 3167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3168 | *) ac_try_echo=$ac_try;; |
| 3169 | esac |
| 3170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3171 | (eval "$ac_try") 2>&5 |
| 3172 | ac_status=$? |
| 3173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3174 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3175 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3176 | else |
| 3177 | echo "$as_me: failed program was:" >&5 |
| 3178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3179 | |
| 3180 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3181 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3182 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3184 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3185 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3187 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3188 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3190 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3191 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3192 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3193 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3194 | if test "$ac_test_CFLAGS" = set; then |
| 3195 | CFLAGS=$ac_save_CFLAGS |
| 3196 | elif test $ac_cv_prog_cc_g = yes; then |
| 3197 | if test "$GCC" = yes; then |
| 3198 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3199 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3200 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3201 | fi |
| 3202 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3203 | if test "$GCC" = yes; then |
| 3204 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3205 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3206 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3207 | fi |
| 3208 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3209 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3210 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3211 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 3212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3213 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3214 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3215 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3216 | cat >conftest.$ac_ext <<_ACEOF |
| 3217 | /* confdefs.h. */ |
| 3218 | _ACEOF |
| 3219 | cat confdefs.h >>conftest.$ac_ext |
| 3220 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3221 | /* end confdefs.h. */ |
| 3222 | #include <stdarg.h> |
| 3223 | #include <stdio.h> |
| 3224 | #include <sys/types.h> |
| 3225 | #include <sys/stat.h> |
| 3226 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3227 | struct buf { int x; }; |
| 3228 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3229 | static char *e (p, i) |
| 3230 | char **p; |
| 3231 | int i; |
| 3232 | { |
| 3233 | return p[i]; |
| 3234 | } |
| 3235 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3236 | { |
| 3237 | char *s; |
| 3238 | va_list v; |
| 3239 | va_start (v,p); |
| 3240 | s = g (p, va_arg (v,int)); |
| 3241 | va_end (v); |
| 3242 | return s; |
| 3243 | } |
| 3244 | |
| 3245 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3246 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3247 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3248 | 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] | 3249 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3250 | 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] | 3251 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3252 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3253 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3254 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3255 | inside strings and character constants. */ |
| 3256 | #define FOO(x) 'x' |
| 3257 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3258 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3259 | int test (int i, double x); |
| 3260 | struct s1 {int (*f) (int a);}; |
| 3261 | struct s2 {int (*f) (double a);}; |
| 3262 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3263 | int argc; |
| 3264 | char **argv; |
| 3265 | int |
| 3266 | main () |
| 3267 | { |
| 3268 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3269 | ; |
| 3270 | return 0; |
| 3271 | } |
| 3272 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3273 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3274 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3275 | do |
| 3276 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3277 | rm -f conftest.$ac_objext |
| 3278 | if { (ac_try="$ac_compile" |
| 3279 | case "(($ac_try" in |
| 3280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3281 | *) ac_try_echo=$ac_try;; |
| 3282 | esac |
| 3283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3284 | (eval "$ac_compile") 2>conftest.er1 |
| 3285 | ac_status=$? |
| 3286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3287 | rm -f conftest.er1 |
| 3288 | cat conftest.err >&5 |
| 3289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3290 | (exit $ac_status); } && |
| 3291 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3292 | { (case "(($ac_try" in |
| 3293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3294 | *) ac_try_echo=$ac_try;; |
| 3295 | esac |
| 3296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3297 | (eval "$ac_try") 2>&5 |
| 3298 | ac_status=$? |
| 3299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3300 | (exit $ac_status); }; } && |
| 3301 | { ac_try='test -s conftest.$ac_objext' |
| 3302 | { (case "(($ac_try" in |
| 3303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3304 | *) ac_try_echo=$ac_try;; |
| 3305 | esac |
| 3306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3307 | (eval "$ac_try") 2>&5 |
| 3308 | ac_status=$? |
| 3309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3310 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3311 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3312 | else |
| 3313 | echo "$as_me: failed program was:" >&5 |
| 3314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3315 | |
| 3316 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3317 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3318 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3319 | rm -f core conftest.err conftest.$ac_objext |
| 3320 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3321 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3322 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3323 | CC=$ac_save_CC |
| 3324 | |
| 3325 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3326 | # AC_CACHE_VAL |
| 3327 | case "x$ac_cv_prog_cc_c89" in |
| 3328 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3329 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3330 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3331 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3332 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3333 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3334 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3335 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3336 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3337 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3338 | esac |
| 3339 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3340 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3341 | ac_ext=c |
| 3342 | ac_cpp='$CPP $CPPFLAGS' |
| 3343 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3344 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3345 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3346 | |
| 3347 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3348 | ac_ext=c |
| 3349 | ac_cpp='$CPP $CPPFLAGS' |
| 3350 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3351 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3352 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3353 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3354 | 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] | 3355 | # On Suns, sometimes $CPP names a directory. |
| 3356 | if test -n "$CPP" && test -d "$CPP"; then |
| 3357 | CPP= |
| 3358 | fi |
| 3359 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3360 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3362 | else |
| 3363 | # Double quotes because CPP needs to be expanded |
| 3364 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3365 | do |
| 3366 | ac_preproc_ok=false |
| 3367 | for ac_c_preproc_warn_flag in '' yes |
| 3368 | do |
| 3369 | # Use a header file that comes with gcc, so configuring glibc |
| 3370 | # with a fresh cross-compiler works. |
| 3371 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3372 | # <limits.h> exists even on freestanding compilers. |
| 3373 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3374 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3375 | cat >conftest.$ac_ext <<_ACEOF |
| 3376 | /* confdefs.h. */ |
| 3377 | _ACEOF |
| 3378 | cat confdefs.h >>conftest.$ac_ext |
| 3379 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3380 | /* end confdefs.h. */ |
| 3381 | #ifdef __STDC__ |
| 3382 | # include <limits.h> |
| 3383 | #else |
| 3384 | # include <assert.h> |
| 3385 | #endif |
| 3386 | Syntax error |
| 3387 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3388 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3389 | case "(($ac_try" in |
| 3390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3391 | *) ac_try_echo=$ac_try;; |
| 3392 | esac |
| 3393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3394 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3395 | ac_status=$? |
| 3396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3397 | rm -f conftest.er1 |
| 3398 | cat conftest.err >&5 |
| 3399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3400 | (exit $ac_status); } >/dev/null; then |
| 3401 | if test -s conftest.err; then |
| 3402 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3403 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3404 | else |
| 3405 | ac_cpp_err= |
| 3406 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3407 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3408 | ac_cpp_err=yes |
| 3409 | fi |
| 3410 | if test -z "$ac_cpp_err"; then |
| 3411 | : |
| 3412 | else |
| 3413 | echo "$as_me: failed program was:" >&5 |
| 3414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3415 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3416 | # Broken: fails on valid input. |
| 3417 | continue |
| 3418 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3419 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3420 | rm -f conftest.err conftest.$ac_ext |
| 3421 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3422 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3423 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3424 | cat >conftest.$ac_ext <<_ACEOF |
| 3425 | /* confdefs.h. */ |
| 3426 | _ACEOF |
| 3427 | cat confdefs.h >>conftest.$ac_ext |
| 3428 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3429 | /* end confdefs.h. */ |
| 3430 | #include <ac_nonexistent.h> |
| 3431 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3432 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3433 | case "(($ac_try" in |
| 3434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3435 | *) ac_try_echo=$ac_try;; |
| 3436 | esac |
| 3437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3438 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3439 | ac_status=$? |
| 3440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3441 | rm -f conftest.er1 |
| 3442 | cat conftest.err >&5 |
| 3443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3444 | (exit $ac_status); } >/dev/null; then |
| 3445 | if test -s conftest.err; then |
| 3446 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3447 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3448 | else |
| 3449 | ac_cpp_err= |
| 3450 | fi |
| 3451 | else |
| 3452 | ac_cpp_err=yes |
| 3453 | fi |
| 3454 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3455 | # Broken: success on invalid input. |
| 3456 | continue |
| 3457 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3458 | echo "$as_me: failed program was:" >&5 |
| 3459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3460 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3461 | # Passes both tests. |
| 3462 | ac_preproc_ok=: |
| 3463 | break |
| 3464 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3465 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3466 | rm -f conftest.err conftest.$ac_ext |
| 3467 | |
| 3468 | done |
| 3469 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3470 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3471 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3472 | break |
| 3473 | fi |
| 3474 | |
| 3475 | done |
| 3476 | ac_cv_prog_CPP=$CPP |
| 3477 | |
| 3478 | fi |
| 3479 | CPP=$ac_cv_prog_CPP |
| 3480 | else |
| 3481 | ac_cv_prog_CPP=$CPP |
| 3482 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3483 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3484 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3485 | ac_preproc_ok=false |
| 3486 | for ac_c_preproc_warn_flag in '' yes |
| 3487 | do |
| 3488 | # Use a header file that comes with gcc, so configuring glibc |
| 3489 | # with a fresh cross-compiler works. |
| 3490 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3491 | # <limits.h> exists even on freestanding compilers. |
| 3492 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3493 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3494 | cat >conftest.$ac_ext <<_ACEOF |
| 3495 | /* confdefs.h. */ |
| 3496 | _ACEOF |
| 3497 | cat confdefs.h >>conftest.$ac_ext |
| 3498 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3499 | /* end confdefs.h. */ |
| 3500 | #ifdef __STDC__ |
| 3501 | # include <limits.h> |
| 3502 | #else |
| 3503 | # include <assert.h> |
| 3504 | #endif |
| 3505 | Syntax error |
| 3506 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3507 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3508 | case "(($ac_try" in |
| 3509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3510 | *) ac_try_echo=$ac_try;; |
| 3511 | esac |
| 3512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3513 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3514 | ac_status=$? |
| 3515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3516 | rm -f conftest.er1 |
| 3517 | cat conftest.err >&5 |
| 3518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3519 | (exit $ac_status); } >/dev/null; then |
| 3520 | if test -s conftest.err; then |
| 3521 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3522 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3523 | else |
| 3524 | ac_cpp_err= |
| 3525 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3526 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3527 | ac_cpp_err=yes |
| 3528 | fi |
| 3529 | if test -z "$ac_cpp_err"; then |
| 3530 | : |
| 3531 | else |
| 3532 | echo "$as_me: failed program was:" >&5 |
| 3533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3534 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3535 | # Broken: fails on valid input. |
| 3536 | continue |
| 3537 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3538 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3539 | rm -f conftest.err conftest.$ac_ext |
| 3540 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3541 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3542 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3543 | cat >conftest.$ac_ext <<_ACEOF |
| 3544 | /* confdefs.h. */ |
| 3545 | _ACEOF |
| 3546 | cat confdefs.h >>conftest.$ac_ext |
| 3547 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3548 | /* end confdefs.h. */ |
| 3549 | #include <ac_nonexistent.h> |
| 3550 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3551 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3552 | case "(($ac_try" in |
| 3553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3554 | *) ac_try_echo=$ac_try;; |
| 3555 | esac |
| 3556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3557 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3558 | ac_status=$? |
| 3559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3560 | rm -f conftest.er1 |
| 3561 | cat conftest.err >&5 |
| 3562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3563 | (exit $ac_status); } >/dev/null; then |
| 3564 | if test -s conftest.err; then |
| 3565 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3566 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3567 | else |
| 3568 | ac_cpp_err= |
| 3569 | fi |
| 3570 | else |
| 3571 | ac_cpp_err=yes |
| 3572 | fi |
| 3573 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3574 | # Broken: success on invalid input. |
| 3575 | continue |
| 3576 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3577 | echo "$as_me: failed program was:" >&5 |
| 3578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3579 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3580 | # Passes both tests. |
| 3581 | ac_preproc_ok=: |
| 3582 | break |
| 3583 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3584 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3585 | rm -f conftest.err conftest.$ac_ext |
| 3586 | |
| 3587 | done |
| 3588 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3589 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3590 | if $ac_preproc_ok; then |
| 3591 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3592 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3593 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3594 | See \`config.log' for more details." >&5 |
| 3595 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3596 | See \`config.log' for more details." >&2;} |
| 3597 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3598 | fi |
| 3599 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3600 | ac_ext=c |
| 3601 | ac_cpp='$CPP $CPPFLAGS' |
| 3602 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3603 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3604 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3605 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3606 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3607 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3608 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3609 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3611 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3612 | # Extract the first word of "grep ggrep" to use in msg output |
| 3613 | if test -z "$GREP"; then |
| 3614 | set dummy grep ggrep; ac_prog_name=$2 |
| 3615 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3617 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3618 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3619 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3621 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3622 | do |
| 3623 | IFS=$as_save_IFS |
| 3624 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3625 | for ac_prog in grep ggrep; do |
| 3626 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3627 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3628 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3629 | # 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] | 3630 | # Check for GNU $ac_path_GREP |
| 3631 | case `"$ac_path_GREP" --version 2>&1` in |
| 3632 | *GNU*) |
| 3633 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3634 | *) |
| 3635 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3636 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3637 | while : |
| 3638 | do |
| 3639 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3640 | mv "conftest.tmp" "conftest.in" |
| 3641 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3642 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3643 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3644 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3645 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3646 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3647 | # Best one so far, save it but keep looking for a better one |
| 3648 | ac_cv_path_GREP="$ac_path_GREP" |
| 3649 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3650 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3651 | # 10*(2^10) chars as input seems more than enough |
| 3652 | test $ac_count -gt 10 && break |
| 3653 | done |
| 3654 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3655 | esac |
| 3656 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3657 | |
| 3658 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3659 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3660 | done |
| 3661 | |
| 3662 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3663 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3664 | |
| 3665 | |
| 3666 | fi |
| 3667 | |
| 3668 | GREP="$ac_cv_path_GREP" |
| 3669 | if test -z "$GREP"; then |
| 3670 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3671 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3672 | { (exit 1); exit 1; }; } |
| 3673 | fi |
| 3674 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3675 | else |
| 3676 | ac_cv_path_GREP=$GREP |
| 3677 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3678 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3679 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3680 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3681 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3682 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3683 | GREP="$ac_cv_path_GREP" |
| 3684 | |
| 3685 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3686 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3687 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3688 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3690 | else |
| 3691 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3692 | then ac_cv_path_EGREP="$GREP -E" |
| 3693 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3694 | # Extract the first word of "egrep" to use in msg output |
| 3695 | if test -z "$EGREP"; then |
| 3696 | set dummy egrep; ac_prog_name=$2 |
| 3697 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3699 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3700 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3701 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3703 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3704 | do |
| 3705 | IFS=$as_save_IFS |
| 3706 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3707 | for ac_prog in egrep; do |
| 3708 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3709 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3710 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3711 | # 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] | 3712 | # Check for GNU $ac_path_EGREP |
| 3713 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3714 | *GNU*) |
| 3715 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3716 | *) |
| 3717 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3718 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3719 | while : |
| 3720 | do |
| 3721 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3722 | mv "conftest.tmp" "conftest.in" |
| 3723 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3724 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3725 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3726 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3727 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3728 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3729 | # Best one so far, save it but keep looking for a better one |
| 3730 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3731 | ac_path_EGREP_max=$ac_count |
| 3732 | fi |
| 3733 | # 10*(2^10) chars as input seems more than enough |
| 3734 | test $ac_count -gt 10 && break |
| 3735 | done |
| 3736 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3737 | esac |
| 3738 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3739 | |
| 3740 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3741 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3742 | done |
| 3743 | |
| 3744 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3745 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3746 | |
| 3747 | |
| 3748 | fi |
| 3749 | |
| 3750 | EGREP="$ac_cv_path_EGREP" |
| 3751 | if test -z "$EGREP"; then |
| 3752 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3753 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3754 | { (exit 1); exit 1; }; } |
| 3755 | fi |
| 3756 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3757 | else |
| 3758 | ac_cv_path_EGREP=$EGREP |
| 3759 | fi |
| 3760 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3761 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3762 | fi |
| 3763 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3764 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3765 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3766 | EGREP="$ac_cv_path_EGREP" |
| 3767 | |
| 3768 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3769 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3770 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 3771 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3773 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3774 | cat >conftest.$ac_ext <<_ACEOF |
| 3775 | /* confdefs.h. */ |
| 3776 | _ACEOF |
| 3777 | cat confdefs.h >>conftest.$ac_ext |
| 3778 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3779 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3780 | #include <stdlib.h> |
| 3781 | #include <stdarg.h> |
| 3782 | #include <string.h> |
| 3783 | #include <float.h> |
| 3784 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3785 | int |
| 3786 | main () |
| 3787 | { |
| 3788 | |
| 3789 | ; |
| 3790 | return 0; |
| 3791 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3792 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3793 | rm -f conftest.$ac_objext |
| 3794 | if { (ac_try="$ac_compile" |
| 3795 | case "(($ac_try" in |
| 3796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3797 | *) ac_try_echo=$ac_try;; |
| 3798 | esac |
| 3799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3800 | (eval "$ac_compile") 2>conftest.er1 |
| 3801 | ac_status=$? |
| 3802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3803 | rm -f conftest.er1 |
| 3804 | cat conftest.err >&5 |
| 3805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3806 | (exit $ac_status); } && |
| 3807 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3808 | { (case "(($ac_try" in |
| 3809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3810 | *) ac_try_echo=$ac_try;; |
| 3811 | esac |
| 3812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3813 | (eval "$ac_try") 2>&5 |
| 3814 | ac_status=$? |
| 3815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3816 | (exit $ac_status); }; } && |
| 3817 | { ac_try='test -s conftest.$ac_objext' |
| 3818 | { (case "(($ac_try" in |
| 3819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3820 | *) ac_try_echo=$ac_try;; |
| 3821 | esac |
| 3822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3823 | (eval "$ac_try") 2>&5 |
| 3824 | ac_status=$? |
| 3825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3826 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3827 | ac_cv_header_stdc=yes |
| 3828 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3829 | echo "$as_me: failed program was:" >&5 |
| 3830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3831 | |
| 3832 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3833 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3834 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3836 | |
| 3837 | if test $ac_cv_header_stdc = yes; then |
| 3838 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3839 | cat >conftest.$ac_ext <<_ACEOF |
| 3840 | /* confdefs.h. */ |
| 3841 | _ACEOF |
| 3842 | cat confdefs.h >>conftest.$ac_ext |
| 3843 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3844 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3845 | #include <string.h> |
| 3846 | |
| 3847 | _ACEOF |
| 3848 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3849 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3850 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3851 | else |
| 3852 | ac_cv_header_stdc=no |
| 3853 | fi |
| 3854 | rm -f conftest* |
| 3855 | |
| 3856 | fi |
| 3857 | |
| 3858 | if test $ac_cv_header_stdc = yes; then |
| 3859 | # 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] | 3860 | cat >conftest.$ac_ext <<_ACEOF |
| 3861 | /* confdefs.h. */ |
| 3862 | _ACEOF |
| 3863 | cat confdefs.h >>conftest.$ac_ext |
| 3864 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3865 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3866 | #include <stdlib.h> |
| 3867 | |
| 3868 | _ACEOF |
| 3869 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3870 | $EGREP "free" >/dev/null 2>&1; then |
| 3871 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3872 | else |
| 3873 | ac_cv_header_stdc=no |
| 3874 | fi |
| 3875 | rm -f conftest* |
| 3876 | |
| 3877 | fi |
| 3878 | |
| 3879 | if test $ac_cv_header_stdc = yes; then |
| 3880 | # /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] | 3881 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3882 | : |
| 3883 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3884 | cat >conftest.$ac_ext <<_ACEOF |
| 3885 | /* confdefs.h. */ |
| 3886 | _ACEOF |
| 3887 | cat confdefs.h >>conftest.$ac_ext |
| 3888 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3889 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3890 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3891 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3892 | #if ((' ' & 0x0FF) == 0x020) |
| 3893 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3894 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3895 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3896 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3897 | (('a' <= (c) && (c) <= 'i') \ |
| 3898 | || ('j' <= (c) && (c) <= 'r') \ |
| 3899 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3900 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3901 | #endif |
| 3902 | |
| 3903 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3904 | int |
| 3905 | main () |
| 3906 | { |
| 3907 | int i; |
| 3908 | for (i = 0; i < 256; i++) |
| 3909 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3910 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3911 | return 2; |
| 3912 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3913 | } |
| 3914 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3915 | rm -f conftest$ac_exeext |
| 3916 | if { (ac_try="$ac_link" |
| 3917 | case "(($ac_try" in |
| 3918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3919 | *) ac_try_echo=$ac_try;; |
| 3920 | esac |
| 3921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3922 | (eval "$ac_link") 2>&5 |
| 3923 | ac_status=$? |
| 3924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3925 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3926 | { (case "(($ac_try" in |
| 3927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3928 | *) ac_try_echo=$ac_try;; |
| 3929 | esac |
| 3930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3931 | (eval "$ac_try") 2>&5 |
| 3932 | ac_status=$? |
| 3933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3934 | (exit $ac_status); }; }; then |
| 3935 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3936 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3937 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3938 | echo "$as_me: failed program was:" >&5 |
| 3939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3940 | |
| 3941 | ( exit $ac_status ) |
| 3942 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3943 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3944 | 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] | 3945 | fi |
| 3946 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3947 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3948 | fi |
| 3949 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3950 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3951 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3952 | if test $ac_cv_header_stdc = yes; then |
| 3953 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3954 | cat >>confdefs.h <<\_ACEOF |
| 3955 | #define STDC_HEADERS 1 |
| 3956 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3957 | |
| 3958 | fi |
| 3959 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3960 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3961 | |
| 3962 | |
| 3963 | |
| 3964 | |
| 3965 | |
| 3966 | |
| 3967 | |
| 3968 | |
| 3969 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3970 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3971 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3972 | do |
| 3973 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3974 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3975 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3976 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3978 | else |
| 3979 | cat >conftest.$ac_ext <<_ACEOF |
| 3980 | /* confdefs.h. */ |
| 3981 | _ACEOF |
| 3982 | cat confdefs.h >>conftest.$ac_ext |
| 3983 | cat >>conftest.$ac_ext <<_ACEOF |
| 3984 | /* end confdefs.h. */ |
| 3985 | $ac_includes_default |
| 3986 | |
| 3987 | #include <$ac_header> |
| 3988 | _ACEOF |
| 3989 | rm -f conftest.$ac_objext |
| 3990 | if { (ac_try="$ac_compile" |
| 3991 | case "(($ac_try" in |
| 3992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3993 | *) ac_try_echo=$ac_try;; |
| 3994 | esac |
| 3995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3996 | (eval "$ac_compile") 2>conftest.er1 |
| 3997 | ac_status=$? |
| 3998 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3999 | rm -f conftest.er1 |
| 4000 | cat conftest.err >&5 |
| 4001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4002 | (exit $ac_status); } && |
| 4003 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4004 | { (case "(($ac_try" in |
| 4005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4006 | *) ac_try_echo=$ac_try;; |
| 4007 | esac |
| 4008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4009 | (eval "$ac_try") 2>&5 |
| 4010 | ac_status=$? |
| 4011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4012 | (exit $ac_status); }; } && |
| 4013 | { ac_try='test -s conftest.$ac_objext' |
| 4014 | { (case "(($ac_try" in |
| 4015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4016 | *) ac_try_echo=$ac_try;; |
| 4017 | esac |
| 4018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4019 | (eval "$ac_try") 2>&5 |
| 4020 | ac_status=$? |
| 4021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4022 | (exit $ac_status); }; }; then |
| 4023 | eval "$as_ac_Header=yes" |
| 4024 | else |
| 4025 | echo "$as_me: failed program was:" >&5 |
| 4026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4027 | |
| 4028 | eval "$as_ac_Header=no" |
| 4029 | fi |
| 4030 | |
| 4031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4032 | fi |
| 4033 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4034 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4035 | echo "${ECHO_T}$ac_res" >&6; } |
| 4036 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4037 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4038 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4039 | _ACEOF |
| 4040 | |
| 4041 | fi |
| 4042 | |
| 4043 | done |
| 4044 | |
| 4045 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4046 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4047 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4048 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4050 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4051 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4052 | cat >conftest.$ac_ext <<_ACEOF |
| 4053 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4054 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4055 | cat confdefs.h >>conftest.$ac_ext |
| 4056 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4057 | /* end confdefs.h. */ |
| 4058 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4059 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4060 | |
| 4061 | int |
| 4062 | main () |
| 4063 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4064 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4065 | bogus endian macros |
| 4066 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4067 | |
| 4068 | ; |
| 4069 | return 0; |
| 4070 | } |
| 4071 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4106 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4107 | cat >conftest.$ac_ext <<_ACEOF |
| 4108 | /* confdefs.h. */ |
| 4109 | _ACEOF |
| 4110 | cat confdefs.h >>conftest.$ac_ext |
| 4111 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4112 | /* end confdefs.h. */ |
| 4113 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4114 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4115 | |
| 4116 | int |
| 4117 | main () |
| 4118 | { |
| 4119 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4120 | not big endian |
| 4121 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4122 | |
| 4123 | ; |
| 4124 | return 0; |
| 4125 | } |
| 4126 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4127 | rm -f conftest.$ac_objext |
| 4128 | if { (ac_try="$ac_compile" |
| 4129 | case "(($ac_try" in |
| 4130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4131 | *) ac_try_echo=$ac_try;; |
| 4132 | esac |
| 4133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4134 | (eval "$ac_compile") 2>conftest.er1 |
| 4135 | ac_status=$? |
| 4136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4137 | rm -f conftest.er1 |
| 4138 | cat conftest.err >&5 |
| 4139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4140 | (exit $ac_status); } && |
| 4141 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4142 | { (case "(($ac_try" in |
| 4143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4144 | *) ac_try_echo=$ac_try;; |
| 4145 | esac |
| 4146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4147 | (eval "$ac_try") 2>&5 |
| 4148 | ac_status=$? |
| 4149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4150 | (exit $ac_status); }; } && |
| 4151 | { ac_try='test -s conftest.$ac_objext' |
| 4152 | { (case "(($ac_try" in |
| 4153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4154 | *) ac_try_echo=$ac_try;; |
| 4155 | esac |
| 4156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4157 | (eval "$ac_try") 2>&5 |
| 4158 | ac_status=$? |
| 4159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4160 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4161 | ac_cv_c_bigendian=yes |
| 4162 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4163 | echo "$as_me: failed program was:" >&5 |
| 4164 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4165 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4166 | ac_cv_c_bigendian=no |
| 4167 | fi |
| 4168 | |
| 4169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4170 | else |
| 4171 | echo "$as_me: failed program was:" >&5 |
| 4172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4173 | |
| 4174 | # It does not; compile a test program. |
| 4175 | if test "$cross_compiling" = yes; then |
| 4176 | # try to guess the endianness by grepping values into an object file |
| 4177 | ac_cv_c_bigendian=unknown |
| 4178 | cat >conftest.$ac_ext <<_ACEOF |
| 4179 | /* confdefs.h. */ |
| 4180 | _ACEOF |
| 4181 | cat confdefs.h >>conftest.$ac_ext |
| 4182 | cat >>conftest.$ac_ext <<_ACEOF |
| 4183 | /* end confdefs.h. */ |
| 4184 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4185 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4186 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4187 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4188 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4189 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4190 | int |
| 4191 | main () |
| 4192 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4193 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4194 | ; |
| 4195 | return 0; |
| 4196 | } |
| 4197 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4198 | rm -f conftest.$ac_objext |
| 4199 | if { (ac_try="$ac_compile" |
| 4200 | case "(($ac_try" in |
| 4201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4202 | *) ac_try_echo=$ac_try;; |
| 4203 | esac |
| 4204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4205 | (eval "$ac_compile") 2>conftest.er1 |
| 4206 | ac_status=$? |
| 4207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4208 | rm -f conftest.er1 |
| 4209 | cat conftest.err >&5 |
| 4210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4211 | (exit $ac_status); } && |
| 4212 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4213 | { (case "(($ac_try" in |
| 4214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4215 | *) ac_try_echo=$ac_try;; |
| 4216 | esac |
| 4217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4218 | (eval "$ac_try") 2>&5 |
| 4219 | ac_status=$? |
| 4220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4221 | (exit $ac_status); }; } && |
| 4222 | { ac_try='test -s conftest.$ac_objext' |
| 4223 | { (case "(($ac_try" in |
| 4224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4225 | *) ac_try_echo=$ac_try;; |
| 4226 | esac |
| 4227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4228 | (eval "$ac_try") 2>&5 |
| 4229 | ac_status=$? |
| 4230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4231 | (exit $ac_status); }; }; then |
| 4232 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4233 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4234 | fi |
| 4235 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4236 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4237 | ac_cv_c_bigendian=no |
| 4238 | else |
| 4239 | # finding both strings is unlikely to happen, but who knows? |
| 4240 | ac_cv_c_bigendian=unknown |
| 4241 | fi |
| 4242 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4243 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4244 | echo "$as_me: failed program was:" >&5 |
| 4245 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4246 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4247 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4248 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4249 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4251 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4252 | cat >conftest.$ac_ext <<_ACEOF |
| 4253 | /* confdefs.h. */ |
| 4254 | _ACEOF |
| 4255 | cat confdefs.h >>conftest.$ac_ext |
| 4256 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4257 | /* end confdefs.h. */ |
| 4258 | $ac_includes_default |
| 4259 | int |
| 4260 | main () |
| 4261 | { |
| 4262 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4263 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4264 | union |
| 4265 | { |
| 4266 | long int l; |
| 4267 | char c[sizeof (long int)]; |
| 4268 | } u; |
| 4269 | u.l = 1; |
| 4270 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4271 | |
| 4272 | ; |
| 4273 | return 0; |
| 4274 | } |
| 4275 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4276 | rm -f conftest$ac_exeext |
| 4277 | if { (ac_try="$ac_link" |
| 4278 | case "(($ac_try" in |
| 4279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4280 | *) ac_try_echo=$ac_try;; |
| 4281 | esac |
| 4282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4283 | (eval "$ac_link") 2>&5 |
| 4284 | ac_status=$? |
| 4285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4286 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4287 | { (case "(($ac_try" in |
| 4288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4289 | *) ac_try_echo=$ac_try;; |
| 4290 | esac |
| 4291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4292 | (eval "$ac_try") 2>&5 |
| 4293 | ac_status=$? |
| 4294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4295 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4296 | ac_cv_c_bigendian=no |
| 4297 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4298 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4299 | echo "$as_me: failed program was:" >&5 |
| 4300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4301 | |
| 4302 | ( exit $ac_status ) |
| 4303 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4304 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4305 | 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] | 4306 | fi |
| 4307 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4308 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4309 | fi |
| 4310 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4312 | fi |
| 4313 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4314 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4315 | case $ac_cv_c_bigendian in |
| 4316 | yes) |
| 4317 | ENDIAN=big |
| 4318 | ;; |
| 4319 | no) |
| 4320 | ENDIAN=little |
| 4321 | ;; |
| 4322 | *) |
| 4323 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4324 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4325 | echo "$as_me: error: unknown endianness |
| 4326 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4327 | { (exit 1); exit 1; }; } ;; |
| 4328 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4329 | |
| 4330 | |
| 4331 | if test "$cross_compiling" = yes; then |
| 4332 | LLVM_CROSS_COMPILING=1 |
| 4333 | |
| 4334 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4335 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4336 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4337 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4339 | else |
| 4340 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4341 | ac_cv_build_exeext=.exe |
| 4342 | else |
| 4343 | ac_build_prefix=${build_alias}- |
| 4344 | |
| 4345 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4346 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4347 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4348 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4349 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4351 | else |
| 4352 | if test -n "$BUILD_CC"; then |
| 4353 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4354 | else |
| 4355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4356 | for as_dir in $PATH |
| 4357 | do |
| 4358 | IFS=$as_save_IFS |
| 4359 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4360 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4361 | 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] | 4362 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4363 | 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] | 4364 | break 2 |
| 4365 | fi |
| 4366 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4367 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4368 | IFS=$as_save_IFS |
| 4369 | |
| 4370 | fi |
| 4371 | fi |
| 4372 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4373 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4374 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4375 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4376 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4377 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4378 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4379 | fi |
| 4380 | |
| 4381 | |
| 4382 | if test -z "$BUILD_CC"; then |
| 4383 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4384 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4385 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4387 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4389 | else |
| 4390 | if test -n "$BUILD_CC"; then |
| 4391 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4392 | else |
| 4393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4394 | for as_dir in $PATH |
| 4395 | do |
| 4396 | IFS=$as_save_IFS |
| 4397 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4398 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4399 | 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] | 4400 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4401 | 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] | 4402 | break 2 |
| 4403 | fi |
| 4404 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4405 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4406 | IFS=$as_save_IFS |
| 4407 | |
| 4408 | fi |
| 4409 | fi |
| 4410 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4411 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4412 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4413 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4414 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4415 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4416 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4417 | fi |
| 4418 | |
| 4419 | |
| 4420 | if test -z "$BUILD_CC"; then |
| 4421 | # Extract the first word of "cc", so it can be a program name with args. |
| 4422 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4423 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4425 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4427 | else |
| 4428 | if test -n "$BUILD_CC"; then |
| 4429 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4430 | else |
| 4431 | ac_prog_rejected=no |
| 4432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4433 | for as_dir in $PATH |
| 4434 | do |
| 4435 | IFS=$as_save_IFS |
| 4436 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4437 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4438 | 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] | 4439 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4440 | ac_prog_rejected=yes |
| 4441 | continue |
| 4442 | fi |
| 4443 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4444 | 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] | 4445 | break 2 |
| 4446 | fi |
| 4447 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4448 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4449 | IFS=$as_save_IFS |
| 4450 | |
| 4451 | if test $ac_prog_rejected = yes; then |
| 4452 | # We found a bogon in the path, so make sure we never use it. |
| 4453 | set dummy $ac_cv_prog_BUILD_CC |
| 4454 | shift |
| 4455 | if test $# != 0; then |
| 4456 | # We chose a different compiler from the bogus one. |
| 4457 | # However, it has the same basename, so the bogon will be chosen |
| 4458 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4459 | shift |
| 4460 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4461 | fi |
| 4462 | fi |
| 4463 | fi |
| 4464 | fi |
| 4465 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4466 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4467 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4468 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4469 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4470 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4471 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4472 | fi |
| 4473 | |
| 4474 | |
| 4475 | fi |
| 4476 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4477 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4478 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4479 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4480 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4481 | rm -f conftest* |
| 4482 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4483 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4484 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4485 | (eval $ac_build_link) 2>&5 |
| 4486 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4488 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4489 | for file in conftest.*; do |
| 4490 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4491 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4492 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4493 | esac |
| 4494 | done |
| 4495 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4496 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4497 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4498 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4499 | fi |
| 4500 | rm -f conftest* |
| 4501 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4502 | fi |
| 4503 | fi |
| 4504 | |
| 4505 | BUILD_EXEEXT="" |
| 4506 | 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] | 4507 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4508 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4509 | ac_build_exeext=$BUILD_EXEEXT |
| 4510 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4511 | ac_build_prefix=${build_alias}- |
| 4512 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4513 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4514 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4515 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4516 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4518 | else |
| 4519 | if test -n "$BUILD_CXX"; then |
| 4520 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4521 | else |
| 4522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4523 | for as_dir in $PATH |
| 4524 | do |
| 4525 | IFS=$as_save_IFS |
| 4526 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4527 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4528 | 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] | 4529 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4530 | 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] | 4531 | break 2 |
| 4532 | fi |
| 4533 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4534 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4535 | IFS=$as_save_IFS |
| 4536 | |
| 4537 | fi |
| 4538 | fi |
| 4539 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4540 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4541 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4542 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4543 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4544 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4545 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4546 | fi |
| 4547 | |
| 4548 | |
| 4549 | if test -z "$BUILD_CXX"; then |
| 4550 | # Extract the first word of "g++", so it can be a program name with args. |
| 4551 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4552 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4554 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4556 | else |
| 4557 | if test -n "$BUILD_CXX"; then |
| 4558 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4559 | else |
| 4560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4561 | for as_dir in $PATH |
| 4562 | do |
| 4563 | IFS=$as_save_IFS |
| 4564 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4565 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4566 | 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] | 4567 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4568 | 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] | 4569 | break 2 |
| 4570 | fi |
| 4571 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4572 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4573 | IFS=$as_save_IFS |
| 4574 | |
| 4575 | fi |
| 4576 | fi |
| 4577 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4578 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4579 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4580 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4581 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4582 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4583 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4584 | fi |
| 4585 | |
| 4586 | |
| 4587 | if test -z "$BUILD_CXX"; then |
| 4588 | # Extract the first word of "c++", so it can be a program name with args. |
| 4589 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4590 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4591 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4592 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4594 | else |
| 4595 | if test -n "$BUILD_CXX"; then |
| 4596 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4597 | else |
| 4598 | ac_prog_rejected=no |
| 4599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4600 | for as_dir in $PATH |
| 4601 | do |
| 4602 | IFS=$as_save_IFS |
| 4603 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4604 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4605 | 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] | 4606 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4607 | ac_prog_rejected=yes |
| 4608 | continue |
| 4609 | fi |
| 4610 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4611 | 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] | 4612 | break 2 |
| 4613 | fi |
| 4614 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4615 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4616 | IFS=$as_save_IFS |
| 4617 | |
| 4618 | if test $ac_prog_rejected = yes; then |
| 4619 | # We found a bogon in the path, so make sure we never use it. |
| 4620 | set dummy $ac_cv_prog_BUILD_CXX |
| 4621 | shift |
| 4622 | if test $# != 0; then |
| 4623 | # We chose a different compiler from the bogus one. |
| 4624 | # However, it has the same basename, so the bogon will be chosen |
| 4625 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4626 | shift |
| 4627 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4628 | fi |
| 4629 | fi |
| 4630 | fi |
| 4631 | fi |
| 4632 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4633 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4634 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4635 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4636 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4637 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4638 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4639 | fi |
| 4640 | |
| 4641 | |
| 4642 | fi |
| 4643 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4644 | else |
| 4645 | LLVM_CROSS_COMPILING=0 |
| 4646 | |
| 4647 | fi |
| 4648 | |
Nick Lewycky | 5b28f86 | 2009-04-10 05:18:27 +0000 | [diff] [blame] | 4649 | if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4650 | cvsbuild="yes" |
| 4651 | optimize="no" |
| 4652 | CVSBUILD=CVSBUILD=1 |
| 4653 | |
| 4654 | else |
| 4655 | cvsbuild="no" |
| 4656 | optimize="yes" |
| 4657 | fi |
| 4658 | |
| 4659 | |
| 4660 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4661 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4662 | enableval=$enable_optimized; |
| 4663 | else |
| 4664 | enableval=$optimize |
| 4665 | fi |
| 4666 | |
| 4667 | if test ${enableval} = "no" ; then |
| 4668 | ENABLE_OPTIMIZED= |
| 4669 | |
| 4670 | else |
| 4671 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4672 | |
| 4673 | fi |
| 4674 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4675 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4676 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4677 | enableval=$enable_profiling; |
| 4678 | else |
| 4679 | enableval="no" |
| 4680 | fi |
| 4681 | |
| 4682 | if test ${enableval} = "no" ; then |
| 4683 | ENABLE_PROFILING= |
| 4684 | |
| 4685 | else |
| 4686 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4687 | |
| 4688 | fi |
| 4689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4690 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4691 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4692 | enableval=$enable_assertions; |
| 4693 | else |
| 4694 | enableval="yes" |
| 4695 | fi |
| 4696 | |
| 4697 | if test ${enableval} = "yes" ; then |
| 4698 | DISABLE_ASSERTIONS= |
| 4699 | |
| 4700 | else |
| 4701 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4702 | |
| 4703 | fi |
| 4704 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4705 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4706 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4707 | enableval=$enable_expensive_checks; |
| 4708 | else |
| 4709 | enableval="no" |
| 4710 | fi |
| 4711 | |
| 4712 | if test ${enableval} = "yes" ; then |
| 4713 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4714 | |
| 4715 | EXPENSIVE_CHECKS=yes |
| 4716 | |
| 4717 | else |
| 4718 | ENABLE_EXPENSIVE_CHECKS= |
| 4719 | |
| 4720 | EXPENSIVE_CHECKS=no |
| 4721 | |
| 4722 | fi |
| 4723 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4724 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4725 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4726 | enableval=$enable_debug_runtime; |
| 4727 | else |
| 4728 | enableval=no |
| 4729 | fi |
| 4730 | |
| 4731 | if test ${enableval} = "no" ; then |
| 4732 | DEBUG_RUNTIME= |
| 4733 | |
| 4734 | else |
| 4735 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4736 | |
| 4737 | fi |
| 4738 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4739 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4740 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4741 | enableval=$enable_debug_symbols; |
| 4742 | else |
| 4743 | enableval=no |
| 4744 | fi |
| 4745 | |
| 4746 | if test ${enableval} = "no" ; then |
| 4747 | DEBUG_SYMBOLS= |
| 4748 | |
| 4749 | else |
| 4750 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 4751 | |
| 4752 | fi |
| 4753 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4754 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4755 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4756 | enableval=$enable_jit; |
| 4757 | else |
| 4758 | enableval=default |
| 4759 | fi |
| 4760 | |
| 4761 | if test ${enableval} = "no" |
| 4762 | then |
| 4763 | JIT= |
| 4764 | |
| 4765 | else |
| 4766 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4767 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4768 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4769 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4770 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4771 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4772 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4773 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4774 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4775 | Alpha) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4776 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 4777 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4778 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4779 | Mips) TARGET_HAS_JIT=0 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4780 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4781 | PIC16) TARGET_HAS_JIT=0 |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4782 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4783 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4784 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4785 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4786 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4787 | SystemZ) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4788 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4789 | Blackfin) TARGET_HAS_JIT=0 |
| 4790 | ;; |
| 4791 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4792 | ;; |
| 4793 | esac |
| 4794 | fi |
| 4795 | |
| 4796 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4797 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4798 | enableval=$enable_doxygen; |
| 4799 | else |
| 4800 | enableval=default |
| 4801 | fi |
| 4802 | |
| 4803 | case "$enableval" in |
| 4804 | yes) ENABLE_DOXYGEN=1 |
| 4805 | ;; |
| 4806 | no) ENABLE_DOXYGEN=0 |
| 4807 | ;; |
| 4808 | default) ENABLE_DOXYGEN=0 |
| 4809 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4810 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4811 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4812 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4813 | esac |
| 4814 | |
| 4815 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4816 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4817 | enableval=$enable_threads; |
| 4818 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4819 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4820 | fi |
| 4821 | |
| 4822 | case "$enableval" in |
| 4823 | yes) ENABLE_THREADS=1 |
| 4824 | ;; |
| 4825 | no) ENABLE_THREADS=0 |
| 4826 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4827 | default) ENABLE_THREADS=1 |
| 4828 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4829 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4830 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4831 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4832 | esac |
| 4833 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 4834 | cat >>confdefs.h <<_ACEOF |
| 4835 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4836 | _ACEOF |
| 4837 | |
| 4838 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4839 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4840 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4841 | enableval=$enable_pic; |
| 4842 | else |
| 4843 | enableval=default |
| 4844 | fi |
| 4845 | |
| 4846 | case "$enableval" in |
| 4847 | yes) ENABLE_PIC=1 |
| 4848 | ;; |
| 4849 | no) ENABLE_PIC=0 |
| 4850 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4851 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4852 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4853 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4854 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4855 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4856 | esac |
| 4857 | |
| 4858 | cat >>confdefs.h <<_ACEOF |
| 4859 | #define ENABLE_PIC $ENABLE_PIC |
| 4860 | _ACEOF |
| 4861 | |
| 4862 | |
Jeffrey Yasskin | f6afae2 | 2010-02-18 02:36:02 +0000 | [diff] [blame] | 4863 | # Check whether --enable-shared was given. |
| 4864 | if test "${enable_shared+set}" = set; then |
| 4865 | enableval=$enable_shared; |
| 4866 | else |
| 4867 | enableval=default |
| 4868 | fi |
| 4869 | |
| 4870 | case "$enableval" in |
| 4871 | yes) ENABLE_SHARED=1 |
| 4872 | ;; |
| 4873 | no) ENABLE_SHARED=0 |
| 4874 | ;; |
| 4875 | default) ENABLE_SHARED=0 |
| 4876 | ;; |
| 4877 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 |
| 4878 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} |
| 4879 | { (exit 1); exit 1; }; } ;; |
| 4880 | esac |
| 4881 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4882 | TARGETS_TO_BUILD="" |
| 4883 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4884 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4885 | enableval=$enable_targets; |
| 4886 | else |
| 4887 | enableval=all |
| 4888 | fi |
| 4889 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4890 | if test "$enableval" = host-only ; then |
| 4891 | enableval=host |
| 4892 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4893 | case "$enableval" in |
Jakob Stoklund Olesen | 73b7bb7 | 2009-08-02 17:32:37 +0000 | [diff] [blame] | 4894 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4895 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4896 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4897 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4898 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4899 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4900 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4901 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4902 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4903 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 4904 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4905 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4906 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4907 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 4908 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 4909 | blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 4910 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 4911 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
| 4912 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4913 | host) case "$llvm_cv_target_arch" in |
| 4914 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4915 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4916 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4917 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4918 | Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4919 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4920 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 4921 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4922 | PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4923 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4924 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 6ca835d | 2010-01-05 20:45:43 +0000 | [diff] [blame] | 4925 | s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4926 | Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4927 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4928 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4929 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4930 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4931 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4932 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4933 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4934 | esac |
| 4935 | done |
| 4936 | ;; |
| 4937 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4938 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4939 | |
| 4940 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4941 | # Determine whether we are building LLVM support for the native architecture. |
| 4942 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 4943 | for a_target in $TARGETS_TO_BUILD; do |
| 4944 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4945 | LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4946 | |
| 4947 | cat >>confdefs.h <<_ACEOF |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4948 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4949 | _ACEOF |
| 4950 | |
| 4951 | fi |
| 4952 | done |
| 4953 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4954 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual |
| 4955 | # target feature def files. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4956 | LLVM_ENUM_TARGETS="" |
| 4957 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 4958 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4959 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4960 | for target_to_build in $TARGETS_TO_BUILD; do |
| 4961 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
| 4962 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then |
| 4963 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 4964 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 4965 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 4966 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 4967 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4968 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 4969 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 4970 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4971 | done |
| 4972 | |
| 4973 | |
| 4974 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 4975 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4976 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4977 | # Check whether --enable-cbe-printf-a was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4978 | if test "${enable_cbe_printf_a+set}" = set; then |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4979 | enableval=$enable_cbe_printf_a; |
| 4980 | else |
| 4981 | enableval=default |
| 4982 | fi |
| 4983 | |
| 4984 | case "$enableval" in |
| 4985 | yes) ENABLE_CBE_PRINTF_A=1 |
| 4986 | ;; |
| 4987 | no) ENABLE_CBE_PRINTF_A=0 |
| 4988 | ;; |
| 4989 | default) ENABLE_CBE_PRINTF_A=1 |
| 4990 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4991 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 4992 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 4993 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4994 | esac |
| 4995 | |
| 4996 | cat >>confdefs.h <<_ACEOF |
| 4997 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 4998 | _ACEOF |
| 4999 | |
| 5000 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5001 | |
| 5002 | # Check whether --with-llvmgccdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5003 | if test "${with_llvmgccdir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5004 | withval=$with_llvmgccdir; |
| 5005 | else |
| 5006 | withval=default |
| 5007 | fi |
| 5008 | |
| 5009 | case "$withval" in |
| 5010 | default) WITH_LLVMGCCDIR=default ;; |
| 5011 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5012 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 5013 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 5014 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5015 | esac |
| 5016 | |
| 5017 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5018 | # Check whether --with-llvmgcc was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5019 | if test "${with_llvmgcc+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5020 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 5021 | WITH_LLVMGCCDIR="" |
| 5022 | fi |
| 5023 | |
| 5024 | |
| 5025 | |
| 5026 | # Check whether --with-llvmgxx was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5027 | if test "${with_llvmgxx+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5028 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5029 | WITH_LLVMGCCDIR="" |
| 5030 | fi |
| 5031 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5032 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5033 | if test -n "$LLVMGCC"; then |
| 5034 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5035 | fi |
| 5036 | |
| 5037 | if test -n "$LLVMGXX"; then |
| 5038 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5039 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5040 | |
| 5041 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5042 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5043 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5044 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5045 | fi |
| 5046 | |
| 5047 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5048 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5049 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5050 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5051 | fi |
| 5052 | |
| 5053 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5054 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5055 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5056 | withval=$with_optimize_option; |
| 5057 | else |
| 5058 | withval=default |
| 5059 | fi |
| 5060 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5061 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5062 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5063 | case "$withval" in |
| 5064 | default) |
| 5065 | case "$llvm_cv_os_type" in |
| 5066 | MingW) optimize_option=-O3 ;; |
| 5067 | *) optimize_option=-O2 ;; |
| 5068 | esac ;; |
| 5069 | *) optimize_option="$withval" ;; |
| 5070 | esac |
| 5071 | OPTIMIZE_OPTION=$optimize_option |
| 5072 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5073 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5074 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5075 | |
| 5076 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5077 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5078 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5079 | withval=$with_extra_options; |
| 5080 | else |
| 5081 | withval=default |
| 5082 | fi |
| 5083 | |
| 5084 | case "$withval" in |
| 5085 | default) EXTRA_OPTIONS= ;; |
| 5086 | *) EXTRA_OPTIONS=$withval ;; |
| 5087 | esac |
| 5088 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5089 | |
| 5090 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5091 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5092 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5093 | enableval=$enable_bindings; |
| 5094 | else |
| 5095 | enableval=default |
| 5096 | fi |
| 5097 | |
| 5098 | BINDINGS_TO_BUILD="" |
| 5099 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5100 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5101 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5102 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5103 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5104 | case "$a_binding" in |
| 5105 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5106 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5107 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5108 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5109 | esac |
| 5110 | done |
| 5111 | ;; |
| 5112 | esac |
| 5113 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5114 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5115 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5116 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5117 | withval=$with_ocaml_libdir; |
| 5118 | else |
| 5119 | withval=auto |
| 5120 | fi |
| 5121 | |
| 5122 | case "$withval" in |
| 5123 | auto) with_ocaml_libdir="$withval" ;; |
| 5124 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5125 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5126 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5127 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5128 | esac |
| 5129 | |
| 5130 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5131 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5132 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5133 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5134 | else |
| 5135 | withval="" |
| 5136 | fi |
| 5137 | |
| 5138 | |
| 5139 | cat >>confdefs.h <<_ACEOF |
| 5140 | #define C_INCLUDE_DIRS "$withval" |
| 5141 | _ACEOF |
| 5142 | |
| 5143 | |
| 5144 | |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5145 | # Check whether --with-cxx-include-root was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5146 | if test "${with_cxx_include_root+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5147 | withval=$with_cxx_include_root; |
| 5148 | else |
| 5149 | withval="" |
| 5150 | fi |
| 5151 | |
| 5152 | |
| 5153 | cat >>confdefs.h <<_ACEOF |
| 5154 | #define CXX_INCLUDE_ROOT "$withval" |
| 5155 | _ACEOF |
| 5156 | |
| 5157 | |
| 5158 | |
| 5159 | # Check whether --with-cxx-include-arch was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5160 | if test "${with_cxx_include_arch+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5161 | withval=$with_cxx_include_arch; |
| 5162 | else |
| 5163 | withval="" |
| 5164 | fi |
| 5165 | |
| 5166 | |
| 5167 | cat >>confdefs.h <<_ACEOF |
| 5168 | #define CXX_INCLUDE_ARCH "$withval" |
| 5169 | _ACEOF |
| 5170 | |
| 5171 | |
| 5172 | |
| 5173 | # Check whether --with-cxx-include-32bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5174 | if test "${with_cxx_include_32bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5175 | withval=$with_cxx_include_32bit_dir; |
| 5176 | else |
| 5177 | withval="" |
| 5178 | fi |
| 5179 | |
| 5180 | |
| 5181 | cat >>confdefs.h <<_ACEOF |
| 5182 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5183 | _ACEOF |
| 5184 | |
| 5185 | |
| 5186 | |
| 5187 | # Check whether --with-cxx-include-64bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5188 | if test "${with_cxx_include_64bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5189 | withval=$with_cxx_include_64bit_dir; |
| 5190 | else |
| 5191 | withval="" |
| 5192 | fi |
| 5193 | |
| 5194 | |
| 5195 | cat >>confdefs.h <<_ACEOF |
| 5196 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5197 | _ACEOF |
| 5198 | |
| 5199 | |
| 5200 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5201 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5202 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5203 | withval=$with_binutils_include; |
| 5204 | else |
| 5205 | withval=default |
| 5206 | fi |
| 5207 | |
| 5208 | case "$withval" in |
| 5209 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5210 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5211 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5212 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5213 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5214 | esac |
| 5215 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5216 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5217 | |
| 5218 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5219 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5220 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5221 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5222 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5223 | fi |
| 5224 | fi |
| 5225 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5226 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5227 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5228 | enableval=$enable_libffi; case "$enableval" in |
| 5229 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5230 | no) llvm_cv_enable_libffi="no" ;; |
| 5231 | *) { { 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] | 5232 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5233 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5234 | esac |
| 5235 | else |
| 5236 | llvm_cv_enable_libffi=no |
| 5237 | fi |
| 5238 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5239 | |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5240 | if test "$llvm_cv_os_type" = "Win32" ; then |
| 5241 | llvmc_dynamic="yes" |
| 5242 | else |
| 5243 | llvmc_dynamic="no" |
| 5244 | fi |
| 5245 | |
| 5246 | # Check whether --enable-llvmc-dynamic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5247 | if test "${enable_llvmc_dynamic+set}" = set; then |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5248 | enableval=$enable_llvmc_dynamic; |
| 5249 | else |
| 5250 | enableval=$llvmc_dynamic |
| 5251 | fi |
| 5252 | |
| 5253 | if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then |
| 5254 | ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1 |
| 5255 | |
| 5256 | else |
| 5257 | ENABLE_LLVMC_DYNAMIC= |
| 5258 | |
| 5259 | fi |
| 5260 | |
| 5261 | # Check whether --enable-llvmc-dynamic-plugins was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5262 | if test "${enable_llvmc_dynamic_plugins+set}" = set; then |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5263 | enableval=$enable_llvmc_dynamic_plugins; |
| 5264 | else |
| 5265 | enableval=yes |
| 5266 | fi |
| 5267 | |
| 5268 | if test ${enableval} = "yes" ; then |
| 5269 | ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1 |
| 5270 | |
| 5271 | else |
| 5272 | ENABLE_LLVMC_DYNAMIC_PLUGINS= |
| 5273 | |
| 5274 | fi |
| 5275 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5276 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5277 | ac_ext=c |
| 5278 | ac_cpp='$CPP $CPPFLAGS' |
| 5279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5282 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5283 | 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] | 5284 | # On Suns, sometimes $CPP names a directory. |
| 5285 | if test -n "$CPP" && test -d "$CPP"; then |
| 5286 | CPP= |
| 5287 | fi |
| 5288 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5289 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5291 | else |
| 5292 | # Double quotes because CPP needs to be expanded |
| 5293 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5294 | do |
| 5295 | ac_preproc_ok=false |
| 5296 | for ac_c_preproc_warn_flag in '' yes |
| 5297 | do |
| 5298 | # Use a header file that comes with gcc, so configuring glibc |
| 5299 | # with a fresh cross-compiler works. |
| 5300 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5301 | # <limits.h> exists even on freestanding compilers. |
| 5302 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5303 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5304 | cat >conftest.$ac_ext <<_ACEOF |
| 5305 | /* confdefs.h. */ |
| 5306 | _ACEOF |
| 5307 | cat confdefs.h >>conftest.$ac_ext |
| 5308 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5309 | /* end confdefs.h. */ |
| 5310 | #ifdef __STDC__ |
| 5311 | # include <limits.h> |
| 5312 | #else |
| 5313 | # include <assert.h> |
| 5314 | #endif |
| 5315 | Syntax error |
| 5316 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5317 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5318 | case "(($ac_try" in |
| 5319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5320 | *) ac_try_echo=$ac_try;; |
| 5321 | esac |
| 5322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5323 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5324 | ac_status=$? |
| 5325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5326 | rm -f conftest.er1 |
| 5327 | cat conftest.err >&5 |
| 5328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5329 | (exit $ac_status); } >/dev/null; then |
| 5330 | if test -s conftest.err; then |
| 5331 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5332 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5333 | else |
| 5334 | ac_cpp_err= |
| 5335 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5336 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5337 | ac_cpp_err=yes |
| 5338 | fi |
| 5339 | if test -z "$ac_cpp_err"; then |
| 5340 | : |
| 5341 | else |
| 5342 | echo "$as_me: failed program was:" >&5 |
| 5343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5344 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5345 | # Broken: fails on valid input. |
| 5346 | continue |
| 5347 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5348 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5349 | rm -f conftest.err conftest.$ac_ext |
| 5350 | |
| 5351 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5352 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5353 | cat >conftest.$ac_ext <<_ACEOF |
| 5354 | /* confdefs.h. */ |
| 5355 | _ACEOF |
| 5356 | cat confdefs.h >>conftest.$ac_ext |
| 5357 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5358 | /* end confdefs.h. */ |
| 5359 | #include <ac_nonexistent.h> |
| 5360 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5361 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5362 | case "(($ac_try" in |
| 5363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5364 | *) ac_try_echo=$ac_try;; |
| 5365 | esac |
| 5366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5367 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5368 | ac_status=$? |
| 5369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5370 | rm -f conftest.er1 |
| 5371 | cat conftest.err >&5 |
| 5372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5373 | (exit $ac_status); } >/dev/null; then |
| 5374 | if test -s conftest.err; then |
| 5375 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5376 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5377 | else |
| 5378 | ac_cpp_err= |
| 5379 | fi |
| 5380 | else |
| 5381 | ac_cpp_err=yes |
| 5382 | fi |
| 5383 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5384 | # Broken: success on invalid input. |
| 5385 | continue |
| 5386 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5387 | echo "$as_me: failed program was:" >&5 |
| 5388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5389 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5390 | # Passes both tests. |
| 5391 | ac_preproc_ok=: |
| 5392 | break |
| 5393 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5394 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5395 | rm -f conftest.err conftest.$ac_ext |
| 5396 | |
| 5397 | done |
| 5398 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5399 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5400 | if $ac_preproc_ok; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5401 | break |
| 5402 | fi |
| 5403 | |
| 5404 | done |
| 5405 | ac_cv_prog_CPP=$CPP |
| 5406 | |
| 5407 | fi |
| 5408 | CPP=$ac_cv_prog_CPP |
| 5409 | else |
| 5410 | ac_cv_prog_CPP=$CPP |
| 5411 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5412 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5413 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5414 | ac_preproc_ok=false |
| 5415 | for ac_c_preproc_warn_flag in '' yes |
| 5416 | do |
| 5417 | # Use a header file that comes with gcc, so configuring glibc |
| 5418 | # with a fresh cross-compiler works. |
| 5419 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5420 | # <limits.h> exists even on freestanding compilers. |
| 5421 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5422 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5423 | cat >conftest.$ac_ext <<_ACEOF |
| 5424 | /* confdefs.h. */ |
| 5425 | _ACEOF |
| 5426 | cat confdefs.h >>conftest.$ac_ext |
| 5427 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5428 | /* end confdefs.h. */ |
| 5429 | #ifdef __STDC__ |
| 5430 | # include <limits.h> |
| 5431 | #else |
| 5432 | # include <assert.h> |
| 5433 | #endif |
| 5434 | Syntax error |
| 5435 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5436 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5437 | case "(($ac_try" in |
| 5438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5439 | *) ac_try_echo=$ac_try;; |
| 5440 | esac |
| 5441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5442 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5443 | ac_status=$? |
| 5444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5445 | rm -f conftest.er1 |
| 5446 | cat conftest.err >&5 |
| 5447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5448 | (exit $ac_status); } >/dev/null; then |
| 5449 | if test -s conftest.err; then |
| 5450 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5451 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5452 | else |
| 5453 | ac_cpp_err= |
| 5454 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5455 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5456 | ac_cpp_err=yes |
| 5457 | fi |
| 5458 | if test -z "$ac_cpp_err"; then |
| 5459 | : |
| 5460 | else |
| 5461 | echo "$as_me: failed program was:" >&5 |
| 5462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5463 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5464 | # Broken: fails on valid input. |
| 5465 | continue |
| 5466 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5467 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5468 | rm -f conftest.err conftest.$ac_ext |
| 5469 | |
| 5470 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5471 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5472 | cat >conftest.$ac_ext <<_ACEOF |
| 5473 | /* confdefs.h. */ |
| 5474 | _ACEOF |
| 5475 | cat confdefs.h >>conftest.$ac_ext |
| 5476 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5477 | /* end confdefs.h. */ |
| 5478 | #include <ac_nonexistent.h> |
| 5479 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5480 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5481 | case "(($ac_try" in |
| 5482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5483 | *) ac_try_echo=$ac_try;; |
| 5484 | esac |
| 5485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5486 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5487 | ac_status=$? |
| 5488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5489 | rm -f conftest.er1 |
| 5490 | cat conftest.err >&5 |
| 5491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5492 | (exit $ac_status); } >/dev/null; then |
| 5493 | if test -s conftest.err; then |
| 5494 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5495 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5496 | else |
| 5497 | ac_cpp_err= |
| 5498 | fi |
| 5499 | else |
| 5500 | ac_cpp_err=yes |
| 5501 | fi |
| 5502 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5503 | # Broken: success on invalid input. |
| 5504 | continue |
| 5505 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5506 | echo "$as_me: failed program was:" >&5 |
| 5507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5508 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5509 | # Passes both tests. |
| 5510 | ac_preproc_ok=: |
| 5511 | break |
| 5512 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5513 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5514 | rm -f conftest.err conftest.$ac_ext |
| 5515 | |
| 5516 | done |
| 5517 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5518 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5519 | if $ac_preproc_ok; then |
| 5520 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5521 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5522 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5523 | See \`config.log' for more details." >&5 |
| 5524 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5525 | See \`config.log' for more details." >&2;} |
| 5526 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5527 | fi |
| 5528 | |
| 5529 | ac_ext=c |
| 5530 | ac_cpp='$CPP $CPPFLAGS' |
| 5531 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5532 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5533 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5534 | |
| 5535 | ac_ext=c |
| 5536 | ac_cpp='$CPP $CPPFLAGS' |
| 5537 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5538 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5539 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5540 | if test -n "$ac_tool_prefix"; then |
| 5541 | for ac_prog in gcc |
| 5542 | do |
| 5543 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5544 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5545 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5546 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5547 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5549 | else |
| 5550 | if test -n "$CC"; then |
| 5551 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5552 | else |
| 5553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5554 | for as_dir in $PATH |
| 5555 | do |
| 5556 | IFS=$as_save_IFS |
| 5557 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5558 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5559 | 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] | 5560 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5561 | 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] | 5562 | break 2 |
| 5563 | fi |
| 5564 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5565 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5566 | IFS=$as_save_IFS |
| 5567 | |
| 5568 | fi |
| 5569 | fi |
| 5570 | CC=$ac_cv_prog_CC |
| 5571 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5572 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5573 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5574 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5575 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5576 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5577 | fi |
| 5578 | |
| 5579 | |
| 5580 | test -n "$CC" && break |
| 5581 | done |
| 5582 | fi |
| 5583 | if test -z "$CC"; then |
| 5584 | ac_ct_CC=$CC |
| 5585 | for ac_prog in gcc |
| 5586 | do |
| 5587 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5588 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5589 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5590 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5591 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5593 | else |
| 5594 | if test -n "$ac_ct_CC"; then |
| 5595 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5596 | else |
| 5597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5598 | for as_dir in $PATH |
| 5599 | do |
| 5600 | IFS=$as_save_IFS |
| 5601 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5602 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5603 | 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] | 5604 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5605 | 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] | 5606 | break 2 |
| 5607 | fi |
| 5608 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5609 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5610 | IFS=$as_save_IFS |
| 5611 | |
| 5612 | fi |
| 5613 | fi |
| 5614 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5615 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5616 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5617 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5618 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5619 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5620 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5621 | fi |
| 5622 | |
| 5623 | |
| 5624 | test -n "$ac_ct_CC" && break |
| 5625 | done |
| 5626 | |
| 5627 | if test "x$ac_ct_CC" = x; then |
| 5628 | CC="" |
| 5629 | else |
| 5630 | case $cross_compiling:$ac_tool_warned in |
| 5631 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5632 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5633 | whose name does not start with the host triplet. If you think this |
| 5634 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5635 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5636 | whose name does not start with the host triplet. If you think this |
| 5637 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5638 | ac_tool_warned=yes ;; |
| 5639 | esac |
| 5640 | CC=$ac_ct_CC |
| 5641 | fi |
| 5642 | fi |
| 5643 | |
| 5644 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5645 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5646 | See \`config.log' for more details." >&5 |
| 5647 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5648 | See \`config.log' for more details." >&2;} |
| 5649 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5650 | |
| 5651 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5652 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5653 | ac_compiler=`set X $ac_compile; echo $2` |
| 5654 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5655 | case "(($ac_try" in |
| 5656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5657 | *) ac_try_echo=$ac_try;; |
| 5658 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5660 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5661 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5663 | (exit $ac_status); } |
| 5664 | { (ac_try="$ac_compiler -v >&5" |
| 5665 | case "(($ac_try" in |
| 5666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5667 | *) ac_try_echo=$ac_try;; |
| 5668 | esac |
| 5669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5670 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5671 | ac_status=$? |
| 5672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5673 | (exit $ac_status); } |
| 5674 | { (ac_try="$ac_compiler -V >&5" |
| 5675 | case "(($ac_try" in |
| 5676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5677 | *) ac_try_echo=$ac_try;; |
| 5678 | esac |
| 5679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5680 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5681 | ac_status=$? |
| 5682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5683 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5684 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5685 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5686 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5687 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5689 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5690 | cat >conftest.$ac_ext <<_ACEOF |
| 5691 | /* confdefs.h. */ |
| 5692 | _ACEOF |
| 5693 | cat confdefs.h >>conftest.$ac_ext |
| 5694 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5695 | /* end confdefs.h. */ |
| 5696 | |
| 5697 | int |
| 5698 | main () |
| 5699 | { |
| 5700 | #ifndef __GNUC__ |
| 5701 | choke me |
| 5702 | #endif |
| 5703 | |
| 5704 | ; |
| 5705 | return 0; |
| 5706 | } |
| 5707 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5708 | rm -f conftest.$ac_objext |
| 5709 | if { (ac_try="$ac_compile" |
| 5710 | case "(($ac_try" in |
| 5711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5712 | *) ac_try_echo=$ac_try;; |
| 5713 | esac |
| 5714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5715 | (eval "$ac_compile") 2>conftest.er1 |
| 5716 | ac_status=$? |
| 5717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5718 | rm -f conftest.er1 |
| 5719 | cat conftest.err >&5 |
| 5720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5721 | (exit $ac_status); } && |
| 5722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5723 | { (case "(($ac_try" in |
| 5724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5725 | *) ac_try_echo=$ac_try;; |
| 5726 | esac |
| 5727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5728 | (eval "$ac_try") 2>&5 |
| 5729 | ac_status=$? |
| 5730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5731 | (exit $ac_status); }; } && |
| 5732 | { ac_try='test -s conftest.$ac_objext' |
| 5733 | { (case "(($ac_try" in |
| 5734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5735 | *) ac_try_echo=$ac_try;; |
| 5736 | esac |
| 5737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5738 | (eval "$ac_try") 2>&5 |
| 5739 | ac_status=$? |
| 5740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5741 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5742 | ac_compiler_gnu=yes |
| 5743 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5744 | echo "$as_me: failed program was:" >&5 |
| 5745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5746 | |
| 5747 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5748 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5749 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5751 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5752 | |
| 5753 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5754 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5755 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5756 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5757 | ac_test_CFLAGS=${CFLAGS+set} |
| 5758 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5759 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5760 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5761 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5763 | else |
| 5764 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5765 | ac_c_werror_flag=yes |
| 5766 | ac_cv_prog_cc_g=no |
| 5767 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5768 | cat >conftest.$ac_ext <<_ACEOF |
| 5769 | /* confdefs.h. */ |
| 5770 | _ACEOF |
| 5771 | cat confdefs.h >>conftest.$ac_ext |
| 5772 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5773 | /* end confdefs.h. */ |
| 5774 | |
| 5775 | int |
| 5776 | main () |
| 5777 | { |
| 5778 | |
| 5779 | ; |
| 5780 | return 0; |
| 5781 | } |
| 5782 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5783 | rm -f conftest.$ac_objext |
| 5784 | if { (ac_try="$ac_compile" |
| 5785 | case "(($ac_try" in |
| 5786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5787 | *) ac_try_echo=$ac_try;; |
| 5788 | esac |
| 5789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5790 | (eval "$ac_compile") 2>conftest.er1 |
| 5791 | ac_status=$? |
| 5792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5793 | rm -f conftest.er1 |
| 5794 | cat conftest.err >&5 |
| 5795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5796 | (exit $ac_status); } && |
| 5797 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5798 | { (case "(($ac_try" in |
| 5799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5800 | *) ac_try_echo=$ac_try;; |
| 5801 | esac |
| 5802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5803 | (eval "$ac_try") 2>&5 |
| 5804 | ac_status=$? |
| 5805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5806 | (exit $ac_status); }; } && |
| 5807 | { ac_try='test -s conftest.$ac_objext' |
| 5808 | { (case "(($ac_try" in |
| 5809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5810 | *) ac_try_echo=$ac_try;; |
| 5811 | esac |
| 5812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5813 | (eval "$ac_try") 2>&5 |
| 5814 | ac_status=$? |
| 5815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5816 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5817 | ac_cv_prog_cc_g=yes |
| 5818 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5819 | echo "$as_me: failed program was:" >&5 |
| 5820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5821 | |
| 5822 | CFLAGS="" |
| 5823 | cat >conftest.$ac_ext <<_ACEOF |
| 5824 | /* confdefs.h. */ |
| 5825 | _ACEOF |
| 5826 | cat confdefs.h >>conftest.$ac_ext |
| 5827 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5828 | /* end confdefs.h. */ |
| 5829 | |
| 5830 | int |
| 5831 | main () |
| 5832 | { |
| 5833 | |
| 5834 | ; |
| 5835 | return 0; |
| 5836 | } |
| 5837 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5838 | rm -f conftest.$ac_objext |
| 5839 | if { (ac_try="$ac_compile" |
| 5840 | case "(($ac_try" in |
| 5841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5842 | *) ac_try_echo=$ac_try;; |
| 5843 | esac |
| 5844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5845 | (eval "$ac_compile") 2>conftest.er1 |
| 5846 | ac_status=$? |
| 5847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5848 | rm -f conftest.er1 |
| 5849 | cat conftest.err >&5 |
| 5850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5851 | (exit $ac_status); } && |
| 5852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5853 | { (case "(($ac_try" in |
| 5854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5855 | *) ac_try_echo=$ac_try;; |
| 5856 | esac |
| 5857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5858 | (eval "$ac_try") 2>&5 |
| 5859 | ac_status=$? |
| 5860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5861 | (exit $ac_status); }; } && |
| 5862 | { ac_try='test -s conftest.$ac_objext' |
| 5863 | { (case "(($ac_try" in |
| 5864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5865 | *) ac_try_echo=$ac_try;; |
| 5866 | esac |
| 5867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5868 | (eval "$ac_try") 2>&5 |
| 5869 | ac_status=$? |
| 5870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5871 | (exit $ac_status); }; }; then |
| 5872 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5873 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5874 | echo "$as_me: failed program was:" >&5 |
| 5875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5876 | |
| 5877 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5878 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5879 | cat >conftest.$ac_ext <<_ACEOF |
| 5880 | /* confdefs.h. */ |
| 5881 | _ACEOF |
| 5882 | cat confdefs.h >>conftest.$ac_ext |
| 5883 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5884 | /* end confdefs.h. */ |
| 5885 | |
| 5886 | int |
| 5887 | main () |
| 5888 | { |
| 5889 | |
| 5890 | ; |
| 5891 | return 0; |
| 5892 | } |
| 5893 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5894 | rm -f conftest.$ac_objext |
| 5895 | if { (ac_try="$ac_compile" |
| 5896 | case "(($ac_try" in |
| 5897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5898 | *) ac_try_echo=$ac_try;; |
| 5899 | esac |
| 5900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5901 | (eval "$ac_compile") 2>conftest.er1 |
| 5902 | ac_status=$? |
| 5903 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5904 | rm -f conftest.er1 |
| 5905 | cat conftest.err >&5 |
| 5906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5907 | (exit $ac_status); } && |
| 5908 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5909 | { (case "(($ac_try" in |
| 5910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5911 | *) ac_try_echo=$ac_try;; |
| 5912 | esac |
| 5913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5914 | (eval "$ac_try") 2>&5 |
| 5915 | ac_status=$? |
| 5916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5917 | (exit $ac_status); }; } && |
| 5918 | { ac_try='test -s conftest.$ac_objext' |
| 5919 | { (case "(($ac_try" in |
| 5920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5921 | *) ac_try_echo=$ac_try;; |
| 5922 | esac |
| 5923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5924 | (eval "$ac_try") 2>&5 |
| 5925 | ac_status=$? |
| 5926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5927 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5928 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5929 | else |
| 5930 | echo "$as_me: failed program was:" >&5 |
| 5931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5932 | |
| 5933 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5934 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5935 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5937 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5938 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5940 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5941 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5943 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5944 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5945 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5946 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5947 | if test "$ac_test_CFLAGS" = set; then |
| 5948 | CFLAGS=$ac_save_CFLAGS |
| 5949 | elif test $ac_cv_prog_cc_g = yes; then |
| 5950 | if test "$GCC" = yes; then |
| 5951 | CFLAGS="-g -O2" |
| 5952 | else |
| 5953 | CFLAGS="-g" |
| 5954 | fi |
| 5955 | else |
| 5956 | if test "$GCC" = yes; then |
| 5957 | CFLAGS="-O2" |
| 5958 | else |
| 5959 | CFLAGS= |
| 5960 | fi |
| 5961 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5962 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 5963 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 5964 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 5965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5966 | else |
| 5967 | ac_cv_prog_cc_c89=no |
| 5968 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5969 | cat >conftest.$ac_ext <<_ACEOF |
| 5970 | /* confdefs.h. */ |
| 5971 | _ACEOF |
| 5972 | cat confdefs.h >>conftest.$ac_ext |
| 5973 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5974 | /* end confdefs.h. */ |
| 5975 | #include <stdarg.h> |
| 5976 | #include <stdio.h> |
| 5977 | #include <sys/types.h> |
| 5978 | #include <sys/stat.h> |
| 5979 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5980 | struct buf { int x; }; |
| 5981 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5982 | static char *e (p, i) |
| 5983 | char **p; |
| 5984 | int i; |
| 5985 | { |
| 5986 | return p[i]; |
| 5987 | } |
| 5988 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5989 | { |
| 5990 | char *s; |
| 5991 | va_list v; |
| 5992 | va_start (v,p); |
| 5993 | s = g (p, va_arg (v,int)); |
| 5994 | va_end (v); |
| 5995 | return s; |
| 5996 | } |
| 5997 | |
| 5998 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5999 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6000 | These don't provoke an error unfortunately, instead are silently treated |
| 6001 | as 'x'. The following induces an error, until -std is added to get |
| 6002 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6003 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6004 | that's true only with -std. */ |
| 6005 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6006 | |
| 6007 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6008 | inside strings and character constants. */ |
| 6009 | #define FOO(x) 'x' |
| 6010 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6011 | |
| 6012 | int test (int i, double x); |
| 6013 | struct s1 {int (*f) (int a);}; |
| 6014 | struct s2 {int (*f) (double a);}; |
| 6015 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6016 | int argc; |
| 6017 | char **argv; |
| 6018 | int |
| 6019 | main () |
| 6020 | { |
| 6021 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6022 | ; |
| 6023 | return 0; |
| 6024 | } |
| 6025 | _ACEOF |
| 6026 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6027 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6028 | do |
| 6029 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6030 | rm -f conftest.$ac_objext |
| 6031 | if { (ac_try="$ac_compile" |
| 6032 | case "(($ac_try" in |
| 6033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6034 | *) ac_try_echo=$ac_try;; |
| 6035 | esac |
| 6036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6037 | (eval "$ac_compile") 2>conftest.er1 |
| 6038 | ac_status=$? |
| 6039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6040 | rm -f conftest.er1 |
| 6041 | cat conftest.err >&5 |
| 6042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6043 | (exit $ac_status); } && |
| 6044 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6045 | { (case "(($ac_try" in |
| 6046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6047 | *) ac_try_echo=$ac_try;; |
| 6048 | esac |
| 6049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6050 | (eval "$ac_try") 2>&5 |
| 6051 | ac_status=$? |
| 6052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6053 | (exit $ac_status); }; } && |
| 6054 | { ac_try='test -s conftest.$ac_objext' |
| 6055 | { (case "(($ac_try" in |
| 6056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6057 | *) ac_try_echo=$ac_try;; |
| 6058 | esac |
| 6059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6060 | (eval "$ac_try") 2>&5 |
| 6061 | ac_status=$? |
| 6062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6063 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6064 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6065 | else |
| 6066 | echo "$as_me: failed program was:" >&5 |
| 6067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6068 | |
| 6069 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6070 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6071 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6072 | rm -f core conftest.err conftest.$ac_objext |
| 6073 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6074 | done |
| 6075 | rm -f conftest.$ac_ext |
| 6076 | CC=$ac_save_CC |
| 6077 | |
| 6078 | fi |
| 6079 | # AC_CACHE_VAL |
| 6080 | case "x$ac_cv_prog_cc_c89" in |
| 6081 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6082 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6083 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6084 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6085 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6086 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6087 | *) |
| 6088 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6089 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6090 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6091 | esac |
| 6092 | |
| 6093 | |
| 6094 | ac_ext=c |
| 6095 | ac_cpp='$CPP $CPPFLAGS' |
| 6096 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6097 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6098 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6099 | |
| 6100 | ac_ext=cpp |
| 6101 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6102 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6103 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6104 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6105 | if test -z "$CXX"; then |
| 6106 | if test -n "$CCC"; then |
| 6107 | CXX=$CCC |
| 6108 | else |
| 6109 | if test -n "$ac_tool_prefix"; then |
| 6110 | for ac_prog in g++ |
| 6111 | do |
| 6112 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6113 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6114 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6115 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6116 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 6117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6118 | else |
| 6119 | if test -n "$CXX"; then |
| 6120 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6121 | else |
| 6122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6123 | for as_dir in $PATH |
| 6124 | do |
| 6125 | IFS=$as_save_IFS |
| 6126 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6127 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6128 | 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] | 6129 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6130 | 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] | 6131 | break 2 |
| 6132 | fi |
| 6133 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6134 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6135 | IFS=$as_save_IFS |
| 6136 | |
| 6137 | fi |
| 6138 | fi |
| 6139 | CXX=$ac_cv_prog_CXX |
| 6140 | if test -n "$CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6141 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6142 | echo "${ECHO_T}$CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6143 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6144 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6145 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6146 | fi |
| 6147 | |
| 6148 | |
| 6149 | test -n "$CXX" && break |
| 6150 | done |
| 6151 | fi |
| 6152 | if test -z "$CXX"; then |
| 6153 | ac_ct_CXX=$CXX |
| 6154 | for ac_prog in g++ |
| 6155 | do |
| 6156 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6157 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6158 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6159 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6160 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6162 | else |
| 6163 | if test -n "$ac_ct_CXX"; then |
| 6164 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6165 | else |
| 6166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6167 | for as_dir in $PATH |
| 6168 | do |
| 6169 | IFS=$as_save_IFS |
| 6170 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6171 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6172 | 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] | 6173 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6174 | 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] | 6175 | break 2 |
| 6176 | fi |
| 6177 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6178 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6179 | IFS=$as_save_IFS |
| 6180 | |
| 6181 | fi |
| 6182 | fi |
| 6183 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6184 | if test -n "$ac_ct_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6185 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6186 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6187 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6188 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6189 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6190 | fi |
| 6191 | |
| 6192 | |
| 6193 | test -n "$ac_ct_CXX" && break |
| 6194 | done |
| 6195 | |
| 6196 | if test "x$ac_ct_CXX" = x; then |
| 6197 | CXX="g++" |
| 6198 | else |
| 6199 | case $cross_compiling:$ac_tool_warned in |
| 6200 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6201 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6202 | whose name does not start with the host triplet. If you think this |
| 6203 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6204 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6205 | whose name does not start with the host triplet. If you think this |
| 6206 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6207 | ac_tool_warned=yes ;; |
| 6208 | esac |
| 6209 | CXX=$ac_ct_CXX |
| 6210 | fi |
| 6211 | fi |
| 6212 | |
| 6213 | fi |
| 6214 | fi |
| 6215 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6216 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6217 | ac_compiler=`set X $ac_compile; echo $2` |
| 6218 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6219 | case "(($ac_try" in |
| 6220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6221 | *) ac_try_echo=$ac_try;; |
| 6222 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6224 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6225 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6227 | (exit $ac_status); } |
| 6228 | { (ac_try="$ac_compiler -v >&5" |
| 6229 | case "(($ac_try" in |
| 6230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6231 | *) ac_try_echo=$ac_try;; |
| 6232 | esac |
| 6233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6234 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6235 | ac_status=$? |
| 6236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6237 | (exit $ac_status); } |
| 6238 | { (ac_try="$ac_compiler -V >&5" |
| 6239 | case "(($ac_try" in |
| 6240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6241 | *) ac_try_echo=$ac_try;; |
| 6242 | esac |
| 6243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6244 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6245 | ac_status=$? |
| 6246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6247 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6248 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6249 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6250 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6251 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6253 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6254 | cat >conftest.$ac_ext <<_ACEOF |
| 6255 | /* confdefs.h. */ |
| 6256 | _ACEOF |
| 6257 | cat confdefs.h >>conftest.$ac_ext |
| 6258 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6259 | /* end confdefs.h. */ |
| 6260 | |
| 6261 | int |
| 6262 | main () |
| 6263 | { |
| 6264 | #ifndef __GNUC__ |
| 6265 | choke me |
| 6266 | #endif |
| 6267 | |
| 6268 | ; |
| 6269 | return 0; |
| 6270 | } |
| 6271 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6272 | rm -f conftest.$ac_objext |
| 6273 | if { (ac_try="$ac_compile" |
| 6274 | case "(($ac_try" in |
| 6275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6276 | *) ac_try_echo=$ac_try;; |
| 6277 | esac |
| 6278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6279 | (eval "$ac_compile") 2>conftest.er1 |
| 6280 | ac_status=$? |
| 6281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6282 | rm -f conftest.er1 |
| 6283 | cat conftest.err >&5 |
| 6284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6285 | (exit $ac_status); } && |
| 6286 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6287 | { (case "(($ac_try" in |
| 6288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6289 | *) ac_try_echo=$ac_try;; |
| 6290 | esac |
| 6291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6292 | (eval "$ac_try") 2>&5 |
| 6293 | ac_status=$? |
| 6294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6295 | (exit $ac_status); }; } && |
| 6296 | { ac_try='test -s conftest.$ac_objext' |
| 6297 | { (case "(($ac_try" in |
| 6298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6299 | *) ac_try_echo=$ac_try;; |
| 6300 | esac |
| 6301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6302 | (eval "$ac_try") 2>&5 |
| 6303 | ac_status=$? |
| 6304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6305 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6306 | ac_compiler_gnu=yes |
| 6307 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6308 | echo "$as_me: failed program was:" >&5 |
| 6309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6310 | |
| 6311 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6312 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6313 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6315 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6316 | |
| 6317 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6318 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6319 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6320 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6321 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6322 | ac_save_CXXFLAGS=$CXXFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6323 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6324 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6325 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6327 | else |
| 6328 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6329 | ac_cxx_werror_flag=yes |
| 6330 | ac_cv_prog_cxx_g=no |
| 6331 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6332 | cat >conftest.$ac_ext <<_ACEOF |
| 6333 | /* confdefs.h. */ |
| 6334 | _ACEOF |
| 6335 | cat confdefs.h >>conftest.$ac_ext |
| 6336 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6337 | /* end confdefs.h. */ |
| 6338 | |
| 6339 | int |
| 6340 | main () |
| 6341 | { |
| 6342 | |
| 6343 | ; |
| 6344 | return 0; |
| 6345 | } |
| 6346 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6347 | rm -f conftest.$ac_objext |
| 6348 | if { (ac_try="$ac_compile" |
| 6349 | case "(($ac_try" in |
| 6350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6351 | *) ac_try_echo=$ac_try;; |
| 6352 | esac |
| 6353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6354 | (eval "$ac_compile") 2>conftest.er1 |
| 6355 | ac_status=$? |
| 6356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6357 | rm -f conftest.er1 |
| 6358 | cat conftest.err >&5 |
| 6359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6360 | (exit $ac_status); } && |
| 6361 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6362 | { (case "(($ac_try" in |
| 6363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6364 | *) ac_try_echo=$ac_try;; |
| 6365 | esac |
| 6366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6367 | (eval "$ac_try") 2>&5 |
| 6368 | ac_status=$? |
| 6369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6370 | (exit $ac_status); }; } && |
| 6371 | { ac_try='test -s conftest.$ac_objext' |
| 6372 | { (case "(($ac_try" in |
| 6373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6374 | *) ac_try_echo=$ac_try;; |
| 6375 | esac |
| 6376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6377 | (eval "$ac_try") 2>&5 |
| 6378 | ac_status=$? |
| 6379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6380 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6381 | ac_cv_prog_cxx_g=yes |
| 6382 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6383 | echo "$as_me: failed program was:" >&5 |
| 6384 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6385 | |
| 6386 | CXXFLAGS="" |
| 6387 | cat >conftest.$ac_ext <<_ACEOF |
| 6388 | /* confdefs.h. */ |
| 6389 | _ACEOF |
| 6390 | cat confdefs.h >>conftest.$ac_ext |
| 6391 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6392 | /* end confdefs.h. */ |
| 6393 | |
| 6394 | int |
| 6395 | main () |
| 6396 | { |
| 6397 | |
| 6398 | ; |
| 6399 | return 0; |
| 6400 | } |
| 6401 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6402 | rm -f conftest.$ac_objext |
| 6403 | if { (ac_try="$ac_compile" |
| 6404 | case "(($ac_try" in |
| 6405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6406 | *) ac_try_echo=$ac_try;; |
| 6407 | esac |
| 6408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6409 | (eval "$ac_compile") 2>conftest.er1 |
| 6410 | ac_status=$? |
| 6411 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6412 | rm -f conftest.er1 |
| 6413 | cat conftest.err >&5 |
| 6414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6415 | (exit $ac_status); } && |
| 6416 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6417 | { (case "(($ac_try" in |
| 6418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6419 | *) ac_try_echo=$ac_try;; |
| 6420 | esac |
| 6421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6422 | (eval "$ac_try") 2>&5 |
| 6423 | ac_status=$? |
| 6424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6425 | (exit $ac_status); }; } && |
| 6426 | { ac_try='test -s conftest.$ac_objext' |
| 6427 | { (case "(($ac_try" in |
| 6428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6429 | *) ac_try_echo=$ac_try;; |
| 6430 | esac |
| 6431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6432 | (eval "$ac_try") 2>&5 |
| 6433 | ac_status=$? |
| 6434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6435 | (exit $ac_status); }; }; then |
| 6436 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6437 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6438 | echo "$as_me: failed program was:" >&5 |
| 6439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6440 | |
| 6441 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6442 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6443 | cat >conftest.$ac_ext <<_ACEOF |
| 6444 | /* confdefs.h. */ |
| 6445 | _ACEOF |
| 6446 | cat confdefs.h >>conftest.$ac_ext |
| 6447 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6448 | /* end confdefs.h. */ |
| 6449 | |
| 6450 | int |
| 6451 | main () |
| 6452 | { |
| 6453 | |
| 6454 | ; |
| 6455 | return 0; |
| 6456 | } |
| 6457 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6458 | rm -f conftest.$ac_objext |
| 6459 | if { (ac_try="$ac_compile" |
| 6460 | case "(($ac_try" in |
| 6461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6462 | *) ac_try_echo=$ac_try;; |
| 6463 | esac |
| 6464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6465 | (eval "$ac_compile") 2>conftest.er1 |
| 6466 | ac_status=$? |
| 6467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6468 | rm -f conftest.er1 |
| 6469 | cat conftest.err >&5 |
| 6470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6471 | (exit $ac_status); } && |
| 6472 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6473 | { (case "(($ac_try" in |
| 6474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6475 | *) ac_try_echo=$ac_try;; |
| 6476 | esac |
| 6477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6478 | (eval "$ac_try") 2>&5 |
| 6479 | ac_status=$? |
| 6480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6481 | (exit $ac_status); }; } && |
| 6482 | { ac_try='test -s conftest.$ac_objext' |
| 6483 | { (case "(($ac_try" in |
| 6484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6485 | *) ac_try_echo=$ac_try;; |
| 6486 | esac |
| 6487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6488 | (eval "$ac_try") 2>&5 |
| 6489 | ac_status=$? |
| 6490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6491 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6492 | ac_cv_prog_cxx_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6493 | else |
| 6494 | echo "$as_me: failed program was:" >&5 |
| 6495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6496 | |
| 6497 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6498 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6499 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6501 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6504 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6505 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6507 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6508 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6509 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6510 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6511 | if test "$ac_test_CXXFLAGS" = set; then |
| 6512 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6513 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6514 | if test "$GXX" = yes; then |
| 6515 | CXXFLAGS="-g -O2" |
| 6516 | else |
| 6517 | CXXFLAGS="-g" |
| 6518 | fi |
| 6519 | else |
| 6520 | if test "$GXX" = yes; then |
| 6521 | CXXFLAGS="-O2" |
| 6522 | else |
| 6523 | CXXFLAGS= |
| 6524 | fi |
| 6525 | fi |
| 6526 | ac_ext=c |
| 6527 | ac_cpp='$CPP $CPPFLAGS' |
| 6528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6531 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6532 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6533 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6534 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6535 | if test "${lt_cv_path_NM+set}" = set; then |
| 6536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6537 | else |
| 6538 | if test -n "$NM"; then |
| 6539 | # Let the user override the test. |
| 6540 | lt_cv_path_NM="$NM" |
| 6541 | else |
| 6542 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6543 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6544 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6545 | fi |
| 6546 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6547 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6548 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6549 | IFS="$lt_save_ifs" |
| 6550 | test -z "$ac_dir" && ac_dir=. |
| 6551 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6552 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6553 | # Check to see if the nm accepts a BSD-compat flag. |
| 6554 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6555 | # nm: unknown option "B" ignored |
| 6556 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6557 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6558 | */dev/null* | *'Invalid file or object type'*) |
| 6559 | lt_cv_path_NM="$tmp_nm -B" |
| 6560 | break |
| 6561 | ;; |
| 6562 | *) |
| 6563 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6564 | */dev/null*) |
| 6565 | lt_cv_path_NM="$tmp_nm -p" |
| 6566 | break |
| 6567 | ;; |
| 6568 | *) |
| 6569 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6570 | continue # so that we can try to find one that supports BSD flags |
| 6571 | ;; |
| 6572 | esac |
| 6573 | ;; |
| 6574 | esac |
| 6575 | fi |
| 6576 | done |
| 6577 | IFS="$lt_save_ifs" |
| 6578 | done |
| 6579 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6580 | fi |
| 6581 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6582 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6583 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6584 | NM="$lt_cv_path_NM" |
| 6585 | |
| 6586 | |
| 6587 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6588 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6589 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6590 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6592 | else |
| 6593 | llvm_cv_gnu_make_command='' |
| 6594 | for a in "$MAKE" make gmake gnumake ; do |
| 6595 | if test -z "$a" ; then continue ; fi ; |
| 6596 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6597 | then |
| 6598 | llvm_cv_gnu_make_command=$a ; |
| 6599 | break; |
| 6600 | fi |
| 6601 | done |
| 6602 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6603 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6604 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6605 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6606 | ifGNUmake='' ; |
| 6607 | else |
| 6608 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6609 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6610 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6611 | fi |
| 6612 | |
| 6613 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6614 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6615 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6616 | LN_S=$as_ln_s |
| 6617 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6618 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6619 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6620 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6621 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6622 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6623 | fi |
| 6624 | |
| 6625 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6626 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6627 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6628 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6629 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6631 | else |
| 6632 | case $CMP in |
| 6633 | [\\/]* | ?:[\\/]*) |
| 6634 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6635 | ;; |
| 6636 | *) |
| 6637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6638 | for as_dir in $PATH |
| 6639 | do |
| 6640 | IFS=$as_save_IFS |
| 6641 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6642 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6643 | 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] | 6644 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6645 | 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] | 6646 | break 2 |
| 6647 | fi |
| 6648 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6649 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6650 | IFS=$as_save_IFS |
| 6651 | |
| 6652 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6653 | ;; |
| 6654 | esac |
| 6655 | fi |
| 6656 | CMP=$ac_cv_path_CMP |
| 6657 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6658 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6659 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6660 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6661 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6662 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6663 | fi |
| 6664 | |
| 6665 | |
| 6666 | # Extract the first word of "cp", so it can be a program name with args. |
| 6667 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6668 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6669 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6670 | if test "${ac_cv_path_CP+set}" = set; then |
| 6671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6672 | else |
| 6673 | case $CP in |
| 6674 | [\\/]* | ?:[\\/]*) |
| 6675 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6676 | ;; |
| 6677 | *) |
| 6678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6679 | for as_dir in $PATH |
| 6680 | do |
| 6681 | IFS=$as_save_IFS |
| 6682 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6683 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6684 | 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] | 6685 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6686 | 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] | 6687 | break 2 |
| 6688 | fi |
| 6689 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6690 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6691 | IFS=$as_save_IFS |
| 6692 | |
| 6693 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6694 | ;; |
| 6695 | esac |
| 6696 | fi |
| 6697 | CP=$ac_cv_path_CP |
| 6698 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6699 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6700 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6701 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6702 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6703 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6704 | fi |
| 6705 | |
| 6706 | |
| 6707 | # Extract the first word of "date", so it can be a program name with args. |
| 6708 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6709 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6710 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6711 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6713 | else |
| 6714 | case $DATE in |
| 6715 | [\\/]* | ?:[\\/]*) |
| 6716 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6717 | ;; |
| 6718 | *) |
| 6719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6720 | for as_dir in $PATH |
| 6721 | do |
| 6722 | IFS=$as_save_IFS |
| 6723 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6724 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6725 | 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] | 6726 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6727 | 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] | 6728 | break 2 |
| 6729 | fi |
| 6730 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6731 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6732 | IFS=$as_save_IFS |
| 6733 | |
| 6734 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6735 | ;; |
| 6736 | esac |
| 6737 | fi |
| 6738 | DATE=$ac_cv_path_DATE |
| 6739 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6740 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6741 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6742 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6743 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6744 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6745 | fi |
| 6746 | |
| 6747 | |
| 6748 | # Extract the first word of "find", so it can be a program name with args. |
| 6749 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6750 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6751 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6752 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6754 | else |
| 6755 | case $FIND in |
| 6756 | [\\/]* | ?:[\\/]*) |
| 6757 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6758 | ;; |
| 6759 | *) |
| 6760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6761 | for as_dir in $PATH |
| 6762 | do |
| 6763 | IFS=$as_save_IFS |
| 6764 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6765 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6766 | 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] | 6767 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6768 | 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] | 6769 | break 2 |
| 6770 | fi |
| 6771 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6772 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6773 | IFS=$as_save_IFS |
| 6774 | |
| 6775 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6776 | ;; |
| 6777 | esac |
| 6778 | fi |
| 6779 | FIND=$ac_cv_path_FIND |
| 6780 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6781 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6782 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6783 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6784 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6785 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6786 | fi |
| 6787 | |
| 6788 | |
| 6789 | # Extract the first word of "grep", so it can be a program name with args. |
| 6790 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6791 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6792 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6793 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6795 | else |
| 6796 | case $GREP in |
| 6797 | [\\/]* | ?:[\\/]*) |
| 6798 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6799 | ;; |
| 6800 | *) |
| 6801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6802 | for as_dir in $PATH |
| 6803 | do |
| 6804 | IFS=$as_save_IFS |
| 6805 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6806 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6807 | 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] | 6808 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6809 | 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] | 6810 | break 2 |
| 6811 | fi |
| 6812 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6813 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6814 | IFS=$as_save_IFS |
| 6815 | |
| 6816 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6817 | ;; |
| 6818 | esac |
| 6819 | fi |
| 6820 | GREP=$ac_cv_path_GREP |
| 6821 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6822 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6823 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6824 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6825 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6826 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6827 | fi |
| 6828 | |
| 6829 | |
| 6830 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6831 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6832 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6834 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6836 | else |
| 6837 | case $MKDIR in |
| 6838 | [\\/]* | ?:[\\/]*) |
| 6839 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6840 | ;; |
| 6841 | *) |
| 6842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6843 | for as_dir in $PATH |
| 6844 | do |
| 6845 | IFS=$as_save_IFS |
| 6846 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6847 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6848 | 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] | 6849 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6850 | 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] | 6851 | break 2 |
| 6852 | fi |
| 6853 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6854 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6855 | IFS=$as_save_IFS |
| 6856 | |
| 6857 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6858 | ;; |
| 6859 | esac |
| 6860 | fi |
| 6861 | MKDIR=$ac_cv_path_MKDIR |
| 6862 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6863 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6864 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6865 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6866 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6867 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6868 | fi |
| 6869 | |
| 6870 | |
| 6871 | # Extract the first word of "mv", so it can be a program name with args. |
| 6872 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6873 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6875 | if test "${ac_cv_path_MV+set}" = set; then |
| 6876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6877 | else |
| 6878 | case $MV in |
| 6879 | [\\/]* | ?:[\\/]*) |
| 6880 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6881 | ;; |
| 6882 | *) |
| 6883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6884 | for as_dir in $PATH |
| 6885 | do |
| 6886 | IFS=$as_save_IFS |
| 6887 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6888 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6889 | 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] | 6890 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6891 | 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] | 6892 | break 2 |
| 6893 | fi |
| 6894 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6895 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6896 | IFS=$as_save_IFS |
| 6897 | |
| 6898 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6899 | ;; |
| 6900 | esac |
| 6901 | fi |
| 6902 | MV=$ac_cv_path_MV |
| 6903 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6904 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6905 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6906 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6907 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6908 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6909 | fi |
| 6910 | |
| 6911 | |
| 6912 | if test -n "$ac_tool_prefix"; then |
| 6913 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6914 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6915 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6917 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6919 | else |
| 6920 | if test -n "$RANLIB"; then |
| 6921 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6922 | else |
| 6923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6924 | for as_dir in $PATH |
| 6925 | do |
| 6926 | IFS=$as_save_IFS |
| 6927 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6928 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6929 | 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] | 6930 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6931 | 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] | 6932 | break 2 |
| 6933 | fi |
| 6934 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6935 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6936 | IFS=$as_save_IFS |
| 6937 | |
| 6938 | fi |
| 6939 | fi |
| 6940 | RANLIB=$ac_cv_prog_RANLIB |
| 6941 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6942 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6943 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6944 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6945 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6946 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6947 | fi |
| 6948 | |
| 6949 | |
| 6950 | fi |
| 6951 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6952 | ac_ct_RANLIB=$RANLIB |
| 6953 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6954 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6955 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6956 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6957 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6959 | else |
| 6960 | if test -n "$ac_ct_RANLIB"; then |
| 6961 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6962 | else |
| 6963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6964 | for as_dir in $PATH |
| 6965 | do |
| 6966 | IFS=$as_save_IFS |
| 6967 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6968 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6969 | 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] | 6970 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6971 | 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] | 6972 | break 2 |
| 6973 | fi |
| 6974 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6975 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6976 | IFS=$as_save_IFS |
| 6977 | |
| 6978 | fi |
| 6979 | fi |
| 6980 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6981 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6982 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6983 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6984 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6985 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6986 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6987 | fi |
| 6988 | |
| 6989 | if test "x$ac_ct_RANLIB" = x; then |
| 6990 | RANLIB=":" |
| 6991 | else |
| 6992 | case $cross_compiling:$ac_tool_warned in |
| 6993 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6994 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6995 | whose name does not start with the host triplet. If you think this |
| 6996 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6997 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6998 | whose name does not start with the host triplet. If you think this |
| 6999 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7000 | ac_tool_warned=yes ;; |
| 7001 | esac |
| 7002 | RANLIB=$ac_ct_RANLIB |
| 7003 | fi |
| 7004 | else |
| 7005 | RANLIB="$ac_cv_prog_RANLIB" |
| 7006 | fi |
| 7007 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7008 | if test -n "$ac_tool_prefix"; then |
| 7009 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 7010 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7011 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7012 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7013 | if test "${ac_cv_prog_AR+set}" = set; then |
| 7014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7015 | else |
| 7016 | if test -n "$AR"; then |
| 7017 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7018 | else |
| 7019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7020 | for as_dir in $PATH |
| 7021 | do |
| 7022 | IFS=$as_save_IFS |
| 7023 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7024 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7025 | 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] | 7026 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7027 | 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] | 7028 | break 2 |
| 7029 | fi |
| 7030 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7031 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7032 | IFS=$as_save_IFS |
| 7033 | |
| 7034 | fi |
| 7035 | fi |
| 7036 | AR=$ac_cv_prog_AR |
| 7037 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7038 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 7039 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7040 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7041 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7042 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7043 | fi |
| 7044 | |
| 7045 | |
| 7046 | fi |
| 7047 | if test -z "$ac_cv_prog_AR"; then |
| 7048 | ac_ct_AR=$AR |
| 7049 | # Extract the first word of "ar", so it can be a program name with args. |
| 7050 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7051 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7052 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7053 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 7054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7055 | else |
| 7056 | if test -n "$ac_ct_AR"; then |
| 7057 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7058 | else |
| 7059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7060 | for as_dir in $PATH |
| 7061 | do |
| 7062 | IFS=$as_save_IFS |
| 7063 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7064 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7065 | 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] | 7066 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7067 | 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] | 7068 | break 2 |
| 7069 | fi |
| 7070 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7071 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7072 | IFS=$as_save_IFS |
| 7073 | |
| 7074 | fi |
| 7075 | fi |
| 7076 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7077 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7078 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 7079 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7080 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7081 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7082 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7083 | fi |
| 7084 | |
| 7085 | if test "x$ac_ct_AR" = x; then |
| 7086 | AR="false" |
| 7087 | else |
| 7088 | case $cross_compiling:$ac_tool_warned in |
| 7089 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7090 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7091 | whose name does not start with the host triplet. If you think this |
| 7092 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7093 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7094 | whose name does not start with the host triplet. If you think this |
| 7095 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7096 | ac_tool_warned=yes ;; |
| 7097 | esac |
| 7098 | AR=$ac_ct_AR |
| 7099 | fi |
| 7100 | else |
| 7101 | AR="$ac_cv_prog_AR" |
| 7102 | fi |
| 7103 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7104 | # Extract the first word of "rm", so it can be a program name with args. |
| 7105 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7106 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7107 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7108 | if test "${ac_cv_path_RM+set}" = set; then |
| 7109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7110 | else |
| 7111 | case $RM in |
| 7112 | [\\/]* | ?:[\\/]*) |
| 7113 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7114 | ;; |
| 7115 | *) |
| 7116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7117 | for as_dir in $PATH |
| 7118 | do |
| 7119 | IFS=$as_save_IFS |
| 7120 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7121 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7122 | 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] | 7123 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7124 | 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] | 7125 | break 2 |
| 7126 | fi |
| 7127 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7128 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7129 | IFS=$as_save_IFS |
| 7130 | |
| 7131 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7132 | ;; |
| 7133 | esac |
| 7134 | fi |
| 7135 | RM=$ac_cv_path_RM |
| 7136 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7137 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7138 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7139 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7140 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7141 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7142 | fi |
| 7143 | |
| 7144 | |
| 7145 | # Extract the first word of "sed", so it can be a program name with args. |
| 7146 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7147 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7149 | if test "${ac_cv_path_SED+set}" = set; then |
| 7150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7151 | else |
| 7152 | case $SED in |
| 7153 | [\\/]* | ?:[\\/]*) |
| 7154 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7155 | ;; |
| 7156 | *) |
| 7157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7158 | for as_dir in $PATH |
| 7159 | do |
| 7160 | IFS=$as_save_IFS |
| 7161 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7162 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7163 | 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] | 7164 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7165 | 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] | 7166 | break 2 |
| 7167 | fi |
| 7168 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7169 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7170 | IFS=$as_save_IFS |
| 7171 | |
| 7172 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7173 | ;; |
| 7174 | esac |
| 7175 | fi |
| 7176 | SED=$ac_cv_path_SED |
| 7177 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7178 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7179 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7180 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7181 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7182 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7183 | fi |
| 7184 | |
| 7185 | |
| 7186 | # Extract the first word of "tar", so it can be a program name with args. |
| 7187 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7188 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7189 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7190 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7192 | else |
| 7193 | case $TAR in |
| 7194 | [\\/]* | ?:[\\/]*) |
| 7195 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7196 | ;; |
| 7197 | *) |
| 7198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7199 | for as_dir in $PATH |
| 7200 | do |
| 7201 | IFS=$as_save_IFS |
| 7202 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7203 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7204 | 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] | 7205 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7206 | 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] | 7207 | break 2 |
| 7208 | fi |
| 7209 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7210 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7211 | IFS=$as_save_IFS |
| 7212 | |
| 7213 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7214 | ;; |
| 7215 | esac |
| 7216 | fi |
| 7217 | TAR=$ac_cv_path_TAR |
| 7218 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7219 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7220 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7221 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7222 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7223 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7224 | fi |
| 7225 | |
| 7226 | |
| 7227 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7228 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7229 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7230 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7231 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7233 | else |
| 7234 | case $BINPWD in |
| 7235 | [\\/]* | ?:[\\/]*) |
| 7236 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7237 | ;; |
| 7238 | *) |
| 7239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7240 | for as_dir in $PATH |
| 7241 | do |
| 7242 | IFS=$as_save_IFS |
| 7243 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7244 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7245 | 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] | 7246 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7247 | 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] | 7248 | break 2 |
| 7249 | fi |
| 7250 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7251 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7252 | IFS=$as_save_IFS |
| 7253 | |
| 7254 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7255 | ;; |
| 7256 | esac |
| 7257 | fi |
| 7258 | BINPWD=$ac_cv_path_BINPWD |
| 7259 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7260 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7261 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7262 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7263 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7264 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7265 | fi |
| 7266 | |
| 7267 | |
| 7268 | |
| 7269 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7270 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7271 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7272 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7273 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7275 | else |
| 7276 | case $GRAPHVIZ in |
| 7277 | [\\/]* | ?:[\\/]*) |
| 7278 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7279 | ;; |
| 7280 | *) |
| 7281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7282 | for as_dir in $PATH |
| 7283 | do |
| 7284 | IFS=$as_save_IFS |
| 7285 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7286 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7287 | 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] | 7288 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7289 | 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] | 7290 | break 2 |
| 7291 | fi |
| 7292 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7293 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7294 | IFS=$as_save_IFS |
| 7295 | |
| 7296 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7297 | ;; |
| 7298 | esac |
| 7299 | fi |
| 7300 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7301 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7302 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7303 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7304 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7305 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7306 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7307 | fi |
| 7308 | |
| 7309 | |
| 7310 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7311 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7312 | cat >>confdefs.h <<\_ACEOF |
| 7313 | #define HAVE_GRAPHVIZ 1 |
| 7314 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7315 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7316 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7317 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7318 | fi |
| 7319 | |
| 7320 | cat >>confdefs.h <<_ACEOF |
| 7321 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7322 | _ACEOF |
| 7323 | |
| 7324 | fi |
| 7325 | # Extract the first word of "dot", so it can be a program name with args. |
| 7326 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7327 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7328 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7329 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7331 | else |
| 7332 | case $DOT in |
| 7333 | [\\/]* | ?:[\\/]*) |
| 7334 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7335 | ;; |
| 7336 | *) |
| 7337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7338 | for as_dir in $PATH |
| 7339 | do |
| 7340 | IFS=$as_save_IFS |
| 7341 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7342 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7343 | 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] | 7344 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7345 | 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] | 7346 | break 2 |
| 7347 | fi |
| 7348 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7349 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7350 | IFS=$as_save_IFS |
| 7351 | |
| 7352 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7353 | ;; |
| 7354 | esac |
| 7355 | fi |
| 7356 | DOT=$ac_cv_path_DOT |
| 7357 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7358 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7359 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7360 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7361 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7362 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7363 | fi |
| 7364 | |
| 7365 | |
| 7366 | if test "$DOT" != "echo dot" ; then |
| 7367 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7368 | cat >>confdefs.h <<\_ACEOF |
| 7369 | #define HAVE_DOT 1 |
| 7370 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7371 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7372 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7373 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7374 | fi |
| 7375 | |
| 7376 | cat >>confdefs.h <<_ACEOF |
| 7377 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7378 | _ACEOF |
| 7379 | |
| 7380 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7381 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7382 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7383 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7385 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7387 | else |
| 7388 | case $FDP in |
| 7389 | [\\/]* | ?:[\\/]*) |
| 7390 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7391 | ;; |
| 7392 | *) |
| 7393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7394 | for as_dir in $PATH |
| 7395 | do |
| 7396 | IFS=$as_save_IFS |
| 7397 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7398 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7399 | 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] | 7400 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7401 | 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] | 7402 | break 2 |
| 7403 | fi |
| 7404 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7405 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7406 | IFS=$as_save_IFS |
| 7407 | |
| 7408 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7409 | ;; |
| 7410 | esac |
| 7411 | fi |
| 7412 | FDP=$ac_cv_path_FDP |
| 7413 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7414 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7415 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7416 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7417 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7418 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7419 | fi |
| 7420 | |
| 7421 | |
| 7422 | if test "$FDP" != "echo fdp" ; then |
| 7423 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7424 | cat >>confdefs.h <<\_ACEOF |
| 7425 | #define HAVE_FDP 1 |
| 7426 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7427 | |
| 7428 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7429 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7430 | fi |
| 7431 | |
| 7432 | cat >>confdefs.h <<_ACEOF |
| 7433 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7434 | _ACEOF |
| 7435 | |
| 7436 | fi |
| 7437 | # Extract the first word of "neato", so it can be a program name with args. |
| 7438 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7439 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7440 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7441 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7443 | else |
| 7444 | case $NEATO in |
| 7445 | [\\/]* | ?:[\\/]*) |
| 7446 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7447 | ;; |
| 7448 | *) |
| 7449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7450 | for as_dir in $PATH |
| 7451 | do |
| 7452 | IFS=$as_save_IFS |
| 7453 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7454 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7455 | 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] | 7456 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7457 | 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] | 7458 | break 2 |
| 7459 | fi |
| 7460 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7461 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7462 | IFS=$as_save_IFS |
| 7463 | |
| 7464 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7465 | ;; |
| 7466 | esac |
| 7467 | fi |
| 7468 | NEATO=$ac_cv_path_NEATO |
| 7469 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7470 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7471 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7472 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7473 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7474 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7475 | fi |
| 7476 | |
| 7477 | |
| 7478 | if test "$NEATO" != "echo neato" ; then |
| 7479 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7480 | cat >>confdefs.h <<\_ACEOF |
| 7481 | #define HAVE_NEATO 1 |
| 7482 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7483 | |
| 7484 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7485 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7486 | fi |
| 7487 | |
| 7488 | cat >>confdefs.h <<_ACEOF |
| 7489 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7490 | _ACEOF |
| 7491 | |
| 7492 | fi |
| 7493 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7494 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7495 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7496 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7497 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7499 | else |
| 7500 | case $TWOPI in |
| 7501 | [\\/]* | ?:[\\/]*) |
| 7502 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7503 | ;; |
| 7504 | *) |
| 7505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7506 | for as_dir in $PATH |
| 7507 | do |
| 7508 | IFS=$as_save_IFS |
| 7509 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7510 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7511 | 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] | 7512 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7513 | 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] | 7514 | break 2 |
| 7515 | fi |
| 7516 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7517 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7518 | IFS=$as_save_IFS |
| 7519 | |
| 7520 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7521 | ;; |
| 7522 | esac |
| 7523 | fi |
| 7524 | TWOPI=$ac_cv_path_TWOPI |
| 7525 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7526 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7527 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7528 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7529 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7530 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7531 | fi |
| 7532 | |
| 7533 | |
| 7534 | if test "$TWOPI" != "echo twopi" ; then |
| 7535 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7536 | cat >>confdefs.h <<\_ACEOF |
| 7537 | #define HAVE_TWOPI 1 |
| 7538 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7539 | |
| 7540 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7541 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7542 | fi |
| 7543 | |
| 7544 | cat >>confdefs.h <<_ACEOF |
| 7545 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7546 | _ACEOF |
| 7547 | |
| 7548 | fi |
| 7549 | # Extract the first word of "circo", so it can be a program name with args. |
| 7550 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7551 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7552 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7553 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 7554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7555 | else |
| 7556 | case $CIRCO in |
| 7557 | [\\/]* | ?:[\\/]*) |
| 7558 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 7559 | ;; |
| 7560 | *) |
| 7561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7562 | for as_dir in $PATH |
| 7563 | do |
| 7564 | IFS=$as_save_IFS |
| 7565 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7566 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7567 | 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] | 7568 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7569 | 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] | 7570 | break 2 |
| 7571 | fi |
| 7572 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7573 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7574 | IFS=$as_save_IFS |
| 7575 | |
| 7576 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7577 | ;; |
| 7578 | esac |
| 7579 | fi |
| 7580 | CIRCO=$ac_cv_path_CIRCO |
| 7581 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7582 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7583 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7584 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7585 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7586 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7587 | fi |
| 7588 | |
| 7589 | |
| 7590 | if test "$CIRCO" != "echo circo" ; then |
| 7591 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7592 | cat >>confdefs.h <<\_ACEOF |
| 7593 | #define HAVE_CIRCO 1 |
| 7594 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7595 | |
| 7596 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7597 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7598 | fi |
| 7599 | |
| 7600 | cat >>confdefs.h <<_ACEOF |
| 7601 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7602 | _ACEOF |
| 7603 | |
| 7604 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7605 | for ac_prog in gv gsview32 |
| 7606 | do |
| 7607 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7608 | set dummy $ac_prog; 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_GV+set}" = set; then |
| 7612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7613 | else |
| 7614 | case $GV in |
| 7615 | [\\/]* | ?:[\\/]*) |
| 7616 | ac_cv_path_GV="$GV" # 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 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7626 | ac_cv_path_GV="$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 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7628 | break 2 |
| 7629 | fi |
| 7630 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7631 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7632 | IFS=$as_save_IFS |
| 7633 | |
| 7634 | ;; |
| 7635 | esac |
| 7636 | fi |
| 7637 | GV=$ac_cv_path_GV |
| 7638 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7639 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7640 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7641 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7642 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7643 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7644 | fi |
| 7645 | |
| 7646 | |
| 7647 | test -n "$GV" && break |
| 7648 | done |
| 7649 | test -n "$GV" || GV="echo gv" |
| 7650 | |
| 7651 | if test "$GV" != "echo gv" ; then |
| 7652 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7653 | cat >>confdefs.h <<\_ACEOF |
| 7654 | #define HAVE_GV 1 |
| 7655 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7656 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7657 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7658 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7659 | fi |
| 7660 | |
| 7661 | cat >>confdefs.h <<_ACEOF |
| 7662 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7663 | _ACEOF |
| 7664 | |
| 7665 | fi |
| 7666 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7667 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7668 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7669 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7670 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7672 | else |
| 7673 | case $DOTTY in |
| 7674 | [\\/]* | ?:[\\/]*) |
| 7675 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7676 | ;; |
| 7677 | *) |
| 7678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7679 | for as_dir in $PATH |
| 7680 | do |
| 7681 | IFS=$as_save_IFS |
| 7682 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7683 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7684 | 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] | 7685 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7686 | 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] | 7687 | break 2 |
| 7688 | fi |
| 7689 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7690 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7691 | IFS=$as_save_IFS |
| 7692 | |
| 7693 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7694 | ;; |
| 7695 | esac |
| 7696 | fi |
| 7697 | DOTTY=$ac_cv_path_DOTTY |
| 7698 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7699 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7700 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7701 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7702 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7703 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7704 | fi |
| 7705 | |
| 7706 | |
| 7707 | if test "$DOTTY" != "echo dotty" ; then |
| 7708 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7709 | cat >>confdefs.h <<\_ACEOF |
| 7710 | #define HAVE_DOTTY 1 |
| 7711 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7712 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7713 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7714 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7715 | fi |
| 7716 | |
| 7717 | cat >>confdefs.h <<_ACEOF |
| 7718 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7719 | _ACEOF |
| 7720 | |
| 7721 | fi |
| 7722 | |
| 7723 | |
| 7724 | # Extract the first word of "perl", so it can be a program name with args. |
| 7725 | set dummy perl; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7726 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7727 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7728 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7730 | else |
| 7731 | case $PERL in |
| 7732 | [\\/]* | ?:[\\/]*) |
| 7733 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7734 | ;; |
| 7735 | *) |
| 7736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7737 | for as_dir in $PATH |
| 7738 | do |
| 7739 | IFS=$as_save_IFS |
| 7740 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7741 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7742 | 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] | 7743 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7744 | 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] | 7745 | break 2 |
| 7746 | fi |
| 7747 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7748 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7749 | IFS=$as_save_IFS |
| 7750 | |
| 7751 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7752 | ;; |
| 7753 | esac |
| 7754 | fi |
| 7755 | PERL=$ac_cv_path_PERL |
| 7756 | if test -n "$PERL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7757 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7758 | echo "${ECHO_T}$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7759 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7760 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7761 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7762 | fi |
| 7763 | |
| 7764 | |
| 7765 | if test "$PERL" != "none"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7766 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7767 | 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] | 7768 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7769 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7770 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7771 | else |
| 7772 | PERL=none |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7773 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7774 | echo "${ECHO_T}not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7775 | fi |
| 7776 | fi |
| 7777 | |
| 7778 | |
| 7779 | if test x"$PERL" = xnone; then |
| 7780 | HAVE_PERL=0 |
| 7781 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7782 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7783 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7784 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7785 | else |
| 7786 | HAVE_PERL=1 |
| 7787 | |
| 7788 | fi |
| 7789 | |
| 7790 | # Find a good install program. We prefer a C program (faster), |
| 7791 | # so one script is as good as another. But avoid the broken or |
| 7792 | # incompatible versions: |
| 7793 | # SysV /etc/install, /usr/sbin/install |
| 7794 | # SunOS /usr/etc/install |
| 7795 | # IRIX /sbin/install |
| 7796 | # AIX /bin/install |
| 7797 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7798 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7799 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7800 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7801 | # OS/2's system install, which has a completely different semantic |
| 7802 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7803 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7804 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7805 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7806 | if test "${ac_cv_path_install+set}" = set; then |
| 7807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7808 | else |
| 7809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7810 | for as_dir in $PATH |
| 7811 | do |
| 7812 | IFS=$as_save_IFS |
| 7813 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7814 | # Account for people who put trailing slashes in PATH elements. |
| 7815 | case $as_dir/ in |
| 7816 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7817 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7818 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7819 | /usr/ucb/* ) ;; |
| 7820 | *) |
| 7821 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7822 | # Don't use installbsd from OSF since it installs stuff as root |
| 7823 | # by default. |
| 7824 | for ac_prog in ginstall scoinst install; do |
| 7825 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7826 | 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] | 7827 | if test $ac_prog = install && |
| 7828 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7829 | # AIX install. It has an incompatible calling convention. |
| 7830 | : |
| 7831 | elif test $ac_prog = install && |
| 7832 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7833 | # program-specific install script used by HP pwplus--don't use. |
| 7834 | : |
| 7835 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7836 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7837 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7838 | fi |
| 7839 | fi |
| 7840 | done |
| 7841 | done |
| 7842 | ;; |
| 7843 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7844 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7845 | IFS=$as_save_IFS |
| 7846 | |
| 7847 | |
| 7848 | fi |
| 7849 | if test "${ac_cv_path_install+set}" = set; then |
| 7850 | INSTALL=$ac_cv_path_install |
| 7851 | else |
| 7852 | # As a last resort, use the slow shell script. Don't cache a |
| 7853 | # value for INSTALL within a source directory, because that will |
| 7854 | # break other packages using the cache if that directory is |
| 7855 | # removed, or if the value is a relative name. |
| 7856 | INSTALL=$ac_install_sh |
| 7857 | fi |
| 7858 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7859 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7860 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7861 | |
| 7862 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7863 | # It thinks the first close brace ends the variable substitution. |
| 7864 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7865 | |
| 7866 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7867 | |
| 7868 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7869 | |
| 7870 | |
| 7871 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7872 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7873 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7875 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7877 | else |
| 7878 | case $BZIP2 in |
| 7879 | [\\/]* | ?:[\\/]*) |
| 7880 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7881 | ;; |
| 7882 | *) |
| 7883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7884 | for as_dir in $PATH |
| 7885 | do |
| 7886 | IFS=$as_save_IFS |
| 7887 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7888 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7889 | 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] | 7890 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7891 | 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] | 7892 | break 2 |
| 7893 | fi |
| 7894 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7895 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7896 | IFS=$as_save_IFS |
| 7897 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7898 | ;; |
| 7899 | esac |
| 7900 | fi |
| 7901 | BZIP2=$ac_cv_path_BZIP2 |
| 7902 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7903 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7904 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7905 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7906 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7907 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7908 | fi |
| 7909 | |
| 7910 | |
| 7911 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7912 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7913 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7914 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7915 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7917 | else |
| 7918 | case $DOXYGEN in |
| 7919 | [\\/]* | ?:[\\/]*) |
| 7920 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7921 | ;; |
| 7922 | *) |
| 7923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7924 | for as_dir in $PATH |
| 7925 | do |
| 7926 | IFS=$as_save_IFS |
| 7927 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7928 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7929 | 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] | 7930 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7931 | 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] | 7932 | break 2 |
| 7933 | fi |
| 7934 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7935 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7936 | IFS=$as_save_IFS |
| 7937 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7938 | ;; |
| 7939 | esac |
| 7940 | fi |
| 7941 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7942 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7943 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7944 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7945 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7946 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7947 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7948 | fi |
| 7949 | |
| 7950 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7951 | # Extract the first word of "groff", so it can be a program name with args. |
| 7952 | set dummy groff; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7953 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7954 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7955 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7957 | else |
| 7958 | case $GROFF in |
| 7959 | [\\/]* | ?:[\\/]*) |
| 7960 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7961 | ;; |
| 7962 | *) |
| 7963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7964 | for as_dir in $PATH |
| 7965 | do |
| 7966 | IFS=$as_save_IFS |
| 7967 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7968 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7969 | 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] | 7970 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7971 | 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] | 7972 | break 2 |
| 7973 | fi |
| 7974 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7975 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7976 | IFS=$as_save_IFS |
| 7977 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7978 | ;; |
| 7979 | esac |
| 7980 | fi |
| 7981 | GROFF=$ac_cv_path_GROFF |
| 7982 | if test -n "$GROFF"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7983 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7984 | echo "${ECHO_T}$GROFF" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7985 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7986 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7987 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7988 | fi |
| 7989 | |
| 7990 | |
| 7991 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7992 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7993 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7995 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 7996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7997 | else |
| 7998 | case $GZIP in |
| 7999 | [\\/]* | ?:[\\/]*) |
| 8000 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 8001 | ;; |
| 8002 | *) |
| 8003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8004 | for as_dir in $PATH |
| 8005 | do |
| 8006 | IFS=$as_save_IFS |
| 8007 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8008 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8009 | 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] | 8010 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8011 | 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] | 8012 | break 2 |
| 8013 | fi |
| 8014 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8015 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8016 | IFS=$as_save_IFS |
| 8017 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8018 | ;; |
| 8019 | esac |
| 8020 | fi |
| 8021 | GZIP=$ac_cv_path_GZIP |
| 8022 | if test -n "$GZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8023 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 8024 | echo "${ECHO_T}$GZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8025 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8026 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8027 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8028 | fi |
| 8029 | |
| 8030 | |
| 8031 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 8032 | set dummy pod2html; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8033 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8034 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8035 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 8036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8037 | else |
| 8038 | case $POD2HTML in |
| 8039 | [\\/]* | ?:[\\/]*) |
| 8040 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 8041 | ;; |
| 8042 | *) |
| 8043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8044 | for as_dir in $PATH |
| 8045 | do |
| 8046 | IFS=$as_save_IFS |
| 8047 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8048 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8049 | 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] | 8050 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8051 | 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] | 8052 | break 2 |
| 8053 | fi |
| 8054 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8055 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8056 | IFS=$as_save_IFS |
| 8057 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8058 | ;; |
| 8059 | esac |
| 8060 | fi |
| 8061 | POD2HTML=$ac_cv_path_POD2HTML |
| 8062 | if test -n "$POD2HTML"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8063 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 8064 | echo "${ECHO_T}$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8065 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8066 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8067 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8068 | fi |
| 8069 | |
| 8070 | |
| 8071 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 8072 | set dummy pod2man; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8073 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8075 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 8076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8077 | else |
| 8078 | case $POD2MAN in |
| 8079 | [\\/]* | ?:[\\/]*) |
| 8080 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 8081 | ;; |
| 8082 | *) |
| 8083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8084 | for as_dir in $PATH |
| 8085 | do |
| 8086 | IFS=$as_save_IFS |
| 8087 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8088 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8089 | 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] | 8090 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8091 | 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] | 8092 | break 2 |
| 8093 | fi |
| 8094 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8095 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8096 | IFS=$as_save_IFS |
| 8097 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8098 | ;; |
| 8099 | esac |
| 8100 | fi |
| 8101 | POD2MAN=$ac_cv_path_POD2MAN |
| 8102 | if test -n "$POD2MAN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8103 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 8104 | echo "${ECHO_T}$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8105 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8106 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8107 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8108 | fi |
| 8109 | |
| 8110 | |
| 8111 | # Extract the first word of "runtest", so it can be a program name with args. |
| 8112 | set dummy runtest; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8113 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8114 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8115 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 8116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8117 | else |
| 8118 | case $RUNTEST in |
| 8119 | [\\/]* | ?:[\\/]*) |
| 8120 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 8121 | ;; |
| 8122 | *) |
| 8123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8124 | for as_dir in $PATH |
| 8125 | do |
| 8126 | IFS=$as_save_IFS |
| 8127 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8128 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8129 | 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] | 8130 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8131 | 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] | 8132 | break 2 |
| 8133 | fi |
| 8134 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8135 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8136 | IFS=$as_save_IFS |
| 8137 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8138 | ;; |
| 8139 | esac |
| 8140 | fi |
| 8141 | RUNTEST=$ac_cv_path_RUNTEST |
| 8142 | if test -n "$RUNTEST"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8143 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8144 | echo "${ECHO_T}$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8145 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8146 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8147 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8148 | fi |
| 8149 | |
| 8150 | |
| 8151 | |
| 8152 | no_itcl=true |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8153 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8154 | 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] | 8155 | |
| 8156 | # Check whether --with-tclinclude was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8157 | if test "${with_tclinclude+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8158 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8159 | else |
| 8160 | with_tclinclude='' |
| 8161 | fi |
| 8162 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8163 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8165 | else |
| 8166 | |
| 8167 | if test x"${with_tclinclude}" != x ; then |
| 8168 | if test -f ${with_tclinclude}/tclsh ; then |
| 8169 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8170 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8171 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8172 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8173 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8174 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8175 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8176 | fi |
| 8177 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 8178 | fi |
| 8179 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8180 | |
| 8181 | if test x"${ac_cv_path_tclsh}" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8182 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8183 | echo "${ECHO_T}none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8184 | 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 |
| 8185 | do |
| 8186 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8187 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8188 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8189 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8190 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8192 | else |
| 8193 | case $TCLSH in |
| 8194 | [\\/]* | ?:[\\/]*) |
| 8195 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8196 | ;; |
| 8197 | *) |
| 8198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8199 | for as_dir in $PATH |
| 8200 | do |
| 8201 | IFS=$as_save_IFS |
| 8202 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8203 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8204 | 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] | 8205 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8206 | 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] | 8207 | break 2 |
| 8208 | fi |
| 8209 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8210 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8211 | IFS=$as_save_IFS |
| 8212 | |
| 8213 | ;; |
| 8214 | esac |
| 8215 | fi |
| 8216 | TCLSH=$ac_cv_path_TCLSH |
| 8217 | if test -n "$TCLSH"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8218 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8219 | echo "${ECHO_T}$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8220 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8221 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8222 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8223 | fi |
| 8224 | |
| 8225 | |
| 8226 | test -n "$TCLSH" && break |
| 8227 | done |
| 8228 | |
| 8229 | if test x"${TCLSH}" = x ; then |
| 8230 | ac_cv_path_tclsh=''; |
| 8231 | else |
| 8232 | ac_cv_path_tclsh="${TCLSH}"; |
| 8233 | fi |
| 8234 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8235 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8236 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8237 | TCLSH="${ac_cv_path_tclsh}" |
| 8238 | |
| 8239 | fi |
| 8240 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8241 | # Extract the first word of "zip", so it can be a program name with args. |
| 8242 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8243 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8244 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8245 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8247 | else |
| 8248 | case $ZIP in |
| 8249 | [\\/]* | ?:[\\/]*) |
| 8250 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8251 | ;; |
| 8252 | *) |
| 8253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8254 | for as_dir in $PATH |
| 8255 | do |
| 8256 | IFS=$as_save_IFS |
| 8257 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8258 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8259 | 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] | 8260 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8261 | 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] | 8262 | break 2 |
| 8263 | fi |
| 8264 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8265 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8266 | IFS=$as_save_IFS |
| 8267 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8268 | ;; |
| 8269 | esac |
| 8270 | fi |
| 8271 | ZIP=$ac_cv_path_ZIP |
| 8272 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8273 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8274 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8275 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8276 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8277 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8278 | fi |
| 8279 | |
| 8280 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8281 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8282 | do |
| 8283 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8284 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8285 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8286 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8287 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8289 | else |
| 8290 | case $OCAMLC in |
| 8291 | [\\/]* | ?:[\\/]*) |
| 8292 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8293 | ;; |
| 8294 | *) |
| 8295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8296 | for as_dir in $PATH |
| 8297 | do |
| 8298 | IFS=$as_save_IFS |
| 8299 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8300 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8301 | 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] | 8302 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8303 | 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] | 8304 | break 2 |
| 8305 | fi |
| 8306 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8307 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8308 | IFS=$as_save_IFS |
| 8309 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8310 | ;; |
| 8311 | esac |
| 8312 | fi |
| 8313 | OCAMLC=$ac_cv_path_OCAMLC |
| 8314 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8315 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8316 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8317 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8318 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8319 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8320 | fi |
| 8321 | |
| 8322 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8323 | test -n "$OCAMLC" && break |
| 8324 | done |
| 8325 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8326 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8327 | do |
| 8328 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8329 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8330 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8331 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8332 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8334 | else |
| 8335 | case $OCAMLOPT in |
| 8336 | [\\/]* | ?:[\\/]*) |
| 8337 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8338 | ;; |
| 8339 | *) |
| 8340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8341 | for as_dir in $PATH |
| 8342 | do |
| 8343 | IFS=$as_save_IFS |
| 8344 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8345 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8346 | 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] | 8347 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8348 | 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] | 8349 | break 2 |
| 8350 | fi |
| 8351 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8352 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8353 | IFS=$as_save_IFS |
| 8354 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8355 | ;; |
| 8356 | esac |
| 8357 | fi |
| 8358 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8359 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8360 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8361 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8362 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8363 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8364 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8365 | fi |
| 8366 | |
| 8367 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8368 | test -n "$OCAMLOPT" && break |
| 8369 | done |
| 8370 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8371 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8372 | do |
| 8373 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8374 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8375 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8376 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8377 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8379 | else |
| 8380 | case $OCAMLDEP in |
| 8381 | [\\/]* | ?:[\\/]*) |
| 8382 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8383 | ;; |
| 8384 | *) |
| 8385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8386 | for as_dir in $PATH |
| 8387 | do |
| 8388 | IFS=$as_save_IFS |
| 8389 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8390 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8391 | 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] | 8392 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8393 | 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] | 8394 | break 2 |
| 8395 | fi |
| 8396 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8397 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8398 | IFS=$as_save_IFS |
| 8399 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8400 | ;; |
| 8401 | esac |
| 8402 | fi |
| 8403 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8404 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8405 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8406 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8407 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8408 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8409 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8410 | fi |
| 8411 | |
| 8412 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8413 | test -n "$OCAMLDEP" && break |
| 8414 | done |
| 8415 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8416 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8417 | do |
| 8418 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8419 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8420 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8421 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8422 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8424 | else |
| 8425 | case $OCAMLDOC in |
| 8426 | [\\/]* | ?:[\\/]*) |
| 8427 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8428 | ;; |
| 8429 | *) |
| 8430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8431 | for as_dir in $PATH |
| 8432 | do |
| 8433 | IFS=$as_save_IFS |
| 8434 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8435 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8436 | 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] | 8437 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8438 | 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] | 8439 | break 2 |
| 8440 | fi |
| 8441 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8442 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8443 | IFS=$as_save_IFS |
| 8444 | |
| 8445 | ;; |
| 8446 | esac |
| 8447 | fi |
| 8448 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8449 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8450 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8451 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8452 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8453 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8454 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8455 | fi |
| 8456 | |
| 8457 | |
| 8458 | test -n "$OCAMLDOC" && break |
| 8459 | done |
| 8460 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8461 | for ac_prog in gas as |
| 8462 | do |
| 8463 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8464 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8465 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8466 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8467 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8469 | else |
| 8470 | case $GAS in |
| 8471 | [\\/]* | ?:[\\/]*) |
| 8472 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8473 | ;; |
| 8474 | *) |
| 8475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8476 | for as_dir in $PATH |
| 8477 | do |
| 8478 | IFS=$as_save_IFS |
| 8479 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8480 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8481 | 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] | 8482 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8483 | 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] | 8484 | break 2 |
| 8485 | fi |
| 8486 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8487 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8488 | IFS=$as_save_IFS |
| 8489 | |
| 8490 | ;; |
| 8491 | esac |
| 8492 | fi |
| 8493 | GAS=$ac_cv_path_GAS |
| 8494 | if test -n "$GAS"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8495 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8496 | echo "${ECHO_T}$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8497 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8498 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8499 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8500 | fi |
| 8501 | |
| 8502 | |
| 8503 | test -n "$GAS" && break |
| 8504 | done |
| 8505 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8506 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8507 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8508 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8509 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8511 | else |
| 8512 | ac_ext=c |
| 8513 | ac_cpp='$CPP $CPPFLAGS' |
| 8514 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8515 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8516 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8517 | |
| 8518 | oldcflags="$CFLAGS" |
| 8519 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8520 | cat >conftest.$ac_ext <<_ACEOF |
| 8521 | /* confdefs.h. */ |
| 8522 | _ACEOF |
| 8523 | cat confdefs.h >>conftest.$ac_ext |
| 8524 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8525 | /* end confdefs.h. */ |
| 8526 | |
| 8527 | int |
| 8528 | main () |
| 8529 | { |
| 8530 | int main() { return 0; } |
| 8531 | ; |
| 8532 | return 0; |
| 8533 | } |
| 8534 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8535 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8536 | if { (ac_try="$ac_link" |
| 8537 | case "(($ac_try" in |
| 8538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8539 | *) ac_try_echo=$ac_try;; |
| 8540 | esac |
| 8541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8542 | (eval "$ac_link") 2>conftest.er1 |
| 8543 | ac_status=$? |
| 8544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8545 | rm -f conftest.er1 |
| 8546 | cat conftest.err >&5 |
| 8547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8548 | (exit $ac_status); } && |
| 8549 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8550 | { (case "(($ac_try" in |
| 8551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8552 | *) ac_try_echo=$ac_try;; |
| 8553 | esac |
| 8554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8555 | (eval "$ac_try") 2>&5 |
| 8556 | ac_status=$? |
| 8557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8558 | (exit $ac_status); }; } && |
| 8559 | { ac_try='test -s conftest$ac_exeext' |
| 8560 | { (case "(($ac_try" in |
| 8561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8562 | *) ac_try_echo=$ac_try;; |
| 8563 | esac |
| 8564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8565 | (eval "$ac_try") 2>&5 |
| 8566 | ac_status=$? |
| 8567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8568 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8569 | llvm_cv_link_use_r=yes |
| 8570 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8571 | echo "$as_me: failed program was:" >&5 |
| 8572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8573 | |
| 8574 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8575 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8576 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8577 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8578 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8579 | CFLAGS="$oldcflags" |
| 8580 | ac_ext=c |
| 8581 | ac_cpp='$CPP $CPPFLAGS' |
| 8582 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8583 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8584 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8585 | |
| 8586 | |
| 8587 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8588 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8589 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8590 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8591 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8592 | cat >>confdefs.h <<\_ACEOF |
| 8593 | #define HAVE_LINK_R 1 |
| 8594 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8595 | |
| 8596 | fi |
| 8597 | |
| 8598 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8599 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8600 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8601 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8603 | else |
| 8604 | ac_ext=c |
| 8605 | ac_cpp='$CPP $CPPFLAGS' |
| 8606 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8607 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8608 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8609 | |
| 8610 | oldcflags="$CFLAGS" |
| 8611 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8612 | cat >conftest.$ac_ext <<_ACEOF |
| 8613 | /* confdefs.h. */ |
| 8614 | _ACEOF |
| 8615 | cat confdefs.h >>conftest.$ac_ext |
| 8616 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8617 | /* end confdefs.h. */ |
| 8618 | |
| 8619 | int |
| 8620 | main () |
| 8621 | { |
| 8622 | int main() { return 0; } |
| 8623 | ; |
| 8624 | return 0; |
| 8625 | } |
| 8626 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8627 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8628 | if { (ac_try="$ac_link" |
| 8629 | case "(($ac_try" in |
| 8630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8631 | *) ac_try_echo=$ac_try;; |
| 8632 | esac |
| 8633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8634 | (eval "$ac_link") 2>conftest.er1 |
| 8635 | ac_status=$? |
| 8636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8637 | rm -f conftest.er1 |
| 8638 | cat conftest.err >&5 |
| 8639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8640 | (exit $ac_status); } && |
| 8641 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8642 | { (case "(($ac_try" in |
| 8643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8644 | *) ac_try_echo=$ac_try;; |
| 8645 | esac |
| 8646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8647 | (eval "$ac_try") 2>&5 |
| 8648 | ac_status=$? |
| 8649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8650 | (exit $ac_status); }; } && |
| 8651 | { ac_try='test -s conftest$ac_exeext' |
| 8652 | { (case "(($ac_try" in |
| 8653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8654 | *) ac_try_echo=$ac_try;; |
| 8655 | esac |
| 8656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8657 | (eval "$ac_try") 2>&5 |
| 8658 | ac_status=$? |
| 8659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8660 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8661 | llvm_cv_link_use_export_dynamic=yes |
| 8662 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8663 | echo "$as_me: failed program was:" >&5 |
| 8664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8665 | |
| 8666 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8667 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8668 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8669 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8670 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8671 | CFLAGS="$oldcflags" |
| 8672 | ac_ext=c |
| 8673 | ac_cpp='$CPP $CPPFLAGS' |
| 8674 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8675 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8676 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8677 | |
| 8678 | |
| 8679 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8680 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 8681 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8682 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 8683 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8684 | cat >>confdefs.h <<\_ACEOF |
| 8685 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 8686 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8687 | |
| 8688 | fi |
| 8689 | |
| 8690 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8691 | |
| 8692 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8693 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8694 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8695 | if test "${ac_cv_c_const+set}" = set; then |
| 8696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8697 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8698 | cat >conftest.$ac_ext <<_ACEOF |
| 8699 | /* confdefs.h. */ |
| 8700 | _ACEOF |
| 8701 | cat confdefs.h >>conftest.$ac_ext |
| 8702 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8703 | /* end confdefs.h. */ |
| 8704 | |
| 8705 | int |
| 8706 | main () |
| 8707 | { |
| 8708 | /* FIXME: Include the comments suggested by Paul. */ |
| 8709 | #ifndef __cplusplus |
| 8710 | /* Ultrix mips cc rejects this. */ |
| 8711 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8712 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8713 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8714 | char const *const *ccp; |
| 8715 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8716 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8717 | struct point {int x, y;}; |
| 8718 | static struct point const zero = {0,0}; |
| 8719 | /* AIX XL C 1.02.0.0 rejects this. |
| 8720 | It does not let you subtract one const X* pointer from another in |
| 8721 | an arm of an if-expression whose if-part is not a constant |
| 8722 | expression */ |
| 8723 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8724 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8725 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8726 | ++ccp; |
| 8727 | p = (char**) ccp; |
| 8728 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8729 | { /* SCO 3.2v4 cc rejects this. */ |
| 8730 | char *t; |
| 8731 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8732 | |
| 8733 | *t++ = 0; |
| 8734 | if (s) return 0; |
| 8735 | } |
| 8736 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8737 | int x[] = {25, 17}; |
| 8738 | const int *foo = &x[0]; |
| 8739 | ++foo; |
| 8740 | } |
| 8741 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8742 | typedef const int *iptr; |
| 8743 | iptr p = 0; |
| 8744 | ++p; |
| 8745 | } |
| 8746 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8747 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8748 | struct s { int j; const int *ap[3]; }; |
| 8749 | struct s *b; b->j = 5; |
| 8750 | } |
| 8751 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8752 | const int foo = 10; |
| 8753 | if (!foo) return 0; |
| 8754 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8755 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8756 | #endif |
| 8757 | |
| 8758 | ; |
| 8759 | return 0; |
| 8760 | } |
| 8761 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8762 | rm -f conftest.$ac_objext |
| 8763 | if { (ac_try="$ac_compile" |
| 8764 | case "(($ac_try" in |
| 8765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8766 | *) ac_try_echo=$ac_try;; |
| 8767 | esac |
| 8768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8769 | (eval "$ac_compile") 2>conftest.er1 |
| 8770 | ac_status=$? |
| 8771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8772 | rm -f conftest.er1 |
| 8773 | cat conftest.err >&5 |
| 8774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8775 | (exit $ac_status); } && |
| 8776 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8777 | { (case "(($ac_try" in |
| 8778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8779 | *) ac_try_echo=$ac_try;; |
| 8780 | esac |
| 8781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8782 | (eval "$ac_try") 2>&5 |
| 8783 | ac_status=$? |
| 8784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8785 | (exit $ac_status); }; } && |
| 8786 | { ac_try='test -s conftest.$ac_objext' |
| 8787 | { (case "(($ac_try" in |
| 8788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8789 | *) ac_try_echo=$ac_try;; |
| 8790 | esac |
| 8791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8792 | (eval "$ac_try") 2>&5 |
| 8793 | ac_status=$? |
| 8794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8795 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8796 | ac_cv_c_const=yes |
| 8797 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8798 | echo "$as_me: failed program was:" >&5 |
| 8799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8800 | |
| 8801 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8802 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8803 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8805 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8806 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8807 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8808 | if test $ac_cv_c_const = no; then |
| 8809 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8810 | cat >>confdefs.h <<\_ACEOF |
| 8811 | #define const |
| 8812 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8813 | |
| 8814 | fi |
| 8815 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8816 | |
| 8817 | |
| 8818 | |
| 8819 | |
| 8820 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8821 | ac_header_dirent=no |
| 8822 | 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] | 8823 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 8824 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8825 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8826 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8828 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8829 | cat >conftest.$ac_ext <<_ACEOF |
| 8830 | /* confdefs.h. */ |
| 8831 | _ACEOF |
| 8832 | cat confdefs.h >>conftest.$ac_ext |
| 8833 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8834 | /* end confdefs.h. */ |
| 8835 | #include <sys/types.h> |
| 8836 | #include <$ac_hdr> |
| 8837 | |
| 8838 | int |
| 8839 | main () |
| 8840 | { |
| 8841 | if ((DIR *) 0) |
| 8842 | return 0; |
| 8843 | ; |
| 8844 | return 0; |
| 8845 | } |
| 8846 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8847 | rm -f conftest.$ac_objext |
| 8848 | if { (ac_try="$ac_compile" |
| 8849 | case "(($ac_try" in |
| 8850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8851 | *) ac_try_echo=$ac_try;; |
| 8852 | esac |
| 8853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8854 | (eval "$ac_compile") 2>conftest.er1 |
| 8855 | ac_status=$? |
| 8856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8857 | rm -f conftest.er1 |
| 8858 | cat conftest.err >&5 |
| 8859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8860 | (exit $ac_status); } && |
| 8861 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8862 | { (case "(($ac_try" in |
| 8863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8864 | *) ac_try_echo=$ac_try;; |
| 8865 | esac |
| 8866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8867 | (eval "$ac_try") 2>&5 |
| 8868 | ac_status=$? |
| 8869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8870 | (exit $ac_status); }; } && |
| 8871 | { ac_try='test -s conftest.$ac_objext' |
| 8872 | { (case "(($ac_try" in |
| 8873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8874 | *) ac_try_echo=$ac_try;; |
| 8875 | esac |
| 8876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8877 | (eval "$ac_try") 2>&5 |
| 8878 | ac_status=$? |
| 8879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8880 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8881 | eval "$as_ac_Header=yes" |
| 8882 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8883 | echo "$as_me: failed program was:" >&5 |
| 8884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8885 | |
| 8886 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8887 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8888 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8890 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8891 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8892 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8893 | echo "${ECHO_T}$ac_res" >&6; } |
| 8894 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8895 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8896 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8897 | _ACEOF |
| 8898 | |
| 8899 | ac_header_dirent=$ac_hdr; break |
| 8900 | fi |
| 8901 | |
| 8902 | done |
| 8903 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8904 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8905 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8906 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8907 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8909 | else |
| 8910 | ac_func_search_save_LIBS=$LIBS |
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 | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8916 | /* end confdefs.h. */ |
| 8917 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8918 | /* Override any GCC internal prototype to avoid an error. |
| 8919 | Use char because int might match the return type of a GCC |
| 8920 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8921 | #ifdef __cplusplus |
| 8922 | extern "C" |
| 8923 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8924 | char opendir (); |
| 8925 | int |
| 8926 | main () |
| 8927 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8928 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8929 | ; |
| 8930 | return 0; |
| 8931 | } |
| 8932 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8933 | for ac_lib in '' dir; do |
| 8934 | if test -z "$ac_lib"; then |
| 8935 | ac_res="none required" |
| 8936 | else |
| 8937 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8938 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8939 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8940 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8941 | if { (ac_try="$ac_link" |
| 8942 | case "(($ac_try" in |
| 8943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8944 | *) ac_try_echo=$ac_try;; |
| 8945 | esac |
| 8946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8947 | (eval "$ac_link") 2>conftest.er1 |
| 8948 | ac_status=$? |
| 8949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8950 | rm -f conftest.er1 |
| 8951 | cat conftest.err >&5 |
| 8952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8953 | (exit $ac_status); } && |
| 8954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8955 | { (case "(($ac_try" in |
| 8956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8957 | *) ac_try_echo=$ac_try;; |
| 8958 | esac |
| 8959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8960 | (eval "$ac_try") 2>&5 |
| 8961 | ac_status=$? |
| 8962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8963 | (exit $ac_status); }; } && |
| 8964 | { ac_try='test -s conftest$ac_exeext' |
| 8965 | { (case "(($ac_try" in |
| 8966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8967 | *) ac_try_echo=$ac_try;; |
| 8968 | esac |
| 8969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8970 | (eval "$ac_try") 2>&5 |
| 8971 | ac_status=$? |
| 8972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8973 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8974 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8975 | else |
| 8976 | echo "$as_me: failed program was:" >&5 |
| 8977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8978 | |
| 8979 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8980 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8981 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8982 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8983 | conftest$ac_exeext |
| 8984 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8985 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8986 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8987 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8988 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8989 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8990 | else |
| 8991 | ac_cv_search_opendir=no |
| 8992 | fi |
| 8993 | rm conftest.$ac_ext |
| 8994 | LIBS=$ac_func_search_save_LIBS |
| 8995 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8996 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8997 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8998 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8999 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9000 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9001 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9002 | fi |
| 9003 | |
| 9004 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9005 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9006 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9007 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9009 | else |
| 9010 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9011 | cat >conftest.$ac_ext <<_ACEOF |
| 9012 | /* confdefs.h. */ |
| 9013 | _ACEOF |
| 9014 | cat confdefs.h >>conftest.$ac_ext |
| 9015 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9016 | /* end confdefs.h. */ |
| 9017 | |
| 9018 | /* Override any GCC internal prototype to avoid an error. |
| 9019 | Use char because int might match the return type of a GCC |
| 9020 | builtin and then its argument prototype would still apply. */ |
| 9021 | #ifdef __cplusplus |
| 9022 | extern "C" |
| 9023 | #endif |
| 9024 | char opendir (); |
| 9025 | int |
| 9026 | main () |
| 9027 | { |
| 9028 | return opendir (); |
| 9029 | ; |
| 9030 | return 0; |
| 9031 | } |
| 9032 | _ACEOF |
| 9033 | for ac_lib in '' x; do |
| 9034 | if test -z "$ac_lib"; then |
| 9035 | ac_res="none required" |
| 9036 | else |
| 9037 | ac_res=-l$ac_lib |
| 9038 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9039 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9040 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9041 | if { (ac_try="$ac_link" |
| 9042 | case "(($ac_try" in |
| 9043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9044 | *) ac_try_echo=$ac_try;; |
| 9045 | esac |
| 9046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9047 | (eval "$ac_link") 2>conftest.er1 |
| 9048 | ac_status=$? |
| 9049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9050 | rm -f conftest.er1 |
| 9051 | cat conftest.err >&5 |
| 9052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9053 | (exit $ac_status); } && |
| 9054 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9055 | { (case "(($ac_try" in |
| 9056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9057 | *) ac_try_echo=$ac_try;; |
| 9058 | esac |
| 9059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9060 | (eval "$ac_try") 2>&5 |
| 9061 | ac_status=$? |
| 9062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9063 | (exit $ac_status); }; } && |
| 9064 | { ac_try='test -s conftest$ac_exeext' |
| 9065 | { (case "(($ac_try" in |
| 9066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9067 | *) ac_try_echo=$ac_try;; |
| 9068 | esac |
| 9069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9070 | (eval "$ac_try") 2>&5 |
| 9071 | ac_status=$? |
| 9072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9073 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9074 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9075 | else |
| 9076 | echo "$as_me: failed program was:" >&5 |
| 9077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9078 | |
| 9079 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9080 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9081 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9082 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9083 | conftest$ac_exeext |
| 9084 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9085 | break |
| 9086 | fi |
| 9087 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9088 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9089 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9090 | else |
| 9091 | ac_cv_search_opendir=no |
| 9092 | fi |
| 9093 | rm conftest.$ac_ext |
| 9094 | LIBS=$ac_func_search_save_LIBS |
| 9095 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9096 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9097 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9098 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9099 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9100 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9101 | |
| 9102 | fi |
| 9103 | |
| 9104 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9105 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9106 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9107 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9108 | do |
| 9109 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9110 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9111 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9112 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9113 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9115 | fi |
| 9116 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9117 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9118 | echo "${ECHO_T}$ac_res" >&6; } |
| 9119 | else |
| 9120 | # Is the header compilable? |
| 9121 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9122 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 9123 | cat >conftest.$ac_ext <<_ACEOF |
| 9124 | /* confdefs.h. */ |
| 9125 | _ACEOF |
| 9126 | cat confdefs.h >>conftest.$ac_ext |
| 9127 | cat >>conftest.$ac_ext <<_ACEOF |
| 9128 | /* end confdefs.h. */ |
| 9129 | $ac_includes_default |
| 9130 | #include <$ac_header> |
| 9131 | _ACEOF |
| 9132 | rm -f conftest.$ac_objext |
| 9133 | if { (ac_try="$ac_compile" |
| 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_compile") 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_objext' |
| 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 |
| 9166 | ac_header_compiler=yes |
| 9167 | else |
| 9168 | echo "$as_me: failed program was:" >&5 |
| 9169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9170 | |
| 9171 | ac_header_compiler=no |
| 9172 | fi |
| 9173 | |
| 9174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9175 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9176 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9177 | |
| 9178 | # Is the header present? |
| 9179 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9180 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 9181 | cat >conftest.$ac_ext <<_ACEOF |
| 9182 | /* confdefs.h. */ |
| 9183 | _ACEOF |
| 9184 | cat confdefs.h >>conftest.$ac_ext |
| 9185 | cat >>conftest.$ac_ext <<_ACEOF |
| 9186 | /* end confdefs.h. */ |
| 9187 | #include <$ac_header> |
| 9188 | _ACEOF |
| 9189 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9190 | case "(($ac_try" in |
| 9191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9192 | *) ac_try_echo=$ac_try;; |
| 9193 | esac |
| 9194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9195 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9196 | ac_status=$? |
| 9197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9198 | rm -f conftest.er1 |
| 9199 | cat conftest.err >&5 |
| 9200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9201 | (exit $ac_status); } >/dev/null; then |
| 9202 | if test -s conftest.err; then |
| 9203 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9204 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9205 | else |
| 9206 | ac_cpp_err= |
| 9207 | fi |
| 9208 | else |
| 9209 | ac_cpp_err=yes |
| 9210 | fi |
| 9211 | if test -z "$ac_cpp_err"; then |
| 9212 | ac_header_preproc=yes |
| 9213 | else |
| 9214 | echo "$as_me: failed program was:" >&5 |
| 9215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9216 | |
| 9217 | ac_header_preproc=no |
| 9218 | fi |
| 9219 | |
| 9220 | rm -f conftest.err conftest.$ac_ext |
| 9221 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9222 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9223 | |
| 9224 | # So? What about this header? |
| 9225 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9226 | yes:no: ) |
| 9227 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9228 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9229 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9230 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9231 | ac_header_preproc=yes |
| 9232 | ;; |
| 9233 | no:yes:* ) |
| 9234 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9235 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9236 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9237 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9238 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9239 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9240 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9241 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9242 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9243 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9244 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9245 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9246 | ( cat <<\_ASBOX |
| 9247 | ## ----------------------------------- ## |
| 9248 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9249 | ## ----------------------------------- ## |
| 9250 | _ASBOX |
| 9251 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 9252 | ;; |
| 9253 | esac |
| 9254 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9255 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9256 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9258 | else |
| 9259 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9260 | fi |
| 9261 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9262 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9263 | echo "${ECHO_T}$ac_res" >&6; } |
| 9264 | |
| 9265 | fi |
| 9266 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9267 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9268 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9269 | _ACEOF |
| 9270 | |
| 9271 | fi |
| 9272 | |
| 9273 | done |
| 9274 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9275 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9276 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9277 | enableval=$enable_ltdl_install; |
| 9278 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9279 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9280 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9281 | |
| 9282 | |
| 9283 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9284 | INSTALL_LTDL_TRUE= |
| 9285 | INSTALL_LTDL_FALSE='#' |
| 9286 | else |
| 9287 | INSTALL_LTDL_TRUE='#' |
| 9288 | INSTALL_LTDL_FALSE= |
| 9289 | fi |
| 9290 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9291 | |
| 9292 | |
| 9293 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9294 | CONVENIENCE_LTDL_TRUE= |
| 9295 | CONVENIENCE_LTDL_FALSE='#' |
| 9296 | else |
| 9297 | CONVENIENCE_LTDL_TRUE='#' |
| 9298 | CONVENIENCE_LTDL_FALSE= |
| 9299 | fi |
| 9300 | |
| 9301 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9302 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9303 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9304 | library_names_spec= |
| 9305 | libname_spec='lib$name' |
| 9306 | soname_spec= |
| 9307 | shrext_cmds=".so" |
| 9308 | postinstall_cmds= |
| 9309 | postuninstall_cmds= |
| 9310 | finish_cmds= |
| 9311 | finish_eval= |
| 9312 | shlibpath_var= |
| 9313 | shlibpath_overrides_runpath=unknown |
| 9314 | version_type=none |
| 9315 | dynamic_linker="$host_os ld.so" |
| 9316 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9317 | if test "$GCC" = yes; then |
| 9318 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9319 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9320 | # if the path contains ";" then we assume it to be the separator |
| 9321 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9322 | # assumed that no part of a normal pathname contains ";" but that should |
| 9323 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9324 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9325 | else |
| 9326 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9327 | fi |
| 9328 | else |
| 9329 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9330 | fi |
| 9331 | need_lib_prefix=unknown |
| 9332 | hardcode_into_libs=no |
| 9333 | |
| 9334 | # when you set need_version to no, make sure it does not cause -set_version |
| 9335 | # flags to be left without arguments |
| 9336 | need_version=unknown |
| 9337 | |
| 9338 | case $host_os in |
| 9339 | aix3*) |
| 9340 | version_type=linux |
| 9341 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9342 | shlibpath_var=LIBPATH |
| 9343 | |
| 9344 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9345 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9346 | ;; |
| 9347 | |
| 9348 | aix4* | aix5*) |
| 9349 | version_type=linux |
| 9350 | need_lib_prefix=no |
| 9351 | need_version=no |
| 9352 | hardcode_into_libs=yes |
| 9353 | if test "$host_cpu" = ia64; then |
| 9354 | # AIX 5 supports IA64 |
| 9355 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9356 | shlibpath_var=LD_LIBRARY_PATH |
| 9357 | else |
| 9358 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9359 | # for dependence libraries. The import file would start with |
| 9360 | # the line `#! .'. This would cause the generated library to |
| 9361 | # depend on `.', always an invalid library. This was fixed in |
| 9362 | # development snapshots of GCC prior to 3.0. |
| 9363 | case $host_os in |
| 9364 | aix4 | aix4.[01] | aix4.[01].*) |
| 9365 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9366 | echo ' yes ' |
| 9367 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9368 | : |
| 9369 | else |
| 9370 | can_build_shared=no |
| 9371 | fi |
| 9372 | ;; |
| 9373 | esac |
| 9374 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9375 | # soname into executable. Probably we can add versioning support to |
| 9376 | # collect2, so additional links can be useful in future. |
| 9377 | if test "$aix_use_runtimelinking" = yes; then |
| 9378 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9379 | # instead of lib<name>.a to let people know that these are not |
| 9380 | # typical AIX shared libraries. |
| 9381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9382 | else |
| 9383 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9384 | # and later when we are not doing run time linking. |
| 9385 | library_names_spec='${libname}${release}.a $libname.a' |
| 9386 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9387 | fi |
| 9388 | shlibpath_var=LIBPATH |
| 9389 | fi |
| 9390 | ;; |
| 9391 | |
| 9392 | amigaos*) |
| 9393 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9394 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9395 | 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' |
| 9396 | ;; |
| 9397 | |
| 9398 | beos*) |
| 9399 | library_names_spec='${libname}${shared_ext}' |
| 9400 | dynamic_linker="$host_os ld.so" |
| 9401 | shlibpath_var=LIBRARY_PATH |
| 9402 | ;; |
| 9403 | |
| 9404 | bsdi[45]*) |
| 9405 | version_type=linux |
| 9406 | need_version=no |
| 9407 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9408 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9409 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9410 | shlibpath_var=LD_LIBRARY_PATH |
| 9411 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9412 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9413 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9414 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9415 | # libtool to hard-code these into programs |
| 9416 | ;; |
| 9417 | |
| 9418 | cygwin* | mingw* | pw32*) |
| 9419 | version_type=windows |
| 9420 | shrext_cmds=".dll" |
| 9421 | need_version=no |
| 9422 | need_lib_prefix=no |
| 9423 | |
| 9424 | case $GCC,$host_os in |
| 9425 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9426 | library_names_spec='$libname.dll.a' |
| 9427 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9428 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9429 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9430 | dldir=$destdir/`dirname \$dlpath`~ |
| 9431 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9432 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9433 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9434 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9435 | dlpath=$dir/\$dldll~ |
| 9436 | $rm \$dlpath' |
| 9437 | shlibpath_overrides_runpath=yes |
| 9438 | |
| 9439 | case $host_os in |
| 9440 | cygwin*) |
| 9441 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9442 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9443 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9444 | ;; |
| 9445 | mingw*) |
| 9446 | # MinGW DLLs use traditional 'lib' prefix |
| 9447 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9448 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9449 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9450 | # It is most probably a Windows format PATH printed by |
| 9451 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9452 | # path with ; separators, and with drive letters. We can handle the |
| 9453 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9454 | # especially as we might pass files found there to a mingw objdump, |
| 9455 | # which wouldn't understand a cygwinified path. Ahh. |
| 9456 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9457 | else |
| 9458 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9459 | fi |
| 9460 | ;; |
| 9461 | pw32*) |
| 9462 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9463 | 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] | 9464 | ;; |
| 9465 | esac |
| 9466 | ;; |
| 9467 | |
| 9468 | *) |
| 9469 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9470 | ;; |
| 9471 | esac |
| 9472 | dynamic_linker='Win32 ld.exe' |
| 9473 | # FIXME: first we should search . and the directory the executable is in |
| 9474 | shlibpath_var=PATH |
| 9475 | ;; |
| 9476 | |
| 9477 | darwin* | rhapsody*) |
| 9478 | dynamic_linker="$host_os dyld" |
| 9479 | version_type=darwin |
| 9480 | need_lib_prefix=no |
| 9481 | need_version=no |
| 9482 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9483 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9484 | shlibpath_overrides_runpath=yes |
| 9485 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9486 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9487 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9488 | if test "$GCC" = yes; then |
| 9489 | 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"` |
| 9490 | else |
| 9491 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9492 | fi |
| 9493 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9494 | ;; |
| 9495 | |
| 9496 | dgux*) |
| 9497 | version_type=linux |
| 9498 | need_lib_prefix=no |
| 9499 | need_version=no |
| 9500 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9501 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9502 | shlibpath_var=LD_LIBRARY_PATH |
| 9503 | ;; |
| 9504 | |
| 9505 | freebsd1*) |
| 9506 | dynamic_linker=no |
| 9507 | ;; |
| 9508 | |
| 9509 | kfreebsd*-gnu) |
| 9510 | version_type=linux |
| 9511 | need_lib_prefix=no |
| 9512 | need_version=no |
| 9513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9514 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9515 | shlibpath_var=LD_LIBRARY_PATH |
| 9516 | shlibpath_overrides_runpath=no |
| 9517 | hardcode_into_libs=yes |
| 9518 | dynamic_linker='GNU ld.so' |
| 9519 | ;; |
| 9520 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9521 | freebsd* | dragonfly*) |
| 9522 | # DragonFly does not have aout. When/if they implement a new |
| 9523 | # versioning mechanism, adjust this. |
| 9524 | if test -x /usr/bin/objformat; then |
| 9525 | objformat=`/usr/bin/objformat` |
| 9526 | else |
| 9527 | case $host_os in |
| 9528 | freebsd[123]*) objformat=aout ;; |
| 9529 | *) objformat=elf ;; |
| 9530 | esac |
| 9531 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9532 | version_type=freebsd-$objformat |
| 9533 | case $version_type in |
| 9534 | freebsd-elf*) |
| 9535 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9536 | need_version=no |
| 9537 | need_lib_prefix=no |
| 9538 | ;; |
| 9539 | freebsd-*) |
| 9540 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9541 | need_version=yes |
| 9542 | ;; |
| 9543 | esac |
| 9544 | shlibpath_var=LD_LIBRARY_PATH |
| 9545 | case $host_os in |
| 9546 | freebsd2*) |
| 9547 | shlibpath_overrides_runpath=yes |
| 9548 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9549 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9550 | shlibpath_overrides_runpath=yes |
| 9551 | hardcode_into_libs=yes |
| 9552 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9553 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9554 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9555 | shlibpath_overrides_runpath=no |
| 9556 | hardcode_into_libs=yes |
| 9557 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9558 | freebsd*) # from 4.6 on |
| 9559 | shlibpath_overrides_runpath=yes |
| 9560 | hardcode_into_libs=yes |
| 9561 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9562 | esac |
| 9563 | ;; |
| 9564 | |
| 9565 | gnu*) |
| 9566 | version_type=linux |
| 9567 | need_lib_prefix=no |
| 9568 | need_version=no |
| 9569 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9570 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9571 | shlibpath_var=LD_LIBRARY_PATH |
| 9572 | hardcode_into_libs=yes |
| 9573 | ;; |
| 9574 | |
| 9575 | hpux9* | hpux10* | hpux11*) |
| 9576 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9577 | # link against other versions. |
| 9578 | version_type=sunos |
| 9579 | need_lib_prefix=no |
| 9580 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9581 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9582 | ia64*) |
| 9583 | shrext_cmds='.so' |
| 9584 | hardcode_into_libs=yes |
| 9585 | dynamic_linker="$host_os dld.so" |
| 9586 | shlibpath_var=LD_LIBRARY_PATH |
| 9587 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9589 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9590 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9591 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9592 | else |
| 9593 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9594 | fi |
| 9595 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9596 | ;; |
| 9597 | hppa*64*) |
| 9598 | shrext_cmds='.sl' |
| 9599 | hardcode_into_libs=yes |
| 9600 | dynamic_linker="$host_os dld.sl" |
| 9601 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9602 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9603 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9604 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9605 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9606 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9607 | ;; |
| 9608 | *) |
| 9609 | shrext_cmds='.sl' |
| 9610 | dynamic_linker="$host_os dld.sl" |
| 9611 | shlibpath_var=SHLIB_PATH |
| 9612 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9614 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9615 | ;; |
| 9616 | esac |
| 9617 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9618 | postinstall_cmds='chmod 555 $lib' |
| 9619 | ;; |
| 9620 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9621 | interix3*) |
| 9622 | version_type=linux |
| 9623 | need_lib_prefix=no |
| 9624 | need_version=no |
| 9625 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9626 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9627 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9628 | shlibpath_var=LD_LIBRARY_PATH |
| 9629 | shlibpath_overrides_runpath=no |
| 9630 | hardcode_into_libs=yes |
| 9631 | ;; |
| 9632 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9633 | irix5* | irix6* | nonstopux*) |
| 9634 | case $host_os in |
| 9635 | nonstopux*) version_type=nonstopux ;; |
| 9636 | *) |
| 9637 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9638 | version_type=linux |
| 9639 | else |
| 9640 | version_type=irix |
| 9641 | fi ;; |
| 9642 | esac |
| 9643 | need_lib_prefix=no |
| 9644 | need_version=no |
| 9645 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9646 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9647 | case $host_os in |
| 9648 | irix5* | nonstopux*) |
| 9649 | libsuff= shlibsuff= |
| 9650 | ;; |
| 9651 | *) |
| 9652 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9653 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9654 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9655 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9656 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9657 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9658 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9659 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9660 | esac |
| 9661 | ;; |
| 9662 | esac |
| 9663 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9664 | shlibpath_overrides_runpath=no |
| 9665 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9666 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9667 | hardcode_into_libs=yes |
| 9668 | ;; |
| 9669 | |
| 9670 | # No shared lib support for Linux oldld, aout, or coff. |
| 9671 | linux*oldld* | linux*aout* | linux*coff*) |
| 9672 | dynamic_linker=no |
| 9673 | ;; |
| 9674 | |
| 9675 | # This must be Linux ELF. |
| 9676 | linux*) |
| 9677 | version_type=linux |
| 9678 | need_lib_prefix=no |
| 9679 | need_version=no |
| 9680 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9681 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9682 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9683 | shlibpath_var=LD_LIBRARY_PATH |
| 9684 | shlibpath_overrides_runpath=no |
| 9685 | # This implies no fast_install, which is unacceptable. |
| 9686 | # Some rework will be needed to allow for fast_install |
| 9687 | # before this can be enabled. |
| 9688 | hardcode_into_libs=yes |
| 9689 | |
| 9690 | # Append ld.so.conf contents to the search path |
| 9691 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9692 | 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] | 9693 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9694 | fi |
| 9695 | |
| 9696 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9697 | # powerpc, because MkLinux only supported shared libraries with the |
| 9698 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9699 | # most powerpc-linux boxes support dynamic linking these days and |
| 9700 | # people can always --disable-shared, the test was removed, and we |
| 9701 | # assume the GNU/Linux dynamic linker is in use. |
| 9702 | dynamic_linker='GNU/Linux ld.so' |
| 9703 | ;; |
| 9704 | |
| 9705 | knetbsd*-gnu) |
| 9706 | version_type=linux |
| 9707 | need_lib_prefix=no |
| 9708 | need_version=no |
| 9709 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9710 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9711 | shlibpath_var=LD_LIBRARY_PATH |
| 9712 | shlibpath_overrides_runpath=no |
| 9713 | hardcode_into_libs=yes |
| 9714 | dynamic_linker='GNU ld.so' |
| 9715 | ;; |
| 9716 | |
| 9717 | netbsd*) |
| 9718 | version_type=sunos |
| 9719 | need_lib_prefix=no |
| 9720 | need_version=no |
| 9721 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9722 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9723 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9724 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9725 | else |
| 9726 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9727 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9728 | dynamic_linker='NetBSD ld.elf_so' |
| 9729 | fi |
| 9730 | shlibpath_var=LD_LIBRARY_PATH |
| 9731 | shlibpath_overrides_runpath=yes |
| 9732 | hardcode_into_libs=yes |
| 9733 | ;; |
| 9734 | |
| 9735 | newsos6) |
| 9736 | version_type=linux |
| 9737 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9738 | shlibpath_var=LD_LIBRARY_PATH |
| 9739 | shlibpath_overrides_runpath=yes |
| 9740 | ;; |
| 9741 | |
| 9742 | nto-qnx*) |
| 9743 | version_type=linux |
| 9744 | need_lib_prefix=no |
| 9745 | need_version=no |
| 9746 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9747 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9748 | shlibpath_var=LD_LIBRARY_PATH |
| 9749 | shlibpath_overrides_runpath=yes |
| 9750 | ;; |
| 9751 | |
| 9752 | openbsd*) |
| 9753 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9754 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9755 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9756 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9757 | case $host_os in |
| 9758 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9759 | *) need_version=no ;; |
| 9760 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9761 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9762 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9763 | shlibpath_var=LD_LIBRARY_PATH |
| 9764 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9765 | case $host_os in |
| 9766 | openbsd2.[89] | openbsd2.[89].*) |
| 9767 | shlibpath_overrides_runpath=no |
| 9768 | ;; |
| 9769 | *) |
| 9770 | shlibpath_overrides_runpath=yes |
| 9771 | ;; |
| 9772 | esac |
| 9773 | else |
| 9774 | shlibpath_overrides_runpath=yes |
| 9775 | fi |
| 9776 | ;; |
| 9777 | |
| 9778 | os2*) |
| 9779 | libname_spec='$name' |
| 9780 | shrext_cmds=".dll" |
| 9781 | need_lib_prefix=no |
| 9782 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9783 | dynamic_linker='OS/2 ld.exe' |
| 9784 | shlibpath_var=LIBPATH |
| 9785 | ;; |
| 9786 | |
| 9787 | osf3* | osf4* | osf5*) |
| 9788 | version_type=osf |
| 9789 | need_lib_prefix=no |
| 9790 | need_version=no |
| 9791 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9793 | shlibpath_var=LD_LIBRARY_PATH |
| 9794 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9795 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9796 | ;; |
| 9797 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9798 | solaris*) |
| 9799 | version_type=linux |
| 9800 | need_lib_prefix=no |
| 9801 | need_version=no |
| 9802 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9803 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9804 | shlibpath_var=LD_LIBRARY_PATH |
| 9805 | shlibpath_overrides_runpath=yes |
| 9806 | hardcode_into_libs=yes |
| 9807 | # ldd complains unless libraries are executable |
| 9808 | postinstall_cmds='chmod +x $lib' |
| 9809 | ;; |
| 9810 | |
| 9811 | sunos4*) |
| 9812 | version_type=sunos |
| 9813 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9814 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9815 | shlibpath_var=LD_LIBRARY_PATH |
| 9816 | shlibpath_overrides_runpath=yes |
| 9817 | if test "$with_gnu_ld" = yes; then |
| 9818 | need_lib_prefix=no |
| 9819 | fi |
| 9820 | need_version=yes |
| 9821 | ;; |
| 9822 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9823 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9824 | version_type=linux |
| 9825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9826 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9827 | shlibpath_var=LD_LIBRARY_PATH |
| 9828 | case $host_vendor in |
| 9829 | sni) |
| 9830 | shlibpath_overrides_runpath=no |
| 9831 | need_lib_prefix=no |
| 9832 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9833 | runpath_var=LD_RUN_PATH |
| 9834 | ;; |
| 9835 | siemens) |
| 9836 | need_lib_prefix=no |
| 9837 | ;; |
| 9838 | motorola) |
| 9839 | need_lib_prefix=no |
| 9840 | need_version=no |
| 9841 | shlibpath_overrides_runpath=no |
| 9842 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9843 | ;; |
| 9844 | esac |
| 9845 | ;; |
| 9846 | |
| 9847 | sysv4*MP*) |
| 9848 | if test -d /usr/nec ;then |
| 9849 | version_type=linux |
| 9850 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9851 | soname_spec='$libname${shared_ext}.$major' |
| 9852 | shlibpath_var=LD_LIBRARY_PATH |
| 9853 | fi |
| 9854 | ;; |
| 9855 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9856 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9857 | version_type=freebsd-elf |
| 9858 | need_lib_prefix=no |
| 9859 | need_version=no |
| 9860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9861 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9862 | shlibpath_var=LD_LIBRARY_PATH |
| 9863 | hardcode_into_libs=yes |
| 9864 | if test "$with_gnu_ld" = yes; then |
| 9865 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9866 | shlibpath_overrides_runpath=no |
| 9867 | else |
| 9868 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9869 | shlibpath_overrides_runpath=yes |
| 9870 | case $host_os in |
| 9871 | sco3.2v5*) |
| 9872 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9873 | ;; |
| 9874 | esac |
| 9875 | fi |
| 9876 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9877 | ;; |
| 9878 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9879 | uts4*) |
| 9880 | version_type=linux |
| 9881 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9882 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9883 | shlibpath_var=LD_LIBRARY_PATH |
| 9884 | ;; |
| 9885 | |
| 9886 | *) |
| 9887 | dynamic_linker=no |
| 9888 | ;; |
| 9889 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9890 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9891 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9892 | test "$dynamic_linker" = no && can_build_shared=no |
| 9893 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9894 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9895 | if test "$GCC" = yes; then |
| 9896 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9897 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9898 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9899 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9900 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9901 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 9902 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9904 | else |
| 9905 | |
| 9906 | module=yes |
| 9907 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9908 | |
| 9909 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9910 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9911 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9912 | if test -n "$libltdl_cv_shlibext"; then |
| 9913 | |
| 9914 | cat >>confdefs.h <<_ACEOF |
| 9915 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9916 | _ACEOF |
| 9917 | |
| 9918 | fi |
| 9919 | |
| 9920 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9921 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9922 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 9923 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9925 | else |
| 9926 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9927 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9928 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9929 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9930 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9931 | |
| 9932 | cat >>confdefs.h <<_ACEOF |
| 9933 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9934 | _ACEOF |
| 9935 | |
| 9936 | fi |
| 9937 | |
| 9938 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9939 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9940 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 9941 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9943 | else |
| 9944 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9945 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9946 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9947 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9948 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9949 | sys_search_path= |
| 9950 | for dir in $libltdl_cv_sys_search_path; do |
| 9951 | if test -z "$sys_search_path"; then |
| 9952 | sys_search_path="$dir" |
| 9953 | else |
| 9954 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9955 | fi |
| 9956 | done |
| 9957 | |
| 9958 | cat >>confdefs.h <<_ACEOF |
| 9959 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9960 | _ACEOF |
| 9961 | |
| 9962 | fi |
| 9963 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9964 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9965 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 9966 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9968 | else |
| 9969 | libltdl_cv_objdir="$objdir" |
| 9970 | if test -n "$objdir"; then |
| 9971 | : |
| 9972 | else |
| 9973 | rm -f .libs 2>/dev/null |
| 9974 | mkdir .libs 2>/dev/null |
| 9975 | if test -d .libs; then |
| 9976 | libltdl_cv_objdir=.libs |
| 9977 | else |
| 9978 | # MS-DOS does not allow filenames that begin with a dot. |
| 9979 | libltdl_cv_objdir=_libs |
| 9980 | fi |
| 9981 | rmdir .libs 2>/dev/null |
| 9982 | fi |
| 9983 | |
| 9984 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9985 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9986 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9987 | |
| 9988 | cat >>confdefs.h <<_ACEOF |
| 9989 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9990 | _ACEOF |
| 9991 | |
| 9992 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9993 | |
| 9994 | |
| 9995 | |
| 9996 | |
| 9997 | # 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] | 9998 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9999 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 10000 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 10001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10002 | else |
| 10003 | |
| 10004 | # These are sane defaults that work on at least a few old systems. |
| 10005 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 10006 | |
| 10007 | # Character class describing NM global symbol codes. |
| 10008 | symcode='[BCDEGRST]' |
| 10009 | |
| 10010 | # Regexp to match symbols that can be accessed directly from C. |
| 10011 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 10012 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10013 | # Transform an extracted symbol line into a proper C declaration |
| 10014 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 10015 | |
| 10016 | # Transform an extracted symbol line into symbol name and symbol address |
| 10017 | 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'" |
| 10018 | |
| 10019 | # Define system-specific variables. |
| 10020 | case $host_os in |
| 10021 | aix*) |
| 10022 | symcode='[BCDT]' |
| 10023 | ;; |
| 10024 | cygwin* | mingw* | pw32*) |
| 10025 | symcode='[ABCDGISTW]' |
| 10026 | ;; |
| 10027 | hpux*) # Its linker distinguishes data from code symbols |
| 10028 | if test "$host_cpu" = ia64; then |
| 10029 | symcode='[ABCDEGRST]' |
| 10030 | fi |
| 10031 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10032 | 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'" |
| 10033 | ;; |
| 10034 | linux*) |
| 10035 | if test "$host_cpu" = ia64; then |
| 10036 | symcode='[ABCDGIRSTW]' |
| 10037 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10038 | 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'" |
| 10039 | fi |
| 10040 | ;; |
| 10041 | irix* | nonstopux*) |
| 10042 | symcode='[BCDEGRST]' |
| 10043 | ;; |
| 10044 | osf*) |
| 10045 | symcode='[BCDEGQRST]' |
| 10046 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10047 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10048 | symcode='[BDRT]' |
| 10049 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10050 | sco3.2v5*) |
| 10051 | symcode='[DT]' |
| 10052 | ;; |
| 10053 | sysv4.2uw2*) |
| 10054 | symcode='[DT]' |
| 10055 | ;; |
| 10056 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 10057 | symcode='[ABDT]' |
| 10058 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10059 | sysv4) |
| 10060 | symcode='[DFNSTU]' |
| 10061 | ;; |
| 10062 | esac |
| 10063 | |
| 10064 | # Handle CRLF in mingw tool chain |
| 10065 | opt_cr= |
| 10066 | case $build_os in |
| 10067 | mingw*) |
| 10068 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 10069 | ;; |
| 10070 | esac |
| 10071 | |
| 10072 | # If we're using GNU nm, then use its standard symbol codes. |
| 10073 | case `$NM -V 2>&1` in |
| 10074 | *GNU* | *'with BFD'*) |
| 10075 | symcode='[ABCDGIRSTW]' ;; |
| 10076 | esac |
| 10077 | |
| 10078 | # Try without a prefix undercore, then with it. |
| 10079 | for ac_symprfx in "" "_"; do |
| 10080 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10081 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 10082 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 10083 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10084 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10085 | 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] | 10086 | |
| 10087 | # Check to see that the pipe works correctly. |
| 10088 | pipe_works=no |
| 10089 | |
| 10090 | rm -f conftest* |
| 10091 | cat > conftest.$ac_ext <<EOF |
| 10092 | #ifdef __cplusplus |
| 10093 | extern "C" { |
| 10094 | #endif |
| 10095 | char nm_test_var; |
| 10096 | void nm_test_func(){} |
| 10097 | #ifdef __cplusplus |
| 10098 | } |
| 10099 | #endif |
| 10100 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 10101 | EOF |
| 10102 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10104 | (eval $ac_compile) 2>&5 |
| 10105 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10107 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10108 | # Now try to grab the symbols. |
| 10109 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10110 | 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] | 10111 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 10112 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10114 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10115 | # Try sorting and uniquifying the output. |
| 10116 | if sort "$nlist" | uniq > "$nlist"T; then |
| 10117 | mv -f "$nlist"T "$nlist" |
| 10118 | else |
| 10119 | rm -f "$nlist"T |
| 10120 | fi |
| 10121 | |
| 10122 | # Make sure that we snagged all the symbols we need. |
| 10123 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 10124 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 10125 | cat <<EOF > conftest.$ac_ext |
| 10126 | #ifdef __cplusplus |
| 10127 | extern "C" { |
| 10128 | #endif |
| 10129 | |
| 10130 | EOF |
| 10131 | # Now generate the symbol file. |
| 10132 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 10133 | |
| 10134 | cat <<EOF >> conftest.$ac_ext |
| 10135 | #if defined (__STDC__) && __STDC__ |
| 10136 | # define lt_ptr_t void * |
| 10137 | #else |
| 10138 | # define lt_ptr_t char * |
| 10139 | # define const |
| 10140 | #endif |
| 10141 | |
| 10142 | /* The mapping between symbol names and symbols. */ |
| 10143 | const struct { |
| 10144 | const char *name; |
| 10145 | lt_ptr_t address; |
| 10146 | } |
| 10147 | lt_preloaded_symbols[] = |
| 10148 | { |
| 10149 | EOF |
| 10150 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10151 | cat <<\EOF >> conftest.$ac_ext |
| 10152 | {0, (lt_ptr_t) 0} |
| 10153 | }; |
| 10154 | |
| 10155 | #ifdef __cplusplus |
| 10156 | } |
| 10157 | #endif |
| 10158 | EOF |
| 10159 | # Now try linking the two files. |
| 10160 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10161 | lt_save_LIBS="$LIBS" |
| 10162 | lt_save_CFLAGS="$CFLAGS" |
| 10163 | LIBS="conftstm.$ac_objext" |
| 10164 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10166 | (eval $ac_link) 2>&5 |
| 10167 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10169 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10170 | pipe_works=yes |
| 10171 | fi |
| 10172 | LIBS="$lt_save_LIBS" |
| 10173 | CFLAGS="$lt_save_CFLAGS" |
| 10174 | else |
| 10175 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10176 | fi |
| 10177 | else |
| 10178 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10179 | fi |
| 10180 | else |
| 10181 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10182 | fi |
| 10183 | else |
| 10184 | echo "$progname: failed program was:" >&5 |
| 10185 | cat conftest.$ac_ext >&5 |
| 10186 | fi |
| 10187 | rm -f conftest* conftst* |
| 10188 | |
| 10189 | # Do not use the global_symbol_pipe unless it works. |
| 10190 | if test "$pipe_works" = yes; then |
| 10191 | break |
| 10192 | else |
| 10193 | lt_cv_sys_global_symbol_pipe= |
| 10194 | fi |
| 10195 | done |
| 10196 | |
| 10197 | fi |
| 10198 | |
| 10199 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10200 | lt_cv_sys_global_symbol_to_cdecl= |
| 10201 | fi |
| 10202 | 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] | 10203 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10204 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10205 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10206 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10207 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10208 | fi |
| 10209 | |
| 10210 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10211 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10212 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 10213 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10215 | else |
| 10216 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10217 | libltdl_cv_preloaded_symbols=yes |
| 10218 | else |
| 10219 | libltdl_cv_preloaded_symbols=no |
| 10220 | fi |
| 10221 | |
| 10222 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10223 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10224 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10225 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10226 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10227 | cat >>confdefs.h <<\_ACEOF |
| 10228 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10229 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10230 | |
| 10231 | fi |
| 10232 | |
| 10233 | LIBADD_DL= |
| 10234 | |
| 10235 | ac_ext=c |
| 10236 | ac_cpp='$CPP $CPPFLAGS' |
| 10237 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10238 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10239 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10240 | |
| 10241 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10242 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10243 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 10244 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10246 | else |
| 10247 | cat >conftest.$ac_ext <<_ACEOF |
| 10248 | /* confdefs.h. */ |
| 10249 | _ACEOF |
| 10250 | cat confdefs.h >>conftest.$ac_ext |
| 10251 | cat >>conftest.$ac_ext <<_ACEOF |
| 10252 | /* end confdefs.h. */ |
| 10253 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10254 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10255 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10256 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10257 | /* System header to define __stub macros and hopefully few prototypes, |
| 10258 | which can conflict with char shl_load (); below. |
| 10259 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10260 | <limits.h> exists even on freestanding compilers. */ |
| 10261 | |
| 10262 | #ifdef __STDC__ |
| 10263 | # include <limits.h> |
| 10264 | #else |
| 10265 | # include <assert.h> |
| 10266 | #endif |
| 10267 | |
| 10268 | #undef shl_load |
| 10269 | |
| 10270 | /* Override any GCC internal prototype to avoid an error. |
| 10271 | Use char because int might match the return type of a GCC |
| 10272 | builtin and then its argument prototype would still apply. */ |
| 10273 | #ifdef __cplusplus |
| 10274 | extern "C" |
| 10275 | #endif |
| 10276 | char shl_load (); |
| 10277 | /* The GNU C library defines this for functions which it implements |
| 10278 | to always fail with ENOSYS. Some functions are actually named |
| 10279 | something starting with __ and the normal name is an alias. */ |
| 10280 | #if defined __stub_shl_load || defined __stub___shl_load |
| 10281 | choke me |
| 10282 | #endif |
| 10283 | |
| 10284 | int |
| 10285 | main () |
| 10286 | { |
| 10287 | return shl_load (); |
| 10288 | ; |
| 10289 | return 0; |
| 10290 | } |
| 10291 | _ACEOF |
| 10292 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10293 | if { (ac_try="$ac_link" |
| 10294 | case "(($ac_try" in |
| 10295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10296 | *) ac_try_echo=$ac_try;; |
| 10297 | esac |
| 10298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10299 | (eval "$ac_link") 2>conftest.er1 |
| 10300 | ac_status=$? |
| 10301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10302 | rm -f conftest.er1 |
| 10303 | cat conftest.err >&5 |
| 10304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10305 | (exit $ac_status); } && |
| 10306 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10307 | { (case "(($ac_try" in |
| 10308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10309 | *) ac_try_echo=$ac_try;; |
| 10310 | esac |
| 10311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10312 | (eval "$ac_try") 2>&5 |
| 10313 | ac_status=$? |
| 10314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10315 | (exit $ac_status); }; } && |
| 10316 | { ac_try='test -s conftest$ac_exeext' |
| 10317 | { (case "(($ac_try" in |
| 10318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10319 | *) ac_try_echo=$ac_try;; |
| 10320 | esac |
| 10321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10322 | (eval "$ac_try") 2>&5 |
| 10323 | ac_status=$? |
| 10324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10325 | (exit $ac_status); }; }; then |
| 10326 | ac_cv_func_shl_load=yes |
| 10327 | else |
| 10328 | echo "$as_me: failed program was:" >&5 |
| 10329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10330 | |
| 10331 | ac_cv_func_shl_load=no |
| 10332 | fi |
| 10333 | |
| 10334 | rm -f core conftest.err conftest.$ac_objext \ |
| 10335 | conftest$ac_exeext conftest.$ac_ext |
| 10336 | fi |
| 10337 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10338 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 10339 | if test $ac_cv_func_shl_load = yes; then |
| 10340 | |
| 10341 | cat >>confdefs.h <<\_ACEOF |
| 10342 | #define HAVE_SHL_LOAD 1 |
| 10343 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10344 | |
| 10345 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10346 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10347 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 10348 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10350 | else |
| 10351 | ac_check_lib_save_LIBS=$LIBS |
| 10352 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10353 | cat >conftest.$ac_ext <<_ACEOF |
| 10354 | /* confdefs.h. */ |
| 10355 | _ACEOF |
| 10356 | cat confdefs.h >>conftest.$ac_ext |
| 10357 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10358 | /* end confdefs.h. */ |
| 10359 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10360 | /* Override any GCC internal prototype to avoid an error. |
| 10361 | Use char because int might match the return type of a GCC |
| 10362 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10363 | #ifdef __cplusplus |
| 10364 | extern "C" |
| 10365 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10366 | char shl_load (); |
| 10367 | int |
| 10368 | main () |
| 10369 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10370 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10371 | ; |
| 10372 | return 0; |
| 10373 | } |
| 10374 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10375 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10376 | if { (ac_try="$ac_link" |
| 10377 | case "(($ac_try" in |
| 10378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10379 | *) ac_try_echo=$ac_try;; |
| 10380 | esac |
| 10381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10382 | (eval "$ac_link") 2>conftest.er1 |
| 10383 | ac_status=$? |
| 10384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10385 | rm -f conftest.er1 |
| 10386 | cat conftest.err >&5 |
| 10387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10388 | (exit $ac_status); } && |
| 10389 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10390 | { (case "(($ac_try" in |
| 10391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10392 | *) ac_try_echo=$ac_try;; |
| 10393 | esac |
| 10394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10395 | (eval "$ac_try") 2>&5 |
| 10396 | ac_status=$? |
| 10397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10398 | (exit $ac_status); }; } && |
| 10399 | { ac_try='test -s conftest$ac_exeext' |
| 10400 | { (case "(($ac_try" in |
| 10401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10402 | *) ac_try_echo=$ac_try;; |
| 10403 | esac |
| 10404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10405 | (eval "$ac_try") 2>&5 |
| 10406 | ac_status=$? |
| 10407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10408 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10409 | ac_cv_lib_dld_shl_load=yes |
| 10410 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10411 | echo "$as_me: failed program was:" >&5 |
| 10412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10413 | |
| 10414 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10415 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10416 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10417 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10418 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10419 | LIBS=$ac_check_lib_save_LIBS |
| 10420 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10421 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10422 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 10423 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10424 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10425 | cat >>confdefs.h <<\_ACEOF |
| 10426 | #define HAVE_SHL_LOAD 1 |
| 10427 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10428 | |
| 10429 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10430 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10431 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10432 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 10433 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10435 | else |
| 10436 | ac_check_lib_save_LIBS=$LIBS |
| 10437 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10438 | cat >conftest.$ac_ext <<_ACEOF |
| 10439 | /* confdefs.h. */ |
| 10440 | _ACEOF |
| 10441 | cat confdefs.h >>conftest.$ac_ext |
| 10442 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10443 | /* end confdefs.h. */ |
| 10444 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10445 | /* Override any GCC internal prototype to avoid an error. |
| 10446 | Use char because int might match the return type of a GCC |
| 10447 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10448 | #ifdef __cplusplus |
| 10449 | extern "C" |
| 10450 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10451 | char dlopen (); |
| 10452 | int |
| 10453 | main () |
| 10454 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10455 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10456 | ; |
| 10457 | return 0; |
| 10458 | } |
| 10459 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10460 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10461 | if { (ac_try="$ac_link" |
| 10462 | case "(($ac_try" in |
| 10463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10464 | *) ac_try_echo=$ac_try;; |
| 10465 | esac |
| 10466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10467 | (eval "$ac_link") 2>conftest.er1 |
| 10468 | ac_status=$? |
| 10469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10470 | rm -f conftest.er1 |
| 10471 | cat conftest.err >&5 |
| 10472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10473 | (exit $ac_status); } && |
| 10474 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10475 | { (case "(($ac_try" in |
| 10476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10477 | *) ac_try_echo=$ac_try;; |
| 10478 | esac |
| 10479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10480 | (eval "$ac_try") 2>&5 |
| 10481 | ac_status=$? |
| 10482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10483 | (exit $ac_status); }; } && |
| 10484 | { ac_try='test -s conftest$ac_exeext' |
| 10485 | { (case "(($ac_try" in |
| 10486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10487 | *) ac_try_echo=$ac_try;; |
| 10488 | esac |
| 10489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10490 | (eval "$ac_try") 2>&5 |
| 10491 | ac_status=$? |
| 10492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10493 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10494 | ac_cv_lib_dl_dlopen=yes |
| 10495 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10496 | echo "$as_me: failed program was:" >&5 |
| 10497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10498 | |
| 10499 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10500 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10501 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10502 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10503 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10504 | LIBS=$ac_check_lib_save_LIBS |
| 10505 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10506 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10507 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 10508 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10509 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10510 | cat >>confdefs.h <<\_ACEOF |
| 10511 | #define HAVE_LIBDL 1 |
| 10512 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10513 | |
| 10514 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10515 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10516 | cat >conftest.$ac_ext <<_ACEOF |
| 10517 | /* confdefs.h. */ |
| 10518 | _ACEOF |
| 10519 | cat confdefs.h >>conftest.$ac_ext |
| 10520 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10521 | /* end confdefs.h. */ |
| 10522 | #if HAVE_DLFCN_H |
| 10523 | # include <dlfcn.h> |
| 10524 | #endif |
| 10525 | |
| 10526 | int |
| 10527 | main () |
| 10528 | { |
| 10529 | dlopen(0, 0); |
| 10530 | ; |
| 10531 | return 0; |
| 10532 | } |
| 10533 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10534 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10535 | if { (ac_try="$ac_link" |
| 10536 | case "(($ac_try" in |
| 10537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10538 | *) ac_try_echo=$ac_try;; |
| 10539 | esac |
| 10540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10541 | (eval "$ac_link") 2>conftest.er1 |
| 10542 | ac_status=$? |
| 10543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10544 | rm -f conftest.er1 |
| 10545 | cat conftest.err >&5 |
| 10546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10547 | (exit $ac_status); } && |
| 10548 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10549 | { (case "(($ac_try" in |
| 10550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10551 | *) ac_try_echo=$ac_try;; |
| 10552 | esac |
| 10553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10554 | (eval "$ac_try") 2>&5 |
| 10555 | ac_status=$? |
| 10556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10557 | (exit $ac_status); }; } && |
| 10558 | { ac_try='test -s conftest$ac_exeext' |
| 10559 | { (case "(($ac_try" in |
| 10560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10561 | *) ac_try_echo=$ac_try;; |
| 10562 | esac |
| 10563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10564 | (eval "$ac_try") 2>&5 |
| 10565 | ac_status=$? |
| 10566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10567 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10568 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10569 | cat >>confdefs.h <<\_ACEOF |
| 10570 | #define HAVE_LIBDL 1 |
| 10571 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10572 | libltdl_cv_func_dlopen="yes" |
| 10573 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10574 | echo "$as_me: failed program was:" >&5 |
| 10575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10576 | |
| 10577 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10578 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 10579 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10581 | else |
| 10582 | ac_check_lib_save_LIBS=$LIBS |
| 10583 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10584 | cat >conftest.$ac_ext <<_ACEOF |
| 10585 | /* confdefs.h. */ |
| 10586 | _ACEOF |
| 10587 | cat confdefs.h >>conftest.$ac_ext |
| 10588 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10589 | /* end confdefs.h. */ |
| 10590 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10591 | /* Override any GCC internal prototype to avoid an error. |
| 10592 | Use char because int might match the return type of a GCC |
| 10593 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10594 | #ifdef __cplusplus |
| 10595 | extern "C" |
| 10596 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10597 | char dlopen (); |
| 10598 | int |
| 10599 | main () |
| 10600 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10601 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10602 | ; |
| 10603 | return 0; |
| 10604 | } |
| 10605 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10606 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10607 | if { (ac_try="$ac_link" |
| 10608 | case "(($ac_try" in |
| 10609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10610 | *) ac_try_echo=$ac_try;; |
| 10611 | esac |
| 10612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10613 | (eval "$ac_link") 2>conftest.er1 |
| 10614 | ac_status=$? |
| 10615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10616 | rm -f conftest.er1 |
| 10617 | cat conftest.err >&5 |
| 10618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10619 | (exit $ac_status); } && |
| 10620 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10621 | { (case "(($ac_try" in |
| 10622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10623 | *) ac_try_echo=$ac_try;; |
| 10624 | esac |
| 10625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10626 | (eval "$ac_try") 2>&5 |
| 10627 | ac_status=$? |
| 10628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10629 | (exit $ac_status); }; } && |
| 10630 | { ac_try='test -s conftest$ac_exeext' |
| 10631 | { (case "(($ac_try" in |
| 10632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10633 | *) ac_try_echo=$ac_try;; |
| 10634 | esac |
| 10635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10636 | (eval "$ac_try") 2>&5 |
| 10637 | ac_status=$? |
| 10638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10639 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10640 | ac_cv_lib_svld_dlopen=yes |
| 10641 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10642 | echo "$as_me: failed program was:" >&5 |
| 10643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10644 | |
| 10645 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10646 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10647 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10648 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10649 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10650 | LIBS=$ac_check_lib_save_LIBS |
| 10651 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10652 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10653 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 10654 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10655 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10656 | cat >>confdefs.h <<\_ACEOF |
| 10657 | #define HAVE_LIBDL 1 |
| 10658 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10659 | |
| 10660 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10661 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10662 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10663 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 10664 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10666 | else |
| 10667 | ac_check_lib_save_LIBS=$LIBS |
| 10668 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10669 | cat >conftest.$ac_ext <<_ACEOF |
| 10670 | /* confdefs.h. */ |
| 10671 | _ACEOF |
| 10672 | cat confdefs.h >>conftest.$ac_ext |
| 10673 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10674 | /* end confdefs.h. */ |
| 10675 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10676 | /* Override any GCC internal prototype to avoid an error. |
| 10677 | Use char because int might match the return type of a GCC |
| 10678 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10679 | #ifdef __cplusplus |
| 10680 | extern "C" |
| 10681 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10682 | char dld_link (); |
| 10683 | int |
| 10684 | main () |
| 10685 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10686 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10687 | ; |
| 10688 | return 0; |
| 10689 | } |
| 10690 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10691 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10692 | if { (ac_try="$ac_link" |
| 10693 | case "(($ac_try" in |
| 10694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10695 | *) ac_try_echo=$ac_try;; |
| 10696 | esac |
| 10697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10698 | (eval "$ac_link") 2>conftest.er1 |
| 10699 | ac_status=$? |
| 10700 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10701 | rm -f conftest.er1 |
| 10702 | cat conftest.err >&5 |
| 10703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10704 | (exit $ac_status); } && |
| 10705 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10706 | { (case "(($ac_try" in |
| 10707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10708 | *) ac_try_echo=$ac_try;; |
| 10709 | esac |
| 10710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10711 | (eval "$ac_try") 2>&5 |
| 10712 | ac_status=$? |
| 10713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10714 | (exit $ac_status); }; } && |
| 10715 | { ac_try='test -s conftest$ac_exeext' |
| 10716 | { (case "(($ac_try" in |
| 10717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10718 | *) ac_try_echo=$ac_try;; |
| 10719 | esac |
| 10720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10721 | (eval "$ac_try") 2>&5 |
| 10722 | ac_status=$? |
| 10723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10724 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10725 | ac_cv_lib_dld_dld_link=yes |
| 10726 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10727 | echo "$as_me: failed program was:" >&5 |
| 10728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10729 | |
| 10730 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10731 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10732 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10733 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10734 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10735 | LIBS=$ac_check_lib_save_LIBS |
| 10736 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10737 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10738 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 10739 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10740 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10741 | cat >>confdefs.h <<\_ACEOF |
| 10742 | #define HAVE_DLD 1 |
| 10743 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10744 | |
| 10745 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10746 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10747 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10748 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 10749 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10751 | else |
| 10752 | cat >conftest.$ac_ext <<_ACEOF |
| 10753 | /* confdefs.h. */ |
| 10754 | _ACEOF |
| 10755 | cat confdefs.h >>conftest.$ac_ext |
| 10756 | cat >>conftest.$ac_ext <<_ACEOF |
| 10757 | /* end confdefs.h. */ |
| 10758 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10759 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10760 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10761 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10762 | /* System header to define __stub macros and hopefully few prototypes, |
| 10763 | which can conflict with char _dyld_func_lookup (); below. |
| 10764 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10765 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10766 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10767 | #ifdef __STDC__ |
| 10768 | # include <limits.h> |
| 10769 | #else |
| 10770 | # include <assert.h> |
| 10771 | #endif |
| 10772 | |
| 10773 | #undef _dyld_func_lookup |
| 10774 | |
| 10775 | /* Override any GCC internal prototype to avoid an error. |
| 10776 | Use char because int might match the return type of a GCC |
| 10777 | builtin and then its argument prototype would still apply. */ |
| 10778 | #ifdef __cplusplus |
| 10779 | extern "C" |
| 10780 | #endif |
| 10781 | char _dyld_func_lookup (); |
| 10782 | /* The GNU C library defines this for functions which it implements |
| 10783 | to always fail with ENOSYS. Some functions are actually named |
| 10784 | something starting with __ and the normal name is an alias. */ |
| 10785 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 10786 | choke me |
| 10787 | #endif |
| 10788 | |
| 10789 | int |
| 10790 | main () |
| 10791 | { |
| 10792 | return _dyld_func_lookup (); |
| 10793 | ; |
| 10794 | return 0; |
| 10795 | } |
| 10796 | _ACEOF |
| 10797 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10798 | if { (ac_try="$ac_link" |
| 10799 | case "(($ac_try" in |
| 10800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10801 | *) ac_try_echo=$ac_try;; |
| 10802 | esac |
| 10803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10804 | (eval "$ac_link") 2>conftest.er1 |
| 10805 | ac_status=$? |
| 10806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10807 | rm -f conftest.er1 |
| 10808 | cat conftest.err >&5 |
| 10809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10810 | (exit $ac_status); } && |
| 10811 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10812 | { (case "(($ac_try" in |
| 10813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10814 | *) ac_try_echo=$ac_try;; |
| 10815 | esac |
| 10816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10817 | (eval "$ac_try") 2>&5 |
| 10818 | ac_status=$? |
| 10819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10820 | (exit $ac_status); }; } && |
| 10821 | { ac_try='test -s conftest$ac_exeext' |
| 10822 | { (case "(($ac_try" in |
| 10823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10824 | *) ac_try_echo=$ac_try;; |
| 10825 | esac |
| 10826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10827 | (eval "$ac_try") 2>&5 |
| 10828 | ac_status=$? |
| 10829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10830 | (exit $ac_status); }; }; then |
| 10831 | ac_cv_func__dyld_func_lookup=yes |
| 10832 | else |
| 10833 | echo "$as_me: failed program was:" >&5 |
| 10834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10835 | |
| 10836 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10837 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10838 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10839 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10840 | conftest$ac_exeext conftest.$ac_ext |
| 10841 | fi |
| 10842 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10843 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 10844 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10845 | |
| 10846 | cat >>confdefs.h <<\_ACEOF |
| 10847 | #define HAVE_DYLD 1 |
| 10848 | _ACEOF |
| 10849 | |
| 10850 | fi |
| 10851 | |
| 10852 | |
| 10853 | fi |
| 10854 | |
| 10855 | |
| 10856 | fi |
| 10857 | |
| 10858 | |
| 10859 | fi |
| 10860 | |
| 10861 | rm -f core conftest.err conftest.$ac_objext \ |
| 10862 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10863 | |
| 10864 | fi |
| 10865 | |
| 10866 | |
| 10867 | fi |
| 10868 | |
| 10869 | |
| 10870 | fi |
| 10871 | |
| 10872 | |
| 10873 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10874 | then |
| 10875 | lt_save_LIBS="$LIBS" |
| 10876 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10877 | |
| 10878 | for ac_func in dlerror |
| 10879 | do |
| 10880 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10881 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10882 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10883 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10885 | else |
| 10886 | cat >conftest.$ac_ext <<_ACEOF |
| 10887 | /* confdefs.h. */ |
| 10888 | _ACEOF |
| 10889 | cat confdefs.h >>conftest.$ac_ext |
| 10890 | cat >>conftest.$ac_ext <<_ACEOF |
| 10891 | /* end confdefs.h. */ |
| 10892 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10893 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10894 | #define $ac_func innocuous_$ac_func |
| 10895 | |
| 10896 | /* System header to define __stub macros and hopefully few prototypes, |
| 10897 | which can conflict with char $ac_func (); below. |
| 10898 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10899 | <limits.h> exists even on freestanding compilers. */ |
| 10900 | |
| 10901 | #ifdef __STDC__ |
| 10902 | # include <limits.h> |
| 10903 | #else |
| 10904 | # include <assert.h> |
| 10905 | #endif |
| 10906 | |
| 10907 | #undef $ac_func |
| 10908 | |
| 10909 | /* Override any GCC internal prototype to avoid an error. |
| 10910 | Use char because int might match the return type of a GCC |
| 10911 | builtin and then its argument prototype would still apply. */ |
| 10912 | #ifdef __cplusplus |
| 10913 | extern "C" |
| 10914 | #endif |
| 10915 | char $ac_func (); |
| 10916 | /* The GNU C library defines this for functions which it implements |
| 10917 | to always fail with ENOSYS. Some functions are actually named |
| 10918 | something starting with __ and the normal name is an alias. */ |
| 10919 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 10920 | choke me |
| 10921 | #endif |
| 10922 | |
| 10923 | int |
| 10924 | main () |
| 10925 | { |
| 10926 | return $ac_func (); |
| 10927 | ; |
| 10928 | return 0; |
| 10929 | } |
| 10930 | _ACEOF |
| 10931 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10932 | if { (ac_try="$ac_link" |
| 10933 | case "(($ac_try" in |
| 10934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10935 | *) ac_try_echo=$ac_try;; |
| 10936 | esac |
| 10937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10938 | (eval "$ac_link") 2>conftest.er1 |
| 10939 | ac_status=$? |
| 10940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10941 | rm -f conftest.er1 |
| 10942 | cat conftest.err >&5 |
| 10943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10944 | (exit $ac_status); } && |
| 10945 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10946 | { (case "(($ac_try" in |
| 10947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10948 | *) ac_try_echo=$ac_try;; |
| 10949 | esac |
| 10950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10951 | (eval "$ac_try") 2>&5 |
| 10952 | ac_status=$? |
| 10953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10954 | (exit $ac_status); }; } && |
| 10955 | { ac_try='test -s conftest$ac_exeext' |
| 10956 | { (case "(($ac_try" in |
| 10957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10958 | *) ac_try_echo=$ac_try;; |
| 10959 | esac |
| 10960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10961 | (eval "$ac_try") 2>&5 |
| 10962 | ac_status=$? |
| 10963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10964 | (exit $ac_status); }; }; then |
| 10965 | eval "$as_ac_var=yes" |
| 10966 | else |
| 10967 | echo "$as_me: failed program was:" >&5 |
| 10968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10969 | |
| 10970 | eval "$as_ac_var=no" |
| 10971 | fi |
| 10972 | |
| 10973 | rm -f core conftest.err conftest.$ac_objext \ |
| 10974 | conftest$ac_exeext conftest.$ac_ext |
| 10975 | fi |
| 10976 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10977 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10978 | echo "${ECHO_T}$ac_res" >&6; } |
| 10979 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10980 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10981 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10982 | _ACEOF |
| 10983 | |
| 10984 | fi |
| 10985 | done |
| 10986 | |
| 10987 | LIBS="$lt_save_LIBS" |
| 10988 | fi |
| 10989 | ac_ext=c |
| 10990 | ac_cpp='$CPP $CPPFLAGS' |
| 10991 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10992 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10994 | |
| 10995 | |
| 10996 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10997 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10998 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 10999 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 11000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11001 | else |
| 11002 | ac_cv_sys_symbol_underscore=no |
| 11003 | cat > conftest.$ac_ext <<EOF |
| 11004 | void nm_test_func(){} |
| 11005 | int main(){nm_test_func;return 0;} |
| 11006 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11008 | (eval $ac_compile) 2>&5 |
| 11009 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11011 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11012 | # Now try to grab the symbols. |
| 11013 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11014 | 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] | 11015 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 11016 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11018 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11019 | # See whether the symbols have a leading underscore. |
| 11020 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 11021 | ac_cv_sys_symbol_underscore=yes |
| 11022 | else |
| 11023 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 11024 | : |
| 11025 | else |
| 11026 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 11027 | fi |
| 11028 | fi |
| 11029 | else |
| 11030 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11031 | fi |
| 11032 | else |
| 11033 | echo "configure: failed program was:" >&5 |
| 11034 | cat conftest.c >&5 |
| 11035 | fi |
| 11036 | rm -rf conftest* |
| 11037 | |
| 11038 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11039 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 11040 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11041 | |
| 11042 | |
| 11043 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 11044 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 11045 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11046 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 11047 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 11048 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 11049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11050 | else |
| 11051 | libltdl_cv_need_uscore=unknown |
| 11052 | save_LIBS="$LIBS" |
| 11053 | LIBS="$LIBS $LIBADD_DL" |
| 11054 | if test "$cross_compiling" = yes; then : |
| 11055 | libltdl_cv_need_uscore=cross |
| 11056 | else |
| 11057 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11058 | lt_status=$lt_dlunknown |
| 11059 | cat > conftest.$ac_ext <<EOF |
Jeffrey Yasskin | f6afae2 | 2010-02-18 02:36:02 +0000 | [diff] [blame] | 11060 | #line 11060 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11061 | #include "confdefs.h" |
| 11062 | |
| 11063 | #if HAVE_DLFCN_H |
| 11064 | #include <dlfcn.h> |
| 11065 | #endif |
| 11066 | |
| 11067 | #include <stdio.h> |
| 11068 | |
| 11069 | #ifdef RTLD_GLOBAL |
| 11070 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11071 | #else |
| 11072 | # ifdef DL_GLOBAL |
| 11073 | # define LT_DLGLOBAL DL_GLOBAL |
| 11074 | # else |
| 11075 | # define LT_DLGLOBAL 0 |
| 11076 | # endif |
| 11077 | #endif |
| 11078 | |
| 11079 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11080 | find out it does not work in some platform. */ |
| 11081 | #ifndef LT_DLLAZY_OR_NOW |
| 11082 | # ifdef RTLD_LAZY |
| 11083 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11084 | # else |
| 11085 | # ifdef DL_LAZY |
| 11086 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11087 | # else |
| 11088 | # ifdef RTLD_NOW |
| 11089 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11090 | # else |
| 11091 | # ifdef DL_NOW |
| 11092 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11093 | # else |
| 11094 | # define LT_DLLAZY_OR_NOW 0 |
| 11095 | # endif |
| 11096 | # endif |
| 11097 | # endif |
| 11098 | # endif |
| 11099 | #endif |
| 11100 | |
| 11101 | #ifdef __cplusplus |
| 11102 | extern "C" void exit (int); |
| 11103 | #endif |
| 11104 | |
| 11105 | void fnord() { int i=42;} |
| 11106 | int main () |
| 11107 | { |
| 11108 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11109 | int status = $lt_dlunknown; |
| 11110 | |
| 11111 | if (self) |
| 11112 | { |
| 11113 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11114 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11115 | /* dlclose (self); */ |
| 11116 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11117 | else |
| 11118 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11119 | |
| 11120 | exit (status); |
| 11121 | } |
| 11122 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11124 | (eval $ac_link) 2>&5 |
| 11125 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11127 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11128 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11129 | lt_status=$? |
| 11130 | case x$lt_status in |
| 11131 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 11132 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11133 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11134 | esac |
| 11135 | else : |
| 11136 | # compilation failed |
| 11137 | |
| 11138 | fi |
| 11139 | fi |
| 11140 | rm -fr conftest* |
| 11141 | |
| 11142 | LIBS="$save_LIBS" |
| 11143 | |
| 11144 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11145 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 11146 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11147 | fi |
| 11148 | fi |
| 11149 | |
| 11150 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11151 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11152 | cat >>confdefs.h <<\_ACEOF |
| 11153 | #define NEED_USCORE 1 |
| 11154 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11155 | |
| 11156 | fi |
| 11157 | |
| 11158 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11159 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11160 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 11161 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11163 | else |
| 11164 | # PORTME does your system automatically load deplibs for dlopen? |
| 11165 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11166 | # For now, we just catch OSes we know something about -- in the |
| 11167 | # future, we'll try test this programmatically. |
| 11168 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11169 | case "$host_os" in |
| 11170 | aix3*|aix4.1.*|aix4.2.*) |
| 11171 | # Unknown whether this is true for these versions of AIX, but |
| 11172 | # we want this `case' here to explicitly catch those versions. |
| 11173 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11174 | ;; |
| 11175 | aix[45]*) |
| 11176 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11177 | ;; |
| 11178 | darwin*) |
| 11179 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11180 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11181 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11182 | ;; |
| 11183 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11184 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11185 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11186 | ;; |
| 11187 | hpux10*|hpux11*) |
| 11188 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11189 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11190 | interix*) |
| 11191 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11192 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11193 | irix[12345]*|irix6.[01]*) |
| 11194 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11195 | # know how it worked for any of those versions. |
| 11196 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11197 | ;; |
| 11198 | irix*) |
| 11199 | # The case above catches anything before 6.2, and it's known that |
| 11200 | # at 6.2 and later dlopen does load deplibs. |
| 11201 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11202 | ;; |
| 11203 | netbsd*) |
| 11204 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11205 | ;; |
| 11206 | openbsd*) |
| 11207 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11208 | ;; |
| 11209 | osf[1234]*) |
| 11210 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11211 | # it did *not* use an RPATH in a shared library to find objects the |
| 11212 | # library depends on, so we explictly say `no'. |
| 11213 | libltdl_cv_sys_dlopen_deplibs=no |
| 11214 | ;; |
| 11215 | osf5.0|osf5.0a|osf5.1) |
| 11216 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11217 | # it even uses RPATH in a shared library to search for shared objects |
| 11218 | # that the library depends on, but there's no easy way to know if that |
| 11219 | # patch is installed. Since this is the case, all we can really |
| 11220 | # say is unknown -- it depends on the patch being installed. If |
| 11221 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11222 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11223 | ;; |
| 11224 | osf*) |
| 11225 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11226 | # the comments above for what we know about them. |
| 11227 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11228 | # is used to find them so we can finally say `yes'. |
| 11229 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11230 | ;; |
| 11231 | solaris*) |
| 11232 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11233 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11234 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11235 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11236 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11237 | esac |
| 11238 | |
| 11239 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11240 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11241 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11242 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11243 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11244 | cat >>confdefs.h <<\_ACEOF |
| 11245 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11246 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11247 | |
| 11248 | fi |
| 11249 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11250 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11251 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11252 | do |
| 11253 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11254 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11255 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11256 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11257 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11259 | fi |
| 11260 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11261 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11262 | echo "${ECHO_T}$ac_res" >&6; } |
| 11263 | else |
| 11264 | # Is the header compilable? |
| 11265 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11266 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11267 | cat >conftest.$ac_ext <<_ACEOF |
| 11268 | /* confdefs.h. */ |
| 11269 | _ACEOF |
| 11270 | cat confdefs.h >>conftest.$ac_ext |
| 11271 | cat >>conftest.$ac_ext <<_ACEOF |
| 11272 | /* end confdefs.h. */ |
| 11273 | $ac_includes_default |
| 11274 | #include <$ac_header> |
| 11275 | _ACEOF |
| 11276 | rm -f conftest.$ac_objext |
| 11277 | if { (ac_try="$ac_compile" |
| 11278 | case "(($ac_try" in |
| 11279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11280 | *) ac_try_echo=$ac_try;; |
| 11281 | esac |
| 11282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11283 | (eval "$ac_compile") 2>conftest.er1 |
| 11284 | ac_status=$? |
| 11285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11286 | rm -f conftest.er1 |
| 11287 | cat conftest.err >&5 |
| 11288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11289 | (exit $ac_status); } && |
| 11290 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11291 | { (case "(($ac_try" in |
| 11292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11293 | *) ac_try_echo=$ac_try;; |
| 11294 | esac |
| 11295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11296 | (eval "$ac_try") 2>&5 |
| 11297 | ac_status=$? |
| 11298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11299 | (exit $ac_status); }; } && |
| 11300 | { ac_try='test -s conftest.$ac_objext' |
| 11301 | { (case "(($ac_try" in |
| 11302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11303 | *) ac_try_echo=$ac_try;; |
| 11304 | esac |
| 11305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11306 | (eval "$ac_try") 2>&5 |
| 11307 | ac_status=$? |
| 11308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11309 | (exit $ac_status); }; }; then |
| 11310 | ac_header_compiler=yes |
| 11311 | else |
| 11312 | echo "$as_me: failed program was:" >&5 |
| 11313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11314 | |
| 11315 | ac_header_compiler=no |
| 11316 | fi |
| 11317 | |
| 11318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11319 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11320 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11321 | |
| 11322 | # Is the header present? |
| 11323 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11324 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11325 | cat >conftest.$ac_ext <<_ACEOF |
| 11326 | /* confdefs.h. */ |
| 11327 | _ACEOF |
| 11328 | cat confdefs.h >>conftest.$ac_ext |
| 11329 | cat >>conftest.$ac_ext <<_ACEOF |
| 11330 | /* end confdefs.h. */ |
| 11331 | #include <$ac_header> |
| 11332 | _ACEOF |
| 11333 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11334 | case "(($ac_try" in |
| 11335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11336 | *) ac_try_echo=$ac_try;; |
| 11337 | esac |
| 11338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11339 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11340 | ac_status=$? |
| 11341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11342 | rm -f conftest.er1 |
| 11343 | cat conftest.err >&5 |
| 11344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11345 | (exit $ac_status); } >/dev/null; then |
| 11346 | if test -s conftest.err; then |
| 11347 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11348 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11349 | else |
| 11350 | ac_cpp_err= |
| 11351 | fi |
| 11352 | else |
| 11353 | ac_cpp_err=yes |
| 11354 | fi |
| 11355 | if test -z "$ac_cpp_err"; then |
| 11356 | ac_header_preproc=yes |
| 11357 | else |
| 11358 | echo "$as_me: failed program was:" >&5 |
| 11359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11360 | |
| 11361 | ac_header_preproc=no |
| 11362 | fi |
| 11363 | |
| 11364 | rm -f conftest.err conftest.$ac_ext |
| 11365 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11366 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11367 | |
| 11368 | # So? What about this header? |
| 11369 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11370 | yes:no: ) |
| 11371 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11372 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11373 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11374 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11375 | ac_header_preproc=yes |
| 11376 | ;; |
| 11377 | no:yes:* ) |
| 11378 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11379 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11380 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11381 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11382 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11383 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11384 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11385 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11386 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11387 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11388 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11389 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11390 | ( cat <<\_ASBOX |
| 11391 | ## ----------------------------------- ## |
| 11392 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11393 | ## ----------------------------------- ## |
| 11394 | _ASBOX |
| 11395 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11396 | ;; |
| 11397 | esac |
| 11398 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11399 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11400 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11402 | else |
| 11403 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11404 | fi |
| 11405 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11406 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11407 | echo "${ECHO_T}$ac_res" >&6; } |
| 11408 | |
| 11409 | fi |
| 11410 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11411 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11412 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11413 | _ACEOF |
| 11414 | |
| 11415 | fi |
| 11416 | |
| 11417 | done |
| 11418 | |
| 11419 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11420 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11421 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 11422 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11424 | else |
| 11425 | cat >conftest.$ac_ext <<_ACEOF |
| 11426 | /* confdefs.h. */ |
| 11427 | _ACEOF |
| 11428 | cat confdefs.h >>conftest.$ac_ext |
| 11429 | cat >>conftest.$ac_ext <<_ACEOF |
| 11430 | /* end confdefs.h. */ |
| 11431 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11432 | # include <argz.h> |
| 11433 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11434 | |
| 11435 | typedef error_t ac__type_new_; |
| 11436 | int |
| 11437 | main () |
| 11438 | { |
| 11439 | if ((ac__type_new_ *) 0) |
| 11440 | return 0; |
| 11441 | if (sizeof (ac__type_new_)) |
| 11442 | return 0; |
| 11443 | ; |
| 11444 | return 0; |
| 11445 | } |
| 11446 | _ACEOF |
| 11447 | rm -f conftest.$ac_objext |
| 11448 | if { (ac_try="$ac_compile" |
| 11449 | case "(($ac_try" in |
| 11450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11451 | *) ac_try_echo=$ac_try;; |
| 11452 | esac |
| 11453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11454 | (eval "$ac_compile") 2>conftest.er1 |
| 11455 | ac_status=$? |
| 11456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11457 | rm -f conftest.er1 |
| 11458 | cat conftest.err >&5 |
| 11459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11460 | (exit $ac_status); } && |
| 11461 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11462 | { (case "(($ac_try" in |
| 11463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11464 | *) ac_try_echo=$ac_try;; |
| 11465 | esac |
| 11466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11467 | (eval "$ac_try") 2>&5 |
| 11468 | ac_status=$? |
| 11469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11470 | (exit $ac_status); }; } && |
| 11471 | { ac_try='test -s conftest.$ac_objext' |
| 11472 | { (case "(($ac_try" in |
| 11473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11474 | *) ac_try_echo=$ac_try;; |
| 11475 | esac |
| 11476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11477 | (eval "$ac_try") 2>&5 |
| 11478 | ac_status=$? |
| 11479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11480 | (exit $ac_status); }; }; then |
| 11481 | ac_cv_type_error_t=yes |
| 11482 | else |
| 11483 | echo "$as_me: failed program was:" >&5 |
| 11484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11485 | |
| 11486 | ac_cv_type_error_t=no |
| 11487 | fi |
| 11488 | |
| 11489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11490 | fi |
| 11491 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11492 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 11493 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11494 | |
| 11495 | cat >>confdefs.h <<_ACEOF |
| 11496 | #define HAVE_ERROR_T 1 |
| 11497 | _ACEOF |
| 11498 | |
| 11499 | |
| 11500 | else |
| 11501 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11502 | cat >>confdefs.h <<\_ACEOF |
| 11503 | #define error_t int |
| 11504 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11505 | |
| 11506 | fi |
| 11507 | |
| 11508 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11509 | |
| 11510 | |
| 11511 | |
| 11512 | |
| 11513 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11514 | 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] | 11515 | do |
| 11516 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11517 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11518 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11519 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11521 | else |
| 11522 | cat >conftest.$ac_ext <<_ACEOF |
| 11523 | /* confdefs.h. */ |
| 11524 | _ACEOF |
| 11525 | cat confdefs.h >>conftest.$ac_ext |
| 11526 | cat >>conftest.$ac_ext <<_ACEOF |
| 11527 | /* end confdefs.h. */ |
| 11528 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11529 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11530 | #define $ac_func innocuous_$ac_func |
| 11531 | |
| 11532 | /* System header to define __stub macros and hopefully few prototypes, |
| 11533 | which can conflict with char $ac_func (); below. |
| 11534 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11535 | <limits.h> exists even on freestanding compilers. */ |
| 11536 | |
| 11537 | #ifdef __STDC__ |
| 11538 | # include <limits.h> |
| 11539 | #else |
| 11540 | # include <assert.h> |
| 11541 | #endif |
| 11542 | |
| 11543 | #undef $ac_func |
| 11544 | |
| 11545 | /* Override any GCC internal prototype to avoid an error. |
| 11546 | Use char because int might match the return type of a GCC |
| 11547 | builtin and then its argument prototype would still apply. */ |
| 11548 | #ifdef __cplusplus |
| 11549 | extern "C" |
| 11550 | #endif |
| 11551 | char $ac_func (); |
| 11552 | /* The GNU C library defines this for functions which it implements |
| 11553 | to always fail with ENOSYS. Some functions are actually named |
| 11554 | something starting with __ and the normal name is an alias. */ |
| 11555 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11556 | choke me |
| 11557 | #endif |
| 11558 | |
| 11559 | int |
| 11560 | main () |
| 11561 | { |
| 11562 | return $ac_func (); |
| 11563 | ; |
| 11564 | return 0; |
| 11565 | } |
| 11566 | _ACEOF |
| 11567 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11568 | if { (ac_try="$ac_link" |
| 11569 | case "(($ac_try" in |
| 11570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11571 | *) ac_try_echo=$ac_try;; |
| 11572 | esac |
| 11573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11574 | (eval "$ac_link") 2>conftest.er1 |
| 11575 | ac_status=$? |
| 11576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11577 | rm -f conftest.er1 |
| 11578 | cat conftest.err >&5 |
| 11579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11580 | (exit $ac_status); } && |
| 11581 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11582 | { (case "(($ac_try" in |
| 11583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11584 | *) ac_try_echo=$ac_try;; |
| 11585 | esac |
| 11586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11587 | (eval "$ac_try") 2>&5 |
| 11588 | ac_status=$? |
| 11589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11590 | (exit $ac_status); }; } && |
| 11591 | { ac_try='test -s conftest$ac_exeext' |
| 11592 | { (case "(($ac_try" in |
| 11593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11594 | *) ac_try_echo=$ac_try;; |
| 11595 | esac |
| 11596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11597 | (eval "$ac_try") 2>&5 |
| 11598 | ac_status=$? |
| 11599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11600 | (exit $ac_status); }; }; then |
| 11601 | eval "$as_ac_var=yes" |
| 11602 | else |
| 11603 | echo "$as_me: failed program was:" >&5 |
| 11604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11605 | |
| 11606 | eval "$as_ac_var=no" |
| 11607 | fi |
| 11608 | |
| 11609 | rm -f core conftest.err conftest.$ac_objext \ |
| 11610 | conftest$ac_exeext conftest.$ac_ext |
| 11611 | fi |
| 11612 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11613 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11614 | echo "${ECHO_T}$ac_res" >&6; } |
| 11615 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11616 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11617 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11618 | _ACEOF |
| 11619 | |
| 11620 | fi |
| 11621 | done |
| 11622 | |
| 11623 | |
| 11624 | |
| 11625 | |
| 11626 | |
| 11627 | |
| 11628 | |
| 11629 | |
| 11630 | |
| 11631 | |
| 11632 | |
| 11633 | |
| 11634 | |
| 11635 | |
| 11636 | |
| 11637 | |
| 11638 | |
| 11639 | |
| 11640 | |
| 11641 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11642 | |
| 11643 | |
| 11644 | |
| 11645 | |
| 11646 | |
| 11647 | |
| 11648 | |
| 11649 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11650 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11651 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11652 | do |
| 11653 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11654 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11655 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11656 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11657 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11659 | fi |
| 11660 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11661 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11662 | echo "${ECHO_T}$ac_res" >&6; } |
| 11663 | else |
| 11664 | # Is the header compilable? |
| 11665 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11666 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11667 | cat >conftest.$ac_ext <<_ACEOF |
| 11668 | /* confdefs.h. */ |
| 11669 | _ACEOF |
| 11670 | cat confdefs.h >>conftest.$ac_ext |
| 11671 | cat >>conftest.$ac_ext <<_ACEOF |
| 11672 | /* end confdefs.h. */ |
| 11673 | $ac_includes_default |
| 11674 | #include <$ac_header> |
| 11675 | _ACEOF |
| 11676 | rm -f conftest.$ac_objext |
| 11677 | if { (ac_try="$ac_compile" |
| 11678 | case "(($ac_try" in |
| 11679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11680 | *) ac_try_echo=$ac_try;; |
| 11681 | esac |
| 11682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11683 | (eval "$ac_compile") 2>conftest.er1 |
| 11684 | ac_status=$? |
| 11685 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11686 | rm -f conftest.er1 |
| 11687 | cat conftest.err >&5 |
| 11688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11689 | (exit $ac_status); } && |
| 11690 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11691 | { (case "(($ac_try" in |
| 11692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11693 | *) ac_try_echo=$ac_try;; |
| 11694 | esac |
| 11695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11696 | (eval "$ac_try") 2>&5 |
| 11697 | ac_status=$? |
| 11698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11699 | (exit $ac_status); }; } && |
| 11700 | { ac_try='test -s conftest.$ac_objext' |
| 11701 | { (case "(($ac_try" in |
| 11702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11703 | *) ac_try_echo=$ac_try;; |
| 11704 | esac |
| 11705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11706 | (eval "$ac_try") 2>&5 |
| 11707 | ac_status=$? |
| 11708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11709 | (exit $ac_status); }; }; then |
| 11710 | ac_header_compiler=yes |
| 11711 | else |
| 11712 | echo "$as_me: failed program was:" >&5 |
| 11713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11714 | |
| 11715 | ac_header_compiler=no |
| 11716 | fi |
| 11717 | |
| 11718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11719 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11720 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11721 | |
| 11722 | # Is the header present? |
| 11723 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11724 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11725 | cat >conftest.$ac_ext <<_ACEOF |
| 11726 | /* confdefs.h. */ |
| 11727 | _ACEOF |
| 11728 | cat confdefs.h >>conftest.$ac_ext |
| 11729 | cat >>conftest.$ac_ext <<_ACEOF |
| 11730 | /* end confdefs.h. */ |
| 11731 | #include <$ac_header> |
| 11732 | _ACEOF |
| 11733 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11734 | case "(($ac_try" in |
| 11735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11736 | *) ac_try_echo=$ac_try;; |
| 11737 | esac |
| 11738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11739 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11740 | ac_status=$? |
| 11741 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11742 | rm -f conftest.er1 |
| 11743 | cat conftest.err >&5 |
| 11744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11745 | (exit $ac_status); } >/dev/null; then |
| 11746 | if test -s conftest.err; then |
| 11747 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11748 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11749 | else |
| 11750 | ac_cpp_err= |
| 11751 | fi |
| 11752 | else |
| 11753 | ac_cpp_err=yes |
| 11754 | fi |
| 11755 | if test -z "$ac_cpp_err"; then |
| 11756 | ac_header_preproc=yes |
| 11757 | else |
| 11758 | echo "$as_me: failed program was:" >&5 |
| 11759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11760 | |
| 11761 | ac_header_preproc=no |
| 11762 | fi |
| 11763 | |
| 11764 | rm -f conftest.err conftest.$ac_ext |
| 11765 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11766 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11767 | |
| 11768 | # So? What about this header? |
| 11769 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11770 | yes:no: ) |
| 11771 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11772 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11773 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11774 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11775 | ac_header_preproc=yes |
| 11776 | ;; |
| 11777 | no:yes:* ) |
| 11778 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11779 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11780 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11781 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11782 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11783 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11784 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11785 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11786 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11787 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11788 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11789 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11790 | ( cat <<\_ASBOX |
| 11791 | ## ----------------------------------- ## |
| 11792 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11793 | ## ----------------------------------- ## |
| 11794 | _ASBOX |
| 11795 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11796 | ;; |
| 11797 | esac |
| 11798 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11799 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11800 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11802 | else |
| 11803 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11804 | fi |
| 11805 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11806 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11807 | echo "${ECHO_T}$ac_res" >&6; } |
| 11808 | |
| 11809 | fi |
| 11810 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11811 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11812 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11813 | _ACEOF |
| 11814 | |
| 11815 | fi |
| 11816 | |
| 11817 | done |
| 11818 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11819 | |
| 11820 | |
| 11821 | |
| 11822 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11823 | 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] | 11824 | do |
| 11825 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11826 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11827 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11828 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11829 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11831 | fi |
| 11832 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11833 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11834 | echo "${ECHO_T}$ac_res" >&6; } |
| 11835 | else |
| 11836 | # Is the header compilable? |
| 11837 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11838 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11839 | cat >conftest.$ac_ext <<_ACEOF |
| 11840 | /* confdefs.h. */ |
| 11841 | _ACEOF |
| 11842 | cat confdefs.h >>conftest.$ac_ext |
| 11843 | cat >>conftest.$ac_ext <<_ACEOF |
| 11844 | /* end confdefs.h. */ |
| 11845 | $ac_includes_default |
| 11846 | #include <$ac_header> |
| 11847 | _ACEOF |
| 11848 | rm -f conftest.$ac_objext |
| 11849 | if { (ac_try="$ac_compile" |
| 11850 | case "(($ac_try" in |
| 11851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11852 | *) ac_try_echo=$ac_try;; |
| 11853 | esac |
| 11854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11855 | (eval "$ac_compile") 2>conftest.er1 |
| 11856 | ac_status=$? |
| 11857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11858 | rm -f conftest.er1 |
| 11859 | cat conftest.err >&5 |
| 11860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11861 | (exit $ac_status); } && |
| 11862 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11863 | { (case "(($ac_try" in |
| 11864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11865 | *) ac_try_echo=$ac_try;; |
| 11866 | esac |
| 11867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11868 | (eval "$ac_try") 2>&5 |
| 11869 | ac_status=$? |
| 11870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11871 | (exit $ac_status); }; } && |
| 11872 | { ac_try='test -s conftest.$ac_objext' |
| 11873 | { (case "(($ac_try" in |
| 11874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11875 | *) ac_try_echo=$ac_try;; |
| 11876 | esac |
| 11877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11878 | (eval "$ac_try") 2>&5 |
| 11879 | ac_status=$? |
| 11880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11881 | (exit $ac_status); }; }; then |
| 11882 | ac_header_compiler=yes |
| 11883 | else |
| 11884 | echo "$as_me: failed program was:" >&5 |
| 11885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11886 | |
| 11887 | ac_header_compiler=no |
| 11888 | fi |
| 11889 | |
| 11890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11891 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11892 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11893 | |
| 11894 | # Is the header present? |
| 11895 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11896 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11897 | cat >conftest.$ac_ext <<_ACEOF |
| 11898 | /* confdefs.h. */ |
| 11899 | _ACEOF |
| 11900 | cat confdefs.h >>conftest.$ac_ext |
| 11901 | cat >>conftest.$ac_ext <<_ACEOF |
| 11902 | /* end confdefs.h. */ |
| 11903 | #include <$ac_header> |
| 11904 | _ACEOF |
| 11905 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11906 | case "(($ac_try" in |
| 11907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11908 | *) ac_try_echo=$ac_try;; |
| 11909 | esac |
| 11910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11911 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11912 | ac_status=$? |
| 11913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11914 | rm -f conftest.er1 |
| 11915 | cat conftest.err >&5 |
| 11916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11917 | (exit $ac_status); } >/dev/null; then |
| 11918 | if test -s conftest.err; then |
| 11919 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11920 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11921 | else |
| 11922 | ac_cpp_err= |
| 11923 | fi |
| 11924 | else |
| 11925 | ac_cpp_err=yes |
| 11926 | fi |
| 11927 | if test -z "$ac_cpp_err"; then |
| 11928 | ac_header_preproc=yes |
| 11929 | else |
| 11930 | echo "$as_me: failed program was:" >&5 |
| 11931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11932 | |
| 11933 | ac_header_preproc=no |
| 11934 | fi |
| 11935 | |
| 11936 | rm -f conftest.err conftest.$ac_ext |
| 11937 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11938 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11939 | |
| 11940 | # So? What about this header? |
| 11941 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11942 | yes:no: ) |
| 11943 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11944 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11945 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11946 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11947 | ac_header_preproc=yes |
| 11948 | ;; |
| 11949 | no:yes:* ) |
| 11950 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11951 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11952 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11953 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11954 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11955 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11956 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11957 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11958 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11959 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11960 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11961 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11962 | ( cat <<\_ASBOX |
| 11963 | ## ----------------------------------- ## |
| 11964 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11965 | ## ----------------------------------- ## |
| 11966 | _ASBOX |
| 11967 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11968 | ;; |
| 11969 | esac |
| 11970 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11971 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11972 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11974 | else |
| 11975 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11976 | fi |
| 11977 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11978 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11979 | echo "${ECHO_T}$ac_res" >&6; } |
| 11980 | |
| 11981 | fi |
| 11982 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11983 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11984 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11985 | _ACEOF |
| 11986 | |
| 11987 | fi |
| 11988 | |
| 11989 | done |
| 11990 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11991 | |
| 11992 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11993 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11994 | do |
| 11995 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11996 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11997 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11998 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11999 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12001 | fi |
| 12002 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12003 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12004 | echo "${ECHO_T}$ac_res" >&6; } |
| 12005 | else |
| 12006 | # Is the header compilable? |
| 12007 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12008 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12009 | cat >conftest.$ac_ext <<_ACEOF |
| 12010 | /* confdefs.h. */ |
| 12011 | _ACEOF |
| 12012 | cat confdefs.h >>conftest.$ac_ext |
| 12013 | cat >>conftest.$ac_ext <<_ACEOF |
| 12014 | /* end confdefs.h. */ |
| 12015 | $ac_includes_default |
| 12016 | #include <$ac_header> |
| 12017 | _ACEOF |
| 12018 | rm -f conftest.$ac_objext |
| 12019 | if { (ac_try="$ac_compile" |
| 12020 | case "(($ac_try" in |
| 12021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12022 | *) ac_try_echo=$ac_try;; |
| 12023 | esac |
| 12024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12025 | (eval "$ac_compile") 2>conftest.er1 |
| 12026 | ac_status=$? |
| 12027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12028 | rm -f conftest.er1 |
| 12029 | cat conftest.err >&5 |
| 12030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12031 | (exit $ac_status); } && |
| 12032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12033 | { (case "(($ac_try" in |
| 12034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12035 | *) ac_try_echo=$ac_try;; |
| 12036 | esac |
| 12037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12038 | (eval "$ac_try") 2>&5 |
| 12039 | ac_status=$? |
| 12040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12041 | (exit $ac_status); }; } && |
| 12042 | { ac_try='test -s conftest.$ac_objext' |
| 12043 | { (case "(($ac_try" in |
| 12044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12045 | *) ac_try_echo=$ac_try;; |
| 12046 | esac |
| 12047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12048 | (eval "$ac_try") 2>&5 |
| 12049 | ac_status=$? |
| 12050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12051 | (exit $ac_status); }; }; then |
| 12052 | ac_header_compiler=yes |
| 12053 | else |
| 12054 | echo "$as_me: failed program was:" >&5 |
| 12055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12056 | |
| 12057 | ac_header_compiler=no |
| 12058 | fi |
| 12059 | |
| 12060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12061 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12062 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12063 | |
| 12064 | # Is the header present? |
| 12065 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12066 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12067 | cat >conftest.$ac_ext <<_ACEOF |
| 12068 | /* confdefs.h. */ |
| 12069 | _ACEOF |
| 12070 | cat confdefs.h >>conftest.$ac_ext |
| 12071 | cat >>conftest.$ac_ext <<_ACEOF |
| 12072 | /* end confdefs.h. */ |
| 12073 | #include <$ac_header> |
| 12074 | _ACEOF |
| 12075 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12076 | case "(($ac_try" in |
| 12077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12078 | *) ac_try_echo=$ac_try;; |
| 12079 | esac |
| 12080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12081 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12082 | ac_status=$? |
| 12083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12084 | rm -f conftest.er1 |
| 12085 | cat conftest.err >&5 |
| 12086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12087 | (exit $ac_status); } >/dev/null; then |
| 12088 | if test -s conftest.err; then |
| 12089 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12090 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12091 | else |
| 12092 | ac_cpp_err= |
| 12093 | fi |
| 12094 | else |
| 12095 | ac_cpp_err=yes |
| 12096 | fi |
| 12097 | if test -z "$ac_cpp_err"; then |
| 12098 | ac_header_preproc=yes |
| 12099 | else |
| 12100 | echo "$as_me: failed program was:" >&5 |
| 12101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12102 | |
| 12103 | ac_header_preproc=no |
| 12104 | fi |
| 12105 | |
| 12106 | rm -f conftest.err conftest.$ac_ext |
| 12107 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12108 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12109 | |
| 12110 | # So? What about this header? |
| 12111 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12112 | yes:no: ) |
| 12113 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12114 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12115 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12116 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12117 | ac_header_preproc=yes |
| 12118 | ;; |
| 12119 | no:yes:* ) |
| 12120 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12121 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12122 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12123 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12124 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12125 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12126 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12127 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12128 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12129 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12130 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12131 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12132 | ( cat <<\_ASBOX |
| 12133 | ## ----------------------------------- ## |
| 12134 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12135 | ## ----------------------------------- ## |
| 12136 | _ASBOX |
| 12137 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12138 | ;; |
| 12139 | esac |
| 12140 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12141 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12142 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12144 | else |
| 12145 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12146 | fi |
| 12147 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12148 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12149 | echo "${ECHO_T}$ac_res" >&6; } |
| 12150 | |
| 12151 | fi |
| 12152 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12153 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12154 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12155 | _ACEOF |
| 12156 | break |
| 12157 | fi |
| 12158 | |
| 12159 | done |
| 12160 | |
| 12161 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12162 | |
| 12163 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12164 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12165 | do |
| 12166 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12167 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12168 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12169 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12171 | else |
| 12172 | cat >conftest.$ac_ext <<_ACEOF |
| 12173 | /* confdefs.h. */ |
| 12174 | _ACEOF |
| 12175 | cat confdefs.h >>conftest.$ac_ext |
| 12176 | cat >>conftest.$ac_ext <<_ACEOF |
| 12177 | /* end confdefs.h. */ |
| 12178 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12179 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12180 | #define $ac_func innocuous_$ac_func |
| 12181 | |
| 12182 | /* System header to define __stub macros and hopefully few prototypes, |
| 12183 | which can conflict with char $ac_func (); below. |
| 12184 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12185 | <limits.h> exists even on freestanding compilers. */ |
| 12186 | |
| 12187 | #ifdef __STDC__ |
| 12188 | # include <limits.h> |
| 12189 | #else |
| 12190 | # include <assert.h> |
| 12191 | #endif |
| 12192 | |
| 12193 | #undef $ac_func |
| 12194 | |
| 12195 | /* Override any GCC internal prototype to avoid an error. |
| 12196 | Use char because int might match the return type of a GCC |
| 12197 | builtin and then its argument prototype would still apply. */ |
| 12198 | #ifdef __cplusplus |
| 12199 | extern "C" |
| 12200 | #endif |
| 12201 | char $ac_func (); |
| 12202 | /* The GNU C library defines this for functions which it implements |
| 12203 | to always fail with ENOSYS. Some functions are actually named |
| 12204 | something starting with __ and the normal name is an alias. */ |
| 12205 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12206 | choke me |
| 12207 | #endif |
| 12208 | |
| 12209 | int |
| 12210 | main () |
| 12211 | { |
| 12212 | return $ac_func (); |
| 12213 | ; |
| 12214 | return 0; |
| 12215 | } |
| 12216 | _ACEOF |
| 12217 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12218 | if { (ac_try="$ac_link" |
| 12219 | case "(($ac_try" in |
| 12220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12221 | *) ac_try_echo=$ac_try;; |
| 12222 | esac |
| 12223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12224 | (eval "$ac_link") 2>conftest.er1 |
| 12225 | ac_status=$? |
| 12226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12227 | rm -f conftest.er1 |
| 12228 | cat conftest.err >&5 |
| 12229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12230 | (exit $ac_status); } && |
| 12231 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12232 | { (case "(($ac_try" in |
| 12233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12234 | *) ac_try_echo=$ac_try;; |
| 12235 | esac |
| 12236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12237 | (eval "$ac_try") 2>&5 |
| 12238 | ac_status=$? |
| 12239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12240 | (exit $ac_status); }; } && |
| 12241 | { ac_try='test -s conftest$ac_exeext' |
| 12242 | { (case "(($ac_try" in |
| 12243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12244 | *) ac_try_echo=$ac_try;; |
| 12245 | esac |
| 12246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12247 | (eval "$ac_try") 2>&5 |
| 12248 | ac_status=$? |
| 12249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12250 | (exit $ac_status); }; }; then |
| 12251 | eval "$as_ac_var=yes" |
| 12252 | else |
| 12253 | echo "$as_me: failed program was:" >&5 |
| 12254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12255 | |
| 12256 | eval "$as_ac_var=no" |
| 12257 | fi |
| 12258 | |
| 12259 | rm -f core conftest.err conftest.$ac_objext \ |
| 12260 | conftest$ac_exeext conftest.$ac_ext |
| 12261 | fi |
| 12262 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12263 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12264 | echo "${ECHO_T}$ac_res" >&6; } |
| 12265 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12266 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12267 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12268 | _ACEOF |
| 12269 | break |
| 12270 | fi |
| 12271 | done |
| 12272 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12273 | |
| 12274 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12275 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12276 | do |
| 12277 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12278 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12279 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12280 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12282 | else |
| 12283 | cat >conftest.$ac_ext <<_ACEOF |
| 12284 | /* confdefs.h. */ |
| 12285 | _ACEOF |
| 12286 | cat confdefs.h >>conftest.$ac_ext |
| 12287 | cat >>conftest.$ac_ext <<_ACEOF |
| 12288 | /* end confdefs.h. */ |
| 12289 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12290 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12291 | #define $ac_func innocuous_$ac_func |
| 12292 | |
| 12293 | /* System header to define __stub macros and hopefully few prototypes, |
| 12294 | which can conflict with char $ac_func (); below. |
| 12295 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12296 | <limits.h> exists even on freestanding compilers. */ |
| 12297 | |
| 12298 | #ifdef __STDC__ |
| 12299 | # include <limits.h> |
| 12300 | #else |
| 12301 | # include <assert.h> |
| 12302 | #endif |
| 12303 | |
| 12304 | #undef $ac_func |
| 12305 | |
| 12306 | /* Override any GCC internal prototype to avoid an error. |
| 12307 | Use char because int might match the return type of a GCC |
| 12308 | builtin and then its argument prototype would still apply. */ |
| 12309 | #ifdef __cplusplus |
| 12310 | extern "C" |
| 12311 | #endif |
| 12312 | char $ac_func (); |
| 12313 | /* The GNU C library defines this for functions which it implements |
| 12314 | to always fail with ENOSYS. Some functions are actually named |
| 12315 | something starting with __ and the normal name is an alias. */ |
| 12316 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12317 | choke me |
| 12318 | #endif |
| 12319 | |
| 12320 | int |
| 12321 | main () |
| 12322 | { |
| 12323 | return $ac_func (); |
| 12324 | ; |
| 12325 | return 0; |
| 12326 | } |
| 12327 | _ACEOF |
| 12328 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12329 | if { (ac_try="$ac_link" |
| 12330 | case "(($ac_try" in |
| 12331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12332 | *) ac_try_echo=$ac_try;; |
| 12333 | esac |
| 12334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12335 | (eval "$ac_link") 2>conftest.er1 |
| 12336 | ac_status=$? |
| 12337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12338 | rm -f conftest.er1 |
| 12339 | cat conftest.err >&5 |
| 12340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12341 | (exit $ac_status); } && |
| 12342 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12343 | { (case "(($ac_try" in |
| 12344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12345 | *) ac_try_echo=$ac_try;; |
| 12346 | esac |
| 12347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12348 | (eval "$ac_try") 2>&5 |
| 12349 | ac_status=$? |
| 12350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12351 | (exit $ac_status); }; } && |
| 12352 | { ac_try='test -s conftest$ac_exeext' |
| 12353 | { (case "(($ac_try" in |
| 12354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12355 | *) ac_try_echo=$ac_try;; |
| 12356 | esac |
| 12357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12358 | (eval "$ac_try") 2>&5 |
| 12359 | ac_status=$? |
| 12360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12361 | (exit $ac_status); }; }; then |
| 12362 | eval "$as_ac_var=yes" |
| 12363 | else |
| 12364 | echo "$as_me: failed program was:" >&5 |
| 12365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12366 | |
| 12367 | eval "$as_ac_var=no" |
| 12368 | fi |
| 12369 | |
| 12370 | rm -f core conftest.err conftest.$ac_objext \ |
| 12371 | conftest$ac_exeext conftest.$ac_ext |
| 12372 | fi |
| 12373 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12374 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12375 | echo "${ECHO_T}$ac_res" >&6; } |
| 12376 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12377 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12378 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12379 | _ACEOF |
| 12380 | break |
| 12381 | fi |
| 12382 | done |
| 12383 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12384 | |
| 12385 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12386 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12387 | do |
| 12388 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12389 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12390 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12391 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12393 | else |
| 12394 | cat >conftest.$ac_ext <<_ACEOF |
| 12395 | /* confdefs.h. */ |
| 12396 | _ACEOF |
| 12397 | cat confdefs.h >>conftest.$ac_ext |
| 12398 | cat >>conftest.$ac_ext <<_ACEOF |
| 12399 | /* end confdefs.h. */ |
| 12400 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12401 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12402 | #define $ac_func innocuous_$ac_func |
| 12403 | |
| 12404 | /* System header to define __stub macros and hopefully few prototypes, |
| 12405 | which can conflict with char $ac_func (); below. |
| 12406 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12407 | <limits.h> exists even on freestanding compilers. */ |
| 12408 | |
| 12409 | #ifdef __STDC__ |
| 12410 | # include <limits.h> |
| 12411 | #else |
| 12412 | # include <assert.h> |
| 12413 | #endif |
| 12414 | |
| 12415 | #undef $ac_func |
| 12416 | |
| 12417 | /* Override any GCC internal prototype to avoid an error. |
| 12418 | Use char because int might match the return type of a GCC |
| 12419 | builtin and then its argument prototype would still apply. */ |
| 12420 | #ifdef __cplusplus |
| 12421 | extern "C" |
| 12422 | #endif |
| 12423 | char $ac_func (); |
| 12424 | /* The GNU C library defines this for functions which it implements |
| 12425 | to always fail with ENOSYS. Some functions are actually named |
| 12426 | something starting with __ and the normal name is an alias. */ |
| 12427 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12428 | choke me |
| 12429 | #endif |
| 12430 | |
| 12431 | int |
| 12432 | main () |
| 12433 | { |
| 12434 | return $ac_func (); |
| 12435 | ; |
| 12436 | return 0; |
| 12437 | } |
| 12438 | _ACEOF |
| 12439 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12440 | if { (ac_try="$ac_link" |
| 12441 | case "(($ac_try" in |
| 12442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12443 | *) ac_try_echo=$ac_try;; |
| 12444 | esac |
| 12445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12446 | (eval "$ac_link") 2>conftest.er1 |
| 12447 | ac_status=$? |
| 12448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12449 | rm -f conftest.er1 |
| 12450 | cat conftest.err >&5 |
| 12451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12452 | (exit $ac_status); } && |
| 12453 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12454 | { (case "(($ac_try" in |
| 12455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12456 | *) ac_try_echo=$ac_try;; |
| 12457 | esac |
| 12458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12459 | (eval "$ac_try") 2>&5 |
| 12460 | ac_status=$? |
| 12461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12462 | (exit $ac_status); }; } && |
| 12463 | { ac_try='test -s conftest$ac_exeext' |
| 12464 | { (case "(($ac_try" in |
| 12465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12466 | *) ac_try_echo=$ac_try;; |
| 12467 | esac |
| 12468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12469 | (eval "$ac_try") 2>&5 |
| 12470 | ac_status=$? |
| 12471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12472 | (exit $ac_status); }; }; then |
| 12473 | eval "$as_ac_var=yes" |
| 12474 | else |
| 12475 | echo "$as_me: failed program was:" >&5 |
| 12476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12477 | |
| 12478 | eval "$as_ac_var=no" |
| 12479 | fi |
| 12480 | |
| 12481 | rm -f core conftest.err conftest.$ac_objext \ |
| 12482 | conftest$ac_exeext conftest.$ac_ext |
| 12483 | fi |
| 12484 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12485 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12486 | echo "${ECHO_T}$ac_res" >&6; } |
| 12487 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12488 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12489 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12490 | _ACEOF |
| 12491 | break |
| 12492 | fi |
| 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_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12498 | do |
| 12499 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12500 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12501 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12502 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12504 | else |
| 12505 | cat >conftest.$ac_ext <<_ACEOF |
| 12506 | /* confdefs.h. */ |
| 12507 | _ACEOF |
| 12508 | cat confdefs.h >>conftest.$ac_ext |
| 12509 | cat >>conftest.$ac_ext <<_ACEOF |
| 12510 | /* end confdefs.h. */ |
| 12511 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12512 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12513 | #define $ac_func innocuous_$ac_func |
| 12514 | |
| 12515 | /* System header to define __stub macros and hopefully few prototypes, |
| 12516 | which can conflict with char $ac_func (); below. |
| 12517 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12518 | <limits.h> exists even on freestanding compilers. */ |
| 12519 | |
| 12520 | #ifdef __STDC__ |
| 12521 | # include <limits.h> |
| 12522 | #else |
| 12523 | # include <assert.h> |
| 12524 | #endif |
| 12525 | |
| 12526 | #undef $ac_func |
| 12527 | |
| 12528 | /* Override any GCC internal prototype to avoid an error. |
| 12529 | Use char because int might match the return type of a GCC |
| 12530 | builtin and then its argument prototype would still apply. */ |
| 12531 | #ifdef __cplusplus |
| 12532 | extern "C" |
| 12533 | #endif |
| 12534 | char $ac_func (); |
| 12535 | /* The GNU C library defines this for functions which it implements |
| 12536 | to always fail with ENOSYS. Some functions are actually named |
| 12537 | something starting with __ and the normal name is an alias. */ |
| 12538 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12539 | choke me |
| 12540 | #endif |
| 12541 | |
| 12542 | int |
| 12543 | main () |
| 12544 | { |
| 12545 | return $ac_func (); |
| 12546 | ; |
| 12547 | return 0; |
| 12548 | } |
| 12549 | _ACEOF |
| 12550 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12551 | if { (ac_try="$ac_link" |
| 12552 | case "(($ac_try" in |
| 12553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12554 | *) ac_try_echo=$ac_try;; |
| 12555 | esac |
| 12556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12557 | (eval "$ac_link") 2>conftest.er1 |
| 12558 | ac_status=$? |
| 12559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12560 | rm -f conftest.er1 |
| 12561 | cat conftest.err >&5 |
| 12562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12563 | (exit $ac_status); } && |
| 12564 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12565 | { (case "(($ac_try" in |
| 12566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12567 | *) ac_try_echo=$ac_try;; |
| 12568 | esac |
| 12569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12570 | (eval "$ac_try") 2>&5 |
| 12571 | ac_status=$? |
| 12572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12573 | (exit $ac_status); }; } && |
| 12574 | { ac_try='test -s conftest$ac_exeext' |
| 12575 | { (case "(($ac_try" in |
| 12576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12577 | *) ac_try_echo=$ac_try;; |
| 12578 | esac |
| 12579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12580 | (eval "$ac_try") 2>&5 |
| 12581 | ac_status=$? |
| 12582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12583 | (exit $ac_status); }; }; then |
| 12584 | eval "$as_ac_var=yes" |
| 12585 | else |
| 12586 | echo "$as_me: failed program was:" >&5 |
| 12587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12588 | |
| 12589 | eval "$as_ac_var=no" |
| 12590 | fi |
| 12591 | |
| 12592 | rm -f core conftest.err conftest.$ac_objext \ |
| 12593 | conftest$ac_exeext conftest.$ac_ext |
| 12594 | fi |
| 12595 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12596 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12597 | echo "${ECHO_T}$ac_res" >&6; } |
| 12598 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12599 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12600 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12601 | _ACEOF |
| 12602 | |
| 12603 | fi |
| 12604 | done |
| 12605 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12606 | |
| 12607 | |
| 12608 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12609 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12610 | do |
| 12611 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12612 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12613 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12614 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12616 | else |
| 12617 | cat >conftest.$ac_ext <<_ACEOF |
| 12618 | /* confdefs.h. */ |
| 12619 | _ACEOF |
| 12620 | cat confdefs.h >>conftest.$ac_ext |
| 12621 | cat >>conftest.$ac_ext <<_ACEOF |
| 12622 | /* end confdefs.h. */ |
| 12623 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12624 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12625 | #define $ac_func innocuous_$ac_func |
| 12626 | |
| 12627 | /* System header to define __stub macros and hopefully few prototypes, |
| 12628 | which can conflict with char $ac_func (); below. |
| 12629 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12630 | <limits.h> exists even on freestanding compilers. */ |
| 12631 | |
| 12632 | #ifdef __STDC__ |
| 12633 | # include <limits.h> |
| 12634 | #else |
| 12635 | # include <assert.h> |
| 12636 | #endif |
| 12637 | |
| 12638 | #undef $ac_func |
| 12639 | |
| 12640 | /* Override any GCC internal prototype to avoid an error. |
| 12641 | Use char because int might match the return type of a GCC |
| 12642 | builtin and then its argument prototype would still apply. */ |
| 12643 | #ifdef __cplusplus |
| 12644 | extern "C" |
| 12645 | #endif |
| 12646 | char $ac_func (); |
| 12647 | /* The GNU C library defines this for functions which it implements |
| 12648 | to always fail with ENOSYS. Some functions are actually named |
| 12649 | something starting with __ and the normal name is an alias. */ |
| 12650 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12651 | choke me |
| 12652 | #endif |
| 12653 | |
| 12654 | int |
| 12655 | main () |
| 12656 | { |
| 12657 | return $ac_func (); |
| 12658 | ; |
| 12659 | return 0; |
| 12660 | } |
| 12661 | _ACEOF |
| 12662 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12663 | if { (ac_try="$ac_link" |
| 12664 | case "(($ac_try" in |
| 12665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12666 | *) ac_try_echo=$ac_try;; |
| 12667 | esac |
| 12668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12669 | (eval "$ac_link") 2>conftest.er1 |
| 12670 | ac_status=$? |
| 12671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12672 | rm -f conftest.er1 |
| 12673 | cat conftest.err >&5 |
| 12674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12675 | (exit $ac_status); } && |
| 12676 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12677 | { (case "(($ac_try" in |
| 12678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12679 | *) ac_try_echo=$ac_try;; |
| 12680 | esac |
| 12681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12682 | (eval "$ac_try") 2>&5 |
| 12683 | ac_status=$? |
| 12684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12685 | (exit $ac_status); }; } && |
| 12686 | { ac_try='test -s conftest$ac_exeext' |
| 12687 | { (case "(($ac_try" in |
| 12688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12689 | *) ac_try_echo=$ac_try;; |
| 12690 | esac |
| 12691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12692 | (eval "$ac_try") 2>&5 |
| 12693 | ac_status=$? |
| 12694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12695 | (exit $ac_status); }; }; then |
| 12696 | eval "$as_ac_var=yes" |
| 12697 | else |
| 12698 | echo "$as_me: failed program was:" >&5 |
| 12699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12700 | |
| 12701 | eval "$as_ac_var=no" |
| 12702 | fi |
| 12703 | |
| 12704 | rm -f core conftest.err conftest.$ac_objext \ |
| 12705 | conftest$ac_exeext conftest.$ac_ext |
| 12706 | fi |
| 12707 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12708 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12709 | echo "${ECHO_T}$ac_res" >&6; } |
| 12710 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12711 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12712 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12713 | _ACEOF |
| 12714 | |
| 12715 | fi |
| 12716 | done |
| 12717 | |
| 12718 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 12719 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 12720 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 12721 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 12722 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12723 | LLVMGCCCOMMAND="$LLVMGCC" |
| 12724 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12725 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 12726 | |
| 12727 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 12728 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 12729 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 12730 | set dummy $LLVMGCC; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12731 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12732 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 12733 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 12734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12735 | else |
| 12736 | case $LLVMGCC in |
| 12737 | [\\/]* | ?:[\\/]*) |
| 12738 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 12739 | ;; |
| 12740 | *) |
| 12741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12742 | for as_dir in $PATH |
| 12743 | do |
| 12744 | IFS=$as_save_IFS |
| 12745 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12746 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12747 | 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] | 12748 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12749 | 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] | 12750 | break 2 |
| 12751 | fi |
| 12752 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12753 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12754 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12755 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12756 | ;; |
| 12757 | esac |
| 12758 | fi |
| 12759 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12760 | if test -n "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12761 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 12762 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12763 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12764 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12765 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12766 | fi |
| 12767 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12768 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 12769 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 12770 | set dummy $LLVMGXX; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12771 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12772 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 12773 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 12774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12775 | else |
| 12776 | case $LLVMGXX in |
| 12777 | [\\/]* | ?:[\\/]*) |
| 12778 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 12779 | ;; |
| 12780 | *) |
| 12781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12782 | for as_dir in $PATH |
| 12783 | do |
| 12784 | IFS=$as_save_IFS |
| 12785 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12786 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12787 | 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] | 12788 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12789 | 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] | 12790 | break 2 |
| 12791 | fi |
| 12792 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12793 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12794 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12795 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12796 | ;; |
| 12797 | esac |
| 12798 | fi |
| 12799 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12800 | if test -n "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12801 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 12802 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12803 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12804 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12805 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12806 | fi |
| 12807 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12808 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12809 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 12810 | if test -z "$LLVMGCC"; then |
| 12811 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12812 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 12813 | fi |
| 12814 | if test -z "$LLVMGXX"; then |
| 12815 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12816 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 12817 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12818 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12819 | LLVMGCC=$LLVMGCC |
| 12820 | |
| 12821 | LLVMGXX=$LLVMGXX |
| 12822 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12823 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 12824 | |
| 12825 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 12826 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12827 | fi |
| 12828 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12829 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12830 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 12831 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12832 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12833 | ICC=no |
| 12834 | IXX=no |
| 12835 | case $CC in |
| 12836 | icc*|icpc*) |
| 12837 | ICC=yes |
| 12838 | IXX=yes |
| 12839 | ;; |
| 12840 | *) |
| 12841 | ;; |
| 12842 | esac |
| 12843 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12844 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 12845 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12846 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 12847 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 12848 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12849 | fi |
| 12850 | |
| 12851 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 12852 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12853 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 12854 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 12855 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12856 | fi |
| 12857 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12858 | if test "$GCC" = "yes" |
| 12859 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12860 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12861 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 12862 | #error Unsupported GCC version |
| 12863 | #endif |
| 12864 | |
| 12865 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12866 | rm -f conftest.$ac_objext |
| 12867 | if { (ac_try="$ac_compile" |
| 12868 | case "(($ac_try" in |
| 12869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12870 | *) ac_try_echo=$ac_try;; |
| 12871 | esac |
| 12872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12873 | (eval "$ac_compile") 2>conftest.er1 |
| 12874 | ac_status=$? |
| 12875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12876 | rm -f conftest.er1 |
| 12877 | cat conftest.err >&5 |
| 12878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12879 | (exit $ac_status); } && |
| 12880 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12881 | { (case "(($ac_try" in |
| 12882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12883 | *) ac_try_echo=$ac_try;; |
| 12884 | esac |
| 12885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12886 | (eval "$ac_try") 2>&5 |
| 12887 | ac_status=$? |
| 12888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12889 | (exit $ac_status); }; } && |
| 12890 | { ac_try='test -s conftest.$ac_objext' |
| 12891 | { (case "(($ac_try" in |
| 12892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12893 | *) ac_try_echo=$ac_try;; |
| 12894 | esac |
| 12895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12896 | (eval "$ac_try") 2>&5 |
| 12897 | ac_status=$? |
| 12898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12899 | (exit $ac_status); }; }; then |
| 12900 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12901 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12902 | echo "$as_me: failed program was:" >&5 |
| 12903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12904 | |
| 12905 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 12906 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 12907 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12908 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12909 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12911 | fi |
| 12912 | |
| 12913 | if test -z "$llvm_cv_gnu_make_command" |
| 12914 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12915 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 12916 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 12917 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12918 | fi |
| 12919 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12920 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 12921 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12922 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12923 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 12924 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12925 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 12926 | |
| 12927 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 12928 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12929 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 12930 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12931 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 12932 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12933 | |
| 12934 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 12935 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 12936 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 12937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12938 | else |
| 12939 | ac_check_lib_save_LIBS=$LIBS |
| 12940 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12941 | cat >conftest.$ac_ext <<_ACEOF |
| 12942 | /* confdefs.h. */ |
| 12943 | _ACEOF |
| 12944 | cat confdefs.h >>conftest.$ac_ext |
| 12945 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12946 | /* end confdefs.h. */ |
| 12947 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12948 | /* Override any GCC internal prototype to avoid an error. |
| 12949 | Use char because int might match the return type of a GCC |
| 12950 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12951 | #ifdef __cplusplus |
| 12952 | extern "C" |
| 12953 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12954 | char sin (); |
| 12955 | int |
| 12956 | main () |
| 12957 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12958 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12959 | ; |
| 12960 | return 0; |
| 12961 | } |
| 12962 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12963 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12964 | if { (ac_try="$ac_link" |
| 12965 | case "(($ac_try" in |
| 12966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12967 | *) ac_try_echo=$ac_try;; |
| 12968 | esac |
| 12969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12970 | (eval "$ac_link") 2>conftest.er1 |
| 12971 | ac_status=$? |
| 12972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12973 | rm -f conftest.er1 |
| 12974 | cat conftest.err >&5 |
| 12975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12976 | (exit $ac_status); } && |
| 12977 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12978 | { (case "(($ac_try" in |
| 12979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12980 | *) ac_try_echo=$ac_try;; |
| 12981 | esac |
| 12982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12983 | (eval "$ac_try") 2>&5 |
| 12984 | ac_status=$? |
| 12985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12986 | (exit $ac_status); }; } && |
| 12987 | { ac_try='test -s conftest$ac_exeext' |
| 12988 | { (case "(($ac_try" in |
| 12989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12990 | *) ac_try_echo=$ac_try;; |
| 12991 | esac |
| 12992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12993 | (eval "$ac_try") 2>&5 |
| 12994 | ac_status=$? |
| 12995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12996 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12997 | ac_cv_lib_m_sin=yes |
| 12998 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12999 | echo "$as_me: failed program was:" >&5 |
| 13000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13001 | |
| 13002 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13003 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13004 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13005 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13006 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13007 | LIBS=$ac_check_lib_save_LIBS |
| 13008 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13009 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 13010 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 13011 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13012 | cat >>confdefs.h <<_ACEOF |
| 13013 | #define HAVE_LIBM 1 |
| 13014 | _ACEOF |
| 13015 | |
| 13016 | LIBS="-lm $LIBS" |
| 13017 | |
| 13018 | fi |
| 13019 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 13020 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13021 | |
| 13022 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 13023 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 13024 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 13025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13026 | else |
| 13027 | ac_check_lib_save_LIBS=$LIBS |
| 13028 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13029 | cat >conftest.$ac_ext <<_ACEOF |
| 13030 | /* confdefs.h. */ |
| 13031 | _ACEOF |
| 13032 | cat confdefs.h >>conftest.$ac_ext |
| 13033 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13034 | /* end confdefs.h. */ |
| 13035 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13036 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13037 | int |
| 13038 | main () |
| 13039 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13040 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13041 | ; |
| 13042 | return 0; |
| 13043 | } |
| 13044 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13045 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13046 | if { (ac_try="$ac_link" |
| 13047 | case "(($ac_try" in |
| 13048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13049 | *) ac_try_echo=$ac_try;; |
| 13050 | esac |
| 13051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13052 | (eval "$ac_link") 2>conftest.er1 |
| 13053 | ac_status=$? |
| 13054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13055 | rm -f conftest.er1 |
| 13056 | cat conftest.err >&5 |
| 13057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13058 | (exit $ac_status); } && |
| 13059 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13060 | { (case "(($ac_try" in |
| 13061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13062 | *) ac_try_echo=$ac_try;; |
| 13063 | esac |
| 13064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13065 | (eval "$ac_try") 2>&5 |
| 13066 | ac_status=$? |
| 13067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13068 | (exit $ac_status); }; } && |
| 13069 | { ac_try='test -s conftest$ac_exeext' |
| 13070 | { (case "(($ac_try" in |
| 13071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13072 | *) ac_try_echo=$ac_try;; |
| 13073 | esac |
| 13074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13075 | (eval "$ac_try") 2>&5 |
| 13076 | ac_status=$? |
| 13077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13078 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13079 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13080 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13081 | echo "$as_me: failed program was:" >&5 |
| 13082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13083 | |
| 13084 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13085 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13086 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13087 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13088 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13089 | LIBS=$ac_check_lib_save_LIBS |
| 13090 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13091 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 13092 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 13093 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13094 | cat >>confdefs.h <<_ACEOF |
| 13095 | #define HAVE_LIBIMAGEHLP 1 |
| 13096 | _ACEOF |
| 13097 | |
| 13098 | LIBS="-limagehlp $LIBS" |
| 13099 | |
| 13100 | fi |
| 13101 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13102 | |
| 13103 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 13104 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 13105 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 13106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13107 | else |
| 13108 | ac_check_lib_save_LIBS=$LIBS |
| 13109 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13110 | cat >conftest.$ac_ext <<_ACEOF |
| 13111 | /* confdefs.h. */ |
| 13112 | _ACEOF |
| 13113 | cat confdefs.h >>conftest.$ac_ext |
| 13114 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13115 | /* end confdefs.h. */ |
| 13116 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13117 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13118 | int |
| 13119 | main () |
| 13120 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13121 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13122 | ; |
| 13123 | return 0; |
| 13124 | } |
| 13125 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13126 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13127 | if { (ac_try="$ac_link" |
| 13128 | case "(($ac_try" in |
| 13129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13130 | *) ac_try_echo=$ac_try;; |
| 13131 | esac |
| 13132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13133 | (eval "$ac_link") 2>conftest.er1 |
| 13134 | ac_status=$? |
| 13135 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13136 | rm -f conftest.er1 |
| 13137 | cat conftest.err >&5 |
| 13138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13139 | (exit $ac_status); } && |
| 13140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13141 | { (case "(($ac_try" in |
| 13142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13143 | *) ac_try_echo=$ac_try;; |
| 13144 | esac |
| 13145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13146 | (eval "$ac_try") 2>&5 |
| 13147 | ac_status=$? |
| 13148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13149 | (exit $ac_status); }; } && |
| 13150 | { ac_try='test -s conftest$ac_exeext' |
| 13151 | { (case "(($ac_try" in |
| 13152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13153 | *) ac_try_echo=$ac_try;; |
| 13154 | esac |
| 13155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13156 | (eval "$ac_try") 2>&5 |
| 13157 | ac_status=$? |
| 13158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13159 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13160 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13161 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13162 | echo "$as_me: failed program was:" >&5 |
| 13163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13164 | |
| 13165 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13166 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13167 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13168 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13169 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13170 | LIBS=$ac_check_lib_save_LIBS |
| 13171 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13172 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 13173 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 13174 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13175 | cat >>confdefs.h <<_ACEOF |
| 13176 | #define HAVE_LIBPSAPI 1 |
| 13177 | _ACEOF |
| 13178 | |
| 13179 | LIBS="-lpsapi $LIBS" |
| 13180 | |
| 13181 | fi |
| 13182 | |
| 13183 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13184 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13185 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 13186 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 13187 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13189 | else |
| 13190 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13191 | cat >conftest.$ac_ext <<_ACEOF |
| 13192 | /* confdefs.h. */ |
| 13193 | _ACEOF |
| 13194 | cat confdefs.h >>conftest.$ac_ext |
| 13195 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13196 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13197 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13198 | /* Override any GCC internal prototype to avoid an error. |
| 13199 | Use char because int might match the return type of a GCC |
| 13200 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13201 | #ifdef __cplusplus |
| 13202 | extern "C" |
| 13203 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13204 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13205 | int |
| 13206 | main () |
| 13207 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13208 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13209 | ; |
| 13210 | return 0; |
| 13211 | } |
| 13212 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13213 | for ac_lib in '' dl; do |
| 13214 | if test -z "$ac_lib"; then |
| 13215 | ac_res="none required" |
| 13216 | else |
| 13217 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13218 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13219 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13220 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13221 | if { (ac_try="$ac_link" |
| 13222 | case "(($ac_try" in |
| 13223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13224 | *) ac_try_echo=$ac_try;; |
| 13225 | esac |
| 13226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13227 | (eval "$ac_link") 2>conftest.er1 |
| 13228 | ac_status=$? |
| 13229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13230 | rm -f conftest.er1 |
| 13231 | cat conftest.err >&5 |
| 13232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13233 | (exit $ac_status); } && |
| 13234 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13235 | { (case "(($ac_try" in |
| 13236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13237 | *) ac_try_echo=$ac_try;; |
| 13238 | esac |
| 13239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13240 | (eval "$ac_try") 2>&5 |
| 13241 | ac_status=$? |
| 13242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13243 | (exit $ac_status); }; } && |
| 13244 | { ac_try='test -s conftest$ac_exeext' |
| 13245 | { (case "(($ac_try" in |
| 13246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13247 | *) ac_try_echo=$ac_try;; |
| 13248 | esac |
| 13249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13250 | (eval "$ac_try") 2>&5 |
| 13251 | ac_status=$? |
| 13252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13253 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13254 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13255 | else |
| 13256 | echo "$as_me: failed program was:" >&5 |
| 13257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13258 | |
| 13259 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13260 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13261 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13262 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13263 | conftest$ac_exeext |
| 13264 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13265 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13266 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13267 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13268 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13269 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13270 | else |
| 13271 | ac_cv_search_dlopen=no |
| 13272 | fi |
| 13273 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13274 | LIBS=$ac_func_search_save_LIBS |
| 13275 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13276 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 13277 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13278 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13279 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13280 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13281 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13282 | cat >>confdefs.h <<\_ACEOF |
| 13283 | #define HAVE_DLOPEN 1 |
| 13284 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13285 | |
| 13286 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13287 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 13288 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13289 | fi |
| 13290 | |
| 13291 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13292 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13293 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 13294 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 13295 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13297 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13298 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13299 | cat >conftest.$ac_ext <<_ACEOF |
| 13300 | /* confdefs.h. */ |
| 13301 | _ACEOF |
| 13302 | cat confdefs.h >>conftest.$ac_ext |
| 13303 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13304 | /* end confdefs.h. */ |
| 13305 | |
| 13306 | /* Override any GCC internal prototype to avoid an error. |
| 13307 | Use char because int might match the return type of a GCC |
| 13308 | builtin and then its argument prototype would still apply. */ |
| 13309 | #ifdef __cplusplus |
| 13310 | extern "C" |
| 13311 | #endif |
| 13312 | char ffi_call (); |
| 13313 | int |
| 13314 | main () |
| 13315 | { |
| 13316 | return ffi_call (); |
| 13317 | ; |
| 13318 | return 0; |
| 13319 | } |
| 13320 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13321 | for ac_lib in '' ffi; do |
| 13322 | if test -z "$ac_lib"; then |
| 13323 | ac_res="none required" |
| 13324 | else |
| 13325 | ac_res=-l$ac_lib |
| 13326 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13327 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13328 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13329 | if { (ac_try="$ac_link" |
| 13330 | case "(($ac_try" in |
| 13331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13332 | *) ac_try_echo=$ac_try;; |
| 13333 | esac |
| 13334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13335 | (eval "$ac_link") 2>conftest.er1 |
| 13336 | ac_status=$? |
| 13337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13338 | rm -f conftest.er1 |
| 13339 | cat conftest.err >&5 |
| 13340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13341 | (exit $ac_status); } && |
| 13342 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13343 | { (case "(($ac_try" in |
| 13344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13345 | *) ac_try_echo=$ac_try;; |
| 13346 | esac |
| 13347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13348 | (eval "$ac_try") 2>&5 |
| 13349 | ac_status=$? |
| 13350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13351 | (exit $ac_status); }; } && |
| 13352 | { ac_try='test -s conftest$ac_exeext' |
| 13353 | { (case "(($ac_try" in |
| 13354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13355 | *) ac_try_echo=$ac_try;; |
| 13356 | esac |
| 13357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13358 | (eval "$ac_try") 2>&5 |
| 13359 | ac_status=$? |
| 13360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13361 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13362 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13363 | else |
| 13364 | echo "$as_me: failed program was:" >&5 |
| 13365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13366 | |
| 13367 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13368 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13369 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13370 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13371 | conftest$ac_exeext |
| 13372 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13373 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13374 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13375 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13376 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13377 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13378 | else |
| 13379 | ac_cv_search_ffi_call=no |
| 13380 | fi |
| 13381 | rm conftest.$ac_ext |
| 13382 | LIBS=$ac_func_search_save_LIBS |
| 13383 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13384 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 13385 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13386 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13387 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13388 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13389 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13390 | cat >>confdefs.h <<\_ACEOF |
| 13391 | #define HAVE_FFI_CALL 1 |
| 13392 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13393 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13394 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 13395 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 13396 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 13397 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13398 | fi |
| 13399 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13400 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13401 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13402 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 13403 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 13404 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13406 | else |
| 13407 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13408 | cat >conftest.$ac_ext <<_ACEOF |
| 13409 | /* confdefs.h. */ |
| 13410 | _ACEOF |
| 13411 | cat confdefs.h >>conftest.$ac_ext |
| 13412 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13413 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13414 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13415 | /* Override any GCC internal prototype to avoid an error. |
| 13416 | Use char because int might match the return type of a GCC |
| 13417 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13418 | #ifdef __cplusplus |
| 13419 | extern "C" |
| 13420 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13421 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13422 | int |
| 13423 | main () |
| 13424 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13425 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13426 | ; |
| 13427 | return 0; |
| 13428 | } |
| 13429 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13430 | for ac_lib in '' malloc; do |
| 13431 | if test -z "$ac_lib"; then |
| 13432 | ac_res="none required" |
| 13433 | else |
| 13434 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13435 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13436 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13437 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13438 | if { (ac_try="$ac_link" |
| 13439 | case "(($ac_try" in |
| 13440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13441 | *) ac_try_echo=$ac_try;; |
| 13442 | esac |
| 13443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13444 | (eval "$ac_link") 2>conftest.er1 |
| 13445 | ac_status=$? |
| 13446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13447 | rm -f conftest.er1 |
| 13448 | cat conftest.err >&5 |
| 13449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13450 | (exit $ac_status); } && |
| 13451 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13452 | { (case "(($ac_try" in |
| 13453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13454 | *) ac_try_echo=$ac_try;; |
| 13455 | esac |
| 13456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13457 | (eval "$ac_try") 2>&5 |
| 13458 | ac_status=$? |
| 13459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13460 | (exit $ac_status); }; } && |
| 13461 | { ac_try='test -s conftest$ac_exeext' |
| 13462 | { (case "(($ac_try" in |
| 13463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13464 | *) ac_try_echo=$ac_try;; |
| 13465 | esac |
| 13466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13467 | (eval "$ac_try") 2>&5 |
| 13468 | ac_status=$? |
| 13469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13470 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13471 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13472 | else |
| 13473 | echo "$as_me: failed program was:" >&5 |
| 13474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13475 | |
| 13476 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13477 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13478 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13479 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13480 | conftest$ac_exeext |
| 13481 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13482 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13483 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13484 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13485 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13486 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13487 | else |
| 13488 | ac_cv_search_mallinfo=no |
| 13489 | fi |
| 13490 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13491 | LIBS=$ac_func_search_save_LIBS |
| 13492 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13493 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 13494 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13495 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13496 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13497 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13498 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13499 | cat >>confdefs.h <<\_ACEOF |
| 13500 | #define HAVE_MALLINFO 1 |
| 13501 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13502 | |
| 13503 | fi |
| 13504 | |
| 13505 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13506 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13507 | |
| 13508 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 13509 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 13510 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 13511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13512 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13513 | ac_check_lib_save_LIBS=$LIBS |
| 13514 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13515 | cat >conftest.$ac_ext <<_ACEOF |
| 13516 | /* confdefs.h. */ |
| 13517 | _ACEOF |
| 13518 | cat confdefs.h >>conftest.$ac_ext |
| 13519 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13520 | /* end confdefs.h. */ |
| 13521 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13522 | /* Override any GCC internal prototype to avoid an error. |
| 13523 | Use char because int might match the return type of a GCC |
| 13524 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13525 | #ifdef __cplusplus |
| 13526 | extern "C" |
| 13527 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13528 | char pthread_mutex_init (); |
| 13529 | int |
| 13530 | main () |
| 13531 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13532 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13533 | ; |
| 13534 | return 0; |
| 13535 | } |
| 13536 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13537 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13538 | if { (ac_try="$ac_link" |
| 13539 | case "(($ac_try" in |
| 13540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13541 | *) ac_try_echo=$ac_try;; |
| 13542 | esac |
| 13543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13544 | (eval "$ac_link") 2>conftest.er1 |
| 13545 | ac_status=$? |
| 13546 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13547 | rm -f conftest.er1 |
| 13548 | cat conftest.err >&5 |
| 13549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13550 | (exit $ac_status); } && |
| 13551 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13552 | { (case "(($ac_try" in |
| 13553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13554 | *) ac_try_echo=$ac_try;; |
| 13555 | esac |
| 13556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13557 | (eval "$ac_try") 2>&5 |
| 13558 | ac_status=$? |
| 13559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13560 | (exit $ac_status); }; } && |
| 13561 | { ac_try='test -s conftest$ac_exeext' |
| 13562 | { (case "(($ac_try" in |
| 13563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13564 | *) ac_try_echo=$ac_try;; |
| 13565 | esac |
| 13566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13567 | (eval "$ac_try") 2>&5 |
| 13568 | ac_status=$? |
| 13569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13570 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13571 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13572 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13573 | echo "$as_me: failed program was:" >&5 |
| 13574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13575 | |
| 13576 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13577 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13578 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13579 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13580 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13581 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13582 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13583 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 13584 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 13585 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13586 | cat >>confdefs.h <<_ACEOF |
| 13587 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 13588 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13589 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13590 | LIBS="-lpthread $LIBS" |
| 13591 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13592 | fi |
| 13593 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13594 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 13595 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 13596 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13598 | else |
| 13599 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13600 | cat >conftest.$ac_ext <<_ACEOF |
| 13601 | /* confdefs.h. */ |
| 13602 | _ACEOF |
| 13603 | cat confdefs.h >>conftest.$ac_ext |
| 13604 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13605 | /* end confdefs.h. */ |
| 13606 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13607 | /* Override any GCC internal prototype to avoid an error. |
| 13608 | Use char because int might match the return type of a GCC |
| 13609 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13610 | #ifdef __cplusplus |
| 13611 | extern "C" |
| 13612 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13613 | char pthread_mutex_lock (); |
| 13614 | int |
| 13615 | main () |
| 13616 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13617 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13618 | ; |
| 13619 | return 0; |
| 13620 | } |
| 13621 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13622 | for ac_lib in '' pthread; do |
| 13623 | if test -z "$ac_lib"; then |
| 13624 | ac_res="none required" |
| 13625 | else |
| 13626 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13627 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13628 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13629 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13630 | if { (ac_try="$ac_link" |
| 13631 | case "(($ac_try" in |
| 13632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13633 | *) ac_try_echo=$ac_try;; |
| 13634 | esac |
| 13635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13636 | (eval "$ac_link") 2>conftest.er1 |
| 13637 | ac_status=$? |
| 13638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13639 | rm -f conftest.er1 |
| 13640 | cat conftest.err >&5 |
| 13641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13642 | (exit $ac_status); } && |
| 13643 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13644 | { (case "(($ac_try" in |
| 13645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13646 | *) ac_try_echo=$ac_try;; |
| 13647 | esac |
| 13648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13649 | (eval "$ac_try") 2>&5 |
| 13650 | ac_status=$? |
| 13651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13652 | (exit $ac_status); }; } && |
| 13653 | { ac_try='test -s conftest$ac_exeext' |
| 13654 | { (case "(($ac_try" in |
| 13655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13656 | *) ac_try_echo=$ac_try;; |
| 13657 | esac |
| 13658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13659 | (eval "$ac_try") 2>&5 |
| 13660 | ac_status=$? |
| 13661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13662 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13663 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13664 | else |
| 13665 | echo "$as_me: failed program was:" >&5 |
| 13666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13667 | |
| 13668 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13669 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13670 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13671 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13672 | conftest$ac_exeext |
| 13673 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13674 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13675 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13676 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13677 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13678 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13679 | else |
| 13680 | ac_cv_search_pthread_mutex_lock=no |
| 13681 | fi |
| 13682 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13683 | LIBS=$ac_func_search_save_LIBS |
| 13684 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13685 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 13686 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13687 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13688 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13689 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13690 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13691 | cat >>confdefs.h <<\_ACEOF |
| 13692 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 13693 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 13694 | |
| 13695 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13696 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13697 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 13698 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 13699 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13701 | else |
| 13702 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13703 | cat >conftest.$ac_ext <<_ACEOF |
| 13704 | /* confdefs.h. */ |
| 13705 | _ACEOF |
| 13706 | cat confdefs.h >>conftest.$ac_ext |
| 13707 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13708 | /* end confdefs.h. */ |
| 13709 | |
| 13710 | /* Override any GCC internal prototype to avoid an error. |
| 13711 | Use char because int might match the return type of a GCC |
| 13712 | builtin and then its argument prototype would still apply. */ |
| 13713 | #ifdef __cplusplus |
| 13714 | extern "C" |
| 13715 | #endif |
| 13716 | char pthread_rwlock_init (); |
| 13717 | int |
| 13718 | main () |
| 13719 | { |
| 13720 | return pthread_rwlock_init (); |
| 13721 | ; |
| 13722 | return 0; |
| 13723 | } |
| 13724 | _ACEOF |
| 13725 | for ac_lib in '' pthread; do |
| 13726 | if test -z "$ac_lib"; then |
| 13727 | ac_res="none required" |
| 13728 | else |
| 13729 | ac_res=-l$ac_lib |
| 13730 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13731 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13732 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13733 | if { (ac_try="$ac_link" |
| 13734 | case "(($ac_try" in |
| 13735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13736 | *) ac_try_echo=$ac_try;; |
| 13737 | esac |
| 13738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13739 | (eval "$ac_link") 2>conftest.er1 |
| 13740 | ac_status=$? |
| 13741 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13742 | rm -f conftest.er1 |
| 13743 | cat conftest.err >&5 |
| 13744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13745 | (exit $ac_status); } && |
| 13746 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13747 | { (case "(($ac_try" in |
| 13748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13749 | *) ac_try_echo=$ac_try;; |
| 13750 | esac |
| 13751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13752 | (eval "$ac_try") 2>&5 |
| 13753 | ac_status=$? |
| 13754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13755 | (exit $ac_status); }; } && |
| 13756 | { ac_try='test -s conftest$ac_exeext' |
| 13757 | { (case "(($ac_try" in |
| 13758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13759 | *) ac_try_echo=$ac_try;; |
| 13760 | esac |
| 13761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13762 | (eval "$ac_try") 2>&5 |
| 13763 | ac_status=$? |
| 13764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13765 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13766 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13767 | else |
| 13768 | echo "$as_me: failed program was:" >&5 |
| 13769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13770 | |
| 13771 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13772 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13773 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13774 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13775 | conftest$ac_exeext |
| 13776 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13777 | break |
| 13778 | fi |
| 13779 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13780 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13781 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13782 | else |
| 13783 | ac_cv_search_pthread_rwlock_init=no |
| 13784 | fi |
| 13785 | rm conftest.$ac_ext |
| 13786 | LIBS=$ac_func_search_save_LIBS |
| 13787 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13788 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 13789 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13790 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13791 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13792 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13793 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13794 | cat >>confdefs.h <<\_ACEOF |
| 13795 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 13796 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13797 | |
| 13798 | fi |
| 13799 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13800 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 13801 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 13802 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13804 | else |
| 13805 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13806 | cat >conftest.$ac_ext <<_ACEOF |
| 13807 | /* confdefs.h. */ |
| 13808 | _ACEOF |
| 13809 | cat confdefs.h >>conftest.$ac_ext |
| 13810 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13811 | /* end confdefs.h. */ |
| 13812 | |
| 13813 | /* Override any GCC internal prototype to avoid an error. |
| 13814 | Use char because int might match the return type of a GCC |
| 13815 | builtin and then its argument prototype would still apply. */ |
| 13816 | #ifdef __cplusplus |
| 13817 | extern "C" |
| 13818 | #endif |
| 13819 | char pthread_getspecific (); |
| 13820 | int |
| 13821 | main () |
| 13822 | { |
| 13823 | return pthread_getspecific (); |
| 13824 | ; |
| 13825 | return 0; |
| 13826 | } |
| 13827 | _ACEOF |
| 13828 | for ac_lib in '' pthread; do |
| 13829 | if test -z "$ac_lib"; then |
| 13830 | ac_res="none required" |
| 13831 | else |
| 13832 | ac_res=-l$ac_lib |
| 13833 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13834 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13835 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13836 | if { (ac_try="$ac_link" |
| 13837 | case "(($ac_try" in |
| 13838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13839 | *) ac_try_echo=$ac_try;; |
| 13840 | esac |
| 13841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13842 | (eval "$ac_link") 2>conftest.er1 |
| 13843 | ac_status=$? |
| 13844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13845 | rm -f conftest.er1 |
| 13846 | cat conftest.err >&5 |
| 13847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13848 | (exit $ac_status); } && |
| 13849 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13850 | { (case "(($ac_try" in |
| 13851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13852 | *) ac_try_echo=$ac_try;; |
| 13853 | esac |
| 13854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13855 | (eval "$ac_try") 2>&5 |
| 13856 | ac_status=$? |
| 13857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13858 | (exit $ac_status); }; } && |
| 13859 | { ac_try='test -s conftest$ac_exeext' |
| 13860 | { (case "(($ac_try" in |
| 13861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13862 | *) ac_try_echo=$ac_try;; |
| 13863 | esac |
| 13864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13865 | (eval "$ac_try") 2>&5 |
| 13866 | ac_status=$? |
| 13867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13868 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13869 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13870 | else |
| 13871 | echo "$as_me: failed program was:" >&5 |
| 13872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13873 | |
| 13874 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13875 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13876 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13877 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13878 | conftest$ac_exeext |
| 13879 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13880 | break |
| 13881 | fi |
| 13882 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13883 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13884 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13885 | else |
| 13886 | ac_cv_search_pthread_getspecific=no |
| 13887 | fi |
| 13888 | rm conftest.$ac_ext |
| 13889 | LIBS=$ac_func_search_save_LIBS |
| 13890 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13891 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 13892 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13893 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13894 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13895 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13896 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13897 | cat >>confdefs.h <<\_ACEOF |
| 13898 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 13899 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13900 | |
| 13901 | fi |
| 13902 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13903 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 13904 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13905 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13906 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13907 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13908 | withval=$with_udis86; |
| 13909 | USE_UDIS86=1 |
| 13910 | |
| 13911 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 13912 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13913 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 13914 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13915 | |
| 13916 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 13917 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 13918 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 13919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13920 | else |
| 13921 | ac_check_lib_save_LIBS=$LIBS |
| 13922 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13923 | cat >conftest.$ac_ext <<_ACEOF |
| 13924 | /* confdefs.h. */ |
| 13925 | _ACEOF |
| 13926 | cat confdefs.h >>conftest.$ac_ext |
| 13927 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13928 | /* end confdefs.h. */ |
| 13929 | |
| 13930 | /* Override any GCC internal prototype to avoid an error. |
| 13931 | Use char because int might match the return type of a GCC |
| 13932 | builtin and then its argument prototype would still apply. */ |
| 13933 | #ifdef __cplusplus |
| 13934 | extern "C" |
| 13935 | #endif |
| 13936 | char ud_init (); |
| 13937 | int |
| 13938 | main () |
| 13939 | { |
| 13940 | return ud_init (); |
| 13941 | ; |
| 13942 | return 0; |
| 13943 | } |
| 13944 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13945 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13946 | if { (ac_try="$ac_link" |
| 13947 | case "(($ac_try" in |
| 13948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13949 | *) ac_try_echo=$ac_try;; |
| 13950 | esac |
| 13951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13952 | (eval "$ac_link") 2>conftest.er1 |
| 13953 | ac_status=$? |
| 13954 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13955 | rm -f conftest.er1 |
| 13956 | cat conftest.err >&5 |
| 13957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13958 | (exit $ac_status); } && |
| 13959 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13960 | { (case "(($ac_try" in |
| 13961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13962 | *) ac_try_echo=$ac_try;; |
| 13963 | esac |
| 13964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13965 | (eval "$ac_try") 2>&5 |
| 13966 | ac_status=$? |
| 13967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13968 | (exit $ac_status); }; } && |
| 13969 | { ac_try='test -s conftest$ac_exeext' |
| 13970 | { (case "(($ac_try" in |
| 13971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13972 | *) ac_try_echo=$ac_try;; |
| 13973 | esac |
| 13974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13975 | (eval "$ac_try") 2>&5 |
| 13976 | ac_status=$? |
| 13977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13978 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13979 | ac_cv_lib_udis86_ud_init=yes |
| 13980 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13981 | echo "$as_me: failed program was:" >&5 |
| 13982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13983 | |
| 13984 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13985 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13986 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13987 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13988 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13989 | LIBS=$ac_check_lib_save_LIBS |
| 13990 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13991 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 13992 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 13993 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13994 | cat >>confdefs.h <<_ACEOF |
| 13995 | #define HAVE_LIBUDIS86 1 |
| 13996 | _ACEOF |
| 13997 | |
| 13998 | LIBS="-ludis86 $LIBS" |
| 13999 | |
| 14000 | else |
| 14001 | |
| 14002 | echo "Error! You need to have libudis86 around." |
| 14003 | exit -1 |
| 14004 | |
| 14005 | fi |
| 14006 | |
| 14007 | |
| 14008 | else |
| 14009 | USE_UDIS86=0 |
| 14010 | |
| 14011 | fi |
| 14012 | |
| 14013 | |
| 14014 | cat >>confdefs.h <<_ACEOF |
| 14015 | #define USE_UDIS86 $USE_UDIS86 |
| 14016 | _ACEOF |
| 14017 | |
| 14018 | |
| 14019 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14020 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14021 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14022 | withval=$with_oprofile; |
| 14023 | USE_OPROFILE=1 |
| 14024 | |
| 14025 | case "$withval" in |
| 14026 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14027 | no) llvm_cv_oppath= |
| 14028 | USE_OPROFILE=0 |
| 14029 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14030 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 14031 | CPPFLAGS="-I${withval}/include";; |
| 14032 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14033 | if test -n "$llvm_cv_oppath" ; then |
| 14034 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14035 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 14036 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 14037 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14039 | else |
| 14040 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14041 | cat >conftest.$ac_ext <<_ACEOF |
| 14042 | /* confdefs.h. */ |
| 14043 | _ACEOF |
| 14044 | cat confdefs.h >>conftest.$ac_ext |
| 14045 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14046 | /* end confdefs.h. */ |
| 14047 | |
| 14048 | /* Override any GCC internal prototype to avoid an error. |
| 14049 | Use char because int might match the return type of a GCC |
| 14050 | builtin and then its argument prototype would still apply. */ |
| 14051 | #ifdef __cplusplus |
| 14052 | extern "C" |
| 14053 | #endif |
| 14054 | char bfd_init (); |
| 14055 | int |
| 14056 | main () |
| 14057 | { |
| 14058 | return bfd_init (); |
| 14059 | ; |
| 14060 | return 0; |
| 14061 | } |
| 14062 | _ACEOF |
| 14063 | for ac_lib in '' bfd; do |
| 14064 | if test -z "$ac_lib"; then |
| 14065 | ac_res="none required" |
| 14066 | else |
| 14067 | ac_res=-l$ac_lib |
| 14068 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14069 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14070 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14071 | if { (ac_try="$ac_link" |
| 14072 | case "(($ac_try" in |
| 14073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14074 | *) ac_try_echo=$ac_try;; |
| 14075 | esac |
| 14076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14077 | (eval "$ac_link") 2>conftest.er1 |
| 14078 | ac_status=$? |
| 14079 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14080 | rm -f conftest.er1 |
| 14081 | cat conftest.err >&5 |
| 14082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14083 | (exit $ac_status); } && |
| 14084 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14085 | { (case "(($ac_try" in |
| 14086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14087 | *) ac_try_echo=$ac_try;; |
| 14088 | esac |
| 14089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14090 | (eval "$ac_try") 2>&5 |
| 14091 | ac_status=$? |
| 14092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14093 | (exit $ac_status); }; } && |
| 14094 | { ac_try='test -s conftest$ac_exeext' |
| 14095 | { (case "(($ac_try" in |
| 14096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14097 | *) ac_try_echo=$ac_try;; |
| 14098 | esac |
| 14099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14100 | (eval "$ac_try") 2>&5 |
| 14101 | ac_status=$? |
| 14102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14103 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14104 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14105 | else |
| 14106 | echo "$as_me: failed program was:" >&5 |
| 14107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14108 | |
| 14109 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14110 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14111 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14112 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14113 | conftest$ac_exeext |
| 14114 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14115 | break |
| 14116 | fi |
| 14117 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14118 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14119 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14120 | else |
| 14121 | ac_cv_search_bfd_init=no |
| 14122 | fi |
| 14123 | rm conftest.$ac_ext |
| 14124 | LIBS=$ac_func_search_save_LIBS |
| 14125 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14126 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 14127 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14128 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14129 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14130 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14131 | |
| 14132 | fi |
| 14133 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14134 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 14135 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 14136 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14138 | else |
| 14139 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14140 | cat >conftest.$ac_ext <<_ACEOF |
| 14141 | /* confdefs.h. */ |
| 14142 | _ACEOF |
| 14143 | cat confdefs.h >>conftest.$ac_ext |
| 14144 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14145 | /* end confdefs.h. */ |
| 14146 | |
| 14147 | /* Override any GCC internal prototype to avoid an error. |
| 14148 | Use char because int might match the return type of a GCC |
| 14149 | builtin and then its argument prototype would still apply. */ |
| 14150 | #ifdef __cplusplus |
| 14151 | extern "C" |
| 14152 | #endif |
| 14153 | char op_open_agent (); |
| 14154 | int |
| 14155 | main () |
| 14156 | { |
| 14157 | return op_open_agent (); |
| 14158 | ; |
| 14159 | return 0; |
| 14160 | } |
| 14161 | _ACEOF |
| 14162 | for ac_lib in '' opagent; do |
| 14163 | if test -z "$ac_lib"; then |
| 14164 | ac_res="none required" |
| 14165 | else |
| 14166 | ac_res=-l$ac_lib |
| 14167 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14168 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14169 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14170 | if { (ac_try="$ac_link" |
| 14171 | case "(($ac_try" in |
| 14172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14173 | *) ac_try_echo=$ac_try;; |
| 14174 | esac |
| 14175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14176 | (eval "$ac_link") 2>conftest.er1 |
| 14177 | ac_status=$? |
| 14178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14179 | rm -f conftest.er1 |
| 14180 | cat conftest.err >&5 |
| 14181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14182 | (exit $ac_status); } && |
| 14183 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14184 | { (case "(($ac_try" in |
| 14185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14186 | *) ac_try_echo=$ac_try;; |
| 14187 | esac |
| 14188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14189 | (eval "$ac_try") 2>&5 |
| 14190 | ac_status=$? |
| 14191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14192 | (exit $ac_status); }; } && |
| 14193 | { ac_try='test -s conftest$ac_exeext' |
| 14194 | { (case "(($ac_try" in |
| 14195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14196 | *) ac_try_echo=$ac_try;; |
| 14197 | esac |
| 14198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14199 | (eval "$ac_try") 2>&5 |
| 14200 | ac_status=$? |
| 14201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14202 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14203 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14204 | else |
| 14205 | echo "$as_me: failed program was:" >&5 |
| 14206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14207 | |
| 14208 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14209 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14210 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14211 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14212 | conftest$ac_exeext |
| 14213 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14214 | break |
| 14215 | fi |
| 14216 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14217 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14218 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14219 | else |
| 14220 | ac_cv_search_op_open_agent=no |
| 14221 | fi |
| 14222 | rm conftest.$ac_ext |
| 14223 | LIBS=$ac_func_search_save_LIBS |
| 14224 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14225 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 14226 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14227 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14228 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14229 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14230 | |
| 14231 | else |
| 14232 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14233 | echo "Error! You need to have libopagent around." |
| 14234 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14235 | |
| 14236 | fi |
| 14237 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14238 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14239 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14240 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14241 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14243 | fi |
| 14244 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14245 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14246 | else |
| 14247 | # Is the header compilable? |
| 14248 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 14249 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 14250 | cat >conftest.$ac_ext <<_ACEOF |
| 14251 | /* confdefs.h. */ |
| 14252 | _ACEOF |
| 14253 | cat confdefs.h >>conftest.$ac_ext |
| 14254 | cat >>conftest.$ac_ext <<_ACEOF |
| 14255 | /* end confdefs.h. */ |
| 14256 | $ac_includes_default |
| 14257 | #include <opagent.h> |
| 14258 | _ACEOF |
| 14259 | rm -f conftest.$ac_objext |
| 14260 | if { (ac_try="$ac_compile" |
| 14261 | case "(($ac_try" in |
| 14262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14263 | *) ac_try_echo=$ac_try;; |
| 14264 | esac |
| 14265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14266 | (eval "$ac_compile") 2>conftest.er1 |
| 14267 | ac_status=$? |
| 14268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14269 | rm -f conftest.er1 |
| 14270 | cat conftest.err >&5 |
| 14271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14272 | (exit $ac_status); } && |
| 14273 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14274 | { (case "(($ac_try" in |
| 14275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14276 | *) ac_try_echo=$ac_try;; |
| 14277 | esac |
| 14278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14279 | (eval "$ac_try") 2>&5 |
| 14280 | ac_status=$? |
| 14281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14282 | (exit $ac_status); }; } && |
| 14283 | { ac_try='test -s conftest.$ac_objext' |
| 14284 | { (case "(($ac_try" in |
| 14285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14286 | *) ac_try_echo=$ac_try;; |
| 14287 | esac |
| 14288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14289 | (eval "$ac_try") 2>&5 |
| 14290 | ac_status=$? |
| 14291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14292 | (exit $ac_status); }; }; then |
| 14293 | ac_header_compiler=yes |
| 14294 | else |
| 14295 | echo "$as_me: failed program was:" >&5 |
| 14296 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14297 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14298 | ac_header_compiler=no |
| 14299 | fi |
| 14300 | |
| 14301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14302 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14303 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14304 | |
| 14305 | # Is the header present? |
| 14306 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 14307 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 14308 | cat >conftest.$ac_ext <<_ACEOF |
| 14309 | /* confdefs.h. */ |
| 14310 | _ACEOF |
| 14311 | cat confdefs.h >>conftest.$ac_ext |
| 14312 | cat >>conftest.$ac_ext <<_ACEOF |
| 14313 | /* end confdefs.h. */ |
| 14314 | #include <opagent.h> |
| 14315 | _ACEOF |
| 14316 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14317 | case "(($ac_try" in |
| 14318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14319 | *) ac_try_echo=$ac_try;; |
| 14320 | esac |
| 14321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14322 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14323 | ac_status=$? |
| 14324 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14325 | rm -f conftest.er1 |
| 14326 | cat conftest.err >&5 |
| 14327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14328 | (exit $ac_status); } >/dev/null; then |
| 14329 | if test -s conftest.err; then |
| 14330 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14331 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14332 | else |
| 14333 | ac_cpp_err= |
| 14334 | fi |
| 14335 | else |
| 14336 | ac_cpp_err=yes |
| 14337 | fi |
| 14338 | if test -z "$ac_cpp_err"; then |
| 14339 | ac_header_preproc=yes |
| 14340 | else |
| 14341 | echo "$as_me: failed program was:" >&5 |
| 14342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14343 | |
| 14344 | ac_header_preproc=no |
| 14345 | fi |
| 14346 | |
| 14347 | rm -f conftest.err conftest.$ac_ext |
| 14348 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14349 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14350 | |
| 14351 | # So? What about this header? |
| 14352 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14353 | yes:no: ) |
| 14354 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14355 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14356 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 14357 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 14358 | ac_header_preproc=yes |
| 14359 | ;; |
| 14360 | no:yes:* ) |
| 14361 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 14362 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 14363 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 14364 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 14365 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 14366 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 14367 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14368 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14369 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 14370 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 14371 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 14372 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 14373 | ( cat <<\_ASBOX |
| 14374 | ## ----------------------------------- ## |
| 14375 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 14376 | ## ----------------------------------- ## |
| 14377 | _ASBOX |
| 14378 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14379 | ;; |
| 14380 | esac |
| 14381 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14382 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14383 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14385 | else |
| 14386 | ac_cv_header_opagent_h=$ac_header_preproc |
| 14387 | fi |
| 14388 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14389 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14390 | |
| 14391 | fi |
| 14392 | if test $ac_cv_header_opagent_h = yes; then |
| 14393 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14394 | else |
| 14395 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14396 | echo "Error! You need to have opagent.h around." |
| 14397 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14398 | |
| 14399 | fi |
| 14400 | |
| 14401 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14402 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14403 | |
| 14404 | else |
| 14405 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14406 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14407 | |
| 14408 | |
| 14409 | fi |
| 14410 | |
| 14411 | |
| 14412 | cat >>confdefs.h <<_ACEOF |
| 14413 | #define USE_OPROFILE $USE_OPROFILE |
| 14414 | _ACEOF |
| 14415 | |
| 14416 | |
| 14417 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14418 | |
| 14419 | |
| 14420 | |
| 14421 | |
| 14422 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14423 | ac_header_dirent=no |
| 14424 | 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] | 14425 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 14426 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 14427 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 14428 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14430 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14431 | cat >conftest.$ac_ext <<_ACEOF |
| 14432 | /* confdefs.h. */ |
| 14433 | _ACEOF |
| 14434 | cat confdefs.h >>conftest.$ac_ext |
| 14435 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14436 | /* end confdefs.h. */ |
| 14437 | #include <sys/types.h> |
| 14438 | #include <$ac_hdr> |
| 14439 | |
| 14440 | int |
| 14441 | main () |
| 14442 | { |
| 14443 | if ((DIR *) 0) |
| 14444 | return 0; |
| 14445 | ; |
| 14446 | return 0; |
| 14447 | } |
| 14448 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14449 | rm -f conftest.$ac_objext |
| 14450 | if { (ac_try="$ac_compile" |
| 14451 | case "(($ac_try" in |
| 14452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14453 | *) ac_try_echo=$ac_try;; |
| 14454 | esac |
| 14455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14456 | (eval "$ac_compile") 2>conftest.er1 |
| 14457 | ac_status=$? |
| 14458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14459 | rm -f conftest.er1 |
| 14460 | cat conftest.err >&5 |
| 14461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14462 | (exit $ac_status); } && |
| 14463 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14464 | { (case "(($ac_try" in |
| 14465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14466 | *) ac_try_echo=$ac_try;; |
| 14467 | esac |
| 14468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14469 | (eval "$ac_try") 2>&5 |
| 14470 | ac_status=$? |
| 14471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14472 | (exit $ac_status); }; } && |
| 14473 | { ac_try='test -s conftest.$ac_objext' |
| 14474 | { (case "(($ac_try" in |
| 14475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14476 | *) ac_try_echo=$ac_try;; |
| 14477 | esac |
| 14478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14479 | (eval "$ac_try") 2>&5 |
| 14480 | ac_status=$? |
| 14481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14482 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14483 | eval "$as_ac_Header=yes" |
| 14484 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14485 | echo "$as_me: failed program was:" >&5 |
| 14486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14487 | |
| 14488 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14489 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14490 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14492 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14493 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14494 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14495 | echo "${ECHO_T}$ac_res" >&6; } |
| 14496 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14497 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14498 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14499 | _ACEOF |
| 14500 | |
| 14501 | ac_header_dirent=$ac_hdr; break |
| 14502 | fi |
| 14503 | |
| 14504 | done |
| 14505 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 14506 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14507 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14508 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14509 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14511 | else |
| 14512 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14513 | cat >conftest.$ac_ext <<_ACEOF |
| 14514 | /* confdefs.h. */ |
| 14515 | _ACEOF |
| 14516 | cat confdefs.h >>conftest.$ac_ext |
| 14517 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14518 | /* end confdefs.h. */ |
| 14519 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14520 | /* Override any GCC internal prototype to avoid an error. |
| 14521 | Use char because int might match the return type of a GCC |
| 14522 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14523 | #ifdef __cplusplus |
| 14524 | extern "C" |
| 14525 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14526 | char opendir (); |
| 14527 | int |
| 14528 | main () |
| 14529 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14530 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14531 | ; |
| 14532 | return 0; |
| 14533 | } |
| 14534 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14535 | for ac_lib in '' dir; do |
| 14536 | if test -z "$ac_lib"; then |
| 14537 | ac_res="none required" |
| 14538 | else |
| 14539 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14540 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14541 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14542 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14543 | if { (ac_try="$ac_link" |
| 14544 | case "(($ac_try" in |
| 14545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14546 | *) ac_try_echo=$ac_try;; |
| 14547 | esac |
| 14548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14549 | (eval "$ac_link") 2>conftest.er1 |
| 14550 | ac_status=$? |
| 14551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14552 | rm -f conftest.er1 |
| 14553 | cat conftest.err >&5 |
| 14554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14555 | (exit $ac_status); } && |
| 14556 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14557 | { (case "(($ac_try" in |
| 14558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14559 | *) ac_try_echo=$ac_try;; |
| 14560 | esac |
| 14561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14562 | (eval "$ac_try") 2>&5 |
| 14563 | ac_status=$? |
| 14564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14565 | (exit $ac_status); }; } && |
| 14566 | { ac_try='test -s conftest$ac_exeext' |
| 14567 | { (case "(($ac_try" in |
| 14568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14569 | *) ac_try_echo=$ac_try;; |
| 14570 | esac |
| 14571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14572 | (eval "$ac_try") 2>&5 |
| 14573 | ac_status=$? |
| 14574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14575 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14576 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14577 | else |
| 14578 | echo "$as_me: failed program was:" >&5 |
| 14579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14580 | |
| 14581 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14582 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14583 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14584 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14585 | conftest$ac_exeext |
| 14586 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14587 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14588 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14589 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14590 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14591 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14592 | else |
| 14593 | ac_cv_search_opendir=no |
| 14594 | fi |
| 14595 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14596 | LIBS=$ac_func_search_save_LIBS |
| 14597 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14598 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14599 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14600 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14601 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14602 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14603 | |
| 14604 | fi |
| 14605 | |
| 14606 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14607 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14608 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14609 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14611 | else |
| 14612 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14613 | cat >conftest.$ac_ext <<_ACEOF |
| 14614 | /* confdefs.h. */ |
| 14615 | _ACEOF |
| 14616 | cat confdefs.h >>conftest.$ac_ext |
| 14617 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14618 | /* end confdefs.h. */ |
| 14619 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14620 | /* Override any GCC internal prototype to avoid an error. |
| 14621 | Use char because int might match the return type of a GCC |
| 14622 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14623 | #ifdef __cplusplus |
| 14624 | extern "C" |
| 14625 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14626 | char opendir (); |
| 14627 | int |
| 14628 | main () |
| 14629 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14630 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14631 | ; |
| 14632 | return 0; |
| 14633 | } |
| 14634 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14635 | for ac_lib in '' x; do |
| 14636 | if test -z "$ac_lib"; then |
| 14637 | ac_res="none required" |
| 14638 | else |
| 14639 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14640 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14641 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14642 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14643 | if { (ac_try="$ac_link" |
| 14644 | case "(($ac_try" in |
| 14645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14646 | *) ac_try_echo=$ac_try;; |
| 14647 | esac |
| 14648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14649 | (eval "$ac_link") 2>conftest.er1 |
| 14650 | ac_status=$? |
| 14651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14652 | rm -f conftest.er1 |
| 14653 | cat conftest.err >&5 |
| 14654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14655 | (exit $ac_status); } && |
| 14656 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14657 | { (case "(($ac_try" in |
| 14658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14659 | *) ac_try_echo=$ac_try;; |
| 14660 | esac |
| 14661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14662 | (eval "$ac_try") 2>&5 |
| 14663 | ac_status=$? |
| 14664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14665 | (exit $ac_status); }; } && |
| 14666 | { ac_try='test -s conftest$ac_exeext' |
| 14667 | { (case "(($ac_try" in |
| 14668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14669 | *) ac_try_echo=$ac_try;; |
| 14670 | esac |
| 14671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14672 | (eval "$ac_try") 2>&5 |
| 14673 | ac_status=$? |
| 14674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14675 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14676 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14677 | else |
| 14678 | echo "$as_me: failed program was:" >&5 |
| 14679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14680 | |
| 14681 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14682 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14683 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14684 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14685 | conftest$ac_exeext |
| 14686 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14687 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14688 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14689 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14690 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14691 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14692 | else |
| 14693 | ac_cv_search_opendir=no |
| 14694 | fi |
| 14695 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14696 | LIBS=$ac_func_search_save_LIBS |
| 14697 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14698 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14699 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14700 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14701 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14702 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14703 | |
| 14704 | fi |
| 14705 | |
| 14706 | fi |
| 14707 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14708 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 14709 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 14710 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 14711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14712 | else |
| 14713 | ac_ext=c |
| 14714 | ac_cpp='$CPP $CPPFLAGS' |
| 14715 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14716 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14717 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14718 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14719 | cat >conftest.$ac_ext <<_ACEOF |
| 14720 | /* confdefs.h. */ |
| 14721 | _ACEOF |
| 14722 | cat confdefs.h >>conftest.$ac_ext |
| 14723 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14724 | /* end confdefs.h. */ |
| 14725 | #include <sys/mman.h> |
| 14726 | #include <unistd.h> |
| 14727 | #include <fcntl.h> |
| 14728 | int |
| 14729 | main () |
| 14730 | { |
| 14731 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 14732 | ; |
| 14733 | return 0; |
| 14734 | } |
| 14735 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14736 | rm -f conftest.$ac_objext |
| 14737 | if { (ac_try="$ac_compile" |
| 14738 | case "(($ac_try" in |
| 14739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14740 | *) ac_try_echo=$ac_try;; |
| 14741 | esac |
| 14742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14743 | (eval "$ac_compile") 2>conftest.er1 |
| 14744 | ac_status=$? |
| 14745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14746 | rm -f conftest.er1 |
| 14747 | cat conftest.err >&5 |
| 14748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14749 | (exit $ac_status); } && |
| 14750 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14751 | { (case "(($ac_try" in |
| 14752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14753 | *) ac_try_echo=$ac_try;; |
| 14754 | esac |
| 14755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14756 | (eval "$ac_try") 2>&5 |
| 14757 | ac_status=$? |
| 14758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14759 | (exit $ac_status); }; } && |
| 14760 | { ac_try='test -s conftest.$ac_objext' |
| 14761 | { (case "(($ac_try" in |
| 14762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14763 | *) ac_try_echo=$ac_try;; |
| 14764 | esac |
| 14765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14766 | (eval "$ac_try") 2>&5 |
| 14767 | ac_status=$? |
| 14768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14769 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14770 | ac_cv_header_mmap_anon=yes |
| 14771 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14772 | echo "$as_me: failed program was:" >&5 |
| 14773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14774 | |
| 14775 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14776 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14777 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14779 | ac_ext=c |
| 14780 | ac_cpp='$CPP $CPPFLAGS' |
| 14781 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14782 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14783 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14784 | |
| 14785 | |
| 14786 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14787 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 14788 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14789 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 14790 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14791 | cat >>confdefs.h <<\_ACEOF |
| 14792 | #define HAVE_MMAP_ANONYMOUS 1 |
| 14793 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14794 | |
| 14795 | fi |
| 14796 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14797 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 14798 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 14799 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 14800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14801 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14802 | cat >conftest.$ac_ext <<_ACEOF |
| 14803 | /* confdefs.h. */ |
| 14804 | _ACEOF |
| 14805 | cat confdefs.h >>conftest.$ac_ext |
| 14806 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14807 | /* end confdefs.h. */ |
| 14808 | #include <sys/types.h> |
| 14809 | #include <sys/stat.h> |
| 14810 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14811 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14812 | # if S_ISBLK (S_IFDIR) |
| 14813 | You lose. |
| 14814 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14815 | #endif |
| 14816 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14817 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14818 | # if S_ISBLK (S_IFCHR) |
| 14819 | You lose. |
| 14820 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14821 | #endif |
| 14822 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14823 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14824 | # if S_ISLNK (S_IFREG) |
| 14825 | You lose. |
| 14826 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14827 | #endif |
| 14828 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14829 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14830 | # if S_ISSOCK (S_IFREG) |
| 14831 | You lose. |
| 14832 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14833 | #endif |
| 14834 | |
| 14835 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14836 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14837 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 14838 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14839 | else |
| 14840 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 14841 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14842 | rm -f conftest* |
| 14843 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14844 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14845 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 14846 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14847 | if test $ac_cv_header_stat_broken = yes; then |
| 14848 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14849 | cat >>confdefs.h <<\_ACEOF |
| 14850 | #define STAT_MACROS_BROKEN 1 |
| 14851 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14852 | |
| 14853 | fi |
| 14854 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14855 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 14856 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 14857 | if test "${ac_cv_header_stdc+set}" = set; then |
| 14858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14859 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14860 | cat >conftest.$ac_ext <<_ACEOF |
| 14861 | /* confdefs.h. */ |
| 14862 | _ACEOF |
| 14863 | cat confdefs.h >>conftest.$ac_ext |
| 14864 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14865 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14866 | #include <stdlib.h> |
| 14867 | #include <stdarg.h> |
| 14868 | #include <string.h> |
| 14869 | #include <float.h> |
| 14870 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14871 | int |
| 14872 | main () |
| 14873 | { |
| 14874 | |
| 14875 | ; |
| 14876 | return 0; |
| 14877 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14878 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14879 | rm -f conftest.$ac_objext |
| 14880 | if { (ac_try="$ac_compile" |
| 14881 | case "(($ac_try" in |
| 14882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14883 | *) ac_try_echo=$ac_try;; |
| 14884 | esac |
| 14885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14886 | (eval "$ac_compile") 2>conftest.er1 |
| 14887 | ac_status=$? |
| 14888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14889 | rm -f conftest.er1 |
| 14890 | cat conftest.err >&5 |
| 14891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14892 | (exit $ac_status); } && |
| 14893 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14894 | { (case "(($ac_try" in |
| 14895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14896 | *) ac_try_echo=$ac_try;; |
| 14897 | esac |
| 14898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14899 | (eval "$ac_try") 2>&5 |
| 14900 | ac_status=$? |
| 14901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14902 | (exit $ac_status); }; } && |
| 14903 | { ac_try='test -s conftest.$ac_objext' |
| 14904 | { (case "(($ac_try" in |
| 14905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14906 | *) ac_try_echo=$ac_try;; |
| 14907 | esac |
| 14908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14909 | (eval "$ac_try") 2>&5 |
| 14910 | ac_status=$? |
| 14911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14912 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14913 | ac_cv_header_stdc=yes |
| 14914 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14915 | echo "$as_me: failed program was:" >&5 |
| 14916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14917 | |
| 14918 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14919 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14920 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14922 | |
| 14923 | if test $ac_cv_header_stdc = yes; then |
| 14924 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14925 | cat >conftest.$ac_ext <<_ACEOF |
| 14926 | /* confdefs.h. */ |
| 14927 | _ACEOF |
| 14928 | cat confdefs.h >>conftest.$ac_ext |
| 14929 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14930 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14931 | #include <string.h> |
| 14932 | |
| 14933 | _ACEOF |
| 14934 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14935 | $EGREP "memchr" >/dev/null 2>&1; then |
| 14936 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14937 | else |
| 14938 | ac_cv_header_stdc=no |
| 14939 | fi |
| 14940 | rm -f conftest* |
| 14941 | |
| 14942 | fi |
| 14943 | |
| 14944 | if test $ac_cv_header_stdc = yes; then |
| 14945 | # 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] | 14946 | cat >conftest.$ac_ext <<_ACEOF |
| 14947 | /* confdefs.h. */ |
| 14948 | _ACEOF |
| 14949 | cat confdefs.h >>conftest.$ac_ext |
| 14950 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14951 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14952 | #include <stdlib.h> |
| 14953 | |
| 14954 | _ACEOF |
| 14955 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14956 | $EGREP "free" >/dev/null 2>&1; then |
| 14957 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14958 | else |
| 14959 | ac_cv_header_stdc=no |
| 14960 | fi |
| 14961 | rm -f conftest* |
| 14962 | |
| 14963 | fi |
| 14964 | |
| 14965 | if test $ac_cv_header_stdc = yes; then |
| 14966 | # /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] | 14967 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14968 | : |
| 14969 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14970 | cat >conftest.$ac_ext <<_ACEOF |
| 14971 | /* confdefs.h. */ |
| 14972 | _ACEOF |
| 14973 | cat confdefs.h >>conftest.$ac_ext |
| 14974 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14975 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14976 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14977 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14978 | #if ((' ' & 0x0FF) == 0x020) |
| 14979 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 14980 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 14981 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14982 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14983 | (('a' <= (c) && (c) <= 'i') \ |
| 14984 | || ('j' <= (c) && (c) <= 'r') \ |
| 14985 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14986 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 14987 | #endif |
| 14988 | |
| 14989 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 14990 | int |
| 14991 | main () |
| 14992 | { |
| 14993 | int i; |
| 14994 | for (i = 0; i < 256; i++) |
| 14995 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14996 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14997 | return 2; |
| 14998 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14999 | } |
| 15000 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15001 | rm -f conftest$ac_exeext |
| 15002 | if { (ac_try="$ac_link" |
| 15003 | case "(($ac_try" in |
| 15004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15005 | *) ac_try_echo=$ac_try;; |
| 15006 | esac |
| 15007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15008 | (eval "$ac_link") 2>&5 |
| 15009 | ac_status=$? |
| 15010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15011 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15012 | { (case "(($ac_try" in |
| 15013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15014 | *) ac_try_echo=$ac_try;; |
| 15015 | esac |
| 15016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15017 | (eval "$ac_try") 2>&5 |
| 15018 | ac_status=$? |
| 15019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15020 | (exit $ac_status); }; }; then |
| 15021 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15022 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15023 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15024 | echo "$as_me: failed program was:" >&5 |
| 15025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15026 | |
| 15027 | ( exit $ac_status ) |
| 15028 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15029 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15030 | 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] | 15031 | fi |
| 15032 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15033 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15034 | fi |
| 15035 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15036 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 15037 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15038 | if test $ac_cv_header_stdc = yes; then |
| 15039 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15040 | cat >>confdefs.h <<\_ACEOF |
| 15041 | #define STDC_HEADERS 1 |
| 15042 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15043 | |
| 15044 | fi |
| 15045 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15046 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 15047 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 15048 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 15049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15050 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15051 | cat >conftest.$ac_ext <<_ACEOF |
| 15052 | /* confdefs.h. */ |
| 15053 | _ACEOF |
| 15054 | cat confdefs.h >>conftest.$ac_ext |
| 15055 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15056 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15057 | #include <sys/types.h> |
| 15058 | #include <sys/wait.h> |
| 15059 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15060 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15061 | #endif |
| 15062 | #ifndef WIFEXITED |
| 15063 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 15064 | #endif |
| 15065 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15066 | int |
| 15067 | main () |
| 15068 | { |
| 15069 | int s; |
| 15070 | wait (&s); |
| 15071 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 15072 | ; |
| 15073 | return 0; |
| 15074 | } |
| 15075 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15076 | rm -f conftest.$ac_objext |
| 15077 | if { (ac_try="$ac_compile" |
| 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_compile") 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_objext' |
| 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15110 | ac_cv_header_sys_wait_h=yes |
| 15111 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15112 | echo "$as_me: failed program was:" >&5 |
| 15113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15114 | |
| 15115 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15116 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15117 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15119 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15120 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 15121 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15122 | if test $ac_cv_header_sys_wait_h = yes; then |
| 15123 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15124 | cat >>confdefs.h <<\_ACEOF |
| 15125 | #define HAVE_SYS_WAIT_H 1 |
| 15126 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15127 | |
| 15128 | fi |
| 15129 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15130 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15131 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 15132 | if test "${ac_cv_header_time+set}" = set; then |
| 15133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15134 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15135 | cat >conftest.$ac_ext <<_ACEOF |
| 15136 | /* confdefs.h. */ |
| 15137 | _ACEOF |
| 15138 | cat confdefs.h >>conftest.$ac_ext |
| 15139 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15140 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15141 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15142 | #include <sys/time.h> |
| 15143 | #include <time.h> |
| 15144 | |
| 15145 | int |
| 15146 | main () |
| 15147 | { |
| 15148 | if ((struct tm *) 0) |
| 15149 | return 0; |
| 15150 | ; |
| 15151 | return 0; |
| 15152 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15153 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15154 | rm -f conftest.$ac_objext |
| 15155 | if { (ac_try="$ac_compile" |
| 15156 | case "(($ac_try" in |
| 15157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15158 | *) ac_try_echo=$ac_try;; |
| 15159 | esac |
| 15160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15161 | (eval "$ac_compile") 2>conftest.er1 |
| 15162 | ac_status=$? |
| 15163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15164 | rm -f conftest.er1 |
| 15165 | cat conftest.err >&5 |
| 15166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15167 | (exit $ac_status); } && |
| 15168 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15169 | { (case "(($ac_try" in |
| 15170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15171 | *) ac_try_echo=$ac_try;; |
| 15172 | esac |
| 15173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15174 | (eval "$ac_try") 2>&5 |
| 15175 | ac_status=$? |
| 15176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15177 | (exit $ac_status); }; } && |
| 15178 | { ac_try='test -s conftest.$ac_objext' |
| 15179 | { (case "(($ac_try" in |
| 15180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15181 | *) ac_try_echo=$ac_try;; |
| 15182 | esac |
| 15183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15184 | (eval "$ac_try") 2>&5 |
| 15185 | ac_status=$? |
| 15186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15187 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15188 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15189 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15190 | echo "$as_me: failed program was:" >&5 |
| 15191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15192 | |
| 15193 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15194 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15195 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15197 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15198 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15199 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15200 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15201 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15202 | cat >>confdefs.h <<\_ACEOF |
| 15203 | #define TIME_WITH_SYS_TIME 1 |
| 15204 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15205 | |
| 15206 | fi |
| 15207 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15208 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15209 | |
| 15210 | |
| 15211 | |
| 15212 | |
| 15213 | |
| 15214 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15215 | 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] | 15216 | do |
| 15217 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15218 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15219 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15220 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15221 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15223 | fi |
| 15224 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15225 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15226 | echo "${ECHO_T}$ac_res" >&6; } |
| 15227 | else |
| 15228 | # Is the header compilable? |
| 15229 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15230 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15231 | cat >conftest.$ac_ext <<_ACEOF |
| 15232 | /* confdefs.h. */ |
| 15233 | _ACEOF |
| 15234 | cat confdefs.h >>conftest.$ac_ext |
| 15235 | cat >>conftest.$ac_ext <<_ACEOF |
| 15236 | /* end confdefs.h. */ |
| 15237 | $ac_includes_default |
| 15238 | #include <$ac_header> |
| 15239 | _ACEOF |
| 15240 | rm -f conftest.$ac_objext |
| 15241 | if { (ac_try="$ac_compile" |
| 15242 | case "(($ac_try" in |
| 15243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15244 | *) ac_try_echo=$ac_try;; |
| 15245 | esac |
| 15246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15247 | (eval "$ac_compile") 2>conftest.er1 |
| 15248 | ac_status=$? |
| 15249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15250 | rm -f conftest.er1 |
| 15251 | cat conftest.err >&5 |
| 15252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15253 | (exit $ac_status); } && |
| 15254 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15255 | { (case "(($ac_try" in |
| 15256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15257 | *) ac_try_echo=$ac_try;; |
| 15258 | esac |
| 15259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15260 | (eval "$ac_try") 2>&5 |
| 15261 | ac_status=$? |
| 15262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15263 | (exit $ac_status); }; } && |
| 15264 | { ac_try='test -s conftest.$ac_objext' |
| 15265 | { (case "(($ac_try" in |
| 15266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15267 | *) ac_try_echo=$ac_try;; |
| 15268 | esac |
| 15269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15270 | (eval "$ac_try") 2>&5 |
| 15271 | ac_status=$? |
| 15272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15273 | (exit $ac_status); }; }; then |
| 15274 | ac_header_compiler=yes |
| 15275 | else |
| 15276 | echo "$as_me: failed program was:" >&5 |
| 15277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15278 | |
| 15279 | ac_header_compiler=no |
| 15280 | fi |
| 15281 | |
| 15282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15283 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15284 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15285 | |
| 15286 | # Is the header present? |
| 15287 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15288 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15289 | cat >conftest.$ac_ext <<_ACEOF |
| 15290 | /* confdefs.h. */ |
| 15291 | _ACEOF |
| 15292 | cat confdefs.h >>conftest.$ac_ext |
| 15293 | cat >>conftest.$ac_ext <<_ACEOF |
| 15294 | /* end confdefs.h. */ |
| 15295 | #include <$ac_header> |
| 15296 | _ACEOF |
| 15297 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15298 | case "(($ac_try" in |
| 15299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15300 | *) ac_try_echo=$ac_try;; |
| 15301 | esac |
| 15302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15303 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15304 | ac_status=$? |
| 15305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15306 | rm -f conftest.er1 |
| 15307 | cat conftest.err >&5 |
| 15308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15309 | (exit $ac_status); } >/dev/null; then |
| 15310 | if test -s conftest.err; then |
| 15311 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15312 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15313 | else |
| 15314 | ac_cpp_err= |
| 15315 | fi |
| 15316 | else |
| 15317 | ac_cpp_err=yes |
| 15318 | fi |
| 15319 | if test -z "$ac_cpp_err"; then |
| 15320 | ac_header_preproc=yes |
| 15321 | else |
| 15322 | echo "$as_me: failed program was:" >&5 |
| 15323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15324 | |
| 15325 | ac_header_preproc=no |
| 15326 | fi |
| 15327 | |
| 15328 | rm -f conftest.err conftest.$ac_ext |
| 15329 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15330 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15331 | |
| 15332 | # So? What about this header? |
| 15333 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15334 | yes:no: ) |
| 15335 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15336 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15337 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15338 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15339 | ac_header_preproc=yes |
| 15340 | ;; |
| 15341 | no:yes:* ) |
| 15342 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15343 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15344 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15345 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15346 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15347 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15348 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15349 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15350 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15351 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15352 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15353 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15354 | ( cat <<\_ASBOX |
| 15355 | ## ----------------------------------- ## |
| 15356 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15357 | ## ----------------------------------- ## |
| 15358 | _ASBOX |
| 15359 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15360 | ;; |
| 15361 | esac |
| 15362 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15363 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15364 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15366 | else |
| 15367 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15368 | fi |
| 15369 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15370 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15371 | echo "${ECHO_T}$ac_res" >&6; } |
| 15372 | |
| 15373 | fi |
| 15374 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15375 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15376 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15377 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15378 | |
| 15379 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15380 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15381 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15382 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15383 | |
| 15384 | |
| 15385 | |
| 15386 | |
| 15387 | |
| 15388 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15389 | 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] | 15390 | do |
| 15391 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15392 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15393 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15394 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15395 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15397 | fi |
| 15398 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15399 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15400 | echo "${ECHO_T}$ac_res" >&6; } |
| 15401 | else |
| 15402 | # Is the header compilable? |
| 15403 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15404 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15405 | cat >conftest.$ac_ext <<_ACEOF |
| 15406 | /* confdefs.h. */ |
| 15407 | _ACEOF |
| 15408 | cat confdefs.h >>conftest.$ac_ext |
| 15409 | cat >>conftest.$ac_ext <<_ACEOF |
| 15410 | /* end confdefs.h. */ |
| 15411 | $ac_includes_default |
| 15412 | #include <$ac_header> |
| 15413 | _ACEOF |
| 15414 | rm -f conftest.$ac_objext |
| 15415 | if { (ac_try="$ac_compile" |
| 15416 | case "(($ac_try" in |
| 15417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15418 | *) ac_try_echo=$ac_try;; |
| 15419 | esac |
| 15420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15421 | (eval "$ac_compile") 2>conftest.er1 |
| 15422 | ac_status=$? |
| 15423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15424 | rm -f conftest.er1 |
| 15425 | cat conftest.err >&5 |
| 15426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15427 | (exit $ac_status); } && |
| 15428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15429 | { (case "(($ac_try" in |
| 15430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15431 | *) ac_try_echo=$ac_try;; |
| 15432 | esac |
| 15433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15434 | (eval "$ac_try") 2>&5 |
| 15435 | ac_status=$? |
| 15436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15437 | (exit $ac_status); }; } && |
| 15438 | { ac_try='test -s conftest.$ac_objext' |
| 15439 | { (case "(($ac_try" in |
| 15440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15441 | *) ac_try_echo=$ac_try;; |
| 15442 | esac |
| 15443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15444 | (eval "$ac_try") 2>&5 |
| 15445 | ac_status=$? |
| 15446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15447 | (exit $ac_status); }; }; then |
| 15448 | ac_header_compiler=yes |
| 15449 | else |
| 15450 | echo "$as_me: failed program was:" >&5 |
| 15451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15452 | |
| 15453 | ac_header_compiler=no |
| 15454 | fi |
| 15455 | |
| 15456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15457 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15458 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15459 | |
| 15460 | # Is the header present? |
| 15461 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15462 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15463 | cat >conftest.$ac_ext <<_ACEOF |
| 15464 | /* confdefs.h. */ |
| 15465 | _ACEOF |
| 15466 | cat confdefs.h >>conftest.$ac_ext |
| 15467 | cat >>conftest.$ac_ext <<_ACEOF |
| 15468 | /* end confdefs.h. */ |
| 15469 | #include <$ac_header> |
| 15470 | _ACEOF |
| 15471 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15472 | case "(($ac_try" in |
| 15473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15474 | *) ac_try_echo=$ac_try;; |
| 15475 | esac |
| 15476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15477 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15478 | ac_status=$? |
| 15479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15480 | rm -f conftest.er1 |
| 15481 | cat conftest.err >&5 |
| 15482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15483 | (exit $ac_status); } >/dev/null; then |
| 15484 | if test -s conftest.err; then |
| 15485 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15486 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15487 | else |
| 15488 | ac_cpp_err= |
| 15489 | fi |
| 15490 | else |
| 15491 | ac_cpp_err=yes |
| 15492 | fi |
| 15493 | if test -z "$ac_cpp_err"; then |
| 15494 | ac_header_preproc=yes |
| 15495 | else |
| 15496 | echo "$as_me: failed program was:" >&5 |
| 15497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15498 | |
| 15499 | ac_header_preproc=no |
| 15500 | fi |
| 15501 | |
| 15502 | rm -f conftest.err conftest.$ac_ext |
| 15503 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15504 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15505 | |
| 15506 | # So? What about this header? |
| 15507 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15508 | yes:no: ) |
| 15509 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15510 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15511 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15512 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15513 | ac_header_preproc=yes |
| 15514 | ;; |
| 15515 | no:yes:* ) |
| 15516 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15517 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15518 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15519 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15520 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15521 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15522 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15523 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15524 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15525 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15526 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15527 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15528 | ( cat <<\_ASBOX |
| 15529 | ## ----------------------------------- ## |
| 15530 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15531 | ## ----------------------------------- ## |
| 15532 | _ASBOX |
| 15533 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15534 | ;; |
| 15535 | esac |
| 15536 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15537 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15538 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15540 | else |
| 15541 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15542 | fi |
| 15543 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15544 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15545 | echo "${ECHO_T}$ac_res" >&6; } |
| 15546 | |
| 15547 | fi |
| 15548 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15549 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15550 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15551 | _ACEOF |
| 15552 | |
| 15553 | fi |
| 15554 | |
| 15555 | done |
| 15556 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15557 | |
| 15558 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15559 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15560 | do |
| 15561 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15562 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15563 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15564 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15565 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15567 | fi |
| 15568 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15569 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15570 | echo "${ECHO_T}$ac_res" >&6; } |
| 15571 | else |
| 15572 | # Is the header compilable? |
| 15573 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15574 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15575 | cat >conftest.$ac_ext <<_ACEOF |
| 15576 | /* confdefs.h. */ |
| 15577 | _ACEOF |
| 15578 | cat confdefs.h >>conftest.$ac_ext |
| 15579 | cat >>conftest.$ac_ext <<_ACEOF |
| 15580 | /* end confdefs.h. */ |
| 15581 | $ac_includes_default |
| 15582 | #include <$ac_header> |
| 15583 | _ACEOF |
| 15584 | rm -f conftest.$ac_objext |
| 15585 | if { (ac_try="$ac_compile" |
| 15586 | case "(($ac_try" in |
| 15587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15588 | *) ac_try_echo=$ac_try;; |
| 15589 | esac |
| 15590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15591 | (eval "$ac_compile") 2>conftest.er1 |
| 15592 | ac_status=$? |
| 15593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15594 | rm -f conftest.er1 |
| 15595 | cat conftest.err >&5 |
| 15596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15597 | (exit $ac_status); } && |
| 15598 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15599 | { (case "(($ac_try" in |
| 15600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15601 | *) ac_try_echo=$ac_try;; |
| 15602 | esac |
| 15603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15604 | (eval "$ac_try") 2>&5 |
| 15605 | ac_status=$? |
| 15606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15607 | (exit $ac_status); }; } && |
| 15608 | { ac_try='test -s conftest.$ac_objext' |
| 15609 | { (case "(($ac_try" in |
| 15610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15611 | *) ac_try_echo=$ac_try;; |
| 15612 | esac |
| 15613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15614 | (eval "$ac_try") 2>&5 |
| 15615 | ac_status=$? |
| 15616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15617 | (exit $ac_status); }; }; then |
| 15618 | ac_header_compiler=yes |
| 15619 | else |
| 15620 | echo "$as_me: failed program was:" >&5 |
| 15621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15622 | |
| 15623 | ac_header_compiler=no |
| 15624 | fi |
| 15625 | |
| 15626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15627 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15628 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15629 | |
| 15630 | # Is the header present? |
| 15631 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15632 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15633 | cat >conftest.$ac_ext <<_ACEOF |
| 15634 | /* confdefs.h. */ |
| 15635 | _ACEOF |
| 15636 | cat confdefs.h >>conftest.$ac_ext |
| 15637 | cat >>conftest.$ac_ext <<_ACEOF |
| 15638 | /* end confdefs.h. */ |
| 15639 | #include <$ac_header> |
| 15640 | _ACEOF |
| 15641 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15642 | case "(($ac_try" in |
| 15643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15644 | *) ac_try_echo=$ac_try;; |
| 15645 | esac |
| 15646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15647 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15648 | ac_status=$? |
| 15649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15650 | rm -f conftest.er1 |
| 15651 | cat conftest.err >&5 |
| 15652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15653 | (exit $ac_status); } >/dev/null; then |
| 15654 | if test -s conftest.err; then |
| 15655 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15656 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15657 | else |
| 15658 | ac_cpp_err= |
| 15659 | fi |
| 15660 | else |
| 15661 | ac_cpp_err=yes |
| 15662 | fi |
| 15663 | if test -z "$ac_cpp_err"; then |
| 15664 | ac_header_preproc=yes |
| 15665 | else |
| 15666 | echo "$as_me: failed program was:" >&5 |
| 15667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15668 | |
| 15669 | ac_header_preproc=no |
| 15670 | fi |
| 15671 | |
| 15672 | rm -f conftest.err conftest.$ac_ext |
| 15673 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15674 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15675 | |
| 15676 | # So? What about this header? |
| 15677 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15678 | yes:no: ) |
| 15679 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15680 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15681 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15682 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15683 | ac_header_preproc=yes |
| 15684 | ;; |
| 15685 | no:yes:* ) |
| 15686 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15687 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15688 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15689 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15690 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15691 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15692 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15693 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15694 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15695 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15696 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15697 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15698 | ( cat <<\_ASBOX |
| 15699 | ## ----------------------------------- ## |
| 15700 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15701 | ## ----------------------------------- ## |
| 15702 | _ASBOX |
| 15703 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15704 | ;; |
| 15705 | esac |
| 15706 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15707 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15708 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15710 | else |
| 15711 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15712 | fi |
| 15713 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15714 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15715 | echo "${ECHO_T}$ac_res" >&6; } |
| 15716 | |
| 15717 | fi |
| 15718 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15719 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15720 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15721 | _ACEOF |
| 15722 | |
| 15723 | fi |
| 15724 | |
| 15725 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15726 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15727 | |
| 15728 | |
| 15729 | |
| 15730 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15731 | for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15732 | do |
| 15733 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15734 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15735 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15736 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15737 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15739 | fi |
| 15740 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15741 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15742 | echo "${ECHO_T}$ac_res" >&6; } |
| 15743 | else |
| 15744 | # Is the header compilable? |
| 15745 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15746 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15747 | cat >conftest.$ac_ext <<_ACEOF |
| 15748 | /* confdefs.h. */ |
| 15749 | _ACEOF |
| 15750 | cat confdefs.h >>conftest.$ac_ext |
| 15751 | cat >>conftest.$ac_ext <<_ACEOF |
| 15752 | /* end confdefs.h. */ |
| 15753 | $ac_includes_default |
| 15754 | #include <$ac_header> |
| 15755 | _ACEOF |
| 15756 | rm -f conftest.$ac_objext |
| 15757 | if { (ac_try="$ac_compile" |
| 15758 | case "(($ac_try" in |
| 15759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15760 | *) ac_try_echo=$ac_try;; |
| 15761 | esac |
| 15762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15763 | (eval "$ac_compile") 2>conftest.er1 |
| 15764 | ac_status=$? |
| 15765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15766 | rm -f conftest.er1 |
| 15767 | cat conftest.err >&5 |
| 15768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15769 | (exit $ac_status); } && |
| 15770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15771 | { (case "(($ac_try" in |
| 15772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15773 | *) ac_try_echo=$ac_try;; |
| 15774 | esac |
| 15775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15776 | (eval "$ac_try") 2>&5 |
| 15777 | ac_status=$? |
| 15778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15779 | (exit $ac_status); }; } && |
| 15780 | { ac_try='test -s conftest.$ac_objext' |
| 15781 | { (case "(($ac_try" in |
| 15782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15783 | *) ac_try_echo=$ac_try;; |
| 15784 | esac |
| 15785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15786 | (eval "$ac_try") 2>&5 |
| 15787 | ac_status=$? |
| 15788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15789 | (exit $ac_status); }; }; then |
| 15790 | ac_header_compiler=yes |
| 15791 | else |
| 15792 | echo "$as_me: failed program was:" >&5 |
| 15793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15794 | |
| 15795 | ac_header_compiler=no |
| 15796 | fi |
| 15797 | |
| 15798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15799 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15800 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15801 | |
| 15802 | # Is the header present? |
| 15803 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15804 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15805 | cat >conftest.$ac_ext <<_ACEOF |
| 15806 | /* confdefs.h. */ |
| 15807 | _ACEOF |
| 15808 | cat confdefs.h >>conftest.$ac_ext |
| 15809 | cat >>conftest.$ac_ext <<_ACEOF |
| 15810 | /* end confdefs.h. */ |
| 15811 | #include <$ac_header> |
| 15812 | _ACEOF |
| 15813 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15814 | case "(($ac_try" in |
| 15815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15816 | *) ac_try_echo=$ac_try;; |
| 15817 | esac |
| 15818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15819 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15820 | ac_status=$? |
| 15821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15822 | rm -f conftest.er1 |
| 15823 | cat conftest.err >&5 |
| 15824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15825 | (exit $ac_status); } >/dev/null; then |
| 15826 | if test -s conftest.err; then |
| 15827 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15828 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15829 | else |
| 15830 | ac_cpp_err= |
| 15831 | fi |
| 15832 | else |
| 15833 | ac_cpp_err=yes |
| 15834 | fi |
| 15835 | if test -z "$ac_cpp_err"; then |
| 15836 | ac_header_preproc=yes |
| 15837 | else |
| 15838 | echo "$as_me: failed program was:" >&5 |
| 15839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15840 | |
| 15841 | ac_header_preproc=no |
| 15842 | fi |
| 15843 | |
| 15844 | rm -f conftest.err conftest.$ac_ext |
| 15845 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15846 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15847 | |
| 15848 | # So? What about this header? |
| 15849 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15850 | yes:no: ) |
| 15851 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15852 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15853 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15854 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15855 | ac_header_preproc=yes |
| 15856 | ;; |
| 15857 | no:yes:* ) |
| 15858 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15859 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15860 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15861 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15862 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15863 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15864 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15865 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15866 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15867 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15868 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15869 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15870 | ( cat <<\_ASBOX |
| 15871 | ## ----------------------------------- ## |
| 15872 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15873 | ## ----------------------------------- ## |
| 15874 | _ASBOX |
| 15875 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15876 | ;; |
| 15877 | esac |
| 15878 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15879 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15880 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15882 | else |
| 15883 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15884 | fi |
| 15885 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15886 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15887 | echo "${ECHO_T}$ac_res" >&6; } |
| 15888 | |
| 15889 | fi |
| 15890 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15891 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15892 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15893 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15894 | |
| 15895 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15896 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15897 | done |
| 15898 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15899 | |
| 15900 | |
| 15901 | |
| 15902 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 15903 | 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] | 15904 | do |
| 15905 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15906 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15907 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15908 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15909 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15911 | fi |
| 15912 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15913 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15914 | echo "${ECHO_T}$ac_res" >&6; } |
| 15915 | else |
| 15916 | # Is the header compilable? |
| 15917 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15918 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15919 | cat >conftest.$ac_ext <<_ACEOF |
| 15920 | /* confdefs.h. */ |
| 15921 | _ACEOF |
| 15922 | cat confdefs.h >>conftest.$ac_ext |
| 15923 | cat >>conftest.$ac_ext <<_ACEOF |
| 15924 | /* end confdefs.h. */ |
| 15925 | $ac_includes_default |
| 15926 | #include <$ac_header> |
| 15927 | _ACEOF |
| 15928 | rm -f conftest.$ac_objext |
| 15929 | if { (ac_try="$ac_compile" |
| 15930 | case "(($ac_try" in |
| 15931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15932 | *) ac_try_echo=$ac_try;; |
| 15933 | esac |
| 15934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15935 | (eval "$ac_compile") 2>conftest.er1 |
| 15936 | ac_status=$? |
| 15937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15938 | rm -f conftest.er1 |
| 15939 | cat conftest.err >&5 |
| 15940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15941 | (exit $ac_status); } && |
| 15942 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15943 | { (case "(($ac_try" in |
| 15944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15945 | *) ac_try_echo=$ac_try;; |
| 15946 | esac |
| 15947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15948 | (eval "$ac_try") 2>&5 |
| 15949 | ac_status=$? |
| 15950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15951 | (exit $ac_status); }; } && |
| 15952 | { ac_try='test -s conftest.$ac_objext' |
| 15953 | { (case "(($ac_try" in |
| 15954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15955 | *) ac_try_echo=$ac_try;; |
| 15956 | esac |
| 15957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15958 | (eval "$ac_try") 2>&5 |
| 15959 | ac_status=$? |
| 15960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15961 | (exit $ac_status); }; }; then |
| 15962 | ac_header_compiler=yes |
| 15963 | else |
| 15964 | echo "$as_me: failed program was:" >&5 |
| 15965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15966 | |
| 15967 | ac_header_compiler=no |
| 15968 | fi |
| 15969 | |
| 15970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15971 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15972 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15973 | |
| 15974 | # Is the header present? |
| 15975 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15976 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15977 | cat >conftest.$ac_ext <<_ACEOF |
| 15978 | /* confdefs.h. */ |
| 15979 | _ACEOF |
| 15980 | cat confdefs.h >>conftest.$ac_ext |
| 15981 | cat >>conftest.$ac_ext <<_ACEOF |
| 15982 | /* end confdefs.h. */ |
| 15983 | #include <$ac_header> |
| 15984 | _ACEOF |
| 15985 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15986 | case "(($ac_try" in |
| 15987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15988 | *) ac_try_echo=$ac_try;; |
| 15989 | esac |
| 15990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15991 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15992 | ac_status=$? |
| 15993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15994 | rm -f conftest.er1 |
| 15995 | cat conftest.err >&5 |
| 15996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15997 | (exit $ac_status); } >/dev/null; then |
| 15998 | if test -s conftest.err; then |
| 15999 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16000 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16001 | else |
| 16002 | ac_cpp_err= |
| 16003 | fi |
| 16004 | else |
| 16005 | ac_cpp_err=yes |
| 16006 | fi |
| 16007 | if test -z "$ac_cpp_err"; then |
| 16008 | ac_header_preproc=yes |
| 16009 | else |
| 16010 | echo "$as_me: failed program was:" >&5 |
| 16011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16012 | |
| 16013 | ac_header_preproc=no |
| 16014 | fi |
| 16015 | |
| 16016 | rm -f conftest.err conftest.$ac_ext |
| 16017 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16018 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16019 | |
| 16020 | # So? What about this header? |
| 16021 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16022 | yes:no: ) |
| 16023 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16024 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16025 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16026 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16027 | ac_header_preproc=yes |
| 16028 | ;; |
| 16029 | no:yes:* ) |
| 16030 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16031 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16032 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16033 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16034 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16035 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16036 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16037 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16038 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16039 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16040 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16041 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16042 | ( cat <<\_ASBOX |
| 16043 | ## ----------------------------------- ## |
| 16044 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16045 | ## ----------------------------------- ## |
| 16046 | _ASBOX |
| 16047 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16048 | ;; |
| 16049 | esac |
| 16050 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16051 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16052 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16054 | else |
| 16055 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16056 | fi |
| 16057 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16058 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16059 | echo "${ECHO_T}$ac_res" >&6; } |
| 16060 | |
| 16061 | fi |
| 16062 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16063 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16064 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16065 | _ACEOF |
| 16066 | |
| 16067 | fi |
| 16068 | |
| 16069 | done |
| 16070 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16071 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16072 | |
| 16073 | for ac_header in pthread.h |
| 16074 | do |
| 16075 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16076 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16077 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16078 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16079 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16081 | fi |
| 16082 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16083 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16084 | echo "${ECHO_T}$ac_res" >&6; } |
| 16085 | else |
| 16086 | # Is the header compilable? |
| 16087 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16088 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16089 | cat >conftest.$ac_ext <<_ACEOF |
| 16090 | /* confdefs.h. */ |
| 16091 | _ACEOF |
| 16092 | cat confdefs.h >>conftest.$ac_ext |
| 16093 | cat >>conftest.$ac_ext <<_ACEOF |
| 16094 | /* end confdefs.h. */ |
| 16095 | $ac_includes_default |
| 16096 | #include <$ac_header> |
| 16097 | _ACEOF |
| 16098 | rm -f conftest.$ac_objext |
| 16099 | if { (ac_try="$ac_compile" |
| 16100 | case "(($ac_try" in |
| 16101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16102 | *) ac_try_echo=$ac_try;; |
| 16103 | esac |
| 16104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16105 | (eval "$ac_compile") 2>conftest.er1 |
| 16106 | ac_status=$? |
| 16107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16108 | rm -f conftest.er1 |
| 16109 | cat conftest.err >&5 |
| 16110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16111 | (exit $ac_status); } && |
| 16112 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16113 | { (case "(($ac_try" in |
| 16114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16115 | *) ac_try_echo=$ac_try;; |
| 16116 | esac |
| 16117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16118 | (eval "$ac_try") 2>&5 |
| 16119 | ac_status=$? |
| 16120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16121 | (exit $ac_status); }; } && |
| 16122 | { ac_try='test -s conftest.$ac_objext' |
| 16123 | { (case "(($ac_try" in |
| 16124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16125 | *) ac_try_echo=$ac_try;; |
| 16126 | esac |
| 16127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16128 | (eval "$ac_try") 2>&5 |
| 16129 | ac_status=$? |
| 16130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16131 | (exit $ac_status); }; }; then |
| 16132 | ac_header_compiler=yes |
| 16133 | else |
| 16134 | echo "$as_me: failed program was:" >&5 |
| 16135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16136 | |
| 16137 | ac_header_compiler=no |
| 16138 | fi |
| 16139 | |
| 16140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16141 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16142 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16143 | |
| 16144 | # Is the header present? |
| 16145 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16146 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16147 | cat >conftest.$ac_ext <<_ACEOF |
| 16148 | /* confdefs.h. */ |
| 16149 | _ACEOF |
| 16150 | cat confdefs.h >>conftest.$ac_ext |
| 16151 | cat >>conftest.$ac_ext <<_ACEOF |
| 16152 | /* end confdefs.h. */ |
| 16153 | #include <$ac_header> |
| 16154 | _ACEOF |
| 16155 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16156 | case "(($ac_try" in |
| 16157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16158 | *) ac_try_echo=$ac_try;; |
| 16159 | esac |
| 16160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16161 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16162 | ac_status=$? |
| 16163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16164 | rm -f conftest.er1 |
| 16165 | cat conftest.err >&5 |
| 16166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16167 | (exit $ac_status); } >/dev/null; then |
| 16168 | if test -s conftest.err; then |
| 16169 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16170 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16171 | else |
| 16172 | ac_cpp_err= |
| 16173 | fi |
| 16174 | else |
| 16175 | ac_cpp_err=yes |
| 16176 | fi |
| 16177 | if test -z "$ac_cpp_err"; then |
| 16178 | ac_header_preproc=yes |
| 16179 | else |
| 16180 | echo "$as_me: failed program was:" >&5 |
| 16181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16182 | |
| 16183 | ac_header_preproc=no |
| 16184 | fi |
| 16185 | |
| 16186 | rm -f conftest.err conftest.$ac_ext |
| 16187 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16188 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16189 | |
| 16190 | # So? What about this header? |
| 16191 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16192 | yes:no: ) |
| 16193 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16194 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16195 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16196 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16197 | ac_header_preproc=yes |
| 16198 | ;; |
| 16199 | no:yes:* ) |
| 16200 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16201 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16202 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16203 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16204 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16205 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16206 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16207 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16208 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16209 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16210 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16211 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16212 | ( cat <<\_ASBOX |
| 16213 | ## ----------------------------------- ## |
| 16214 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16215 | ## ----------------------------------- ## |
| 16216 | _ASBOX |
| 16217 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16218 | ;; |
| 16219 | esac |
| 16220 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16221 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16222 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16224 | else |
| 16225 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16226 | fi |
| 16227 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16228 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16229 | echo "${ECHO_T}$ac_res" >&6; } |
| 16230 | |
| 16231 | fi |
| 16232 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16233 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16234 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16235 | _ACEOF |
| 16236 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16237 | |
| 16238 | else |
| 16239 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16240 | |
| 16241 | fi |
| 16242 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16243 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16244 | |
| 16245 | else |
| 16246 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16247 | |
| 16248 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16249 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16250 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16251 | |
| 16252 | |
| 16253 | for ac_header in ffi.h ffi/ffi.h |
| 16254 | do |
| 16255 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16256 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16257 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16258 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16259 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16261 | fi |
| 16262 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16263 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16264 | echo "${ECHO_T}$ac_res" >&6; } |
| 16265 | else |
| 16266 | # Is the header compilable? |
| 16267 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16268 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16269 | cat >conftest.$ac_ext <<_ACEOF |
| 16270 | /* confdefs.h. */ |
| 16271 | _ACEOF |
| 16272 | cat confdefs.h >>conftest.$ac_ext |
| 16273 | cat >>conftest.$ac_ext <<_ACEOF |
| 16274 | /* end confdefs.h. */ |
| 16275 | $ac_includes_default |
| 16276 | #include <$ac_header> |
| 16277 | _ACEOF |
| 16278 | rm -f conftest.$ac_objext |
| 16279 | if { (ac_try="$ac_compile" |
| 16280 | case "(($ac_try" in |
| 16281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16282 | *) ac_try_echo=$ac_try;; |
| 16283 | esac |
| 16284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16285 | (eval "$ac_compile") 2>conftest.er1 |
| 16286 | ac_status=$? |
| 16287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16288 | rm -f conftest.er1 |
| 16289 | cat conftest.err >&5 |
| 16290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16291 | (exit $ac_status); } && |
| 16292 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 16299 | ac_status=$? |
| 16300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16301 | (exit $ac_status); }; } && |
| 16302 | { ac_try='test -s conftest.$ac_objext' |
| 16303 | { (case "(($ac_try" in |
| 16304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16305 | *) ac_try_echo=$ac_try;; |
| 16306 | esac |
| 16307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16308 | (eval "$ac_try") 2>&5 |
| 16309 | ac_status=$? |
| 16310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16311 | (exit $ac_status); }; }; then |
| 16312 | ac_header_compiler=yes |
| 16313 | else |
| 16314 | echo "$as_me: failed program was:" >&5 |
| 16315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16316 | |
| 16317 | ac_header_compiler=no |
| 16318 | fi |
| 16319 | |
| 16320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16321 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16322 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16323 | |
| 16324 | # Is the header present? |
| 16325 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16326 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16327 | cat >conftest.$ac_ext <<_ACEOF |
| 16328 | /* confdefs.h. */ |
| 16329 | _ACEOF |
| 16330 | cat confdefs.h >>conftest.$ac_ext |
| 16331 | cat >>conftest.$ac_ext <<_ACEOF |
| 16332 | /* end confdefs.h. */ |
| 16333 | #include <$ac_header> |
| 16334 | _ACEOF |
| 16335 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16336 | case "(($ac_try" in |
| 16337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16338 | *) ac_try_echo=$ac_try;; |
| 16339 | esac |
| 16340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16341 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16342 | ac_status=$? |
| 16343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16344 | rm -f conftest.er1 |
| 16345 | cat conftest.err >&5 |
| 16346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16347 | (exit $ac_status); } >/dev/null; then |
| 16348 | if test -s conftest.err; then |
| 16349 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16350 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16351 | else |
| 16352 | ac_cpp_err= |
| 16353 | fi |
| 16354 | else |
| 16355 | ac_cpp_err=yes |
| 16356 | fi |
| 16357 | if test -z "$ac_cpp_err"; then |
| 16358 | ac_header_preproc=yes |
| 16359 | else |
| 16360 | echo "$as_me: failed program was:" >&5 |
| 16361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16362 | |
| 16363 | ac_header_preproc=no |
| 16364 | fi |
| 16365 | |
| 16366 | rm -f conftest.err conftest.$ac_ext |
| 16367 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16368 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16369 | |
| 16370 | # So? What about this header? |
| 16371 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16372 | yes:no: ) |
| 16373 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16374 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16375 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16376 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16377 | ac_header_preproc=yes |
| 16378 | ;; |
| 16379 | no:yes:* ) |
| 16380 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16381 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16382 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16383 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16384 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16385 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16386 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16387 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16388 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16389 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16390 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16391 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16392 | ( cat <<\_ASBOX |
| 16393 | ## ----------------------------------- ## |
| 16394 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16395 | ## ----------------------------------- ## |
| 16396 | _ASBOX |
| 16397 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16398 | ;; |
| 16399 | esac |
| 16400 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16401 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16402 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16404 | else |
| 16405 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16406 | fi |
| 16407 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16408 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16409 | echo "${ECHO_T}$ac_res" >&6; } |
| 16410 | |
| 16411 | fi |
| 16412 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16413 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16414 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16415 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16416 | |
| 16417 | fi |
| 16418 | |
| 16419 | done |
| 16420 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16421 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16422 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 16423 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16424 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16425 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16426 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 16427 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 16428 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 16429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16430 | else |
| 16431 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16432 | ac_ext=cpp |
| 16433 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16434 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16435 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16436 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16437 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16438 | CXXFLAGS=-pedantic |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16439 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16440 | ac_cv_huge_val_sanity=yes |
| 16441 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16442 | cat >conftest.$ac_ext <<_ACEOF |
| 16443 | /* confdefs.h. */ |
| 16444 | _ACEOF |
| 16445 | cat confdefs.h >>conftest.$ac_ext |
| 16446 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16447 | /* end confdefs.h. */ |
| 16448 | #include <math.h> |
| 16449 | int |
| 16450 | main () |
| 16451 | { |
| 16452 | double x = HUGE_VAL; return x != x; |
| 16453 | ; |
| 16454 | return 0; |
| 16455 | } |
| 16456 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16457 | rm -f conftest$ac_exeext |
| 16458 | if { (ac_try="$ac_link" |
| 16459 | case "(($ac_try" in |
| 16460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16461 | *) ac_try_echo=$ac_try;; |
| 16462 | esac |
| 16463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16464 | (eval "$ac_link") 2>&5 |
| 16465 | ac_status=$? |
| 16466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16467 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16468 | { (case "(($ac_try" in |
| 16469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16470 | *) ac_try_echo=$ac_try;; |
| 16471 | esac |
| 16472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16473 | (eval "$ac_try") 2>&5 |
| 16474 | ac_status=$? |
| 16475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16476 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16477 | ac_cv_huge_val_sanity=yes |
| 16478 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16479 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16480 | echo "$as_me: failed program was:" >&5 |
| 16481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16482 | |
| 16483 | ( exit $ac_status ) |
| 16484 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16485 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16486 | 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] | 16487 | fi |
| 16488 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16489 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16490 | ac_ext=c |
| 16491 | ac_cpp='$CPP $CPPFLAGS' |
| 16492 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16493 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16494 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16495 | |
| 16496 | |
| 16497 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16498 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 16499 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16500 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 16501 | |
| 16502 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16503 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 16504 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 16505 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 16506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16507 | else |
| 16508 | cat >conftest.$ac_ext <<_ACEOF |
| 16509 | /* confdefs.h. */ |
| 16510 | _ACEOF |
| 16511 | cat confdefs.h >>conftest.$ac_ext |
| 16512 | cat >>conftest.$ac_ext <<_ACEOF |
| 16513 | /* end confdefs.h. */ |
| 16514 | $ac_includes_default |
| 16515 | typedef pid_t ac__type_new_; |
| 16516 | int |
| 16517 | main () |
| 16518 | { |
| 16519 | if ((ac__type_new_ *) 0) |
| 16520 | return 0; |
| 16521 | if (sizeof (ac__type_new_)) |
| 16522 | return 0; |
| 16523 | ; |
| 16524 | return 0; |
| 16525 | } |
| 16526 | _ACEOF |
| 16527 | rm -f conftest.$ac_objext |
| 16528 | if { (ac_try="$ac_compile" |
| 16529 | case "(($ac_try" in |
| 16530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16531 | *) ac_try_echo=$ac_try;; |
| 16532 | esac |
| 16533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16534 | (eval "$ac_compile") 2>conftest.er1 |
| 16535 | ac_status=$? |
| 16536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16537 | rm -f conftest.er1 |
| 16538 | cat conftest.err >&5 |
| 16539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16540 | (exit $ac_status); } && |
| 16541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16542 | { (case "(($ac_try" in |
| 16543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16544 | *) ac_try_echo=$ac_try;; |
| 16545 | esac |
| 16546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16547 | (eval "$ac_try") 2>&5 |
| 16548 | ac_status=$? |
| 16549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16550 | (exit $ac_status); }; } && |
| 16551 | { ac_try='test -s conftest.$ac_objext' |
| 16552 | { (case "(($ac_try" in |
| 16553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16554 | *) ac_try_echo=$ac_try;; |
| 16555 | esac |
| 16556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16557 | (eval "$ac_try") 2>&5 |
| 16558 | ac_status=$? |
| 16559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16560 | (exit $ac_status); }; }; then |
| 16561 | ac_cv_type_pid_t=yes |
| 16562 | else |
| 16563 | echo "$as_me: failed program was:" >&5 |
| 16564 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16565 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16566 | ac_cv_type_pid_t=no |
| 16567 | fi |
| 16568 | |
| 16569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16570 | fi |
| 16571 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 16572 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 16573 | if test $ac_cv_type_pid_t = yes; then |
| 16574 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16575 | else |
| 16576 | |
| 16577 | cat >>confdefs.h <<_ACEOF |
| 16578 | #define pid_t int |
| 16579 | _ACEOF |
| 16580 | |
| 16581 | fi |
| 16582 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16583 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 16584 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 16585 | if test "${ac_cv_type_size_t+set}" = set; then |
| 16586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16587 | else |
| 16588 | cat >conftest.$ac_ext <<_ACEOF |
| 16589 | /* confdefs.h. */ |
| 16590 | _ACEOF |
| 16591 | cat confdefs.h >>conftest.$ac_ext |
| 16592 | cat >>conftest.$ac_ext <<_ACEOF |
| 16593 | /* end confdefs.h. */ |
| 16594 | $ac_includes_default |
| 16595 | typedef size_t ac__type_new_; |
| 16596 | int |
| 16597 | main () |
| 16598 | { |
| 16599 | if ((ac__type_new_ *) 0) |
| 16600 | return 0; |
| 16601 | if (sizeof (ac__type_new_)) |
| 16602 | return 0; |
| 16603 | ; |
| 16604 | return 0; |
| 16605 | } |
| 16606 | _ACEOF |
| 16607 | rm -f conftest.$ac_objext |
| 16608 | if { (ac_try="$ac_compile" |
| 16609 | case "(($ac_try" in |
| 16610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16611 | *) ac_try_echo=$ac_try;; |
| 16612 | esac |
| 16613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16614 | (eval "$ac_compile") 2>conftest.er1 |
| 16615 | ac_status=$? |
| 16616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16617 | rm -f conftest.er1 |
| 16618 | cat conftest.err >&5 |
| 16619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16620 | (exit $ac_status); } && |
| 16621 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16622 | { (case "(($ac_try" in |
| 16623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16624 | *) ac_try_echo=$ac_try;; |
| 16625 | esac |
| 16626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16627 | (eval "$ac_try") 2>&5 |
| 16628 | ac_status=$? |
| 16629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16630 | (exit $ac_status); }; } && |
| 16631 | { ac_try='test -s conftest.$ac_objext' |
| 16632 | { (case "(($ac_try" in |
| 16633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16634 | *) ac_try_echo=$ac_try;; |
| 16635 | esac |
| 16636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16637 | (eval "$ac_try") 2>&5 |
| 16638 | ac_status=$? |
| 16639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16640 | (exit $ac_status); }; }; then |
| 16641 | ac_cv_type_size_t=yes |
| 16642 | else |
| 16643 | echo "$as_me: failed program was:" >&5 |
| 16644 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16645 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16646 | ac_cv_type_size_t=no |
| 16647 | fi |
| 16648 | |
| 16649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16650 | fi |
| 16651 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 16652 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 16653 | if test $ac_cv_type_size_t = yes; then |
| 16654 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16655 | else |
| 16656 | |
| 16657 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16658 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16659 | _ACEOF |
| 16660 | |
| 16661 | fi |
| 16662 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16663 | |
| 16664 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16665 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16666 | _ACEOF |
| 16667 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16668 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 16669 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 16670 | if test "${ac_cv_struct_tm+set}" = set; then |
| 16671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16672 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16673 | cat >conftest.$ac_ext <<_ACEOF |
| 16674 | /* confdefs.h. */ |
| 16675 | _ACEOF |
| 16676 | cat confdefs.h >>conftest.$ac_ext |
| 16677 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16678 | /* end confdefs.h. */ |
| 16679 | #include <sys/types.h> |
| 16680 | #include <time.h> |
| 16681 | |
| 16682 | int |
| 16683 | main () |
| 16684 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16685 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16686 | ; |
| 16687 | return 0; |
| 16688 | } |
| 16689 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16690 | rm -f conftest.$ac_objext |
| 16691 | if { (ac_try="$ac_compile" |
| 16692 | case "(($ac_try" in |
| 16693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16694 | *) ac_try_echo=$ac_try;; |
| 16695 | esac |
| 16696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16697 | (eval "$ac_compile") 2>conftest.er1 |
| 16698 | ac_status=$? |
| 16699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16700 | rm -f conftest.er1 |
| 16701 | cat conftest.err >&5 |
| 16702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16703 | (exit $ac_status); } && |
| 16704 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16705 | { (case "(($ac_try" in |
| 16706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16707 | *) ac_try_echo=$ac_try;; |
| 16708 | esac |
| 16709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16710 | (eval "$ac_try") 2>&5 |
| 16711 | ac_status=$? |
| 16712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16713 | (exit $ac_status); }; } && |
| 16714 | { ac_try='test -s conftest.$ac_objext' |
| 16715 | { (case "(($ac_try" in |
| 16716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16717 | *) ac_try_echo=$ac_try;; |
| 16718 | esac |
| 16719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16720 | (eval "$ac_try") 2>&5 |
| 16721 | ac_status=$? |
| 16722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16723 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16724 | ac_cv_struct_tm=time.h |
| 16725 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16726 | echo "$as_me: failed program was:" >&5 |
| 16727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16728 | |
| 16729 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16730 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16731 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16733 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16734 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 16735 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16736 | if test $ac_cv_struct_tm = sys/time.h; then |
| 16737 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16738 | cat >>confdefs.h <<\_ACEOF |
| 16739 | #define TM_IN_SYS_TIME 1 |
| 16740 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16741 | |
| 16742 | fi |
| 16743 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16744 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 16745 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 16746 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 16747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16748 | else |
| 16749 | cat >conftest.$ac_ext <<_ACEOF |
| 16750 | /* confdefs.h. */ |
| 16751 | _ACEOF |
| 16752 | cat confdefs.h >>conftest.$ac_ext |
| 16753 | cat >>conftest.$ac_ext <<_ACEOF |
| 16754 | /* end confdefs.h. */ |
| 16755 | $ac_includes_default |
| 16756 | typedef int64_t ac__type_new_; |
| 16757 | int |
| 16758 | main () |
| 16759 | { |
| 16760 | if ((ac__type_new_ *) 0) |
| 16761 | return 0; |
| 16762 | if (sizeof (ac__type_new_)) |
| 16763 | return 0; |
| 16764 | ; |
| 16765 | return 0; |
| 16766 | } |
| 16767 | _ACEOF |
| 16768 | rm -f conftest.$ac_objext |
| 16769 | if { (ac_try="$ac_compile" |
| 16770 | case "(($ac_try" in |
| 16771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16772 | *) ac_try_echo=$ac_try;; |
| 16773 | esac |
| 16774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16775 | (eval "$ac_compile") 2>conftest.er1 |
| 16776 | ac_status=$? |
| 16777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16778 | rm -f conftest.er1 |
| 16779 | cat conftest.err >&5 |
| 16780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16781 | (exit $ac_status); } && |
| 16782 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16783 | { (case "(($ac_try" in |
| 16784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16785 | *) ac_try_echo=$ac_try;; |
| 16786 | esac |
| 16787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16788 | (eval "$ac_try") 2>&5 |
| 16789 | ac_status=$? |
| 16790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16791 | (exit $ac_status); }; } && |
| 16792 | { ac_try='test -s conftest.$ac_objext' |
| 16793 | { (case "(($ac_try" in |
| 16794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16795 | *) ac_try_echo=$ac_try;; |
| 16796 | esac |
| 16797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16798 | (eval "$ac_try") 2>&5 |
| 16799 | ac_status=$? |
| 16800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16801 | (exit $ac_status); }; }; then |
| 16802 | ac_cv_type_int64_t=yes |
| 16803 | else |
| 16804 | echo "$as_me: failed program was:" >&5 |
| 16805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16806 | |
| 16807 | ac_cv_type_int64_t=no |
| 16808 | fi |
| 16809 | |
| 16810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16811 | fi |
| 16812 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 16813 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 16814 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16815 | |
| 16816 | cat >>confdefs.h <<_ACEOF |
| 16817 | #define HAVE_INT64_T 1 |
| 16818 | _ACEOF |
| 16819 | |
| 16820 | |
| 16821 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16822 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 16823 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 16824 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16825 | fi |
| 16826 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16827 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 16828 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 16829 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 16830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16831 | else |
| 16832 | cat >conftest.$ac_ext <<_ACEOF |
| 16833 | /* confdefs.h. */ |
| 16834 | _ACEOF |
| 16835 | cat confdefs.h >>conftest.$ac_ext |
| 16836 | cat >>conftest.$ac_ext <<_ACEOF |
| 16837 | /* end confdefs.h. */ |
| 16838 | $ac_includes_default |
| 16839 | typedef uint64_t ac__type_new_; |
| 16840 | int |
| 16841 | main () |
| 16842 | { |
| 16843 | if ((ac__type_new_ *) 0) |
| 16844 | return 0; |
| 16845 | if (sizeof (ac__type_new_)) |
| 16846 | return 0; |
| 16847 | ; |
| 16848 | return 0; |
| 16849 | } |
| 16850 | _ACEOF |
| 16851 | rm -f conftest.$ac_objext |
| 16852 | if { (ac_try="$ac_compile" |
| 16853 | case "(($ac_try" in |
| 16854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16855 | *) ac_try_echo=$ac_try;; |
| 16856 | esac |
| 16857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16858 | (eval "$ac_compile") 2>conftest.er1 |
| 16859 | ac_status=$? |
| 16860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16861 | rm -f conftest.er1 |
| 16862 | cat conftest.err >&5 |
| 16863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16864 | (exit $ac_status); } && |
| 16865 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16866 | { (case "(($ac_try" in |
| 16867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16868 | *) ac_try_echo=$ac_try;; |
| 16869 | esac |
| 16870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16871 | (eval "$ac_try") 2>&5 |
| 16872 | ac_status=$? |
| 16873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16874 | (exit $ac_status); }; } && |
| 16875 | { ac_try='test -s conftest.$ac_objext' |
| 16876 | { (case "(($ac_try" in |
| 16877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16878 | *) ac_try_echo=$ac_try;; |
| 16879 | esac |
| 16880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16881 | (eval "$ac_try") 2>&5 |
| 16882 | ac_status=$? |
| 16883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16884 | (exit $ac_status); }; }; then |
| 16885 | ac_cv_type_uint64_t=yes |
| 16886 | else |
| 16887 | echo "$as_me: failed program was:" >&5 |
| 16888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16889 | |
| 16890 | ac_cv_type_uint64_t=no |
| 16891 | fi |
| 16892 | |
| 16893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16894 | fi |
| 16895 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 16896 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 16897 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16898 | |
| 16899 | cat >>confdefs.h <<_ACEOF |
| 16900 | #define HAVE_UINT64_T 1 |
| 16901 | _ACEOF |
| 16902 | |
| 16903 | |
| 16904 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16905 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 16906 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 16907 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 16908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16909 | else |
| 16910 | cat >conftest.$ac_ext <<_ACEOF |
| 16911 | /* confdefs.h. */ |
| 16912 | _ACEOF |
| 16913 | cat confdefs.h >>conftest.$ac_ext |
| 16914 | cat >>conftest.$ac_ext <<_ACEOF |
| 16915 | /* end confdefs.h. */ |
| 16916 | $ac_includes_default |
| 16917 | typedef u_int64_t ac__type_new_; |
| 16918 | int |
| 16919 | main () |
| 16920 | { |
| 16921 | if ((ac__type_new_ *) 0) |
| 16922 | return 0; |
| 16923 | if (sizeof (ac__type_new_)) |
| 16924 | return 0; |
| 16925 | ; |
| 16926 | return 0; |
| 16927 | } |
| 16928 | _ACEOF |
| 16929 | rm -f conftest.$ac_objext |
| 16930 | if { (ac_try="$ac_compile" |
| 16931 | case "(($ac_try" in |
| 16932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16933 | *) ac_try_echo=$ac_try;; |
| 16934 | esac |
| 16935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16936 | (eval "$ac_compile") 2>conftest.er1 |
| 16937 | ac_status=$? |
| 16938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16939 | rm -f conftest.er1 |
| 16940 | cat conftest.err >&5 |
| 16941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16942 | (exit $ac_status); } && |
| 16943 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16944 | { (case "(($ac_try" in |
| 16945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16946 | *) ac_try_echo=$ac_try;; |
| 16947 | esac |
| 16948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16949 | (eval "$ac_try") 2>&5 |
| 16950 | ac_status=$? |
| 16951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16952 | (exit $ac_status); }; } && |
| 16953 | { ac_try='test -s conftest.$ac_objext' |
| 16954 | { (case "(($ac_try" in |
| 16955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16956 | *) ac_try_echo=$ac_try;; |
| 16957 | esac |
| 16958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16959 | (eval "$ac_try") 2>&5 |
| 16960 | ac_status=$? |
| 16961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16962 | (exit $ac_status); }; }; then |
| 16963 | ac_cv_type_u_int64_t=yes |
| 16964 | else |
| 16965 | echo "$as_me: failed program was:" >&5 |
| 16966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16967 | |
| 16968 | ac_cv_type_u_int64_t=no |
| 16969 | fi |
| 16970 | |
| 16971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16972 | fi |
| 16973 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 16974 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 16975 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16976 | |
| 16977 | cat >>confdefs.h <<_ACEOF |
| 16978 | #define HAVE_U_INT64_T 1 |
| 16979 | _ACEOF |
| 16980 | |
| 16981 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16982 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16983 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 16984 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 16985 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16986 | fi |
| 16987 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16988 | fi |
| 16989 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16990 | |
| 16991 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16992 | |
| 16993 | |
| 16994 | |
| 16995 | |
| 16996 | |
| 16997 | |
| 16998 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 16999 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17000 | do |
| 17001 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17002 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17003 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17004 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17006 | else |
| 17007 | cat >conftest.$ac_ext <<_ACEOF |
| 17008 | /* confdefs.h. */ |
| 17009 | _ACEOF |
| 17010 | cat confdefs.h >>conftest.$ac_ext |
| 17011 | cat >>conftest.$ac_ext <<_ACEOF |
| 17012 | /* end confdefs.h. */ |
| 17013 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17014 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17015 | #define $ac_func innocuous_$ac_func |
| 17016 | |
| 17017 | /* System header to define __stub macros and hopefully few prototypes, |
| 17018 | which can conflict with char $ac_func (); below. |
| 17019 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17020 | <limits.h> exists even on freestanding compilers. */ |
| 17021 | |
| 17022 | #ifdef __STDC__ |
| 17023 | # include <limits.h> |
| 17024 | #else |
| 17025 | # include <assert.h> |
| 17026 | #endif |
| 17027 | |
| 17028 | #undef $ac_func |
| 17029 | |
| 17030 | /* Override any GCC internal prototype to avoid an error. |
| 17031 | Use char because int might match the return type of a GCC |
| 17032 | builtin and then its argument prototype would still apply. */ |
| 17033 | #ifdef __cplusplus |
| 17034 | extern "C" |
| 17035 | #endif |
| 17036 | char $ac_func (); |
| 17037 | /* The GNU C library defines this for functions which it implements |
| 17038 | to always fail with ENOSYS. Some functions are actually named |
| 17039 | something starting with __ and the normal name is an alias. */ |
| 17040 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17041 | choke me |
| 17042 | #endif |
| 17043 | |
| 17044 | int |
| 17045 | main () |
| 17046 | { |
| 17047 | return $ac_func (); |
| 17048 | ; |
| 17049 | return 0; |
| 17050 | } |
| 17051 | _ACEOF |
| 17052 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17053 | if { (ac_try="$ac_link" |
| 17054 | case "(($ac_try" in |
| 17055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17056 | *) ac_try_echo=$ac_try;; |
| 17057 | esac |
| 17058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17059 | (eval "$ac_link") 2>conftest.er1 |
| 17060 | ac_status=$? |
| 17061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17062 | rm -f conftest.er1 |
| 17063 | cat conftest.err >&5 |
| 17064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17065 | (exit $ac_status); } && |
| 17066 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17067 | { (case "(($ac_try" in |
| 17068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17069 | *) ac_try_echo=$ac_try;; |
| 17070 | esac |
| 17071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17072 | (eval "$ac_try") 2>&5 |
| 17073 | ac_status=$? |
| 17074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17075 | (exit $ac_status); }; } && |
| 17076 | { ac_try='test -s conftest$ac_exeext' |
| 17077 | { (case "(($ac_try" in |
| 17078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17079 | *) ac_try_echo=$ac_try;; |
| 17080 | esac |
| 17081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17082 | (eval "$ac_try") 2>&5 |
| 17083 | ac_status=$? |
| 17084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17085 | (exit $ac_status); }; }; then |
| 17086 | eval "$as_ac_var=yes" |
| 17087 | else |
| 17088 | echo "$as_me: failed program was:" >&5 |
| 17089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17090 | |
| 17091 | eval "$as_ac_var=no" |
| 17092 | fi |
| 17093 | |
| 17094 | rm -f core conftest.err conftest.$ac_objext \ |
| 17095 | conftest$ac_exeext conftest.$ac_ext |
| 17096 | fi |
| 17097 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17098 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17099 | echo "${ECHO_T}$ac_res" >&6; } |
| 17100 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17101 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17102 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17103 | _ACEOF |
| 17104 | |
| 17105 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17106 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17107 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17108 | |
| 17109 | |
| 17110 | |
| 17111 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17112 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17113 | do |
| 17114 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17115 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17116 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17117 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17119 | else |
| 17120 | cat >conftest.$ac_ext <<_ACEOF |
| 17121 | /* confdefs.h. */ |
| 17122 | _ACEOF |
| 17123 | cat confdefs.h >>conftest.$ac_ext |
| 17124 | cat >>conftest.$ac_ext <<_ACEOF |
| 17125 | /* end confdefs.h. */ |
| 17126 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17127 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17128 | #define $ac_func innocuous_$ac_func |
| 17129 | |
| 17130 | /* System header to define __stub macros and hopefully few prototypes, |
| 17131 | which can conflict with char $ac_func (); below. |
| 17132 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17133 | <limits.h> exists even on freestanding compilers. */ |
| 17134 | |
| 17135 | #ifdef __STDC__ |
| 17136 | # include <limits.h> |
| 17137 | #else |
| 17138 | # include <assert.h> |
| 17139 | #endif |
| 17140 | |
| 17141 | #undef $ac_func |
| 17142 | |
| 17143 | /* Override any GCC internal prototype to avoid an error. |
| 17144 | Use char because int might match the return type of a GCC |
| 17145 | builtin and then its argument prototype would still apply. */ |
| 17146 | #ifdef __cplusplus |
| 17147 | extern "C" |
| 17148 | #endif |
| 17149 | char $ac_func (); |
| 17150 | /* The GNU C library defines this for functions which it implements |
| 17151 | to always fail with ENOSYS. Some functions are actually named |
| 17152 | something starting with __ and the normal name is an alias. */ |
| 17153 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17154 | choke me |
| 17155 | #endif |
| 17156 | |
| 17157 | int |
| 17158 | main () |
| 17159 | { |
| 17160 | return $ac_func (); |
| 17161 | ; |
| 17162 | return 0; |
| 17163 | } |
| 17164 | _ACEOF |
| 17165 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17166 | if { (ac_try="$ac_link" |
| 17167 | case "(($ac_try" in |
| 17168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17169 | *) ac_try_echo=$ac_try;; |
| 17170 | esac |
| 17171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17172 | (eval "$ac_link") 2>conftest.er1 |
| 17173 | ac_status=$? |
| 17174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17175 | rm -f conftest.er1 |
| 17176 | cat conftest.err >&5 |
| 17177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17178 | (exit $ac_status); } && |
| 17179 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17180 | { (case "(($ac_try" in |
| 17181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17182 | *) ac_try_echo=$ac_try;; |
| 17183 | esac |
| 17184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17185 | (eval "$ac_try") 2>&5 |
| 17186 | ac_status=$? |
| 17187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17188 | (exit $ac_status); }; } && |
| 17189 | { ac_try='test -s conftest$ac_exeext' |
| 17190 | { (case "(($ac_try" in |
| 17191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17192 | *) ac_try_echo=$ac_try;; |
| 17193 | esac |
| 17194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17195 | (eval "$ac_try") 2>&5 |
| 17196 | ac_status=$? |
| 17197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17198 | (exit $ac_status); }; }; then |
| 17199 | eval "$as_ac_var=yes" |
| 17200 | else |
| 17201 | echo "$as_me: failed program was:" >&5 |
| 17202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17203 | |
| 17204 | eval "$as_ac_var=no" |
| 17205 | fi |
| 17206 | |
| 17207 | rm -f core conftest.err conftest.$ac_objext \ |
| 17208 | conftest$ac_exeext conftest.$ac_ext |
| 17209 | fi |
| 17210 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17211 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17212 | echo "${ECHO_T}$ac_res" >&6; } |
| 17213 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17214 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17215 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17216 | _ACEOF |
| 17217 | |
| 17218 | fi |
| 17219 | done |
| 17220 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17221 | |
| 17222 | |
| 17223 | |
| 17224 | |
| 17225 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17226 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17227 | do |
| 17228 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17229 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17230 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17231 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17233 | else |
| 17234 | cat >conftest.$ac_ext <<_ACEOF |
| 17235 | /* confdefs.h. */ |
| 17236 | _ACEOF |
| 17237 | cat confdefs.h >>conftest.$ac_ext |
| 17238 | cat >>conftest.$ac_ext <<_ACEOF |
| 17239 | /* end confdefs.h. */ |
| 17240 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17241 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17242 | #define $ac_func innocuous_$ac_func |
| 17243 | |
| 17244 | /* System header to define __stub macros and hopefully few prototypes, |
| 17245 | which can conflict with char $ac_func (); below. |
| 17246 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17247 | <limits.h> exists even on freestanding compilers. */ |
| 17248 | |
| 17249 | #ifdef __STDC__ |
| 17250 | # include <limits.h> |
| 17251 | #else |
| 17252 | # include <assert.h> |
| 17253 | #endif |
| 17254 | |
| 17255 | #undef $ac_func |
| 17256 | |
| 17257 | /* Override any GCC internal prototype to avoid an error. |
| 17258 | Use char because int might match the return type of a GCC |
| 17259 | builtin and then its argument prototype would still apply. */ |
| 17260 | #ifdef __cplusplus |
| 17261 | extern "C" |
| 17262 | #endif |
| 17263 | char $ac_func (); |
| 17264 | /* The GNU C library defines this for functions which it implements |
| 17265 | to always fail with ENOSYS. Some functions are actually named |
| 17266 | something starting with __ and the normal name is an alias. */ |
| 17267 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17268 | choke me |
| 17269 | #endif |
| 17270 | |
| 17271 | int |
| 17272 | main () |
| 17273 | { |
| 17274 | return $ac_func (); |
| 17275 | ; |
| 17276 | return 0; |
| 17277 | } |
| 17278 | _ACEOF |
| 17279 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17280 | if { (ac_try="$ac_link" |
| 17281 | case "(($ac_try" in |
| 17282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17283 | *) ac_try_echo=$ac_try;; |
| 17284 | esac |
| 17285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17286 | (eval "$ac_link") 2>conftest.er1 |
| 17287 | ac_status=$? |
| 17288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17289 | rm -f conftest.er1 |
| 17290 | cat conftest.err >&5 |
| 17291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17292 | (exit $ac_status); } && |
| 17293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17294 | { (case "(($ac_try" in |
| 17295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17296 | *) ac_try_echo=$ac_try;; |
| 17297 | esac |
| 17298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17299 | (eval "$ac_try") 2>&5 |
| 17300 | ac_status=$? |
| 17301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17302 | (exit $ac_status); }; } && |
| 17303 | { ac_try='test -s conftest$ac_exeext' |
| 17304 | { (case "(($ac_try" in |
| 17305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17306 | *) ac_try_echo=$ac_try;; |
| 17307 | esac |
| 17308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17309 | (eval "$ac_try") 2>&5 |
| 17310 | ac_status=$? |
| 17311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17312 | (exit $ac_status); }; }; then |
| 17313 | eval "$as_ac_var=yes" |
| 17314 | else |
| 17315 | echo "$as_me: failed program was:" >&5 |
| 17316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17317 | |
| 17318 | eval "$as_ac_var=no" |
| 17319 | fi |
| 17320 | |
| 17321 | rm -f core conftest.err conftest.$ac_objext \ |
| 17322 | conftest$ac_exeext conftest.$ac_ext |
| 17323 | fi |
| 17324 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17325 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17326 | echo "${ECHO_T}$ac_res" >&6; } |
| 17327 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17328 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17329 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17330 | _ACEOF |
| 17331 | |
| 17332 | fi |
| 17333 | done |
| 17334 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17335 | |
| 17336 | |
| 17337 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17338 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17339 | do |
| 17340 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17341 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17342 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17343 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17345 | else |
| 17346 | cat >conftest.$ac_ext <<_ACEOF |
| 17347 | /* confdefs.h. */ |
| 17348 | _ACEOF |
| 17349 | cat confdefs.h >>conftest.$ac_ext |
| 17350 | cat >>conftest.$ac_ext <<_ACEOF |
| 17351 | /* end confdefs.h. */ |
| 17352 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17353 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17354 | #define $ac_func innocuous_$ac_func |
| 17355 | |
| 17356 | /* System header to define __stub macros and hopefully few prototypes, |
| 17357 | which can conflict with char $ac_func (); below. |
| 17358 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17359 | <limits.h> exists even on freestanding compilers. */ |
| 17360 | |
| 17361 | #ifdef __STDC__ |
| 17362 | # include <limits.h> |
| 17363 | #else |
| 17364 | # include <assert.h> |
| 17365 | #endif |
| 17366 | |
| 17367 | #undef $ac_func |
| 17368 | |
| 17369 | /* Override any GCC internal prototype to avoid an error. |
| 17370 | Use char because int might match the return type of a GCC |
| 17371 | builtin and then its argument prototype would still apply. */ |
| 17372 | #ifdef __cplusplus |
| 17373 | extern "C" |
| 17374 | #endif |
| 17375 | char $ac_func (); |
| 17376 | /* The GNU C library defines this for functions which it implements |
| 17377 | to always fail with ENOSYS. Some functions are actually named |
| 17378 | something starting with __ and the normal name is an alias. */ |
| 17379 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17380 | choke me |
| 17381 | #endif |
| 17382 | |
| 17383 | int |
| 17384 | main () |
| 17385 | { |
| 17386 | return $ac_func (); |
| 17387 | ; |
| 17388 | return 0; |
| 17389 | } |
| 17390 | _ACEOF |
| 17391 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17392 | if { (ac_try="$ac_link" |
| 17393 | case "(($ac_try" in |
| 17394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17395 | *) ac_try_echo=$ac_try;; |
| 17396 | esac |
| 17397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17398 | (eval "$ac_link") 2>conftest.er1 |
| 17399 | ac_status=$? |
| 17400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17401 | rm -f conftest.er1 |
| 17402 | cat conftest.err >&5 |
| 17403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17404 | (exit $ac_status); } && |
| 17405 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17406 | { (case "(($ac_try" in |
| 17407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17408 | *) ac_try_echo=$ac_try;; |
| 17409 | esac |
| 17410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17411 | (eval "$ac_try") 2>&5 |
| 17412 | ac_status=$? |
| 17413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17414 | (exit $ac_status); }; } && |
| 17415 | { ac_try='test -s conftest$ac_exeext' |
| 17416 | { (case "(($ac_try" in |
| 17417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17418 | *) ac_try_echo=$ac_try;; |
| 17419 | esac |
| 17420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17421 | (eval "$ac_try") 2>&5 |
| 17422 | ac_status=$? |
| 17423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17424 | (exit $ac_status); }; }; then |
| 17425 | eval "$as_ac_var=yes" |
| 17426 | else |
| 17427 | echo "$as_me: failed program was:" >&5 |
| 17428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17429 | |
| 17430 | eval "$as_ac_var=no" |
| 17431 | fi |
| 17432 | |
| 17433 | rm -f core conftest.err conftest.$ac_objext \ |
| 17434 | conftest$ac_exeext conftest.$ac_ext |
| 17435 | fi |
| 17436 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17437 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17438 | echo "${ECHO_T}$ac_res" >&6; } |
| 17439 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17440 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17441 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17442 | _ACEOF |
| 17443 | |
| 17444 | fi |
| 17445 | done |
| 17446 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17447 | |
| 17448 | |
| 17449 | |
| 17450 | |
| 17451 | |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17452 | for ac_func in mktemp realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17453 | do |
| 17454 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17455 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17456 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17457 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17459 | else |
| 17460 | cat >conftest.$ac_ext <<_ACEOF |
| 17461 | /* confdefs.h. */ |
| 17462 | _ACEOF |
| 17463 | cat confdefs.h >>conftest.$ac_ext |
| 17464 | cat >>conftest.$ac_ext <<_ACEOF |
| 17465 | /* end confdefs.h. */ |
| 17466 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17467 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17468 | #define $ac_func innocuous_$ac_func |
| 17469 | |
| 17470 | /* System header to define __stub macros and hopefully few prototypes, |
| 17471 | which can conflict with char $ac_func (); below. |
| 17472 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17473 | <limits.h> exists even on freestanding compilers. */ |
| 17474 | |
| 17475 | #ifdef __STDC__ |
| 17476 | # include <limits.h> |
| 17477 | #else |
| 17478 | # include <assert.h> |
| 17479 | #endif |
| 17480 | |
| 17481 | #undef $ac_func |
| 17482 | |
| 17483 | /* Override any GCC internal prototype to avoid an error. |
| 17484 | Use char because int might match the return type of a GCC |
| 17485 | builtin and then its argument prototype would still apply. */ |
| 17486 | #ifdef __cplusplus |
| 17487 | extern "C" |
| 17488 | #endif |
| 17489 | char $ac_func (); |
| 17490 | /* The GNU C library defines this for functions which it implements |
| 17491 | to always fail with ENOSYS. Some functions are actually named |
| 17492 | something starting with __ and the normal name is an alias. */ |
| 17493 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17494 | choke me |
| 17495 | #endif |
| 17496 | |
| 17497 | int |
| 17498 | main () |
| 17499 | { |
| 17500 | return $ac_func (); |
| 17501 | ; |
| 17502 | return 0; |
| 17503 | } |
| 17504 | _ACEOF |
| 17505 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17506 | if { (ac_try="$ac_link" |
| 17507 | case "(($ac_try" in |
| 17508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17509 | *) ac_try_echo=$ac_try;; |
| 17510 | esac |
| 17511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17512 | (eval "$ac_link") 2>conftest.er1 |
| 17513 | ac_status=$? |
| 17514 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17515 | rm -f conftest.er1 |
| 17516 | cat conftest.err >&5 |
| 17517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17518 | (exit $ac_status); } && |
| 17519 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17520 | { (case "(($ac_try" in |
| 17521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17522 | *) ac_try_echo=$ac_try;; |
| 17523 | esac |
| 17524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17525 | (eval "$ac_try") 2>&5 |
| 17526 | ac_status=$? |
| 17527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17528 | (exit $ac_status); }; } && |
| 17529 | { ac_try='test -s conftest$ac_exeext' |
| 17530 | { (case "(($ac_try" in |
| 17531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17532 | *) ac_try_echo=$ac_try;; |
| 17533 | esac |
| 17534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17535 | (eval "$ac_try") 2>&5 |
| 17536 | ac_status=$? |
| 17537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17538 | (exit $ac_status); }; }; then |
| 17539 | eval "$as_ac_var=yes" |
| 17540 | else |
| 17541 | echo "$as_me: failed program was:" >&5 |
| 17542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17543 | |
| 17544 | eval "$as_ac_var=no" |
| 17545 | fi |
| 17546 | |
| 17547 | rm -f core conftest.err conftest.$ac_objext \ |
| 17548 | conftest$ac_exeext conftest.$ac_ext |
| 17549 | fi |
| 17550 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17551 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17552 | echo "${ECHO_T}$ac_res" >&6; } |
| 17553 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17554 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17555 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17556 | _ACEOF |
| 17557 | |
| 17558 | fi |
| 17559 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17560 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17561 | |
| 17562 | |
| 17563 | |
| 17564 | |
Jeffrey Yasskin | b7a8d40 | 2009-09-25 21:07:20 +0000 | [diff] [blame] | 17565 | for ac_func in strerror strerror_r strerror_s setenv |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17566 | do |
| 17567 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17568 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17569 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17570 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17572 | else |
| 17573 | cat >conftest.$ac_ext <<_ACEOF |
| 17574 | /* confdefs.h. */ |
| 17575 | _ACEOF |
| 17576 | cat confdefs.h >>conftest.$ac_ext |
| 17577 | cat >>conftest.$ac_ext <<_ACEOF |
| 17578 | /* end confdefs.h. */ |
| 17579 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17580 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17581 | #define $ac_func innocuous_$ac_func |
| 17582 | |
| 17583 | /* System header to define __stub macros and hopefully few prototypes, |
| 17584 | which can conflict with char $ac_func (); below. |
| 17585 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17586 | <limits.h> exists even on freestanding compilers. */ |
| 17587 | |
| 17588 | #ifdef __STDC__ |
| 17589 | # include <limits.h> |
| 17590 | #else |
| 17591 | # include <assert.h> |
| 17592 | #endif |
| 17593 | |
| 17594 | #undef $ac_func |
| 17595 | |
| 17596 | /* Override any GCC internal prototype to avoid an error. |
| 17597 | Use char because int might match the return type of a GCC |
| 17598 | builtin and then its argument prototype would still apply. */ |
| 17599 | #ifdef __cplusplus |
| 17600 | extern "C" |
| 17601 | #endif |
| 17602 | char $ac_func (); |
| 17603 | /* The GNU C library defines this for functions which it implements |
| 17604 | to always fail with ENOSYS. Some functions are actually named |
| 17605 | something starting with __ and the normal name is an alias. */ |
| 17606 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17607 | choke me |
| 17608 | #endif |
| 17609 | |
| 17610 | int |
| 17611 | main () |
| 17612 | { |
| 17613 | return $ac_func (); |
| 17614 | ; |
| 17615 | return 0; |
| 17616 | } |
| 17617 | _ACEOF |
| 17618 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17619 | if { (ac_try="$ac_link" |
| 17620 | case "(($ac_try" in |
| 17621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17622 | *) ac_try_echo=$ac_try;; |
| 17623 | esac |
| 17624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17625 | (eval "$ac_link") 2>conftest.er1 |
| 17626 | ac_status=$? |
| 17627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17628 | rm -f conftest.er1 |
| 17629 | cat conftest.err >&5 |
| 17630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17631 | (exit $ac_status); } && |
| 17632 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17633 | { (case "(($ac_try" in |
| 17634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17635 | *) ac_try_echo=$ac_try;; |
| 17636 | esac |
| 17637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17638 | (eval "$ac_try") 2>&5 |
| 17639 | ac_status=$? |
| 17640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17641 | (exit $ac_status); }; } && |
| 17642 | { ac_try='test -s conftest$ac_exeext' |
| 17643 | { (case "(($ac_try" in |
| 17644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17645 | *) ac_try_echo=$ac_try;; |
| 17646 | esac |
| 17647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17648 | (eval "$ac_try") 2>&5 |
| 17649 | ac_status=$? |
| 17650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17651 | (exit $ac_status); }; }; then |
| 17652 | eval "$as_ac_var=yes" |
| 17653 | else |
| 17654 | echo "$as_me: failed program was:" >&5 |
| 17655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17656 | |
| 17657 | eval "$as_ac_var=no" |
| 17658 | fi |
| 17659 | |
| 17660 | rm -f core conftest.err conftest.$ac_objext \ |
| 17661 | conftest$ac_exeext conftest.$ac_ext |
| 17662 | fi |
| 17663 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17664 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17665 | echo "${ECHO_T}$ac_res" >&6; } |
| 17666 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17667 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17668 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17669 | _ACEOF |
| 17670 | |
| 17671 | fi |
| 17672 | done |
| 17673 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17674 | |
| 17675 | |
| 17676 | |
| 17677 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 17678 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17679 | do |
| 17680 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17681 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17682 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17683 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17685 | else |
| 17686 | cat >conftest.$ac_ext <<_ACEOF |
| 17687 | /* confdefs.h. */ |
| 17688 | _ACEOF |
| 17689 | cat confdefs.h >>conftest.$ac_ext |
| 17690 | cat >>conftest.$ac_ext <<_ACEOF |
| 17691 | /* end confdefs.h. */ |
| 17692 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17693 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17694 | #define $ac_func innocuous_$ac_func |
| 17695 | |
| 17696 | /* System header to define __stub macros and hopefully few prototypes, |
| 17697 | which can conflict with char $ac_func (); below. |
| 17698 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17699 | <limits.h> exists even on freestanding compilers. */ |
| 17700 | |
| 17701 | #ifdef __STDC__ |
| 17702 | # include <limits.h> |
| 17703 | #else |
| 17704 | # include <assert.h> |
| 17705 | #endif |
| 17706 | |
| 17707 | #undef $ac_func |
| 17708 | |
| 17709 | /* Override any GCC internal prototype to avoid an error. |
| 17710 | Use char because int might match the return type of a GCC |
| 17711 | builtin and then its argument prototype would still apply. */ |
| 17712 | #ifdef __cplusplus |
| 17713 | extern "C" |
| 17714 | #endif |
| 17715 | char $ac_func (); |
| 17716 | /* The GNU C library defines this for functions which it implements |
| 17717 | to always fail with ENOSYS. Some functions are actually named |
| 17718 | something starting with __ and the normal name is an alias. */ |
| 17719 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17720 | choke me |
| 17721 | #endif |
| 17722 | |
| 17723 | int |
| 17724 | main () |
| 17725 | { |
| 17726 | return $ac_func (); |
| 17727 | ; |
| 17728 | return 0; |
| 17729 | } |
| 17730 | _ACEOF |
| 17731 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17732 | if { (ac_try="$ac_link" |
| 17733 | case "(($ac_try" in |
| 17734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17735 | *) ac_try_echo=$ac_try;; |
| 17736 | esac |
| 17737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17738 | (eval "$ac_link") 2>conftest.er1 |
| 17739 | ac_status=$? |
| 17740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17741 | rm -f conftest.er1 |
| 17742 | cat conftest.err >&5 |
| 17743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17744 | (exit $ac_status); } && |
| 17745 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17746 | { (case "(($ac_try" in |
| 17747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17748 | *) ac_try_echo=$ac_try;; |
| 17749 | esac |
| 17750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17751 | (eval "$ac_try") 2>&5 |
| 17752 | ac_status=$? |
| 17753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17754 | (exit $ac_status); }; } && |
| 17755 | { ac_try='test -s conftest$ac_exeext' |
| 17756 | { (case "(($ac_try" in |
| 17757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17758 | *) ac_try_echo=$ac_try;; |
| 17759 | esac |
| 17760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17761 | (eval "$ac_try") 2>&5 |
| 17762 | ac_status=$? |
| 17763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17764 | (exit $ac_status); }; }; then |
| 17765 | eval "$as_ac_var=yes" |
| 17766 | else |
| 17767 | echo "$as_me: failed program was:" >&5 |
| 17768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17769 | |
| 17770 | eval "$as_ac_var=no" |
| 17771 | fi |
| 17772 | |
| 17773 | rm -f core conftest.err conftest.$ac_objext \ |
| 17774 | conftest$ac_exeext conftest.$ac_ext |
| 17775 | fi |
| 17776 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17777 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17778 | echo "${ECHO_T}$ac_res" >&6; } |
| 17779 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17780 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17781 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17782 | _ACEOF |
| 17783 | |
| 17784 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17785 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17786 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17787 | |
| 17788 | |
| 17789 | |
| 17790 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 17791 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17792 | do |
| 17793 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17794 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17795 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17796 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17798 | else |
| 17799 | cat >conftest.$ac_ext <<_ACEOF |
| 17800 | /* confdefs.h. */ |
| 17801 | _ACEOF |
| 17802 | cat confdefs.h >>conftest.$ac_ext |
| 17803 | cat >>conftest.$ac_ext <<_ACEOF |
| 17804 | /* end confdefs.h. */ |
| 17805 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17806 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17807 | #define $ac_func innocuous_$ac_func |
| 17808 | |
| 17809 | /* System header to define __stub macros and hopefully few prototypes, |
| 17810 | which can conflict with char $ac_func (); below. |
| 17811 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17812 | <limits.h> exists even on freestanding compilers. */ |
| 17813 | |
| 17814 | #ifdef __STDC__ |
| 17815 | # include <limits.h> |
| 17816 | #else |
| 17817 | # include <assert.h> |
| 17818 | #endif |
| 17819 | |
| 17820 | #undef $ac_func |
| 17821 | |
| 17822 | /* Override any GCC internal prototype to avoid an error. |
| 17823 | Use char because int might match the return type of a GCC |
| 17824 | builtin and then its argument prototype would still apply. */ |
| 17825 | #ifdef __cplusplus |
| 17826 | extern "C" |
| 17827 | #endif |
| 17828 | char $ac_func (); |
| 17829 | /* The GNU C library defines this for functions which it implements |
| 17830 | to always fail with ENOSYS. Some functions are actually named |
| 17831 | something starting with __ and the normal name is an alias. */ |
| 17832 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17833 | choke me |
| 17834 | #endif |
| 17835 | |
| 17836 | int |
| 17837 | main () |
| 17838 | { |
| 17839 | return $ac_func (); |
| 17840 | ; |
| 17841 | return 0; |
| 17842 | } |
| 17843 | _ACEOF |
| 17844 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17845 | if { (ac_try="$ac_link" |
| 17846 | case "(($ac_try" in |
| 17847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17848 | *) ac_try_echo=$ac_try;; |
| 17849 | esac |
| 17850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17851 | (eval "$ac_link") 2>conftest.er1 |
| 17852 | ac_status=$? |
| 17853 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17854 | rm -f conftest.er1 |
| 17855 | cat conftest.err >&5 |
| 17856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17857 | (exit $ac_status); } && |
| 17858 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17859 | { (case "(($ac_try" in |
| 17860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17861 | *) ac_try_echo=$ac_try;; |
| 17862 | esac |
| 17863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17864 | (eval "$ac_try") 2>&5 |
| 17865 | ac_status=$? |
| 17866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17867 | (exit $ac_status); }; } && |
| 17868 | { ac_try='test -s conftest$ac_exeext' |
| 17869 | { (case "(($ac_try" in |
| 17870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17871 | *) ac_try_echo=$ac_try;; |
| 17872 | esac |
| 17873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17874 | (eval "$ac_try") 2>&5 |
| 17875 | ac_status=$? |
| 17876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17877 | (exit $ac_status); }; }; then |
| 17878 | eval "$as_ac_var=yes" |
| 17879 | else |
| 17880 | echo "$as_me: failed program was:" >&5 |
| 17881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17882 | |
| 17883 | eval "$as_ac_var=no" |
| 17884 | fi |
| 17885 | |
| 17886 | rm -f core conftest.err conftest.$ac_objext \ |
| 17887 | conftest$ac_exeext conftest.$ac_ext |
| 17888 | fi |
| 17889 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17890 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17891 | echo "${ECHO_T}$ac_res" >&6; } |
| 17892 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17893 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17894 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17895 | _ACEOF |
| 17896 | |
| 17897 | fi |
| 17898 | done |
| 17899 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17900 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 17901 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 17902 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 17903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17904 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17905 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17906 | ac_cpp='$CPP $CPPFLAGS' |
| 17907 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17908 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17909 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17910 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17911 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17912 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17913 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17914 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17915 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17916 | /* confdefs.h. */ |
| 17917 | _ACEOF |
| 17918 | cat confdefs.h >>conftest.$ac_ext |
| 17919 | cat >>conftest.$ac_ext <<_ACEOF |
| 17920 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17921 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17922 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17923 | #include <stdlib.h> |
| 17924 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17925 | int |
| 17926 | main () |
| 17927 | { |
| 17928 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17929 | volatile double A, B; |
| 17930 | char Buffer[100]; |
| 17931 | A = 1; |
| 17932 | A /= 10.0; |
| 17933 | sprintf(Buffer, "%a", A); |
| 17934 | B = atof(Buffer); |
| 17935 | if (A != B) |
| 17936 | return (1); |
| 17937 | if (A != 0x1.999999999999ap-4) |
| 17938 | return (1); |
| 17939 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17940 | ; |
| 17941 | return 0; |
| 17942 | } |
| 17943 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17944 | rm -f conftest$ac_exeext |
| 17945 | if { (ac_try="$ac_link" |
| 17946 | case "(($ac_try" in |
| 17947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17948 | *) ac_try_echo=$ac_try;; |
| 17949 | esac |
| 17950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17951 | (eval "$ac_link") 2>&5 |
| 17952 | ac_status=$? |
| 17953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17954 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17955 | { (case "(($ac_try" in |
| 17956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17957 | *) ac_try_echo=$ac_try;; |
| 17958 | esac |
| 17959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17960 | (eval "$ac_try") 2>&5 |
| 17961 | ac_status=$? |
| 17962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17963 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17964 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17965 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17966 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17967 | echo "$as_me: failed program was:" >&5 |
| 17968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17969 | |
| 17970 | ( exit $ac_status ) |
| 17971 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17972 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17973 | 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] | 17974 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17975 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17976 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17977 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17978 | ac_cpp='$CPP $CPPFLAGS' |
| 17979 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17980 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17981 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17982 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17983 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17984 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 17985 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17986 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17987 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17988 | cat >>confdefs.h <<\_ACEOF |
| 17989 | #define HAVE_PRINTF_A 1 |
| 17990 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17991 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17992 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17993 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17994 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17995 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 17996 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 17997 | if test "${ac_cv_func_rand48+set}" = set; then |
| 17998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17999 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18000 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18001 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18002 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18003 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18004 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18005 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18006 | cat >conftest.$ac_ext <<_ACEOF |
| 18007 | /* confdefs.h. */ |
| 18008 | _ACEOF |
| 18009 | cat confdefs.h >>conftest.$ac_ext |
| 18010 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18011 | /* end confdefs.h. */ |
| 18012 | #include <stdlib.h> |
| 18013 | int |
| 18014 | main () |
| 18015 | { |
| 18016 | srand48(0);lrand48();drand48(); |
| 18017 | ; |
| 18018 | return 0; |
| 18019 | } |
| 18020 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18021 | rm -f conftest.$ac_objext |
| 18022 | if { (ac_try="$ac_compile" |
| 18023 | case "(($ac_try" in |
| 18024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18025 | *) ac_try_echo=$ac_try;; |
| 18026 | esac |
| 18027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18028 | (eval "$ac_compile") 2>conftest.er1 |
| 18029 | ac_status=$? |
| 18030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18031 | rm -f conftest.er1 |
| 18032 | cat conftest.err >&5 |
| 18033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18034 | (exit $ac_status); } && |
| 18035 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18036 | { (case "(($ac_try" in |
| 18037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18038 | *) ac_try_echo=$ac_try;; |
| 18039 | esac |
| 18040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18041 | (eval "$ac_try") 2>&5 |
| 18042 | ac_status=$? |
| 18043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18044 | (exit $ac_status); }; } && |
| 18045 | { ac_try='test -s conftest.$ac_objext' |
| 18046 | { (case "(($ac_try" in |
| 18047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18048 | *) ac_try_echo=$ac_try;; |
| 18049 | esac |
| 18050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18051 | (eval "$ac_try") 2>&5 |
| 18052 | ac_status=$? |
| 18053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18054 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18055 | ac_cv_func_rand48=yes |
| 18056 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18057 | echo "$as_me: failed program was:" >&5 |
| 18058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18059 | |
| 18060 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18061 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18062 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18064 | ac_ext=c |
| 18065 | ac_cpp='$CPP $CPPFLAGS' |
| 18066 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18067 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18068 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18069 | |
| 18070 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18071 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 18072 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18073 | |
| 18074 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 18075 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18076 | cat >>confdefs.h <<\_ACEOF |
| 18077 | #define HAVE_RAND48 1 |
| 18078 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18079 | |
| 18080 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 18081 | |
| 18082 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18083 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18084 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 18085 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 18086 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 18087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18088 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18089 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18090 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18091 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18092 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18093 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18094 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18095 | cat >conftest.$ac_ext <<_ACEOF |
| 18096 | /* confdefs.h. */ |
| 18097 | _ACEOF |
| 18098 | cat confdefs.h >>conftest.$ac_ext |
| 18099 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18100 | /* end confdefs.h. */ |
| 18101 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18102 | int |
| 18103 | main () |
| 18104 | { |
| 18105 | float f; isnan(f); |
| 18106 | ; |
| 18107 | return 0; |
| 18108 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18109 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18110 | rm -f conftest.$ac_objext |
| 18111 | if { (ac_try="$ac_compile" |
| 18112 | case "(($ac_try" in |
| 18113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18114 | *) ac_try_echo=$ac_try;; |
| 18115 | esac |
| 18116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18117 | (eval "$ac_compile") 2>conftest.er1 |
| 18118 | ac_status=$? |
| 18119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18120 | rm -f conftest.er1 |
| 18121 | cat conftest.err >&5 |
| 18122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18123 | (exit $ac_status); } && |
| 18124 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18125 | { (case "(($ac_try" in |
| 18126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18127 | *) ac_try_echo=$ac_try;; |
| 18128 | esac |
| 18129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18130 | (eval "$ac_try") 2>&5 |
| 18131 | ac_status=$? |
| 18132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18133 | (exit $ac_status); }; } && |
| 18134 | { ac_try='test -s conftest.$ac_objext' |
| 18135 | { (case "(($ac_try" in |
| 18136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18137 | *) ac_try_echo=$ac_try;; |
| 18138 | esac |
| 18139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18140 | (eval "$ac_try") 2>&5 |
| 18141 | ac_status=$? |
| 18142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18143 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18144 | ac_cv_func_isnan_in_math_h=yes |
| 18145 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18146 | echo "$as_me: failed program was:" >&5 |
| 18147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18148 | |
| 18149 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18150 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18151 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18153 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18154 | ac_cpp='$CPP $CPPFLAGS' |
| 18155 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18156 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18157 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18158 | |
| 18159 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18160 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 18161 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18162 | |
| 18163 | |
| 18164 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18165 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18166 | cat >>confdefs.h <<\_ACEOF |
| 18167 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 18168 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18169 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18170 | fi |
| 18171 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18172 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 18173 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 18174 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 18175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18176 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18177 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18178 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18179 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18180 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18181 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18182 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18183 | cat >conftest.$ac_ext <<_ACEOF |
| 18184 | /* confdefs.h. */ |
| 18185 | _ACEOF |
| 18186 | cat confdefs.h >>conftest.$ac_ext |
| 18187 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18188 | /* end confdefs.h. */ |
| 18189 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18190 | int |
| 18191 | main () |
| 18192 | { |
| 18193 | float f; isnan(f); |
| 18194 | ; |
| 18195 | return 0; |
| 18196 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18197 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18198 | rm -f conftest.$ac_objext |
| 18199 | if { (ac_try="$ac_compile" |
| 18200 | case "(($ac_try" in |
| 18201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18202 | *) ac_try_echo=$ac_try;; |
| 18203 | esac |
| 18204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18205 | (eval "$ac_compile") 2>conftest.er1 |
| 18206 | ac_status=$? |
| 18207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18208 | rm -f conftest.er1 |
| 18209 | cat conftest.err >&5 |
| 18210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18211 | (exit $ac_status); } && |
| 18212 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18213 | { (case "(($ac_try" in |
| 18214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18215 | *) ac_try_echo=$ac_try;; |
| 18216 | esac |
| 18217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18218 | (eval "$ac_try") 2>&5 |
| 18219 | ac_status=$? |
| 18220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18221 | (exit $ac_status); }; } && |
| 18222 | { ac_try='test -s conftest.$ac_objext' |
| 18223 | { (case "(($ac_try" in |
| 18224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18225 | *) ac_try_echo=$ac_try;; |
| 18226 | esac |
| 18227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18228 | (eval "$ac_try") 2>&5 |
| 18229 | ac_status=$? |
| 18230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18231 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18232 | ac_cv_func_isnan_in_cmath=yes |
| 18233 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18234 | echo "$as_me: failed program was:" >&5 |
| 18235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18236 | |
| 18237 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18238 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18239 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18241 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18242 | ac_cpp='$CPP $CPPFLAGS' |
| 18243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18246 | |
| 18247 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18248 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 18249 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18250 | |
| 18251 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18252 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18253 | cat >>confdefs.h <<\_ACEOF |
| 18254 | #define HAVE_ISNAN_IN_CMATH 1 |
| 18255 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18256 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18257 | fi |
| 18258 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18259 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 18260 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 18261 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 18262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18263 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18264 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18265 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18266 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18267 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18268 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18269 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18270 | cat >conftest.$ac_ext <<_ACEOF |
| 18271 | /* confdefs.h. */ |
| 18272 | _ACEOF |
| 18273 | cat confdefs.h >>conftest.$ac_ext |
| 18274 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18275 | /* end confdefs.h. */ |
| 18276 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18277 | int |
| 18278 | main () |
| 18279 | { |
| 18280 | float f; std::isnan(f); |
| 18281 | ; |
| 18282 | return 0; |
| 18283 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18284 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18285 | rm -f conftest.$ac_objext |
| 18286 | if { (ac_try="$ac_compile" |
| 18287 | case "(($ac_try" in |
| 18288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18289 | *) ac_try_echo=$ac_try;; |
| 18290 | esac |
| 18291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18292 | (eval "$ac_compile") 2>conftest.er1 |
| 18293 | ac_status=$? |
| 18294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18295 | rm -f conftest.er1 |
| 18296 | cat conftest.err >&5 |
| 18297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18298 | (exit $ac_status); } && |
| 18299 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18300 | { (case "(($ac_try" in |
| 18301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18302 | *) ac_try_echo=$ac_try;; |
| 18303 | esac |
| 18304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18305 | (eval "$ac_try") 2>&5 |
| 18306 | ac_status=$? |
| 18307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18308 | (exit $ac_status); }; } && |
| 18309 | { ac_try='test -s conftest.$ac_objext' |
| 18310 | { (case "(($ac_try" in |
| 18311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18312 | *) ac_try_echo=$ac_try;; |
| 18313 | esac |
| 18314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18315 | (eval "$ac_try") 2>&5 |
| 18316 | ac_status=$? |
| 18317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18318 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18319 | ac_cv_func_std_isnan_in_cmath=yes |
| 18320 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18321 | echo "$as_me: failed program was:" >&5 |
| 18322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18323 | |
| 18324 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18325 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18326 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18328 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18329 | ac_cpp='$CPP $CPPFLAGS' |
| 18330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18333 | |
| 18334 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18335 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 18336 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18337 | |
| 18338 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18339 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18340 | cat >>confdefs.h <<\_ACEOF |
| 18341 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 18342 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18343 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18344 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18345 | |
| 18346 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18347 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 18348 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 18349 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 18350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18351 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18352 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18353 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18354 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18355 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18356 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18357 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18358 | cat >conftest.$ac_ext <<_ACEOF |
| 18359 | /* confdefs.h. */ |
| 18360 | _ACEOF |
| 18361 | cat confdefs.h >>conftest.$ac_ext |
| 18362 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18363 | /* end confdefs.h. */ |
| 18364 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18365 | int |
| 18366 | main () |
| 18367 | { |
| 18368 | float f; isinf(f); |
| 18369 | ; |
| 18370 | return 0; |
| 18371 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18372 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18373 | rm -f conftest.$ac_objext |
| 18374 | if { (ac_try="$ac_compile" |
| 18375 | case "(($ac_try" in |
| 18376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18377 | *) ac_try_echo=$ac_try;; |
| 18378 | esac |
| 18379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18380 | (eval "$ac_compile") 2>conftest.er1 |
| 18381 | ac_status=$? |
| 18382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18383 | rm -f conftest.er1 |
| 18384 | cat conftest.err >&5 |
| 18385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18386 | (exit $ac_status); } && |
| 18387 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18388 | { (case "(($ac_try" in |
| 18389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18390 | *) ac_try_echo=$ac_try;; |
| 18391 | esac |
| 18392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18393 | (eval "$ac_try") 2>&5 |
| 18394 | ac_status=$? |
| 18395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18396 | (exit $ac_status); }; } && |
| 18397 | { ac_try='test -s conftest.$ac_objext' |
| 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_try") 2>&5 |
| 18404 | ac_status=$? |
| 18405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18406 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18407 | ac_cv_func_isinf_in_math_h=yes |
| 18408 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18409 | echo "$as_me: failed program was:" >&5 |
| 18410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18411 | |
| 18412 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18413 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18414 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18416 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18417 | ac_cpp='$CPP $CPPFLAGS' |
| 18418 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18419 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18420 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18421 | |
| 18422 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18423 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 18424 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18425 | |
| 18426 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18427 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18428 | cat >>confdefs.h <<\_ACEOF |
| 18429 | #define HAVE_ISINF_IN_MATH_H 1 |
| 18430 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18431 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18432 | fi |
| 18433 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18434 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 18435 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 18436 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 18437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18438 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18439 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18440 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18441 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18442 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18443 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18444 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18445 | cat >conftest.$ac_ext <<_ACEOF |
| 18446 | /* confdefs.h. */ |
| 18447 | _ACEOF |
| 18448 | cat confdefs.h >>conftest.$ac_ext |
| 18449 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18450 | /* end confdefs.h. */ |
| 18451 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18452 | int |
| 18453 | main () |
| 18454 | { |
| 18455 | float f; isinf(f); |
| 18456 | ; |
| 18457 | return 0; |
| 18458 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18459 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18460 | rm -f conftest.$ac_objext |
| 18461 | if { (ac_try="$ac_compile" |
| 18462 | case "(($ac_try" in |
| 18463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18464 | *) ac_try_echo=$ac_try;; |
| 18465 | esac |
| 18466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18467 | (eval "$ac_compile") 2>conftest.er1 |
| 18468 | ac_status=$? |
| 18469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18470 | rm -f conftest.er1 |
| 18471 | cat conftest.err >&5 |
| 18472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18473 | (exit $ac_status); } && |
| 18474 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18475 | { (case "(($ac_try" in |
| 18476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18477 | *) ac_try_echo=$ac_try;; |
| 18478 | esac |
| 18479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18480 | (eval "$ac_try") 2>&5 |
| 18481 | ac_status=$? |
| 18482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18483 | (exit $ac_status); }; } && |
| 18484 | { ac_try='test -s conftest.$ac_objext' |
| 18485 | { (case "(($ac_try" in |
| 18486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18487 | *) ac_try_echo=$ac_try;; |
| 18488 | esac |
| 18489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18490 | (eval "$ac_try") 2>&5 |
| 18491 | ac_status=$? |
| 18492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18493 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18494 | ac_cv_func_isinf_in_cmath=yes |
| 18495 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18496 | echo "$as_me: failed program was:" >&5 |
| 18497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18498 | |
| 18499 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18500 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18501 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18503 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18504 | ac_cpp='$CPP $CPPFLAGS' |
| 18505 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18506 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18507 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18508 | |
| 18509 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18510 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 18511 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18512 | |
| 18513 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18514 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18515 | cat >>confdefs.h <<\_ACEOF |
| 18516 | #define HAVE_ISINF_IN_CMATH 1 |
| 18517 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18518 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18519 | fi |
| 18520 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18521 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 18522 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 18523 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 18524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18525 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18526 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18527 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18528 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18529 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18530 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18531 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18532 | cat >conftest.$ac_ext <<_ACEOF |
| 18533 | /* confdefs.h. */ |
| 18534 | _ACEOF |
| 18535 | cat confdefs.h >>conftest.$ac_ext |
| 18536 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18537 | /* end confdefs.h. */ |
| 18538 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18539 | int |
| 18540 | main () |
| 18541 | { |
| 18542 | float f; std::isinf(f)} |
| 18543 | ; |
| 18544 | return 0; |
| 18545 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18546 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18547 | rm -f conftest.$ac_objext |
| 18548 | if { (ac_try="$ac_compile" |
| 18549 | case "(($ac_try" in |
| 18550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18551 | *) ac_try_echo=$ac_try;; |
| 18552 | esac |
| 18553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18554 | (eval "$ac_compile") 2>conftest.er1 |
| 18555 | ac_status=$? |
| 18556 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18557 | rm -f conftest.er1 |
| 18558 | cat conftest.err >&5 |
| 18559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18560 | (exit $ac_status); } && |
| 18561 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18562 | { (case "(($ac_try" in |
| 18563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18564 | *) ac_try_echo=$ac_try;; |
| 18565 | esac |
| 18566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18567 | (eval "$ac_try") 2>&5 |
| 18568 | ac_status=$? |
| 18569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18570 | (exit $ac_status); }; } && |
| 18571 | { ac_try='test -s conftest.$ac_objext' |
| 18572 | { (case "(($ac_try" in |
| 18573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18574 | *) ac_try_echo=$ac_try;; |
| 18575 | esac |
| 18576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18577 | (eval "$ac_try") 2>&5 |
| 18578 | ac_status=$? |
| 18579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18580 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18581 | ac_cv_func_std_isinf_in_cmath=yes |
| 18582 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18583 | echo "$as_me: failed program was:" >&5 |
| 18584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18585 | |
| 18586 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18587 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18588 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18590 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18591 | ac_cpp='$CPP $CPPFLAGS' |
| 18592 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18593 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18594 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18595 | |
| 18596 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18597 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 18598 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18599 | |
| 18600 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18601 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18602 | cat >>confdefs.h <<\_ACEOF |
| 18603 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 18604 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18605 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18606 | fi |
| 18607 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18608 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 18609 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 18610 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 18611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18612 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18613 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18614 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18615 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18616 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18617 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18618 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18619 | cat >conftest.$ac_ext <<_ACEOF |
| 18620 | /* confdefs.h. */ |
| 18621 | _ACEOF |
| 18622 | cat confdefs.h >>conftest.$ac_ext |
| 18623 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18624 | /* end confdefs.h. */ |
| 18625 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18626 | int |
| 18627 | main () |
| 18628 | { |
| 18629 | float f; finite(f); |
| 18630 | ; |
| 18631 | return 0; |
| 18632 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18633 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18634 | rm -f conftest.$ac_objext |
| 18635 | if { (ac_try="$ac_compile" |
| 18636 | case "(($ac_try" in |
| 18637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18638 | *) ac_try_echo=$ac_try;; |
| 18639 | esac |
| 18640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18641 | (eval "$ac_compile") 2>conftest.er1 |
| 18642 | ac_status=$? |
| 18643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18644 | rm -f conftest.er1 |
| 18645 | cat conftest.err >&5 |
| 18646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18647 | (exit $ac_status); } && |
| 18648 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18649 | { (case "(($ac_try" in |
| 18650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18651 | *) ac_try_echo=$ac_try;; |
| 18652 | esac |
| 18653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18654 | (eval "$ac_try") 2>&5 |
| 18655 | ac_status=$? |
| 18656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18657 | (exit $ac_status); }; } && |
| 18658 | { ac_try='test -s conftest.$ac_objext' |
| 18659 | { (case "(($ac_try" in |
| 18660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18661 | *) ac_try_echo=$ac_try;; |
| 18662 | esac |
| 18663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18664 | (eval "$ac_try") 2>&5 |
| 18665 | ac_status=$? |
| 18666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18667 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18668 | ac_cv_func_finite_in_ieeefp_h=yes |
| 18669 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18670 | echo "$as_me: failed program was:" >&5 |
| 18671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18672 | |
| 18673 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18674 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18675 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18677 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18678 | ac_cpp='$CPP $CPPFLAGS' |
| 18679 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18680 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18681 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18682 | |
| 18683 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18684 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 18685 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18686 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 18687 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18688 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18689 | cat >>confdefs.h <<\_ACEOF |
| 18690 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 18691 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18692 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18693 | fi |
| 18694 | |
| 18695 | |
| 18696 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 18697 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18698 | |
| 18699 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18700 | for ac_header in stdlib.h unistd.h |
| 18701 | do |
| 18702 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 18703 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18704 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 18705 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 18706 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18708 | fi |
| 18709 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 18710 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18711 | echo "${ECHO_T}$ac_res" >&6; } |
| 18712 | else |
| 18713 | # Is the header compilable? |
| 18714 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 18715 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 18716 | cat >conftest.$ac_ext <<_ACEOF |
| 18717 | /* confdefs.h. */ |
| 18718 | _ACEOF |
| 18719 | cat confdefs.h >>conftest.$ac_ext |
| 18720 | cat >>conftest.$ac_ext <<_ACEOF |
| 18721 | /* end confdefs.h. */ |
| 18722 | $ac_includes_default |
| 18723 | #include <$ac_header> |
| 18724 | _ACEOF |
| 18725 | rm -f conftest.$ac_objext |
| 18726 | if { (ac_try="$ac_compile" |
| 18727 | case "(($ac_try" in |
| 18728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18729 | *) ac_try_echo=$ac_try;; |
| 18730 | esac |
| 18731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18732 | (eval "$ac_compile") 2>conftest.er1 |
| 18733 | ac_status=$? |
| 18734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18735 | rm -f conftest.er1 |
| 18736 | cat conftest.err >&5 |
| 18737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18738 | (exit $ac_status); } && |
| 18739 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18740 | { (case "(($ac_try" in |
| 18741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18742 | *) ac_try_echo=$ac_try;; |
| 18743 | esac |
| 18744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18745 | (eval "$ac_try") 2>&5 |
| 18746 | ac_status=$? |
| 18747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18748 | (exit $ac_status); }; } && |
| 18749 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 18759 | ac_header_compiler=yes |
| 18760 | else |
| 18761 | echo "$as_me: failed program was:" >&5 |
| 18762 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18763 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18764 | ac_header_compiler=no |
| 18765 | fi |
| 18766 | |
| 18767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18768 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 18769 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 18770 | |
| 18771 | # Is the header present? |
| 18772 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 18773 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 18774 | cat >conftest.$ac_ext <<_ACEOF |
| 18775 | /* confdefs.h. */ |
| 18776 | _ACEOF |
| 18777 | cat confdefs.h >>conftest.$ac_ext |
| 18778 | cat >>conftest.$ac_ext <<_ACEOF |
| 18779 | /* end confdefs.h. */ |
| 18780 | #include <$ac_header> |
| 18781 | _ACEOF |
| 18782 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 18783 | case "(($ac_try" in |
| 18784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18785 | *) ac_try_echo=$ac_try;; |
| 18786 | esac |
| 18787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18788 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 18789 | ac_status=$? |
| 18790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18791 | rm -f conftest.er1 |
| 18792 | cat conftest.err >&5 |
| 18793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18794 | (exit $ac_status); } >/dev/null; then |
| 18795 | if test -s conftest.err; then |
| 18796 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 18797 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 18798 | else |
| 18799 | ac_cpp_err= |
| 18800 | fi |
| 18801 | else |
| 18802 | ac_cpp_err=yes |
| 18803 | fi |
| 18804 | if test -z "$ac_cpp_err"; then |
| 18805 | ac_header_preproc=yes |
| 18806 | else |
| 18807 | echo "$as_me: failed program was:" >&5 |
| 18808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18809 | |
| 18810 | ac_header_preproc=no |
| 18811 | fi |
| 18812 | |
| 18813 | rm -f conftest.err conftest.$ac_ext |
| 18814 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 18815 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 18816 | |
| 18817 | # So? What about this header? |
| 18818 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 18819 | yes:no: ) |
| 18820 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 18821 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 18822 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 18823 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 18824 | ac_header_preproc=yes |
| 18825 | ;; |
| 18826 | no:yes:* ) |
| 18827 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 18828 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 18829 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 18830 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 18831 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 18832 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 18833 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 18834 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 18835 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 18836 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 18837 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 18838 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 18839 | ( cat <<\_ASBOX |
| 18840 | ## ----------------------------------- ## |
| 18841 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 18842 | ## ----------------------------------- ## |
| 18843 | _ASBOX |
| 18844 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 18845 | ;; |
| 18846 | esac |
| 18847 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 18848 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 18849 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18851 | else |
| 18852 | eval "$as_ac_Header=\$ac_header_preproc" |
| 18853 | fi |
| 18854 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 18855 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18856 | echo "${ECHO_T}$ac_res" >&6; } |
| 18857 | |
| 18858 | fi |
| 18859 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18860 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18861 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18862 | _ACEOF |
| 18863 | |
| 18864 | fi |
| 18865 | |
| 18866 | done |
| 18867 | |
| 18868 | |
| 18869 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18870 | do |
| 18871 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18872 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18873 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18874 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18876 | else |
| 18877 | cat >conftest.$ac_ext <<_ACEOF |
| 18878 | /* confdefs.h. */ |
| 18879 | _ACEOF |
| 18880 | cat confdefs.h >>conftest.$ac_ext |
| 18881 | cat >>conftest.$ac_ext <<_ACEOF |
| 18882 | /* end confdefs.h. */ |
| 18883 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18884 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18885 | #define $ac_func innocuous_$ac_func |
| 18886 | |
| 18887 | /* System header to define __stub macros and hopefully few prototypes, |
| 18888 | which can conflict with char $ac_func (); below. |
| 18889 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18890 | <limits.h> exists even on freestanding compilers. */ |
| 18891 | |
| 18892 | #ifdef __STDC__ |
| 18893 | # include <limits.h> |
| 18894 | #else |
| 18895 | # include <assert.h> |
| 18896 | #endif |
| 18897 | |
| 18898 | #undef $ac_func |
| 18899 | |
| 18900 | /* Override any GCC internal prototype to avoid an error. |
| 18901 | Use char because int might match the return type of a GCC |
| 18902 | builtin and then its argument prototype would still apply. */ |
| 18903 | #ifdef __cplusplus |
| 18904 | extern "C" |
| 18905 | #endif |
| 18906 | char $ac_func (); |
| 18907 | /* The GNU C library defines this for functions which it implements |
| 18908 | to always fail with ENOSYS. Some functions are actually named |
| 18909 | something starting with __ and the normal name is an alias. */ |
| 18910 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18911 | choke me |
| 18912 | #endif |
| 18913 | |
| 18914 | int |
| 18915 | main () |
| 18916 | { |
| 18917 | return $ac_func (); |
| 18918 | ; |
| 18919 | return 0; |
| 18920 | } |
| 18921 | _ACEOF |
| 18922 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18923 | if { (ac_try="$ac_link" |
| 18924 | case "(($ac_try" in |
| 18925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18926 | *) ac_try_echo=$ac_try;; |
| 18927 | esac |
| 18928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18929 | (eval "$ac_link") 2>conftest.er1 |
| 18930 | ac_status=$? |
| 18931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18932 | rm -f conftest.er1 |
| 18933 | cat conftest.err >&5 |
| 18934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18935 | (exit $ac_status); } && |
| 18936 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18937 | { (case "(($ac_try" in |
| 18938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18939 | *) ac_try_echo=$ac_try;; |
| 18940 | esac |
| 18941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18942 | (eval "$ac_try") 2>&5 |
| 18943 | ac_status=$? |
| 18944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18945 | (exit $ac_status); }; } && |
| 18946 | { ac_try='test -s conftest$ac_exeext' |
| 18947 | { (case "(($ac_try" in |
| 18948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18949 | *) ac_try_echo=$ac_try;; |
| 18950 | esac |
| 18951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18952 | (eval "$ac_try") 2>&5 |
| 18953 | ac_status=$? |
| 18954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18955 | (exit $ac_status); }; }; then |
| 18956 | eval "$as_ac_var=yes" |
| 18957 | else |
| 18958 | echo "$as_me: failed program was:" >&5 |
| 18959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18960 | |
| 18961 | eval "$as_ac_var=no" |
| 18962 | fi |
| 18963 | |
| 18964 | rm -f core conftest.err conftest.$ac_objext \ |
| 18965 | conftest$ac_exeext conftest.$ac_ext |
| 18966 | fi |
| 18967 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18968 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18969 | echo "${ECHO_T}$ac_res" >&6; } |
| 18970 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18971 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18972 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18973 | _ACEOF |
| 18974 | |
| 18975 | fi |
| 18976 | done |
| 18977 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18978 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 18979 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 18980 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 18981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18982 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18983 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18984 | ac_cv_func_mmap_fixed_mapped=no |
| 18985 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18986 | cat >conftest.$ac_ext <<_ACEOF |
| 18987 | /* confdefs.h. */ |
| 18988 | _ACEOF |
| 18989 | cat confdefs.h >>conftest.$ac_ext |
| 18990 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18991 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18992 | $ac_includes_default |
| 18993 | /* malloc might have been renamed as rpl_malloc. */ |
| 18994 | #undef malloc |
| 18995 | |
| 18996 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 18997 | Here is a matrix of mmap possibilities: |
| 18998 | mmap private not fixed |
| 18999 | mmap private fixed at somewhere currently unmapped |
| 19000 | mmap private fixed at somewhere already mapped |
| 19001 | mmap shared not fixed |
| 19002 | mmap shared fixed at somewhere currently unmapped |
| 19003 | mmap shared fixed at somewhere already mapped |
| 19004 | For private mappings, we should verify that changes cannot be read() |
| 19005 | back from the file, nor mmap's back from the file at a different |
| 19006 | address. (There have been systems where private was not correctly |
| 19007 | implemented like the infamous i386 svr4.0, and systems where the |
| 19008 | VM page cache was not coherent with the file system buffer cache |
| 19009 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 19010 | For shared mappings, we should conversely verify that changes get |
| 19011 | propagated back to all the places they're supposed to be. |
| 19012 | |
| 19013 | Grep wants private fixed already mapped. |
| 19014 | The main things grep needs to know about mmap are: |
| 19015 | * does it exist and is it safe to write into the mmap'd area |
| 19016 | * how to use it (BSD variants) */ |
| 19017 | |
| 19018 | #include <fcntl.h> |
| 19019 | #include <sys/mman.h> |
| 19020 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19021 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19022 | char *malloc (); |
| 19023 | #endif |
| 19024 | |
| 19025 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19026 | #if !HAVE_GETPAGESIZE |
| 19027 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 19028 | # if !HAVE_SYS_PARAM_H |
| 19029 | # define HAVE_SYS_PARAM_H 1 |
| 19030 | # endif |
| 19031 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19032 | # ifdef _SC_PAGESIZE |
| 19033 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 19034 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19035 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19036 | # include <sys/param.h> |
| 19037 | # ifdef EXEC_PAGESIZE |
| 19038 | # define getpagesize() EXEC_PAGESIZE |
| 19039 | # else /* no EXEC_PAGESIZE */ |
| 19040 | # ifdef NBPG |
| 19041 | # define getpagesize() NBPG * CLSIZE |
| 19042 | # ifndef CLSIZE |
| 19043 | # define CLSIZE 1 |
| 19044 | # endif /* no CLSIZE */ |
| 19045 | # else /* no NBPG */ |
| 19046 | # ifdef NBPC |
| 19047 | # define getpagesize() NBPC |
| 19048 | # else /* no NBPC */ |
| 19049 | # ifdef PAGESIZE |
| 19050 | # define getpagesize() PAGESIZE |
| 19051 | # endif /* PAGESIZE */ |
| 19052 | # endif /* no NBPC */ |
| 19053 | # endif /* no NBPG */ |
| 19054 | # endif /* no EXEC_PAGESIZE */ |
| 19055 | # else /* no HAVE_SYS_PARAM_H */ |
| 19056 | # define getpagesize() 8192 /* punt totally */ |
| 19057 | # endif /* no HAVE_SYS_PARAM_H */ |
| 19058 | # endif /* no _SC_PAGESIZE */ |
| 19059 | |
| 19060 | #endif /* no HAVE_GETPAGESIZE */ |
| 19061 | |
| 19062 | int |
| 19063 | main () |
| 19064 | { |
| 19065 | char *data, *data2, *data3; |
| 19066 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19067 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19068 | |
| 19069 | pagesize = getpagesize (); |
| 19070 | |
| 19071 | /* First, make a file with some known garbage in it. */ |
| 19072 | data = (char *) malloc (pagesize); |
| 19073 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19074 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19075 | for (i = 0; i < pagesize; ++i) |
| 19076 | *(data + i) = rand (); |
| 19077 | umask (0); |
| 19078 | fd = creat ("conftest.mmap", 0600); |
| 19079 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19080 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19081 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19082 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19083 | close (fd); |
| 19084 | |
| 19085 | /* Next, try to mmap the file at a fixed address which already has |
| 19086 | something else allocated at it. If we can, also make sure that |
| 19087 | we see the same garbage. */ |
| 19088 | fd = open ("conftest.mmap", O_RDWR); |
| 19089 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19090 | return 1; |
| 19091 | data2 = (char *) malloc (2 * pagesize); |
| 19092 | if (!data2) |
| 19093 | return 1; |
| 19094 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19095 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19096 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19097 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19098 | for (i = 0; i < pagesize; ++i) |
| 19099 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19100 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19101 | |
| 19102 | /* Finally, make sure that changes to the mapped area do not |
| 19103 | percolate back to the file as seen by read(). (This is a bug on |
| 19104 | some variants of i386 svr4.0.) */ |
| 19105 | for (i = 0; i < pagesize; ++i) |
| 19106 | *(data2 + i) = *(data2 + i) + 1; |
| 19107 | data3 = (char *) malloc (pagesize); |
| 19108 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19109 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19110 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19111 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19112 | for (i = 0; i < pagesize; ++i) |
| 19113 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19114 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19115 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19116 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19117 | } |
| 19118 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19119 | rm -f conftest$ac_exeext |
| 19120 | if { (ac_try="$ac_link" |
| 19121 | case "(($ac_try" in |
| 19122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19123 | *) ac_try_echo=$ac_try;; |
| 19124 | esac |
| 19125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19126 | (eval "$ac_link") 2>&5 |
| 19127 | ac_status=$? |
| 19128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19129 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19130 | { (case "(($ac_try" in |
| 19131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19132 | *) ac_try_echo=$ac_try;; |
| 19133 | esac |
| 19134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19135 | (eval "$ac_try") 2>&5 |
| 19136 | ac_status=$? |
| 19137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19138 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19139 | ac_cv_func_mmap_fixed_mapped=yes |
| 19140 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19141 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19142 | echo "$as_me: failed program was:" >&5 |
| 19143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19144 | |
| 19145 | ( exit $ac_status ) |
| 19146 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19147 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19148 | 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] | 19149 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19150 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19151 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19152 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19153 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 19154 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19155 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 19156 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19157 | cat >>confdefs.h <<\_ACEOF |
| 19158 | #define HAVE_MMAP 1 |
| 19159 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19160 | |
| 19161 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19162 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19163 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19164 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 19165 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 19166 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 19167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19168 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19169 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19170 | ac_cpp='$CPP $CPPFLAGS' |
| 19171 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19172 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19173 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19174 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19175 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19176 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19177 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19178 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19179 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19180 | /* confdefs.h. */ |
| 19181 | _ACEOF |
| 19182 | cat confdefs.h >>conftest.$ac_ext |
| 19183 | cat >>conftest.$ac_ext <<_ACEOF |
| 19184 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19185 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19186 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19187 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19188 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19189 | |
| 19190 | int |
| 19191 | main () |
| 19192 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19193 | |
| 19194 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19195 | fd = creat ("foo",0777); |
| 19196 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 19197 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19198 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19199 | ; |
| 19200 | return 0; |
| 19201 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19202 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19203 | rm -f conftest$ac_exeext |
| 19204 | if { (ac_try="$ac_link" |
| 19205 | case "(($ac_try" in |
| 19206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19207 | *) ac_try_echo=$ac_try;; |
| 19208 | esac |
| 19209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19210 | (eval "$ac_link") 2>&5 |
| 19211 | ac_status=$? |
| 19212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19213 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19214 | { (case "(($ac_try" in |
| 19215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19216 | *) ac_try_echo=$ac_try;; |
| 19217 | esac |
| 19218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19219 | (eval "$ac_try") 2>&5 |
| 19220 | ac_status=$? |
| 19221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19222 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19223 | ac_cv_func_mmap_file=yes |
| 19224 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19225 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19226 | echo "$as_me: failed program was:" >&5 |
| 19227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19228 | |
| 19229 | ( exit $ac_status ) |
| 19230 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19231 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19232 | 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] | 19233 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19234 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19235 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19236 | ac_ext=c |
| 19237 | ac_cpp='$CPP $CPPFLAGS' |
| 19238 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19239 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19240 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19241 | |
| 19242 | |
| 19243 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19244 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 19245 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19246 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19247 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19248 | cat >>confdefs.h <<\_ACEOF |
| 19249 | #define HAVE_MMAP_FILE |
| 19250 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19251 | |
| 19252 | MMAP_FILE=yes |
| 19253 | |
| 19254 | fi |
| 19255 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19256 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 19257 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 19258 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 19259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19260 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 19261 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19262 | ac_cv_need_dev_zero_for_mmap=yes |
| 19263 | else |
| 19264 | ac_cv_need_dev_zero_for_mmap=no |
| 19265 | fi |
| 19266 | |
| 19267 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19268 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 19269 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19270 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 19271 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19272 | cat >>confdefs.h <<\_ACEOF |
| 19273 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 19274 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19275 | |
| 19276 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19277 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19278 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 19279 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19280 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 19281 | 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] | 19282 | fi |
| 19283 | if test "$ac_cv_func_mmap_file" = "no" |
| 19284 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19285 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 19286 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19287 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 19288 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19289 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19290 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 19291 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
| 19292 | cat >conftest.$ac_ext <<_ACEOF |
| 19293 | /* confdefs.h. */ |
| 19294 | _ACEOF |
| 19295 | cat confdefs.h >>conftest.$ac_ext |
| 19296 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19297 | /* end confdefs.h. */ |
| 19298 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19299 | volatile unsigned long val = 1; |
| 19300 | __sync_synchronize(); |
| 19301 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 19302 | __sync_add_and_fetch(&val, 1); |
| 19303 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19304 | return 0; |
| 19305 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19306 | |
| 19307 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19308 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19309 | if { (ac_try="$ac_link" |
| 19310 | case "(($ac_try" in |
| 19311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19312 | *) ac_try_echo=$ac_try;; |
| 19313 | esac |
| 19314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19315 | (eval "$ac_link") 2>conftest.er1 |
| 19316 | ac_status=$? |
| 19317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19318 | rm -f conftest.er1 |
| 19319 | cat conftest.err >&5 |
| 19320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19321 | (exit $ac_status); } && |
| 19322 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19323 | { (case "(($ac_try" in |
| 19324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19325 | *) ac_try_echo=$ac_try;; |
| 19326 | esac |
| 19327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19328 | (eval "$ac_try") 2>&5 |
| 19329 | ac_status=$? |
| 19330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19331 | (exit $ac_status); }; } && |
| 19332 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
| 19342 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19343 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19344 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19345 | cat >>confdefs.h <<\_ACEOF |
| 19346 | #define LLVM_MULTITHREADED 1 |
| 19347 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19348 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19349 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19350 | echo "$as_me: failed program was:" >&5 |
| 19351 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19352 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19353 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19354 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19355 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19356 | cat >>confdefs.h <<\_ACEOF |
| 19357 | #define LLVM_MULTITHREADED 0 |
| 19358 | _ACEOF |
| 19359 | |
| 19360 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 19361 | 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] | 19362 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19363 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19364 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19365 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19366 | |
| 19367 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19368 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19369 | 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] | 19370 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 19371 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 19372 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 19373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19374 | else |
| 19375 | ac_ext=c |
| 19376 | ac_cpp='$CPP $CPPFLAGS' |
| 19377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19380 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19381 | cat >conftest.$ac_ext <<_ACEOF |
| 19382 | /* confdefs.h. */ |
| 19383 | _ACEOF |
| 19384 | cat confdefs.h >>conftest.$ac_ext |
| 19385 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19386 | /* end confdefs.h. */ |
| 19387 | #ifndef __x86_64__ |
| 19388 | error: Not x86-64 even if uname says so! |
| 19389 | #endif |
| 19390 | |
| 19391 | int |
| 19392 | main () |
| 19393 | { |
| 19394 | |
| 19395 | ; |
| 19396 | return 0; |
| 19397 | } |
| 19398 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19399 | rm -f conftest.$ac_objext |
| 19400 | if { (ac_try="$ac_compile" |
| 19401 | case "(($ac_try" in |
| 19402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19403 | *) ac_try_echo=$ac_try;; |
| 19404 | esac |
| 19405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19406 | (eval "$ac_compile") 2>conftest.er1 |
| 19407 | ac_status=$? |
| 19408 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19409 | rm -f conftest.er1 |
| 19410 | cat conftest.err >&5 |
| 19411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19412 | (exit $ac_status); } && |
| 19413 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19414 | { (case "(($ac_try" in |
| 19415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19416 | *) ac_try_echo=$ac_try;; |
| 19417 | esac |
| 19418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19419 | (eval "$ac_try") 2>&5 |
| 19420 | ac_status=$? |
| 19421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19422 | (exit $ac_status); }; } && |
| 19423 | { ac_try='test -s conftest.$ac_objext' |
| 19424 | { (case "(($ac_try" in |
| 19425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19426 | *) ac_try_echo=$ac_try;; |
| 19427 | esac |
| 19428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19429 | (eval "$ac_try") 2>&5 |
| 19430 | ac_status=$? |
| 19431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19432 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19433 | llvm_cv_linux_mixed=no |
| 19434 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19435 | echo "$as_me: failed program was:" >&5 |
| 19436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19437 | |
| 19438 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19439 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19440 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19442 | ac_ext=c |
| 19443 | ac_cpp='$CPP $CPPFLAGS' |
| 19444 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19445 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19446 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19447 | |
| 19448 | |
| 19449 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19450 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 19451 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19452 | |
| 19453 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 19454 | llvm_cv_target_arch="x86" |
| 19455 | ARCH="x86" |
| 19456 | fi |
| 19457 | fi |
| 19458 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19459 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19460 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19461 | do |
| 19462 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19463 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19464 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19465 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19467 | else |
| 19468 | cat >conftest.$ac_ext <<_ACEOF |
| 19469 | /* confdefs.h. */ |
| 19470 | _ACEOF |
| 19471 | cat confdefs.h >>conftest.$ac_ext |
| 19472 | cat >>conftest.$ac_ext <<_ACEOF |
| 19473 | /* end confdefs.h. */ |
| 19474 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19475 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19476 | #define $ac_func innocuous_$ac_func |
| 19477 | |
| 19478 | /* System header to define __stub macros and hopefully few prototypes, |
| 19479 | which can conflict with char $ac_func (); below. |
| 19480 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19481 | <limits.h> exists even on freestanding compilers. */ |
| 19482 | |
| 19483 | #ifdef __STDC__ |
| 19484 | # include <limits.h> |
| 19485 | #else |
| 19486 | # include <assert.h> |
| 19487 | #endif |
| 19488 | |
| 19489 | #undef $ac_func |
| 19490 | |
| 19491 | /* Override any GCC internal prototype to avoid an error. |
| 19492 | Use char because int might match the return type of a GCC |
| 19493 | builtin and then its argument prototype would still apply. */ |
| 19494 | #ifdef __cplusplus |
| 19495 | extern "C" |
| 19496 | #endif |
| 19497 | char $ac_func (); |
| 19498 | /* The GNU C library defines this for functions which it implements |
| 19499 | to always fail with ENOSYS. Some functions are actually named |
| 19500 | something starting with __ and the normal name is an alias. */ |
| 19501 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19502 | choke me |
| 19503 | #endif |
| 19504 | |
| 19505 | int |
| 19506 | main () |
| 19507 | { |
| 19508 | return $ac_func (); |
| 19509 | ; |
| 19510 | return 0; |
| 19511 | } |
| 19512 | _ACEOF |
| 19513 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19514 | if { (ac_try="$ac_link" |
| 19515 | case "(($ac_try" in |
| 19516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19517 | *) ac_try_echo=$ac_try;; |
| 19518 | esac |
| 19519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19520 | (eval "$ac_link") 2>conftest.er1 |
| 19521 | ac_status=$? |
| 19522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19523 | rm -f conftest.er1 |
| 19524 | cat conftest.err >&5 |
| 19525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19526 | (exit $ac_status); } && |
| 19527 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19528 | { (case "(($ac_try" in |
| 19529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19530 | *) ac_try_echo=$ac_try;; |
| 19531 | esac |
| 19532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19533 | (eval "$ac_try") 2>&5 |
| 19534 | ac_status=$? |
| 19535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19536 | (exit $ac_status); }; } && |
| 19537 | { ac_try='test -s conftest$ac_exeext' |
| 19538 | { (case "(($ac_try" in |
| 19539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19540 | *) ac_try_echo=$ac_try;; |
| 19541 | esac |
| 19542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19543 | (eval "$ac_try") 2>&5 |
| 19544 | ac_status=$? |
| 19545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19546 | (exit $ac_status); }; }; then |
| 19547 | eval "$as_ac_var=yes" |
| 19548 | else |
| 19549 | echo "$as_me: failed program was:" >&5 |
| 19550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19551 | |
| 19552 | eval "$as_ac_var=no" |
| 19553 | fi |
| 19554 | |
| 19555 | rm -f core conftest.err conftest.$ac_objext \ |
| 19556 | conftest$ac_exeext conftest.$ac_ext |
| 19557 | fi |
| 19558 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19559 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19560 | echo "${ECHO_T}$ac_res" >&6; } |
| 19561 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19562 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19563 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19564 | _ACEOF |
| 19565 | |
| 19566 | fi |
| 19567 | done |
| 19568 | |
| 19569 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19570 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 19571 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
| 19572 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 19573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19574 | else |
| 19575 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19576 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19577 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 19578 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 19579 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19580 | if test $? -eq 0 ; then |
| 19581 | llvm_cv_llvmgcc_sanity="yes" |
| 19582 | fi |
| 19583 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 19584 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19585 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19586 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 19587 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19588 | |
| 19589 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19590 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 19591 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19592 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19593 | LLVMCC1=$llvmcc1path |
| 19594 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19595 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19596 | LLVMCC1PLUS=$llvmcc1pluspath |
| 19597 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19598 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 19599 | LLVMGCCDIR=$llvmgccdir |
| 19600 | |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 19601 | llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'` |
| 19602 | LLVMGCCLIBEXEC=$llvmgcclibexec |
| 19603 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 19604 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 19605 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 19606 | LLVMGCC_VERSION=$llvmgccversion |
| 19607 | |
| 19608 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 19609 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 19610 | 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] | 19611 | LLVMGCC_LANGS=$llvmgcclangs |
| 19612 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19613 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 19614 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 19615 | fi |
| 19616 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 19617 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 19618 | |
| 19619 | |
Jeffrey Yasskin | f6afae2 | 2010-02-18 02:36:02 +0000 | [diff] [blame] | 19620 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var |
| 19621 | |
| 19622 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19623 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19624 | # information into substitutions that will end up in Makefile.config.in |
| 19625 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 19626 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 19627 | prefix="/usr/local" |
| 19628 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19629 | eval LLVM_PREFIX="${prefix}"; |
| 19630 | eval LLVM_BINDIR="${prefix}/bin"; |
| 19631 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 19632 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 19633 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 19634 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19635 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 19636 | eval LLVM_INFODIR="${prefix}/info"; |
| 19637 | eval LLVM_MANDIR="${prefix}/man"; |
| 19638 | LLVM_CONFIGTIME=`date` |
| 19639 | |
| 19640 | |
| 19641 | |
| 19642 | |
| 19643 | |
| 19644 | |
| 19645 | |
| 19646 | |
| 19647 | |
| 19648 | |
| 19649 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19650 | # Place the various directores into the config.h file as #defines so that we |
| 19651 | # can know about the installation paths within LLVM. |
| 19652 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19653 | cat >>confdefs.h <<_ACEOF |
| 19654 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 19655 | _ACEOF |
| 19656 | |
| 19657 | |
| 19658 | cat >>confdefs.h <<_ACEOF |
| 19659 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 19660 | _ACEOF |
| 19661 | |
| 19662 | |
| 19663 | cat >>confdefs.h <<_ACEOF |
| 19664 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 19665 | _ACEOF |
| 19666 | |
| 19667 | |
| 19668 | cat >>confdefs.h <<_ACEOF |
| 19669 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 19670 | _ACEOF |
| 19671 | |
| 19672 | |
| 19673 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 19674 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19675 | _ACEOF |
| 19676 | |
| 19677 | |
| 19678 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 19679 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19680 | _ACEOF |
| 19681 | |
| 19682 | |
| 19683 | cat >>confdefs.h <<_ACEOF |
| 19684 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 19685 | _ACEOF |
| 19686 | |
| 19687 | |
| 19688 | cat >>confdefs.h <<_ACEOF |
| 19689 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 19690 | _ACEOF |
| 19691 | |
| 19692 | |
| 19693 | cat >>confdefs.h <<_ACEOF |
| 19694 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 19695 | _ACEOF |
| 19696 | |
| 19697 | |
| 19698 | cat >>confdefs.h <<_ACEOF |
| 19699 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 19700 | _ACEOF |
| 19701 | |
| 19702 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 19703 | cat >>confdefs.h <<_ACEOF |
| 19704 | #define LLVM_HOSTTRIPLE "$host" |
| 19705 | _ACEOF |
| 19706 | |
| 19707 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 19708 | # Determine which bindings to build. |
| 19709 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 19710 | BINDINGS_TO_BUILD="" |
| 19711 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 19712 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 19713 | fi |
| 19714 | fi |
| 19715 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 19716 | |
| 19717 | |
| 19718 | # This isn't really configurey, but it avoids having to repeat the list in |
| 19719 | # other files. |
| 19720 | ALL_BINDINGS=ocaml |
| 19721 | |
| 19722 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 19723 | # Do any work necessary to ensure that bindings have what they need. |
| 19724 | binding_prereqs_failed=0 |
| 19725 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 19726 | case "$a_binding" in |
| 19727 | ocaml) |
| 19728 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19729 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 19730 | 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] | 19731 | binding_prereqs_failed=1 |
| 19732 | fi |
| 19733 | if test "x$OCAMLDEP" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19734 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 19735 | 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] | 19736 | binding_prereqs_failed=1 |
| 19737 | fi |
| 19738 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19739 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 19740 | 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] | 19741 | fi |
| 19742 | if test "x$with_ocaml_libdir" != xauto ; then |
| 19743 | OCAML_LIBDIR=$with_ocaml_libdir |
| 19744 | |
| 19745 | else |
| 19746 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 19747 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 19748 | then |
| 19749 | # ocaml stdlib is beneath our prefix; use stdlib |
| 19750 | OCAML_LIBDIR=$ocaml_stdlib |
| 19751 | |
| 19752 | else |
| 19753 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 19754 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 19755 | |
| 19756 | fi |
| 19757 | fi |
| 19758 | ;; |
| 19759 | esac |
| 19760 | done |
| 19761 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19762 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 19763 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 19764 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 19765 | fi |
| 19766 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19767 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 19768 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 19769 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 19770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19771 | else |
| 19772 | ac_ext=cpp |
| 19773 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19774 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19775 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19776 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19777 | |
| 19778 | oldcxxflags="$CXXFLAGS" |
| 19779 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19780 | cat >conftest.$ac_ext <<_ACEOF |
| 19781 | /* confdefs.h. */ |
| 19782 | _ACEOF |
| 19783 | cat confdefs.h >>conftest.$ac_ext |
| 19784 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19785 | /* end confdefs.h. */ |
| 19786 | |
| 19787 | int |
| 19788 | main () |
| 19789 | { |
| 19790 | |
| 19791 | ; |
| 19792 | return 0; |
| 19793 | } |
| 19794 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19795 | rm -f conftest.$ac_objext |
| 19796 | if { (ac_try="$ac_compile" |
| 19797 | case "(($ac_try" in |
| 19798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19799 | *) ac_try_echo=$ac_try;; |
| 19800 | esac |
| 19801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19802 | (eval "$ac_compile") 2>conftest.er1 |
| 19803 | ac_status=$? |
| 19804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19805 | rm -f conftest.er1 |
| 19806 | cat conftest.err >&5 |
| 19807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19808 | (exit $ac_status); } && |
| 19809 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19810 | { (case "(($ac_try" in |
| 19811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19812 | *) ac_try_echo=$ac_try;; |
| 19813 | esac |
| 19814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19815 | (eval "$ac_try") 2>&5 |
| 19816 | ac_status=$? |
| 19817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19818 | (exit $ac_status); }; } && |
| 19819 | { ac_try='test -s conftest.$ac_objext' |
| 19820 | { (case "(($ac_try" in |
| 19821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19822 | *) ac_try_echo=$ac_try;; |
| 19823 | esac |
| 19824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19825 | (eval "$ac_try") 2>&5 |
| 19826 | ac_status=$? |
| 19827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19828 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19829 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 19830 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19831 | echo "$as_me: failed program was:" >&5 |
| 19832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19833 | |
| 19834 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19835 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19836 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19838 | CXXFLAGS="$oldcxxflags" |
| 19839 | ac_ext=c |
| 19840 | ac_cpp='$CPP $CPPFLAGS' |
| 19841 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19842 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19843 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19844 | |
| 19845 | |
| 19846 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19847 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 19848 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19849 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 19850 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 19851 | |
| 19852 | else |
| 19853 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 19854 | |
| 19855 | fi |
| 19856 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 19857 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 19858 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 19859 | RPATH="-Wl,-R" |
| 19860 | else |
| 19861 | RPATH="-Wl,-rpath" |
| 19862 | fi |
| 19863 | |
| 19864 | |
| 19865 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 19866 | RDYNAMIC="-Wl,-export-dynamic" |
| 19867 | else |
| 19868 | RDYNAMIC="" |
| 19869 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 19870 | |
| 19871 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19872 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19873 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19874 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 19875 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 19876 | |
| 19877 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 19878 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 19879 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 19880 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 19881 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 19882 | |
Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 19883 | ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19884 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19885 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19886 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19887 | |
| 19888 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 19889 | ac_config_files="$ac_config_files llvm.spec" |
| 19890 | |
| 19891 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19892 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 19893 | |
| 19894 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 19895 | ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td" |
| 19896 | |
| 19897 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19898 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 19899 | |
| 19900 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19901 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 19902 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19903 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19904 | |
| 19905 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19906 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19907 | |
| 19908 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19909 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19910 | |
| 19911 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19912 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19913 | |
| 19914 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 19915 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 19916 | |
| 19917 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19918 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19919 | |
| 19920 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19921 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19922 | |
| 19923 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 19924 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 19925 | |
| 19926 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19927 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19928 | |
| 19929 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19930 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19931 | |
| 19932 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19933 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19934 | |
| 19935 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 19936 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 19937 | |
| 19938 | |
| 19939 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 19940 | |
| 19941 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19942 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19943 | cat >confcache <<\_ACEOF |
| 19944 | # This file is a shell script that caches the results of configure |
| 19945 | # tests run on this system so they can be shared between configure |
| 19946 | # scripts and configure runs, see configure's option --config-cache. |
| 19947 | # It is not useful on other systems. If it contains results you don't |
| 19948 | # want to keep, you may remove or edit it. |
| 19949 | # |
| 19950 | # config.status only pays attention to the cache file if you give it |
| 19951 | # the --recheck option to rerun configure. |
| 19952 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19953 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19954 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 19955 | # following values. |
| 19956 | |
| 19957 | _ACEOF |
| 19958 | |
| 19959 | # The following way of writing the cache mishandles newlines in values, |
| 19960 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19961 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19962 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 19963 | # 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] | 19964 | ( |
| 19965 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 19966 | eval ac_val=\$$ac_var |
| 19967 | case $ac_val in #( |
| 19968 | *${as_nl}*) |
| 19969 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19970 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 19971 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19972 | esac |
| 19973 | case $ac_var in #( |
| 19974 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19975 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19976 | esac ;; |
| 19977 | esac |
| 19978 | done |
| 19979 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19980 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19981 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 19982 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19983 | # `set' does not quote correctly, so add quotes (double-quote |
| 19984 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19985 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19986 | "s/'/'\\\\''/g; |
| 19987 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19988 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19989 | *) |
| 19990 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19991 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19992 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19993 | esac | |
| 19994 | sort |
| 19995 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19996 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19997 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19998 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19999 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20000 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20001 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20002 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20003 | :end' >>confcache |
| 20004 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 20005 | if test -w "$cache_file"; then |
| 20006 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20007 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 20008 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20009 | cat confcache >$cache_file |
| 20010 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20011 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 20012 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20013 | fi |
| 20014 | fi |
| 20015 | rm -f confcache |
| 20016 | |
| 20017 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20018 | # Let make expand exec_prefix. |
| 20019 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 20020 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20021 | DEFS=-DHAVE_CONFIG_H |
| 20022 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20023 | ac_libobjs= |
| 20024 | ac_ltlibobjs= |
| 20025 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20026 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20027 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20028 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20029 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 20030 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20031 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 20032 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20033 | done |
| 20034 | LIBOBJS=$ac_libobjs |
| 20035 | |
| 20036 | LTLIBOBJS=$ac_ltlibobjs |
| 20037 | |
| 20038 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20039 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20040 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20041 | Usually this means the macro was only invoked conditionally." >&5 |
| 20042 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20043 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20044 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20045 | fi |
| 20046 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20047 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20048 | Usually this means the macro was only invoked conditionally." >&5 |
| 20049 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20050 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20051 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20052 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20053 | |
| 20054 | : ${CONFIG_STATUS=./config.status} |
| 20055 | ac_clean_files_save=$ac_clean_files |
| 20056 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20057 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 20058 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20059 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20060 | #! $SHELL |
| 20061 | # Generated by $as_me. |
| 20062 | # Run this file to recreate the current configuration. |
| 20063 | # Compiler output produced by configure, useful for debugging |
| 20064 | # configure, is in config.log if it exists. |
| 20065 | |
| 20066 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20067 | ac_cs_recheck=false |
| 20068 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20069 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20070 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20071 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20072 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20073 | ## --------------------- ## |
| 20074 | ## M4sh Initialization. ## |
| 20075 | ## --------------------- ## |
| 20076 | |
| 20077 | # Be Bourne compatible |
| 20078 | 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] | 20079 | emulate sh |
| 20080 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20081 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20082 | # is contrary to our usage. Disable this feature. |
| 20083 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20084 | setopt NO_GLOB_SUBST |
| 20085 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20086 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20087 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20088 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 20089 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20090 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20091 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20092 | # PATH needs CR |
| 20093 | # Avoid depending upon Character Ranges. |
| 20094 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20095 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20096 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20097 | as_cr_digits='0123456789' |
| 20098 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20099 | |
| 20100 | # The user is always right. |
| 20101 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20102 | echo "#! /bin/sh" >conf$$.sh |
| 20103 | echo "exit 0" >>conf$$.sh |
| 20104 | chmod +x conf$$.sh |
| 20105 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 20106 | PATH_SEPARATOR=';' |
| 20107 | else |
| 20108 | PATH_SEPARATOR=: |
| 20109 | fi |
| 20110 | rm -f conf$$.sh |
| 20111 | fi |
| 20112 | |
| 20113 | # Support unset when possible. |
| 20114 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 20115 | as_unset=unset |
| 20116 | else |
| 20117 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20118 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20119 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20120 | |
| 20121 | # IFS |
| 20122 | # We need space, tab and new line, in precisely that order. Quoting is |
| 20123 | # there to prevent editors from complaining about space-tab. |
| 20124 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 20125 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20126 | as_nl=' |
| 20127 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20128 | IFS=" "" $as_nl" |
| 20129 | |
| 20130 | # 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] | 20131 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20132 | *[\\/]* ) as_myself=$0 ;; |
| 20133 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20134 | for as_dir in $PATH |
| 20135 | do |
| 20136 | IFS=$as_save_IFS |
| 20137 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20138 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20139 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20140 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20141 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20142 | ;; |
| 20143 | esac |
| 20144 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20145 | # in which case we are not to be found in the path. |
| 20146 | if test "x$as_myself" = x; then |
| 20147 | as_myself=$0 |
| 20148 | fi |
| 20149 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20150 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 20151 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20152 | fi |
| 20153 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20154 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20155 | for as_var in ENV MAIL MAILPATH |
| 20156 | 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] | 20157 | done |
| 20158 | PS1='$ ' |
| 20159 | PS2='> ' |
| 20160 | PS4='+ ' |
| 20161 | |
| 20162 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20163 | for as_var in \ |
| 20164 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20165 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20166 | LC_TELEPHONE LC_TIME |
| 20167 | do |
| 20168 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 20169 | eval $as_var=C; export $as_var |
| 20170 | else |
| 20171 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20172 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20173 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20174 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20175 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20176 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20177 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20178 | as_expr=expr |
| 20179 | else |
| 20180 | as_expr=false |
| 20181 | fi |
| 20182 | |
| 20183 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 20184 | as_basename=basename |
| 20185 | else |
| 20186 | as_basename=false |
| 20187 | fi |
| 20188 | |
| 20189 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20190 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20191 | as_me=`$as_basename -- "$0" || |
| 20192 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20193 | X"$0" : 'X\(//\)$' \| \ |
| 20194 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20195 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20196 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 20197 | s//\1/ |
| 20198 | q |
| 20199 | } |
| 20200 | /^X\/\(\/\/\)$/{ |
| 20201 | s//\1/ |
| 20202 | q |
| 20203 | } |
| 20204 | /^X\/\(\/\).*/{ |
| 20205 | s//\1/ |
| 20206 | q |
| 20207 | } |
| 20208 | s/.*/./; q'` |
| 20209 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20210 | # CDPATH. |
| 20211 | $as_unset CDPATH |
| 20212 | |
| 20213 | |
| 20214 | |
| 20215 | as_lineno_1=$LINENO |
| 20216 | as_lineno_2=$LINENO |
| 20217 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20218 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 20219 | |
| 20220 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20221 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20222 | # line-number line after each line using $LINENO; the second 'sed' |
| 20223 | # does the real work. The second script uses 'N' to pair each |
| 20224 | # line-number line with the line containing $LINENO, and appends |
| 20225 | # trailing '-' during substitution so that $LINENO is not a special |
| 20226 | # case at line end. |
| 20227 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20228 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 20229 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 20230 | sed -n ' |
| 20231 | p |
| 20232 | /[$]LINENO/= |
| 20233 | ' <$as_myself | |
| 20234 | sed ' |
| 20235 | s/[$]LINENO.*/&-/ |
| 20236 | t lineno |
| 20237 | b |
| 20238 | :lineno |
| 20239 | N |
| 20240 | :loop |
| 20241 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 20242 | t loop |
| 20243 | s/-\n.*// |
| 20244 | ' >$as_me.lineno && |
| 20245 | chmod +x "$as_me.lineno" || |
| 20246 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 20247 | { (exit 1); exit 1; }; } |
| 20248 | |
| 20249 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20250 | # (the dirname of $[0] is not the place where we might find the |
| 20251 | # original and so on. Autoconf is especially sensitive to this). |
| 20252 | . "./$as_me.lineno" |
| 20253 | # Exit status is that of the last command. |
| 20254 | exit |
| 20255 | } |
| 20256 | |
| 20257 | |
| 20258 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 20259 | as_dirname=dirname |
| 20260 | else |
| 20261 | as_dirname=false |
| 20262 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20263 | |
| 20264 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20265 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20266 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20267 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20268 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20269 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20270 | esac;; |
| 20271 | *) |
| 20272 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20273 | esac |
| 20274 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20275 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20276 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20277 | as_expr=expr |
| 20278 | else |
| 20279 | as_expr=false |
| 20280 | fi |
| 20281 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20282 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20283 | if test -d conf$$.dir; then |
| 20284 | rm -f conf$$.dir/conf$$.file |
| 20285 | else |
| 20286 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20287 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20288 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20289 | echo >conf$$.file |
| 20290 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20291 | as_ln_s='ln -s' |
| 20292 | # ... but there are two gotchas: |
| 20293 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 20294 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 20295 | # In both cases, we have to default to `cp -p'. |
| 20296 | 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] | 20297 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20298 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20299 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20300 | else |
| 20301 | as_ln_s='cp -p' |
| 20302 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20303 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 20304 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20305 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20306 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20307 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20308 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20309 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20310 | as_mkdir_p=false |
| 20311 | fi |
| 20312 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20313 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 20314 | # systems may use methods other than mode bits to determine executability. |
| 20315 | cat >conf$$.file <<_ASEOF |
| 20316 | #! /bin/sh |
| 20317 | exit 0 |
| 20318 | _ASEOF |
| 20319 | chmod +x conf$$.file |
| 20320 | if test -x conf$$.file >/dev/null 2>&1; then |
| 20321 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20322 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20323 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20324 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20325 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20326 | |
| 20327 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20328 | 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] | 20329 | |
| 20330 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20331 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20332 | |
| 20333 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20334 | exec 6>&1 |
| 20335 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20336 | # 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] | 20337 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20338 | # values after options handling. |
| 20339 | ac_log=" |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 20340 | This file was extended by llvm $as_me 2.7svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20341 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20342 | |
| 20343 | CONFIG_FILES = $CONFIG_FILES |
| 20344 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20345 | CONFIG_LINKS = $CONFIG_LINKS |
| 20346 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20347 | $ $0 $@ |
| 20348 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20349 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 20350 | " |
| 20351 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20352 | _ACEOF |
| 20353 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20354 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20355 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20356 | config_files="$ac_config_files" |
| 20357 | config_headers="$ac_config_headers" |
| 20358 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20359 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20360 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20361 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20362 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20363 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20364 | \`$as_me' instantiates files from templates according to the |
| 20365 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20366 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20367 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20368 | |
| 20369 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20370 | -V, --version print version number, then exit |
| 20371 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20372 | -d, --debug don't remove temporary files |
| 20373 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20374 | --file=FILE[:TEMPLATE] |
| 20375 | instantiate the configuration file FILE |
| 20376 | --header=FILE[:TEMPLATE] |
| 20377 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20378 | |
| 20379 | Configuration files: |
| 20380 | $config_files |
| 20381 | |
| 20382 | Configuration headers: |
| 20383 | $config_headers |
| 20384 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20385 | Configuration commands: |
| 20386 | $config_commands |
| 20387 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20388 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20389 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20390 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20391 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20392 | ac_cs_version="\\ |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 20393 | llvm config.status 2.7svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20394 | configured by $0, generated by GNU Autoconf 2.60, |
| 20395 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20396 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20397 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20398 | This config.status script is free software; the Free Software Foundation |
| 20399 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20400 | |
| 20401 | ac_pwd='$ac_pwd' |
| 20402 | srcdir='$srcdir' |
| 20403 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20404 | _ACEOF |
| 20405 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20406 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20407 | # If no file are specified by the user, then we need to provide default |
| 20408 | # 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] | 20409 | ac_need_defaults=: |
| 20410 | while test $# != 0 |
| 20411 | do |
| 20412 | case $1 in |
| 20413 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20414 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 20415 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20416 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20417 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20418 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20419 | ac_option=$1 |
| 20420 | ac_optarg=$2 |
| 20421 | ac_shift=shift |
| 20422 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20423 | esac |
| 20424 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20425 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20426 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20427 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20428 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20429 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20430 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20431 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20432 | debug=: ;; |
| 20433 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20434 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20435 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20436 | ac_need_defaults=false;; |
| 20437 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20438 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20439 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20440 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20441 | --he | --h) |
| 20442 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20443 | { echo "$as_me: error: ambiguous option: $1 |
| 20444 | Try \`$0 --help' for more information." >&2 |
| 20445 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20446 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20447 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20448 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20449 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20450 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20451 | |
| 20452 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20453 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 20454 | Try \`$0 --help' for more information." >&2 |
| 20455 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20456 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20457 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20458 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20459 | |
| 20460 | esac |
| 20461 | shift |
| 20462 | done |
| 20463 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20464 | ac_configure_extra_args= |
| 20465 | |
| 20466 | if $ac_cs_silent; then |
| 20467 | exec 6>/dev/null |
| 20468 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20469 | fi |
| 20470 | |
| 20471 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20472 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20473 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20474 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20475 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20476 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20477 | 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] | 20478 | fi |
| 20479 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20480 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20481 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20482 | exec 5>>config.log |
| 20483 | { |
| 20484 | echo |
| 20485 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20486 | ## Running $as_me. ## |
| 20487 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20488 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20489 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20490 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20491 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20492 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20493 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20494 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20495 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 20496 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20497 | |
| 20498 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20499 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20500 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20501 | |
| 20502 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20503 | for ac_config_target in $ac_config_targets |
| 20504 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20505 | case $ac_config_target in |
| 20506 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 20507 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 20508 | "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] | 20509 | "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] | 20510 | "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; |
Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 20511 | "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20512 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 20513 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20514 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 20515 | "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20516 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 20517 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 20518 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 20519 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 20520 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 20521 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 20522 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20523 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 20524 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 20525 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20526 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 20527 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 20528 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 20529 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 20530 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20531 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20532 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 20533 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 20534 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20535 | esac |
| 20536 | done |
| 20537 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20538 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20539 | # If the user did not use the arguments to specify the items to instantiate, |
| 20540 | # then the envvar interface is used. Set only those that are not. |
| 20541 | # We use the long form for the default assignment because of an extremely |
| 20542 | # bizarre bug on SunOS 4.1.3. |
| 20543 | if $ac_need_defaults; then |
| 20544 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20545 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20546 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20547 | fi |
| 20548 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20549 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20550 | # 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] | 20551 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20552 | # Hook for its removal unless debugging. |
| 20553 | # Note that there is a small window in which the directory will not be cleaned: |
| 20554 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20555 | $debug || |
| 20556 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20557 | tmp= |
| 20558 | trap 'exit_status=$? |
| 20559 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 20560 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20561 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20562 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20563 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20564 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20565 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20566 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20567 | test -n "$tmp" && test -d "$tmp" |
| 20568 | } || |
| 20569 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20570 | tmp=./conf$$-$RANDOM |
| 20571 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20572 | } || |
| 20573 | { |
| 20574 | echo "$me: cannot create a temporary directory in ." >&2 |
| 20575 | { (exit 1); exit 1; } |
| 20576 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20577 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20578 | # |
| 20579 | # Set up the sed scripts for CONFIG_FILES section. |
| 20580 | # |
| 20581 | |
| 20582 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 20583 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20584 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20585 | |
| 20586 | _ACEOF |
| 20587 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20588 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20589 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20590 | ac_delim='%!_!# ' |
| 20591 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20592 | cat >conf$$subs.sed <<_ACEOF |
| 20593 | SHELL!$SHELL$ac_delim |
| 20594 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 20595 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 20596 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 20597 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 20598 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 20599 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 20600 | exec_prefix!$exec_prefix$ac_delim |
| 20601 | prefix!$prefix$ac_delim |
| 20602 | program_transform_name!$program_transform_name$ac_delim |
| 20603 | bindir!$bindir$ac_delim |
| 20604 | sbindir!$sbindir$ac_delim |
| 20605 | libexecdir!$libexecdir$ac_delim |
| 20606 | datarootdir!$datarootdir$ac_delim |
| 20607 | datadir!$datadir$ac_delim |
| 20608 | sysconfdir!$sysconfdir$ac_delim |
| 20609 | sharedstatedir!$sharedstatedir$ac_delim |
| 20610 | localstatedir!$localstatedir$ac_delim |
| 20611 | includedir!$includedir$ac_delim |
| 20612 | oldincludedir!$oldincludedir$ac_delim |
| 20613 | docdir!$docdir$ac_delim |
| 20614 | infodir!$infodir$ac_delim |
| 20615 | htmldir!$htmldir$ac_delim |
| 20616 | dvidir!$dvidir$ac_delim |
| 20617 | pdfdir!$pdfdir$ac_delim |
| 20618 | psdir!$psdir$ac_delim |
| 20619 | libdir!$libdir$ac_delim |
| 20620 | localedir!$localedir$ac_delim |
| 20621 | mandir!$mandir$ac_delim |
| 20622 | DEFS!$DEFS$ac_delim |
| 20623 | ECHO_C!$ECHO_C$ac_delim |
| 20624 | ECHO_N!$ECHO_N$ac_delim |
| 20625 | ECHO_T!$ECHO_T$ac_delim |
| 20626 | LIBS!$LIBS$ac_delim |
| 20627 | build_alias!$build_alias$ac_delim |
| 20628 | host_alias!$host_alias$ac_delim |
| 20629 | target_alias!$target_alias$ac_delim |
| 20630 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 20631 | subdirs!$subdirs$ac_delim |
| 20632 | build!$build$ac_delim |
| 20633 | build_cpu!$build_cpu$ac_delim |
| 20634 | build_vendor!$build_vendor$ac_delim |
| 20635 | build_os!$build_os$ac_delim |
| 20636 | host!$host$ac_delim |
| 20637 | host_cpu!$host_cpu$ac_delim |
| 20638 | host_vendor!$host_vendor$ac_delim |
| 20639 | host_os!$host_os$ac_delim |
| 20640 | target!$target$ac_delim |
| 20641 | target_cpu!$target_cpu$ac_delim |
| 20642 | target_vendor!$target_vendor$ac_delim |
| 20643 | target_os!$target_os$ac_delim |
| 20644 | OS!$OS$ac_delim |
| 20645 | HOST_OS!$HOST_OS$ac_delim |
| 20646 | TARGET_OS!$TARGET_OS$ac_delim |
| 20647 | LINKALL!$LINKALL$ac_delim |
| 20648 | NOLINKALL!$NOLINKALL$ac_delim |
| 20649 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 20650 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 20651 | ARCH!$ARCH$ac_delim |
| 20652 | ENDIAN!$ENDIAN$ac_delim |
| 20653 | CC!$CC$ac_delim |
| 20654 | CFLAGS!$CFLAGS$ac_delim |
| 20655 | LDFLAGS!$LDFLAGS$ac_delim |
| 20656 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 20657 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 20658 | EXEEXT!$EXEEXT$ac_delim |
| 20659 | OBJEXT!$OBJEXT$ac_delim |
| 20660 | CPP!$CPP$ac_delim |
| 20661 | GREP!$GREP$ac_delim |
| 20662 | EGREP!$EGREP$ac_delim |
| 20663 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 20664 | BUILD_CC!$BUILD_CC$ac_delim |
| 20665 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 20666 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 20667 | CVSBUILD!$CVSBUILD$ac_delim |
| 20668 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 20669 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 20670 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 20671 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 20672 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 20673 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 20674 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 20675 | JIT!$JIT$ac_delim |
| 20676 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 20677 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 20678 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
| 20679 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Jeffrey Yasskin | f6afae2 | 2010-02-18 02:36:02 +0000 | [diff] [blame] | 20680 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20681 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 20682 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 20683 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
| 20684 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
| 20685 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
| 20686 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
| 20687 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
| 20688 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 20689 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20690 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20691 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20692 | 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] | 20693 | break |
| 20694 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20695 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 20696 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 20697 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20698 | else |
| 20699 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20700 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20701 | done |
| 20702 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20703 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 20704 | if test -n "$ac_eof"; then |
| 20705 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 20706 | ac_eof=`expr $ac_eof + 1` |
| 20707 | fi |
| 20708 | |
| 20709 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20710 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 20711 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20712 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20713 | sed ' |
| 20714 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 20715 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 20716 | :n |
| 20717 | t n |
| 20718 | s/'"$ac_delim"'$/,g/; t |
| 20719 | s/$/\\/; p |
| 20720 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 20721 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 20722 | rm -f conf$$subs.sed |
| 20723 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20724 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20725 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20726 | |
| 20727 | |
| 20728 | ac_delim='%!_!# ' |
| 20729 | for ac_last_try in false false false false false :; do |
| 20730 | cat >conf$$subs.sed <<_ACEOF |
Jeffrey Yasskin | f6afae2 | 2010-02-18 02:36:02 +0000 | [diff] [blame] | 20731 | ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20732 | ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim |
| 20733 | CXX!$CXX$ac_delim |
| 20734 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 20735 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 20736 | NM!$NM$ac_delim |
| 20737 | ifGNUmake!$ifGNUmake$ac_delim |
| 20738 | LN_S!$LN_S$ac_delim |
| 20739 | CMP!$CMP$ac_delim |
| 20740 | CP!$CP$ac_delim |
| 20741 | DATE!$DATE$ac_delim |
| 20742 | FIND!$FIND$ac_delim |
| 20743 | MKDIR!$MKDIR$ac_delim |
| 20744 | MV!$MV$ac_delim |
| 20745 | RANLIB!$RANLIB$ac_delim |
| 20746 | AR!$AR$ac_delim |
| 20747 | RM!$RM$ac_delim |
| 20748 | SED!$SED$ac_delim |
| 20749 | TAR!$TAR$ac_delim |
| 20750 | BINPWD!$BINPWD$ac_delim |
| 20751 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 20752 | DOT!$DOT$ac_delim |
| 20753 | FDP!$FDP$ac_delim |
| 20754 | NEATO!$NEATO$ac_delim |
| 20755 | TWOPI!$TWOPI$ac_delim |
| 20756 | CIRCO!$CIRCO$ac_delim |
| 20757 | GV!$GV$ac_delim |
| 20758 | DOTTY!$DOTTY$ac_delim |
| 20759 | PERL!$PERL$ac_delim |
| 20760 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 20761 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 20762 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 20763 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 20764 | BZIP2!$BZIP2$ac_delim |
| 20765 | DOXYGEN!$DOXYGEN$ac_delim |
| 20766 | GROFF!$GROFF$ac_delim |
| 20767 | GZIP!$GZIP$ac_delim |
| 20768 | POD2HTML!$POD2HTML$ac_delim |
| 20769 | POD2MAN!$POD2MAN$ac_delim |
| 20770 | RUNTEST!$RUNTEST$ac_delim |
| 20771 | TCLSH!$TCLSH$ac_delim |
| 20772 | ZIP!$ZIP$ac_delim |
| 20773 | OCAMLC!$OCAMLC$ac_delim |
| 20774 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 20775 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 20776 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 20777 | GAS!$GAS$ac_delim |
| 20778 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 20779 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 20780 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 20781 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 20782 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 20783 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 20784 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
| 20785 | LLVMGCC!$LLVMGCC$ac_delim |
| 20786 | LLVMGXX!$LLVMGXX$ac_delim |
| 20787 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 20788 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
| 20789 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 20790 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 20791 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 20792 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 20793 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 20794 | LLVMCC1!$LLVMCC1$ac_delim |
| 20795 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 20796 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
| 20797 | LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim |
| 20798 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim |
| 20799 | LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim |
| 20800 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
| 20801 | SHLIBEXT!$SHLIBEXT$ac_delim |
Jeffrey Yasskin | f6afae2 | 2010-02-18 02:36:02 +0000 | [diff] [blame] | 20802 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20803 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 20804 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 20805 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 20806 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 20807 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 20808 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 20809 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 20810 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 20811 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 20812 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 20813 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 20814 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
| 20815 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 20816 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 20817 | RPATH!$RPATH$ac_delim |
| 20818 | RDYNAMIC!$RDYNAMIC$ac_delim |
| 20819 | LIBOBJS!$LIBOBJS$ac_delim |
| 20820 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20821 | _ACEOF |
| 20822 | |
Jeffrey Yasskin | f6afae2 | 2010-02-18 02:36:02 +0000 | [diff] [blame] | 20823 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20824 | break |
| 20825 | elif $ac_last_try; then |
| 20826 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 20827 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 20828 | { (exit 1); exit 1; }; } |
| 20829 | else |
| 20830 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 20831 | fi |
| 20832 | done |
| 20833 | |
| 20834 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 20835 | if test -n "$ac_eof"; then |
| 20836 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 20837 | ac_eof=`expr $ac_eof + 1` |
| 20838 | fi |
| 20839 | |
| 20840 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20841 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 20842 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 20843 | _ACEOF |
| 20844 | sed ' |
| 20845 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 20846 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 20847 | :n |
| 20848 | t n |
| 20849 | s/'"$ac_delim"'$/,g/; t |
| 20850 | s/$/\\/; p |
| 20851 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 20852 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 20853 | rm -f conf$$subs.sed |
| 20854 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20855 | :end |
| 20856 | s/|#_!!_#|//g |
| 20857 | CEOF$ac_eof |
| 20858 | _ACEOF |
| 20859 | |
| 20860 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20861 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 20862 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 20863 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20864 | # (actually we leave an empty line to preserve line numbers). |
| 20865 | if test "x$srcdir" = x.; then |
| 20866 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 20867 | s/:*\$(srcdir):*/:/ |
| 20868 | s/:*\${srcdir}:*/:/ |
| 20869 | s/:*@srcdir@:*/:/ |
| 20870 | s/^\([^=]*=[ ]*\):*/\1/ |
| 20871 | s/:*$// |
| 20872 | s/^[^=]*=[ ]*$// |
| 20873 | }' |
| 20874 | fi |
| 20875 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20876 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20877 | fi # test -n "$CONFIG_FILES" |
| 20878 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20879 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20880 | 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] | 20881 | do |
| 20882 | case $ac_tag in |
| 20883 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 20884 | esac |
| 20885 | case $ac_mode$ac_tag in |
| 20886 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20887 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 20888 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 20889 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20890 | :[FH]-) ac_tag=-:-;; |
| 20891 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 20892 | esac |
| 20893 | ac_save_IFS=$IFS |
| 20894 | IFS=: |
| 20895 | set x $ac_tag |
| 20896 | IFS=$ac_save_IFS |
| 20897 | shift |
| 20898 | ac_file=$1 |
| 20899 | shift |
| 20900 | |
| 20901 | case $ac_mode in |
| 20902 | :L) ac_source=$1;; |
| 20903 | :[FH]) |
| 20904 | ac_file_inputs= |
| 20905 | for ac_f |
| 20906 | do |
| 20907 | case $ac_f in |
| 20908 | -) ac_f="$tmp/stdin";; |
| 20909 | *) # Look for the file first in the build tree, then in the source tree |
| 20910 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 20911 | # because $ac_f cannot contain `:'. |
| 20912 | test -f "$ac_f" || |
| 20913 | case $ac_f in |
| 20914 | [\\/$]*) false;; |
| 20915 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 20916 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20917 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 20918 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 20919 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20920 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20921 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20922 | done |
| 20923 | |
| 20924 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 20925 | # use $as_me), people would be surprised to read: |
| 20926 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20927 | configure_input="Generated from "`IFS=: |
| 20928 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20929 | if test x"$ac_file" != x-; then |
| 20930 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20931 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 20932 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20933 | fi |
| 20934 | |
| 20935 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20936 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20937 | esac |
| 20938 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20939 | esac |
| 20940 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20941 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20942 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20943 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 20944 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20945 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20946 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20947 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20948 | s//\1/ |
| 20949 | q |
| 20950 | } |
| 20951 | /^X\(\/\/\)[^/].*/{ |
| 20952 | s//\1/ |
| 20953 | q |
| 20954 | } |
| 20955 | /^X\(\/\/\)$/{ |
| 20956 | s//\1/ |
| 20957 | q |
| 20958 | } |
| 20959 | /^X\(\/\).*/{ |
| 20960 | s//\1/ |
| 20961 | q |
| 20962 | } |
| 20963 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20964 | { as_dir="$ac_dir" |
| 20965 | case $as_dir in #( |
| 20966 | -*) as_dir=./$as_dir;; |
| 20967 | esac |
| 20968 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 20969 | as_dirs= |
| 20970 | while :; do |
| 20971 | case $as_dir in #( |
| 20972 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 20973 | *) as_qdir=$as_dir;; |
| 20974 | esac |
| 20975 | as_dirs="'$as_qdir' $as_dirs" |
| 20976 | as_dir=`$as_dirname -- "$as_dir" || |
| 20977 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20978 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 20979 | X"$as_dir" : 'X\(//\)$' \| \ |
| 20980 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 20981 | echo X"$as_dir" | |
| 20982 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20983 | s//\1/ |
| 20984 | q |
| 20985 | } |
| 20986 | /^X\(\/\/\)[^/].*/{ |
| 20987 | s//\1/ |
| 20988 | q |
| 20989 | } |
| 20990 | /^X\(\/\/\)$/{ |
| 20991 | s//\1/ |
| 20992 | q |
| 20993 | } |
| 20994 | /^X\(\/\).*/{ |
| 20995 | s//\1/ |
| 20996 | q |
| 20997 | } |
| 20998 | s/.*/./; q'` |
| 20999 | test -d "$as_dir" && break |
| 21000 | done |
| 21001 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21002 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21003 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 21004 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21005 | ac_builddir=. |
| 21006 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21007 | case "$ac_dir" in |
| 21008 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21009 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21010 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21011 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21012 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21013 | case $ac_top_builddir_sub in |
| 21014 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21015 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21016 | esac ;; |
| 21017 | esac |
| 21018 | ac_abs_top_builddir=$ac_pwd |
| 21019 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21020 | # for backward compatibility: |
| 21021 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21022 | |
| 21023 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21024 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21025 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21026 | ac_top_srcdir=$ac_top_builddir_sub |
| 21027 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21028 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21029 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21030 | ac_top_srcdir=$srcdir |
| 21031 | ac_abs_top_srcdir=$srcdir ;; |
| 21032 | *) # Relative name. |
| 21033 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21034 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21035 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21036 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21037 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21038 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21039 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21040 | case $ac_mode in |
| 21041 | :F) |
| 21042 | # |
| 21043 | # CONFIG_FILE |
| 21044 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21045 | |
| 21046 | case $INSTALL in |
| 21047 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21048 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21049 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21050 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21051 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21052 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21053 | # If the template does not know about datarootdir, expand it. |
| 21054 | # FIXME: This hack should be removed a few years after 2.60. |
| 21055 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21056 | |
| 21057 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21058 | p |
| 21059 | q |
| 21060 | } |
| 21061 | /@datadir@/p |
| 21062 | /@docdir@/p |
| 21063 | /@infodir@/p |
| 21064 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21065 | /@mandir@/p |
| 21066 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21067 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 21068 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21069 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 21070 | 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] | 21071 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21072 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21073 | ac_datarootdir_hack=' |
| 21074 | s&@datadir@&$datadir&g |
| 21075 | s&@docdir@&$docdir&g |
| 21076 | s&@infodir@&$infodir&g |
| 21077 | s&@localedir@&$localedir&g |
| 21078 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21079 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21080 | esac |
| 21081 | _ACEOF |
| 21082 | |
| 21083 | # Neutralize VPATH when `$srcdir' = `.'. |
| 21084 | # Shell code in configure.ac might set extrasub. |
| 21085 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21086 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21087 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21088 | $extrasub |
| 21089 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21090 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21091 | :t |
| 21092 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21093 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21094 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 21095 | s&@srcdir@&$ac_srcdir&;t t |
| 21096 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 21097 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 21098 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 21099 | s&@builddir@&$ac_builddir&;t t |
| 21100 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 21101 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 21102 | s&@INSTALL@&$ac_INSTALL&;t t |
| 21103 | $ac_datarootdir_hack |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21104 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21105 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21106 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 21107 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 21108 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21109 | { 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] | 21110 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21111 | 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] | 21112 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21113 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21114 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21115 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21116 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 21117 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 21118 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21119 | ;; |
| 21120 | :H) |
| 21121 | # |
| 21122 | # CONFIG_HEADER |
| 21123 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21124 | _ACEOF |
| 21125 | |
| 21126 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 21127 | # substitutes the proper values into config.h.in to produce config.h. |
| 21128 | rm -f conftest.defines conftest.tail |
| 21129 | # First, append a space to every undef/define line, to ease matching. |
| 21130 | echo 's/$/ /' >conftest.defines |
| 21131 | # Then, protect against being on the right side of a sed subst, or in |
| 21132 | # an unquoted here document, in config.status. If some macros were |
| 21133 | # called several times there might be several #defines for the same |
| 21134 | # symbol, which is useless. But do not sort them, since the last |
| 21135 | # AC_DEFINE must be honored. |
| 21136 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 21137 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 21138 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 21139 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 21140 | # just an empty string. |
| 21141 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 21142 | ac_dB='\\)[ (].*,\\1define\\2' |
| 21143 | ac_dC=' ' |
| 21144 | ac_dD=' ,' |
| 21145 | |
| 21146 | uniq confdefs.h | |
| 21147 | sed -n ' |
| 21148 | t rset |
| 21149 | :rset |
| 21150 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 21151 | t ok |
| 21152 | d |
| 21153 | :ok |
| 21154 | s/[\\&,]/\\&/g |
| 21155 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 21156 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 21157 | ' >>conftest.defines |
| 21158 | |
| 21159 | # Remove the space that was appended to ease matching. |
| 21160 | # Then replace #undef with comments. This is necessary, for |
| 21161 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21162 | # on some systems where configure will not decide to define it. |
| 21163 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 21164 | echo 's/ $// |
| 21165 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 21166 | |
| 21167 | # Break up conftest.defines: |
| 21168 | ac_max_sed_lines=50 |
| 21169 | |
| 21170 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 21171 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 21172 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 21173 | # et cetera. |
| 21174 | ac_in='$ac_file_inputs' |
| 21175 | ac_out='"$tmp/out1"' |
| 21176 | ac_nxt='"$tmp/out2"' |
| 21177 | |
| 21178 | while : |
| 21179 | do |
| 21180 | # Write a here document: |
| 21181 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21182 | # First, check the format of the line: |
| 21183 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 21184 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 21185 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 21186 | b |
| 21187 | :def |
| 21188 | _ACEOF |
| 21189 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 21190 | echo 'CEOF |
| 21191 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 21192 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 21193 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 21194 | grep . conftest.tail >/dev/null || break |
| 21195 | rm -f conftest.defines |
| 21196 | mv conftest.tail conftest.defines |
| 21197 | done |
| 21198 | rm -f conftest.defines conftest.tail |
| 21199 | |
| 21200 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 21201 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21202 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21203 | echo "/* $configure_input */" >"$tmp/config.h" |
| 21204 | cat "$ac_result" >>"$tmp/config.h" |
| 21205 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 21206 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 21207 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21208 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21209 | rm -f $ac_file |
| 21210 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21211 | fi |
| 21212 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21213 | echo "/* $configure_input */" |
| 21214 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21215 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21216 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21217 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21218 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21219 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 21220 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21221 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21222 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21223 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21224 | |
| 21225 | case $ac_file$ac_mode in |
| 21226 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21227 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21228 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21229 | ${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] | 21230 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21231 | ${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] | 21232 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21233 | ${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] | 21234 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21235 | ${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] | 21236 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21237 | ${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] | 21238 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21239 | ${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] | 21240 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21241 | ${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] | 21242 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21243 | ${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] | 21244 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21245 | ${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] | 21246 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21247 | ${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] | 21248 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21249 | ${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] | 21250 | "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] | 21251 | ${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] | 21252 | |
| 21253 | esac |
| 21254 | done # for ac_tag |
| 21255 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21256 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21257 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21258 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21259 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21260 | ac_clean_files=$ac_clean_files_save |
| 21261 | |
| 21262 | |
| 21263 | # configure is writing to config.log, and then calls config.status. |
| 21264 | # config.status does its own redirection, appending to config.log. |
| 21265 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21266 | # by configure, so config.status won't be able to write to it; its |
| 21267 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21268 | # effectively closing config.log, so it can be properly (re)opened and |
| 21269 | # appended to by config.status. When coming back to configure, we |
| 21270 | # need to make the FD available again. |
| 21271 | if test "$no_create" != yes; then |
| 21272 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21273 | ac_config_status_args= |
| 21274 | test "$silent" = yes && |
| 21275 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21276 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21277 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21278 | exec 5>>config.log |
| 21279 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21280 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21281 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21282 | fi |
| 21283 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21284 | # |
| 21285 | # CONFIG_SUBDIRS section. |
| 21286 | # |
| 21287 | if test "$no_recursion" != yes; then |
| 21288 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21289 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21290 | ac_sub_configure_args= |
| 21291 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21292 | eval "set x $ac_configure_args" |
| 21293 | shift |
| 21294 | for ac_arg |
| 21295 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21296 | if test -n "$ac_prev"; then |
| 21297 | ac_prev= |
| 21298 | continue |
| 21299 | fi |
| 21300 | case $ac_arg in |
| 21301 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 21302 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 21303 | ac_prev=cache_file ;; |
| 21304 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 21305 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 21306 | | --c=*) |
| 21307 | ;; |
| 21308 | --config-cache | -C) |
| 21309 | ;; |
| 21310 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 21311 | ac_prev=srcdir ;; |
| 21312 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 21313 | ;; |
| 21314 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 21315 | ac_prev=prefix ;; |
| 21316 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 21317 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21318 | *) |
| 21319 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21320 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21321 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21322 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21323 | esac |
| 21324 | done |
| 21325 | |
| 21326 | # Always prepend --prefix to ensure using the same prefix |
| 21327 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21328 | ac_arg="--prefix=$prefix" |
| 21329 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21330 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21331 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21332 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21333 | |
| 21334 | ac_popdir=`pwd` |
| 21335 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 21336 | |
| 21337 | # Do not complain, so a configure script can configure whichever |
| 21338 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21339 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21340 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21341 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21342 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 21343 | echo "$ac_msg" >&6 |
| 21344 | { as_dir="$ac_dir" |
| 21345 | case $as_dir in #( |
| 21346 | -*) as_dir=./$as_dir;; |
| 21347 | esac |
| 21348 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 21349 | as_dirs= |
| 21350 | while :; do |
| 21351 | case $as_dir in #( |
| 21352 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21353 | *) as_qdir=$as_dir;; |
| 21354 | esac |
| 21355 | as_dirs="'$as_qdir' $as_dirs" |
| 21356 | as_dir=`$as_dirname -- "$as_dir" || |
| 21357 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21358 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21359 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21360 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 21361 | echo X"$as_dir" | |
| 21362 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21363 | s//\1/ |
| 21364 | q |
| 21365 | } |
| 21366 | /^X\(\/\/\)[^/].*/{ |
| 21367 | s//\1/ |
| 21368 | q |
| 21369 | } |
| 21370 | /^X\(\/\/\)$/{ |
| 21371 | s//\1/ |
| 21372 | q |
| 21373 | } |
| 21374 | /^X\(\/\).*/{ |
| 21375 | s//\1/ |
| 21376 | q |
| 21377 | } |
| 21378 | s/.*/./; q'` |
| 21379 | test -d "$as_dir" && break |
| 21380 | done |
| 21381 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21382 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21383 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 21384 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21385 | ac_builddir=. |
| 21386 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21387 | case "$ac_dir" in |
| 21388 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21389 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21390 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21391 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21392 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21393 | case $ac_top_builddir_sub in |
| 21394 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21395 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21396 | esac ;; |
| 21397 | esac |
| 21398 | ac_abs_top_builddir=$ac_pwd |
| 21399 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21400 | # for backward compatibility: |
| 21401 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21402 | |
| 21403 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21404 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21405 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21406 | ac_top_srcdir=$ac_top_builddir_sub |
| 21407 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21408 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21409 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21410 | ac_top_srcdir=$srcdir |
| 21411 | ac_abs_top_srcdir=$srcdir ;; |
| 21412 | *) # Relative name. |
| 21413 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21414 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21415 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21416 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21417 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21418 | |
| 21419 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21420 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21421 | |
| 21422 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21423 | if test -f "$ac_srcdir/configure.gnu"; then |
| 21424 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 21425 | elif test -f "$ac_srcdir/configure"; then |
| 21426 | ac_sub_configure=$ac_srcdir/configure |
| 21427 | elif test -f "$ac_srcdir/configure.in"; then |
| 21428 | # This should be Cygnus configure. |
| 21429 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21430 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21431 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 21432 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21433 | ac_sub_configure= |
| 21434 | fi |
| 21435 | |
| 21436 | # The recursion is here. |
| 21437 | if test -n "$ac_sub_configure"; then |
| 21438 | # Make the cache file name correct relative to the subdirectory. |
| 21439 | case $cache_file in |
| 21440 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21441 | *) # Relative name. |
| 21442 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21443 | esac |
| 21444 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21445 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 21446 | 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] | 21447 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21448 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 21449 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21450 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 21451 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 21452 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21453 | fi |
| 21454 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21455 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21456 | done |
| 21457 | fi |
| 21458 | |